*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:   #1a1a18;
  --white:   #fafaf8;
  --gold:    #c9a96e;
  --gold-lt: #e8d5b0;
  --gray:    #8a8a82;
  --gray-lt: #f0efeb;
  --border:  #e2e0da;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--black);
  font-weight: 300;
  line-height: 1.6;
  font-family: "Rubik", sans-serif;
}


/* ════════════════════════════
   MOBILE DRAWER
════════════════════════════ */

.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 400;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.drawer-overlay.open {
  display: block;
  opacity: 1;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: var(--white);
  z-index: 500;
  transition: right 0.35s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
}

.mobile-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--black);
  line-height: 1;
  padding: 4px;
}

.drawer-search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  padding: 0.6rem 1rem;
}

.drawer-search i { color: var(--gray); font-size: 1rem; }

.drawer-search input {
  border: none;
  outline: none;
  background: transparent;
  font-family: "Rubik", sans-serif;
  font-size: 0.875rem;
  width: 100%;
  color: var(--black);
}

.drawer-nav { flex: 1;
display: block;
}

.drawer-nav ul { list-style: none;
display: flex;
flex-direction: column;
gap: 9vw;
}


.drawer-nav > ul > li > a {
  display: flex;
  justify-content:center;
  padding: 0.9rem 1.5rem;
  text-decoration: none;
  color: var(--black);
  font-size: 0.95rem;
  transition: color 0.2s;
}

.drawer-nav > ul > li > a:hover { color: var(--gold); }

.toggle-icon {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.has-sub.sub-open .toggle-icon {
  transform: rotate(-90deg);
}

.drawer-sub {
  display: none;
  list-style: none;
  background: var(--gray-lt);
  padding: 0.25rem 0;
}

.drawer-sub li { border-bottom: 1px solid var(--border); }
.drawer-sub li:last-child { border-bottom: none; }

.drawer-sub a {
  display: block;
  padding: 0.65rem 2rem;
  text-decoration: none;
  color: var(--gray);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.drawer-sub a:hover { color: var(--gold); }

.drawer-actions {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.drawer-actions .favorite {
  background: var(--gold);
  color: var(--white);
  border: none;
  padding: 11px 16px;
  font-family: "Rubik", sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.drawer-actions .cart-btn {
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 11px 16px;
  font-family: "Rubik", sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}


/* ════════════════════════════
   NAV
════════════════════════════ */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1.5rem;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.75rem;
  color: var(--gold);
  line-height: 1;
  padding: 4px;
  flex-shrink: 0;
}

.logo {
  font-size: 1.5rem;
  color: var(--black);
  text-decoration: none;
  flex-shrink: 0;
}

.logo span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links li { position: relative; }

.nav-links a {
  text-decoration: none;
  color: var(--gray);
  font-size: 0.95rem;
  font-weight: 300;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--black); }

.slide-down {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white);
  min-width: 160px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  z-index: 200;
  padding: 8px 0;
  list-style: none;
  border-top: 2px solid var(--gold);
}

.slide-down li { border-bottom: 1px solid var(--border); }
.slide-down li:last-child { border-bottom: none; }

.slide-down a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--black);
  font-size: 0.875rem;
  transition: background 0.15s, color 0.15s;
}

.slide-down a:hover {
  background: var(--gray-lt);
  color: var(--gold);
}

.nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-shrink: 0;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 2px solid var(--gold);
  padding: 4px 8px;
}

.search-wrap .search {
  background: transparent;
  border: none;
  outline: none;
  font-family: "Rubik", sans-serif;
  font-size: 0.875rem;
  width: 150px;
  color: var(--black);
}

.search-wrap .bi-search { color: var(--gray); font-size: 1rem; }

.nav-actions .favorite {
  background: var(--gold);
  color: var(--white);
  border: none;
  padding: 8px 14px;
  font-family: "Rubik", sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.nav-actions .favorite:hover { opacity: 0.85; }

.nav-actions .cart-btn {
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 8px 14px;
  font-family: "Rubik", sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.nav-actions .cart-btn:hover { opacity: 0.8; }


/* ════════════════════════════
   HERO
════════════════════════════ */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 64px);
}

.hero-text {
  padding: 6rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  line-height: 1.15;
  font-weight: 300;
  color: var(--black);
  margin-bottom: 1.5rem;
}

