/* Storefront look in the manner of an online Apple Store: light grey page, borderless white cards with
   soft shadows, pill buttons, large tight headlines, link-blue actions and no decorative lines.
   Loaded after base.css and app.css; it only re-skins (tokens + overrides), the markup and the logic stay
   as they are. The admin panel does not load this file. Remove the <link> to return to the previous look. */

/* ---------- 1. palette, type, shape ---------- */
:root {
  --bg: #F5F5F7;
  --surface: #FFFFFF;
  --panel: #E8E8ED;
  --panel-2: #D2D2D7;
  --line: #D2D2D7;
  --ink: #1D1D1F;
  --ink-2: #6E6E73;
  --ink-3: #6E6E73;
  --firuza: #0071E3;          /* button blue */
  --firuza-hover: #0077ED;
  --on-firuza: #FFFFFF;
  --firuza-soft: #E8F1FC;
  --link: #0066CC;            /* text links */
  --new: #B64400;             /* "New" eyebrow */
  --warn: #B64400;
  --warn-bg: #FFF4E5;
  --ok: #008009;
  --sale: #E30000;
  --sale-bg: #FFF0F0;
  --deep: #1D1D1F;
  --deep-line: #424245;
  --on-deep: #F5F5F7;
  --on-deep-2: #A1A1A6;
  --deep-acc: #2997FF;
  --on-deep-acc: #000000;
  --ill: #6E6E73;
  --ill-accent: #0071E3;
  --material: rgba(250, 250, 252, 0.8);
  --shadow-s: 2px 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-m: 0 4px 24px rgba(0, 0, 0, 0.12);
  --shadow-lift: 2px 4px 16px rgba(0, 0, 0, 0.16);

  --f-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-mono: var(--f-sans);
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 18px;
  --r-xl: 28px;
  --pill: 980px;
  --ease-out: cubic-bezier(0, 0, 0.5, 1);   /* Apple's card and link easing */
  --hdr-h: 52px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --surface: #1D1D1F; --panel: #2C2C2E; --panel-2: #424245; --line: #424245;
    --ink: #F5F5F7; --ink-2: #A1A1A6; --ink-3: #A1A1A6;
    --firuza: #0071E3; --firuza-hover: #0077ED; --on-firuza: #FFFFFF; --firuza-soft: #0B2A4A;
    --link: #2997FF; --new: #FF9F40; --warn: #FF9F40; --warn-bg: #2B1D0E; --ok: #30D158; --sale: #FF6961; --sale-bg: #3A1514;
    --deep: #1D1D1F; --deep-line: #424245; --on-deep: #F5F5F7; --on-deep-2: #A1A1A6; --deep-acc: #2997FF; --on-deep-acc: #000000;
    --ill: #A1A1A6; --ill-accent: #2997FF;
    --material: rgba(22, 22, 23, 0.8);
    --shadow-s: none; --shadow-m: 0 4px 24px rgba(0, 0, 0, 0.6); --shadow-lift: none;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --surface: #1D1D1F; --panel: #2C2C2E; --panel-2: #424245; --line: #424245;
  --ink: #F5F5F7; --ink-2: #A1A1A6; --ink-3: #A1A1A6;
  --firuza: #0071E3; --firuza-hover: #0077ED; --on-firuza: #FFFFFF; --firuza-soft: #0B2A4A;
  --link: #2997FF; --new: #FF9F40; --warn: #FF9F40; --warn-bg: #2B1D0E; --ok: #30D158; --sale: #FF6961; --sale-bg: #3A1514;
  --deep: #1D1D1F; --deep-line: #424245; --on-deep: #F5F5F7; --on-deep-2: #A1A1A6; --deep-acc: #2997FF; --on-deep-acc: #000000;
  --ill: #A1A1A6; --ill-accent: #2997FF;
  --material: rgba(22, 22, 23, 0.8);
  --shadow-s: none; --shadow-m: 0 4px 24px rgba(0, 0, 0, 0.6); --shadow-lift: none;
}

body { font-size: 17px; line-height: 1.47; letter-spacing: -0.011em; }
:focus-visible { outline: 2px solid var(--firuza); outline-offset: 3px; border-radius: 8px; }
.fid { display: none; }   /* decorative fiducial dots */

