/* ============================================================
   نیک‌آویز | Soft Luxury Boutique
   NickAviz base tokens — local fonts
   ============================================================ */

:root {
  --primary: #F7D7E6;
  --secondary: #FCEEF5;
  --accent: #EFB4CC;
  --highlight: #D97FA8;
  --success: #7ABF8E;
  --error: #D66A7D;

  --bg-0: #FFF8FB;
  --bg-1: #FCEEF5;
  --bg-2: #F7D7E6;
  --bg-card: #FFFFFF;
  --bg-hover: #FCEEF5;

  /* سازگاری با کلاس‌های موجود (--gold = highlight لوکس) */
  --gold: #D97FA8;
  --gold-mid: #EFB4CC;
  --gold-light: #D97FA8;
  --gold-glow: rgba(217, 127, 168, 0.22);

  --text: #3A2A33;
  --text-soft: #7A6570;
  --text-dim: #BCA8B3;
  --line: #F3DDE8;
  --line-strong: #EFB4CC;

  --radius: 22px;
  --radius-sm: 16px;
  --shadow: 0 16px 40px rgba(58, 42, 51, 0.06);
  --shadow-gold: 0 10px 28px rgba(217, 127, 168, 0.18);
  --shadow-lift: 0 24px 48px rgba(58, 42, 51, 0.1);

  --font: 'Vazirmatn', Tahoma, sans-serif;
  --font-display: 'Markazi Text', 'Peyda', 'Vazirmatn', serif;
  --header: 78px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 380ms;

  --page-glow: rgba(247, 215, 230, 0.7);
  --page-bottom: #FCEEF5;
  --blush: #F7D7E6;
  --mist: #FCEEF5;
  --rose-deep: #D97FA8;

  --font-base: 16px;
  --font-sm: 0.875rem;
  --font-md: 1.05rem;
  --font-lg: 1.3rem;
  --font-xl: 1.75rem;
}

html[data-theme="light"] {
  --bg-0: #FFF8FB;
  --bg-1: #FCEEF5;
  --bg-2: #F7D7E6;
  --bg-card: #FFFFFF;
  --bg-hover: #FCEEF5;
  --gold: #D97FA8;
  --gold-mid: #EFB4CC;
  --gold-light: #D97FA8;
  --gold-glow: rgba(217, 127, 168, 0.22);
  --text: #3A2A33;
  --text-soft: #7A6570;
  --text-dim: #BCA8B3;
  --line: #F3DDE8;
  --line-strong: #EFB4CC;
  --shadow: 0 16px 40px rgba(58, 42, 51, 0.06);
  --shadow-gold: 0 10px 28px rgba(217, 127, 168, 0.18);
  --page-glow: rgba(247, 215, 230, 0.7);
  --page-bottom: #FCEEF5;
}

html[data-theme="dark"] {
  --primary: #4a3040;
  --secondary: #3a2834;
  --accent: #8a5a70;
  --highlight: #EFB4CC;
  --bg-0: #1e161c;
  --bg-1: #261c24;
  --bg-2: #32242e;
  --bg-card: #2a2028;
  --bg-hover: #342830;
  --gold: #EFB4CC;
  --gold-mid: #D97FA8;
  --gold-light: #F7D7E6;
  --gold-glow: rgba(239, 180, 204, 0.22);
  --text: #FFF8FB;
  --text-soft: #D4C0CA;
  --text-dim: #9A8490;
  --line: rgba(243, 221, 232, 0.14);
  --line-strong: rgba(239, 180, 204, 0.35);
  --shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
  --shadow-gold: 0 8px 28px rgba(217, 127, 168, 0.2);
  --page-glow: rgba(217, 127, 168, 0.12);
  --page-bottom: #161016;
  --blush: #4a3040;
  --mist: #3a2834;
  --rose-deep: #EFB4CC;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

body {
  font-family: var(--font);
  font-size: var(--font-base);
  font-weight: 400;
  background: var(--bg-0);
  background-image:
    radial-gradient(ellipse 85% 50% at 0% 0%, rgba(247, 215, 230, 0.75), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 8%, rgba(252, 238, 245, 0.85), transparent 50%),
    linear-gradient(180deg, #FFF8FB 0%, #FCEEF5 50%, #F7D7E6 160%);
  color: var(--text);
  direction: rtl;
  min-height: 100vh;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

html[data-theme="dark"] body {
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--page-glow), transparent),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 50%, var(--page-bottom) 100%);
}