.hero-sub {
  color: var(--gray);
  font-size: 1rem;
  max-width: 38ch;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 14px 32px;
  font-size: 0.875rem;
  font-family: "Rubik", sans-serif;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover { background: var(--gold); transform: translateY(-1px); }

.btn-outline {
  background: none;
  color: var(--black);
  border: 1px solid var(--black);
  padding: 14px 32px;
  font-size: 0.875rem;
  font-family: "Rubik", sans-serif;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.hero-img {
  background: var(--gray-lt);
  overflow: hidden;
  position: relative;
}

.hero-img-placeholder {
  width: 100%;
  height: 700px;
  overflow: hidden;
}

.hero-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  background: var(--white);
  padding: 1rem 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-badge-label {
  font-size: 0.7rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-badge-val {
  font-size: 1.5rem;
  color: var(--gold);
}


/* ════════════════════════════
   STRIP
════════════════════════════ */

.strip {
  background: var(--black);
  color: var(--white);
  padding: 0.75rem 3rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
  font-size: 0.78rem;
  flex-wrap: wrap;
}

.strip i { color: var(--gold); font-size: 15px; }
.strip span { opacity: 0.6; }
.strip strong { opacity: 1; font-weight: 400; }


/* ════════════════════════════
   SECTION HEADER
════════════════════════════ */

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--black);
  padding-bottom: 6px;
}

.section-title { font-size: 2rem; font-weight: 300; }

.see-all {
  font-size: 0.95rem;
  color: var(--gold);
  text-decoration: none;
  transition: transform 0.25s ease;
  display: inline-block;
}

.see-all:hover { transform: translateX(-6px); }


/* ════════════════════════════
   CATEGORIES
════════════════════════════ */

.categories { padding: 5rem 3rem; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.cat-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  height: 600px;
}

.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cat-card:hover img { transform: scale(1.04); }

.cat-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(to top, rgba(26, 26, 24, 0.88), transparent);
  color: var(--white);
}

.cat-name { font-size: 1.2rem; display: block; margin-bottom: 0.2rem; }
.cat-count { font-size: 0.75rem; opacity: 0.7; }


/* ════════════════════════════
   SEARCH & FILTERS
════════════════════════════ */

.search-section {
  padding: 3rem 3rem 2rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  background: var(--white);
  padding: 0 1rem;
  gap: 0.75rem;
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 0;
  font-size: 0.9rem;
  color: var(--black);
  background: transparent;
  font-family: "Rubik", sans-serif;
}

.search-box span { color: var(--gray); font-size: 1.1rem; }

.filter-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.chip {
  border: 1px solid var(--border);
  background: none;
  padding: 8px 16px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s;
  font-family: "Rubik", sans-serif;
}

.chip:hover, .chip.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}


/* ════════════════════════════
   PRODUCTS
════════════════════════════ */

.products { padding: 3rem 3rem 6rem; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.product-card { cursor: pointer; }

.product-img {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--gray-lt);
  overflow: hidden;
  margin-bottom: 1rem;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img img { transform: scale(1.04); }

.product-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--gold);
  color: var(--white);
  font-size: 0.65rem;
  padding: 3px 8px;
}

.product-actions {
  position: absolute;
  bottom: -56px;
  left: 0;
  right: 0;
  display: flex;
  gap: 8px;
  padding: 0 0.75rem 0.75rem;
  transition: bottom 0.3s ease;
}

.product-card:hover .product-actions { bottom: 0; }

.action-btn {
  flex: 1;
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 10px;
  font-size: 0.75rem;
  font-family: "Rubik", sans-serif;
  cursor: pointer;
  transition: background 0.2s;
}

.action-btn:hover { background: var(--gold); }
.action-btn.icon { flex: 0 0 40px; font-size: 1rem; }