/* text links: blue, underline on hover */
.more, .mega-all, .f-more, .crumbs a, .foot-grid ul a { color: var(--link); }
@media (hover: hover) {
  .more:hover, .mega-all:hover, .f-more:hover, .crumbs a:hover { text-decoration: underline; color: var(--link); }
}

/* ---------- 2. header: translucent bar, plain text navigation, no rule ---------- */
.hdr {
  background: var(--material); border-bottom: 0;
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.hdr-row { padding-block: 4px; gap: 4px; min-height: 52px; }
/* "Biz kimmiz" sits right after the configurator (phones keep base.css's two-row grid, where it is hidden) */
@media (min-width: 760px) {
  .hdr-row { grid-template-columns: auto auto auto minmax(0, 560px) auto auto minmax(0, 1fr) auto auto; grid-template-areas: "logo home cat search cfg about . prefs actions"; }
}
.btn-about { grid-area: about; }
@media (max-width: 1100px) and (min-width: 760px) { .btn-about span { display: none; } .btn-about { width: 40px; padding: 0; } }
@media (max-width: 759px) { .btn-about { display: none; } }
.logo { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.logo svg { width: 24px; height: 24px; }
.logo-txt em { color: inherit; }
.nav-btn { height: 40px; padding: 0 10px; border-radius: var(--pill); font-size: 14px; font-weight: 400; color: var(--ink); opacity: 0.88; transition: opacity 240ms var(--ease-out), color 240ms var(--ease-out); }
.nav-btn .ic { width: 18px; height: 18px; }
.nav-btn .chev { width: 14px; height: 14px; color: currentColor; opacity: 0.7; }
@media (hover: hover) { .nav-btn:hover, .icon-btn:hover { background: none; opacity: 1; } }
.nav-btn[aria-current="page"], .nav-btn[aria-expanded="true"] { background: none; color: var(--ink); opacity: 1; }
/* catalog and configurator lose their filled blue: the bar carries no buttons, only words */
.btn-accent, .btn-accent[aria-current="page"], .btn-accent[aria-expanded="true"] { background: none; color: var(--ink); }
@media (hover: hover) { .btn-accent:hover { background: none; } }
.search { height: 36px; margin-left: 8px; border-radius: var(--pill); background: color-mix(in srgb, var(--ink) 6%, transparent); border: 0; }
.search:focus-within { background: var(--surface); border: 0; box-shadow: 0 0 0 2px var(--firuza); }
.search input { font-size: 14px; }
.kbd { display: none; }
.icon-btn { width: 40px; height: 40px; border-radius: var(--pill); }
.badge { top: 3px; right: 2px; background: var(--ink); color: var(--bg); }
.flag { box-shadow: none; border-radius: 2px; }
.menu, .suggest { border: 0; border-radius: var(--r-l); box-shadow: var(--shadow-m); padding: 8px; }
/* catalog flyout: opaque, so the page never shows through; the page below is dimmed instead
   (a spread shadow clipped to start under the menu) and the bar turns solid to match */
.mega {
  border-bottom: 0; background: var(--surface);
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.32); clip-path: inset(0 -100vmax -100vmax -100vmax);
}
.hdr:has(.mega:not([hidden])) { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
.mega-in { padding-block: 28px 36px; }
.mega-h { font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.mega-grid a { font-size: 14px; font-weight: 600; }
.mega-grid small { font-weight: 400; }
@media (hover: hover) { .mega-grid a:hover { background: none; color: var(--link); } .lang-menu button:hover, .cfg-menu a:hover, .sug:hover { background: var(--panel); } }
.lang-menu button[aria-pressed="true"] { background: none; color: var(--link); }

/* ---------- 3. intro: one large headline on the page, blue links on the right ---------- */
main { gap: clamp(56px, 8vw, 100px); padding-block: 0 100px; }
/* the home page opens on the "what we offer" slider: a little room above its heading */
#main > section.home:first-of-type { padding-top: clamp(20px, 3vw, 36px); }
.intro {
  background: none; border: 0; border-radius: 0;
  padding: clamp(40px, 7vw, 88px) 0 0; align-items: flex-end;
}
.intro h1 { font-size: clamp(40px, 6.2vw, 80px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.05; }
.intro .lede { margin-top: 14px; font-size: clamp(17px, 1.6vw, 21px); color: var(--ink-2); letter-spacing: 0; }
.intro .hero-actions { flex-direction: column; align-items: flex-end; gap: 6px; }
.intro .hero-actions .btn { height: auto; padding: 0; background: none; border: 0; border-radius: 0; color: var(--link); font-size: 17px; font-weight: 400; }
.intro .hero-actions .btn .ic { display: none; }
.intro .hero-actions .btn::after { content: "\00a0›"; font-size: 1.15em; line-height: 1; }
@media (hover: hover) { .intro .hero-actions .btn:hover { text-decoration: underline; background: none; } }
@media (max-width: 759px) { .intro .hero-actions { align-items: flex-start; } }

/* ---------- 4. section headings: "Title. Muted continuation." ---------- */
.sec-head { margin-bottom: 28px; align-items: flex-end; }
.sec-head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.1; }
.more { font-size: 17px; font-weight: 400; }
.more .ic { width: 16px; height: 16px; }

/* ---------- 5. categories: a row of words, like a store sub-navigation ---------- */
.cats, .cats[class] { display: flex; flex-wrap: wrap; gap: 14px 36px; }
.cat {
  display: inline-block; min-height: 0; padding: 4px 0; border: 0; border-radius: 0; background: none;
  box-shadow: none; transform: none;
}
.cat-name { font-size: clamp(17px, 1.6vw, 21px); font-weight: 400; letter-spacing: -0.01em; color: var(--ink); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 300ms var(--ease-out); padding-bottom: 2px; }
@media (hover: hover) { .cat:hover { border: 0; } .cat:hover .cat-name { background-size: 100% 1px; } }
.cat:hover, .cat:focus-visible { transform: none !important; box-shadow: none !important; }

/* ---------- 6. product cards: borderless white, soft shadow, slight scale on hover ---------- */
.grid { gap: 20px; }
.card {
  border: 0; border-radius: var(--r-l); padding: 0; overflow: hidden; background: var(--surface);
  box-shadow: var(--shadow-s);
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
.media, .media.has-img { border-radius: 0; background: var(--surface); }
.has-img .pimg { mix-blend-mode: normal; }
.body { gap: 4px; padding: 6px 22px 22px; }
.brand { font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.name { font-size: 17px; font-weight: 600; line-height: 1.24; letter-spacing: -0.015em; }
.specs { font-size: 12px; line-height: 1.33; color: var(--ink-2); }
.foot { gap: 8px; padding-top: 12px; }
.price { font-size: 17px; font-weight: 400; letter-spacing: -0.01em; }
.price small { font-size: 14px; font-weight: 400; }
.stock { font-size: 12px; font-weight: 400; }
.stock::before { display: none; }
.badges { left: 22px; top: 18px; }
.tag-new { padding: 0; border-radius: 0; background: none; color: var(--new); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
.badges .disc, .disc { padding: 0; background: none; color: var(--sale); font-weight: 600; }
.tools { top: 12px; right: 12px; }
.tool { background: none; box-shadow: none; color: var(--ink-2); width: 36px; height: 36px; }
/* "Buy"-style pill */
.btn { border-radius: var(--pill); font-weight: 400; transition: background-color 240ms var(--ease-out), color 240ms var(--ease-out), transform 120ms var(--ease-out); }
.btn-acc { background: var(--firuza); color: var(--on-firuza); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ghost-s { background: none; border: 1px solid var(--firuza); color: var(--link); }
@media (hover: hover) { .btn-ghost-s:hover { background: var(--firuza); color: var(--on-firuza); } }
.add { width: auto; justify-self: start; height: 36px; padding: 0 18px; font-size: 14px; background: var(--firuza); color: var(--on-firuza); }
.add .ic { width: 16px; height: 16px; }
.add[aria-pressed="true"] { background: var(--panel); color: var(--ink); }
@media (hover: hover) { .add:not(:disabled):hover { background: var(--firuza-hover); color: var(--on-firuza); } .add[aria-pressed="true"]:hover { background: var(--panel-2); color: var(--ink); } }
.add:disabled { background: var(--panel); color: var(--ink-2); }
.press:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .card:hover { transform: scale(1.01); box-shadow: var(--shadow-lift); }
}
@media (prefers-reduced-motion: no-preference) {
  .card:has(:focus-visible) { transform: scale(1.01); box-shadow: var(--shadow-lift); border-color: transparent; }
}
.card .name a { color: inherit; }
@media (hover: hover) { .card .name a:hover { color: inherit; text-decoration: underline; } }

/* ---------- 7. home carousels: wider cards, no edge fade, room for the shadow ---------- */
/* full bleed: the row runs to the window edges while headings stay in the content column */
.mq { --mq-w: clamp(240px, 21vw, 313px); -webkit-mask-image: none; mask-image: none; padding: 20px 0 48px; margin: -20px calc(-1 * clamp(16px, 2.5vw, 48px)) -40px; }
.mq-track > * { margin-right: 20px; }

/* ---------- 8. info strip, partners, footer: no rules, small grey type ---------- */
.facts { border-top: 0; padding-top: 0; gap: 20px; }
.fact { padding: 28px; border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-s); }
.fact .ic { color: var(--ink); }
.fact h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.fact p { font-size: 14px; }
.partners { border-top: 0; background: var(--bg); }
.pt { border: 0; background: var(--surface); border-radius: var(--r-l); }
footer { background: var(--bg); border-top: 0; font-size: 12px; }
.foot-grid { padding-block: 40px 20px; gap: 28px; }
.foot-grid h4 { font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink); margin-bottom: 10px; }
.foot-grid ul { gap: 8px; font-size: 12px; }
.foot-grid ul a, .foot-grid a:not(.logo) { color: var(--ink-2); }
@media (hover: hover) { .foot-grid ul a:hover, .foot-grid a:not(.logo):hover { color: var(--ink-2); text-decoration: underline; } }
.foot-about { font-size: 12px; }
.contact-num { font-size: 14px; }
.legal { border-top: 1px solid var(--line); padding-block: 16px 24px; font-size: 12px; color: var(--ink-2); margin-inline: clamp(16px, 2.5vw, 48px); padding-inline: 0; width: auto; }
/* day/night switch: a moon in the light theme, a sun in the dark one; the icons turn as they swap */
.theme-btn { position: relative; width: 44px; height: 44px; border: 0; color: var(--ink); }
.theme-btn svg {
  position: absolute; inset: 0; margin: auto; width: 22px; height: 22px;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: opacity 250ms ease, transform 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.theme-btn .ic-moon { fill: currentColor; stroke: none; }
.theme-btn[data-mode="light"] .ic-sun { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.theme-btn[data-mode="dark"] .ic-moon { opacity: 0; transform: rotate(90deg) scale(0.5); }
@media (hover: hover) { .theme-btn:hover { background: var(--panel); } }

/* ---------- 9. inner pages: catalog, product, checkout, cart, account ---------- */
.cv-head h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 600; letter-spacing: -0.015em; }
.side-cats, .f-block { border: 0; border-radius: var(--r-l); }
.sc[aria-current="page"] { background: none; color: var(--link); }
@media (hover: hover) { .sc:hover { background: var(--panel); } .sc[aria-current="page"]:hover { background: var(--panel); color: var(--link); } .bf-list label:hover { background: none; } }
.sc-head, .mega-h { text-transform: none; letter-spacing: 0; font-weight: 400; }
.chip { border: 0; background: var(--panel); color: var(--ink); border-radius: var(--pill); }
.chip[aria-current="page"] { background: var(--ink); color: var(--bg); }
@media (hover: hover) { .chip:hover { background: var(--panel-2); color: var(--ink); } .chip[aria-current="page"]:hover { background: var(--ink); color: var(--bg); } }
.achip { background: var(--panel); color: var(--ink); border-radius: var(--pill); }
@media (hover: hover) { .achip:hover { background: var(--panel-2); } }
.achip-clear { color: var(--link); text-decoration: none; }
.bf-search { border: 0; border-radius: var(--pill); }
.bf-search:focus-within { box-shadow: 0 0 0 2px var(--firuza); }
.f-price input, .sort select, .inp, .phone { border-radius: var(--r-m); border: 1px solid var(--line); background: var(--surface); }
.inp:focus, .f-price input:focus, .phone:focus-within { border-color: var(--firuza); box-shadow: 0 0 0 3px color-mix(in srgb, var(--firuza) 25%, transparent); }
.cv-empty { border: 0; background: var(--surface); }
.pager button { border: 0; border-radius: var(--pill); background: none; color: var(--link); font-weight: 400; }
.pager button[aria-current="true"] { background: var(--ink); color: var(--bg); }
.pager-step:disabled { color: var(--ink-2); }
.page-card, .co-form, .co-sum, .buybox, .orow { border: 0; box-shadow: none; border-radius: var(--r-l); }
.pd-main, .pd-thumbs button, .ci-thumb { border: 0; }
.pd-thumbs button { box-shadow: 0 0 0 1px var(--line); }
.pd-thumbs button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--firuza); }
.pd-key li { border: 0; background: var(--surface); border-radius: var(--r-l); }
.pd-perks { border-top: 0; padding-top: 4px; }
.pd-name, .buybox .pd-name { font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; letter-spacing: -0.01em; }
.pd-brand { color: var(--new); text-transform: uppercase; letter-spacing: 0.02em; font-weight: 600; }
.pdp .qty-step, .qty, .qty-step { border-radius: var(--pill); }
.co-title { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.015em; }
.co-steps li > span, .co-steps li > button { border: 0; background: var(--panel); border-radius: var(--pill); }
.co-steps li[aria-current="step"] > span { background: var(--ink); color: var(--bg); }
.co-steps li[aria-current="step"] b { background: var(--bg); color: var(--ink); }
.pay { border: 1px solid var(--line); border-radius: var(--r-m); font-weight: 400; }
.pay:has(input:checked) { border: 2px solid var(--firuza); background: none; color: var(--ink); }
.srv-opt { border-radius: var(--r-m); }
.status-pill { border-radius: var(--pill); }
.drawer { box-shadow: var(--shadow-m); }
.dr-head, .dr-foot { border: 0; }
.dr-head h2 { font-size: 24px; letter-spacing: -0.01em; }
.toast { border-radius: var(--r-l); background: var(--ink); color: var(--bg); }
.toast .ic { color: var(--link); }
.done .ok-ring, .acc-ava { background: var(--panel); color: var(--ink); }
.order-no { font-family: var(--f-sans); }

/* ---------- 10. configurator: light store surfaces, plain tiles, big toggles, parts with every parameter ----------
   The board used to be dark: its --deep* tokens are mapped onto the light palette here, so base.css/app.css rules
   that read them follow along. */
.bld {
  --deep: var(--surface); --deep-line: var(--line); --on-deep: var(--ink); --on-deep-2: var(--ink-2);
  --deep-acc: var(--firuza); --on-deep-acc: #FFFFFF; --ill: var(--ink-2); --ill-accent: var(--firuza);
  border: 0; box-shadow: none; background: none; color: var(--ink); border-radius: 0;
}
.bld-head { padding: 8px 0 24px; }
.bld-head h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 700; letter-spacing: -0.015em; }
.bld .eyebrow { color: var(--new); }
.bld-main, .caps, .plat { padding-inline: 0; }
.extras { margin-inline: 0; }
.bld-foot { padding-inline: 0; border-top: 0; }
.board { border: 0; padding: 0; background: none; }
.btn-board { background: var(--firuza); color: var(--on-firuza); }
@media (hover: hover) { .btn-board:hover { background: var(--firuza-hover); } }
.btn-board-ghost { border: 0; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-s); }
@media (hover: hover) { .btn-board-ghost:hover { background: var(--panel); } }
.bld .icon-btn { color: var(--ink); }

/* platform choice */
.plat-card { border: 0; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-s); }
@media (hover: hover) { .plat-card:hover { border: 0; background: var(--surface); transform: scale(1.01); box-shadow: var(--shadow-lift); } }
.plat-lead, .plat-txt small { color: var(--ink-2); }
/* Intel / AMD logos in their own colours on a white tile */
.plat-art { align-self: stretch; display: grid; place-items: center; min-height: 112px; padding: 20px 28px; border-radius: 18px; background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--line); }
.plat-logo { display: block; width: 100%; max-width: 170px; height: auto; max-height: 64px; object-fit: contain; }
@media (max-width: 759px) { .plat-art { min-height: 72px; padding: 12px; border-radius: 14px; } .plat-logo { max-height: 36px; } }

