/* Montgat design system — dark premium, RTL-first (logical properties everywhere). */
:root {
  --tile-bg: #eef2f3; /* product-photo tile: a light studio backdrop. Use `radial-gradient(circle at 50% 40%, #ffffff1c, #ffffff08)` for the old dark tile. */
  --bg: #080c0d; --bg-2: #0d1415; --surface: #111a1c; --surface-2: #172326; --surface-3: #1e2e31;
  --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .14);
  --text: #eaf2f1; --muted: #8da4a3;
  --accent: #2fd9c0; --accent-2: #14a898; --accent-ink: #03211d; --accent-soft: rgba(47, 217, 192, .12); --accent-glow: rgba(47, 217, 192, .35);
  --ok: #3ddc97; --warn: #f5b84a; --danger: #ff6b6b; --info: #6ea8ff;
  --radius: 16px; --radius-sm: 10px; --shadow: 0 18px 50px -20px rgba(0, 0, 0, .8);
  --font: 'Cairo', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --header-h: 68px; color-scheme: dark;
}
[data-theme="gold"] {
  --bg: #0a0a0b; --bg-2: #101011; --surface: #151516; --surface-2: #1c1c1e; --surface-3: #262628;
  --text: #f4efe6; --muted: #9b9588;
  --accent: #e2b866; --accent-2: #b98a3a; --accent-ink: #261a04; --accent-soft: rgba(226, 184, 102, .12); --accent-glow: rgba(226, 184, 102, .32);
}
html[lang="en"] { --font: 'Inter', 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
  background-image: radial-gradient(900px 500px at 85% -10%, var(--accent-soft), transparent 60%), radial-gradient(700px 400px at 0% 30%, rgba(255, 255, 255, .02), transparent 60%); }