.product-brand {
  font-size: 0.75rem;
  color: var(--gray);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.product-name {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  font-weight: 400;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.price-now { font-size: 1.05rem; }
.price-old { font-size: 0.85rem; color: var(--gray); text-decoration: line-through; }
.stars { color: var(--gold); font-size: 0.75rem; margin-top: 0.3rem; }


/* ════════════════════════════
   BANNER
════════════════════════════ */

.banner {
  margin: 0 3rem 5rem;
  background: var(--black);
  color: var(--white);
  padding: 4.5rem 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.banner-title {
  font-size: 2.2rem;
  font-weight: 300;
  max-width: 20ch;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.banner-sub { color: rgba(255, 255, 255, 0.55); max-width: 38ch; }

.btn-gold {
  background: var(--gold);
  color: var(--black);
  border: 1px solid transparent;
  padding: 15px 36px;
  font-size: 0.95rem;
  font-family: "Rubik", sans-serif;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-gold:hover {
  border-color: var(--gold);
  background: transparent;
  color: var(--white);
}


/* ════════════════════════════
   FOOTER
════════════════════════════ */

footer {
  background: var(--black);
  color: var(--white);
  padding: 4rem 3rem 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo { color: var(--white); }
.footer-brand .logo span { color: var(--gold); }

.footer-desc {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.875rem;
  margin-top: 1rem;
  max-width: 28ch;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.75rem; }

.footer-col a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.78rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-links { display: flex; gap: 1rem; }

.social-links a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.social-links a:hover { color: var(--gold); }


/* ════════════════════════════
   RESPONSIVE — TABLET (≤1100px)
════════════════════════════ */

@media (max-width: 1100px) {
  nav { padding: 0 2rem; gap: 5rem; }

  .search-wrap .search { width: 110px; }

  .nav-actions .favorite span,
  .nav-actions .cart-btn span { display: none; }

  .product-grid { grid-template-columns: repeat(3, 1fr); }

  .cat-card { height: 480px; }

}


/* ════════════════════════════
   RESPONSIVE — MOBILE (≤900px)
════════════════════════════ */

@media (max-width: 900px) {

  /* NAV */
  nav {
    height: 100vw;
    align-items:flex-start;
    justify-content:space-between;
  }

  .hamburger { display: flex; }

  .logo {
    text-align: center;
    font-size: 1.3rem;
  }

  /* فضای خالی سمت چپ برای تراز بودن لوگو */
  nav::after {
    content: '';
    width: 40px;
    flex-shrink: 0;
  }

  .nav-links { display: none; }
  .nav-actions { display: none; }

  /* HERO */
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-img { display: none; }

  .hero-text {
    padding: 3.5rem 1.5rem;
    text-align: center;
    align-items: center;
  }

  .hero-sub { max-width: 100%; }

  .hero-ctas { justify-content: center; }

  /* STRIP */
  .strip {
    padding: 0.75rem 1.5rem;
    gap: 1.25rem;
    font-size: 0.72rem;
    justify-content: center;
  }

  /* CATEGORIES */
  .categories { padding: 3rem 1.5rem; }

  .cat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .cat-card { height: 360px; }

  .section-title { font-size: 1.5rem; }

  /* PRODUCTS */
  .products { padding: 2rem 1.5rem 4rem; }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  /* SEARCH */
  .search-section {
    padding: 2rem 1.5rem;
    flex-direction: column;
    align-items: stretch;
  }

  .filter-chips { justify-content: center; }

  /* BANNER */
  .banner {
    margin: 0 1.5rem 3rem;
    padding: 2.5rem 1.5rem;
    flex-direction: column;
    text-align: center;
  }

  .banner-title { font-size: 1.8rem; max-width: 100%; }
  .banner-sub { max-width: 100%; }

  /* FOOTER */
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-bottom { flex-direction: column; text-align: center; }
  .social-links { justify-content: center; }
}


/* ════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤600px)
════════════════════════════ */

@media (max-width: 600px) {

  nav { padding: 0 1rem; height: 56px; }
  .logo { font-size: 1.15rem; }

  /* HERO */
  .hero-text { padding: 2.5rem 1rem; }
  .hero-title { font-size: 1.9rem; }
  .hero-sub { font-size: 0.9rem; }

  .hero-ctas { flex-direction: column; width: 100%; }

  .btn-primary,
  .btn-outline {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    font-size: 0.85rem;
  }

  /* STRIP */
  .strip {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    font-size: 0.75rem;
  }

  /* CATEGORIES */
  .categories { padding: 2rem 1rem; }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .cat-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .cat-card { height: 280px; }
  .section-title { font-size: 1.3rem; }

  /* PRODUCTS */
  .products { padding: 1.5rem 1rem 3rem; }
  .product-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .product-img { aspect-ratio: 4/5; }

  /* در موبایل کوچک، دکمه‌های محصول همیشه نمایش */
  .product-actions { bottom: 0; }

  /* SEARCH */
  .search-section { padding: 1.5rem 1rem; }
  .chip { padding: 6px 12px; font-size: 0.75rem; }

  /* BANNER */
  .banner {
    margin: 0 1rem 2.5rem;
    padding: 2rem 1rem;
  }

  .banner-title { font-size: 1.4rem; }
  .banner-sub { font-size: 0.85rem; }

  .btn-gold {
    width: 100%;
    text-align: center;
    padding: 13px 24px;
    font-size: 0.9rem;
  }

  /* FOOTER */
  footer { padding: 2.5rem 1rem 1.5rem; }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
  }

  .footer-desc { font-size: 0.8rem; }
  .footer-col li { margin-bottom: 0.5rem; }
  .footer-col a { font-size: 0.8rem; }
  .footer-bottom { font-size: 0.72rem; }
}


/* ════════════════════════════
   RESPONSIVE — XS MOBILE (≤400px)
════════════════════════════ */

@media (max-width: 400px) {
  .hero-title { font-size: 1.6rem; }
  .cat-card { height: 240px; }
  .banner-title { font-size: 1.2rem; }
}


/* ════════════════════════════
   REDUCED MOTION
════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}