/* ============================================================
   اسکرول‌بار سفارشی
   ============================================================ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-2);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-mid);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-light);
}

::selection {
  background: var(--gold-mid);
  color: #fff;
}

a {
  color: var(--gold-light);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}
a:hover {
  color: var(--rose-deep);
}

html[data-theme="dark"] a:hover {
  color: var(--gold-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(1180px, 90%);
  margin: 0 auto;
}

/* ============================================================
   بنر خطای API
   ============================================================ */
.api-banner {
  position: fixed;
  top: var(--header);
  left: 0;
  right: 0;
  z-index: 999;
  background: #3b1212;
  border-bottom: 1px solid #7f1d1d;
  color: #fecaca;
  padding: 0.85rem 1rem;
  text-align: center;
  font-size: var(--font-sm);
  display: none;
  backdrop-filter: blur(8px);
}
.api-banner.show {
  display: block;
}

/* ============================================================
   هدر اصلی
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header);
  z-index: 1000;
  background: color-mix(in srgb, var(--bg-0) 92%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: min(1180px, calc(100% - 1.5rem));
  margin: 0 auto;
  min-width: 0;
}

.logo {
  font-size: var(--font-lg);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-family: var(--font-display);
  background: linear-gradient(135deg, var(--rose-deep), var(--gold-mid) 50%, #ff9eb8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-transform: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1 1 auto;
  max-width: min(52vw, 280px);
}
.logo .logo-short { display: none; }
html[data-theme="light"] .logo {
  background: linear-gradient(135deg, var(--rose-deep), var(--gold-mid) 50%, #ff9eb8);
  -webkit-background-clip: text;
  background-clip: text;
}

.nav-desktop {
  display: flex;
  gap: 2.5rem;
}
.nav-desktop a {
  color: var(--text-soft);
  font-size: var(--font-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  position: relative;
  padding-bottom: 4px;
}
.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--gold-mid);
  transition: width 0.3s var(--ease);
}
.nav-desktop a:hover::after,
.nav-desktop a.active::after {
  width: 100%;
}
.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--gold-light);
}

.header-actions {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex: 0 0 auto;
}

.icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-card) 80%, transparent);
  color: var(--text-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
  position: relative;
}
.icon-btn:hover {
  border-color: var(--gold-mid);
  color: var(--gold-light);
  box-shadow: 0 0 20px var(--gold-glow);
  transform: scale(1.05);
}
.icon-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

#btn-theme .icon-sun,
#btn-theme .icon-moon {
  position: absolute;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
html[data-theme="light"] #btn-theme .icon-sun {
  opacity: 0;
  transform: rotate(-40deg) scale(0.6);
  pointer-events: none;
}
html[data-theme="light"] #btn-theme .icon-moon {
  opacity: 1;
  transform: none;
}
html:not([data-theme="light"]) #btn-theme .icon-moon {
  opacity: 0;
  transform: rotate(40deg) scale(0.6);
  pointer-events: none;
}
html:not([data-theme="light"]) #btn-theme .icon-sun {
  opacity: 1;
  transform: none;
}

.cart-badge {
  position: absolute;
  top: -4px;
  left: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--gold), var(--rose-deep));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle {
  display: none;
}

#main-content {
  padding-top: var(--header);
  min-height: 100vh;
}

/* ============================================================
   صفحات (SPA)
   ============================================================ */
.page {
  display: none;
}
.page.active {
  display: block;
  animation: pageIn 0.5s var(--ease);
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   دکمه‌ها
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: var(--font-md);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.35s var(--ease);
}

.btn-gold {
  background: linear-gradient(135deg, #EFB4CC 0%, #D97FA8 52%, #c97098 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(217, 127, 168, 0.28);
  border: none;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(217, 127, 168, 0.35);
  filter: brightness(1.03);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.55);
  border: 2px solid var(--line-strong);
  color: var(--gold-light);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  background: rgba(232, 90, 140, 0.1);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-soft);
}
.btn-ghost:hover {
  color: var(--gold-light);
}

/* ============================================================
   بخش Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
  transform: scale(1.02);
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  transition: opacity 1.2s var(--ease), transform 8s linear;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(58, 42, 51, 0.58) 0%, rgba(217, 127, 168, 0.32) 48%, rgba(252, 238, 245, 0.15) 100%),
    linear-gradient(0deg, var(--bg-0) 0%, transparent 40%);
  display: flex;
  align-items: center;
}

.hero-content {
  padding: 2rem 0;
  max-width: 560px;
}
.hero-eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  color: var(--blush);
  margin-bottom: 1rem;
  font-weight: 600;
}
.hero-content h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 1.25rem;
  font-family: var(--font);
  text-shadow: 0 8px 28px rgba(80, 20, 50, 0.35);
}
.hero-content h1 span {
  color: #ffd0de;
  text-shadow: 0 0 24px rgba(255, 180, 200, 0.55);
}
.hero-content p {
  color: rgba(255, 240, 245, 0.92);
  font-size: var(--font-md);
  margin-bottom: 2rem;
  max-width: 440px;
}

.hero-dots {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
}
.hero-dot {
  width: 36px;
  height: 4px;
  border: none;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s;
}
.hero-dot.active {
  background: var(--gold-mid);
  width: 56px;
}

/* ============================================================
   مارکی (نوار متحرک)
   ============================================================ */
