/* ==========================================================================
   Store — page, hero, toolbar, product cards, package modal, cart drawer.
   One motion language: every transition is transform/opacity on the same soft
   ease-out curve; no bounces, shakes, flashes, sweeps or floating decorations.
   The checkout sheet lives in checkout-sheet.css (unchanged behaviour).
   Classes are all `sx-*` so nothing here can collide with the legacy global CSS.
   ========================================================================== */

body.store-v2 {
  --sx-bg: #0d0709;
  --sx-surface: #160b10;
  --sx-surface-2: #1e0f16;
  --sx-surface-3: #28141d;
  --sx-line: rgba(196,159,176, .14);
  --sx-line-2: rgba(196,159,176, .23);
  --sx-line-3: rgba(196,159,176, .38);
  --sx-ink: #f6edf1;
  --sx-ink-2: #cdb6c1;
  --sx-mute: #a38593;
  --sx-gold: #e8579c;
  --sx-gold-2: #d62f7f;
  --sx-gold-fill: linear-gradient(150deg, #e36ba3 0%, #d62f7f 100%);
  --sx-on-gold: #0d0709;
  --sx-red: #ef7f73;
  --sx-green: #7fd3ac;
  --sx-r-md: 16px;
  --sx-r-lg: 22px;
  --sx-r-xl: 28px;
  --sx-ease: cubic-bezier(.22, 1, .36, 1);
  --sx-fast: .18s;
  --sx-base: .3s;
  --sx-slow: .5s;
  --sx-font: "Cairo", "Tajawal", system-ui, sans-serif;
  --sx-display: "Tajawal", "Cairo", system-ui, sans-serif;
  background: var(--sx-bg) !important;
  color: var(--sx-ink);
  overflow-x: hidden;
}

body.store-v2::before {
  opacity: 1;
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: none; mask-image: none; /* a legacy global body::before rule masks it to a central spot */
  /* the Home landing's own layers (measured from the live page): a lit top-left corner fading to the base
     colour, big taupe glows top-right / bottom, soft warm glows left — so both pages read as one product */
  background:
    radial-gradient(1000px 640px at 84% 8%, rgba(214,47,127, .17), transparent 68%),
    radial-gradient(55% 50% at 92% 18%, rgba(172,19,86, .1), transparent 50%),
    radial-gradient(800px 560px at 50% 100%, rgba(214,47,127, .07), transparent 68%),
    radial-gradient(circle at 15% 14%, rgba(85,46,64, .18), transparent 30%),
    linear-gradient(155deg, #201017 0%, #190d13 55%, #0d0709 100%);
}

body.store-v2 .sx-main { position: relative; z-index: 1; }
body.store-v2 .sx-fab { position: fixed; z-index: 900; }

body.store-v2 button { font-family: var(--sx-font); }
body.store-v2.sx-locked { overflow: hidden; }

/* No native scrollbars anywhere on the store (page, package modal, drawer, checkout):
   the white bar flashing in/out when a dialog locks the page was the "up or down" bar. */
html.sx-html, html.sx-html body { scrollbar-width: none; -ms-overflow-style: none; }
html.sx-html::-webkit-scrollbar, html.sx-html body::-webkit-scrollbar { display: none; width: 0; height: 0; }
body.store-v2 .sx-modal-body, body.store-v2 .sx-drawer-body, body.store-v2 .sx-modal-card, body.store-v2 #checkoutOverlay,
body.store-v2 #checkoutOverlay .checkout-pay-card, body.store-v2 #checkoutOverlay .checkout-summary-card { scrollbar-width: none; -ms-overflow-style: none; }
body.store-v2 .sx-modal-body::-webkit-scrollbar, body.store-v2 .sx-drawer-body::-webkit-scrollbar, body.store-v2 .sx-modal-card::-webkit-scrollbar,
body.store-v2 #checkoutOverlay::-webkit-scrollbar, body.store-v2 #checkoutOverlay .checkout-pay-card::-webkit-scrollbar, body.store-v2 #checkoutOverlay .checkout-summary-card::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* Ambient background — same drifting orbs + grid as the bot-management stage */
body.store-v2::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(220,74,142, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(220,74,142, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 28%, transparent 78%);
  mask-image: radial-gradient(ellipse at center, #000 28%, transparent 78%);
  animation: sxGridDrift 22s linear infinite;
}
.sx-orb { position: fixed; z-index: 0; border-radius: 50%; pointer-events: none; filter: blur(40px); mix-blend-mode: screen; opacity: .55; }
.sx-orb.a { width: 340px; height: 340px; top: 12%; right: 8%; background: rgba(172,19,86, .22); animation: sxOrbA 11s ease-in-out infinite alternate; }
.sx-orb.b { width: 280px; height: 280px; bottom: 10%; left: 6%; background: rgba(110,22,60, .2); animation: sxOrbB 14s ease-in-out infinite alternate; }

/* ---------------------------------------------------------------- layout */
.sx-main {
  background: none;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 124px 28px 88px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
html.sant-skip-enter main.sx-main { animation: none !important; }

/* ------------------------------------------------------------------ hero */
.sx-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 26px 0 6px;
  text-align: center;
}
.sx-hero > * { animation: sxRise .7s var(--sx-ease) both; }
.sx-hero > :nth-child(1) { animation-delay: .04s; }
.sx-hero > :nth-child(2) { animation-delay: .1s; }
.sx-hero > :nth-child(3) { animation-delay: .16s; }
.sx-hero > :nth-child(4) { animation-delay: .22s; }
.sx-toolbar-wrap { animation: sxRise .7s var(--sx-ease) .28s both; }
.sx-count-row { animation: sxRise .7s var(--sx-ease) .34s both; }
.sx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--sx-line-2);
  background: rgba(255, 255, 255, .025);
  color: var(--sx-ink-2);
  font-size: .82rem;
  font-weight: 600;
}
.sx-eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--sx-gold); }
.sx-title {
  margin: 0;
  font-family: var(--sx-display);
  font-size: clamp(2.1rem, 4.8vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--sx-ink);
}
.sx-title em {
  font-style: normal;
  background: linear-gradient(135deg, #f6edf1 0%, #d62f7f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sx-lead { max-width: 700px; text-wrap: balance; margin: 0; color: var(--sx-mute); font-size: 1.02rem; line-height: 1.9; }
.sx-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 8px 0 0; padding: 0; list-style: none; }
.sx-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 18px;
  border: 1px solid var(--sx-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012));
}
.sx-stat b { font-size: 1.2rem; font-weight: 800; color: var(--sx-ink); line-height: 1; }
.sx-stat span { color: var(--sx-mute); font-size: .84rem; }

