/* =====================================================================
   STORSATMAROC — التنسيقات
   الهوية: "مدار" — Dark Luxury Tech + زليج مغربي
   ===================================================================== */

:root {
  --bg: #0B0F1A;
  --bg-2: #0E1322;
  --surface: #141A2B;
  --surface-2: #1B2338;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --gold: #D4A24C;
  --gold-2: #F0C673;
  --gold-ink: #1A1205;
  --signal: #2EE6C5;
  --red: #C1272D;
  --wa: #25D366;
  --text: #E8ECF4;
  --muted: #8A93A8;
  --danger: #FF7A7F;

  --radius: 24px;
  --radius-sm: 14px;
  --nav-h: 68px;
  --ease: cubic-bezier(0.2, 0.9, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.75);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 150px; }
body {
  font-family: 'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
body.locked { overflow: hidden; touch-action: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
::selection { background: rgba(212, 162, 76, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 10px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -60px; inset-inline-start: 16px; z-index: 200;
  background: var(--gold); color: var(--gold-ink); padding: 10px 16px;
  border-radius: 12px; font-weight: 800; transition: top 0.2s;
}
.skip-link:focus { top: 12px; }
.num { font-family: 'Space Grotesk', 'Tajawal', sans-serif; font-feature-settings: 'tnum'; }
.muted { color: var(--muted); }
.ic { width: 20px; height: 20px; flex: none; }

/* ---------- Background ---------- */
.space-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.zellige {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cg fill='none' stroke='%23D4A24C' stroke-width='1'%3E%3Cpath d='M44 10l10 24 24 10-24 10-10 24-10-24-24-10 24-10z'/%3E%3Crect x='27' y='27' width='34' height='34' transform='rotate(45 44 44)'/%3E%3Ccircle cx='44' cy='44' r='6'/%3E%3Cpath d='M0 0l10 10M88 0L78 10M0 88l10-10M88 88l-10-10'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 88px 88px;
  opacity: 0.055;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 10%, transparent 75%);
}
.orbit {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(46, 230, 197, 0.1);
  animation: spin 70s linear infinite;
}
.orbit::after {
  content: ''; position: absolute; top: 50%; left: -4px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--signal); box-shadow: 0 0 18px var(--signal);
}
.o1 { width: 900px; height: 900px; top: -480px; left: -320px; }
.o2 {
  width: 1400px; height: 1400px; top: -700px; right: -700px;
  border-color: rgba(212, 162, 76, 0.08);
  animation-duration: 110s; animation-direction: reverse;
}
.o2::after { background: var(--gold); box-shadow: 0 0 18px var(--gold); }
.glow { position: absolute; border-radius: 50%; filter: blur(100px); }
.g1 { width: 460px; height: 460px; background: #183766; top: -160px; right: -120px; opacity: 0.45; }
.g2 { width: 380px; height: 380px; background: #D4A24C; top: 45vh; left: -200px; opacity: 0.12; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding: 10px 12px 0;
  padding-top: calc(10px + env(safe-area-inset-top));
}
.header-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  grid-template-areas: "logo . cur cart" "search search search search";
  gap: 10px; align-items: center;
  background: rgba(14, 19, 34, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 10px 12px;
  transition: background 0.3s, box-shadow 0.3s;
}
.site-header.scrolled .header-inner {
  background: rgba(11, 15, 26, 0.9);
  box-shadow: 0 14px 40px -14px rgba(0, 0, 0, 0.8);
}
.logo { grid-area: logo; display: flex; align-items: center; gap: 8px; }
.logo-mark { display: grid; place-items: center; }
.logo-mark svg { animation: spin 24s linear infinite; }
.logo-text {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.02rem;
  letter-spacing: 0.4px; direction: ltr; unicode-bidi: isolate;
}
.logo-text b { color: var(--gold); font-weight: 700; }

/* Search */
.search { grid-area: search; position: relative; }
.search-ic {
  position: absolute; top: 50%; inset-inline-start: 14px; transform: translateY(-50%);
  color: var(--muted); width: 18px; height: 18px; pointer-events: none;
}
.search input {
  width: 100%; height: 46px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  padding-inline: 42px 14px;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.search input::placeholder { color: var(--muted); }
.search input:focus {
  border-color: rgba(46, 230, 197, 0.5);
  box-shadow: 0 0 0 4px rgba(46, 230, 197, 0.12);
  background: rgba(255, 255, 255, 0.08);
}
.search input::-webkit-search-cancel-button { filter: invert(0.7); cursor: pointer; }
.search-results {
  position: absolute; top: calc(100% + 8px); inset-inline: 0; z-index: 60;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 18px; padding: 6px; box-shadow: var(--shadow-lg);
  max-height: 62vh; overflow-y: auto; animation: pop 0.2s var(--ease);
}
.sr-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 8px; border-radius: 12px; text-align: start; transition: background 0.15s;
}
.sr-item:hover, .sr-item.active { background: rgba(255, 255, 255, 0.06); }
.sr-thumb { position: relative; width: 46px; height: 46px; border-radius: 12px; overflow: hidden; flex: none; }
.sr-thumb .pv-icon { font-size: 1.35rem; }
.sr-text { display: flex; flex-direction: column; min-width: 0; }
.sr-name { font-weight: 700; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-name mark { background: none; color: var(--signal); }
.sr-meta { font-size: 0.76rem; color: var(--muted); }
.sr-price { margin-inline-start: auto; color: var(--gold-2); font-weight: 700; font-size: 0.88rem; white-space: nowrap; }
.sr-all {
  display: block; width: 100%; padding: 10px; margin-top: 4px; border-radius: 12px;
  color: var(--signal); font-weight: 700; font-size: 0.85rem; border-top: 1px solid var(--line);
}
.sr-all:hover { background: rgba(46, 230, 197, 0.08); }
.sr-empty { padding: 16px; color: var(--muted); text-align: center; font-size: 0.9rem; }

/* Icon buttons */
.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 14px;
  display: inline-grid; place-items: center;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
  transition: transform 0.2s var(--spring), background 0.2s, border-color 0.2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--line-2); }
.icon-btn:active { transform: scale(0.9); }
.currency-btn {
  grid-area: cur; width: auto; padding: 0 12px;
  display: inline-flex; gap: 6px; align-items: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.8rem;
  letter-spacing: 1px; color: var(--gold-2);
}
.currency-btn .ic { width: 16px; height: 16px; }
.cart-btn { grid-area: cart; }
.cart-count {
  position: absolute; top: -7px; inset-inline-end: -7px;
  min-width: 21px; height: 21px; padding: 0 5px; border-radius: 11px;
  background: var(--gold); color: var(--gold-ink);
  font-size: 0.72rem; font-weight: 700; display: grid; place-items: center;
  box-shadow: 0 0 0 3px var(--bg);
  transition: transform 0.3s var(--spring);
}
.cart-count.empty, .nav-cart-bubble i.empty { transform: scale(0); }
.bump { animation: bump 0.55s var(--spring); }

/* ---------- Layout ---------- */
main { max-width: 1240px; margin: 0 auto; padding: 14px 12px 40px; }
section { scroll-margin-top: 150px; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; margin: 44px 0 16px; flex-wrap: wrap;
}
.section-head.center { justify-content: center; text-align: center; }
.kicker {
  display: inline-block; font-size: 0.78rem; font-weight: 800; color: var(--signal);
  letter-spacing: 0.5px; margin-bottom: 2px;
}
.section-head h2 {
  font-family: 'Cairo', 'Tajawal', sans-serif; font-weight: 900;
  font-size: clamp(1.5rem, 5vw, 2.2rem); line-height: 1.2;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 22px; border-radius: 16px;
  font-weight: 800; font-size: 1rem; white-space: nowrap; overflow: hidden;
  transition: transform 0.2s var(--spring), box-shadow 0.25s, background 0.25s, border-color 0.25s, opacity 0.2s;
}
.btn:active { transform: scale(0.96); }
.btn:disabled { opacity: 0.45; pointer-events: none; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: var(--gold-ink);
  box-shadow: 0 12px 30px -12px rgba(212, 162, 76, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-gold::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
}
@media (hover: hover) {
  .btn-gold:hover { box-shadow: 0 16px 40px -12px rgba(212, 162, 76, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
  .btn-gold:hover::after { animation: shine 0.9s var(--ease); }
}
.btn-ghost { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-wa {
  background: linear-gradient(135deg, #3BEA8A, #19A955); color: #04210F;
  box-shadow: 0 12px 30px -12px rgba(37, 211, 102, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-block { width: 100%; }
.btn-sm { height: 42px; padding: 0 16px; font-size: 0.88rem; border-radius: 12px; }

/* ---------- Hero / Bento ---------- */
.bento { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)), var(--surface);
  padding: 16px;
  transition: transform 0.35s var(--ease), border-color 0.3s;
}
@media (hover: hover) { .tile:hover { border-color: var(--line-2); } }
.tile-main {
  grid-column: 1 / -1;
  padding: 26px 20px 150px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(46, 230, 197, 0.13), transparent 60%),
    radial-gradient(90% 70% at 0% 100%, rgba(212, 162, 76, 0.16), transparent 60%),
    var(--surface);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(46, 230, 197, 0.08); border: 1px solid rgba(46, 230, 197, 0.25);
  color: var(--signal); font-size: 0.78rem; font-weight: 800;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--signal);
  box-shadow: 0 0 0 0 rgba(46, 230, 197, 0.7); animation: pulse 1.8s infinite;
}
.tile-main h1 {
  font-family: 'Cairo', 'Tajawal', sans-serif; font-weight: 900;
  font-size: clamp(2.2rem, 8.5vw, 3.9rem); line-height: 1.15;
  margin: 16px 0 12px; letter-spacing: -0.5px;
}
.grad-text {
  background: linear-gradient(90deg, var(--gold-2), var(--gold) 45%, var(--signal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { color: var(--muted); font-size: 1rem; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; font-size: 0.85rem; color: var(--muted); }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points .ic { width: 16px; height: 16px; color: var(--signal); }

.orbit-visual {
  position: absolute; z-index: -1; width: 240px; height: 240px;
  inset-inline-end: -50px; bottom: -70px;
}
.planet {
  position: absolute; inset: 31%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #F7DA98, var(--gold) 48%, #5A3D10 100%);
  box-shadow: 0 0 70px rgba(212, 162, 76, 0.45), inset -10px -12px 30px rgba(0, 0, 0, 0.45);
}
.orb-ring { position: absolute; border-radius: 50%; animation: spin 20s linear infinite; }
.orb-ring.r1 { inset: 0; border: 1px dashed rgba(46, 230, 197, 0.4); }
.orb-ring.r2 { inset: 14%; border: 1px solid rgba(255, 255, 255, 0.12); animation-duration: 13s; animation-direction: reverse; }
.sat {
  position: absolute; top: -6px; left: calc(50% - 6px); width: 12px; height: 12px; border-radius: 4px;
  background: var(--signal); box-shadow: 0 0 16px var(--signal);
}
.sat-gold { width: 9px; height: 9px; top: -4.5px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 14px var(--gold); }

/* Deal tile */
.tile-deal { grid-column: 1 / -1; }
.tile-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 800; color: var(--gold-2);
}
.deal { display: flex; gap: 14px; align-items: center; margin-top: 12px; }
.deal-media {
  position: relative; width: 112px; height: 112px; flex: none;
  border-radius: 20px; overflow: hidden; cursor: pointer;
}
.deal-media .pv-icon { font-size: 3rem; }
.deal-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.deal-info h3 { font-size: 1.05rem; font-weight: 800; line-height: 1.35; }
.deal-info p { font-size: 0.82rem; color: var(--muted); }
.deal-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.link-btn { font-size: 0.85rem; font-weight: 700; color: var(--muted); padding: 0 6px; }
.link-btn:hover { color: var(--text); }

/* Feature tiles */
.tile-feat h3, .tile-wa h3 { font-size: 0.98rem; font-weight: 800; margin-top: 12px; line-height: 1.3; }
.tile-feat p, .tile-wa p { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.feat-ic {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
}
.ic-signal { background: rgba(46, 230, 197, 0.12); color: var(--signal); box-shadow: inset 0 0 0 1px rgba(46, 230, 197, 0.25); }
.ic-gold { background: rgba(212, 162, 76, 0.14); color: var(--gold-2); box-shadow: inset 0 0 0 1px rgba(212, 162, 76, 0.3); }
.ic-wa { background: rgba(37, 211, 102, 0.14); color: #4BE38E; box-shadow: inset 0 0 0 1px rgba(37, 211, 102, 0.3); }
.tile-wa { background: linear-gradient(160deg, rgba(37, 211, 102, 0.1), rgba(37, 211, 102, 0.02)), var(--surface); }
@media (hover: hover) { .tile-wa:hover { transform: translateY(-3px); border-color: rgba(37, 211, 102, 0.4); } }

/* Coupon tile */
.tile-coupon {
  border: 1.5px dashed rgba(212, 162, 76, 0.5);
  background: linear-gradient(135deg, rgba(212, 162, 76, 0.14), rgba(212, 162, 76, 0.03)), var(--surface);
  display: flex; flex-direction: column; gap: 4px;
}
.tile-coupon::before, .tile-coupon::after {
  content: ''; position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg); transform: translateY(-50%);
}
.tile-coupon::before { right: -10px; }
.tile-coupon::after { left: -10px; }
.coupon-kicker { font-size: 0.76rem; font-weight: 800; color: var(--gold-2); }
.coupon-code {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.25rem; font-weight: 700;
  letter-spacing: 2px; direction: ltr; text-align: start;
}
.coupon-desc { font-size: 0.78rem; color: var(--muted); }
.coupon-copy {
  align-self: flex-start; margin-top: 6px; padding: 6px 12px; border-radius: 10px;
  background: var(--gold); color: var(--gold-ink); font-size: 0.78rem; font-weight: 800;
  transition: transform 0.2s var(--spring);
}
.coupon-copy:active { transform: scale(0.94); }

/* ---------- Shop ---------- */
.shop-tools { display: flex; align-items: center; gap: 10px; }
.result-count { font-size: 0.82rem; color: var(--muted); }
.sort select {
  height: 40px; border-radius: 12px; padding: 0 12px 0 32px;
  background: rgba(255, 255, 255, 0.05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A93A8' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat left 10px center / 14px;
  border: 1px solid var(--line); font-size: 0.85rem; font-weight: 700;
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
.sort select:focus { border-color: rgba(46, 230, 197, 0.5); }
.sort option { background: var(--surface); color: var(--text); }

.chips {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity;
  margin: 0 -12px 16px; padding: 4px 12px 8px; scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; scroll-snap-align: start;
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  font-weight: 700; font-size: 0.92rem; color: var(--muted);
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s var(--spring), box-shadow 0.25s;
}
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip:active { transform: scale(0.95); }
.chip .count { font-size: 0.72rem; background: rgba(255, 255, 255, 0.08); padding: 1px 8px; border-radius: 99px; }
.chip[aria-selected="true"] {
  color: var(--gold-ink); border-color: transparent;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: 0 10px 24px -12px rgba(212, 162, 76, 0.9);
}
.chip[aria-selected="true"] .count { background: rgba(0, 0, 0, 0.14); }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s;
  animation: cardIn 0.55s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}
@media (hover: hover) {
  .card:hover {
    transform: translateY(-5px); border-color: rgba(212, 162, 76, 0.35);
    box-shadow: 0 26px 50px -24px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(212, 162, 76, 0.1);
  }
  .card:hover .pv-icon { transform: scale(1.1) rotate(-5deg); }
}
.card-media { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 12px; flex: 1; }
.card-cat { font-size: 0.72rem; font-weight: 800; color: var(--signal); }
.card-title {
  font-size: 0.95rem; font-weight: 800; line-height: 1.4; min-height: 2.8em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-title a:hover { color: var(--gold-2); }
.price-row { display: flex; align-items: baseline; gap: 4px 8px; flex-wrap: wrap; margin-top: auto; }
.from { font-size: 0.7rem; color: var(--muted); width: 100%; line-height: 1; }
.price {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.12rem; color: var(--gold-2);
  display: inline-flex; align-items: baseline; gap: 4px;
}
.price small { font-family: 'Tajawal', sans-serif; font-size: 0.72em; font-weight: 700; }
.old { color: var(--muted); font-size: 0.8rem; font-family: 'Space Grotesk', 'Tajawal', sans-serif; }
.card-actions { display: flex; gap: 8px; margin-top: 6px; }
.btn-buy {
  flex: 1; height: 42px; border-radius: 13px;
  background: rgba(212, 162, 76, 0.12); color: var(--gold-2);
  border: 1px solid rgba(212, 162, 76, 0.28);
  font-weight: 800; font-size: 0.86rem;
  transition: background 0.25s, color 0.25s, transform 0.2s var(--spring);
}
.btn-buy:hover { background: var(--gold); color: var(--gold-ink); }
.btn-buy:active { transform: scale(0.95); }
.btn-add {
  width: 42px; height: 42px; border-radius: 13px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--gold-ink);
  transition: transform 0.25s var(--spring), background 0.3s;
}
.btn-add:active { transform: scale(0.88); }
.btn-add.added { background: var(--signal); animation: bump 0.5s var(--spring); }
.btn-buy:disabled, .btn-add:disabled { opacity: 0.4; }
.card.oos .card-media .pv, .card.oos .card-media img { filter: grayscale(0.85); opacity: 0.55; }

/* Badges */
.badges {
  position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
}
.badge {
  font-size: 0.7rem; font-weight: 800; padding: 4px 9px; border-radius: 8px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); line-height: 1.3;
}
.badge-off { background: var(--red); color: #fff; direction: ltr; }
.badge-tag { background: rgba(11, 15, 26, 0.72); border: 1px solid rgba(255, 255, 255, 0.16); }
.badge-instant { background: rgba(46, 230, 197, 0.16); color: var(--signal); border: 1px solid rgba(46, 230, 197, 0.35); }

/* Stars */
.stars { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--muted); }
.stars-bar { position: relative; display: inline-block; font-size: 0.82rem; letter-spacing: 1px; line-height: 1; color: rgba(255, 255, 255, 0.14); }
.stars-bar::before { content: '★★★★★'; }
.stars-fill { position: absolute; top: 0; inset-inline-start: 0; height: 100%; overflow: hidden; color: var(--gold); white-space: nowrap; }
.stars-fill::before { content: '★★★★★'; }
.stars .num { color: var(--text); font-weight: 700; }

/* Product visual (generated when no image) */
.pv {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    radial-gradient(circle at 25% 15%, color-mix(in srgb, var(--c1, #2EE6C5) 55%, transparent), transparent 60%),
    radial-gradient(circle at 85% 95%, color-mix(in srgb, var(--c2, #D4A24C) 50%, transparent), transparent 58%),
    #10162A;
}
.pv::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 88 88'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-width='1.5'%3E%3Cpath d='M44 10l10 24 24 10-24 10-10 24-10-24-24-10 24-10z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 44px; opacity: 0.06;
}
.pv::after {
  content: ''; position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.04);
}
.pv-icon {
  position: relative; z-index: 1; font-size: clamp(2.6rem, 11vw, 3.8rem); line-height: 1;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.5));
  transition: transform 0.5s var(--spring);
}
.pv-img { background: #10162A; }
.pv-img::before, .pv-img::after { display: none; }
.pv-img img { width: 100%; height: 100%; object-fit: cover; }

/* Empty state */
.empty, .cart-empty { text-align: center; padding: 48px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty-ic { font-size: 3rem; margin-bottom: 6px; animation: float 3s ease-in-out infinite; }
.empty h3, .cart-empty h3 { font-size: 1.15rem; font-weight: 800; }
.empty p, .cart-empty p { color: var(--muted); font-size: 0.9rem; margin-bottom: 10px; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 12px; }
.step {
  position: relative; padding: 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden;
}
.step-num {
  display: block; font-size: 2.6rem; font-weight: 700; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(212, 162, 76, 0.6); margin-bottom: 10px;
}
.step h3 { font-size: 1.05rem; font-weight: 800; }
.step p { font-size: 0.88rem; color: var(--muted); margin-top: 4px; }
.step::after {
  content: ''; position: absolute; width: 140px; height: 140px; border-radius: 50%;
  inset-inline-end: -50px; top: -50px; border: 1px dashed rgba(46, 230, 197, 0.2);
}

/* ---------- Trust ---------- */
.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 44px; }
.trust-item {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  border-radius: 18px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
}
.trust-item .ic { width: 26px; height: 26px; color: var(--gold-2); }
.trust-item div { display: flex; flex-direction: column; line-height: 1.35; }
.trust-item b { font-size: 0.9rem; }
.trust-item span { font-size: 0.75rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; max-width: 820px; margin: 0 auto; }
.faq details {
  border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.3s;
}
.faq details[open] { border-color: rgba(212, 162, 76, 0.35); }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 800; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.06); color: var(--gold-2); font-size: 1.2rem; font-weight: 700;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 18px 16px; color: var(--muted); font-size: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 30px; padding: 32px 16px 20px; background: rgba(11, 15, 26, 0.6); }
.footer-inner { max-width: 1240px; margin: 0 auto; display: grid; gap: 22px; }
.footer-brand p { color: var(--muted); font-size: 0.88rem; margin-top: 8px; max-width: 40ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 0.9rem; font-weight: 700; }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold-2); }
.footer-contact { display: flex; flex-direction: column; gap: 2px; font-size: 0.85rem; }
.footer-contact span { color: var(--muted); }
.footer-contact a { font-weight: 700; font-size: 1rem; text-align: start; }
.copyright { max-width: 1240px; margin: 22px auto 0; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; font-size: 0.78rem; color: var(--muted); }

/* ---------- Bottom nav ---------- */
.bottom-nav {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 55;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding: 0 6px env(safe-area-inset-bottom);
  background: rgba(11, 15, 26, 0.85);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  border-top: 1px solid var(--line);
}
.bottom-nav > * {
  position: relative; height: var(--nav-h);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 0.68rem; font-weight: 700; color: var(--muted);
  transition: color 0.2s;
}
.bottom-nav > *:active .ic { transform: scale(0.85); }
.bottom-nav .ic { width: 22px; height: 22px; transition: transform 0.2s var(--spring); }
.bottom-nav .active { color: var(--gold-2); }
.bottom-nav .active::before {
  content: ''; position: absolute; top: 6px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold-2); box-shadow: 0 0 10px var(--gold);
}
.nav-cart-bubble {
  position: relative; width: 56px; height: 56px; border-radius: 19px; margin-top: -28px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--gold-ink);
  box-shadow: 0 14px 28px -8px rgba(212, 162, 76, 0.8), 0 0 0 5px var(--bg);
}
.nav-cart-bubble .ic { width: 24px; height: 24px; }
.nav-cart-bubble i {
  position: absolute; top: -6px; inset-inline-end: -6px; font-style: normal;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--signal); color: #04211B; font-size: 0.7rem; font-weight: 700;
  display: grid; place-items: center; box-shadow: 0 0 0 3px var(--bg);
  transition: transform 0.3s var(--spring);
}
.bottom-nav .nav-cart.active::before { display: none; }

/* ---------- Drawer (cart) ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(3, 6, 12, 0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0s linear 0.35s;
}
.scrim.is-open { opacity: 1; visibility: visible; transition: opacity 0.35s, visibility 0s; }
.drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-end: 0; z-index: 90;
  width: min(440px, 100%);
  display: flex; flex-direction: column;
  background: var(--bg-2); border-inline-start: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  transform: translateX(-105%); visibility: hidden;
  transition: transform 0.45s var(--ease), visibility 0s linear 0.45s;
}
[dir="ltr"] .drawer { transform: translateX(105%); }
.drawer.is-open { transform: none; visibility: visible; transition: transform 0.45s var(--ease), visibility 0s; }
.drawer-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; padding-top: calc(14px + env(safe-area-inset-top));
  border-bottom: 1px solid var(--line);
}
.drawer-head h2 { font-family: 'Cairo', 'Tajawal', sans-serif; font-size: 1.2rem; font-weight: 800; }
.drawer-count { font-size: 0.8rem; color: var(--muted); margin-inline-end: auto; }
.drawer-body { flex: 1; overflow-y: auto; padding: 14px 16px; overscroll-behavior: contain; }
.cart-item {
  display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 10px; margin-bottom: 10px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
  animation: slideIn 0.35s var(--ease) both;
}
.ci-thumb { position: relative; width: 68px; height: 68px; border-radius: 14px; overflow: hidden; }
.ci-thumb .pv-icon { font-size: 1.8rem; }
.ci-name { font-weight: 800; font-size: 0.9rem; line-height: 1.35; }
.ci-opts { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }
.ci-price { margin-top: 4px; }
.ci-price .price { font-size: 0.95rem; }
.ci-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ci-remove { font-size: 0.74rem; color: var(--muted); font-weight: 700; transition: color 0.2s; }
.ci-remove:hover { color: var(--danger); }
.stepper {
  display: inline-flex; align-items: center; height: 36px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); border-radius: 12px;
}
.stepper button {
  width: 34px; height: 100%; display: grid; place-items: center;
  font-size: 1.15rem; font-weight: 700; border-radius: 12px; transition: background 0.2s;
}
.stepper button:hover { background: rgba(255, 255, 255, 0.08); }
.stepper button:active { transform: scale(0.88); }
.stepper span { min-width: 26px; text-align: center; font-weight: 700; font-size: 0.92rem; }
.stepper-lg { height: 52px; border-radius: 16px; }
.stepper-lg button { width: 44px; border-radius: 16px; font-size: 1.3rem; }

.drawer-foot {
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: rgba(11, 15, 26, 0.7);
}
.coupon-form { display: flex; gap: 8px; }
.coupon-form input {
  flex: 1; min-width: 0; height: 44px; border-radius: 12px; padding: 0 14px;
  background: rgba(255, 255, 255, 0.05); border: 1px dashed rgba(212, 162, 76, 0.4);
  font-family: 'Space Grotesk', 'Tajawal', sans-serif; letter-spacing: 1px; text-transform: uppercase;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.coupon-form input::placeholder { text-transform: none; letter-spacing: 0; font-family: 'Tajawal', sans-serif; color: var(--muted); }
.coupon-form input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212, 162, 76, 0.12); }
.coupon-form.shake { animation: shake 0.4s; }
.coupon-msg { font-size: 0.78rem; margin-top: 6px; min-height: 0; }
.coupon-msg:empty { display: none; }
.coupon-msg.error { color: var(--danger); }
.coupon-applied {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: 12px; font-size: 0.84rem;
  background: rgba(46, 230, 197, 0.08); border: 1px dashed rgba(46, 230, 197, 0.45); color: var(--signal);
}
.coupon-applied.warn { background: rgba(212, 162, 76, 0.08); border-color: rgba(212, 162, 76, 0.45); color: var(--gold-2); }
.coupon-applied span { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.coupon-applied .ic { width: 16px; height: 16px; }
.coupon-applied b { letter-spacing: 1px; }
.coupon-applied button { font-size: 0.78rem; font-weight: 800; color: var(--muted); flex: none; }
.coupon-applied button:hover { color: var(--danger); }

.totals { display: flex; flex-direction: column; gap: 6px; }
.totals:empty { display: none; }
.t-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.9rem; color: var(--muted); }
.t-row b { font-family: 'Space Grotesk', 'Tajawal', sans-serif; color: var(--text); font-weight: 700; }
.t-discount b { color: var(--signal); }
.t-total { padding-top: 8px; margin-top: 2px; border-top: 1px dashed var(--line-2); color: var(--text); font-weight: 800; font-size: 1.02rem; }
.t-total b { color: var(--gold-2); font-size: 1.3rem; }
.t-alt { font-size: 0.75rem; color: var(--muted); text-align: end; margin-top: -4px; }
.t-hint {
  font-size: 0.76rem; color: var(--signal); background: rgba(46, 230, 197, 0.07);
  padding: 6px 10px; border-radius: 10px;
}
.foot-note { font-size: 0.75rem; color: var(--muted); text-align: center; }

/* Checkout form */
.checkout-summary {
  padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line); margin-bottom: 18px;
}
.cs-title { font-size: 0.8rem; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.cs-row { display: flex; justify-content: space-between; gap: 10px; font-size: 0.85rem; padding: 4px 0; }
.cs-row span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-row span:last-child { flex: none; font-family: 'Space Grotesk', 'Tajawal', sans-serif; color: var(--gold-2); }
.checkout-title { font-size: 1rem; font-weight: 800; margin-bottom: 12px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; }
.optional { color: var(--muted); font-weight: 500; }
.field input, .field textarea {
  width: 100%; height: 50px; border-radius: 14px; padding: 0 14px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field input[dir="ltr"] { text-align: right; }
.field textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 72px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(138, 147, 168, 0.75); }
.field input:focus, .field textarea:focus {
  border-color: rgba(46, 230, 197, 0.5); box-shadow: 0 0 0 4px rgba(46, 230, 197, 0.12); background: rgba(255, 255, 255, 0.07);
}
.field.invalid input { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(255, 122, 127, 0.12); }
.err { display: block; color: var(--danger); font-size: 0.76rem; margin-top: 4px; }
.err:empty { display: none; }

/* Success */
.order-success { text-align: center; padding: 30px 8px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.order-success h3 { font-family: 'Cairo', 'Tajawal', sans-serif; font-size: 1.3rem; font-weight: 800; }
.order-success p { font-size: 0.92rem; }
.order-success b { color: var(--gold-2); letter-spacing: 1px; }
.order-success .btn { margin-top: 6px; }
.success-ic svg { width: 84px; height: 84px; stroke: var(--signal); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.success-ic circle { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 0.7s var(--ease) forwards; }
.success-ic path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 0.4s var(--ease) 0.55s forwards; }
.success-ic { filter: drop-shadow(0 0 20px rgba(46, 230, 197, 0.35)); }

/* ---------- Modal (product) ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: flex-end; justify-content: center;
  visibility: hidden; pointer-events: none; transition: visibility 0s linear 0.45s;
}
.modal.is-open { visibility: visible; pointer-events: auto; transition: visibility 0s; }
.modal-backdrop {
  position: absolute; inset: 0; background: rgba(3, 6, 12, 0.7);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.35s;
}
.modal.is-open .modal-backdrop { opacity: 1; }
.modal-panel {
  position: relative; width: 100%; max-height: 92vh; max-height: 92dvh;
  background: var(--surface); border: 1px solid var(--line-2); border-bottom: 0;
  border-radius: 28px 28px 0 0; overflow-y: auto; overscroll-behavior: contain;
  transform: translateY(100%); transition: transform 0.45s var(--ease);
  padding-bottom: env(safe-area-inset-bottom);
}
.modal.is-open .modal-panel { transform: none; }
.sheet-handle { width: 44px; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, 0.22); margin: 10px auto 0; }
.modal-close {
  position: absolute; top: 18px; inset-inline-end: 18px; z-index: 5;
  background: rgba(11, 15, 26, 0.65); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.pm { display: grid; }
.pm-gallery { padding: 12px 14px 0; }
.pm-main { position: relative; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; }
.pm-main .pv-icon { font-size: 5.5rem; animation: float 4s ease-in-out infinite; }
.pm-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.pm-thumb {
  position: relative; flex: none; width: 64px; height: 64px; border-radius: 14px; overflow: hidden;
  border: 2px solid transparent; opacity: 0.55; transition: opacity 0.2s, border-color 0.2s;
}
.pm-thumb .pv-icon { font-size: 1.5rem; }
.pm-thumb.active { border-color: var(--gold); opacity: 1; }
.pm-info { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px 0; }
.pm-title { font-family: 'Cairo', 'Tajawal', sans-serif; font-size: 1.45rem; font-weight: 800; line-height: 1.3; }
.pm-price-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.price-lg { font-size: 1.75rem; }
.save {
  font-size: 0.75rem; font-weight: 800; color: var(--signal);
  background: rgba(46, 230, 197, 0.1); padding: 4px 10px; border-radius: 8px;
}
.pm-note {
  display: flex; align-items: center; gap: 8px; font-size: 0.84rem; font-weight: 700;
  padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
}
.pm-note .ic { width: 18px; height: 18px; color: var(--gold-2); }
.pm-desc { color: var(--muted); font-size: 0.92rem; }
.opt-group { display: flex; flex-direction: column; gap: 8px; }
.opt-label { font-size: 0.85rem; color: var(--muted); font-weight: 700; }
.opt-label b { color: var(--text); }
.opt-list { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  min-width: 84px; padding: 10px 14px; border-radius: 14px;
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  font-weight: 700; font-size: 0.86rem;
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s var(--spring);
}
.opt:hover { border-color: var(--line-2); }
.opt:active { transform: scale(0.95); }
.opt small { font-size: 0.74rem; color: var(--muted); }
.opt .swatch { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); margin-bottom: 2px; }
.opt[aria-checked="true"] {
  border-color: var(--gold); background: rgba(212, 162, 76, 0.12); color: var(--gold-2);
  box-shadow: 0 0 0 3px rgba(212, 162, 76, 0.14);
}
.opt[aria-checked="true"] small { color: var(--gold-2); }
.opt:disabled { opacity: 0.35; text-decoration: line-through; }
.pm-features { display: grid; gap: 8px; }
.pm-features li { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; }
.pm-features .ic { width: 18px; height: 18px; color: var(--signal); padding: 2px; border-radius: 6px; background: rgba(46, 230, 197, 0.1); }
.pm-actions {
  position: sticky; bottom: 0; z-index: 3;
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 4px -18px 0; padding: 14px 18px 16px;
  background: linear-gradient(to bottom, rgba(20, 26, 43, 0), var(--surface) 22%);
}
.pm-add { flex: 1; height: 52px; }
.pm-buy { width: 100%; height: 56px; font-size: 1.02rem; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; z-index: 150;
  bottom: calc(var(--nav-h) + 18px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 32px);
  padding: 12px 18px; border-radius: 16px;
  background: rgba(27, 35, 56, 0.96); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg); font-weight: 700; font-size: 0.9rem;
  transition: opacity 0.3s, transform 0.4s var(--spring);
}
.toast .ic { width: 18px; height: 18px; color: var(--signal); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 230, 197, 0.6); }
  70% { box-shadow: 0 0 0 9px rgba(46, 230, 197, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 230, 197, 0); }
}
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes shine { to { left: 130%; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* ---------- Responsive ---------- */
@media (min-width: 600px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .trust { grid-template-columns: repeat(4, 1fr); }
  .tile-main { padding: 34px 30px 170px; }
  .orbit-visual { width: 300px; height: 300px; bottom: -90px; }
}

@media (min-width: 900px) {
  html { scroll-padding-top: 100px; }
  body { padding-bottom: 0; }
  .bottom-nav { display: none; }
  .site-header { padding: 14px 20px 0; }
  .header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-areas: "logo search cur cart";
    gap: 14px; padding: 10px 14px;
  }
  .search { max-width: 560px; justify-self: center; width: 100%; }
  main { padding: 20px 20px 60px; }
  section { scroll-margin-top: 100px; }

  .bento {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(150px, auto);
    gap: 14px;
  }
  .tile { padding: 20px; }
  .tile-main { grid-column: 1 / 3; grid-row: 1 / 4; padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; }
  .tile-deal { grid-column: 3 / 5; grid-row: 1; }
  .tile-feat:nth-of-type(3) { grid-column: 3; grid-row: 2; }
  .tile-feat:nth-of-type(4) { grid-column: 4; grid-row: 2; }
  .tile-coupon { grid-column: 3; grid-row: 3; }
  .tile-wa { grid-column: 4; grid-row: 3; }
  .tile-coupon[hidden] ~ .tile-wa { grid-column: 3 / 5; }
  .orbit-visual { width: 400px; height: 400px; inset-inline-end: -110px; bottom: -110px; opacity: 0.9; }
  .hero-sub { max-width: 40ch; }
  .deal-media { width: 132px; height: 132px; }

  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .card-body { padding: 14px; }

  .toast { bottom: 28px; }

  .modal { align-items: center; padding: 24px; }
  .modal-panel {
    max-width: 980px; border-radius: 30px; border-bottom: 1px solid var(--line-2);
    transform: translateY(24px) scale(0.97); opacity: 0;
    transition: transform 0.4s var(--ease), opacity 0.3s;
  }
  .modal.is-open .modal-panel { transform: none; opacity: 1; }
  .sheet-handle { display: none; }
  .pm { grid-template-columns: 1fr 1fr; align-items: start; }
  .pm-gallery { padding: 22px; position: sticky; top: 0; }
  .pm-main { aspect-ratio: 1 / 1; }
  .pm-main .pv-icon { font-size: 7rem; }
  .pm-info { padding: 30px 24px 0 30px; }
  .pm-actions { margin: 4px -24px 0 -30px; padding: 16px 24px 22px 30px; }
  .pm-buy { width: auto; flex: 1.4; }

  .footer-inner { grid-template-columns: 2fr 1.5fr 1fr; align-items: start; }
}

@media (min-width: 1200px) {
  .tile-main h1 { font-size: 4.2rem; }
}

@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; }
  [data-reveal] { opacity: 1; transform: none; }
}