.marquee-wrap {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  padding: 0.9rem 0;
}
.marquee {
  display: flex;
  gap: 4rem;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}
.marquee span {
  color: var(--gold-light);
  font-size: var(--font-sm);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.marquee span::before {
  content: '◆ ';
  color: var(--gold-mid);
  opacity: 0.7;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(50%);
  }
}

/* ============================================================
   بخش‌ها
   ============================================================ */
.section {
  padding: 5rem 0;
}
.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-title .eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  color: var(--gold-mid);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-title h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  background: linear-gradient(135deg, #fff, var(--gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-title p {
  color: var(--text-dim);
  margin-top: 0.5rem;
  font-size: var(--font-md);
}

.section-featured {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

/* ============================================================
   دسته‌بندی
   ============================================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.category-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  cursor: pointer;
  border: 1px solid var(--line);
  transition: all 0.4s var(--ease);
}
.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(3, 3, 4, 0.92) 0%, transparent 55%);
  z-index: 1;
}
.category-card:hover {
  border-color: var(--gold-mid);
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.category-card:hover img {
  transform: scale(1.08);
}
.cat-label {
  position: absolute;
  bottom: 1.5rem;
  right: 0;
  left: 0;
  text-align: center;
  z-index: 2;
  font-weight: 600;
  font-size: var(--font-md);
  letter-spacing: 0.08em;
  color: var(--gold-light);
}

/* ============================================================
   محصولات
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 2rem;
}
.products-grid.list-view {
  grid-template-columns: 1fr;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s var(--ease);
}
.product-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}

.product-card.list-mode {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
}

.product-img-wrap {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg-2);
  overflow: hidden;
}
.product-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(74, 30, 48, 0.28) 100%);
  pointer-events: none;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.06);
}

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 6px 14px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 6px;
}
.badge-discount {
  background: rgba(232, 90, 140, 0.92);
  color: #fff;
  border: 1px solid rgba(255, 180, 200, 0.45);
}
.badge-new {
  background: rgba(255, 183, 197, 0.95);
  color: var(--rose-deep);
  border: 1px solid rgba(232, 90, 140, 0.35);
}

.product-info {
  padding: 1.5rem 1.5rem 1.75rem;
}
.product-info h3 {
  font-size: var(--font-md);
  font-weight: 600;
  margin-bottom: 0.65rem;
  color: var(--text);
  line-height: 1.5;
}
.product-price {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.price-current {
  color: var(--gold-light);
  font-weight: 700;
  font-size: var(--font-lg);
}
.price-old {
  color: var(--text-dim);
  font-size: var(--font-sm);
  text-decoration: line-through;
}

/* ============================================================
   مزایا
   ============================================================ */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.benefit-card {
  padding: 2.5rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.3s var(--ease);
}
.benefit-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-6px);
}
.benefit-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-mid);
  font-size: var(--font-lg);
}
.benefit-card h4 {
  color: var(--gold-light);
  font-size: var(--font-md);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}
.benefit-card p {
  color: var(--text-dim);
  font-size: var(--font-sm);
  line-height: 1.6;
}

/* ============================================================
   نظرات مشتریان
   ============================================================ */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.review-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
}
.review-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}
.review-stars {
  color: var(--gold-mid);
  font-size: 0.95rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}
.review-card p {
  color: var(--text-soft);
  font-size: var(--font-md);
  font-style: italic;
  margin-bottom: 1rem;
}
.review-card cite {
  color: var(--text-dim);
  font-size: var(--font-sm);
  font-style: normal;
}

/* ============================================================
   فروشگاه (فیلتر، جستجو، صفحه‌بندی)
   ============================================================ */
.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.filter-tab {
  padding: 0.65rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: transparent;
  color: var(--text-soft);
  font-family: var(--font);
  font-size: var(--font-sm);
  cursor: pointer;
  transition: all 0.25s;
}
.filter-tab:hover,
.filter-tab.active {
  border-color: var(--gold-mid);
  color: var(--gold-light);
  background: rgba(201, 162, 39, 0.08);
}

.search-box {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  max-width: 360px;
}
.search-box input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--font-md);
}
.search-box input:focus {
  outline: none;
  border-color: var(--gold-mid);
}