/* --------------------------------------------------------------- toolbar */
.sx-toolbar-wrap { position: sticky; top: 108px; z-index: 30; }
.sx-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--sx-r-lg);
  border: 1px solid var(--sx-line-2);
  background: rgba(42,22,31, .96);
  box-shadow: 0 22px 44px -28px #000;
}
.sx-search { position: relative; display: block; min-width: 0; }
.sx-search svg {
  position: absolute; top: 50%; inset-inline-start: 15px; width: 18px; height: 18px;
  transform: translateY(-50%); color: var(--sx-mute); pointer-events: none;
}
.sx-search input {
  width: 100%; height: 46px; padding: 0 16px; padding-inline-start: 44px;
  border-radius: 14px; border: 1px solid var(--sx-line); background: var(--sx-surface-2);
  color: var(--sx-ink); font: 600 .94rem var(--sx-font); outline: 0;
  transition: border-color var(--sx-fast) ease, background var(--sx-fast) ease;
}
.sx-search input::placeholder { color: var(--sx-mute); font-weight: 500; }
.sx-search input:focus { border-color: var(--sx-gold-2); background: var(--sx-surface-3); }

.sx-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; padding: 2px; }
.sx-chips::-webkit-scrollbar { display: none; }
.sx-chip-btn {
  flex: 0 0 auto; height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--sx-line); background: transparent; color: var(--sx-ink-2);
  font: 700 .86rem var(--sx-font); white-space: nowrap;
  transition: background var(--sx-fast) ease, border-color var(--sx-fast) ease, color var(--sx-fast) ease;
}
.sx-chip-btn:hover { border-color: var(--sx-line-3); color: var(--sx-ink); }
.sx-chip-btn.is-active { background: rgba(198,162,179, .14); border-color: var(--sx-gold-2); color: var(--sx-ink); }

