/* ═══════════════════════════════════════════
   آریا پرفیوم — استایل بوتیک عطر
   تم لوکس تیره با لهجه طلایی
   ═══════════════════════════════════════════ */

:root {
  --bg: #0d0b12;
  --bg-2: #14111c;
  --card: #1a1626;
  --card-2: #221d33;
  --gold: #d4af37;
  --gold-light: #f0d878;
  --gold-dark: #a8842c;
  --cream: #f4ecdb;
  --text: #e9e4f0;
  --muted: #9b93ab;
  --danger: #e5484d;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --grad-gold: linear-gradient(135deg, #b8860b 0%, #d4af37 35%, #f5e08a 55%, #d4af37 75%, #a8842c 100%);
  --grad-btn: linear-gradient(135deg, #caa338, #f0d878 50%, #caa338);
  --border: rgba(212, 175, 55, .18);
  --font: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background:
    radial-gradient(1100px 500px at 85% -5%, rgba(212, 175, 55, .08), transparent 60%),
    radial-gradient(900px 500px at 0% 30%, rgba(120, 60, 160, .07), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: min(1200px, 92%); margin-inline: auto; }

.gold {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ─────────── دکمه‌ها ─────────── */
.btn {
  display: inline-block;
  padding: .8rem 2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  border: none;
  transition: transform .25s, box-shadow .25s, background .25s;
}
.btn:active { transform: scale(.97); }
.btn-gold {
  background: var(--grad-btn);
  color: #241a05;
  box-shadow: 0 8px 24px rgba(212, 175, 55, .25);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(212, 175, 55, .4); }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-block { width: 100%; }

/* ─────────── هدر ─────────── */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background .3s, box-shadow .3s, padding .3s;
}
.site-header.scrolled {
  background: rgba(13, 11, 18, .88);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .4);
  padding: .6rem 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.logo { display: flex; align-items: center; gap: .5rem; font-size: 1.35rem; font-weight: 300; }
.logo-mark { font-size: 1.5rem; filter: drop-shadow(0 0 8px rgba(212,175,55,.5)); }
.logo-text b { font-weight: 800; color: var(--gold-light); }

.main-nav { display: flex; gap: 1.8rem; }
.main-nav a {
  font-size: .95rem;
  color: var(--muted);
  position: relative;
  padding-block: .3rem;
  transition: color .25s;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--grad-gold);
  transition: width .3s;
  border-radius: 2px;
}
.main-nav a:hover { color: var(--cream); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: .8rem; }

.cart-btn {
  position: relative;
  background: rgba(212, 175, 55, .1);
  border: 1px solid var(--border);
  color: var(--gold-light);
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  transition: background .25s, transform .25s;
}
.cart-btn:hover { background: rgba(212, 175, 55, .2); transform: translateY(-2px); }
.cart-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute;
  top: -5px; left: -5px;
  background: var(--danger);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  min-width: 20px; height: 20px;
  border-radius: 999px;
  display: grid; place-items: center;
  padding-inline: 4px;
  animation: pop .3s;
}
@keyframes pop { 50% { transform: scale(1.35); } }

.menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px; }
.menu-btn span { width: 24px; height: 2px; background: var(--cream); border-radius: 2px; transition: .3s; }
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─────────── هیرو ─────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .34; transform: scale(1.05); animation: slowZoom 18s ease-in-out infinite alternate; }
@keyframes slowZoom { to { transform: scale(1.15); } }
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,11,18,.7), rgba(13,11,18,.35) 40%, var(--bg) 96%);
}
.hero-content { position: relative; z-index: 2; padding-block: 7rem 5rem; }