body.lock { overflow: hidden; }
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.25; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); } h2 { font-size: clamp(1.25rem, 2vw, 1.6rem); } h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.container { width: min(1240px, 100% - 2rem); margin-inline: auto; }
.narrow { width: min(720px, 100% - 2rem); margin-inline: auto; }
.muted { color: var(--muted); } .link { color: var(--accent); display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; }
.i { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
.only-mobile { display: none !important; }
.skeleton { height: 180px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: sk 1.3s infinite; grid-column: 1 / -1; }
@keyframes sk { to { background-position: -200% 0; } }

/* Buttons & fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 1px solid transparent; border-radius: 999px; padding: .65rem 1.3rem; font-weight: 700; transition: transform .15s, box-shadow .2s, background .2s, opacity .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); } .btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); box-shadow: 0 8px 24px -10px var(--accent-glow); }
.btn-primary:hover { box-shadow: 0 12px 30px -8px var(--accent-glow); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); } .btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: rgba(255, 107, 107, .12); color: var(--danger); border-color: rgba(255, 107, 107, .3); }
.btn-lg { padding: .85rem 1.7rem; font-size: 1.05rem; } .btn-sm { padding: .35rem .8rem; font-size: .85rem; } .btn-block { width: 100%; } .grow { flex: 1; }
.btn.loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.loading::after { content: ""; position: absolute; width: 1.1em; height: 1.1em; border: 2px solid var(--accent-ink); border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .25rem; min-width: 42px; height: 42px; border-radius: 12px; background: transparent; border: 1px solid transparent; color: var(--text); transition: background .2s; }
.icon-btn:hover { background: var(--surface-2); } .lang-code { font-size: .78rem; font-weight: 700; }
.badge { position: absolute; top: 2px; inset-inline-end: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: .7rem; font-weight: 800; display: grid; place-items: center; }
.field { display: block; margin-bottom: 1rem; } .field > span { display: block; font-size: .88rem; color: var(--muted); margin-bottom: .35rem; font-weight: 600; }
.field input, .field textarea, .field select, .range-row input, .toolbar select, .admin-input { width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: .7rem .9rem; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus, .field select:focus, .range-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field.bad input, .field.bad textarea, .field.bad select { border-color: var(--danger); }
.err { display: none; color: var(--danger); font-size: .82rem; font-style: normal; margin-top: .3rem; } .field.bad .err { display: block; }
.form-error { background: rgba(255, 107, 107, .1); border: 1px solid rgba(255, 107, 107, .3); color: #ffb0b0; padding: .7rem 1rem; border-radius: var(--radius-sm); margin: 0 0 1rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; } .span2 { grid-column: 1 / -1; }
.switch { display: flex; align-items: center; gap: .7rem; cursor: pointer; padding: .35rem 0; } .switch input { position: absolute; opacity: 0; }
.switch i { width: 42px; height: 24px; border-radius: 99px; background: var(--surface-3); position: relative; flex: none; transition: background .2s; }
.switch i::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: inset-inline-start .2s; }
.switch input:checked + i { background: var(--accent); } .switch input:checked + i::after { inset-inline-start: 21px; background: var(--accent-ink); }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.pill { display: inline-block; padding: .18rem .7rem; border-radius: 99px; font-size: .78rem; font-weight: 700; background: var(--surface-3); color: var(--muted); white-space: nowrap; }
.s-pending { background: rgba(245, 184, 74, .14); color: var(--warn); } .s-confirmed, .s-processing { background: rgba(110, 168, 255, .14); color: var(--info); }
.s-shipped { background: rgba(167, 139, 250, .16); color: #b7a3ff; } .s-delivered, .s-paid { background: rgba(61, 220, 151, .14); color: var(--ok); }
.s-cancelled, .s-failed { background: rgba(255, 107, 107, .14); color: var(--danger); } .s-refunded { background: rgba(255, 255, 255, .08); color: var(--muted); }

/* Header */
.announce { background: linear-gradient(90deg, var(--accent-2), var(--accent)); color: var(--accent-ink); text-align: center; font-weight: 700; font-size: .85rem; padding: .35rem 1rem; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(8, 12, 13, .78); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 1.2rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.25rem; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); box-shadow: 0 6px 20px -8px var(--accent-glow); }
.brand-mark svg { width: 22px; height: 22px; }
.main-nav { display: flex; gap: 1.3rem; } .main-nav a { color: var(--muted); font-weight: 600; transition: color .2s; position: relative; padding: .3rem 0; }
.main-nav a:hover { color: var(--text); } .main-nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .2s; } .main-nav a:hover::after { transform: scaleX(1); }
.search { position: relative; flex: 1; max-width: 460px; margin-inline: auto; }
.search > .i { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { width: 100%; height: 44px; padding-inline: 44px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.suggest { position: absolute; inset-inline: 0; top: calc(100% + 8px); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; z-index: 60; }
.suggest a { display: flex; align-items: center; gap: .8rem; padding: .6rem .9rem; } .suggest a:hover { background: var(--surface-3); }
.suggest img { width: 38px; height: 38px; object-fit: contain; background: #fff1; border-radius: 8px; } .suggest span { flex: 1; font-size: .92rem; } .suggest b { color: var(--accent); font-size: .88rem; }
.suggest .all { justify-content: center; color: var(--accent); font-weight: 700; border-top: 1px solid var(--line); } .suggest p { padding: 1rem; margin: 0; }
.header-actions { display: flex; align-items: center; gap: .2rem; margin-inline-start: auto; }

/* Hero */
.hero { padding: clamp(2rem, 6vw, 4.5rem) 0 1.5rem; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 2rem; align-items: center; }
.eyebrow { display: inline-block; padding: .3rem .9rem; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .85rem; border: 1px solid rgba(255, 255, 255, .06); margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.8rem); font-weight: 800; background: linear-gradient(180deg, #fff, var(--muted)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46ch; } .hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero-visual { position: relative; min-height: 380px; }
.hero-visual .glow { position: absolute; inset: 10% 5%; background: radial-gradient(closest-side, var(--accent-glow), transparent 70%); filter: blur(30px); opacity: .7; }
.hero-card { position: absolute; width: 46%; background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-2); border-radius: 20px; padding: .9rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .3rem; transition: transform .4s; }
.hero-card img { aspect-ratio: 1; object-fit: contain; background: var(--tile-bg); border-radius: 14px; } .hero-card span { font-size: .85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .hero-card b { color: var(--accent); }
.hc-1 { inset-block-start: 0; inset-inline-start: 4%; transform: rotate(-4deg); } .hc-2 { inset-block-start: 14%; inset-inline-end: 0; transform: rotate(4deg); } .hc-3 { inset-block-end: 0; inset-inline-start: 24%; transform: rotate(-1deg); }
.hero-visual:hover .hc-1 { transform: rotate(-6deg) translateY(-6px); } .hero-visual:hover .hc-2 { transform: rotate(6deg) translateY(-6px); } .hero-visual:hover .hc-3 { transform: translateY(-8px); }
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.trust > div { display: flex; gap: .8rem; align-items: center; } .trust .i { width: 32px; height: 32px; color: var(--accent); } .trust b { display: block; font-size: .95rem; } .trust small { color: var(--muted); }
.section { padding-block: 2.2rem 0; } .section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; } .section-head h2 { margin: 0; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 1.5rem 1rem; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s, border-color .2s, box-shadow .2s; }
.cat-tile:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 14px 34px -18px var(--accent-glow); }
.cat-icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: .4rem; } .cat-icon .i { width: 28px; height: 28px; } .cat-tile small { color: var(--muted); }
.promo { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding: clamp(1.5rem, 4vw, 2.6rem); border-radius: 24px; border: 1px solid var(--line-2); background: radial-gradient(500px 220px at 90% 0%, var(--accent-glow), transparent 70%), linear-gradient(135deg, var(--surface-2), var(--surface)); }
.promo h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: .3rem; } .promo p { margin: 0; color: var(--muted); }
.brand-strip { display: flex; flex-wrap: wrap; gap: .8rem; } .brand-strip a { padding: .8rem 1.6rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 800; letter-spacing: .04em; color: var(--muted); transition: .2s; } .brand-strip a:hover { color: var(--accent); border-color: var(--accent); }

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.1rem; }
.card { position: relative; display: flex; flex-direction: column; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s; }
.card:hover { transform: translateY(-5px); border-color: rgba(255, 255, 255, .18); box-shadow: 0 22px 44px -22px #000, 0 0 0 1px var(--accent-soft); }
.card-media { position: relative; display: block; aspect-ratio: 1 / 1; margin: .7rem .7rem 0; border-radius: 12px; overflow: hidden; background: var(--tile-bg); }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 8%; transition: transform .4s; } .card:hover .card-media img { transform: scale(1.06); }
.card.is-oos .card-media img { opacity: .45; filter: grayscale(.8); }
.tag { position: absolute; top: .6rem; inset-inline-start: .6rem; padding: .15rem .6rem; border-radius: 99px; font-size: .75rem; font-weight: 800; z-index: 1; }
.tag-sale { background: var(--accent); color: var(--accent-ink); } .tag-oos { background: var(--surface-3); color: var(--text); inset-inline-start: auto; inset-inline-end: .6rem; }
.price .tag-sale { position: static; }
.wish { position: absolute; top: 1.1rem; inset-inline-end: 1.1rem; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .45); backdrop-filter: blur(6px); border: 1px solid var(--line-2); color: #fff; z-index: 2; transition: .2s; }
.wish:hover { transform: scale(1.1); } .wish.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; } .wish.on .i { fill: currentColor; }
.wish-lg { position: static; width: 52px; height: 52px; flex: none; }
.card-body { padding: .9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card-brand { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 700; }
.card-title { margin: 0; font-size: 1rem; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .55rem; margin-bottom: .45rem; margin-top: auto; } .price strong { font-size: 1.2rem; } .price s { color: var(--muted); font-size: .9rem; } .price-lg strong { font-size: 1.9rem; }

/* Shop */
.page-head { padding-block: 1.6rem 1rem; } .crumbs { display: flex; flex-wrap: wrap; gap: .5rem; color: var(--muted); font-size: .88rem; margin-bottom: .6rem; } .crumbs a:hover { color: var(--accent); }
.shop-layout { display: grid; grid-template-columns: 270px 1fr; gap: 1.6rem; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; }
.filters fieldset { border: 0; border-bottom: 1px solid var(--line); margin: 0 0 1rem; padding: 0 0 1rem; } .filters fieldset:last-of-type { border-bottom: 0; }
.filters legend { font-weight: 700; padding: 0; margin-bottom: .6rem; }
.opt { display: flex; align-items: center; gap: .6rem; padding: .28rem 0; cursor: pointer; color: var(--muted); } .opt:hover { color: var(--text); } .opt span { flex: 1; } .opt small { opacity: .7; }
.opt input { accent-color: var(--accent); width: 16px; height: 16px; }
.range-row { display: flex; align-items: center; gap: .5rem; } .filter-actions { display: grid; gap: .5rem; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; } .sort { display: flex; align-items: center; gap: .6rem; color: var(--muted); } .toolbar select { width: auto; min-width: 170px; }
.pager { display: flex; justify-content: center; gap: .4rem; margin-top: 2rem; } .pager a, .pager span { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); } .pager a:hover { border-color: var(--accent); color: var(--accent); } .pager .current { background: var(--accent); color: var(--accent-ink); font-weight: 800; border-color: transparent; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); display: grid; justify-items: center; gap: .6rem; } .empty .i { width: 54px; height: 54px; color: var(--accent); opacity: .8; } .empty.big { padding: 5rem 1rem; } .empty h1, .empty h2 { color: var(--text); }
.err-code { font-size: clamp(4rem, 14vw, 9rem); font-weight: 800; line-height: 1; background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Product page */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.2rem, 4vw, 3rem); align-items: start; }
.gallery-main { position: relative; aspect-ratio: 1; background: var(--tile-bg); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; } .gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.thumbs { display: flex; gap: .6rem; margin-top: .7rem; flex-wrap: wrap; } .thumbs button { width: 74px; height: 74px; padding: 6px; border-radius: 14px; background: var(--tile-bg); border: 1px solid var(--line); } .thumbs button.on { border-color: var(--accent); } .thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp-info h1 { margin: .2rem 0 .8rem; } .stock { font-weight: 700; } .stock.ok { color: var(--ok); } .stock.low { color: var(--warn); } .stock.out { color: var(--danger); }
.pdp-desc { color: var(--muted); font-size: 1.02rem; max-width: 60ch; } .buy-row { display: flex; gap: .7rem; align-items: center; margin: 1.2rem 0 .7rem; }
.qty { display: inline-flex; align-items: center; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 999px; } .qty button { width: 44px; height: 50px; background: none; border: 0; display: grid; place-items: center; } .qty button:hover { color: var(--accent); }
.qty input { width: 48px; text-align: center; background: none; border: 0; font-weight: 700; -moz-appearance: textfield; } .qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty.sm button { width: 32px; height: 32px; } .qty.sm span { min-width: 26px; text-align: center; font-weight: 700; }
.pdp-perks { list-style: none; padding: 1rem 0 0; margin: 1.4rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .6rem; color: var(--muted); } .pdp-perks li { display: flex; gap: .7rem; align-items: center; } .pdp-perks .i { color: var(--accent); }

