/* =====================================================================
   شایسته — سیستمِ طراحی
   پالت: صورتیِ پاستلی، کِرم، طلاییِ ملایم و کمی یاسی. همه‌چیز گرد، نرم و روشن.
   ===================================================================== */

/* ===== فونت (Vazirmatn با ارقامِ فارسی، میزبانیِ محلی) ===== */
@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/vazirmatn/Vazirmatn-FD-NL-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/vazirmatn/Vazirmatn-FD-NL-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/vazirmatn/Vazirmatn-FD-NL-Bold.woff2") format("woff2");
  font-weight: 600 700;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/vazirmatn/Vazirmatn-FD-NL-ExtraBold.woff2") format("woff2");
  font-weight: 800 900;
  font-display: swap;
}

/* ===== توکن‌ها ===== */
:root {
  --pink-50: #fff5f8;
  --pink-100: #ffe6ef;
  --pink-200: #ffcddd;
  --pink-300: #ffabc6;
  --pink-400: #f786ad;
  --pink-500: #e8648f;
  --pink-600: #cc4677;
  --pink-700: #a8325e;

  --lilac-100: #f3ecff;
  --lilac-300: #d4c2f7;
  --lilac-500: #a58ae0;
  --peach-100: #fff1e8;
  --mint-100: #e8f7f1;

  --gold: #d6ad63;
  --gold-light: #f6e6c6;
  --gold-dark: #a9823f;

  --cream: #fffaf7;
  --surface: #ffffff;
  --surface-muted: #fdf1f5;
  --ink: #3e2a36;
  --ink-soft: #86707e;
  --line: #f6dde7;

  --success: #2a7a4f;
  --success-bg: #e6f6ed;
  --danger: #b03a4a;
  --danger-bg: #fde8ea;
  --warning: #7a5a14;
  --warning-bg: #fdf6e3;

  --grad-pink: linear-gradient(135deg, #ff9fc0 0%, #f0709c 55%, #e25b8c 100%);
  --grad-soft: linear-gradient(135deg, #fff0f5 0%, #fdf4ff 50%, #fff6ee 100%);
  --grad-gold: linear-gradient(135deg, #f6e6c6, #e7c386);

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --shadow-soft: 0 12px 34px rgba(232, 100, 143, 0.13);
  --shadow-lift: 0 20px 44px rgba(232, 100, 143, 0.22);
  --shadow-card: 0 6px 20px rgba(62, 42, 54, 0.06);
  --shadow-inset: inset 0 0 0 1px var(--line);

  --fs-xs: 0.8rem;
  --fs-sm: 0.9rem;
  --fs-base: 1rem;
  --fs-md: 1.12rem;
  --fs-lg: 1.35rem;
  --fs-xl: clamp(1.5rem, 3vw, 2rem);
  --fs-2xl: clamp(1.9rem, 4.2vw, 2.8rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4.5rem;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-base: 240ms;

  --header-h: 72px;
}

/* ===== پایه ===== */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.8;
  color: var(--ink);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  color: var(--ink);
  line-height: 1.45;
}

a {
  color: var(--pink-600);
  text-decoration: none;
  transition: color var(--duration-fast);
}

a:hover {
  color: var(--pink-700);
}

img {
  max-width: 100%;
}

::selection {
  background: var(--pink-200);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--pink-300);
  outline-offset: 2px;
  border-radius: 6px;
}

.container {
  max-width: 1240px;
  padding-inline: 16px;
}

.site-main {
  min-height: 55vh;
}

.skip-link {
  position: absolute;
  top: -100px;
  right: 16px;
  z-index: 2000;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 8px;
  color: #fff;
}

/* ===== دکمه‌ها ===== */
.btn {
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.4rem;
  transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-base), background var(--duration-base), color var(--duration-fast);
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
}

.btn-shayeste {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--grad-pink);
  border: 0;
  box-shadow: 0 8px 20px rgba(232, 100, 143, 0.32);
}

.btn-shayeste::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(120%);
  transition: transform 700ms var(--ease-out);
}

.btn-shayeste:hover,
.btn-shayeste:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(232, 100, 143, 0.42);
}

.btn-shayeste:hover::after {
  transform: translateX(-120%);
}

.btn-shayeste:active {
  transform: translateY(0) scale(0.98);
  color: #fff;
}

.btn-shayeste:disabled,
.btn-shayeste.disabled {
  background: #e9d6de;
  color: #fff;
  box-shadow: none;
  transform: none;
  opacity: 1;
}

.btn-soft {
  color: var(--pink-700);
  background: var(--pink-100);
  border: 0;
}

.btn-soft:hover {
  color: var(--pink-700);
  background: var(--pink-200);
  transform: translateY(-1px);
}

.btn-outline-shayeste {
  color: var(--pink-600);
  background: rgba(255, 255, 255, 0.75);
  border: 2px solid var(--pink-300);
}

.btn-outline-shayeste:hover {
  color: #fff;
  background: var(--pink-500);
  border-color: var(--pink-500);
}

.btn-link {
  font-weight: 600;
  color: var(--pink-600);
  text-decoration: none;
}

/* ===== فرم‌ها ===== */
.form-label {
  font-weight: 600;
  font-size: var(--fs-sm);
  margin-bottom: 0.35rem;
}

.form-control,
.form-select {
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background-color: #fff;
  padding: 0.6rem 0.9rem;
  color: var(--ink);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.form-control-sm,
.form-select-sm {
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-xs);
}

/* جا برایِ فلشِ دراپ‌داون (در RTL سمتِ چپ) تا متن زیرِ آن نرود */
.form-select {
  padding-inline-end: 2.6rem;
  background-position: left 0.85rem center;
  text-overflow: ellipsis;
}

.form-select-sm {
  padding-inline-end: 2.2rem;
  background-position: left 0.6rem center;
}

.form-control::placeholder {
  color: #bba8b3;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--pink-300);
  box-shadow: 0 0 0 4px rgba(255, 171, 198, 0.3);
}

.form-check-input:checked {
  background-color: var(--pink-500);
  border-color: var(--pink-500);
}

.form-check-input:focus {
  box-shadow: 0 0 0 4px rgba(255, 171, 198, 0.3);
  border-color: var(--pink-300);
}