.view-toggle {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.view-toggle button {
  padding: 0.6rem 1rem;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font);
  font-size: var(--font-sm);
  cursor: pointer;
  transition: all 0.2s;
}
.view-toggle button.active {
  background: rgba(201, 162, 39, 0.12);
  color: var(--gold-light);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}
.pagination button {
  min-width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-soft);
  font-family: var(--font);
  font-size: var(--font-md);
  cursor: pointer;
  transition: all 0.2s;
}
.pagination button.active,
.pagination button:hover:not(:disabled) {
  border-color: var(--gold-mid);
  color: var(--gold-light);
}
.pagination button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ============================================================
   جزئیات محصول
   ============================================================ */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 3.5rem 0;
  align-items: start;
}
.product-detail-img {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 1;
  background: var(--bg-2);
}
.product-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-info h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
}
.product-detail-info .desc {
  color: var(--text-soft);
  margin: 1.5rem 0;
  font-size: var(--font-md);
}

.option-group {
  margin: 1.5rem 0;
}
.option-group label {
  display: block;
  font-size: var(--font-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.6rem;
}
.option-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.option-btn {
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-soft);
  font-family: var(--font);
  font-size: var(--font-md);
  cursor: pointer;
  transition: all 0.2s;
}
.option-btn.selected {
  border-color: var(--gold-mid);
  color: var(--gold-light);
  background: rgba(201, 162, 39, 0.1);
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty-control button {
  width: 46px;
  height: 46px;
  border: none;
  background: var(--bg-hover);
  color: var(--text);
  cursor: pointer;
  font-size: var(--font-lg);
  transition: all 0.2s;
}
.qty-control button:hover {
  background: var(--gold-mid);
  color: #0a0a0c;
}
.qty-control span,
.qty-control input {
  width: 52px;
  text-align: center;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: var(--font-md);
}

/* ============================================================
   سبد خرید و تسویه حساب
   ============================================================ */
.cart-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 2.5rem;
  padding: 2.5rem 0 4rem;
  align-items: start;
}

.cart-item,
.summary-box,
.order-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 1.25rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
  align-items: center;
}
.cart-item img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.summary-box {
  padding: 2rem;
  position: sticky;
  top: calc(var(--header) + 1.5rem);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  font-size: var(--font-md);
  color: var(--text-soft);
}
.summary-row.total {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: var(--font-lg);
  font-weight: 700;
  color: var(--gold-light);
}

.coupon-row {
  display: flex;
  gap: 0.5rem;
  margin: 1.25rem 0;
}
.coupon-row input {
  flex: 1;
  padding: 0.75rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--font-md);
}

/* ============================================================
   فرم‌ها
   ============================================================ */
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-size: var(--font-sm);
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--font-md);
  transition: all 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold-mid);
  box-shadow: 0 0 0 4px var(--gold-glow);
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 0.65rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
.payment-option:has(input:checked) {
  border-color: var(--gold-mid);
  background: rgba(201, 162, 39, 0.05);
}

.card-info-box {
  padding: 1.25rem;
  background: var(--bg-2);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  margin: 1rem 0;
  font-size: var(--font-md);
  color: var(--text-soft);
}
.card-info-box code {
  display: block;
  color: var(--gold-light);
  margin-top: 0.35rem;
  font-size: var(--font-md);
}

/* ============================================================
   احراز هویت
   ============================================================ */
.auth-box {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 2.5rem;
  background: linear-gradient(160deg, rgba(20, 20, 30, 0.95), rgba(10, 10, 16, 0.98));
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.auth-page-wrap {
  padding: 3rem 0 4rem;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(201, 162, 39, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(201, 162, 39, 0.05), transparent 50%);
}
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}
.auth-aside {
  padding: 1rem 0;
}
.auth-aside-eyebrow {
  font-size: var(--font-sm);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-mid);
  margin-bottom: 1rem;
}
.auth-aside-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.35;
}
.auth-aside-desc {
  color: var(--text-soft);
  line-height: 1.9;
  margin-bottom: 2rem;
}
.auth-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.auth-benefits li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text-soft);
  font-size: var(--font-md);
}
.auth-box-head {
  margin-bottom: 1.5rem;
}
.auth-box-head h2 {
  font-size: 1.35rem;
  color: var(--gold-light);
  margin-bottom: 0.35rem;
}
.auth-box-head p {
  color: var(--text-dim);
  font-size: var(--font-sm);
}
.input-with-icon {
  position: relative;
}
.input-with-icon .icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}
.input-with-icon input {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 2.75rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--font-md);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input-with-icon input:focus {
  outline: none;
  border-color: var(--gold-mid);
  box-shadow: 0 0 0 4px var(--gold-glow);
}
.btn-block {
  width: 100%;
  margin-top: 0.5rem;
}
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}
.auth-tab {
  flex: 1;
  padding: 0.9rem;
  border: none;
  background: none;
  color: var(--text-dim);
  font-family: var(--font);
  font-size: var(--font-md);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
}
.auth-tab.active {
  color: var(--gold-light);
  border-bottom-color: var(--gold-mid);
}

