@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Poppins:wght@300;400;500;600&display=swap");

:root {
  --dark: #111111;
  --dark-soft: #2c2c2c;
  --cream: #f8f5f2;
  --beige: #e8ded2;
  --gold: #d4a373;
  --gold-dark: #b8875f;
  --white: #ffffff;
  --text: #3b3b3b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--cream);
  color: var(--text);
}

/* NAVBAR */
.navbar {
  background: rgba(248, 245, 242, 0.88);
  backdrop-filter: blur(14px);
  padding: 18px 0;
  transition: 0.3s ease;
  border-bottom: 1px solid rgba(212, 163, 115, 0.25);
}

.navbar.scrolled {
  padding: 10px 0;
  background: rgba(248, 245, 242, 0.97);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.navbar-brand {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark) !important;
  letter-spacing: 1px;
}

.nav-link {
  color: var(--dark-soft) !important;
  font-weight: 500;
  margin-left: 16px;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.navbar-toggler {
  border: none;
  box-shadow: none !important;
}

/* CART BUTTON */
.cart-btn {
  position: relative;
  border: 1px solid var(--gold);
  background: var(--dark);
  color: var(--white);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  transition: 0.3s ease;
}

.cart-btn:hover {
  background: var(--gold);
  color: var(--dark);
  transform: translateY(-2px);
}

.cart-btn span {
  position: absolute;
  top: -7px;
  right: -7px;
  background: var(--gold);
  color: var(--dark);
  font-size: 12px;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* HERO */
.hero {
  min-height: 100vh;
  padding-top: 110px;
  background:
    linear-gradient(135deg, rgba(17,17,17,0.9), rgba(44,44,44,0.72)),
    url("./images/hero-fashion.jpg") center/cover no-repeat;
  color: var(--white);
}

.hero-label {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 700;
  max-width: 650px;
}

.hero-text {
  margin: 25px 0 35px;
  max-width: 540px;
  color: #f1f1f1;
  line-height: 1.8;
}

.btn-gold,
.btn-warning {
  background: var(--gold);
  border: none;
  color: var(--dark);
  font-weight: 600;
  border-radius: 999px;
  padding: 12px 28px;
  transition: 0.3s ease;
}

.btn-gold:hover,
.btn-warning:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
}

.btn-outline-light {
  border-radius: 999px;
  padding: 12px 28px;
  font-weight: 600;
}

.hero-img {
  width: 360px;
  height: 460px;
  object-fit: cover;
  border-radius: 180px 180px 20px 20px;
  border: 6px solid rgba(212, 163, 115, 0.7);
  box-shadow: 0 30px 70px rgba(0,0,0,0.45);
}

/* GENERAL SECTIONS */
section {
  scroll-margin-top: 90px;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  color: var(--dark);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 65%;
  height: 3px;
  background: var(--gold);
  margin: 12px auto 0;
  border-radius: 20px;
}

/* CATEGORIES */
.category-card {
  background: var(--white);
  border-radius: 22px;
  padding: 28px 15px;
  box-shadow: 0 14px 35px rgba(0,0,0,0.08);
  transition: 0.3s ease;
  border: 1px solid rgba(212, 163, 115, 0.15);
}

.category-card span {
  font-size: 2rem;
}

.category-card h5 {
  margin-top: 12px;
  font-weight: 600;
}

.category-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
}

/* FILTERS */
.product-filters button {
  margin: 5px;
  border-radius: 999px;
  padding: 9px 20px;
  transition: 0.3s ease;
}

.product-filters button.active,
.product-filters button:hover {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}

/* PRODUCTS */
.product-card {
  border: none;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  background: var(--white);
  box-shadow: 0 14px 35px rgba(0,0,0,0.08);
  transition: 0.35s ease;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 22px 55px rgba(0,0,0,0.14);
}

.product-card img {
  height: 310px;
  object-fit: cover;
}

.product-card .card-body {
  padding: 24px;
}

.product-card h5 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  color: var(--dark);
}

.product-card strong {
  color: var(--gold-dark);
  font-size: 1.1rem;
}

/* ABOUT */
.about-img {
  box-shadow: 0 24px 60px rgba(0,0,0,0.16);
  border-radius: 26px !important;
}

#about p {
  line-height: 1.8;
}

/* REVIEWS */
.review-card {
  background: var(--white);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 14px 35px rgba(0,0,0,0.08);
  height: 100%;
  transition: 0.3s ease;
}

.review-card:hover {
  transform: translateY(-8px);
}

.stars {
  color: var(--gold);
  font-size: 1.4rem;
}

/* CONTACT */
.contact-section {
  background:
    linear-gradient(135deg, rgba(17,17,17,0.96), rgba(44,44,44,0.92));
}

.contact-section .section-title {
  color: var(--white);
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 12px;
  max-width: 600px;
  margin: auto;
}

.newsletter-form input {
  flex: 1;
  border: none;
  border-radius: 999px;
  padding: 13px 20px;
  outline: none;
}

/* FOOTER */
.footer a {
  color: #ddd;
  text-decoration: none;
  transition: 0.3s;
}

.footer a:hover {
  color: var(--gold);
}

.footer hr {
  border-color: rgba(255,255,255,0.15);
}

/* MODAL */
.modal-content {
  border: none;
  border-radius: 26px;
  overflow: hidden;
}

#modalImg {
  max-height: 350px;
  object-fit: cover;
  border-radius: 18px;
}

#modalTitle {
  font-family: "Playfair Display", serif;
  color: var(--dark);
}

#modalPrice {
  color: var(--gold-dark);
  font-size: 1.3rem;
}

/* CART */
.cart-img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
}

.cart-item {
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
}

/* FLOATING CART */
.floating-cart {
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--gold);
  color: var(--dark);
  font-size: 22px;
  z-index: 9999;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.floating-cart span {
  position: absolute;
  top: -7px;
  right: -7px;
  background: var(--dark);
  color: white;
  font-size: 12px;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

/* ANIMATIONS */
.hidden {
  opacity: 0;
  transform: translateY(35px);
  transition: 0.8s ease;
}

.show {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .navbar {
    background: rgba(248, 245, 242, 0.98);
  }

  .navbar-nav {
    text-align: center;
    padding-top: 15px;
  }

  .nav-link {
    margin-left: 0;
    margin-bottom: 8px;
  }

  .cart-btn {
    margin: 10px auto 0;
  }

  .hero {
    text-align: center;
    padding: 130px 0 70px;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .hero-text {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-img {
    width: 260px;
    height: 340px;
    margin-top: 35px;
  }

  .product-card img {
    height: 240px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .floating-cart {
    display: block;
  }
}

@media (min-width: 769px) {
  .floating-cart {
    display: none;
  }
}

@media (max-width: 768px) {
  #productsGrid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 16px;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
  }

  #productsGrid > .col-md-4 {
    flex: 0 0 85%;
    max-width: 85%;
    scroll-snap-align: center;
  }

  #productsGrid::-webkit-scrollbar {
    display: none;
  }

  #productsGrid {
    scrollbar-width: none;
  }

  .product-card img {
    height: 280px;
    object-fit: cover;
  }
}