/* =========================================================================
   VOLTA storefront — dense, functional commerce UI. Light + dark.
   One locked accent (blue). Red is reserved for sale/discount only.
   ========================================================================= */
:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --surface-2: #fafafa;
  --text: #18181b;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-2: #d1d5db;
  --accent: #2563eb;
  --accent-ink: #ffffff;
  --accent-weak: #eef4ff;
  --sale: #e11d48;
  --sale-weak: #fef2f4;
  --star: #f59e0b;
  --good: #16a34a;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(24,24,27,.05), 0 10px 30px -20px rgba(24,24,27,.25);
  --ease: cubic-bezier(.2,.6,.2,1);
  --maxw: 1360px;
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
:root[data-theme="dark"] {
  --bg: #0b0c0f;
  --surface: #14161a;
  --surface-2: #1a1d22;
  --text: #e8e8ec;
  --muted: #9aa1ac;
  --line: #24272e;
  --line-2: #33373f;
  --accent: #3b82f6;
  --accent-weak: rgba(59,130,246,.14);
  --sale: #fb7185;
  --sale-weak: rgba(251,113,133,.12);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 34px -22px rgba(0,0,0,.8);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  overflow-x: clip;   /* hide horizontal overflow WITHOUT turning <body> into the scroll container (that broke scrollTo) */
}
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { margin: 0; font-weight: 800; letter-spacing: -.02em; }
img { display: block; max-width: 100%; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5ch; cursor: pointer;
  font-family: var(--font); font-weight: 700; font-size: 13px; border-radius: var(--radius-sm);
  padding: 9px 14px; border: 1px solid transparent; transition: background .14s var(--ease), border-color .14s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: transparent; border: 1px solid transparent; color: var(--text); cursor: pointer; transition: background .14s; }
.icon-btn:hover { background: var(--surface-2); }