/* ============================================================
   رهگیری سفارش
   ============================================================ */
.track-box {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}
.track-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.track-form input {
  flex: 1;
  padding: 0.9rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--font-md);
}

.timeline {
  padding-right: 1.5rem;
  border-right: 2px solid var(--line);
  margin-right: 0.5rem;
}
.timeline-step {
  position: relative;
  padding: 0 1.5rem 2rem 0;
}
.timeline-step::before {
  content: '';
  position: absolute;
  right: -1.65rem;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 2px solid var(--line);
  transition: all 0.3s;
}
.timeline-step.done::before {
  background: var(--gold-mid);
  border-color: var(--gold-light);
  box-shadow: 0 0 10px var(--gold-glow);
}
.timeline-step.active h4 {
  color: var(--gold-light);
}
.timeline-step h4 {
  font-size: var(--font-md);
  margin-bottom: 0.25rem;
}
.timeline-step p {
  font-size: var(--font-sm);
  color: var(--text-dim);
}

.order-card {
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.order-card .status {
  display: inline-block;
  padding: 0.25rem 0.85rem;
  border-radius: 100px;
  font-size: 0.78rem;
  background: rgba(201, 162, 39, 0.12);
  color: var(--gold-light);
  border: 1px solid var(--line);
}

/* ============================================================
   وضعیت خالی (Empty State)
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--text-dim);
}
.empty-state .empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-mid);
  background: var(--bg-card);
}

/* ============================================================
   فوتر
   ============================================================ */
.site-footer {
  margin-top: 4rem;
  padding: 4rem 0 1.5rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-0) 0%, #050508 100%);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  align-items: start;
}
.footer-grid h4,
.footer-nav h4,
.footer-contact h4 {
  font-size: var(--font-sm);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-mid);
  margin-bottom: 1.25rem;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--gold-light);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1rem;
  text-decoration: none;
}
.footer-logo:hover {
  color: #fff;
}
.footer-brand p {
  color: var(--text-dim);
  font-size: var(--font-md);
  line-height: 1.9;
  max-width: 28rem;
}
.footer-links,
.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-soft);
  font-size: var(--font-md);
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
}
.footer-link:hover {
  color: var(--gold-light);
  transform: translateX(-3px);
}
.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-soft);
  font-size: var(--font-md);
  line-height: 1.6;
}
.footer-contact-list .icon {
  color: var(--gold-mid);
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.footer-copy {
  color: var(--text-dim);
  font-size: var(--font-sm);
  letter-spacing: 0.04em;
  margin: 0;
}
.developer-signature {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 100px;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.developer-signature:hover {
  color: var(--gold-light);
  border-color: var(--line);
  background: rgba(201, 162, 39, 0.06);
}
.developer-signature strong {
  color: var(--text-soft);
  font-weight: 600;
}
.developer-signature:hover strong {
  color: var(--gold-light);
}

/* ============================================================
   اعلان‌های Toast
   ============================================================ */
#toast-container {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.toast {
  padding: 1rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--gold-mid);
  border-radius: var(--radius-sm);
  color: var(--text);
  box-shadow: var(--shadow);
  animation: toastIn 0.35s var(--ease);
  font-size: var(--font-md);
}
.toast.error {
  border-color: #b91c1c;
  color: #fecaca;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   صفحه نتیجه پرداخت
   ============================================================ */
.payment-result-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--bg-0);
}
.payment-result-box {
  max-width: 480px;
  width: 100%;
  padding: 3.5rem 2.5rem;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.payment-result-box .result-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 300;
}
.payment-result-box.success .result-icon {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
}
.payment-result-box.error .result-icon {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.3);
}

/* ============================================================
   منوی موبایل
   ============================================================ */
