:root {
  --primary: #E6123D;
  --primary-dark: #c40e34;
  --primary-soft: #ffe5eb;
  --purple-900: #111111;
  --purple-800: #1a1a1a;
  --purple-700: #E6123D;
  --purple-600: #E6123D;
  --purple-500: #ff4d6d;
  --purple-100: #ffe5eb;
  --purple-50: #fff5f7;
  --ink: #111111;
  --muted: #6B7280;
  --line: #E5E7EB;
  --white: #ffffff;
  --page-bg: #F5F5F5;
  --shadow: 0 8px 24px rgba(0,0,0,.06);
  --container: 1180px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  color: var(--ink);
  background: var(--page-bg);
  line-height: 1.7;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}
body.ui-locked { overflow: hidden; }
/* Keep native selects usable inside open dialogs (mobile). */
body.ui-locked dialog[open],
body.ui-locked dialog[open] select,
body.ui-locked dialog[open] input,
body.ui-locked dialog[open] textarea,
body.ui-locked dialog[open] button {
  touch-action: manipulation;
  pointer-events: auto;
}
.loc-field { position: relative; display: block; }
.loc-picker-btn {
  display: block; width: 100%; text-align: right;
  min-height: 48px; padding: 12px 14px; margin-top: 6px;
  border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink); cursor: pointer;
  touch-action: manipulation; pointer-events: auto;
}
.loc-picker-btn:disabled { opacity: .65; cursor: not-allowed; }
.loc-picker-btn.is-open { border-color: var(--purple-600); box-shadow: 0 0 0 3px rgba(124,58,237,.12); }
.loc-picker-panel {
  position: absolute; inset-inline: 0; top: calc(100% + 4px); z-index: 40;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,.16); max-height: 280px;
  display: flex; flex-direction: column; overflow: hidden;
  touch-action: manipulation; pointer-events: auto;
}
.loc-picker-panel[hidden] { display: none !important; }
.loc-picker-search {
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: 12px 14px; width: 100%;
}
.loc-picker-list { overflow: auto; -webkit-overflow-scrolling: touch; max-height: 220px; }
.loc-picker-item {
  display: block; width: 100%; text-align: right; border: 0; background: transparent;
  padding: 12px 14px; cursor: pointer; border-bottom: 1px solid #f3f0f5;
  touch-action: manipulation;
}
.loc-picker-item:hover, .loc-picker-item.is-active { background: #f7f2fb; color: var(--purple-700); }
.loc-picker-status { margin: 0; padding: 10px 14px; color: var(--muted); font-size: .9rem; }
.account-edit-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin-top: 10px;
}
.account-edit-form label { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; }
.account-edit-form label.full, .account-edit-form .full { grid-column: 1 / -1; }
.account-edit-form input, .account-edit-form textarea {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
.account-qty {
  display: inline-flex; align-items: center; gap: 6px;
}
.account-qty button {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; touch-action: manipulation;
}
@media (max-width: 640px) {
  .account-edit-form { grid-template-columns: 1fr; }
  .loc-picker-panel { position: fixed; inset: auto 12px 12px; top: auto; max-height: 50vh; z-index: 200; }
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, .icon-btn, .cats-btn, .btn-add, .add {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
input, select, textarea {
  font-size: 16px; /* prevent iOS zoom on focus */
  max-width: 100%;
}
.container {
  width: min(var(--container), calc(100% - 24px));
  margin-inline: auto;
  padding-inline: env(safe-area-inset-right) env(safe-area-inset-left);
}

.page-loader {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
  background: var(--purple-600); pointer-events: none;
  animation: loaderOut .6s ease 1s forwards;
}
.page-loader.hide { opacity: 0; visibility: hidden; animation: none; }
@keyframes loaderOut { to { opacity: 0; visibility: hidden; } }
.loader-logo { animation: pulse 1.2s ease-in-out infinite; }
.brand-mark {
  display: inline-block; font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em;
  color: var(--purple-700); line-height: 1;
}
.page-loader .brand-mark { color: #fff; font-size: 1.8rem; }
.brand-text { text-decoration: none; }
.brand img { width: 92px; height: auto; }
@keyframes pulse { 0%,100%{transform:scale(1);opacity:.85} 50%{transform:scale(1.08);opacity:1} }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.header-top, .header-bottom { display: flex; align-items: center; gap: 12px; }
.header-top { min-height: 56px; justify-content: space-between; position: relative; }
.header-bottom { min-height: 56px; padding-bottom: 10px; }
.main-nav { display: flex; align-items: center; gap: 8px; flex: 1; justify-content: flex-start; flex-wrap: wrap; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.header-cart { width: 44px; height: 44px; display: grid; place-items: center; }
.auth-chip {
  border: 1px solid var(--line); background: #fff; color: var(--purple-800);
  border-radius: 999px; padding: 8px 12px; font: inherit; font-size: .82rem;
  font-weight: 700; cursor: pointer; white-space: nowrap;
}
.auth-chip.is-user { background: var(--purple-50); border-color: #e4d3ef; }
.btn-text {
  border: 0; background: transparent; color: var(--purple-700); font: inherit;
  font-weight: 700; cursor: pointer; padding: 0;
}
.btn-text.danger { color: #b91c1c; }
.checkout-auth-strip {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: -8px 0 14px; color: var(--muted); font-size: .88rem;
}
.auth-modal { border: 0; padding: 0; background: transparent; max-width: 460px; width: calc(100% - 24px); }
.auth-modal::backdrop { background: rgba(18, 9, 20, .55); }
.auth-card {
  background: #fff; border-radius: 22px; padding: 24px; position: relative;
  box-shadow: var(--shadow); display: grid; gap: 12px;
}
.auth-card h2, .auth-card h3 { margin: 0; }
.auth-card label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; }
.auth-card input {
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px;
  font: inherit; background: #faf7fc;
}
.auth-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.auth-tabs.mini { margin-bottom: 4px; }
.auth-tab {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 7px 12px; font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer;
}
.auth-tab.is-active { background: var(--purple-700); color: #fff; border-color: var(--purple-700); }
.auth-panel { display: none; gap: 10px; }
.auth-panel.is-active { display: grid; }
.auth-dev { margin: 0; color: #047857; font-size: .85rem; font-weight: 600; }
.account-card { max-width: 560px; }
.account-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.main-nav > a, .nav-item > button {
  border: 0; background: transparent; color: var(--ink); padding: 8px 10px;
  border-radius: 10px; cursor: pointer; font-weight: 500; font-size: .92rem;
}
.main-nav > a:hover, .nav-item > button:hover { background: var(--purple-50); color: var(--purple-700); }
.nav-item { position: relative; }
.mega {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 10px; display: none; z-index: 20;
}
.nav-item:hover .mega, .nav-item:focus-within .mega { display: grid; gap: 2px; }
.mega a { padding: 10px 12px; border-radius: 10px; font-size: .88rem; }
.mega a:hover { background: var(--purple-50); color: var(--purple-700); }
.phone { display: inline-flex; align-items: center; gap: 8px; color: var(--purple-700); font-weight: 700; }
.phone-icon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--purple-100); color: var(--purple-700); }
.flag { width: 22px; height: 16px; object-fit: cover; border-radius: 2px; }
.menu-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.menu-toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }

.cats-wrap { position: relative; }
.cats-btn {
  display: inline-flex; align-items: center; gap: 8px; background: var(--purple-700); color: #fff;
  border: 0; border-radius: 14px; padding: 12px 16px; cursor: pointer; white-space: nowrap; font-weight: 600;
}
.cats-panel {
  display: none; position: absolute; top: calc(100% + 8px); right: 0; width: min(860px, 90vw);
  background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  padding: 16px; z-index: 50; max-height: 70vh; overflow: auto;
}
.cats-panel.open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cat-block h4 { margin: 0 0 8px; color: var(--purple-800); font-size: .95rem; }
.cat-block { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--purple-50); }
.cat-block button, .cat-block a {
  display: block; width: 100%; text-align: right; border: 0; background: transparent;
  padding: 6px 0; cursor: pointer; color: var(--ink); font-size: .86rem;
}
.cat-block button:hover { color: var(--purple-700); }

.search {
  flex: 1; display: flex; align-items: center; background: #f5f2f7; border-radius: 999px;
  padding: 4px 4px 4px 14px; border: 1px solid transparent;
}
.search:focus-within { background: #fff; border-color: var(--purple-500); }
.search input { flex: 1; border: 0; background: transparent; outline: none; padding: 10px 8px; }
.search button {
  width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--purple-700);
  color: #fff; display: grid; place-items: center; cursor: pointer;
}
.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn { border: 0; background: transparent; color: var(--ink); cursor: pointer; padding: 6px; position: relative; }
.cart-count {
  position: absolute; top: -2px; left: -2px; min-width: 18px; height: 18px; border-radius: 999px;
  background: #d62839; color: #fff; font-size: .7rem; display: grid; place-items: center; padding: 0 4px;
}
.login-link, .join-link { display: inline-flex; align-items: center; gap: 6px; font-size: .92rem; font-weight: 600; }
.join-link { color: var(--purple-700); background: var(--purple-50); padding: 10px 14px; border-radius: 999px; }

.category-rail {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 22px 0 8px;
}
.rail-track {
  display: flex; gap: 18px; overflow-x: auto; scroll-behavior: smooth; padding: 10px 4px 18px; scrollbar-width: none;
}
.rail-track::-webkit-scrollbar { display: none; }
.cat-item { flex: 0 0 auto; width: 96px; text-align: center; transition: transform .25s ease; cursor: pointer; border: 0; background: transparent; color: inherit; }
.cat-item:hover { transform: translateY(-4px); }
.ring {
  width: 84px; height: 84px; margin: 0 auto 10px; border-radius: 50%; padding: 3px;
  background: linear-gradient(135deg, #a56bc0, #5b2a78 55%, #c9a0de);
  box-shadow: 0 10px 25px rgba(123, 71, 145, .25); overflow: hidden; display: block;
}
.ring img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 3px solid #fff; aspect-ratio: 1; }
.cat-item b { display: block; font-size: .78rem; font-weight: 600; line-height: 1.4; }
.rail-nav {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-size: 1.2rem; color: var(--purple-700);
}

.hero { position: relative; margin-top: 8px; min-height: 520px; }
.hero-slider { position: relative; height: 520px; overflow: hidden; border-radius: 0 0 28px 28px; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transform: scale(1.04);
  transition: opacity .7s ease, transform .9s ease;
  background: linear-gradient(90deg, rgba(20,8,28,.72) 10%, rgba(20,8,28,.2) 55%, rgba(20,8,28,.45)), var(--bg) center/cover no-repeat;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-copy {
  position: absolute; inset-inline-start: max(24px, calc((100% - var(--container)) / 2));
  top: 50%; transform: translateY(-60%); color: #fff; max-width: 420px;
}
.hero-copy h1 { margin: 0 0 8px; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; line-height: 1.25; }
.hero-copy p { margin: 0 0 22px; font-size: 1.25rem; opacity: .92; }
.btn-hero, .btn-add {
  display: inline-flex; align-items: center; justify-content: center; background: #d62839; color: #fff;
  padding: 12px 26px; border-radius: 999px; font-weight: 700; border: 0; cursor: pointer;
  box-shadow: 0 12px 30px rgba(214, 40, 57, .35);
}
.hero-controls { position: absolute; inset-inline-start: max(24px, calc((100% - var(--container)) / 2)); bottom: 110px; display: flex; gap: 8px; z-index: 2; }
.hero-controls button, .notice-nav button, .product-nav button, .pager button {
  width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92);
  color: var(--purple-800); cursor: pointer; font-size: 1.2rem; box-shadow: 0 8px 20px rgba(0,0,0,.12);
}
.notice-card {
  position: absolute; left: 50%; bottom: -42px; transform: translateX(-50%);
  width: min(920px, calc(100% - 32px)); background: #fff; border-radius: 18px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; z-index: 3;
}
.notice-date {
  width: 68px; height: 68px; border-radius: 14px; background: linear-gradient(160deg, var(--purple-600), var(--purple-900));
  color: #fff; display: grid; place-content: center; text-align: center; line-height: 1.15;
}
.notice-date strong { font-size: 1.5rem; }
.notice-date span { font-size: .82rem; }
.notice-body h3 { margin: 0 0 4px; font-size: 1.05rem; }
.notice-body p { margin: 0; color: var(--muted); font-size: .92rem; }
.notice-nav { display: grid; gap: 8px; }
.notice-nav button { width: 34px; height: 34px; font-size: 1rem; }

.bestsellers {
  padding: 110px 0 70px;
  background: radial-gradient(circle at 15% 20%, rgba(165,107,192,.18), transparent 35%), linear-gradient(180deg, #f7f0fb 0%, #ffffff 70%);
}
.special-deals {
  padding: 72px 0 24px;
  background:
    radial-gradient(circle at 12% 20%, rgba(143, 80, 170, .12), transparent 42%),
    linear-gradient(180deg, #faf7fc 0%, #fff 70%);
}
.special-deals .section-head h2 {
  margin: 0 0 6px;
  color: var(--purple-800);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.special-deals .product-grid { margin-top: 18px; }
.deal-segments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 4px;
}
.deal-seg {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font: inherit;
  font-size: .82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.deal-seg em { font-style: normal; color: var(--purple-700); font-weight: 700; }
.deal-seg.is-active { background: var(--purple-700); color: #fff; border-color: var(--purple-700); }
.deal-seg.is-active em { color: #fff; }
.deal-category-bands { padding: 12px 0 8px; display: grid; gap: 20px; }
.deal-band .section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 14px;
}
.deal-band .section-head h2 { margin: 0; color: var(--purple-800); font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.deal-card { position: relative; }
.deal-badge {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 2;
  background: var(--purple-700);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(75, 29, 99, .25);
}
.deals-empty {
  margin: 18px 0 0;
  color: var(--muted);
  text-align: center;
}

/* —— BlackEveryday shop rails + alternating marquee —— */
.be-amazing-panel .be-marquee-container { margin-top: 8px; }
.be-shop-rail {
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.be-shop-rail-inner {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 280px;
}
.be-shop-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 28px 16px;
  background: linear-gradient(180deg, #f7f7f8 0%, #fff 70%);
  border-inline-end: 1px solid var(--line);
  text-align: center;
  overflow: hidden;
}
.be-pct-watermark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(6rem, 14vw, 9rem);
  font-weight: 900;
  color: rgba(0, 0, 0, .035);
  pointer-events: none;
  line-height: 1;
  user-select: none;
}
.be-shop-title-row {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  justify-items: center;
}
.be-shop-kicker {
  color: #6b7280;
  font-size: 1rem;
  font-weight: 600;
}
.be-shop-aside h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  font-weight: 900;
  color: #111;
}
.be-more-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  border-radius: 12px;
  padding: 8px 12px;
  font: inherit;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.be-more-btn:hover { background: #f3f4f6; }
.be-more-chevron {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #e5e7eb;
  color: #111;
  font-size: 1.1rem;
  line-height: 1;
}
.be-marquee-container {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 18px 0;
  -webkit-user-select: none;
  user-select: none;
  /* Keep track math LTR so translateX(-50%) loops stay on-screen in RTL pages */
  direction: ltr;
}
.be-marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  padding-inline: 14px;
  will-change: transform;
}
.be-marquee-track .be-product-card,
.be-marquee-track .card {
  direction: rtl;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 1;
}
.be-marquee-ltr {
  animation: be-marquee-loop var(--be-marquee-duration, 48s) linear infinite;
}
.be-marquee-rtl {
  animation: be-marquee-loop var(--be-marquee-duration, 48s) linear infinite reverse;
}
.be-marquee-static {
  animation: none !important;
  overflow-x: auto;
  width: 100%;
  max-width: 100%;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  direction: rtl;
}
.be-marquee-static .be-product-card,
.be-marquee-static .card {
  scroll-snap-align: start;
  flex: 0 0 min(210px, 72vw);
}
@keyframes be-marquee-loop {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (hover: hover) {
  .be-marquee-container:hover .be-marquee-ltr,
  .be-marquee-container:hover .be-marquee-rtl {
    animation-play-state: paused;
  }
}
.be-marquee-container.is-paused .be-marquee-ltr,
.be-marquee-container.is-paused .be-marquee-rtl,
.be-marquee-container.is-paused .be-marquee-track {
  animation-play-state: paused !important;
}
@media (pointer: coarse) {
  .be-marquee-ltr,
  .be-marquee-rtl {
    /* Touch: prefer scrollable strip so taps hit a stable card */
    animation: none !important;
  }
  .be-marquee-container .be-marquee-track {
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
}
@media (prefers-reduced-motion: reduce) {
  .be-marquee-ltr,
  .be-marquee-rtl {
    animation: none !important;
  }
}
.be-product-card {
  flex: 0 0 210px;
  width: 210px;
  max-width: 210px;
}
.be-product-card .card-body h3 {
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.be-card-actions {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 8px;
  align-items: stretch;
}
.be-card-actions .add {
  width: 100%;
  margin: 0;
}
.be-card-icon {
  border: 1px solid var(--line);
  background: #f3f4f6;
  border-radius: 10px;
  color: #4b5563;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.be-card-icon:hover { background: #e5e7eb; color: #111; }
.be-hunt-rail .be-hunt-row {
  grid-template-columns: minmax(180px, 240px) 1fr;
}
.be-hunt-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px 18px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, #fff5f7 0%, #fff 75%);
  border-inline-end: 1px solid var(--line);
  text-align: center;
}
.be-hunt-pct {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(230, 18, 61, .28);
}
.be-hunt-title {
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.5;
  max-width: 11em;
}
#dealsGrid.be-marquee-track {
  min-height: 320px;
}
@media (max-width: 900px) {
  .be-shop-rail-inner,
  .be-hunt-rail .be-hunt-row {
    grid-template-columns: 1fr;
  }
  .be-shop-aside,
  .be-hunt-card {
    border-inline-end: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px 14px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: right;
  }
  .be-shop-title-row { justify-items: start; }
  .be-pct-watermark { font-size: 5rem; opacity: .7; }
  .be-product-card {
    flex-basis: min(180px, 68vw);
    width: min(180px, 68vw);
    max-width: min(180px, 68vw);
  }
}
.bestsellers-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.bestsellers-copy h2 { margin: 0 0 24px; font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--purple-800); }
.product-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.product-list li {
  padding: 12px 14px; border-radius: 12px; color: #9a8fa8; cursor: pointer; transition: .25s ease; position: relative;
}
.product-list li.is-active {
  color: var(--ink); font-weight: 700; background: rgba(255,255,255,.7); box-shadow: 0 8px 24px rgba(91,42,120,.08);
}
.product-nav { display: flex; gap: 8px; margin-top: 18px; }
.bestsellers-visual { position: relative; min-height: 420px; display: grid; place-items: center; }
.crystal { position: absolute; width: min(420px, 100%); opacity: .55; animation: float 5s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }
.product-stage {
  position: relative; width: min(280px, 70%); border-radius: 24px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(40, 16, 58, .28); transform: rotate(-4deg); background: #fff;
}
.product-stage img { width: 100%; aspect-ratio: 3/4; object-fit: cover; transition: opacity .35s ease, transform .45s ease; }

.shop { padding: 40px 0 80px; background: #faf7fc; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: clamp(1.5rem, 2.5vw, 2rem); }
.shop-meta { margin: 6px 0 0; color: var(--muted); }
.shop-tools { display: flex; gap: 10px; flex-wrap: wrap; }
.shop-tools select {
  border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 14px; min-width: 180px;
}
.product-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease; cursor: pointer; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #f4eef8; }
.card-body { padding: 12px 14px 16px; display: grid; gap: 6px; flex: 1; }
.card-body .sub { color: var(--purple-700); font-size: .78rem; font-weight: 600; }
.card-body h3 { margin: 0; font-size: .95rem; line-height: 1.5; font-weight: 700; }
.card-body .add {
  margin-top: auto; border: 0; background: var(--purple-50); color: var(--purple-800);
  border-radius: 999px; padding: 8px 12px; cursor: pointer; font-weight: 600; font-size: .85rem;
}
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 28px; flex-wrap: wrap; }
.pager button.active { background: var(--purple-700); color: #fff; }

.about { padding: 80px 0; }
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--purple-600); font-weight: 700; margin: 0 0 8px; }
.about h2 { margin: 0 0 18px; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.about p { color: var(--muted); margin: 0 0 14px; }
.badges { display: flex; gap: 14px; align-items: center; margin-top: 20px; }
.badges img { height: 48px; width: auto; }
.about-panel { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.about-panel img { width: 100%; height: 360px; object-fit: cover; }

.guide {
  padding: 90px 0; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(circle at 80% 10%, rgba(143, 80, 170, .35), transparent 28%), linear-gradient(160deg, #13091c 0%, #2a123d 45%, #0d0713 100%);
}
.guide::before {
  content: ""; position: absolute; left: 4%; bottom: -4%; font-size: clamp(6rem, 18vw, 14rem);
  font-weight: 800; opacity: .06; pointer-events: none;
}
.guide h2 { margin: 0 0 28px; font-size: clamp(1.7rem, 3vw, 2.4rem); position: relative; }
.guide-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.guide-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(186, 140, 214, .35); border-radius: 22px;
  padding: 18px; backdrop-filter: blur(8px); transition: transform .25s ease, border-color .25s ease;
}
.guide-card:hover { transform: translateY(-6px); border-color: rgba(214, 176, 235, .7); }
.guide-card img { width: 64px; height: 64px; object-fit: contain; margin-bottom: 14px; }
.guide-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.guide-card p { margin: 0; color: rgba(255,255,255,.72); font-size: .9rem; }

.news { padding: 80px 0; }
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.news-card { border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.news-card img { width: 100%; height: 160px; object-fit: cover; }
.news-card > div { padding: 14px 16px 18px; }
.news-card time { color: var(--muted); font-size: .82rem; }
.news-card h3 { margin: 6px 0 0; font-size: 1rem; line-height: 1.5; }

.newsletter {
  padding: 50px 0; color: #fff;
  background: linear-gradient(120deg, rgba(75,29,99,.88), rgba(123,71,145,.82)), url("assets/subscribe-bg.png") center/cover;
}
.newsletter-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.newsletter h2 { margin: 0 0 8px; }
.newsletter p { margin: 0; opacity: .9; }
.newsletter-form {
  display: flex; gap: 8px; background: rgba(255,255,255,.12); padding: 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2);
}
.newsletter-form input { border: 0; outline: none; background: transparent; color: #fff; padding: 10px 16px; min-width: 220px; }
.newsletter-form input::placeholder { color: rgba(255,255,255,.7); }
.newsletter-form button { border: 0; border-radius: 999px; background: #fff; color: var(--purple-800); font-weight: 700; padding: 10px 22px; cursor: pointer; }
.contact-addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.contact-address-card {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px;
  padding: 16px 18px;
}
.contact-address-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}
.contact-address-card p {
  margin: 0;
  line-height: 1.7;
  opacity: .95;
}
.site-footer .footer-grid p { margin: 0 0 10px; line-height: 1.7; font-size: .9rem; }

.site-footer { background: #120914; color: rgba(255,255,255,.82); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 28px; padding-bottom: 40px; }
.footer-grid-simple { grid-template-columns: 1.6fr 1fr 1fr; }
.footer-logo { width: 100px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer-brand { color: #fff; margin-bottom: 16px; display: inline-block; }
.footer-grid h4 { margin: 0 0 14px; color: #fff; }
.footer-grid a, .footer-grid p { display: block; margin: 0 0 10px; font-size: .9rem; color: rgba(255,255,255,.72); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; font-size: .82rem; text-align: center; color: rgba(255,255,255,.55); }

.chat-fab {
  position: fixed; left: 22px; bottom: 22px; width: 56px; height: 56px; border-radius: 50%; border: 0;
  background: #151018; color: #fff; cursor: pointer; box-shadow: 0 12px 30px rgba(0,0,0,.28); z-index: 50;
  display: grid; place-items: center;
}

.product-modal { border: 0; padding: 0; background: transparent; max-width: 1040px; width: calc(100% - 24px); max-height: calc(100vh - 24px); }
.product-modal::backdrop { background: rgba(18, 9, 20, .55); }
.modal-card {
  display: grid; grid-template-columns: .95fr 1.05fr; gap: 0; background: #fff; border-radius: 22px;
  overflow: hidden; position: relative; box-shadow: var(--shadow);
}
.product-detail { max-height: calc(100vh - 24px); overflow: auto; align-items: start; }
.pd-media { padding: 18px; background: #f7f1fb; position: sticky; top: 0; }
.pd-main-media {
  border-radius: 16px; overflow: hidden; background: #fff; aspect-ratio: 1;
  display: grid; place-items: center;
}
.pd-main-media img, .pd-main-media video {
  width: 100%; height: 100%; object-fit: contain; min-height: 0; background: #fff;
}
.pd-thumbs {
  display: flex; gap: 8px; overflow-x: auto; margin-top: 12px; padding-bottom: 4px;
}
.pd-thumbs button {
  flex: 0 0 64px; width: 64px; height: 64px; border-radius: 12px; border: 2px solid transparent;
  padding: 0; overflow: hidden; background: #fff; cursor: pointer; position: relative;
}
.pd-thumbs button.is-active { border-color: var(--purple-700); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-play {
  display: grid; place-items: center; width: 100%; height: 100%;
  background: #1f1528; color: #fff; font-size: .9rem;
}
.pd-info { padding: 24px; }
.modal-close {
  position: absolute; top: 10px; left: 10px; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: #fff; cursor: pointer; font-size: 1.3rem; z-index: 2;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}
.modal-cat { color: var(--purple-700); font-weight: 700; margin: 0 0 8px; }
.modal-card h3 { margin: 0 0 10px; font-size: 1.35rem; line-height: 1.45; }
.modal-card p { color: var(--muted); }
.pd-short { margin: 10px 0 0; line-height: 1.8; }
.pd-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.pd-meta span {
  background: var(--purple-50); color: var(--purple-700); border-radius: 999px;
  padding: 4px 10px; font-size: .82rem; font-weight: 600;
}
.modal-price, .card-body .price {
  color: var(--purple-700); font-weight: 800; margin: 8px 0 12px; font-size: 1.15rem;
}
.card-body .price { font-size: 1.05rem; }
.card-desc {
  margin: 6px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pd-buy { display: flex; gap: 12px; align-items: end; margin: 8px 0 18px; }
.pd-qty { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 600; }
.pd-qty input {
  width: 84px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #faf7fc;
}
.pd-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.pd-tab {
  border: 0; background: transparent; padding: 10px 12px; cursor: pointer; font-weight: 700;
  color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.pd-tab.is-active { color: var(--purple-700); border-bottom-color: var(--purple-700); }
.pd-panel { display: none; }
.pd-panel.is-active { display: block; }
.pd-html, .pd-pre { color: var(--ink); line-height: 1.9; font-size: .95rem; }
.pd-html p { color: inherit; margin: 0 0 12px; }
.pd-loading { color: var(--muted); }
.pd-usage-steps {
  margin: 0;
  padding-inline-start: 1.25rem;
  line-height: 1.9;
  color: var(--ink);
}
.pd-usage-steps li { margin: 0 0 8px; }
.pd-spec-group { margin: 0 0 18px; }
.pd-spec-group h4, .pd-panel h4 { margin: 0 0 10px; color: var(--purple-700); }
.pd-spec-group table { width: 100%; border-collapse: collapse; }
.pd-spec-group th, .pd-spec-group td {
  text-align: right; padding: 10px 8px; border-bottom: 1px solid var(--line); font-size: .92rem;
}
.pd-spec-group th { width: 42%; color: var(--muted); font-weight: 600; }
.add.is-disabled, .btn-add.is-disabled, .btn-add:disabled {
  background: #9a8fa3; cursor: not-allowed; opacity: .85;
}

.cart-overlay {
  position: fixed; inset: 0; background: rgba(18,9,20,.45); z-index: 80;
}
.cart-drawer {
  position: fixed; top: 0; left: 0; width: min(420px, 100%); height: 100%;
  background: #fff; z-index: 90; transform: translateX(-105%);
  transition: transform .28s ease; display: flex; flex-direction: column;
  box-shadow: 12px 0 40px rgba(0,0,0,.18);
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-head, .cart-drawer-foot {
  padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex;
  align-items: center; justify-content: space-between; gap: 12px;
}
.cart-drawer-foot { border-bottom: 0; border-top: 1px solid var(--line); flex-direction: column; align-items: stretch; }
.cart-drawer-head h2 { margin: 0; font-size: 1.15rem; }
.cart-items { flex: 1; overflow: auto; padding: 14px 16px; }
.cart-empty { color: var(--muted); text-align: center; padding: 40px 12px; }
.cart-line {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--line); align-items: start;
}
.cart-line img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; background: #f4eef8; }
.cart-line h4 { margin: 0 0 4px; font-size: .92rem; line-height: 1.4; }
.cart-line p { margin: 0; color: var(--muted); font-size: .85rem; }
.qty-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-row button {
  width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; color: var(--purple-700); font-weight: 700;
}
.cart-remove { width: auto !important; padding: 0 8px; color: #d62839 !important; border-color: transparent !important; }
.cart-total-row { display: flex; justify-content: space-between; font-size: 1rem; margin-bottom: 10px; }
.cart-drawer-foot .btn-add { width: 100%; }

.checkout-modal { border: 0; padding: 0; background: transparent; max-width: 720px; width: calc(100% - 24px); }
.checkout-modal::backdrop { background: rgba(18, 9, 20, .55); }
.checkout-card {
  background: #fff; border-radius: 22px; padding: 28px 24px 24px; position: relative;
  box-shadow: var(--shadow);
}
.checkout-card h2 { margin: 0 0 8px; }
.checkout-hint { color: var(--muted); margin: 0 0 18px; font-size: .92rem; }
.saved-address-bar {
  display: grid; gap: 10px;
  padding: 12px 14px; margin-bottom: 14px; border-radius: 14px;
  background: #f3faf5; border: 1px solid #cfe8d8;
}
.saved-card-bar {
  display: grid; gap: 10px;
  padding: 12px 14px; margin: 0 0 14px; border-radius: 14px;
  background: #f3f6ff; border: 1px solid #d5def5;
}
.saved-address-bar > strong,
.saved-card-bar > strong { font-size: .9rem; }
.saved-list { display: grid; gap: 8px; }

.order-bucket-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 12px;
}
.order-bucket {
  background: rgba(111, 58, 141, 0.06);
  border: 1px solid rgba(111, 58, 141, 0.12);
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
}
.order-bucket span { display: block; font-size: 0.75rem; color: #6b7280; }
.order-bucket strong { font-size: 1rem; }
.order-bucket-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.order-tab {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  cursor: pointer;
}
.order-tab.is-active { background: #6f3a8d; color: #fff; border-color: #6f3a8d; }
.order-history-card .order-status-pill {
  display: inline-block;
  margin-inline-start: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f3e8ff;
  color: #6f3a8d;
  font-size: 0.75rem;
}
.order-track { margin-top: 6px; font-size: 0.9rem; }
@media (max-width: 720px) {
  .order-bucket-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.saved-item {
  display: flex; justify-content: space-between; align-items: start; gap: 10px;
  padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line);
}
.saved-item p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.55; flex: 1; }
.saved-item-actions { display: flex; flex-direction: column; gap: 6px; flex: 0 0 auto; }
.order-awaiting-actions { flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: center; }
.order-awaiting-actions .btn-add { padding: 8px 14px; font-size: .9rem; }
.order-awaiting-actions .btn-ghost {
  border: 1px solid #e5e7eb; background: #fff; border-radius: 10px; padding: 8px 14px;
  font: inherit; cursor: pointer; color: #b91c1c; font-weight: 700;
}
.saved-item-use {
  border: 0; background: var(--purple-700); color: #fff; border-radius: 999px;
  padding: 6px 12px; font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer;
}
.saved-card-bar strong { display: block; margin-bottom: 0; font-size: .9rem; }
.saved-card-bar p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.55; }
.card-save-status {
  margin: 8px 0 12px; min-height: 1.2em; font-size: .84rem; color: #1f7a4d; font-weight: 600;
}
.card-save-status.is-pending { color: var(--muted); font-weight: 500; }
.saved-address-bar strong { display: block; margin-bottom: 0; font-size: .9rem; }
.saved-address-bar p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.55; }
.saved-address-clear {
  flex: 0 0 auto; border: 0; background: #fff; color: #b42318;
  border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .8rem;
  font-weight: 700; cursor: pointer; border: 1px solid #f0c2c2;
}
.address-save-status {
  margin: 8px 0 0; min-height: 1.2em; font-size: .84rem; color: #1f7a4d; font-weight: 600;
}
.address-save-status.is-pending { color: var(--muted); font-weight: 500; }
.checkout-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.checkout-grid label, .pay-form label {
  display: flex; flex-direction: column; gap: 6px; font-size: .88rem; font-weight: 600;
}
.checkout-grid .full { grid-column: 1 / -1; }
.checkout-grid input, .checkout-grid textarea, .checkout-grid select,
.pay-form input {
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px;
  font: inherit; background: #faf7fc;
}
.ship-method {
  display: flex; justify-content: space-between; gap: 12px; align-items: start;
  padding: 14px; border-radius: 14px; background: var(--purple-50);
  border: 1px solid #e4d3ef; margin-bottom: 16px;
}
.ship-method p { margin: 4px 0 8px; color: var(--muted); font-size: .88rem; }
.ship-eta {
  display: inline-block; font-size: .82rem; font-weight: 700; color: var(--purple-700);
  background: #fff; border-radius: 999px; padding: 4px 10px;
}
.ship-badge {
  flex: 0 0 auto; background: var(--purple-700); color: #fff; border-radius: 999px;
  padding: 6px 10px; font-size: .75rem; font-weight: 700;
}
.ship-calc { color: var(--muted); font-size: .9rem; }
.ship-calc.error { color: #d62839; font-weight: 600; }
.pay-ship-box {
  margin-top: 14px; padding: 12px; border-radius: 12px; background: #f7f1fb;
  display: grid; gap: 6px; font-size: .9rem;
}
.pay-ship-box div { display: flex; justify-content: space-between; gap: 10px; }
.free-ship-box {
  margin-top: 4px;
  padding: 12px 14px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: rgba(230, 18, 61, 0.04);
}
.free-ship-toggle {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  cursor: pointer;
}
.free-ship-toggle input { width: auto; margin: 0; }
.free-ship-fields { display: grid; gap: 10px; margin-top: 10px; }
.free-ship-fields .btn-text {
  justify-self: start;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 600;
}
.checkout-summary {
  margin: 16px 0; padding: 14px; border-radius: 14px; background: var(--purple-50);
  display: grid; gap: 8px;
}
.checkout-summary > div, .pay-totals > div {
  display: flex; justify-content: space-between; gap: 12px;
}
.checkout-summary .grand, .pay-totals .grand { font-size: 1.05rem; padding-top: 8px; border-top: 1px dashed var(--line); }
.checkout-error { color: #d62839; margin: 0 0 12px; font-weight: 600; }
.checkout-card .btn-add { width: 100%; }

.payment-page { background: linear-gradient(160deg, #f7f1fb, #efe4f6 40%, #f9f6fb); min-height: 100vh; }
.payment-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px max(16px, calc((100% - var(--container)) / 2));
  background: rgba(255,255,255,.85); border-bottom: 1px solid var(--line);
}
.payment-header h1 { margin: 0; font-size: 1.1rem; color: var(--purple-700); }
.payment-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  font-weight: 800;
}
.payment-brand img { width: 36px; height: 36px; object-fit: contain; }
.payment-main { padding: 28px 16px 48px; }
.payment-panel {
  background: #fff; border-radius: 24px; padding: 24px; box-shadow: var(--shadow);
}
.pay-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; }
.pay-items { list-style: none; margin: 0; padding: 0; }
.pay-items li {
  display: flex; justify-content: space-between; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--line); font-size: .92rem;
}
.pay-totals { margin-top: 14px; display: grid; gap: 8px; }
.pay-ship { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); }
.pay-ship h3 { margin: 0 0 8px; color: var(--ink); font-size: 1rem; }
.pay-ship p { margin: 0 0 6px; }
.pay-form { display: grid; gap: 12px; align-content: start; }
.pay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pay-success { text-align: center; padding: 28px 12px; }
.pay-success h2 { color: #1f7a3f; }
.pay-success .btn-add { margin-top: 18px; }

@media (max-width: 900px) {
  .checkout-grid, .pay-grid, .pay-row { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  .product-grid, .guide-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cats-panel.open { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: calc(56px + env(safe-area-inset-top));
    right: 12px; left: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    z-index: 120;
  }
  .main-nav.open { display: flex; }
  .main-nav > a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 12px 14px;
  }
  .bestsellers-grid, .about-grid, .modal-card { grid-template-columns: 1fr; }
  .hero, .hero-slider { min-height: 360px; height: 360px; }
  .hero-copy { top: 42%; max-width: min(420px, calc(100% - 40px)); }
  .hero-copy h1 { font-size: clamp(1.5rem, 7vw, 2.2rem); }
  .hero-copy p { font-size: 1rem; }
  .pd-media { position: static; }
  .product-modal {
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    border-radius: 0;
  }
  .product-detail {
    max-height: 100dvh;
    border-radius: 0;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }
  .pd-info { padding: 16px; }
  .pd-buy { flex-wrap: wrap; }
  .pd-buy .btn-add { flex: 1; min-width: 160px; min-height: 48px; }
  .cart-drawer {
    width: 100%;
    max-width: 100%;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .checkout-modal {
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
  }
  .checkout-card {
    border-radius: 0;
    max-height: 100dvh;
    overflow: auto;
    padding: 20px 16px calc(24px + env(safe-area-inset-bottom));
    -webkit-overflow-scrolling: touch;
  }
  .payment-header {
    padding-top: calc(14px + env(safe-area-inset-top));
  }
  .payment-panel { border-radius: 18px; padding: 16px; }
  .header-actions .join-link, .phone-num { display: none; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 16px); }
  .header-bottom {
    flex-wrap: wrap;
    gap: 8px;
  }
  .cats-wrap, .search { width: 100%; }
  .cats-btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }
  .cats-panel {
    position: fixed;
    inset: auto 0 0 0;
    top: auto;
    width: 100%;
    max-height: min(78dvh, 640px);
    border-radius: 20px 20px 0 0;
    z-index: 140;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }
  .product-grid, .guide-grid, .news-grid, .footer-grid, .footer-grid-simple {
    grid-template-columns: 1fr;
  }
  .card .add, .btn-add, .btn-hero {
    min-height: 44px;
    width: 100%;
  }
  .notice-card {
    grid-template-columns: auto 1fr;
    bottom: -48px;
    inset-inline: 12px;
    width: auto;
    padding: 12px;
  }
  .notice-nav { grid-column: 1 / -1; display: flex; justify-content: end; }
  .bestsellers { padding-top: 72px; }
  .shop-tools {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .shop-tools select {
    width: 100%;
    min-height: 44px;
  }
  .section-head {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .rail-nav { display: none; }
  .category-rail { grid-template-columns: 1fr; padding-top: 12px; }
  .pd-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .pd-tab { white-space: nowrap; min-height: 44px; }
  .cart-line { grid-template-columns: 64px 1fr; }
  .cart-line > strong { grid-column: 2; justify-self: start; }
  .newsletter-inner {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .newsletter-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .newsletter-form button { min-height: 44px; width: 100%; }
  .contact-addresses { grid-template-columns: 1fr; }
  .icon-btn { min-width: 44px; min-height: 44px; }
  .pager button {
    min-width: 40px;
    min-height: 40px;
  }
}

@media (max-width: 420px) {
  .hero, .hero-slider { min-height: 300px; height: 300px; }
  .product-grid { gap: 10px; }
  .card-body { padding: 12px; }
  .modal-close { top: calc(8px + env(safe-area-inset-top)); }
}

/* ===== BlackEveryday storefront skin ===== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: none;
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  flex-wrap: wrap;
}
.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  margin-inline-end: 4px;
}
.header-brand strong {
  font-size: .95rem;
  letter-spacing: .04em;
  font-weight: 900;
}
/* Host-aware brand swap (html[data-site] from site-brand.js) */
html[data-site="bazarbay"] .brand-digikaalla,
html:not([data-site="bazarbay"]) .brand-bazarbay {
  display: none !important;
}
html[data-site="bazarbay"] strong.brand-bazarbay,
html:not([data-site="bazarbay"]) strong.brand-digikaalla {
  display: inline;
}
html[data-site="bazarbay"] h1.brand-bazarbay,
html:not([data-site="bazarbay"]) h1.brand-digikaalla {
  display: block;
}
html[data-site="bazarbay"] a.brand-bazarbay,
html:not([data-site="bazarbay"]) a.brand-digikaalla,
html[data-site="bazarbay"] .footer-brand.brand-bazarbay,
html:not([data-site="bazarbay"]) .footer-brand.brand-digikaalla,
html[data-site="bazarbay"] span.brand-bazarbay,
html:not([data-site="bazarbay"]) span.brand-digikaalla {
  display: inline;
}
html[data-site="bazarbay"] .legal-note.brand-bazarbay,
html:not([data-site="bazarbay"]) .legal-note.brand-digikaalla {
  display: block;
}
/* Match Digikaalla brand lettering weight/casing on BazarBay */
html[data-site="bazarbay"] .brand-name.brand-bazarbay,
html[data-site="bazarbay"] .footer-brand.brand-bazarbay,
html[data-site="bazarbay"] .payment-brand .brand-bazarbay {
  font-family: "Vazirmatn", Tahoma, sans-serif;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.header-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}
.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 12px;
}
.footer-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
  background: #fff;
  border-radius: 12px;
  padding: 4px;
}
.refresh-chip {
  background: #111;
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
}
.be-hero {
  background: linear-gradient(180deg, #fff 0%, #F5F5F5 100%);
  padding: 48px 0 28px;
  text-align: center;
}
.be-hero-inner { max-width: 820px; }
.be-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.be-logo-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(30, 107, 255, 0.22));
}
.be-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--primary); color: #fff;
  display: grid; place-items: center;
  font-weight: 900; font-size: 1.3rem;
}
.be-logo strong { font-size: 1.45rem; letter-spacing: .04em; font-weight: 900; }
.be-headline {
  margin: 0 0 10px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
}
.be-headline span { color: var(--primary); }
.be-sub { margin: 0 0 22px; color: var(--muted); }
.be-search-pro { max-width: 720px; margin: 0 auto; }
.be-search {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
  max-width: 720px;
  margin: 0 auto 18px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.be-search:focus-within {
  border-color: rgba(230, 18, 61, 0.55);
  box-shadow: 0 12px 32px rgba(230, 18, 61, 0.12);
}
.be-search-icon {
  display: grid;
  place-items: center;
  padding-inline: 14px 4px;
  color: #9ca3af;
}
.be-search input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 16px 10px;
  background: transparent;
  font-size: 1rem;
  min-width: 0;
}
.be-search-clear {
  border: 0;
  background: transparent;
  color: #9ca3af;
  font-size: 1.4rem;
  padding: 0 10px;
  cursor: pointer;
}
.be-search-go {
  border: 0;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 0 22px;
  cursor: pointer;
  min-width: 96px;
}
.be-search button {
  width: auto;
  border: 0;
  background: var(--primary);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.home-categories,
.home-cat-head,
.home-cat-icon,
.home-cat-chips,
.home-cat-chip {
  display: none !important;
}
.product-grid.is-searching {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.discount-rail {
  padding: 8px 0 22px;
  background: linear-gradient(180deg, #F5F5F5 0%, #fff 100%);
}
.discount-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.discount-rail-head h2 {
  margin: 0;
  font-size: 1.15rem;
}
.be-daste-btn,
.be-home-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
  text-decoration: none;
}
.be-daste-btn:hover,
.be-home-back:hover {
  border-color: rgba(230, 18, 61, 0.4);
  color: #E6123D;
}
.be-marquee-fill { min-height: 320px; }
.be-cats-wrap { justify-content: center; margin-top: 8px; }
.be-panel {
  background: #fff;
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.special-deals, .shop { padding: 18px 0; background: transparent; }
.section-head h2 { color: #111 !important; }
.more-link {
  background: #F3F4F6;
  color: #4B5563;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: .85rem;
  font-weight: 700;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.card, .deal-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover, .deal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}
.deal-badge, .card .deal-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: .8rem;
  font-weight: 800;
}
.card img, .deal-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #FAFAFA;
}
.card-body { padding: 12px; }
.card-body .sub { color: var(--muted); font-size: .75rem; }
.card-body h3 {
  margin: 6px 0 8px;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.45;
  min-height: 2.6em;
}
.price-stack { display: grid; gap: 2px; margin-bottom: 10px; }
.price-old {
  color: var(--muted);
  text-decoration: line-through;
  font-size: .78rem;
}
.price-now { font-weight: 800; font-size: 1rem; color: #111; }
.card .add, .deal-card .add, .btn-add, .auth-tab.is-active, .order-tab.is-active, .deal-seg.is-active {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}
.card .add, .deal-card .add {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 10px;
  font-weight: 800;
  cursor: pointer;
}
.cats-btn, .auth-chip.is-user { background: var(--primary); color: #fff; border-color: var(--primary); }
.site-footer { background: #111; color: #ddd; }
.footer-brand { color: #fff; font-weight: 900; letter-spacing: .04em; }
.footer-bottom { border-top: 1px solid #333; }
.newsletter { background: transparent; }
.newsletter-inner {
  background: #fff;
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.newsletter-form button { background: var(--primary); }

/* Make عضویت email form clearly readable on white BE panel */
.membership-block {
  padding: 12px 0 28px;
}
.membership-block .newsletter-inner {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, #FFF7F9 100%);
}
.membership-eyebrow {
  margin: 0 0 6px;
  color: var(--primary);
  font-weight: 800;
  font-size: .92rem;
}
.membership-copy h2 {
  margin: 0 0 8px;
  color: #111;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}
.membership-copy p {
  margin: 0;
  color: #4B5563;
  opacity: 1;
}
.membership-block .newsletter-form {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: 560px;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.membership-block .newsletter-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: #fff;
  color: #111;
  padding: 14px 16px;
  font: inherit;
}
.membership-block .newsletter-form input::placeholder {
  color: #9CA3AF;
}
.membership-block .newsletter-form button {
  border: 0;
  border-radius: 0;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  padding: 14px 22px;
  cursor: pointer;
  white-space: nowrap;
  min-width: 110px;
}
.membership-block .newsletter-form button:disabled {
  opacity: .7;
  cursor: wait;
}
.membership-status {
  margin: 0;
  font-size: .92rem;
  font-weight: 700;
}
.membership-status.is-ok { color: #047857; }
.membership-status.is-err { color: #B91C1C; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.enamad-seal,
.trust-seals {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.enamad-seal a,
.trust-seals a {
  display: inline-block;
  margin: 0;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  cursor: pointer;
}
.enamad-seal img,
.trust-seals img {
  display: block;
  width: 125px;
  height: 125px;
  object-fit: contain;
}
@media (max-width: 720px) {
  .header-brand strong { display: none; }
  .be-logo-img { width: 64px; height: 64px; }
  .membership-block .newsletter-form {
    flex-direction: column;
  }
  .membership-block .newsletter-form button {
    width: 100%;
    min-height: 48px;
  }
}
.deal-band {
  background: #fff;
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.category-rail { margin: 8px auto 4px; }
.rail-track { gap: 10px; }
.be-search-wrap, .header-search-wrap {
  position: relative;
  max-width: 680px;
  margin: 0 auto 16px;
}
.header-search-wrap {
  flex: 1;
  max-width: 420px;
  margin: 0;
  min-width: 0;
}
.be-search-wrap .be-search { margin-bottom: 0; max-width: none; }
.search-suggest {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 6px);
  z-index: 80;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  max-height: min(360px, 55vh);
  overflow: auto;
  text-align: right;
}
.search-suggest[hidden] { display: none !important; }
.search-suggest-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  cursor: pointer;
  text-align: right;
  color: inherit;
  font: inherit;
}
.search-suggest-item:hover,
.search-suggest-item.is-active { background: #F9FAFB; }
.search-suggest-item img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
  background: #f3f4f6;
}
.search-suggest-item .sg-meta { display: grid; gap: 2px; min-width: 0; }
.search-suggest-item .sg-meta b {
  font-size: .86rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-suggest-item .sg-meta span {
  font-size: .75rem;
  color: var(--muted);
}
.search-suggest-item .sg-pct {
  font-size: .78rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}
.search-suggest-more {
  display: block;
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 12px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  color: var(--primary);
}
.search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.search-chips[hidden] { display: none !important; }
.search-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 6px 10px 6px 8px;
  font-size: .82rem;
  font-weight: 600;
}
.search-chip button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 2px;
}
.search-chip button:hover { color: var(--primary); }
.search-relax {
  margin: 0 0 12px;
  padding: 10px 12px;
  background: #fff8e8;
  border: 1px solid #f0e0b8;
  border-radius: 12px;
  color: #6b5420;
  font-size: .88rem;
}
.search-relax[hidden] { display: none !important; }
.search-debug {
  margin: 0 0 14px;
  padding: 12px;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 12px;
  font-size: .75rem;
  overflow: auto;
  max-height: 280px;
  text-align: left;
  direction: ltr;
}
.search-debug[hidden] { display: none !important; }
@media (max-width: 720px) {
  .refresh-chip { display: none; }
  .be-hero { padding-top: 28px; }
  .be-panel { border-radius: 18px; padding: 14px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* Waiting / processing indicators */
.wait-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #eadff3;
  border-top-color: var(--purple-700, #7a1fa2);
  border-radius: 50%;
  animation: wait-spin .7s linear infinite;
}
@keyframes wait-spin { to { transform: rotate(360deg); } }
.wait-bar {
  width: min(280px, 70%);
  height: 4px;
  background: #eadff3;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 10px;
}
.wait-bar > span {
  display: block;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, #c084fc, #7a1fa2, #c084fc);
  border-radius: inherit;
  animation: wait-bar-slide 1.1s ease-in-out infinite;
}
@keyframes wait-bar-slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}
.search-loading {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 28px 16px;
  text-align: center;
  color: var(--muted, #666);
  font-weight: 600;
}
.search-loading[hidden] { display: none !important; }
.product-grid.is-searching { opacity: 0.45; }
.pd-main-media { position: relative; }
.pd-source-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 8px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(2px);
  font-size: .85rem;
  font-weight: 700;
  color: var(--purple-800, #5b157a);
  text-align: center;
  padding: 12px;
}
.pd-source-loading[hidden] { display: none !important; }
.account-product-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 10px;
  align-items: center;
}
.account-product-row img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  background: #f3f3f3;
}
#modalFavorite.is-fav { color: #b91c1c; font-weight: 800; }
.auth-row { margin: 8px 0; }

/* Fast boot loader: dim page + Lottie / spinner */
.page-loader {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  pointer-events: all;
  animation: none;
  background: transparent;
  transition: opacity .25s ease, visibility .25s ease;
}
.page-loader-dim {
  position: absolute; inset: 0;
  background: rgba(10, 10, 14, 0.55);
  backdrop-filter: blur(2px);
}
.page-loader-card {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 22px 26px;
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  min-width: 160px;
}
.loader-lottie { width: 88px; height: 88px; display: none; }
.loader-lottie.is-active { display: block; }
.loader-fallback-spinner.is-hidden { display: none !important; }
.loader-text { margin: 0; font-weight: 700; color: #333; font-size: .9rem; }
.page-loader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