.text-danger {
  color: var(--danger) !important;
}

.validation-summary-errors ul {
  margin: 0 0 var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: var(--danger-bg);
  border-radius: var(--radius-sm);
  list-style: none;
}

.validation-summary-valid {
  display: none;
}

/* ===== نوارِ اعلان ===== */
.announce-bar {
  background: var(--grad-pink);
  color: #fff;
  text-align: center;
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 0.45rem 1rem;
  line-height: 1.6;
}

.announce-bar a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 255, 255, 0.6);
}

/* ===== هدر ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--duration-base), border-color var(--duration-base);
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 24px rgba(232, 100, 143, 0.08);
}

.header-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  flex-shrink: 0;
}

.brand:hover {
  color: var(--ink);
}

.brand-logo {
  height: 60px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--grad-pink);
  color: #fff;
  box-shadow: 0 6px 16px rgba(232, 100, 143, 0.35);
  transform: rotate(-6deg);
  transition: transform var(--duration-base) var(--ease-bounce);
}

.brand:hover .brand-mark {
  transform: rotate(6deg) scale(1.05);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 1.45rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink-600), var(--pink-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box input {
  width: 100%;
  border: 1.5px solid var(--line);
  background: var(--surface-muted);
  border-radius: var(--radius-pill);
  padding: 0.62rem 1.1rem 0.62rem 3rem;
  font-size: var(--fs-sm);
  color: var(--ink);
  transition: border-color var(--duration-fast), background var(--duration-fast), box-shadow var(--duration-fast);
  -webkit-appearance: none;
  appearance: none;
}

.search-box input::placeholder {
  color: #b59cab;
}

.search-box input:focus {
  outline: none;
  background: #fff;
  border-color: var(--pink-300);
  box-shadow: 0 0 0 4px rgba(255, 171, 198, 0.28);
}

.search-box button {
  position: absolute;
  left: 5px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--grad-pink);
  color: #fff;
  transition: transform var(--duration-fast);
}

.search-box button:hover {
  transform: scale(1.06);
}

.search-box button svg {
  width: 18px;
  height: 18px;
}

.header-search {
  flex: 1;
  max-width: 520px;
  margin-inline: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.icon-btn {
  position: relative;
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 0;
  background: var(--pink-50);
  color: var(--pink-600);
  transition: background var(--duration-fast), transform var(--duration-fast) var(--ease-bounce), color var(--duration-fast);
}

.icon-btn:hover,
.icon-btn.is-active {
  background: var(--pink-100);
  color: var(--pink-700);
  transform: translateY(-2px);
}

.icon-btn svg {
  width: 23px;
  height: 23px;
}

.cart-btn {
  background: var(--grad-pink);
  color: #fff;
  box-shadow: 0 8px 18px rgba(232, 100, 143, 0.32);
}

.cart-btn:hover,
.cart-btn.is-active {
  background: var(--grad-pink);
  color: #fff;
}

.cart-badge {
  position: absolute;
  top: -4px;
  left: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--pink-600);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(62, 42, 54, 0.18);
  animation: badge-pop 400ms var(--ease-bounce);
}

@keyframes badge-pop {
  from { transform: scale(0.4); }
  to { transform: scale(1); }
}

.menu-toggle {
  display: none;
}

/* منویِ اصلی (دسکتاپ) */
.main-nav {
  border-top: 1px solid var(--line);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list > li {
  position: relative;
}

.main-nav .nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.85rem 0.9rem;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

.main-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 6px;
  right: 50%;
  width: 22px;
  height: 6px;
  transform: translateX(50%) scaleX(0);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 6'%3E%3Cpath d='M1 3c2.5-2.6 5-2.6 7 0s4.5 2.6 7 0 4.5-2.6 6 0' fill='none' stroke='%23e8648f' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform var(--duration-base) var(--ease-bounce);
}

.main-nav .nav-link:hover {
  color: var(--pink-600);
}

.main-nav .nav-link:hover::after,
.main-nav .nav-link.is-active::after {
  transform: translateX(50%) scaleX(1);
}

.main-nav .nav-link.is-active {
  color: var(--pink-600);
  font-weight: 800;
}

.caret {
  width: 14px;
  height: 14px;
  transition: transform var(--duration-base);
}

.has-dropdown:hover .caret,
.has-dropdown:focus-within .caret {
  transform: rotate(180deg);
}

.mega-menu {
  position: absolute;
  top: 100%;
  right: -12px;
  width: min(640px, 90vw);
  padding: var(--space-4);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--duration-base), transform var(--duration-base) var(--ease-out), visibility var(--duration-base);
  z-index: 20;
}

.has-dropdown:hover .mega-menu,
.has-dropdown:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: var(--space-3);
}

.mega-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.4rem;
  border-radius: var(--radius-md);
  color: var(--ink);
  font-weight: 700;
  font-size: var(--fs-sm);
  text-align: center;
  transition: background var(--duration-fast), transform var(--duration-fast);
}

.mega-item img {
  width: 100%;
  aspect-ratio: 2.4 / 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.mega-item:hover {
  background: var(--pink-50);
  color: var(--pink-600);
  transform: translateY(-2px);
}

.mega-all {
  display: block;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px dashed var(--line);
  text-align: center;
  font-weight: 700;
  font-size: var(--fs-sm);
}

.mobile-search {
  display: none;
}

/* منویِ کشویی (موبایل) */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(62, 42, 54, 0.35);
  backdrop-filter: blur(2px);
  animation: fade-in var(--duration-base);
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  width: min(86vw, 360px);
  overflow-y: auto;
  padding: var(--space-4);
  background: var(--cream);
  box-shadow: -12px 0 40px rgba(62, 42, 54, 0.18);
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform 320ms var(--ease-out), visibility 320ms;
}

.mobile-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.drawer-links a {
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
  color: var(--ink);
  font-weight: 700;
}

.drawer-links a.is-active,
.drawer-links a:hover {
  background: var(--pink-100);
  color: var(--pink-700);
}

.drawer-title {
  margin: var(--space-5) 0 var(--space-2);
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--ink-soft);
}

.drawer-cats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.drawer-cats a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: var(--fs-sm);
  text-align: center;
  box-shadow: var(--shadow-card);
}