/* Cart / checkout */
.cart-grid, .checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 1.4rem; align-items: start; padding-bottom: 3rem; } .summary { position: sticky; top: calc(var(--header-h) + 16px); } .summary h2 { margin-bottom: 1rem; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid var(--line); align-items: center; } .line:last-child { border-bottom: 0; }
.line img { width: 76px; height: 76px; object-fit: contain; background: var(--tile-bg); border-radius: 12px; padding: 6px; } .line-info { display: grid; gap: .25rem; } .line-info > a { font-weight: 600; } .line-actions { display: flex; align-items: center; gap: .6rem; } .line-total { white-space: nowrap; } .line.is-oos { opacity: .55; } .warn { color: var(--warn); }
.drawer .line { grid-template-columns: 60px 1fr auto; } .drawer .line img { width: 60px; height: 60px; }
.totals { margin: 1rem 0; } .totals > div { display: flex; justify-content: space-between; padding: .35rem 0; color: var(--muted); } .totals dd, .totals dt { margin: 0; } .totals .grand { color: var(--text); font-size: 1.2rem; font-weight: 800; border-top: 1px solid var(--line); margin-top: .4rem; padding-top: .8rem; } .totals .grand dd { color: var(--accent); }
.freeship { margin-bottom: .6rem; font-size: .88rem; color: var(--muted); } .bar { height: 6px; border-radius: 99px; background: var(--surface-3); margin-top: .4rem; overflow: hidden; } .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-radius: inherit; transition: width .4s; }
.steps { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 1rem 0 0; flex-wrap: wrap; } .steps li { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-weight: 600; } .steps li span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-size: .85rem; }
.steps li.on, .steps li.done { color: var(--text); } .steps li.on span, .steps li.done span { background: var(--accent); color: var(--accent-ink); } .steps li:not(:last-child)::after { content: ""; width: 28px; height: 1px; background: var(--line-2); margin-inline-start: .4rem; }
.checkout-grid h2 { margin: 1.4rem 0 .9rem; } .checkout-grid h2:first-child { margin-top: 0; }
.pay-opt { display: flex; gap: .8rem; align-items: center; padding: .9rem 1rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm); margin-bottom: .6rem; cursor: pointer; transition: .2s; } .pay-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); } .pay-opt input { accent-color: var(--accent); } .pay-opt small { display: block; color: var(--muted); }
.pay-info { background: var(--bg-2); border: 1px dashed var(--line-2); border-radius: var(--radius-sm); padding: 1rem; margin-bottom: 1rem; } .acct { font-size: 1.25rem; font-weight: 800; letter-spacing: .06em; color: var(--accent); margin: .3rem 0; user-select: all; }
.mini { display: grid; grid-template-columns: 44px 1fr auto; gap: .7rem; align-items: center; padding: .4rem 0; } .mini img { width: 44px; height: 44px; object-fit: contain; background: #ffffff0d; border-radius: 8px; }
.success { text-align: center; padding: 3rem 1.4rem; } .ok-ring { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 1rem; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); border: 2px solid var(--accent); } .ok-ring .i { width: 36px; height: 36px; }
.order-no { font-size: 1.5rem; font-weight: 800; letter-spacing: .06em; color: var(--accent); } .order-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; }
.track { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: flex; } .track li { flex: 1; text-align: center; position: relative; font-size: .8rem; color: var(--muted); } .track li i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-3); margin: 0 auto .4rem; position: relative; z-index: 1; } .track li i .i { width: 16px; height: 16px; }
.track li::before { content: ""; position: absolute; top: 13px; inset-inline-start: -50%; width: 100%; height: 2px; background: var(--surface-3); } .track li:first-child::before { display: none; } .track li.done { color: var(--text); } .track li.done i, .track li.done::before { background: var(--accent); color: var(--accent-ink); }
.tabs { display: flex; gap: .4rem; background: var(--bg-2); padding: .3rem; border-radius: 99px; margin-bottom: 1.2rem; } .tabs button { flex: 1; border: 0; background: none; padding: .6rem; border-radius: 99px; font-weight: 700; color: var(--muted); } .tabs .on { background: var(--accent); color: var(--accent-ink); }
.profile { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; } .profile > div:nth-child(2) { flex: 1; } .profile h2 { margin: 0; } .avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); font-weight: 800; font-size: 1.4rem; }
.order-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .7rem; transition: border-color .2s; } .order-row:hover { border-color: var(--accent); } .order-row small { display: block; }