.hero-kicker {
  color: var(--gold-light);
  letter-spacing: .2em;
  font-size: .85rem;
  margin-bottom: 1.2rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.6rem);
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 1.2rem;
  text-shadow: 0 10px 40px rgba(0,0,0,.55);
}
.hero-sub {
  max-width: 620px;
  margin-inline: auto;
  color: var(--muted);
  font-size: 1.06rem;
  margin-bottom: 2.2rem;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  flex-wrap: wrap;
}
.hero-stats div { display: grid; gap: .1rem; }
.hero-stats b {
  font-size: 1.9rem;
  font-weight: 900;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stats span { color: var(--muted); font-size: .85rem; }

.hero-scroll {
  position: absolute;
  bottom: 22px;
  right: 50%;
  transform: translateX(50%);
  z-index: 2;
  color: var(--gold-light);
  animation: bounce 1.8s infinite;
  font-size: 1.2rem;
}
@keyframes bounce { 50% { transform: translateX(50%) translateY(9px); } }

/* ─────────── ویژگی‌ها ─────────── */
.features { padding-block: 4rem 1rem; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.2rem;
  text-align: center;
  transition: transform .3s, border-color .3s;
}
.feature:hover { transform: translateY(-6px); border-color: rgba(212, 175, 55, .45); }
.f-icon {
  width: 58px; height: 58px;
  margin: 0 auto .8rem;
  display: grid; place-items: center;
  font-size: 1.6rem;
  border-radius: 50%;
  background: rgba(212, 175, 55, .1);
  border: 1px solid var(--border);
}
.feature h3 { font-size: 1rem; margin-bottom: .3rem; color: var(--cream); }
.feature p { font-size: .84rem; color: var(--muted); }

/* ─────────── سکشن عمومی ─────────── */
.section-head { text-align: center; margin-bottom: 2.6rem; }
.section-kicker { color: var(--gold-light); font-size: .82rem; letter-spacing: .18em; margin-bottom: .6rem; }
.section-head h2, .about-text h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 900;
  margin-bottom: .6rem;
}
.section-sub { color: var(--muted); font-size: .95rem; }

/* ─────────── محصولات ─────────── */
.products-section { padding-block: 4rem 5rem; }

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.2rem;
}
.filter-chips { display: flex; gap: .6rem; flex-wrap: wrap; }
.chip {
  background: var(--card);
  color: var(--muted);
  border: 1px solid var(--border);
  padding: .5rem 1.3rem;
  border-radius: 999px;
  font-size: .88rem;
  transition: .25s;
}
.chip:hover { color: var(--cream); border-color: var(--gold); }
.chip.active {
  background: var(--grad-btn);
  color: #241a05;
  font-weight: 700;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(212, 175, 55, .3);
}
.sort-box { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .88rem; }
.sort-box select {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .5rem .9rem;
  font-family: inherit;
  font-size: .88rem;
  outline: none;
  cursor: pointer;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .35s, box-shadow .35s, border-color .35s;
  animation: fadeUp .5s both;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } }
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: rgba(212, 175, 55, .45);
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 4.4;
  overflow: hidden;
  background: var(--card-2);
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.product-card:hover .card-media img { transform: scale(1.08); }