.drawer-cats img {
  width: 100%;
  aspect-ratio: 2.4 / 1;
  object-fit: cover;
  border-radius: var(--radius-xs);
}

.mobile-drawer .social-links {
  margin-top: var(--space-5);
  justify-content: center;
}

@media (max-width: 991.98px) {
  :root {
    --header-h: 64px;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .main-nav,
  .header-search,
  .header-track {
    display: none;
  }

  .header-row {
    justify-content: space-between;
    gap: var(--space-2);
  }

  .brand {
    margin-inline: auto;
  }

  .brand-logo {
    height: 46px;
    max-width: 170px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-name {
    font-size: 1.3rem;
  }

  .brand-tagline {
    display: none;
  }

  .mobile-search {
    display: flex;
    padding: 0 16px 10px;
  }

  .icon-btn {
    width: 42px;
    height: 42px;
  }
}

/* ===== شبکه‌هایِ اجتماعی ===== */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.social-links a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--pink-600);
  box-shadow: var(--shadow-card);
  transition: transform var(--duration-fast) var(--ease-bounce), background var(--duration-fast), color var(--duration-fast);
}

.social-links a:hover {
  transform: translateY(-3px) rotate(-6deg);
  background: var(--pink-500);
  color: #fff;
}

.social-links svg {
  width: 20px;
  height: 20px;
}

/* ===== Hero slider =====
   ارتفاعِ اسلایدر ثابت است (نه وابسته به متن)، پس همه‌ی اسلایدها هم‌قد می‌مانند.
   ترک با scroll-snap حرکت می‌کند: لمس به‌صورتِ بومی، موس با کشیدن (در JS). */
.hero {
  position: relative;
  --hero-h: clamp(380px, 40vw, 560px);
}

.hero-track {
  display: flex;
  height: var(--hero-h);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
}

.hero-track::-webkit-scrollbar {
  display: none;
}

.hero-track.is-dragging {
  scroll-snap-type: none;
  cursor: grabbing;
  user-select: none;
}

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  background-color: var(--pink-50);
}

.hero-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.hero-slide-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-card {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  width: min(520px, 44%);
  max-height: calc(var(--hero-h) - 96px);
  overflow: hidden;
  text-align: center;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-5);
  box-shadow: var(--shadow-soft);
}

.hero-pos-center .hero-card {
  inset-inline: 0;
  margin-inline: auto;
}

.hero-pos-right .hero-card {
  right: 8%;
}

.hero-pos-left .hero-card {
  left: 8%;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.8);
  color: var(--pink-600);
  font-weight: 700;
  font-size: var(--fs-xs);
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-3);
}

.hero-title {
  font-weight: 800;
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  color: var(--pink-600);
  line-height: 1.35;
  margin-bottom: var(--space-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-text {
  color: var(--ink-soft);
  font-size: var(--fs-md);
  line-height: 1.8;
  margin: 0 0 var(--space-4);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-card > :last-child {
  margin-bottom: 0;
}

.hero-nav {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--pink-600);
  box-shadow: var(--shadow-card);
  transition: background var(--duration-fast), transform var(--duration-fast);
}

.hero-nav:hover {
  background: #fff;
}

.hero-nav:active {
  transform: translateY(-50%) scale(0.94);
}

.hero-nav svg {
  width: 20px;
  height: 20px;
}

/* در RTL «قبلی» سمتِ راست و «بعدی» سمتِ چپ است */
.hero-nav-prev {
  right: 16px;
}

.hero-nav-next {
  left: 16px;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.6);
}

.hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--pink-500);
  opacity: 0.35;
  transition: width 220ms var(--ease-out), opacity 220ms;
}

.hero-dot.active {
  width: 22px;
  opacity: 1;
}

@media (max-width: 576px) {
  .hero {
    --hero-h: 460px;
  }

  /* در موبایل متن پایینِ اسلاید، بالایِ نوارِ کنترل‌ها */
  .hero-card,
  .hero-pos-right .hero-card,
  .hero-pos-left .hero-card,
  .hero-pos-center .hero-card {
    top: auto;
    bottom: 60px;
    left: 12px;
    right: 12px;
    width: auto;
    margin: 0;
    transform: none;
    max-height: calc(var(--hero-h) - 80px);
    padding: var(--space-4);
  }

  .hero-title {
    font-size: 1.35rem;
  }

  .hero-text {
    font-size: var(--fs-sm);
    -webkit-line-clamp: 3;
    margin-bottom: var(--space-3);
  }

  .hero-card .btn-lg {
    padding: 0.5rem 1.25rem;
    font-size: var(--fs-base);
  }

  .hero-nav {
    top: auto;
    bottom: 10px;
    transform: none;
    width: 38px;
    height: 38px;
  }

  .hero-nav:active {
    transform: scale(0.94);
  }

  .hero-nav-prev {
    right: 12px;
  }

  .hero-nav-next {
    left: 12px;
  }

  .hero-dots {
    bottom: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-dot {
    transition: none;
  }
}

/* ===== نوارِ اعتماد (زیرِ اسلایدر) ===== */
.trust-strip {
  position: relative;
  margin-top: -28px;
  z-index: 5;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  padding: var(--space-3);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  transition: background var(--duration-fast);
}

.trust-item:hover {
  background: var(--pink-50);
}

.trust-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--pink-600);
}

.trust-icon svg {
  width: 24px;
  height: 24px;
}