.sx-currency {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px;
  border: 1px solid var(--sx-line); background: var(--sx-surface-2); min-width: 132px;
}
.sx-currency::before {
  content: ""; position: absolute; top: 4px; bottom: 4px; inset-inline-start: 4px; width: calc(50% - 4px);
  border-radius: 10px; background: var(--sx-surface-3); border: 1px solid var(--sx-line-3);
  transition: transform var(--sx-base) var(--sx-ease);
}
.sx-currency[data-cur="USD"]::before { transform: translateX(-100%); }
html[dir="ltr"] .sx-currency[data-cur="USD"]::before { transform: translateX(100%); }
.sx-currency button {
  position: relative; z-index: 1; height: 36px; border: 0; background: transparent; cursor: pointer;
  color: var(--sx-mute); font: 800 .84rem var(--sx-font); display: grid; place-items: center;
  transition: color var(--sx-fast) ease;
}
.sx-currency button.active { color: var(--sx-ink); }

.sx-count-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.sx-count { color: var(--sx-mute); font-size: .9rem; font-weight: 600; }
.sx-count b { color: var(--sx-ink); font-weight: 800; }
.sx-activate {
  display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 18px; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--sx-line-2); background: transparent; color: var(--sx-ink-2); font: 700 .88rem var(--sx-font);
  transition: background var(--sx-fast) ease, border-color var(--sx-fast) ease, color var(--sx-fast) ease;
}
.sx-activate svg { width: 18px; height: 18px; }
.sx-activate:hover { background: rgba(198,162,179, .09); border-color: var(--sx-gold-2); color: var(--sx-ink); }