.mobile-nav {
  display: none;
  position: fixed;
  top: calc(var(--header) + env(safe-area-inset-top, 0px));
  right: 0;
  left: 0;
  background: color-mix(in srgb, var(--bg-1) 96%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  flex-direction: column;
  gap: 0.35rem;
  z-index: 999;
  max-height: calc(100vh - var(--header));
  overflow-y: auto;
  box-shadow: var(--shadow);
}
.mobile-nav a {
  padding: 0.95rem 1rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
  min-height: 48px;
  display: flex;
  align-items: center;
}
.mobile-nav a:hover,
.mobile-nav a:active {
  color: var(--gold-light);
  background: color-mix(in srgb, var(--gold) 12%, transparent);
}
.mobile-nav.open {
  display: flex;
}

/* ============================================================
   دسترسی‌پذیری (Focus)
   ============================================================ */
:focus-visible {
  outline: 3px solid var(--gold-mid);
  outline-offset: 3px;
}

/* ============================================================
   واکنش‌گرایی
   ============================================================ */
@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .auth-aside {
    text-align: center;
  }
  .auth-benefits {
    align-items: center;
  }
  .cart-layout,
  .checkout-layout {
    grid-template-columns: 1fr 320px;
  }
}

@media (max-width: 768px) {
  :root {
    --header: 60px;
    --font-base: 16px;
  }

  .nav-desktop {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }

  .logo {
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    max-width: calc(100vw - 11.5rem);
  }
  .logo .logo-full { display: none; }
  .logo .logo-short { display: inline; }

  .icon-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }
  .icon-btn svg {
    width: 18px;
    height: 18px;
  }

  .header-inner {
    width: calc(100% - 1rem);
    gap: 0.35rem;
  }

  .hero {
    min-height: min(72vh, 560px);
  }
  .hero-content h1 {
    font-size: clamp(1.55rem, 7.5vw, 2.1rem);
    letter-spacing: 0.04em;
  }
  .hero-content p {
    font-size: 0.95rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
  }

  .container {
    width: calc(100% - 1.5rem);
  }

  .product-detail,
  .cart-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .product-card.list-mode {
    grid-template-columns: 1fr;
  }
  .cart-item {
    grid-template-columns: 90px 1fr;
  }
  .cart-item img {
    width: 90px;
    height: 90px;
  }
  .summary-box {
    position: static;
  }
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .auth-page-wrap {
    padding: 2rem 0 3rem;
  }
  .auth-box {
    padding: 1.75rem;
  }
  .guest-features {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 3rem 0;
  }
  .shop-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .search-box {
    max-width: 100%;
  }
  .filter-tabs {
    justify-content: center;
  }
  .view-toggle {
    align-self: center;
  }
}


/* ============================================================
   کارت سفارش مدرن (مشابه تصویر)
   ============================================================ */

.order-card-modern {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.order-card-modern:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
}

/* هدر سفارش */
.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 1rem;
}

.order-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.order-number {
    font-weight: 700;
    color: var(--gold-light);
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.order-date {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.order-header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.order-status {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.order-status.pending {
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.order-status.paid {
    background: rgba(52, 211, 153, 0.12);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.order-status.processing {
    background: rgba(96, 165, 250, 0.12);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.order-status.shipped {
    background: rgba(251, 146, 60, 0.12);
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, 0.2);
}

.order-status.delivered {
    background: rgba(74, 222, 128, 0.12);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.order-status.cancelled {
    background: rgba(248, 113, 113, 0.12);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.2);
}

.order-tracking-badge {
    font-size: 0.8rem;
    color: var(--text-soft);
    background: var(--bg-2);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    border: 1px solid var(--line);
}

/* جدول محصولات */
.order-items-table {
    margin-bottom: 1rem;
}

.order-items-header {
    display: grid;
    grid-template-columns: 3fr 1fr 1.5fr 1.5fr;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.order-item-row {
    display: grid;
    grid-template-columns: 3fr 1fr 1.5fr 1.5fr;
    gap: 0.5rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.9rem;
    color: var(--text-soft);
}

.order-item-row:last-child {
    border-bottom: none;
}

.item-name {
    color: #fff;
}

.item-qty {
    color: var(--text-dim);
    text-align: center;
}

.item-price {
    color: var(--text-soft);
}

.item-total {
    color: var(--gold-light);
    font-weight: 600;
}

/* جمع‌بندی مالی */
.order-summary {
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
    margin-top: 0.5rem;
}

.order-summary .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.2rem 0;
    font-size: 0.9rem;
    color: var(--text-soft);
}

.order-summary .summary-row.discount {
    color: #4ade80;
}

.order-summary .summary-row.total {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gold-light);
    border-top: 1px solid var(--line);
    padding-top: 0.6rem;
    margin-top: 0.3rem;
}

/* واکنش‌گرایی */
@media (max-width: 768px) {
    .order-items-header,
    .order-item-row {
        grid-template-columns: 2fr 0.8fr 1fr 1fr;
        font-size: 0.8rem;
        gap: 0.3rem;
    }

    .order-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .order-header-left {
        justify-content: space-between;
    }

    .order-header-right {
        justify-content: space-between;
    }

    .order-summary .summary-row {
        font-size: 0.85rem;
    }

    .order-card-modern {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .order-items-header,
    .order-item-row {
        grid-template-columns: 1.5fr 0.6fr 0.8fr 0.8fr;
        font-size: 0.7rem;
        gap: 0.2rem;
    }

    .order-items-header span:last-child,
    .order-item-row .item-total {
        text-align: left;
    }
}

/* ============================================================
   آیکون‌های SVG
   ============================================================ */
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 22px; height: 22px; }
.icon-xl { width: 30px; height: 30px; }

/* ============================================================
   حساب کاربری — به‌روز
   ============================================================ */
.guest-icon-wrap,
.account-avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.14), rgba(201, 162, 39, 0.04));
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
}
.account-avatar {
  margin: 0;
}
.guest-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.guest-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
}
.guest-feature .icon {
  color: var(--gold-mid);
}
.logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.section-header-icon {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}
.section-header-icon .icon {
  color: var(--gold-mid);
  margin-top: 0.15rem;
}
.empty-icon svg {
  color: var(--gold-mid);
}