/* parts: one row each, stacked; the part's name, then what was picked */
.slots, .bld .slots { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.slot, .slot.filled, .bld .slot {
  display: block; min-height: 0; padding: 14px 18px;
  border: 0; border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-s);
}
.slot[aria-pressed="true"] { border: 0; box-shadow: 0 0 0 2px var(--firuza); background: var(--surface); }
@media (hover: hover) { .slot:hover { border: 0; background: var(--surface); box-shadow: var(--shadow-lift); } .slot[aria-pressed="true"]:hover { box-shadow: 0 0 0 2px var(--firuza); } }
.slot-name { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.slot-name small { font-weight: 400; color: var(--ink-2); }
.slot-pick { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; line-height: 1.3; color: var(--link); white-space: normal; overflow: visible; }
.slot-opt { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; color: var(--ink-2); }

/* picker */
.pick, .caps-col, .extras { border: 0; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-s); }
.pick { padding: 24px; gap: 14px; }
.pick h3, .caps-col h3, .ex-head h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.pick-tools { gap: 10px; }
.pk-toggle {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 980px;
  background: var(--panel); color: var(--ink); font-size: 16px; font-weight: 500; transition: background-color 200ms ease, color 200ms ease;
}
.pk-toggle::before { content: ""; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--ink-2); flex: none; }
.pk-toggle[aria-pressed="true"] { background: var(--firuza); color: var(--on-firuza); }
.pk-toggle[aria-pressed="true"]::before { box-shadow: inset 0 0 0 5px var(--on-firuza); }
@media (hover: hover) { .pk-toggle:hover { background: var(--panel-2); } .pk-toggle[aria-pressed="true"]:hover { background: var(--firuza-hover); } }
.bld .chip { height: 36px; padding: 0 16px; border: 0; background: var(--panel); color: var(--ink); font-size: 14px; }
.bld .chip[aria-selected="true"] { background: var(--ink); color: var(--bg); }
@media (hover: hover) { .bld .chip:hover { border: 0; background: var(--panel-2); color: var(--ink); } .bld .chip[aria-selected="true"]:hover { background: var(--ink); color: var(--bg); } }
.pick-list { max-height: min(60vh, 640px); gap: 10px; }
/* an option: the pick area plus its own "Batafsil" button */
.opt { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border: 0; border-radius: 14px; background: var(--bg); color: var(--ink); }
.opt.on { box-shadow: 0 0 0 2px var(--firuza); }
.opt.bad { border: 0; opacity: .75; }
.opt-main { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 6px; border-radius: 10px; text-align: left; color: inherit; }
.opt-main[disabled] { opacity: .45; cursor: not-allowed; }
@media (hover: hover) { .opt:hover { background: var(--panel); } }
.opt-name { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.opt-specs { font-size: 13px; color: var(--ink-2); }
.opt-price { font-size: 16px; font-weight: 600; }
.opt-why { color: var(--sale); }
.opt-diff.up { color: var(--warn); }
.opt-diff.down { color: var(--ok); }
.opt-more { height: 34px; padding: 0 14px; border-radius: 980px; background: var(--surface); color: var(--link); font-size: 14px; font-weight: 500; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--line); }
@media (hover: hover) { .opt-more:hover { background: var(--firuza); color: var(--on-firuza); box-shadow: none; } }
.issue { border: 0; background: var(--bg); color: var(--ink); font-size: 14px; }
.issue.err { background: var(--sale-bg); color: var(--sale); }
.issue.warn { background: var(--warn-bg); color: var(--warn); }
.issue.ok { background: color-mix(in srgb, var(--ok) 10%, transparent); color: var(--ok); }
.issue.err .ic { color: var(--sale); }