/* ------------------------------------------------------------------ grid */
.sx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr)); gap: 22px; }
.sx-grid.is-first .sx-card { animation: sxRise .6s var(--sx-ease) both; animation-delay: calc(var(--i, 0) * 55ms + 40ms); }
.sx-grid.is-swap .sx-card { animation: sxFade .28s ease both; }
.sx-loading { grid-column: 1 / -1; min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; animation: sxFade .4s ease both; }
.sx-spinner { width: 52px; height: 52px; border-radius: 50%; border: 4px solid rgba(172,19,86, .16); border-top-color: var(--sx-gold-2); border-right-color: #cdb6c1; animation: sxSpin .8s linear infinite; }
.sx-loading span { color: var(--sx-mute); font-weight: 600; font-size: .95rem; }
.sx-empty {
  grid-column: 1 / -1; display: grid; justify-items: center; gap: 8px; padding: 60px 20px; text-align: center;
  border: 1px dashed var(--sx-line-2); border-radius: var(--sx-r-xl); color: var(--sx-mute);
}
.sx-empty h3 { margin: 0; color: var(--sx-ink); font-size: 1.15rem; font-weight: 800; }
.sx-empty p { margin: 0; }

/* ------------------------------------------------------------------ card */
.sx-card {
  position: relative; display: flex; flex-direction: column; cursor: pointer; isolation: isolate; overflow: hidden;
  border-radius: var(--sx-r-xl); border: 1px solid var(--sx-line);
  background: linear-gradient(180deg, #2f1823, #27141d);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 20px 40px -26px rgba(0, 0, 0, .7);
  transition: transform var(--sx-base) var(--sx-ease), border-color var(--sx-base) ease, box-shadow var(--sx-base) ease;
}
.sx-card:hover { transform: translateY(-4px); border-color: var(--sx-line-3); box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 30px 50px -26px rgba(0, 0, 0, .9); }
.sx-card:focus-visible { outline: 2px solid var(--sx-gold); outline-offset: 3px; }

.sx-card-art {
  position: relative; display: grid; place-items: center; overflow: hidden; margin: 10px 10px 0;
  aspect-ratio: 16 / 11; border-radius: 20px;
  background:
    radial-gradient(120% 100% at 78% 0%, color-mix(in srgb, var(--tone, #733e57) 60%, #26131c) 0%, #221119 64%),
    #221119;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.sx-card-art::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(55% 60% at 50% 56%, rgba(241,229,235, .09), transparent 72%);
  transition: opacity var(--sx-base) ease;
}
.sx-card-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 15px);
  -webkit-mask-image: radial-gradient(75% 90% at 50% 50%, #000 30%, transparent 100%);
  mask-image: radial-gradient(75% 90% at 50% 50%, #000 30%, transparent 100%);
}
.sx-glyph {
  position: relative; z-index: 1; display: block; width: 74px; height: 74px;
  background: linear-gradient(180deg, #f6edf1 0%, #e36da4 100%);
  -webkit-mask: var(--glyph) center / contain no-repeat; mask: var(--glyph) center / contain no-repeat;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .5));
  transition: transform var(--sx-slow) var(--sx-ease);
}
.sx-card:hover .sx-glyph { transform: scale(1.07); }
.sx-card-cat {
  position: absolute; z-index: 2; top: 12px; inset-inline-start: 12px; padding: 5px 12px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; color: var(--sx-ink-2);
  background: rgba(23,12,17, .72); border: 1px solid var(--sx-line-2);
}
.sx-card-body { display: flex; flex: 1; flex-direction: column; gap: 14px; padding: 18px 16px 16px; }
.sx-card-name { margin: 0; font-family: var(--sx-display); font-size: 1.14rem; font-weight: 800; line-height: 1.3; color: var(--sx-ink); }
.sx-card-foot { display: grid; gap: 13px; margin-top: auto; padding-top: 4px; }
.sx-price { display: flex; align-items: baseline; gap: 6px; min-height: 30px; }
.sx-price strong { font-size: 1.32rem; font-weight: 800; color: var(--sx-ink); letter-spacing: -.01em; }
.sx-price small { color: var(--sx-mute); font-size: .84rem; }
.sx-price em { margin-inline-start: auto; color: var(--sx-mute); font-size: .78rem; font-style: normal; }
.sx-plans { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; color: var(--sx-gold); font-size: .98rem; font-weight: 800; }
.sx-plans svg { width: 18px; height: 18px; }
.sx-card-add {
  display: flex; align-items: center; justify-content: center; gap: 9px; height: 48px; border-radius: 16px; cursor: pointer;
  border: 1px solid var(--sx-line-3); background: transparent; color: var(--sx-ink); font: 800 .95rem var(--sx-font);
  transition: background var(--sx-fast) ease, border-color var(--sx-fast) ease, transform var(--sx-fast) ease;
}
.sx-card-add svg { width: 18px; height: 18px; }
.sx-card-add:hover { background: rgba(198,162,179, .1); border-color: var(--sx-gold-2); }
.sx-card-add:active { transform: scale(.985); }

/* --------------------------------------------------------- buttons/shared */
.sx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px;
  border-radius: 999px; cursor: pointer; font: 800 .96rem var(--sx-font); border: 1px solid transparent;
  transition: filter var(--sx-fast) ease, background var(--sx-fast) ease, border-color var(--sx-fast) ease, transform var(--sx-fast) ease;
}
.sx-btn svg { width: 18px; height: 18px; }
.sx-btn:active { transform: scale(.985); }
.sx-btn-primary { background: var(--sx-gold-fill); color: var(--sx-on-gold); box-shadow: 0 16px 30px -16px rgba(214,47,127, .55); }
.sx-btn-primary:hover { filter: brightness(1.06); }
.sx-btn-ghost { background: transparent; color: var(--sx-ink); border-color: var(--sx-line-3); }
.sx-btn-ghost:hover { background: rgba(198,162,179, .09); border-color: var(--sx-gold-2); }
.sx-icon-btn {
  flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--sx-line-2); background: rgba(255, 255, 255, .03); color: var(--sx-ink-2);
  transition: background var(--sx-fast) ease, color var(--sx-fast) ease, border-color var(--sx-fast) ease;
}
.sx-icon-btn svg { width: 18px; height: 18px; }
.sx-icon-btn:hover { background: rgba(255, 255, 255, .08); color: var(--sx-ink); border-color: var(--sx-line-3); }
.sx-btn:focus-visible, .sx-icon-btn:focus-visible, .sx-card-add:focus-visible, .sx-chip-btn:focus-visible,
.sx-option:focus-visible, .sx-activate:focus-visible { outline: 2px solid var(--sx-gold); outline-offset: 2px; }

/* ---------------------------------------------------------------- overlay */
.sx-modal, .sx-drawer { position: fixed; inset: 0; visibility: hidden; pointer-events: none; transition: visibility 0s linear .6s; }
.sx-modal { z-index: 12300; display: grid; place-items: center; padding: 20px; }
.sx-drawer { z-index: 12000; }
.sx-modal.is-open, .sx-drawer.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.sx-backdrop { position: absolute; inset: 0; background: rgba(9,5,7, .68); opacity: 0; transition: opacity .42s ease; }
.is-open > .sx-backdrop { opacity: 1; transition-duration: .55s; }

/* ---------------------------------------------------------- package modal */
.sx-modal-card {
  position: relative; display: flex; flex-direction: column; width: min(600px, 100%); max-height: min(92vh, 780px);
  padding: 24px; gap: 18px; overflow: hidden; border-radius: var(--sx-r-xl);
  border: 1px solid var(--sx-line-2); background: linear-gradient(180deg, #301a24, #26131c);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9);
  opacity: 0; transform: translateY(22px) scale(.97);
  transition: opacity .3s ease, transform .4s cubic-bezier(.5, 0, .75, 0);
}
.sx-modal.is-open .sx-modal-card { opacity: 1; transform: none; transition: opacity .45s ease, transform .6s cubic-bezier(.22, 1, .36, 1); }
.sx-modal-card:focus { outline: 0; }
.sx-modal-head { display: flex; align-items: center; gap: 14px; }
.sx-modal-icon {
  flex: 0 0 auto; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px;
  border: 1px solid var(--sx-line-2); background: rgba(198,162,179, .08); color: var(--sx-gold);
}
.sx-modal-icon svg { width: 22px; height: 22px; }
.sx-modal-titles { flex: 1; min-width: 0; }
.sx-modal-titles h2 { margin: 0 0 3px; font-family: var(--sx-display); font-size: 1.28rem; font-weight: 800; color: var(--sx-ink); }
.sx-modal-titles p { margin: 0; color: var(--sx-mute); font-size: .86rem; }
.sx-modal-body { display: grid; gap: 16px; overflow-y: auto; overscroll-behavior: contain; padding: 2px; margin: -2px; }
.sx-modal-product { display: flex; align-items: center; gap: 10px; color: var(--sx-ink); font-weight: 800; font-size: .98rem; }
.sx-modal-product .sx-glyph { width: 24px; height: 24px; filter: none; }
.sx-label { color: var(--sx-mute); font-size: .8rem; font-weight: 700; margin-bottom: -6px; }

.sx-options { display: grid; gap: 10px; }
.sx-option {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; width: 100%; padding: 15px 16px;
  border-radius: 18px; cursor: pointer; text-align: start; border: 1px solid var(--sx-line); background: rgba(255, 255, 255, .02);
  color: var(--sx-ink); font-family: var(--sx-font);
  transition: border-color var(--sx-fast) ease, background var(--sx-fast) ease;
}
.sx-option:hover { border-color: var(--sx-line-3); }
.sx-option.is-selected { border-color: var(--sx-gold-2); background: rgba(198,162,179, .09); }
.sx-radio {
  width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--sx-line-3); position: relative;
  transition: border-color var(--sx-fast) ease;
}
.sx-radio::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--sx-gold);
  transform: scale(0); transition: transform var(--sx-fast) var(--sx-ease);
}
.is-selected .sx-radio { border-color: var(--sx-gold); }
.is-selected .sx-radio::after { transform: scale(1); }
.sx-option-copy { display: grid; gap: 3px; min-width: 0; }
.sx-option-copy strong { font-size: .98rem; font-weight: 800; }
.sx-option.is-compact { padding: 11px 14px; }
.sx-option-copy.is-inline { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; }
.sx-option-copy small { color: var(--sx-mute); font-size: .78rem; }
.sx-option-price { display: flex; align-items: baseline; gap: 5px; font-weight: 800; white-space: nowrap; }
.sx-option-price b { font-size: 1.02rem; font-weight: 800; }
.sx-option-price small { color: var(--sx-mute); font-size: .76rem; }
.sx-save {
  display: inline-block; margin-inline-start: 8px; padding: 2px 9px; border-radius: 999px; font-size: .7rem; font-weight: 800;
  color: var(--sx-green); background: rgba(127, 211, 172, .1); border: 1px solid rgba(127, 211, 172, .26);
}
.sx-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sx-seg .sx-option { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 13px 8px; gap: 2px; }
.sx-qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 18px; border: 1px solid var(--sx-line); background: rgba(255, 255, 255, .02); }
.sx-qty span { font-weight: 800; }
.sx-qty small { display: block; color: var(--sx-mute); font-weight: 500; font-size: .76rem; }
.sx-stepper { display: inline-flex; align-items: center; gap: 4px; direction: ltr; padding: 4px; border-radius: 14px; border: 1px solid var(--sx-line-2); background: var(--sx-surface-2); }
.sx-stepper button {
  width: 34px; height: 34px; border: 0; border-radius: 10px; cursor: pointer; background: transparent; color: var(--sx-ink); font-size: 1.1rem; font-weight: 800;
  transition: background var(--sx-fast) ease;
}
.sx-stepper button:hover:not(:disabled) { background: rgba(255, 255, 255, .08); }
.sx-stepper button:disabled { opacity: .35; cursor: default; }
.sx-stepper em { min-width: 40px; text-align: center; font-style: normal; font-weight: 800; }
.sx-modal-total {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; border-radius: 18px;
  border: 1px solid var(--sx-line-2); background: rgba(255, 255, 255, .03);
}
.sx-modal-total span { color: var(--sx-mute); font-weight: 700; font-size: .9rem; }
.sx-modal-total strong { display: flex; align-items: baseline; gap: 6px; font-size: 1.5rem; font-weight: 800; }
.sx-modal-total strong small { color: var(--sx-mute); font-size: .86rem; font-weight: 600; }
.sx-modal-actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 12px; }