/* ============================================================
   Soft Blush Boutique — لایه نهایی ریدیزاین
   ============================================================ */
.site-header {
  background: color-mix(in srgb, var(--bg-0) 78%, transparent);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(220, 120, 150, 0.08);
}

.nav-desktop a {
  font-weight: 500;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.nav-desktop a:hover,
.nav-desktop a.active {
  background: rgba(232, 90, 140, 0.1);
  color: var(--rose-deep);
}

.icon-btn {
  border-radius: 16px !important;
  border: 1px solid var(--line) !important;
  background: rgba(255, 255, 255, 0.65) !important;
  box-shadow: 0 4px 14px rgba(220, 120, 150, 0.1);
}
html[data-theme="dark"] .icon-btn {
  background: rgba(255, 255, 255, 0.06) !important;
}
.icon-btn:hover {
  border-color: var(--line-strong) !important;
  box-shadow: 0 6px 18px var(--gold-glow);
  color: var(--gold) !important;
}

.cart-badge {
  background: linear-gradient(135deg, var(--gold), var(--rose-deep)) !important;
  color: #fff !important;
  border: none !important;
}

.product-card,
.category-card,
.summary-box,
.auth-box,
.checkout-form,
.card-info-box,
.order-card-modern,
.track-box,
.empty-state {
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow);
  border-color: var(--line) !important;
}

.product-card {
  background: linear-gradient(180deg, #fff 0%, #fff8fb 100%);
  overflow: hidden;
}
html[data-theme="dark"] .product-card {
  background: var(--bg-card);
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 50px rgba(220, 100, 140, 0.2);
  border-color: var(--line-strong) !important;
}

.category-card {
  border-radius: 28px !important;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(220, 120, 150, 0.16);
}
.category-card .cat-label,
.category-card span.cat-label {
  background: linear-gradient(180deg, transparent, rgba(74, 30, 48, 0.72));
  font-weight: 700;
}

.section-title h2,
.page-title,
.auth-box-head h2 {
  color: var(--text);
  letter-spacing: -0.01em;
}
.section-title h2 span,
.section-title .accent {
  color: var(--gold);
}

.marquee-wrap {
  background: linear-gradient(90deg, #ffe4ee, #fff0f5, #ffe4ee);
  border-color: var(--line);
}
html[data-theme="dark"] .marquee-wrap {
  background: var(--bg-2);
}
.marquee span {
  color: var(--rose-deep) !important;
  font-weight: 600;
}

.footer,
.site-footer {
  background: linear-gradient(180deg, transparent, rgba(255, 220, 230, 0.55));
  border-top: 1px solid var(--line);
}
html[data-theme="dark"] .footer,
html[data-theme="dark"] .site-footer {
  background: linear-gradient(180deg, transparent, rgba(40, 20, 30, 0.9));
}

input, select, textarea {
  border-radius: var(--radius-sm) !important;
  border-color: var(--line) !important;
  background: rgba(255, 255, 255, 0.85) !important;
}
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background: rgba(255, 255, 255, 0.04) !important;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--gold-mid) !important;
  box-shadow: 0 0 0 4px rgba(232, 90, 140, 0.15) !important;
}