/* power, limits and the chosen parts with all their parameters (stacked, large type) */
.caps { gap: 20px; }
.caps-col { padding: 24px; gap: 14px; }
.pw, .cap { font-size: 16px; gap: 10px; }
.pw li { color: var(--ink-2); }
.pw b, .cap b { color: var(--ink); }
.pw .pw-sum { border-top: 1px solid var(--line); color: var(--ink); }
.pw li small { font-family: var(--f-sans); font-size: 12px; }
.cap-top { color: var(--ink-2); }
.cap small { font-family: var(--f-sans); font-size: 13px; color: var(--ink-2); }
.cap .err small { color: var(--sale); }
.cap .err .bar i { background: var(--sale); }
.bar { background: var(--panel); }
/* chosen parts: a grid of small cards; each card = part, name, price, every parameter on its own line, "Batafsil" */
.caps-parts { grid-column: 1 / -1; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.caps-parts h3 { grid-column: 1 / -1; }
.bp { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--bg); }
.bp-slot { font-size: 11px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--new); }
.bp h4 { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.3; letter-spacing: -0.005em; }
.bp-price { font-size: 13px; color: var(--ink-2); }
.bp-specs { display: grid; gap: 1px; width: 100%; margin: 6px 0 8px; }
.bp-specs div { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; line-height: 1.35; }
.bp-specs dt { color: var(--ink-2); }
.bp-specs dd { margin: 0; font-weight: 500; text-align: right; }
.bp .opt-more { margin-top: auto; height: 28px; padding: 0 12px; font-size: 12px; }