/* ------------------------------------------------------------------ FAB */
.sx-fab {
  left: 24px; bottom: 24px; z-index: 900; width: 58px; height: 58px; display: grid; place-items: center; cursor: pointer;
  overflow: visible; border-radius: 20px; border: 1px solid var(--sx-line-3); background: var(--sx-surface-2); color: var(--sx-ink);
  box-shadow: 0 20px 40px -18px #000;
  transition: transform var(--sx-base) var(--sx-ease), border-color var(--sx-fast) ease, background var(--sx-fast) ease;
}
.sx-fab:hover { transform: translateY(-3px); border-color: var(--sx-gold-2); background: var(--sx-surface-3); }
.sx-fab svg { width: 24px; height: 24px; }
.sx-fab-badge {
  position: absolute; top: -11px; right: -11px; z-index: 2; min-width: 26px; height: 26px; padding: 0 7px; display: grid; place-items: center;
  border-radius: 999px; background: var(--sx-gold-fill); color: var(--sx-on-gold); font-size: .82rem; font-weight: 800; line-height: 1;
  box-shadow: 0 0 0 3px var(--sx-bg), 0 8px 16px -6px rgba(0, 0, 0, .7); pointer-events: none;
  transition: transform .4s var(--sx-ease), opacity .3s ease;
}
.sx-fab-badge.is-empty { transform: scale(0); opacity: 0; }
.sx-fab-badge.is-bump { animation: sxBump .5s var(--sx-ease); }