.trust-item:nth-child(1) .trust-icon { background: var(--pink-100); }
.trust-item:nth-child(2) .trust-icon { background: var(--lilac-100); color: #7b5bc4; }
.trust-item:nth-child(3) .trust-icon { background: var(--mint-100); color: #2f8a64; }
.trust-item:nth-child(4) .trust-icon { background: var(--peach-100); color: #c26a3a; }

.trust-text strong {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 800;
  line-height: 1.5;
}

.trust-text span {
  display: block;
  font-size: var(--fs-xs);
  color: var(--ink-soft);
  line-height: 1.5;
}

@media (max-width: 991.98px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .trust-strip {
    margin-top: 12px;
  }

  .trust-grid {
    gap: var(--space-2);
    padding: var(--space-2);
  }

  /* در موبایل آیکن بالا و متن زیرش، همه وسط‌چین تا در هر چهار خانه هم‌تراز بمانند */
  .trust-item {
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-2);
  }

  .trust-icon {
    width: 44px;
    height: 44px;
  }
}

/* ===== عنوانِ بخش‌ها ===== */
.home-section {
  padding-block: var(--space-8) var(--space-4);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.section-head-text {
  min-width: 0;
}

/* برچسبِ کوچک بالا، عنوانِ بزرگ زیرش */
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.15rem;
  color: var(--pink-500);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.section-eyebrow::before {
  content: "✦";
  color: var(--gold);
}

.section-title {
  position: relative;
  display: inline-block;
  margin: 0.1rem 0 0;
  font-size: var(--fs-xl);
  font-weight: 900;
  padding-bottom: 0.55rem;
}

.section-title::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 72px;
  height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 10'%3E%3Cpath d='M2 5c4-4 8-4 12 0s8 4 12 0 8-4 12 0 8 4 12 0 8-4 12 0 6 3 8 1' fill='none' stroke='%23f786ad' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right center / contain;
}

.section-head-center {
  justify-content: center;
  text-align: center;
}

.section-head-center .section-title::after {
  right: 50%;
  transform: translateX(50%);
}

.section-link {
  font-weight: 700;
  font-size: var(--fs-sm);
  white-space: nowrap;
}

/* ===== اسلایدرهایِ افقیِ محصول/دسته ===== */
.slider-nav {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
}

.slider-arrow-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--pink-600);
  box-shadow: var(--shadow-card);
  transition: transform var(--duration-fast) var(--ease-bounce), background var(--duration-fast), color var(--duration-fast);
}

.slider-arrow-btn:hover {
  background: var(--pink-500);
  color: #fff;
  transform: scale(1.06);
}

.slider-arrow-btn svg {
  width: 20px;
  height: 20px;
}

.product-slider-wrap {
  position: relative;
  margin-inline: -16px;
}

.product-slider {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px;
  padding: 6px 16px 18px;
  scrollbar-width: none;
  cursor: grab;
}

.product-slider::-webkit-scrollbar {
  display: none;
}

.product-slider.is-dragging {
  scroll-snap-type: none;
  cursor: grabbing;
  user-select: none;
}

.product-slider > * {
  flex: 0 0 calc((100% - 3 * var(--space-4)) / 4);
  scroll-snap-align: start;
}

@media (max-width: 991.98px) {
  .product-slider > * {
    flex-basis: calc((100% - 2 * var(--space-4)) / 3);
  }
}

@media (max-width: 576px) {
  .product-slider {
    gap: var(--space-3);
  }

  .product-slider > * {
    flex-basis: 44%;
  }
}

/* بعد از قوانینِ product-slider تا در موبایل هم اندازه‌ی خودش را بگیرد (قبلاً یک‌سوم می‌ماند و ریز بود). */
.category-slider > * {
  flex-basis: calc((100% - 2 * var(--space-4)) / 3);
}

@media (max-width: 991.98px) {
  .category-slider > * {
    flex-basis: calc((100% - var(--space-4)) / 2);
  }
}

@media (max-width: 576px) {
  .category-slider > * {
    flex-basis: 82%;
  }
}

.category-banner-card {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base);
}

.category-banner-card img {
  display: block;
  width: 100%;
  aspect-ratio: 2.4 / 1;
  object-fit: cover;
  -webkit-user-drag: none;
}

.category-banner-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.category-banner-empty {
  aspect-ratio: 2.4 / 1;
  display: grid;
  place-items: center;
  background: var(--grad-soft);
  font-weight: 800;
  font-size: var(--fs-lg);
  color: var(--pink-600);
}

/* ===== کارتِ محصول ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: var(--space-5) var(--space-4);
}

@media (max-width: 576px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4) var(--space-3);
  }
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: var(--shadow-card);
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
}

.product-card-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  background: var(--pink-50);
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms var(--ease-out);
  -webkit-user-drag: none;
}

.product-card:hover .product-card-img {
  transform: scale(1.06);
}

.product-card.is-soldout .product-card-img {
  filter: grayscale(0.55) opacity(0.75);
}

.pc-badges {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.pc-badge {
  padding: 0.12rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.6;
  backdrop-filter: blur(6px);
}

.pc-badge-new {
  background: rgba(255, 255, 255, 0.9);
  color: var(--pink-600);
}

.pc-badge-soldout {
  background: rgba(62, 42, 54, 0.72);
  color: #fff;
}

.pc-badge-featured {
  background: var(--grad-gold);
  color: #6e5222;
}

.product-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 10px 8px 4px;
}

.product-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.6;
  margin: 0 0 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.2em;
}

.product-card-title a {
  color: var(--ink);
}

.product-card-title a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.product-card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.product-card-price {
  color: var(--pink-600);
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.4;
}

.product-card-price small {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.product-card-price .from {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-inline-end: 2px;
}

.product-card-go {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pink-100);
  color: var(--pink-600);
  transition: background var(--duration-fast), color var(--duration-fast), transform var(--duration-fast) var(--ease-bounce);
}

.product-card:hover .product-card-go {
  background: var(--pink-500);
  color: #fff;
  transform: rotate(-8deg) scale(1.05);
}

.product-card-go svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 576px) {
  .product-card {
    padding: 6px;
    border-radius: 20px;
  }

  .product-card-media {
    border-radius: 15px;
  }

  .product-card-title {
    font-size: 0.86rem;
  }

  .product-card-price {
    font-size: 0.92rem;
  }

  .product-card-go {
    display: none;
  }

  .product-card-price {
    white-space: nowrap;
  }
}

.img-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: var(--grad-soft);
  color: var(--pink-300);
}

.img-placeholder svg {
  width: 38%;
  max-width: 64px;
  height: auto;
}

/* ===== ردیفِ عکس + متن ===== */
.media-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-8);
  align-items: center;
  padding: var(--space-8) 0;
}

.media-row-reverse {
  direction: ltr;
}

.media-row-reverse > * {
  direction: rtl;
}

.visual-photo-wrap {
  position: relative;
}