/* extras: catalog-like cards under category tabs */
.extras { padding: 24px; gap: 16px; }
.ex-head p { color: var(--ink-2); font-size: 15px; }
.ex-n { background: var(--firuza); color: var(--on-firuza); }
.ex-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.ex-card { background: var(--bg); box-shadow: none; }
.ex-card.on { box-shadow: 0 0 0 2px var(--firuza); }
.ex-card .media, .ex-card .media.has-img { background: #FFFFFF; }
.ex-card .name { font-size: 16px; }
.ex-card .foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ex-card .foot .price { flex-basis: 100%; }
.ex-card .qty-step { border: 1px solid var(--line); border-radius: 980px; }
.ex-card .qty-step button { color: var(--ink); }
@media (max-width: 760px) { .ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
/* two rows per page, then "Oldingi · 1 / 4 · Keyingi" */
.ex-pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 4px; }
.ex-pager button { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 980px; background: var(--panel); color: var(--ink); font-size: 14px; }
.ex-pager button .ic { width: 16px; height: 16px; }
.ex-pager button:disabled { opacity: .4; cursor: default; }
@media (hover: hover) { .ex-pager button:not(:disabled):hover { background: var(--panel-2); } }
.ex-page { font-size: 14px; color: var(--ink-2); }
#bld-extras { scroll-margin-top: calc(var(--hdr-h) + 120px); }

/* summary bar on top, kept in view under the header: chosen parts, total and actions */
.bld-foot {
  position: sticky; top: calc(var(--hdr-h) + 8px); z-index: 20; margin: 0 0 16px; padding: 10px 16px; gap: 8px 16px;
  border-radius: 14px; background: var(--material); box-shadow: var(--shadow-s);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
/* compact: small total, regular-size buttons, short progress */
.bld-foot .bld-prog { min-width: 140px; max-width: 220px; gap: 4px; font-size: 12px; }
.bld-foot .bar { height: 4px; }
.bld-foot .bld-psu { font-size: 11px; }
.bld-foot .bld-sum { gap: 8px 12px; }
.bld-foot .bld-sum small { font-size: 11px; }
.bld-foot .bld-sum b { font-size: 17px; }
.bld-foot .btn, .bld-foot .btn-lg { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 980px; }
.bld-foot .btn .ic { width: 16px; height: 16px; }
.bld-chips { display: flex; flex-wrap: wrap; gap: 6px; flex-basis: 100%; margin: 0; padding: 0; list-style: none; }
.bchip { height: 26px; padding: 0 10px; border-radius: 980px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.bchip.on { background: var(--firuza); color: var(--on-firuza); }
.bchip.need { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--warn); }
.bchip.opt { background: var(--panel); color: var(--ink-2); }
.bchip[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) { .bchip.on:hover { background: var(--firuza-hover); } .bchip.need:hover, .bchip.opt:hover { background: var(--panel-2); } }
#pick { scroll-margin-top: calc(var(--hdr-h) + 120px); }
@media (max-width: 759px) {
  .bld-foot { position: static; }   /* on phones the bar would cover half the screen */
  #pick { scroll-margin-top: calc(var(--hdr-h) + 12px); }
}
.bld-prog, .bld-sum small { color: var(--ink-2); }
.bld-psu { color: var(--ink-2); font-family: var(--f-sans); }

/* ---------- cart: assembled PCs, warranty pickers, product details in the drawer ---------- */
.cb { padding: 18px; margin: 12px 0; border-radius: 18px; background: var(--bg); }
.cb-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cb-head h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.cb-parts { display: grid; gap: 8px; margin: 12px 0; }
.cb-parts li { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 10px; font-size: 14px; }
.cb-parts li .ci-warn { grid-column: 2; margin: 0; }
.cb-thumb { width: 40px; height: 40px; border-radius: 8px; background: #FFFFFF; display: grid; place-items: center; overflow: hidden; }
.cb-thumb .pimg { padding: 3px; }
.cb-thumb svg { width: 26px; height: 26px; }
.cb-unit { font-size: 14px; color: var(--ink-2); }
.cb .ci-row { flex-wrap: wrap; }
.wsel { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.cb .wsel { margin-top: 0; }
.wsel select { height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 980px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; }
.wsel select:focus-visible { outline: 2px solid var(--firuza); outline-offset: 2px; }
.co-pc .co-parts { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-3); }
.qv { display: grid; gap: 10px; }
.qv .pd-main { aspect-ratio: 4 / 3; border-radius: 18px; background: #FFFFFF; }
.qv-name { font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.qv .price { font-size: 21px; }
.qv .specs-t td { font-family: var(--f-sans); }

/* ---------- 11. phone tab bar: translucent, flat build button ---------- */
@media (max-width: 759px) {
  :root { --hdr-h: 100px; }
  .tabbar { box-shadow: none; border-top: 0; }
  .tab { font-size: 10px; }
  .tab[aria-current="page"] { color: var(--ink); }
  .tab-build { color: var(--link) !important; }
  .tab-build .ic, .tab.tab-build .ic { background: var(--firuza); box-shadow: 0 0 0 4px var(--bg); }
  .sec-head h2 { font-size: 28px; }
  .cats, .cats[class] { gap: 10px 24px; }
}
@media (max-width: 380px) {
  .card { padding: 0; }
  .card .body { padding: 10px 12px 12px 14px; }
}

/* ---------- catalog bar: price and in-stock filters next to the sort ---------- */
.cv-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-left: auto; }
.cv-quick + .sort { margin-left: 0; }
.cv-quick .f-price { gap: 8px; }
.cv-quick .f-label { font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.cv-quick .f-price input { flex: none; width: 112px; height: 40px; border-radius: var(--pill); padding: 0 14px; }
.stock-chip { height: 40px; padding: 0 16px 0 12px; gap: 8px; border-radius: var(--pill); background: var(--surface); color: var(--ink); font-size: 14px; white-space: nowrap; }
.stock-chip input { width: 18px; height: 18px; margin: 0; accent-color: var(--firuza); }
.stock-chip:has(input:checked) { box-shadow: 0 0 0 2px var(--firuza); }
.stock-chip:has(input:focus-visible) { outline: 2px solid var(--firuza); outline-offset: 3px; }
.sort select { border-radius: var(--pill); padding: 0 14px; }
@media (max-width: 860px) {
  .cv-quick { margin-left: 0; width: 100%; }
  .cv-quick .f-price { flex: 1 1 auto; }
  .cv-quick .f-price input { flex: 1 1 0; width: 0; min-width: 0; }
}
@media (max-width: 560px) { .cv-quick .f-label { display: none; } }
/* account after payment: the support code stands out so the buyer can read it out */
.acc-fail p + p { margin-top: 6px; }
.acc-code b { font-size: 17px; letter-spacing: .06em; color: var(--ink); }
.acc-fail a { color: var(--link); }

/* soft blurred edges: carousel cards and slider photos ease in and out at the sides instead of appearing at a hard edge
   (a backdrop blur that fades out towards the middle, plus a light wash of the page colour on the carousels) */
.mq { position: relative; }
.mq::before, .mq::after {
  content: ""; position: absolute; top: 0; bottom: 0; z-index: 2; width: clamp(28px, 6vw, 96px); pointer-events: none;
  background: linear-gradient(to right, color-mix(in srgb, var(--bg) 70%, transparent), transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  -webkit-mask-image: linear-gradient(to right, #000 20%, transparent); mask-image: linear-gradient(to right, #000 20%, transparent);
}
.mq::before { left: 0; }
.mq::after { right: 0; transform: scaleX(-1); }
.sol-stage::before, .sol-stage::after {
  content: ""; position: absolute; top: 0; bottom: 0; z-index: 2; width: clamp(24px, 4vw, 64px); pointer-events: none;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  -webkit-mask-image: linear-gradient(to right, #000, transparent); mask-image: linear-gradient(to right, #000, transparent);
}
.sol-stage::before { left: 0; }
.sol-stage::after { right: 0; transform: scaleX(-1); }
.sol-copy { z-index: 3; }
.sol-arrow { z-index: 4; }
@media (prefers-reduced-transparency: reduce) {
  .mq::before, .mq::after, .sol-stage::before, .sol-stage::after { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