/* ----------------------------------------------------------------- drawer */
.sx-drawer-panel {
  position: absolute; top: 0; bottom: 0; left: 0; display: flex; flex-direction: column; width: min(440px, 100vw);
  background: linear-gradient(180deg, #1e0f16, #160b10); border-inline-end: 1px solid var(--sx-line-2);
  box-shadow: 30px 0 80px -30px rgba(0, 0, 0, .9);
  transform: translateX(-104%); transition: transform .45s cubic-bezier(.5, 0, .75, 0);
  will-change: transform;
}
.sx-drawer.is-open .sx-drawer-panel { transform: none; transition: transform .65s cubic-bezier(.22, 1, .36, 1); }
.sx-drawer.is-entering .sx-item, .sx-drawer.is-entering .sx-cart-empty > * { animation: sxRise .55s var(--sx-ease) both; animation-delay: calc(var(--i, 0) * 70ms + 160ms); }
.sx-drawer.is-entering .sx-drawer-foot { animation: sxRise .55s var(--sx-ease) .22s both; }
.sx-drawer-head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--sx-line); }
.sx-drawer-title { display: flex; align-items: center; gap: 12px; }
.sx-drawer-title h3 { margin: 0; font-family: var(--sx-display); font-size: 1.2rem; font-weight: 800; }
.sx-drawer-title > svg { width: 24px; height: 24px; color: var(--sx-ink-2); }
.sx-count-pill {
  min-width: 26px; height: 26px; padding: 0 8px; display: none; place-items: center; border-radius: 999px;
  background: rgba(198,162,179, .14); border: 1px solid var(--sx-line-2); color: var(--sx-ink); font-size: .8rem; font-weight: 800;
}
.sx-count-pill.is-on { display: grid; }
.sx-drawer-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.sx-drawer-body::-webkit-scrollbar { width: 6px; }
.sx-drawer-body::-webkit-scrollbar-thumb { background: var(--sx-line-3); border-radius: 6px; }