.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  font-size: .74rem;
  font-weight: 800;
  padding: .28rem .8rem;
  border-radius: 999px;
  color: #241a05;
  background: var(--grad-btn);
}
.badge.sale { background: var(--danger); color: #fff; }
.badge.new { background: linear-gradient(135deg, #6a5acd, #9370db); color: #fff; }

.quick-view {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  padding: .7rem;
  background: rgba(13, 11, 18, .72);
  backdrop-filter: blur(6px);
  color: var(--gold-light);
  font-weight: 700;
  font-size: .86rem;
  border: none;
  transform: translateY(100%);
  transition: transform .3s;
}
.product-card:hover .quick-view,
.product-card:focus-within .quick-view { transform: translateY(0); }

.card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.card-family { font-size: .78rem; color: var(--gold-light); letter-spacing: .05em; }
.card-name { font-size: 1.06rem; font-weight: 800; color: var(--cream); }
.card-rating { font-size: .82rem; color: var(--muted); display: flex; align-items: center; gap: .35rem; }
.card-rating .stars { color: #f0c24a; letter-spacing: .1em; font-size: .86rem; }

.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding-top: .6rem; }
.card-price { display: flex; flex-direction: column; line-height: 1.3; }
.card-price s { color: var(--muted); font-size: .78rem; }
.card-price b { font-size: 1.06rem; font-weight: 900; color: var(--gold-light); }
.card-price span { font-size: .72rem; color: var(--muted); font-weight: 400; }

.add-btn {
  background: rgba(212, 175, 55, .12);
  border: 1px solid var(--border);
  color: var(--gold-light);
  width: 44px; height: 44px;
  border-radius: 13px;
  font-size: 1.25rem;
  display: grid; place-items: center;
  transition: .25s;
}
.add-btn:hover { background: var(--grad-btn); color: #241a05; transform: translateY(-2px) rotate(3deg); }

.empty-msg { text-align: center; color: var(--muted); padding: 3rem 0; }

/* ─────────── درباره ما ─────────── */
.about { padding-block: 5rem; background: var(--bg-2); border-block: 1px solid rgba(212,175,55,.1); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
}
.about-img { position: relative; }
.about-img img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/4.6; object-fit: cover; }
.about-badge {
  position: absolute;
  bottom: -22px;
  right: -18px;
  background: var(--grad-btn);
  color: #241a05;
  font-weight: 900;
  font-size: 1.15rem;
  padding: 1rem 1.5rem;
  border-radius: 16px;
  text-align: center;
  line-height: 1.4;
  box-shadow: 0 14px 34px rgba(212, 175, 55, .35);
}
.about-badge span { font-size: .74rem; font-weight: 600; }
.about-text h2 { margin-bottom: 1rem; }
.about-text > p { color: var(--muted); margin-bottom: 1rem; font-size: .97rem; }
.about-list { margin-block: 1.2rem 1.8rem; display: grid; gap: .55rem; color: var(--cream); font-size: .93rem; }

/* ─────────── نظرات ─────────── */
.testimonials { padding-block: 5rem; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.testi {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: grid;
  gap: .9rem;
  transition: transform .3s, border-color .3s;
}
.testi:hover { transform: translateY(-5px); border-color: rgba(212,175,55,.4); }
.testi p { color: var(--text); font-size: .93rem; }
.testi footer { color: var(--muted); font-size: .84rem; }
.testi .stars { color: #f0c24a; letter-spacing: .15em; }

/* ─────────── فوتر ─────────── */
.site-footer { background: #0a0810; border-top: 1px solid rgba(212,175,55,.14); padding-top: 3.5rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.footer-logo { font-size: 1.2rem; margin-bottom: .8rem; display: inline-flex; }
.footer-desc { color: var(--muted); font-size: .87rem; margin-bottom: 1.1rem; }
.socials { display: flex; gap: .7rem; }
.socials a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: .25s;
}
.socials a:hover { background: var(--grad-btn); transform: translateY(-3px); }
.site-footer h4 { color: var(--gold-light); font-size: .95rem; margin-bottom: 1rem; }
.site-footer ul { display: grid; gap: .55rem; }
.site-footer ul a { color: var(--muted); font-size: .88rem; transition: color .25s, padding .25s; }
.site-footer ul a:hover { color: var(--gold-light); padding-inline-start: 4px; }
.contact-list { color: var(--muted); font-size: .88rem; }
.footer-bottom {
  border-top: 1px solid rgba(212,175,55,.1);
  padding-block: 1.2rem;
  font-size: .82rem;
  color: var(--muted);
}
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* ─────────── سبد خرید ─────────── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 4, 8, .65);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  z-index: 190;
}
.overlay.show { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0; bottom: 0;
  left: 0;
  width: min(420px, 92vw);
  background: var(--bg-2);
  border-inline-end: 1px solid var(--border);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(-105%);
  transition: transform .38s cubic-bezier(.22, .9, .3, 1);
  box-shadow: 30px 0 80px rgba(0,0,0,.5);
}
.cart-drawer.open { transform: translateX(0); }

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--border);
}
.cart-head h3 { font-size: 1.05rem; }
.close-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  transition: .25s;
}
.close-btn:hover { color: var(--danger); border-color: var(--danger); transform: rotate(90deg); }

.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.4rem; display: grid; gap: .9rem; align-content: start; }
.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: .9rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: .6rem;
  animation: fadeUp .3s both;
}
.cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.ci-info b { font-size: .88rem; color: var(--cream); display: block; }
.ci-info span { font-size: .76rem; color: var(--muted); }
.ci-price { font-size: .84rem; font-weight: 800; color: var(--gold-light); white-space: nowrap; }

.ci-qty { display: flex; align-items: center; gap: .45rem; margin-top: .3rem; }
.ci-qty button {
  width: 24px; height: 24px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--card-2);
  color: var(--cream);
  font-size: .9rem;
  line-height: 1;
}
.ci-qty button:hover { border-color: var(--gold); color: var(--gold-light); }
.ci-remove {
  background: none; border: none;
  color: var(--muted); font-size: .76rem;
  margin-top: .3rem;
}
.ci-remove:hover { color: var(--danger); }

.cart-empty { text-align: center; color: var(--muted); padding: 3rem 1rem; display: grid; gap: 1rem; justify-items: center; }
.cart-empty p:first-child { font-size: 3rem; }
.cart-foot { border-top: 1px solid var(--border); padding: 1.2rem 1.4rem; display: grid; gap: .7rem; }
.cart-total-row { display: flex; justify-content: space-between; font-size: 1rem; }
.cart-total-row b { color: var(--gold-light); font-size: 1.15rem; }
.cart-note { font-size: .76rem; color: var(--muted); }