/* ---------- Utility bar ---------- */
.util { background: #101317; color: #cfd3da; font-size: 12px; }
:root[data-theme="dark"] .util { background: #05070a; }
.util-inner { display: flex; align-items: center; gap: 18px; height: 34px; }
.util a { color: #cfd3da; }
.util a:hover { color: #fff; }
.util .util-right { margin-left: auto; display: flex; gap: 14px; align-items: center; }
.lang-select { background: transparent; color: #cfd3da; border: 1px solid #2a2f36; border-radius: 5px; padding: 3px 6px; font-family: var(--font); font-size: 12px; font-weight: 800; cursor: pointer; }
.lang-select:hover { border-color: #3a414a; color: #fff; }
.lang-select option { color: #111; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 40; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 18px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; font-size: 22px; letter-spacing: -.04em; }
.logo-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: var(--accent); color: #fff; }
.logo-mark .ic { width: 18px; height: 18px; stroke-width: 2.4; }
.search { flex: 1; max-width: 720px; display: flex; align-items: center; gap: 8px; height: 44px;
  background: var(--surface-2); border: 1.5px solid var(--line-2); border-radius: var(--radius); padding: 0 6px 0 12px; }
.search:focus-within { border-color: var(--accent); background: var(--surface); }
.search .ic { color: var(--muted); }
.search input { flex: 1; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 14px; font-family: var(--font); }
.search .btn { height: 32px; }
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.act { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 10px; border-radius: var(--radius-sm);
  color: var(--text); font-size: 11px; font-weight: 600; position: relative; transition: background .14s; }
.act:hover { background: var(--surface-2); }
.act .ic { width: 21px; height: 21px; }
.act .badge { position: absolute; top: 0; right: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; }

/* ---------- Category nav ---------- */
.catnav { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 68px; z-index: 30; }
.catnav-inner { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.catnav-inner::-webkit-scrollbar { display: none; }
.catlink { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 12px 12px; font-weight: 700; font-size: 13px;
  color: var(--text); border-bottom: 2px solid transparent; cursor: pointer; background: transparent; border-top: 0; border-left: 0; border-right: 0; font-family: var(--font); }
.catlink .ic { width: 16px; height: 16px; color: var(--muted); }
.catlink:hover { color: var(--accent); }
.catlink.active { color: var(--accent); border-bottom-color: var(--accent); }
.catlink.active .ic { color: var(--accent); }

/* ---------- Promo row ---------- */
.promo { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin: 22px 0; }
.promo-main { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 260px; background: #0b1220; color: #fff;
  display: flex; align-items: center; }
.promo-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.promo-copy { position: relative; padding: 32px; max-width: 60%; }
.promo-copy .kick { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #9ec1ff; }
.promo-copy h2 { font-size: 30px; margin: 8px 0 6px; line-height: 1.05; }
.promo-copy p { color: #cbd5e1; margin: 0 0 16px; max-width: 34ch; }
.deal-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; }
.deal-tile .deal-head { display: flex; align-items: center; justify-content: space-between; }
.deal-tile .deal-head b { font-size: 13px; }
.deal-count { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 13px; color: var(--sale); }
.deal-body { display: flex; gap: 12px; margin-top: 10px; align-items: center; }
.deal-body img { width: 92px; height: 92px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.deal-name { font-weight: 700; font-size: 13px; line-height: 1.3; }
.deal-price { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }

/* ---------- Section header ---------- */
.sec { margin: 30px 0; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sec-head h3 { font-size: 19px; }
.sec-head a { font-size: 13px; font-weight: 700; color: var(--accent); }

/* ---------- Carousel ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 210px; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }

/* ---------- Category tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: border-color .14s, transform .12s; font-family: var(--font); }
.tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.tile .ic { width: 24px; height: 24px; color: var(--accent); stroke-width: 1.7; }
.tile span { font-size: 12px; font-weight: 700; text-align: center; }

/* ---------- Catalog layout ---------- */
.shop { display: grid; grid-template-columns: 236px 1fr; gap: 20px; align-items: start; margin: 24px 0 50px; }
.filters { position: sticky; top: 122px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px 16px; }
.filter-group { padding: 14px 0; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: 0; }
.filter-group h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.opt { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13px; cursor: pointer; }
.opt input { accent-color: var(--accent); width: 15px; height: 15px; }
.opt .count { margin-left: auto; color: var(--muted); font-size: 12px; }
.brand-list { max-height: 240px; overflow-y: auto; padding-right: 4px; margin-right: -4px; }
.brand-list::-webkit-scrollbar { width: 8px; }
.brand-list::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; }
.load-more-wrap { display: flex; justify-content: center; margin-top: 24px; }
.load-more { height: 44px; padding: 0 26px; font-size: 14px; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; font-weight: 600; border: 1px solid var(--line-2); background: var(--surface); color: var(--text);
  padding: 5px 10px; border-radius: 999px; cursor: pointer; font-family: var(--font); }
.chip.active { background: var(--accent-weak); border-color: var(--accent); color: var(--accent); }

.shop-main { min-width: 0; }
.shop-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 12px; flex-wrap: wrap; }
.shop-bar .count { font-size: 13px; color: var(--muted); }
.shop-bar .count b { color: var(--text); }
.sort { height: 38px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 0 10px;
  font-family: var(--font); font-weight: 600; font-size: 13px; color: var(--text); cursor: pointer; }
.sort { margin-left: auto; }
.filter-toggle { display: none; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: var(--surface);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); color: var(--text); font-family: var(--font); font-weight: 700; font-size: 13px; cursor: pointer; }
.filter-toggle .ic { width: 16px; height: 16px; }
.filter-toggle:hover { border-color: var(--muted); }

/* ---------- Product grid + card ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: border-color .14s var(--ease), box-shadow .18s var(--ease), transform .12s var(--ease); }
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-media { position: relative; aspect-ratio: 1 / 1; background: #fff; }
:root[data-theme="dark"] .card-media { background: #0f1216; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 5px; }
.badge-sale { background: var(--sale); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 7px; border-radius: 5px; }
.badge-tag { background: var(--text); color: var(--surface); font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 5px; }
.wish { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); cursor: pointer; }
.wish:hover { color: var(--sale); border-color: var(--sale); }
.wish.on { color: var(--sale); border-color: var(--sale); }
.wish.on .ic { fill: currentColor; }
.wish .ic { width: 15px; height: 15px; }
.wish-body { display: flex; flex-direction: column; gap: 10px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12.5px; }
/* bigger, clearer currency + language switchers in the top bar */
.util-right .lang-select { font-size: 13px; font-weight: 800; padding: 4px 9px; }
.util-right .js-currency { background: rgba(255,255,255,.08); border-color: #3a414a; }
.util-right .js-currency:hover { background: rgba(255,255,255,.14); }
/* footer language + currency switchers */
.footer-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.fsw { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.fsw .ic { width: 15px; height: 15px; }
.footer-switch .lang-select { color: var(--text); border-color: var(--line-2); background: var(--surface); font-size: 13px; font-weight: 700; padding: 7px 12px; }
.footer-switch .lang-select:hover { border-color: var(--muted); }
.card-body { padding: 11px 12px 12px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card-brand { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.card-name { font-size: 13px; font-weight: 600; line-height: 1.32; min-height: 34px; }
.card-rate { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.stars { display: inline-flex; gap: 1px; color: var(--star); }
.stars .ic { width: 13px; height: 13px; fill: var(--star); stroke: none; }
.stars .ic.is-empty { fill: var(--line-2); }
.card-stock { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; margin-top: 2px; }
.card-stock.in { color: var(--good); }
.card-stock.low { color: #d97706; }
.card-stock.soon { color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 999px; background: currentColor; }
.card-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.price-wrap { display: flex; flex-direction: column; }
.price-old { font-size: 12px; color: var(--muted); text-decoration: line-through; }
.price { font-size: 18px; font-weight: 900; letter-spacing: -.02em; }
.price.sale { color: var(--sale); }
.buy { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--accent); color: #fff; cursor: pointer; transition: background .14s; }
.buy:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.buy .ic { width: 19px; height: 19px; }
/* Catalog empty state. Scoped to the grid on purpose: an unscoped ".empty" also matched
   the unfilled star (svg.ic.empty) and its 60px padding stretched every product card. */
.grid > .empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 60px 0; }

/* ---------- USP bar ---------- */
.usp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 8px 0 30px; }
.usp-item { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.usp-item .ic { width: 24px; height: 24px; color: var(--accent); flex: none; }
.usp-item b { display: block; font-size: 13px; }
.usp-item span { font-size: 12px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 20px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; padding: 40px 0 30px; }
.footer h5 { font-size: 13px; margin-bottom: 12px; }
.footer a { display: block; color: var(--muted); font-size: 13px; padding: 4px 0; }
.footer a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); padding: 16px 0; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); gap: 12px; flex-wrap: wrap; }

/* ---------- Cart drawer + toast ---------- */
.act { border: 0; background: transparent; font-family: var(--font); }
.buy { border: 0; font-family: var(--font); }
.overlay { position: fixed; inset: 0; background: rgba(8,10,14,.55); z-index: 60; animation: fade .18s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.cart-drawer { position: fixed; top: 0; right: 0; height: 100dvh; width: min(400px, 94vw); z-index: 70;
  background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; animation: slideIn .22s var(--ease); }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.cart-top { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.cart-top h3 { font-size: 16px; }
.cart-items { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--muted); text-align: center; padding: 20px; }
.cart-empty-ic { width: 42px; height: 42px; fill: none; stroke: var(--line-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ci { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; }
.ci-img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; }
:root[data-theme="dark"] .ci-img { background: #0f1216; }
.ci-brand { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.ci-name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.ci-price { font-size: 13px; font-weight: 800; margin-top: 2px; }
.ci-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
.qty button { display: grid; place-items: center; width: 26px; height: 26px; background: var(--surface); border: 0; color: var(--text); cursor: pointer; }
.qty button:hover { background: var(--surface-2); color: var(--accent); }
.qty button .ic { width: 13px; height: 13px; }
.qty span { min-width: 26px; text-align: center; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ci-rm { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 2px; }
.ci-rm:hover { color: var(--sale); }
.ci-rm .ic { width: 15px; height: 15px; }
/* free gift with purchase — made deliberately prominent */
.ci-gift { position: relative; background: color-mix(in srgb, #16a34a 12%, transparent); border: 2px solid #16a34a; border-radius: 12px; padding: 14px 10px 10px; margin-top: 10px; column-gap: 12px; }
.ci-gift-ribbon { grid-column: 1 / -1; margin: -14px -10px 4px; padding: 5px 10px; background: #16a34a; color: #fff;
  font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; border-radius: 10px 10px 0 0; }
.ci-gift .ci-img { border: 2px solid #16a34a; width: 60px; height: 60px; }
.ci-gift .ci-name { font-size: 14px; font-weight: 800; }
.ci-gift .gift-badge { display: inline-block; margin-left: 4px; background: #16a34a; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .04em; padding: 2px 7px; border-radius: 999px; vertical-align: middle; }
.ci-gift .gift-free { color: #16a34a; font-weight: 900; text-transform: uppercase; letter-spacing: .03em; }
.ci-gift .ci-price { font-size: 14px; }
.ci-gift .ci-price .price-old { font-weight: 600; }
.ci-gift .gift-emoji { font-size: 24px; line-height: 1; }
/* free gift inside the checkout summary */
.co-item-gift { position: relative; background: color-mix(in srgb, #16a34a 12%, transparent); border: 2px solid #16a34a; border-radius: 10px; padding: 8px; }
.co-item-gift img { border: 2px solid #16a34a; }
.co-gift-tag { display: inline-block; margin-bottom: 2px; background: #16a34a; color: #fff; font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; }
.co-item-gift .co-item-name { font-weight: 800; }
.co-item-gift .gift-free { color: #16a34a; font-weight: 900; text-transform: uppercase; }
.co-item-gift .price-old { color: var(--muted); text-decoration: line-through; font-size: 12px; }
.cart-gift-hint { margin: 4px 18px 0; padding: 9px 12px; border-radius: 8px; font-size: 12px; font-weight: 700; line-height: 1.35;
  background: var(--accent-weak); color: var(--accent); text-align: center; }
.cart-gift-hint.is-unlocked { background: color-mix(in srgb, #16a34a 12%, transparent); color: #16a34a; }
.cart-foot { border-top: 1px solid var(--line); padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.cart-foot .sum-row { display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 800; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(16px); z-index: 90;
  background: #101317; color: #fff; padding: 11px 18px; border-radius: 8px; font-size: 13px; font-weight: 700;
  box-shadow: var(--shadow); opacity: 0; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Auth modal ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 18px; background: rgba(8,10,14,.55); animation: fade .18s var(--ease); }
.modal-card { position: relative; width: min(400px, 100%); max-height: 92dvh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 26px 24px 22px; animation: pop .2s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; top: 10px; right: 10px; }

/* ---------- order received ----------
   Glass panel over the storefront: the site shows through the card,
   the background dims only slightly — the page stays visible, it is not a separate screen. */
#success-modal { background: rgba(8,10,14,.30); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.success-card { width: min(380px, 100%); text-align: center; padding: 34px 26px 26px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid color-mix(in srgb, var(--surface) 55%, transparent);
  box-shadow: 0 24px 70px -24px rgba(8,10,14,.5); }
.success-mark { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; background: color-mix(in srgb, var(--good) 12%, transparent);
  color: var(--good); animation: markIn .34s var(--ease) both; }
.success-mark .ic { width: 28px; height: 28px; stroke-width: 2.6; }
@keyframes markIn { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.success-card h3 { margin-bottom: 10px; }
.success-text { color: var(--text); font-size: 14px; line-height: 1.55; }
.success-sub { color: var(--muted); font-size: 12.5px; line-height: 1.5; margin-top: 10px; }

/* SMS confirmation block (presentation only) */
.sms-form { margin-top: 18px; text-align: left; }
.sms-label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 7px; }
.sms-row { display: flex; gap: 8px; }
.sms-input {
  flex: 1; min-width: 0;
  height: 44px; padding: 0 14px;
  font-size: 15px; letter-spacing: .18em;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.sms-input::placeholder { letter-spacing: normal; color: var(--muted); }
.sms-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-weak); }
.sms-submit { flex: none; padding: 0 18px; height: 44px; }
.sms-hint { margin-top: 9px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.sms-hint.is-ok { color: #16a34a; }
.sms-resend { margin-top: 10px; background: none; border: 0; padding: 0; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--accent); cursor: pointer; }
.sms-resend:hover:not(:disabled) { text-decoration: underline; }
.sms-resend:disabled { color: var(--muted); cursor: default; }

.success-btn { width: 100%; margin-top: 16px; }

/* ---------- checkout ---------- */
.co-card { width: min(440px, 100%); }
.co-sum { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 14px; font-size: 14px; }
.co-legend { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 14px 0 8px; }
.co-field { display: block; margin-bottom: 10px; }
.co-field span { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.co-field input { width: 100%; height: 40px; padding: 0 12px; font: inherit; font-size: 14px; color: var(--text); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-sm); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.co-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-weak); }
.co-field input.invalid { border-color: var(--sale); box-shadow: 0 0 0 3px var(--sale-weak); }
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.co-field select { width: 100%; height: 40px; padding: 0 12px; font: inherit; font-size: 14px; color: var(--text); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-sm); cursor: pointer; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.co-field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-weak); }
.co-field select.invalid { border-color: var(--sale); box-shadow: 0 0 0 3px var(--sale-weak); }
.pm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.pm-opt { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 10px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); font-size: 14px; font-weight: 700; cursor: pointer; transition: border-color .15s var(--ease), background .15s var(--ease); }
.pm-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pm-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-weak); color: var(--accent); }
.pm-ic { width: 20px; height: 20px; flex: none; }
.pm-ic-pp { width: 16px; }
.co-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 10px; }
.co-cvv input { letter-spacing: .2em; }
.co-back { margin-top: 8px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); }
.co-back:hover { border-color: var(--line-2); background: var(--line); }
/* 2-step order request */
.co-field textarea { width: 100%; min-height: 74px; padding: 8px 12px; font: inherit; font-size: 14px; color: var(--text); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-sm); resize: vertical; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.co-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-weak); }
.co-field textarea.invalid { border-color: var(--sale); box-shadow: 0 0 0 3px var(--sale-weak); }
.co-steps { display: flex; align-items: center; gap: 8px; margin: 4px 0 16px; }
.co-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line-2); flex: none; transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease); }
.co-dot::before { content: attr(data-step); }
.co-dot.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.co-bar { flex: 1; height: 2px; background: var(--line-2); border-radius: 2px; }
.co-actions { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; margin-top: 4px; }
#cc-number { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.info-card { width: min(600px, 100%); padding-top: 30px; }
.info-card h3 { font-size: 23px; margin-bottom: 16px; letter-spacing: -.02em; }
.info-body { display: block; }
.info-body h4 { font-size: 14px; font-weight: 800; letter-spacing: -.01em; margin: 20px 0 7px; color: var(--text); }
.info-body h4:first-child { margin-top: 2px; }
.info-body p { font-size: 14.5px; line-height: 1.65; color: var(--text-2, var(--text)); margin: 0 0 10px; }
.info-body ul { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.info-body li { position: relative; padding-left: 18px; font-size: 14.5px; line-height: 1.6; color: var(--text-2, var(--text)); }
.info-body li::before { content: ""; position: absolute; left: 3px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent, #2563eb); }
.info-body a { color: var(--accent, #2563eb); }
/* account dashboard */
.dash-list { display: flex; flex-direction: column; margin: 2px 0 16px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.dash-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.dash-row:last-child { border-bottom: 0; }
.dash-row dt { color: var(--muted); font-size: 13px; white-space: nowrap; }
.dash-row dd { margin: 0; font-weight: 700; font-size: 13px; text-align: right; word-break: break-word; }
.auth-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; font-size: 18px; letter-spacing: -.03em; margin-bottom: 6px; }
.auth-brand .logo-mark { width: 26px; height: 26px; }
.modal-card h3 { font-size: 20px; margin-bottom: 16px; }
.auth-social { display: flex; flex-direction: column; gap: 8px; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 42px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--text); font-family: var(--font); font-weight: 700; font-size: 13px; cursor: pointer; transition: background .14s, border-color .14s; }
.social-btn:hover { background: var(--surface-2); border-color: var(--muted); }
.social-btn svg { flex: none; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--muted); font-size: 12px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form .field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.auth-form input { height: 42px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface-2); color: var(--text); font-family: var(--font); font-size: 14px; outline: 0; }
.auth-form input:focus { border-color: var(--accent); background: var(--surface); }
.auth-form .btn { height: 44px; margin-top: 4px; }
.auth-note { font-size: 12px; color: var(--muted); margin: -6px 0 14px; line-height: 1.5; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.auth-logout { display: block; width: 100%; margin-top: 12px; background: none; border: 0; color: var(--sale); font-family: var(--font); font-weight: 700; font-size: 13px; cursor: pointer; text-align: center; }
.auth-logout:hover { text-decoration: underline; }

/* ---------- Product detail ---------- */
.card { cursor: pointer; }
.pd-card { width: min(860px, 100%); padding: 0; overflow: hidden; }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; }
.pd-media { position: relative; display: flex; flex-direction: column; background: #fff; }
:root[data-theme="dark"] .pd-media { background: #0f1216; }
.pd-stage { position: relative; aspect-ratio: 1 / 1; background: #fff; }
:root[data-theme="dark"] .pd-stage { background: #0f1216; }
.pd-stage img { width: 100%; height: 100%; object-fit: cover; }
/* Thumbnail strip: the product's other photos. */
.pd-thumbs { display: flex; gap: 8px; padding: 10px 12px 12px; overflow-x: auto; scrollbar-width: thin; }
.pd-thumb { flex: none; width: 58px; height: 58px; padding: 0; background: #fff; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; transition: border-color .15s var(--ease); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb:hover { border-color: var(--line-2); }
.pd-thumb.active { border-color: var(--accent); }
:root[data-theme="dark"] .pd-thumb { background: #0f1216; border-color: #24272e; }
:root[data-theme="dark"] .pd-thumb.active { border-color: var(--accent); }
.pd-info { padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 6px; }
.pd-name { font-size: 22px; line-height: 1.2; margin: 2px 0 2px; }
.pd-price { display: flex; align-items: baseline; gap: 10px; margin: 6px 0; }
.pd-price .price { font-size: 26px; }
.pd-add { height: 46px; margin-top: 10px; gap: 8px; }
.pd-add .ic { width: 18px; height: 18px; }
.pd-usp { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.pd-usp li { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--muted); }
.pd-usp .ic { width: 16px; height: 16px; color: var(--accent); flex: none; }
.pd-usp b { color: var(--text); font-weight: 700; }
.pd-body { padding: 0 26px 26px; }
.pd-desc { font-size: 14px; line-height: 1.65; color: var(--text); margin: 20px 0 18px; }
.pd-warranty { display: flex; gap: 12px; align-items: flex-start; background: var(--accent-weak); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; }
.pd-warranty > .ic { width: 24px; height: 24px; color: var(--accent); flex: none; margin-top: 1px; }
.pd-warranty b { display: block; font-size: 14px; margin-bottom: 2px; }
.pd-warranty span { font-size: 13px; color: var(--muted); line-height: 1.5; }
.pd-facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pd-facts > div { display: flex; justify-content: space-between; gap: 10px; padding: 11px 14px; background: var(--surface); }
.pd-facts dt { color: var(--muted); font-size: 13px; }
.pd-facts dd { margin: 0; font-weight: 700; font-size: 13px; }
@media (max-width: 720px) {
  .pd-grid { grid-template-columns: 1fr; }
  .pd-facts { grid-template-columns: 1fr; }
}

/* While searching, hide the homepage sections so results sit right under the header */
body.searching .promo,
body.searching .sec,
body.searching .usp { display: none !important; }

/* ---------- Responsive ---------- */

/* Tablet: the filter sidebar collapses behind a "Filters" toggle */
@media (max-width: 1080px) {
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .shop { grid-template-columns: 1fr; }
  .filter-toggle { display: inline-flex; }
  .filters { position: static; display: none; margin-bottom: 14px; }
  .filters.open { display: block; }
}

@media (max-width: 860px) {
  .promo { grid-template-columns: 1fr; }
  .promo-main { min-height: 200px; }
  .promo-copy { max-width: 100%; padding: 24px; }
  .promo-copy h2 { font-size: 24px; }
  .usp { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile: header + catnav stop being sticky (no more overlap), util bar trims to the switchers */
@media (max-width: 680px) {
  .header { position: static; }
  .header-inner { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .act span { display: none; }
  .catnav { position: static; top: auto; }
  .util-inner { gap: 10px; }
  .util-ship, .util-link { display: none; }
  .util .util-right { gap: 8px; }
  .wrap { padding: 0 14px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 18px; }
  .footer-bottom { flex-direction: column; gap: 6px; align-items: flex-start; }
  /* full-screen modals on phones */
  .modal { padding: 0; place-items: stretch; }
  .modal-card, .info-card, .pd-card { width: 100%; max-width: none; max-height: 100dvh; border-radius: 0; }
  /* "Order received" is short — no need to stretch it full-screen */
  #success-modal { padding: 18px; place-items: center; }
  #success-modal .modal-card { width: 100%; max-width: 380px; max-height: none; border-radius: 14px; }
}

@media (max-width: 420px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .promo-copy h2 { font-size: 21px; }
  .promo-copy { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto; }
}

/* ============================================================
   ISOLATED CHECKOUT (icon-free, clean, high z-index)
   ============================================================ */
.co-checkout {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 28px 32px 32px;
  max-width: 760px;
  width: 100%;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  font-family: "Manrope", -apple-system, sans-serif;
  color: #18181b;
}

.co-checkout .modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #9aa1ac;
}
.co-checkout .modal-close:hover {
  color: #18181b;
}

.co-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.co-header .co-lock {
  font-size: 20px;
}
.co-header h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.3px;
}

.co-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
}
.co-step {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f3f4f6;
}
.co-step.active {
  background: #2563eb;
  color: #fff;
}
.co-step:not(:last-child)::after {
  content: "→";
  margin-left: 8px;
  color: #d1d5db;
  font-weight: 300;
}

.co-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.co-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.co-right {
  display: flex;
  flex-direction: column;
}

.co-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}
.co-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
}
.co-item:last-child {
  border-bottom: 0;
}
.co-item img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
}
.co-item-name {
  font-weight: 600;
  font-size: 14px;
}
.co-item-meta {
  font-size: 12px;
  color: #6b7280;
}
.co-item-price {
  font-weight: 700;
  font-size: 14px;
  margin-left: auto;
  white-space: nowrap;
}

.co-totals {
  background: #f9fafb;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.co-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #6b7280;
}
.co-total-grand {
  font-weight: 800;
  font-size: 16px;
  color: #18181b;
  border-top: 1px solid #e5e7eb;
  padding-top: 6px;
  margin-top: 4px;
}
.co-total-grand span:last-child {
  color: #2563eb;
}
.co-edit-cart {
  align-self: flex-start;
  font-size: 13px;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  cursor: pointer;
}
.co-edit-cart:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.co-section {
  margin-bottom: 18px;
}
.co-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #6b7280;
  margin-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 6px;
}
.co-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}
.co-field label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}
.co-field input,
.co-field select {
  padding: 10px 12px;
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #18181b;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.co-field input:focus,
.co-field select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.co-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%236b7280'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}
.co-field select option {
  background: #fff;
}
.co-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pm-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.pm-opt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 8px;
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
}
.pm-opt.active,
.pm-opt:has(input:checked) {
  border-color: #2563eb;
  background: #eff6ff;
  color: #2563eb;
}
.pm-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pm-opt svg {
  flex: none;
  width: 20px;
  height: 16px;
}
.pm-opt:hover { border-color: #9ca3af; background: #f3f4f6; }
.pm-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* =========================================================================
   PayPal block — presentation only. Nothing here processes a payment:
   #pp-btn is type="button" and is deliberately not wired to any handler
   that charges, redirects or submits. Brand colours per PayPal's palette.
   ========================================================================= */
.pm-opt-pp .pm-pp-mark { width: 18px; height: 18px; fill: currentColor; }
.pm-pp-word, .pp-word, .pp-btn-word { font-weight: 800; letter-spacing: -.02em; font-style: italic; }
.pp-pay { color: #003087; }
.pp-pal { color: #009cde; }
.pm-opt:has(input[value="paypal"]:checked) { border-color: #009cde; background: #f0f9ff; }
.pm-opt:has(input[value="paypal"]:checked) .pm-pp-mark { color: #003087; }

.pp-panel {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid #cfe6f7;
  border-radius: 12px;
  background: linear-gradient(180deg, #f7fbff 0%, #eef7fe 100%);
  animation: pp-in .28s var(--ease, cubic-bezier(.2,.7,.3,1)) both;
}
@keyframes pp-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.pp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.pp-logo { display: inline-flex; align-items: center; gap: 7px; font-size: 17px; }
.pp-logo-mark, .pp-btn-mark { width: 24px; height: 20px; flex: none; }
.pp-p-back { fill: #003087; opacity: .85; }
.pp-p-front { fill: #009cde; }
.pp-verified {
  font-size: 11px; font-weight: 700; color: #047857;
  background: #ecfdf5; border: 1px solid #a7f3d0;
  padding: 3px 8px; border-radius: 999px; white-space: nowrap;
}
.pp-note { font-size: 12.5px; line-height: 1.5; color: #475569; margin: 0 0 13px; }

/* The button: rich hover/press feedback and a gloss sweep, so it feels alive. */
.pp-btn {
  position: relative;
  width: 100%;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid #e5a911;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd24d 0%, #ffc439 55%, #f7b721 100%);
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.14);
  transition: transform .14s ease, box-shadow .2s ease, filter .2s ease;
}
.pp-btn::after {   /* gloss sweep on hover */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.75) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .65s var(--ease, ease);
}
.pp-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(247,183,33,.45); filter: saturate(1.06); }
.pp-btn:hover::after { transform: translateX(120%); }
.pp-btn:active { transform: translateY(1px) scale(.995); box-shadow: 0 1px 2px rgba(0,0,0,.18); }
.pp-btn:focus-visible { outline: 3px solid #003087; outline-offset: 2px; }
.pp-btn-inner { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; transition: opacity .18s ease; }

/* Busy state: purely cosmetic feedback, then it resets. No payment is made. */
.pp-spinner {
  position: absolute;
  width: 20px; height: 20px;
  border: 2.5px solid rgba(0,48,135,.25);
  border-top-color: #003087;
  border-radius: 50%;
  opacity: 0;
  animation: pp-spin .7s linear infinite;
}
@keyframes pp-spin { to { transform: rotate(360deg); } }
.pp-btn.is-busy { pointer-events: none; }
.pp-btn.is-busy .pp-btn-inner { opacity: 0; }
.pp-btn.is-busy .pp-spinner { opacity: 1; }

.pp-pay-later { margin-top: 10px; text-align: center; font-size: 11.5px; color: #64748b; }
.pp-pay-later b { color: #003087; font-weight: 800; }

@media (prefers-reduced-motion: reduce) {
  .pp-panel { animation: none; }
  .pp-btn, .pp-btn::after { transition: none; }
  .pp-btn:hover { transform: none; }
  .pp-spinner { animation-duration: 1.6s; }
}

.card-fields .form-group {
  margin-bottom: 12px;
}
.card-fields .form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 4px;
}
.card-fields .form-group input {
  width: 100%;
  padding: 10px 12px;
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #18181b;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.card-fields .form-group input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.card-fields .form-group input::placeholder {
  color: #9aa1ac;
}
.card-fields .form-row {
  display: flex;
  gap: 12px;
}
.card-fields .form-row .form-group {
  flex: 1;
}

.co-pay-btn {
  width: 100%;
  padding: 14px;
  font-size: 17px;
  font-weight: 700;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 6px;
}
.co-pay-btn:hover {
  background: #1d4ed8;
}
.co-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  color: #6b7280;
}
.co-secure span:first-child {
  font-size: 16px;
}

/* Dark theme */
:root[data-theme="dark"] .co-checkout {
  background: #14161a;
  border-color: #24272e;
  color: #e8e8ec;
}
:root[data-theme="dark"] .co-checkout .co-step {
  background: #1a1d22;
  color: #9aa1ac;
}
:root[data-theme="dark"] .co-checkout .co-step.active {
  background: #3b82f6;
  color: #fff;
}
:root[data-theme="dark"] .co-checkout .co-progress {
  border-color: #24272e;
}
:root[data-theme="dark"] .co-checkout .co-item {
  border-color: #24272e;
}
:root[data-theme="dark"] .co-checkout .co-totals {
  background: #1a1d22;
}
:root[data-theme="dark"] .co-checkout .co-total-grand {
  border-color: #24272e;
}
:root[data-theme="dark"] .co-checkout .co-field input,
:root[data-theme="dark"] .co-checkout .co-field select {
  background: #1a1d22;
  border-color: #33373f;
  color: #e8e8ec;
}
:root[data-theme="dark"] .co-checkout .co-field input:focus,
:root[data-theme="dark"] .co-checkout .co-field select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
}
:root[data-theme="dark"] .co-checkout .pm-opt {
  background: #1a1d22;
  border-color: #33373f;
  color: #9aa1ac;
}
:root[data-theme="dark"] .co-checkout .pm-opt.active,
:root[data-theme="dark"] .co-checkout .pm-opt:has(input:checked) {
  border-color: #3b82f6;
  background: rgba(59,130,246,0.15);
  color: #3b82f6;
}
:root[data-theme="dark"] .co-checkout .card-fields .form-group input {
  background: #1a1d22;
  border-color: #33373f;
  color: #e8e8ec;
}
:root[data-theme="dark"] .co-checkout .card-fields .form-group input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
}
:root[data-theme="dark"] .co-checkout .co-pay-btn {
  background: #3b82f6;
}
:root[data-theme="dark"] .co-checkout .co-pay-btn:hover {
  background: #2563eb;
}
:root[data-theme="dark"] .co-checkout .co-edit-cart {
  border-color: #33373f;
}
:root[data-theme="dark"] .co-checkout .co-edit-cart:hover {
  border-color: #3b82f6;
  color: #3b82f6;
}
:root[data-theme="dark"] .co-checkout .co-section-title {
  border-color: #24272e;
}
:root[data-theme="dark"] .co-checkout .co-total-row {
  color: #9aa1ac;
}
:root[data-theme="dark"] .co-checkout .co-total-grand {
  color: #e8e8ec;
}
:root[data-theme="dark"] .co-checkout .co-total-grand span:last-child {
  color: #3b82f6;
}
:root[data-theme="dark"] .co-checkout .co-step:not(:last-child)::after {
  color: #33373f;
}
:root[data-theme="dark"] .co-checkout .modal-close {
  color: #9aa1ac;
}
:root[data-theme="dark"] .co-checkout .modal-close:hover {
  color: #e8e8ec;
}
:root[data-theme="dark"] .co-checkout .co-field select option {
  background: #14161a;
  color: #e8e8ec;
}
:root[data-theme="dark"] .co-checkout .co-secure {
  color: #9aa1ac;
}

/* PayPal block — dark theme */
:root[data-theme="dark"] .pp-panel {
  background: linear-gradient(180deg, #12233a 0%, #0f1b2c 100%);
  border-color: #1e3a5f;
}
:root[data-theme="dark"] .pp-pay { color: #6aa8ff; }
:root[data-theme="dark"] .pp-pal { color: #34c3ff; }
:root[data-theme="dark"] .pp-note { color: #9fb2c9; }
:root[data-theme="dark"] .pp-verified { background: rgba(4,120,87,.18); border-color: #0f5132; color: #6ee7b7; }
:root[data-theme="dark"] .pp-p-back { fill: #2c6fd6; }
:root[data-theme="dark"] .pp-pay-later { color: #8b98a8; }
:root[data-theme="dark"] .pp-pay-later b { color: #6aa8ff; }
:root[data-theme="dark"] .co-checkout .pm-opt:has(input[value="paypal"]:checked) {
  border-color: #34c3ff; background: rgba(52,195,255,.12);
}
:root[data-theme="dark"] .co-checkout .pm-opt:has(input[value="paypal"]:checked) .pm-pp-mark { color: #6aa8ff; }

/* Responsive */
@media (max-width: 720px) {
  .co-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .co-checkout {
    padding: 20px 16px 24px;
    border-radius: 14px;
  }
  .co-items {
    max-height: 180px;
  }
  .co-row {
    grid-template-columns: 1fr;
  }
  .pm-toggle {
    grid-template-columns: 1fr;
  }
  .card-fields .form-row {
    flex-direction: column;
    gap: 0;
  }
  .co-progress {
    flex-wrap: wrap;
    gap: 4px;
  }
  .co-step:not(:last-child)::after {
    content: "";
    margin: 0;
  }
}
@media (max-width: 480px) {
  .co-checkout {
    padding: 16px 12px 20px;
    border-radius: 10px;
  }
  .co-header h3 {
    font-size: 18px;
  }
  .co-item {
    flex-wrap: wrap;
  }
  .co-item-price {
    margin-left: 0;
    width: 100%;
    text-align: right;
  }
}

/* ============================================================
   CONFIRM YOUR SMS — БОЛЬШИЕ ЗЕЛЁНЫЕ БУКВЫ
   ============================================================ */
.sms-label {
  font-size: 28px !important;
  font-weight: 900 !important;
  color: #16a34a !important;
  text-transform: uppercase !important;
  text-align: center !important;
  display: block !important;
  margin-bottom: 20px !important;
  letter-spacing: 2px !important;
}