.visual-photo-wrap::before {
  content: "";
  position: absolute;
  inset: 18px -14px -14px 18px;
  border-radius: var(--radius-xl);
  background: var(--grad-soft);
  border: 2px dashed var(--pink-200);
  z-index: 0;
}

.media-row-reverse .visual-photo-wrap::before {
  inset: 18px 18px -14px -14px;
}

.visual-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  display: block;
}

.media-row-content .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--pink-500);
  font-weight: 700;
  font-size: var(--fs-sm);
  margin-bottom: var(--space-1);
}

.media-row-content .eyebrow::before {
  content: "✦";
  color: var(--gold);
}

.media-row-content h2 {
  font-size: var(--fs-xl);
  font-weight: 900;
  color: var(--pink-600);
  margin-bottom: var(--space-4);
}

.media-row-content p {
  color: var(--ink);
  font-size: var(--fs-md);
  line-height: 2.05;
  margin-bottom: var(--space-3);
}

.media-row-content .section-link {
  display: inline-block;
  margin-top: var(--space-2);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 0;
  display: grid;
  gap: var(--space-2);
}

.feature-list li {
  position: relative;
  padding-inline-start: 1.9rem;
  line-height: 1.9;
}

.feature-list li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0.35em;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--pink-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cc4677' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / 62%;
}

@media (max-width: 768px) {
  .media-row {
    grid-template-columns: 1fr;
    gap: var(--space-5);
    padding: var(--space-6) 0;
  }

  .visual-photo {
    aspect-ratio: 16 / 10;
  }

  .visual-photo-wrap::before,
  .media-row-reverse .visual-photo-wrap::before {
    inset: 12px -8px -8px 12px;
  }

  .media-row-content p {
    font-size: var(--fs-base);
  }
}

/* ===== بنرِ اینستاگرام ===== */
.insta-cta {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  margin-block: var(--space-6);
  padding: var(--space-6) var(--space-8);
  border-radius: var(--radius-xl);
  background: linear-gradient(120deg, #ffd6e5 0%, #f7d8ff 50%, #ffe7d6 100%);
}

.insta-cta::before,
.insta-cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.insta-cta::before {
  width: 220px;
  height: 220px;
  top: -90px;
  left: -40px;
}

.insta-cta::after {
  width: 120px;
  height: 120px;
  bottom: -50px;
  left: 30%;
}

.insta-cta > * {
  position: relative;
  z-index: 1;
}

.insta-cta h2 {
  font-size: var(--fs-xl);
  font-weight: 900;
  margin-bottom: var(--space-2);
}

.insta-cta p {
  margin: 0;
  color: var(--ink);
}

@media (max-width: 768px) {
  .insta-cta {
    flex-direction: column;
    text-align: center;
    padding: var(--space-6) var(--space-5);
  }
}

/* ===== سربرگِ صفحه‌هایِ داخلی ===== */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-8) 0 var(--space-6);
  background: var(--grad-soft);
  border-bottom: 1px solid var(--line);
}

.page-hero::before,
.page-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
}

.page-hero::before {
  width: 260px;
  height: 260px;
  top: -120px;
  left: 6%;
  background: radial-gradient(circle, rgba(255, 171, 198, 0.55), transparent 70%);
}

.page-hero::after {
  width: 200px;
  height: 200px;
  bottom: -110px;
  right: 12%;
  background: radial-gradient(circle, rgba(212, 194, 247, 0.6), transparent 70%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: var(--fs-2xl);
  font-weight: 900;
  margin: var(--space-2) 0;
}

.page-hero p {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--fs-md);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}

.breadcrumbs li + li::before {
  content: "›";
  margin-inline-end: 0.35rem;
  color: var(--pink-300);
}

.breadcrumbs a {
  color: var(--ink-soft);
}

.breadcrumbs a:hover {
  color: var(--pink-600);
}

@media (max-width: 576px) {
  .page-hero {
    padding: var(--space-6) 0 var(--space-5);
  }
}

/* ===== فروشگاه ===== */
.shop-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: var(--space-6);
  padding-block: var(--space-6) var(--space-8);
}

.shop-filters {
  position: sticky;
  top: calc(var(--header-h) + 64px);
  align-self: start;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-4);
}

.shop-filters summary {
  display: none;
}

.filter-block + .filter-block {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px dashed var(--line);
}

.filter-title {
  font-size: var(--fs-sm);
  font-weight: 800;
  margin-bottom: var(--space-3);
}

.filter-category-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-category-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: background var(--duration-fast);
}

.filter-category-item:hover {
  background: var(--pink-50);
  color: var(--pink-700);
}

.filter-category-item.active {
  background: var(--pink-100);
  color: var(--pink-700);
  font-weight: 800;
}

.filter-category-thumb {
  width: 54px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--pink-50);
  color: var(--pink-400);
}

.filter-category-thumb svg {
  width: 16px;
  height: 16px;
}

.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.color-option {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.2rem 0.7rem 0.2rem 0.45rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
}

.color-option i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.color-option:hover,
.color-option.active {
  border-color: var(--pink-400);
  background: var(--pink-50);
  color: var(--pink-700);
}

.filter-price-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.filter-price-row span {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.shop-count {
  color: var(--ink-soft);
  font-size: var(--fs-sm);
}

.shop-count strong {
  color: var(--ink);
}

.sort-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background var(--duration-fast), border-color var(--duration-fast), color var(--duration-fast);
}

.chip:hover {
  border-color: var(--pink-300);
  color: var(--pink-700);
}

.chip.active {
  background: var(--pink-500);
  border-color: var(--pink-500);
  color: #fff;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-4);
}

.active-filters .chip::after {
  content: "×";
  font-size: 1.05rem;
  line-height: 1;
  margin-inline-start: 2px;
}

.pagination-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-6);
}

.pagination-bar a,
.pagination-bar span {
  min-width: 40px;
  height: 40px;
  padding: 0 0.7rem;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: #fff;
  box-shadow: var(--shadow-card);
  color: var(--ink);
  font-weight: 700;
}

.pagination-bar .current {
  background: var(--grad-pink);
  color: #fff;
}

.pagination-bar .dots {
  background: none;
  box-shadow: none;
}