/* ─────────── مودال محصول ─────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: rgba(5, 4, 8, .72);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.modal.show { opacity: 1; pointer-events: auto; }
.modal-card {
  width: min(880px, 100%);
  max-height: 92svh;
  overflow-y: auto;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 22px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  position: relative;
  transform: translateY(24px) scale(.97);
  transition: transform .35s cubic-bezier(.22, .9, .3, 1);
}
.modal.show .modal-card { transform: none; }
.modal .close-btn { position: absolute; top: 14px; left: 14px; z-index: 5; background: rgba(13,11,18,.6); }
.modal-img { position: relative; min-height: 380px; }
.modal-img img { width: 100%; height: 100%; object-fit: cover; border-start-start-radius: 22px; border-end-start-radius: 22px; }
.modal-img .badge { top: 14px; right: 14px; }
.modal-info { padding: 2rem 1.8rem; display: flex; flex-direction: column; gap: .7rem; }
.modal-family { color: var(--gold-light); font-size: .8rem; letter-spacing: .08em; }
.modal-info h3 { font-size: 1.55rem; font-weight: 900; color: var(--cream); }
.modal-rating { color: #f0c24a; letter-spacing: .12em; font-size: .95rem; }
.modal-rating span { color: var(--muted); font-size: .8rem; margin-inline-start: .4rem; letter-spacing: 0; }
.modal-desc { color: var(--muted); font-size: .9rem; }

.modal-notes { display: flex; flex-wrap: wrap; gap: .45rem; }
.note-chip {
  background: rgba(212, 175, 55, .09);
  border: 1px solid var(--border);
  color: var(--cream);
  font-size: .76rem;
  padding: .25rem .8rem;
  border-radius: 999px;
}

.size-picker { display: flex; align-items: center; gap: .7rem; margin-top: .4rem; }
.size-label { font-size: .84rem; color: var(--muted); }
.size-options { display: flex; gap: .5rem; }
.size-options button {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--cream);
  padding: .4rem 1rem;
  border-radius: 10px;
  font-size: .85rem;
  transition: .2s;
}
.size-options button.active { background: var(--grad-btn); color: #241a05; font-weight: 800; border-color: transparent; }

.modal-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .8rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.qty-box {
  display: flex;
  align-items: center;
  gap: .8rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .35rem .7rem;
}
.qty-box button {
  background: none;
  border: none;
  color: var(--gold-light);
  font-size: 1.25rem;
  width: 26px;
}
.qty-box span { min-width: 24px; text-align: center; font-weight: 800; }
.modal-price { text-align: left; display: grid; }
.modal-price s { color: var(--muted); font-size: .84rem; }
.modal-price b { font-size: 1.5rem; font-weight: 900; color: var(--gold-light); }
.modal-price span { font-size: .74rem; color: var(--muted); }

/* ─────────── توست ─────────── */
.toast {
  position: fixed;
  bottom: 26px;
  right: 50%;
  transform: translateX(50%) translateY(90px);
  background: var(--card-2);
  border: 1px solid var(--gold);
  color: var(--cream);
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  z-index: 300;
  opacity: 0;
  transition: .4s cubic-bezier(.22,.9,.3,1);
  pointer-events: none;
}
.toast.show { transform: translateX(50%) translateY(0); opacity: 1; }

/* ─────────── انیمیشن ورود ─────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ─────────── ریسپانسیو ─────────── */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 3.8rem; }
  .about-img { max-width: 480px; margin-inline: auto; }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 0; bottom: 0;
    right: 0;
    width: min(300px, 78vw);
    background: var(--bg-2);
    border-inline-start: 1px solid var(--border);
    flex-direction: column;
    padding: 5.5rem 2rem 2rem;
    gap: 1.4rem;
    transform: translateX(105%);
    transition: transform .35s cubic-bezier(.22,.9,.3,1);
    z-index: 150;
    box-shadow: -20px 0 60px rgba(0,0,0,.5);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: 1.05rem; }
  .menu-btn { display: flex; z-index: 160; }

  .products-grid { grid-template-columns: repeat(2, 1fr); gap: .9rem; }
  .testi-grid { grid-template-columns: 1fr; }
  .modal-card { grid-template-columns: 1fr; }
  .modal-img { min-height: 260px; max-height: 320px; }
  .modal-img img { border-radius: 22px 22px 0 0; }
  .about-badge { right: 10px; }
}

@media (max-width: 520px) {
  .products-grid { grid-template-columns: 1fr 1fr; }
  .card-name { font-size: .93rem; }
  .card-price b { font-size: .95rem; }
  .add-btn { width: 38px; height: 38px; }
  .hero-stats { gap: 1.6rem; }
  .features-grid { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .feature { padding: 1.1rem .7rem; }
  .footer-bottom .container { justify-content: center; text-align: center; }
}

/* اسکرول‌بار */
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--card-2); border-radius: 9px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

::selection { background: rgba(212, 175, 55, .35); color: #fff; }