.sx-cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 30px 10px; text-align: center; }
.sx-cart-empty-icon {
  width: 84px; height: 84px; display: grid; place-items: center; margin-bottom: 8px; border-radius: 26px;
  border: 1px solid var(--sx-line-2); background: rgba(255, 255, 255, .035); color: var(--sx-ink-2);
}
.sx-cart-empty-icon svg { width: 36px; height: 36px; }
.sx-cart-empty h4 { margin: 0; font-family: var(--sx-display); font-size: 1.3rem; font-weight: 800; }
.sx-cart-empty p { margin: 0 0 10px; color: var(--sx-mute); font-size: .92rem; }

.sx-item {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; padding: 14px; border-radius: 22px;
  border: 1px solid var(--sx-line); background: var(--sx-surface-2);
  transition: opacity .24s ease, transform .3s var(--sx-ease);
}
.sx-item.is-leaving { opacity: 0; transform: translateX(-14px); }
.sx-item-thumb {
  width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px;
  background: radial-gradient(120% 100% at 78% 0%, color-mix(in srgb, var(--tone, #733e57) 60%, #26131c) 0%, #221119 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.sx-item-thumb .sx-glyph { width: 32px; height: 32px; filter: none; }
.sx-item-info { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.sx-item-info strong { font-size: 1rem; font-weight: 800; line-height: 1.35; }
.sx-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sx-tag {
  display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px; font-size: .74rem; font-weight: 700;
  color: var(--sx-ink-2); background: rgba(198,162,179, .09); border: 1px solid var(--sx-line-2);
}
.sx-item-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 10px; }
.sx-item-price { display: flex; align-items: baseline; gap: 5px; font-weight: 800; white-space: nowrap; }
.sx-item-price b { font-size: 1.08rem; font-weight: 800; }
.sx-item-price small { color: var(--sx-mute); font-size: .76rem; }
.sx-item-remove {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; cursor: pointer;
  border: 1px solid transparent; background: transparent; color: var(--sx-mute);
  transition: color var(--sx-fast) ease, background var(--sx-fast) ease, border-color var(--sx-fast) ease;
}
.sx-item-remove svg { width: 18px; height: 18px; }
.sx-item-remove:hover { color: var(--sx-red); background: rgba(239, 127, 115, .1); border-color: rgba(239, 127, 115, .25); }
.sx-clear { align-self: center; margin-top: 4px; padding: 8px 14px; border: 0; background: transparent; color: var(--sx-mute); font: 700 .84rem var(--sx-font); cursor: pointer; border-radius: 10px; transition: color var(--sx-fast) ease; }
.sx-clear:hover { color: var(--sx-ink); }

.sx-drawer-foot { flex: 0 0 auto; display: none; gap: 14px; padding: 18px 22px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--sx-line); background: rgba(0, 0, 0, .16); }
.sx-drawer.has-items .sx-drawer-foot { display: grid; }
.sx-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sx-total span { color: var(--sx-mute); font-weight: 700; }
.sx-total strong { display: flex; align-items: baseline; gap: 6px; font-size: 1.7rem; font-weight: 800; }
.sx-total strong small { color: var(--sx-mute); font-size: .9rem; font-weight: 600; }
.sx-drawer-foot .sx-btn { width: 100%; min-height: 54px; }
.sx-secure { margin: 0; text-align: center; color: var(--sx-mute); font-size: .78rem; }

/* ------------------------------------------------- checkout summary rows */
.sx-sum-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--sx-line); background: rgba(255, 255, 255, .02); }
.sx-sum-item .sx-item-thumb { width: 46px; height: 46px; border-radius: 13px; }
.sx-sum-item .sx-item-thumb .sx-glyph { width: 24px; height: 24px; }
.sx-sum-copy { flex: 1; min-width: 0; display: grid; gap: 4px; }
.sx-sum-copy strong { font-size: .92rem; font-weight: 800; }
.sx-sum-copy .sx-tag { justify-self: start; padding: 2px 9px; font-size: .7rem; }
.sx-sum-price { font-weight: 800; white-space: nowrap; font-size: .92rem; }

/* ------------------------------------------------------- currency swap */
.sx-amt { display: inline-block; transition: opacity .34s ease, transform .4s var(--sx-ease), filter .34s ease; }
body.sx-cur-swap .sx-amt { opacity: 0; transform: translateY(-7px); filter: blur(5px); transition-duration: .18s; transition-timing-function: ease-in; }

/* --------------------------------------------------------------- motion */
@keyframes sxRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sxFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sxSpin { to { transform: rotate(360deg); } }
@keyframes sxBump { 0% { transform: scale(1); } 40% { transform: scale(1.22); } 100% { transform: scale(1); } }
@keyframes sxGridDrift { from { transform: translateY(0); } to { transform: translateY(56px); } }
@keyframes sxOrbA { from { transform: translate(0, 0) scale(1); } to { transform: translate(-40px, 30px) scale(1.08); } }
@keyframes sxOrbB { from { transform: translate(0, 0) scale(1); } to { transform: translate(36px, -24px) scale(1.1); } }

/* -------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .sx-main { padding: 112px 18px 72px; gap: 22px; }
  .sx-toolbar-wrap { top: 100px; }
  .sx-toolbar { grid-template-columns: 1fr auto; }
  .sx-chips { grid-column: 1 / -1; order: 3; }
}
@media (max-width: 560px) {
  .sx-toolbar { grid-template-columns: 1fr; }
  .sx-chips { order: 2; }
  .sx-currency { order: 3; width: 100%; }
  .sx-stats { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; gap: 8px; }
  .sx-stat { flex-direction: column; gap: 4px; padding: 10px 6px; text-align: center; }
  .sx-stat b { font-size: 1.05rem; }
  .sx-stat span { font-size: .74rem; }
  .sx-count-row { flex-wrap: wrap; }
  .sx-modal { padding: 12px; align-items: end; }
  .sx-modal-card { padding: 20px 16px; border-radius: 26px; max-height: 94vh; }
  .sx-modal-actions { grid-template-columns: 1fr; }
  .sx-modal-actions .sx-btn-primary { order: -1; }
  .sx-fab { left: 16px; bottom: 16px; }
}