/* Drawers / overlay / toast */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px); z-index: 90; opacity: 0; transition: opacity .25s; } .overlay.open { opacity: 1; }
.drawer { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(420px, 92vw); background: var(--bg-2); border-inline-start: 1px solid var(--line-2); z-index: 100; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
[dir="rtl"] .drawer { transform: translateX(-100%); } .drawer.open { transform: none !important; }
.drawer-nav { inset-inline-end: auto; inset-inline-start: 0; transform: translateX(-100%); } [dir="rtl"] .drawer-nav { transform: translateX(100%); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); } .drawer-body { flex: 1; overflow: auto; padding: .8rem 1.2rem; } .drawer-foot { padding: 1rem 1.2rem; border-top: 1px solid var(--line); display: grid; gap: .6rem; } .drawer-foot .totals { margin: 0 0 .4rem; }
.nav-links { display: grid; align-content: start; } .nav-links a { padding: .9rem 0; border-bottom: 1px solid var(--line); font-weight: 600; display: flex; gap: .6rem; align-items: center; }
.toasts { position: fixed; z-index: 200; inset-inline: 0; bottom: 84px; display: grid; justify-items: center; gap: .5rem; pointer-events: none; }
.toast { background: var(--surface-3); border: 1px solid var(--line-2); padding: .65rem 1.2rem; border-radius: 99px; box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); transition: .3s; font-weight: 600; } .toast.show { opacity: 1; transform: none; } .toast.ok { border-color: var(--accent); } .toast.bad { border-color: var(--danger); color: #ffb0b0; }

/* Footer / bottom nav */
.site-footer { margin-top: 4rem; background: var(--bg-2); border-top: 1px solid var(--line); padding-top: 2.6rem; } .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; } .footer-grid h4 { font-size: .95rem; margin-bottom: .8rem; } .footer-grid a, .footer-grid span.muted { display: block; color: var(--muted); padding: .2rem 0; } .footer-grid a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; padding-block: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.bottom-nav { position: fixed; bottom: 0; inset-inline: 0; z-index: 70; display: none; grid-template-columns: repeat(4, 1fr); background: rgba(13, 20, 21, .92); backdrop-filter: blur(16px); border-top: 1px solid var(--line-2); padding-bottom: env(safe-area-inset-bottom); }
.bottom-nav a { display: grid; justify-items: center; gap: 2px; padding: .55rem 0; font-size: .7rem; color: var(--muted); } .bottom-nav a:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 1024px) { .hero-grid, .pdp { grid-template-columns: 1fr; } .hero-visual { min-height: 320px; } .footer-grid { grid-template-columns: 1fr 1fr; } .trust { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) {
  .only-desktop { display: none !important; } .only-mobile { display: inline-flex !important; } .bottom-nav.only-mobile { display: grid !important; }
  body { padding-bottom: 64px; } .header-row { gap: .5rem; flex-wrap: wrap; height: auto; padding-block: .6rem; }
  .search { order: 5; flex: 1 0 100%; max-width: none; margin: 0; }
  .brand { margin-inline-end: auto; } .header-actions { margin-inline-start: 0; }
  .shop-layout, .cart-grid, .checkout-grid { grid-template-columns: 1fr; } .summary, .filters { position: static; }
  .filters .filters-body { display: none; } .filters.open .filters-body { display: block; margin-top: 1rem; } .filters-toggle { width: 100%; }
}
@media (max-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; } .card-body { padding: .7rem .7rem .9rem; } .btn-lg { padding: .75rem 1.2rem; } .form-grid { grid-template-columns: 1fr; } .buy-row { flex-wrap: wrap; } .hero-card { width: 52%; } .trust { grid-template-columns: 1fr; } .card .btn { padding-inline: .6rem; font-size: .88rem; } .footer-grid { grid-template-columns: 1fr; } .line { grid-template-columns: 64px 1fr; } .line-total { grid-column: 2; } .toasts { bottom: 80px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.install { display: block; }

/* Brand (driven by admin → Settings → Brand) */
.brand-name { font-family: var(--brand-font), var(--font, inherit); font-size: var(--brand-size, 22px); font-weight: var(--brand-weight, 800); line-height: 1.1; }
.brand-logo { height: var(--logo-h, 36px); width: auto; max-width: min(240px, 52vw); object-fit: contain; display: block; }
@media (max-width: 560px) { .brand-logo { height: min(var(--logo-h, 36px), 40px); } .brand-name { font-size: min(var(--brand-size, 22px), 24px); } }
/* Product images: transparent cut-outs float on a soft light, with depth */
.card-media img, .gallery-main img { filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .42)); }
.card-media { background: radial-gradient(circle at 50% 38%, var(--accent-soft), transparent 62%), radial-gradient(circle at 50% 40%, #ffffff14, #ffffff05); }
.gallery-main { background: radial-gradient(circle at 50% 38%, var(--accent-soft), transparent 64%), radial-gradient(circle at 50% 40%, #ffffff14, #ffffff05); }
.card-media img { padding: 7%; } .card.is-oos .card-media img { filter: grayscale(.8) drop-shadow(0 8px 10px rgba(0, 0, 0, .3)); }
.hero-card img, .mini img, .line img, .suggest img { filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .35)); }

/* cart/drawer thumbnails: no white tile behind transparent cut-outs */
.line img, .drawer .line img { background: transparent; }

/* Hero cards: the width/height attributes on the <img> made the cards 480 px tall and pushed them out of the hero. */
.hero-card { width: 36%; max-width: 230px; } .hero-card img { width: 100%; height: auto; aspect-ratio: 1; } .hero-visual { min-height: 430px; }
@media (max-width: 560px) { .hero-card { width: 44%; } }

/* ── Light mode: white + bright blue. Visitor-selectable; the dark theme above is untouched and stays the default. ── */
html[data-mode="light"] {
  color-scheme: light;
  --bg: #e8f0ff; --bg-2: #dce8ff; --surface: #ffffff; --surface-2: #f1f6ff; --surface-3: #d9e6ff;
  --line: rgba(20, 60, 150, .16); --line-2: rgba(20, 60, 150, .3);
  --text: #0a1633; --muted: #3f5380; --tile-bg: #e9f1ff;
  --accent: #1f6bff; --accent-2: #1148c4; --accent-ink: #ffffff; --accent-soft: rgba(31, 107, 255, .12); --accent-glow: rgba(31, 107, 255, .35);
  --ok: #0e8f5a; --warn: #b36b00; --danger: #d93a3a; --info: #1f6bff;
  --shadow: 0 16px 36px -18px rgba(17, 72, 196, .45);
}
html[data-mode="light"] body { font-weight: 500; background-image: radial-gradient(900px 500px at 85% -10%, rgba(31, 107, 255, .14), transparent 60%); }
html[data-mode="light"] h1, html[data-mode="light"] h2, html[data-mode="light"] h3, html[data-mode="light"] h4 { font-weight: 800; color: var(--text); }
html[data-mode="light"] .muted, html[data-mode="light"] .lead { font-weight: 500; }
/* Header + announcement: solid blue */
html[data-mode="light"] .announce { background: linear-gradient(90deg, #0b2f86, #1148c4); color: #fff; }
html[data-mode="light"] .site-header { background: linear-gradient(90deg, #1148c4, #1f6bff); border-bottom: 0; box-shadow: 0 8px 24px -12px rgba(17, 72, 196, .7); }
html[data-mode="light"] .site-header, html[data-mode="light"] .site-header .brand, html[data-mode="light"] .site-header .icon-btn { color: #fff; }
html[data-mode="light"] .main-nav a { color: rgba(255, 255, 255, .9); font-weight: 700; } html[data-mode="light"] .main-nav a:hover { color: #fff; } html[data-mode="light"] .main-nav a::after { background: #fff; }
html[data-mode="light"] .icon-btn:hover { background: rgba(255, 255, 255, .18); }
html[data-mode="light"] .site-header .badge { background: #fff; color: var(--accent-2); }
html[data-mode="light"] .search input { background: #fff; color: var(--text); border-color: transparent; font-weight: 600; } html[data-mode="light"] .search > .i { color: var(--accent-2); }
html[data-mode="light"] .brand-logo { background: #fff; border-radius: 10px; padding: 3px 8px; }
/* Hero: blue banner with white cards */
html[data-mode="light"] .hero { background: linear-gradient(135deg, #1148c4, #1f6bff 60%, #4b93ff); color: #fff; padding-bottom: 3.2rem; border-radius: 0 0 36px 36px; margin-bottom: 1rem; }
html[data-mode="light"] .hero h1 { background: none; -webkit-text-fill-color: #fff; color: #fff; }
html[data-mode="light"] .hero .lead { color: rgba(255, 255, 255, .92); }
html[data-mode="light"] .hero .eyebrow { background: rgba(255, 255, 255, .18); color: #fff; border-color: rgba(255, 255, 255, .35); }
html[data-mode="light"] .hero .btn-primary { background: #fff; color: var(--accent-2); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45); }
html[data-mode="light"] .hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
html[data-mode="light"] .hero .glow { opacity: .35; }
html[data-mode="light"] .hero-card { background: #fff; border-color: transparent; box-shadow: 0 22px 44px -18px rgba(5, 25, 90, .65); }
html[data-mode="light"] .hero-card span { color: var(--text); font-weight: 700; } html[data-mode="light"] .hero-card b { color: var(--accent); font-weight: 800; }
html[data-mode="light"] .hero-card img { background: linear-gradient(160deg, #dbe8ff, #f2f7ff); }
/* Tiles, trust strip, categories */
html[data-mode="light"] .trust, html[data-mode="light"] .cat-tile, html[data-mode="light"] .panel, html[data-mode="light"] .summary, html[data-mode="light"] .filters, html[data-mode="light"] .order-row, html[data-mode="light"] .acct, html[data-mode="light"] .pdp-info, html[data-mode="light"] .track { background: #fff; border: 1px solid var(--line-2); box-shadow: 0 10px 26px -18px rgba(17, 72, 196, .55); }
html[data-mode="light"] .trust b, html[data-mode="light"] .trust strong { color: var(--text); font-weight: 800; }
html[data-mode="light"] .cat-icon, html[data-mode="light"] .trust .i { background: var(--accent); color: #fff; }
html[data-mode="light"] .trust .i { background: none; color: var(--accent); }
html[data-mode="light"] .cat-tile:hover { border-color: var(--accent); background: var(--surface-2); }
html[data-mode="light"] .panel, html[data-mode="light"] .summary, html[data-mode="light"] .filters { border-top: 4px solid var(--accent); }
html[data-mode="light"] .section-head h2 { color: var(--accent-2); }
/* Product cards + gallery */
html[data-mode="light"] .card { background: #fff; border: 1px solid var(--line-2); box-shadow: 0 10px 26px -16px rgba(17, 72, 196, .5); }
html[data-mode="light"] .card:hover { border-color: var(--accent); box-shadow: 0 22px 40px -20px rgba(17, 72, 196, .6); }
html[data-mode="light"] .card-media, html[data-mode="light"] .gallery-main { background: radial-gradient(circle at 50% 35%, #ffffff, transparent 55%), linear-gradient(160deg, #cfe0ff, #eaf2ff); border-color: var(--line); }
html[data-mode="light"] .card-title, html[data-mode="light"] .pdp-info h1 { color: var(--text); font-weight: 800; }
html[data-mode="light"] .card-brand { color: var(--accent-2); font-weight: 800; }
html[data-mode="light"] .price, html[data-mode="light"] .card .price { color: var(--text); font-weight: 800; }
html[data-mode="light"] .thumbs button { background: linear-gradient(160deg, #cfe0ff, #eaf2ff); border-color: var(--line-2); }
html[data-mode="light"] .mini img, html[data-mode="light"] .suggest img, html[data-mode="light"] .line img { background: linear-gradient(160deg, #d6e5ff, #f0f6ff); }
html[data-mode="light"] .hero-card img, html[data-mode="light"] .mini img, html[data-mode="light"] .line img, html[data-mode="light"] .suggest img { filter: drop-shadow(0 6px 8px rgba(17, 72, 196, .3)); }
html[data-mode="light"] .wish { background: #fff; color: var(--accent-2); border-color: var(--line-2); }
html[data-mode="light"] .tag-sale { background: var(--accent); color: #fff; }
/* Buttons + forms */
html[data-mode="light"] .btn-primary { background: linear-gradient(135deg, #1f6bff, #1148c4); color: #fff; box-shadow: 0 10px 22px -10px rgba(17, 72, 196, .75); font-weight: 800; }
html[data-mode="light"] .btn-ghost { background: #fff; color: var(--accent-2); border: 1.5px solid var(--accent); font-weight: 700; } html[data-mode="light"] .btn-ghost:hover { background: var(--accent-soft); }
html[data-mode="light"] input, html[data-mode="light"] select, html[data-mode="light"] textarea { font-weight: 600; }
html[data-mode="light"] .field input, html[data-mode="light"] .field select, html[data-mode="light"] .field textarea, html[data-mode="light"] .sort select, html[data-mode="light"] .range-row input { background: #fff; border: 1.5px solid var(--line-2); color: var(--text); }
html[data-mode="light"] .field label, html[data-mode="light"] label { font-weight: 700; color: var(--text); }
html[data-mode="light"] .pay-opt { background: #fff; border: 1.5px solid var(--line-2); } html[data-mode="light"] .pay-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
html[data-mode="light"] .opt { color: var(--text); font-weight: 600; } html[data-mode="light"] .opt:hover { color: var(--accent-2); } html[data-mode="light"] .opt:has(input:checked) { color: var(--accent-2); font-weight: 800; } html[data-mode="light"] .opt small { color: var(--muted); opacity: 1; font-weight: 700; }
html[data-mode="light"] .totals .grand, html[data-mode="light"] .grand { color: var(--accent); font-weight: 800; }
html[data-mode="light"] .filters h3, html[data-mode="light"] .filters h4, html[data-mode="light"] .filters legend { color: var(--accent-2); font-weight: 800; }
html[data-mode="light"] .pill { background: var(--surface-3); color: var(--accent-2); font-weight: 800; }
/* Drawer (cart), overlay, bottom nav, toasts */
html[data-mode="light"] .drawer { background: #fff; } html[data-mode="light"] .drawer-head { background: linear-gradient(90deg, #1148c4, #1f6bff); color: #fff; border-bottom: 0; } html[data-mode="light"] .drawer-head .icon-btn { color: #fff; }
html[data-mode="light"] .overlay { background: rgba(8, 24, 70, .55); }
html[data-mode="light"] .bottom-nav { background: #fff; border-top: 2px solid var(--accent); } html[data-mode="light"] .bottom-nav a { color: var(--muted); font-weight: 700; } html[data-mode="light"] .bottom-nav a.on { color: var(--accent); }
html[data-mode="light"] .toast { background: #0b2f86; color: #fff; }
html[data-mode="light"] .form-error { color: #b42323; background: rgba(217, 58, 58, .08); border-color: rgba(217, 58, 58, .35); }
/* Footer: deep blue */
html[data-mode="light"] .site-footer { background: linear-gradient(180deg, #0f3a9c, #0a2766); color: #dbe7ff; border-top: 0; margin-top: 3rem; }
html[data-mode="light"] .site-footer h3, html[data-mode="light"] .site-footer h4, html[data-mode="light"] .site-footer .brand { color: #fff; }
html[data-mode="light"] .site-footer a { color: #dbe7ff; font-weight: 600; } html[data-mode="light"] .site-footer a:hover { color: #fff; }
html[data-mode="light"] .site-footer .muted { color: #b9cdf5; } html[data-mode="light"] .footer-bottom { border-top: 1px solid rgba(255, 255, 255, .2); color: #b9cdf5; }
html[data-mode="light"] .site-footer .brand-logo { background: #fff; }

/* Hero cards, light mode: bigger fanned photo cards with the name and price floating over the image. */
html[data-mode="light"] .hero-visual { min-height: 480px; }
html[data-mode="light"] .hero-card { width: 40%; max-width: 260px; padding: .5rem; border-radius: 26px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0; box-shadow: 0 30px 60px -22px rgba(4, 20, 80, .75); }
html[data-mode="light"] .hero-card img { grid-column: 1 / -1; grid-row: 1; border-radius: 20px; }
html[data-mode="light"] .hero-card span, html[data-mode="light"] .hero-card b { position: relative; z-index: 2; }
html[data-mode="light"] .hero-card span { grid-column: 1; grid-row: 1; align-self: end; justify-self: start; max-width: 100%; margin: 0 .3rem .7rem .7rem; padding: .2rem .65rem; font-size: .78rem; border-radius: 99px; background: rgba(255, 255, 255, .94); box-shadow: 0 6px 16px -8px rgba(4, 20, 80, .6); }
html[data-mode="light"] .hero-card b { grid-column: 2; grid-row: 1; align-self: end; margin: 0 .7rem .7rem 0; padding: .2rem .65rem; font-size: .78rem; border-radius: 99px; background: var(--accent); color: #fff; font-weight: 800; box-shadow: 0 6px 16px -8px rgba(4, 20, 80, .7); }
html[data-mode="light"] .hc-1 { inset-inline-start: 0; inset-block-start: 0; transform: rotate(-6deg); } html[data-mode="light"] .hc-2 { inset-inline-end: 0; inset-block-start: 10%; transform: rotate(5deg); } html[data-mode="light"] .hc-3 { inset-inline-start: 30%; inset-block-end: 0; transform: rotate(-1.5deg); z-index: 2; }
@media (max-width: 560px) { html[data-mode="light"] .hero-card { width: 52%; } html[data-mode="light"] .hero-visual { min-height: 400px; } }

/* Mode toggle button: moon shown in dark mode, sun in light mode. */
.mode-btn .i-sun { display: none; } html[data-mode="light"] .mode-btn .i-sun { display: inline-block; } html[data-mode="light"] .mode-btn .i-moon { display: none; }

/* product options */
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.opts{display:grid;gap:1rem;margin:1.1rem 0}
.opt-title{display:flex;gap:.5rem;align-items:baseline;margin-bottom:.45rem}.opt-title .muted{font-size:.85rem}
.opt-vals{display:flex;flex-wrap:wrap;gap:.5rem}
.opt-val{min-width:2.8rem;padding:.5rem .9rem;border-radius:10px;border:1.5px solid var(--line,rgba(255,255,255,.18));background:transparent;color:var(--text);font:inherit;font-weight:700;cursor:pointer;transition:border-color .15s,background .15s}
.opt-val:hover{border-color:var(--accent)}
.opt-val[aria-pressed="true"]{border-color:var(--accent);background:var(--accent);color:#fff}
.opt-val.na{opacity:.4;text-decoration:line-through}
.opt-color{padding:.25rem;min-width:0;width:2.6rem;height:2.6rem;border-radius:50%;display:grid;place-items:center}
.opt-color i{display:block;width:100%;height:100%;border-radius:50%;background:var(--sw,#888);box-shadow:inset 0 0 0 1px rgba(128,128,128,.45)}
.opt-color[aria-pressed="true"]{background:transparent;box-shadow:0 0 0 2px var(--accent)}
.opt-select{width:100%;padding:.65rem .8rem;border-radius:10px;border:1.5px solid var(--line,rgba(255,255,255,.18));background:var(--card,transparent);color:var(--text);font:inherit}
.cart-variant,.opt-label{display:block;font-size:.82rem;color:var(--muted)}
html[data-mode="light"] .opt-val{border-color:#c5d3ee;color:#10244d;background:#fff}
html[data-mode="light"] .opt-val[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:#fff}
html[data-mode="light"] .opt-color,html[data-mode="light"] .opt-color[aria-pressed="true"]{background:transparent}
html[data-mode="light"] .opt-select{background:#fff;border-color:#c5d3ee;color:#10244d}

/* image zoom / lightbox */
.gallery-main.zoomable{cursor:zoom-in}.gallery-main img{transition:transform .25s ease}.gallery-main.zooming img{transform:scale(2.2)}
.card-media img{transition:opacity .2s,transform .4s}
.no-scroll{overflow:hidden}
.lightbox{position:fixed;inset:0;z-index:300;background:rgba(5,8,12,.94);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.8rem;padding:3.5rem 1rem 1rem}
.lb-stage{flex:1;min-height:0;width:100%;max-width:1100px;display:grid;place-items:center;overflow:hidden;cursor:zoom-in}.lb-stage.z{cursor:zoom-out}
.lb-stage img{max-width:100%;max-height:100%;object-fit:contain;transition:transform .25s ease;background:#fff0}.lb-stage.z img{transform:scale(2.6)}
.lb-close,.lb-nav{position:absolute;display:grid;place-items:center;width:46px;height:46px;border-radius:50%;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.1);color:#fff;cursor:pointer;z-index:2}
.lb-close{top:.9rem;inset-inline-end:.9rem}.lb-nav{top:50%;transform:translateY(-50%)}.lb-prev{left:.9rem}.lb-next{right:.9rem}.lb-prev svg{transform:scaleX(-1)}
.lb-dots{display:flex;gap:.5rem;flex-wrap:wrap;justify-content:center}.lb-dots button{width:56px;height:56px;padding:3px;border-radius:10px;border:2px solid transparent;background:rgba(255,255,255,.08);cursor:pointer}.lb-dots button.on{border-color:var(--accent)}.lb-dots img{width:100%;height:100%;object-fit:contain}
.lb-hint{color:rgba(255,255,255,.6);font-size:.85rem}

/* coupon */
.coupon{margin:.9rem 0}.coupon-row{display:flex;gap:.5rem}.coupon-row input{flex:1;min-width:0;text-transform:uppercase}
.coupon-err{color:var(--danger,#ff6b6b);font-size:.85rem;margin:.4rem 0 0}
.coupon.applied{display:flex;justify-content:space-between;align-items:center;gap:.5rem;padding:.6rem .8rem;border-radius:12px;border:1px dashed var(--accent);color:var(--accent)}
.coupon.applied .link{background:none;border:0;color:var(--muted);cursor:pointer;text-decoration:underline;font:inherit}
.totals .disc dd,.totals .disc dt{color:var(--accent)}
.card-discount{border:1px dashed var(--accent);border-radius:14px;padding:.8rem 1rem;margin:.5rem 0;display:flex;justify-content:space-between;gap:1rem;align-items:center}
.card-discount b{font-size:1.1rem;letter-spacing:.08em}

/* header: login / create account / my account / logout */
html[data-auth="in"] [data-show="out"], html[data-auth="out"] [data-show="in"], html:not([data-auth]) [data-show] { display: none !important; }
.auth-slot { display: inline-flex; align-items: center; gap: .4rem; }
.auth-slot .btn { white-space: nowrap; display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; border-radius: 99px; font-size: .88rem; }
.auth-slot .btn .i { width: 1.1em; height: 1.1em; }
@media (max-width: 760px) { .auth-slot .btn-ghost span { display: none; } .auth-slot .btn { padding: .45rem .7rem; } }