@media (max-width: 991.98px) {
  .shop-layout {
    /* minmax(0, …): لیستِ افقیِ دسته‌ها نباید ستون را پهن‌تر از صفحه کند. */
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-4);
    padding-top: var(--space-4);
  }

  .shop-filters {
    position: static;
    min-width: 0;
    padding: 0;
  }

  .shop-filters summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-4);
    font-weight: 800;
    cursor: pointer;
    list-style: none;
  }

  .shop-filters summary::-webkit-details-marker {
    display: none;
  }

  .shop-filters summary::after {
    content: "+";
    font-size: 1.4rem;
    color: var(--pink-500);
    line-height: 1;
  }

  .shop-filters[open] summary::after {
    content: "−";
  }

  .shop-filters-body {
    padding: 0 var(--space-4) var(--space-4);
  }

  .filter-category-list {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .filter-category-item {
    flex-direction: column;
    gap: 4px;
    min-width: 76px;
    text-align: center;
    font-size: 0.78rem;
  }
}

/* ===== وضعیتِ خالی ===== */
.empty-state {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.empty-state-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto var(--space-4);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pink-50);
  color: var(--pink-400);
}

.empty-state-icon svg {
  width: 40px;
  height: 40px;
}

.empty-state h2 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-2);
}

.empty-state p {
  color: var(--ink-soft);
  margin-bottom: var(--space-4);
}

/* ===== صفحه‌ی محصول ===== */
.product-page {
  padding-block: var(--space-5) var(--space-8);
}

.product-page .breadcrumbs {
  margin-bottom: var(--space-4);
}

.product-details {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--space-8);
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: calc(var(--header-h) + 60px);
}

.gallery-main {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.gallery-track {
  display: flex;
  aspect-ratio: 1 / 1;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  cursor: zoom-in;
  border: 0;
  padding: 0;
  background: none;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--pink-600);
  box-shadow: var(--shadow-card);
  transition: transform var(--duration-fast);
}

.gallery-arrow:hover {
  transform: translateY(-50%) scale(1.08);
}

.gallery-arrow svg {
  width: 20px;
  height: 20px;
}

.gallery-prev {
  right: 12px;
}

.gallery-next {
  left: 12px;
}

.gallery-counter {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 2;
  padding: 0.1rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(62, 42, 54, 0.6);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.gallery-zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--pink-600);
  pointer-events: none;
}

.gallery-zoom-hint svg {
  width: 18px;
  height: 18px;
}

.gallery-thumbs {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
  overflow-x: auto;
  padding: 4px 2px;
  scrollbar-width: thin;
}

.gallery-thumb {
  flex: 0 0 76px;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  opacity: 0.65;
  transition: opacity var(--duration-fast), border-color var(--duration-fast), transform var(--duration-fast);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumb:hover {
  opacity: 1;
}

.gallery-thumb.active {
  opacity: 1;
  border-color: var(--pink-400);
  transform: translateY(-2px);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(40, 24, 34, 0.92);
  animation: fade-in var(--duration-base);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  border-radius: var(--radius-md);
  object-fit: contain;
  user-select: none;
}

.lightbox-btn {
  position: absolute;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transition: background var(--duration-fast);
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-btn svg {
  width: 24px;
  height: 24px;
}

.lightbox-close {
  top: 16px;
  left: 16px;
}

.lightbox-prev {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-count {
  position: absolute;
  bottom: 18px;
  color: #fff;
  font-weight: 700;
}

.product-info h1 {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 900;
  margin: var(--space-2) 0 var(--space-3);
}

.product-category-pill {
  display: inline-block;
  padding: 0.15rem 0.8rem;
  border-radius: var(--radius-pill);
  background: var(--pink-100);
  color: var(--pink-700);
  font-size: var(--fs-xs);
  font-weight: 700;
}

.product-short-desc {
  color: var(--ink-soft);
  font-size: var(--fs-md);
  line-height: 1.9;
}

.product-buy-box {
  margin-top: var(--space-4);
  padding: var(--space-5);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.product-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.product-price {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--pink-600);
  line-height: 1.3;
}

.product-price small {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-soft);
}

.stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--success-bg);
  color: var(--success);
}

.stock-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.stock-pill.is-low {
  background: var(--warning-bg);
  color: var(--warning);
}

.stock-pill.is-out {
  background: #f2eaee;
  color: var(--ink-soft);
}

.option-group {
  margin-bottom: var(--space-4);
}

.option-label {
  font-weight: 700;
  font-size: var(--fs-sm);
  margin-bottom: var(--space-2);
}

.option-label span {
  color: var(--pink-600);
}

.option-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0.3rem 1rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: border-color var(--duration-fast), background var(--duration-fast), transform var(--duration-fast) var(--ease-bounce);
}

.option-btn:hover {
  border-color: var(--pink-300);
}

.option-btn.is-selected {
  border-color: var(--pink-500);
  background: var(--pink-50);
  color: var(--pink-700);
  font-weight: 800;
  transform: translateY(-1px);
}

.option-btn.is-unavailable {
  color: #b9a9b2;
  background: repeating-linear-gradient(135deg, #fff, #fff 6px, #faf3f6 6px, #faf3f6 12px);
  text-decoration: line-through;
}

.option-btn.is-swatch {
  padding: 3px;
  min-height: 0;
  width: 42px;
  height: 42px;
  justify-content: center;
}

.option-btn.is-swatch i {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.option-btn.is-swatch.is-selected {
  box-shadow: 0 0 0 3px var(--pink-100);
}

.option-btn.is-swatch.is-unavailable {
  background: #fff;
  opacity: 0.4;
}

.option-btn.is-swatch.is-unavailable::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--ink-soft);
  transform: rotate(45deg);
}

.option-hint {
  font-size: var(--fs-sm);
  color: var(--pink-600);
  font-weight: 600;
  min-height: 1.5em;
}

.buy-row {
  display: flex;
  gap: var(--space-3);
  align-items: stretch;
}

.buy-row .btn {
  flex: 1;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--line);
  border-radius: var(--radius-pill);
  background: #fff;
  overflow: hidden;
}

.qty-stepper button {
  width: 38px;
  height: 100%;
  min-height: 42px;
  border: 0;
  background: none;
  color: var(--pink-600);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
}