.card-info-box {
  background: linear-gradient(145deg, #fff5f8, #ffe8f0) !important;
  border: 1px dashed var(--line-strong) !important;
}
html[data-theme="dark"] .card-info-box {
  background: rgba(232, 90, 140, 0.08) !important;
}
.card-info-box code {
  color: var(--rose-deep) !important;
  font-weight: 600;
}

.mobile-nav {
  background: color-mix(in srgb, var(--bg-0) 94%, transparent) !important;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.mobile-nav a {
  border-radius: 14px;
}
.mobile-nav a:hover,
.mobile-nav a.active {
  background: rgba(232, 90, 140, 0.12);
  color: var(--rose-deep);
}

.toast, .toast-success, .toast-error {
  border-radius: 16px !important;
}

@keyframes blushFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.hero-content .btn-gold {
  animation: blushFloat 4.5s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .hero-content .btn-gold { animation: none; }
  .marquee { animation: none !important; }
}

.price-current, .product-price .current, .product-price strong {
  color: var(--rose-deep) !important;
  font-weight: 800;
}

.filter-chip, .chip, .shop-filters button {
  border-radius: 999px !important;
}

/* ============================================================
   Soft blush polish — legacy layer (overridden by boutique.css)
   ============================================================ */
.site-header {
  background: color-mix(in srgb, #fff7fa 88%, transparent);
  border-bottom: 1px solid rgba(232, 90, 140, 0.12);
  box-shadow: 0 8px 30px rgba(220, 120, 160, 0.08);
}
html[data-theme="dark"] .site-header {
  background: color-mix(in srgb, var(--bg-0) 90%, transparent);
}

.nav-desktop a {
  color: var(--text-soft);
  font-weight: 500;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  transition: all 0.25s var(--ease);
}
.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--rose-deep);
  background: rgba(232, 90, 140, 0.1);
}

.icon-btn {
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--gold-light);
  box-shadow: 0 4px 14px rgba(220, 120, 160, 0.1);
}
.icon-btn:hover {
  background: rgba(255, 183, 197, 0.45);
  border-color: var(--line-strong);
  color: var(--rose-deep);
}
html[data-theme="dark"] .icon-btn {
  background: rgba(255, 255, 255, 0.06);
}

.cart-badge {
  background: linear-gradient(135deg, var(--gold), var(--rose-deep)) !important;
  color: #fff !important;
}

.product-card,
.summary-box,
.auth-box,
.checkout-form,
.card-info-box,
.track-box,
.account-panel,
.order-card-modern {
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow);
  border-color: var(--line) !important;
}

.product-card:hover {
  box-shadow: 0 22px 50px rgba(220, 100, 150, 0.2);
  border-color: rgba(232, 90, 140, 0.35) !important;
}

.category-card {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(220, 120, 160, 0.14);
  border: 2px solid rgba(255, 255, 255, 0.7);
}
.category-card .cat-label,
.cat-label {
  background: linear-gradient(180deg, transparent, rgba(74, 30, 48, 0.72));
  font-weight: 700;
  letter-spacing: 0.04em;
}

.section-title h2,
.page-title,
.auth-box-head h2 {
  color: var(--text);
  font-weight: 800;
}
.section-title h2::after,
.section-title::after {
  background: linear-gradient(90deg, var(--blush), var(--gold), transparent);
}

.marquee-wrap {
  background: linear-gradient(90deg, #ffe4ee, #fff0f5, #ffe4ee);
  border-color: rgba(232, 90, 140, 0.12);
}
html[data-theme="dark"] .marquee-wrap {
  background: var(--bg-2);
}
.marquee span {
  color: var(--rose-deep) !important;
  font-weight: 600;
}

.footer,
.site-footer {
  background: linear-gradient(180deg, transparent, rgba(255, 220, 230, 0.65));
  border-top: 1px solid var(--line);
}
html[data-theme="dark"] .footer,
html[data-theme="dark"] .site-footer {
  background: linear-gradient(180deg, transparent, rgba(40, 20, 30, 0.9));
}

input, select, textarea {
  border-radius: var(--radius-sm) !important;
  border-color: var(--line) !important;
  background: rgba(255, 255, 255, 0.85) !important;
  color: var(--text) !important;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--gold-mid) !important;
  box-shadow: 0 0 0 4px rgba(232, 90, 140, 0.15) !important;
}
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background: rgba(255, 255, 255, 0.05) !important;
}

.mobile-nav {
  background: rgba(255, 247, 250, 0.96) !important;
  border-color: var(--line) !important;
}
html[data-theme="dark"] .mobile-nav {
  background: rgba(26, 18, 24, 0.96) !important;
}

.hero {
  border-radius: 0 0 36px 36px;
  overflow: hidden;
}

@keyframes blushFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.07);
}
.btn-gold {
  animation: none;
}
.logo:hover {
  filter: brightness(1.08);
}

/* تم روشن پیش‌فرض برای لوگو در حالت light */
html[data-theme="light"] .logo {
  background: linear-gradient(135deg, var(--rose-deep), var(--gold-mid) 50%, #ff9eb8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