.qty-stepper button:hover {
  background: var(--pink-50);
}

.qty-stepper input {
  width: 42px;
  border: 0;
  text-align: center;
  font-weight: 800;
  color: var(--ink);
  background: none;
  -moz-appearance: textfield;
  appearance: textfield;
}

.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-stepper input:focus {
  outline: none;
}

.qty-stepper-sm button {
  width: 32px;
  min-height: 34px;
  font-size: 1.1rem;
}

.qty-stepper-sm input {
  width: 34px;
  font-size: var(--fs-sm);
}

.product-perks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.product-perks div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: var(--space-3) var(--space-2);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.5;
}

.product-perks svg {
  width: 22px;
  height: 22px;
  color: var(--pink-500);
}

.product-description {
  margin-top: var(--space-8);
  padding: var(--space-6);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.product-description h2 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-4);
}

.product-full-desc {
  line-height: 2.1;
  overflow-wrap: anywhere;
}

.product-full-desc img {
  border-radius: var(--radius-md);
  height: auto;
}

.sticky-buy-bar {
  display: none;
}

@media (max-width: 991.98px) {
  .product-details {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .product-gallery {
    position: static;
  }

  .gallery-main {
    border-radius: var(--radius-lg);
  }

  .gallery-thumb {
    flex-basis: 62px;
  }
}

@media (max-width: 576px) {
  .product-page {
    padding-top: var(--space-3);
  }

  .gallery-main {
    margin-inline: -16px;
    border-radius: 0;
    box-shadow: none;
  }

  .gallery-arrow {
    display: none;
  }

  .product-buy-box {
    padding: var(--space-4);
  }

  .product-description {
    padding: var(--space-5) var(--space-4);
  }
}

/* ===== سبدِ خرید ===== */
.cart-page {
  padding-block: var(--space-6) var(--space-8);
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--space-6);
  align-items: start;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.cart-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-3);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.cart-item-img {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-md);
  object-fit: cover;
  overflow: hidden;
}

.cart-item-info a.cart-item-name {
  display: block;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.6;
}

.cart-item-variant {
  display: inline-block;
  margin-top: 2px;
  padding: 0 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--pink-50);
  color: var(--pink-700);
  font-size: 0.78rem;
  font-weight: 600;
}

.cart-item-price {
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  margin-top: 4px;
}

.cart-item-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-2);
}

.cart-item-total {
  font-weight: 900;
  color: var(--pink-600);
  white-space: nowrap;
}

.cart-item-remove {
  border: 0;
  background: none;
  padding: 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 600;
}

.cart-item-remove:hover {
  color: var(--danger);
}

.summary-card {
  position: sticky;
  top: calc(var(--header-h) + 70px);
  padding: var(--space-5);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.summary-card h2 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-4);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: var(--fs-sm);
}

.summary-row:last-of-type {
  border-bottom: 0;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: var(--space-3) 0 var(--space-4);
  padding-top: var(--space-3);
  border-top: 2px solid var(--pink-100);
  font-weight: 900;
}

.summary-total strong {
  font-size: 1.35rem;
  color: var(--pink-600);
}

.summary-note {
  font-size: var(--fs-xs);
  color: var(--ink-soft);
  margin-top: var(--space-3);
  text-align: center;
}

@media (max-width: 991.98px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .summary-card {
    position: static;
  }
}

@media (max-width: 576px) {
  .cart-item {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: var(--space-3);
  }

  .cart-item-img {
    width: 76px;
    height: 76px;
  }

  .cart-item-side {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-2);
    border-top: 1px dashed var(--line);
  }
}

/* ===== پیام‌ها ===== */
.cart-alert {
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  font-weight: 600;
  line-height: 1.8;
}

.cart-alert-error {
  background: var(--danger-bg);
  color: var(--danger);
}

.cart-alert-success {
  background: var(--success-bg);
  color: var(--success);
}

.cart-alert-warning {
  background: var(--warning-bg);
  color: var(--warning);
}

.cart-notice-list {
  margin: 0;
  padding-inline-start: 1.1rem;
}

.cart-notice-list li + li {
  margin-top: 0.25rem;
}

/* ===== تسویه‌حساب ===== */
.checkout-page {
  padding-block: var(--space-6) var(--space-8);
}

.checkout-steps {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.checkout-steps li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink-soft);
}

.checkout-steps li::before {
  counter-increment: step;
  content: counter(step);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f1e4ea;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.checkout-steps li + li::after {
  content: none;
}

.checkout-steps li.done::before,
.checkout-steps li.current::before {
  background: var(--grad-pink);
  color: #fff;
}

.checkout-steps li.current {
  color: var(--ink);
}

.checkout-steps li:not(:last-child)::after {
  content: "";
  width: 28px;
  height: 2px;
  margin-inline-start: 0.4rem;
  background: var(--line);
}

.form-card {
  padding: var(--space-5);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.form-card h2 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-4);
}

.shipping-methods {
  display: grid;
  gap: var(--space-2);
}

.shipping-method-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.8rem 1rem;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--duration-fast), background var(--duration-fast);
}

.shipping-method-option:has(input:checked) {
  border-color: var(--pink-400);
  background: var(--pink-50);
}

.shipping-method-option input {
  accent-color: var(--pink-500);
  width: 18px;
  height: 18px;
}

.summary-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: var(--space-3);
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: var(--fs-sm);
}

.summary-item img,
.summary-item .img-placeholder {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.summary-item small {
  display: block;
  color: var(--ink-soft);
}

/* ===== نتیجه‌ی پرداخت ===== */
.result-card {
  max-width: 620px;
  margin: var(--space-8) auto;
  padding: var(--space-8) var(--space-6);
  text-align: center;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.result-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto var(--space-4);
  display: grid;
  place-items: center;
  border-radius: 50%;
  animation: badge-pop 600ms var(--ease-bounce);
}

.result-icon svg {
  width: 42px;
  height: 42px;
}

.result-icon.success {
  background: var(--success-bg);
  color: var(--success);
}

.result-icon.failure {
  background: var(--danger-bg);
  color: var(--danger);
}

.result-card h1 {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-3);
}

.result-details {
  display: grid;
  gap: 0.3rem;
  margin: var(--space-4) 0;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  text-align: right;
  font-size: var(--fs-sm);
}

.result-details div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}

/* ===== پیگیریِ سفارش ===== */
.track-page {
  max-width: 760px;
  margin: 0 auto;
  padding-block: var(--space-6) var(--space-8);
}

.timeline {
  list-style: none;
  margin: var(--space-5) 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: var(--space-3);
  padding-bottom: var(--space-5);
}

.timeline li:not(:last-child)::before {
  content: "";
  position: absolute;
  right: 19px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.timeline li.done:not(:last-child)::before {
  background: var(--pink-300);
}

.timeline-dot {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f1e4ea;
  color: var(--ink-soft);
}

.timeline-dot svg {
  width: 20px;
  height: 20px;
}

.timeline li.done .timeline-dot {
  background: var(--grad-pink);
  color: #fff;
}

.timeline li.current .timeline-dot {
  box-shadow: 0 0 0 6px var(--pink-100);
}

.timeline strong {
  display: block;
  line-height: 1.6;
}

.timeline span {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}

.tracking-code {
  display: inline-block;
  margin-top: 4px;
  padding: 0.1rem 0.7rem;
  border-radius: var(--radius-xs);
  background: var(--pink-50);
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 1px;
}

/* ===== تماس با ما ===== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-5);
  align-items: stretch;
  padding-bottom: var(--space-8);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.contact-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  color: var(--ink);
  min-width: 0;
}

.contact-card:hover {
  color: var(--ink);
}

.contact-card .trust-icon {
  background: var(--pink-100);
}

.contact-card-text strong {
  display: block;
  font-size: var(--fs-sm);
}

.contact-card-text span {
  display: block;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.map-card {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--grad-soft);
}

.map-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-links {
  position: absolute;
  bottom: 12px;
  right: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.map-links a {
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-pill);
  background: #fff;
  box-shadow: var(--shadow-card);
  font-size: 0.82rem;
  font-weight: 700;
}

.map-placeholder {
  height: 100%;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-6);
  text-align: center;
}

.map-placeholder img {
  width: 100%;
  max-width: 360px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

@media (max-width: 991.98px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .map-card,
  .map-placeholder {
    min-height: 300px;
  }
}

/* ===== ۴۰۴ ===== */
.error-page {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--space-10) 16px;
  text-align: center;
}

.error-code {
  font-size: clamp(5rem, 18vw, 8.5rem);
  font-weight: 900;
  line-height: 1;
  background: var(--grad-pink);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 20px rgba(232, 100, 143, 0.25));
}

.error-heart {
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-10px) rotate(6deg); }
}

.error-page h1 {
  font-size: var(--fs-xl);
  margin: var(--space-4) 0 var(--space-2);
}

.error-page p {
  color: var(--ink-soft);
}

.error-page .search-box {
  max-width: 420px;
  margin: var(--space-5) auto;
}

/* ===== فوتر ===== */
.site-footer {
  position: relative;
  margin-top: var(--space-8);
  padding: var(--space-8) 0 var(--space-4);
  background: linear-gradient(180deg, #ffe9f1 0%, #fff4f8 100%);
  color: var(--ink);
}

.footer-wave {
  position: absolute;
  top: -22px;
  left: 0;
  right: 0;
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 24' preserveAspectRatio='none'%3E%3Cpath d='M0 24C8 24 8 6 24 6s16 18 24 18Z' fill='%23ffe9f1'/%3E%3C/svg%3E") repeat-x bottom / 48px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--space-6);
}

.footer-brand {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--pink-600);
  margin-bottom: var(--space-2);
}

.footer-brand img {
  height: 56px;
  width: auto;
}

.footer-about p {
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  line-height: 2;
}

.footer-heading {
  font-weight: 900;
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-heading::before {
  content: "✦";
  color: var(--pink-400);
  font-size: 0.8rem;
}

.footer-links,
.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  font-size: var(--fs-sm);
}

.footer-links a,
.footer-contact a {
  color: var(--ink-soft);
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--pink-600);
}

.footer-contact li {
  color: var(--ink-soft);
}

.footer-trust {
  margin-top: var(--space-3);
}

.footer-trust img {
  max-height: 90px;
  width: auto;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 4px;
}

.trust-seal {
  display: inline-block;
}

.trust-seal img {
  width: 90px;
  height: 90px;
  object-fit: contain;
}

.trust-seal-text {
  display: none;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  background: #fff;
  box-shadow: var(--shadow-card);
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 700;
  white-space: nowrap;
}

/* اینماد عکسِ خالی داد → برچسبِ متنی با همان لینک */
.trust-seal.is-fallback img {
  display: none;
}

.trust-seal.is-fallback .trust-seal-text {
  display: inline-block;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px dashed var(--pink-200);
  font-size: var(--fs-xs);
  color: var(--ink-soft);
}

.footer-heart {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.footer-heart svg {
  width: 14px;
  height: 14px;
  color: var(--pink-500);
  animation: heartbeat 1.6s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.25); }
  30% { transform: scale(1); }
}

@media (max-width: 991.98px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    gap: var(--space-5);
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}

/* ===== ظاهرشدنِ نرم هنگامِ اسکرول ===== */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

.mobile-search button {
  left: 21px;
}

.buy-row .btn {
  white-space: nowrap;
}

.buy-row .qty-stepper {
  align-self: center;
}

@media (max-width: 400px) {
  .buy-row .btn-lg {
    padding-inline: 1rem;
    font-size: 0.98rem;
  }
}

.option-hint:empty {
  display: none;
}

.checkout-steps li {
  white-space: nowrap;
}

@media (max-width: 576px) {
  .checkout-steps {
    gap: 0.3rem;
  }

  .checkout-steps li {
    font-size: 0.78rem;
  }

  .checkout-steps li:not(:last-child)::after {
    width: 14px;
  }
}

/* تله‌ی ربات در فرمِ تماس؛ برایِ آدم‌ها دیده نمی‌شود */
/* فیلدِ تله‌ی ربات: جابه‌جاکردن به left: -10000px در صفحه‌ی راست‌به‌چپ اسکرولِ افقی می‌ساخت. */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}
