/* ==========================================================================
   Abdul Store · STYLES
   One file, in this order:
    1. Fonts & tokens        6. Home            11. Cart & checkout
    2. Base & type           7. Product cards   12. Content pages
    3. Buttons & icons       8. Shop            13. Overlays
    4. Header & footer       9. Product page    14. Admin
    5. Page transitions     10. Categories      15. Responsive & motion prefs
   Glass (backdrop blur) is used only on the sticky header.
   Animations use transform and opacity.
   ========================================================================== */

/* ---------- 1. Fonts & tokens ---------- */
@font-face { font-family: "Fira Sans"; font-weight: 300; font-style: normal; font-display: swap; src: url("../assets/fonts/fira-sans-light.woff") format("woff"); }
@font-face { font-family: "Fira Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../assets/fonts/fira-sans-regular.woff") format("woff"); }
@font-face { font-family: "Fira Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../assets/fonts/fira-sans-semibold.woff") format("woff"); }

:root {
  --bg: #F5F7FB;
  --white: #FFFFFF;
  --navy: #172B4D;
  --navy-2: #22396A;
  --text: #202938;
  --muted: #5A6577;
  --accent: #5278C7;
  --accent-ink: #3E62AE;
  --stage: #EAEFF6;          /* product photo background */
  --tint: #DCE5F0;
  --line: #E1E7F0;
  --line-strong: #C9D3E1;
  --ok: #1F7A55;
  --warn: #9A6200;
  --bad: #B3261E;
  --wa: #1F7A55;

  --font: "Fira Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --container: 1200px;
  --gutter: clamp(18px, 4vw, 36px);
  --header-h: 64px;
  --shadow-float: 0 24px 60px -24px rgba(23, 43, 77, 0.35);
}

/* ---------- 2. Base & type ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); } /* keeps focused elements clear of the sticky header */
html.no-scroll { overflow: hidden; }
body { margin: 0; min-height: 100vh; color: var(--text); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-color: rgba(62, 98, 174, 0.35); }
a:hover { text-decoration-color: currentColor; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--tint); color: var(--navy); }
[id] { scroll-margin-top: calc(var(--header-h) + 24px); }
code { font: 0.88em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--stage); padding: 0.1em 0.35em; border-radius: 5px; color: var(--navy); }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-top: clamp(64px, 9vw, 112px); }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--r-s); background: var(--navy); color: #fff; font-weight: 600; text-decoration: none; transition: transform 0.2s var(--ease); }
.skip-link:focus { transform: translateY(72px); }

h1, h2, h3, h4 { margin: 0 0 0.5em; color: var(--navy); line-height: 1.15; }
.display { font-size: clamp(2.5rem, 5.2vw, 4.25rem); font-weight: 300; line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 0.45em; }
.h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 300; letter-spacing: -0.025em; line-height: 1.05; }
.h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 300; letter-spacing: -0.02em; }
.h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.005em; }
.h4 { font-size: 1rem; font-weight: 600; }
.lead { font-size: 1.125rem; color: #3D4859; max-width: 58ch; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.eyebrow { margin: 0 0 0.4rem; font-size: 0.875rem; font-weight: 600; color: var(--accent-ink); }
.mono, .mono-ref { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.02em; }
.price { font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-lg { font-size: 1.4rem; }
.price-xl { font-size: 1.85rem; font-weight: 400; margin: 0; }
.demo-badge { display: inline-block; vertical-align: middle; padding: 1px 7px; border-radius: 5px; font-size: 0.7rem; font-weight: 600; line-height: 1.5; letter-spacing: 0.02em; color: var(--accent-ink); background: rgba(82, 120, 199, 0.12); }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.06em; padding: 2px 8px; border: 1px dashed currentColor; border-radius: 6px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; text-decoration: none; }
.text-link .icon { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }

.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 24px; }
.section-head .h2 { margin: 0; }
.page-head { padding-top: 36px; padding-bottom: 8px; }
.page-head .h1 { margin-bottom: 0.3em; }
.page-head .lead { margin: 0; }
.breadcrumbs { margin-bottom: 14px; font-size: 0.875rem; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.breadcrumbs a { text-decoration: none; }
.crumbs-top { padding-top: 26px; }

/* Product photo stage: photos on white blend into one consistent tone */
.stage { background: var(--stage); }
.stage img, .pc-img img, .cat-img img, .mini-thumb img, .cart-thumb img, .search-hit img, .quick-media img, .thumb img, .admin-prod img { object-fit: contain; mix-blend-mode: multiply; }
img.is-broken { visibility: hidden; }
[data-img-missing] { position: relative; }
[data-img-missing]::after { content: "Image unavailable"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 0.8rem; color: var(--muted); }
.img-placeholder { display: grid; place-items: center; width: 100%; height: 100%; min-height: 80px; color: var(--muted); font-size: 0.85rem; }

/* ---------- 3. Buttons & icons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border: 1px solid transparent; border-radius: var(--r-s); font-weight: 600; font-size: 0.95rem; text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.btn:active:not(:disabled) { transform: scale(0.97); transition-duration: 0.08s; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--navy-2); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--navy); }
.btn-ghost:hover:not(:disabled) { border-color: var(--navy); background: rgba(255, 255, 255, 0.6); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover:not(:disabled) { background: var(--tint); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover:not(:disabled) { background: #19684A; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 0.875rem; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-grow { flex: 1 1 auto; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn-row.center { justify-content: center; }
.btn.is-added { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.is-added, .btn.is-confirm { animation: pop 0.35s var(--ease); }
.btn.is-loading { pointer-events: none; }
.link-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--accent-ink); font-weight: 600; font-size: 0.9rem; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(62, 98, 174, 0.35); transition: text-decoration-color 0.2s; }
.link-btn:hover { text-decoration-color: currentColor; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; }

.icon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 40px; height: 40px; stroke-width: 1.3; color: var(--accent); }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: transparent; color: var(--navy); text-decoration: none; transition: background-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.icon-btn:hover { background: rgba(23, 43, 77, 0.06); }
.icon-btn:active { transform: scale(0.9); transition-duration: 0.08s; }
.icon-btn-sm { width: 38px; height: 38px; }
.icon-btn-lg { width: 52px; height: 52px; border: 1px solid var(--line-strong); }
.icon-btn[aria-pressed="true"] { color: var(--bad); }
.icon-btn[aria-pressed="true"] .icon { fill: currentColor; }
.icon-btn.is-popping .icon, .cart-btn.is-pulse .icon { animation: pop 0.35s var(--ease); }
.count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; }
.count.bump { animation: pop 0.35s var(--ease); }

/* ---------- 4. Header & footer ---------- */
.announce { margin: 0; padding: 7px var(--gutter); background: var(--navy); color: #DCE5F0; font-size: 0.82rem; text-align: center; }
.announce strong { color: #fff; }
.site-header {
  position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgba(201, 211, 225, 0.6);
  background: rgba(245, 247, 251, 0.82); -webkit-backdrop-filter: blur(12px) saturate(150%); backdrop-filter: blur(12px) saturate(150%);
}
.header-bar { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; }
.brand-logo { width: 36px; height: 36px; border-radius: 9px; }
.brand-name { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.015em; }
.main-nav { position: relative; margin-left: auto; }
.main-nav > ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.main-nav > ul > li > a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: #3D4859; font-size: 0.95rem; text-decoration: none; transition: color 0.2s; }
.main-nav > ul > li > a:hover, .main-nav a[aria-current="page"] { color: var(--navy); }
.main-nav a[aria-current="page"] { font-weight: 600; }
.nav-indicator { position: absolute; left: 0; bottom: 6px; width: 100px; height: 2px; border-radius: 1px; background: var(--accent); transform-origin: left; opacity: 0; pointer-events: none; transition: transform 0.35s var(--ease), opacity 0.2s; }
.nav-indicator.is-on { opacity: 1; }
.nav-indicator.no-anim { transition: none; }
.has-drop { position: relative; display: flex; align-items: center; }
.has-drop > a { padding-right: 2px !important; }
.drop-toggle { display: grid; place-items: center; width: 28px; height: 36px; border: 0; border-radius: 6px; background: none; color: var(--muted); }
.drop-toggle:hover { color: var(--navy); }
.drop-toggle .icon { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.has-drop.is-open .drop-toggle .icon { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 210px; padding: 6px; border: 1px solid var(--line); border-radius: var(--r-m);
  background: #fff; box-shadow: var(--shadow-float);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.18s, transform 0.25s var(--ease), visibility 0s linear 0.25s;
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.has-drop.is-open .dropdown { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.dropdown ul { margin: 0; padding: 0; list-style: none; }
.dropdown a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--r-s); color: var(--navy); text-decoration: none; transition: background-color 0.15s; }
.dropdown a:hover, .dropdown a:focus-visible { background: var(--bg); }
.drop-all { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.drop-all a { color: var(--accent-ink); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 2px; }
.menu-btn { display: none; }

.site-footer { margin-top: clamp(80px, 10vw, 128px); padding: 56px 0 24px; background: var(--navy); color: #B9C5D9; }
.site-footer .brand, .site-footer .footer-h { color: #fff; }
.site-footer .brand-logo { width: 40px; height: 40px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-brand > p { max-width: 32ch; margin: 14px 0 10px; }
.footer-contact { display: flex; flex-direction: column; align-items: flex-start; }
.footer-contact a, .contact-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; color: #E6ECF5; text-decoration: none; font-size: 0.95rem; }
.footer-contact a:hover, button.contact-link:hover { color: #fff; text-decoration: underline; }
.site-footer .demo-badge { color: #fff; background: rgba(255, 255, 255, 0.14); }
.footer-h { margin-bottom: 12px; font-size: 0.95rem; font-weight: 600; }
.site-footer ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.site-footer nav a { display: inline-flex; min-height: 36px; align-items: center; color: #B9C5D9; text-decoration: none; }
.site-footer nav a:hover { color: #fff; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.85rem; color: #93A2BC; }
.footer-base p { margin: 0; }
.footer-base a { color: #DCE5F0; }

/* ---------- 5. Page transitions (one system) ----------
   Supported browsers: cross-document View Transitions, no JS.
   Others (html.pt): fade/slide in on load; main.js fades out before leaving.
   Total visible change ≈ 320 ms. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.18s cubic-bezier(0.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-in 0.32s var(--ease) both; }
::view-transition-group(nav-indicator) { animation-duration: 0.32s; animation-timing-function: var(--ease); }
.site-header { view-transition-name: site-header; }
.announce { view-transition-name: announce; }
.nav-indicator { view-transition-name: nav-indicator; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }
.pt main, .pt .site-footer { animation: vt-in 0.32s var(--ease) both; }
.pt.is-leaving main, .pt.is-leaving .site-footer { opacity: 0; transform: translateY(-6px); transition: opacity 0.15s ease-in, transform 0.15s ease-in; }

/* Scroll reveal: only for content below the fold at load */
[data-reveal] { transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.reveal-ready [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(14px); }
.reveal-ready .product-grid > [data-reveal]:nth-child(4n + 2):not(.is-in), .reveal-ready .steps > :nth-child(2):not(.is-in) { transition-delay: 60ms; }
.reveal-ready .product-grid > [data-reveal]:nth-child(4n + 3):not(.is-in), .reveal-ready .steps > :nth-child(3):not(.is-in) { transition-delay: 120ms; }
.reveal-ready .product-grid > [data-reveal]:nth-child(4n + 4):not(.is-in), .reveal-ready .steps > :nth-child(4):not(.is-in) { transition-delay: 180ms; }

@keyframes pop { 40% { transform: scale(1.12); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(6px); } }

/* ---------- 6. Home ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: clamp(28px, 4vw, 48px); }
.hero .lead { margin-bottom: 0; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 6px 0; margin: 28px 0 0; padding: 0; list-style: none; font-size: 0.9rem; color: var(--muted); }
.hero-facts li + li::before { content: ""; display: inline-block; width: 1px; height: 12px; margin: 0 14px; vertical-align: -1px; background: var(--line-strong); }
.hero-stage { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 0.92; border-radius: var(--r-l); overflow: hidden; text-decoration: none; }
.hero-stage img { width: 78%; height: 78%; transition: transform 0.6s var(--ease); }
.hero-stage:hover img { transform: scale(1.03); }
.hero-caption { position: absolute; left: 24px; right: 24px; bottom: 20px; display: flex; justify-content: space-between; gap: 12px; color: var(--navy); font-weight: 600; }

.cat-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(200px, auto)); gap: 14px; }
.cat-tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 22px; border-radius: var(--r-m); color: var(--navy); text-decoration: none; }
.cat-tile-text { position: relative; z-index: 1; display: flex; flex-direction: column; }
.cat-name { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
.cat-meta { font-size: 0.875rem; color: var(--muted); }
.cat-img { display: grid; place-items: center; flex: 1; min-height: 0; padding-top: 10px; }
.cat-img img { width: 100%; height: 100%; max-height: 190px; transition: transform 0.5s var(--ease); }
.cat-tile:hover .cat-img img { transform: translateY(-4px) scale(1.03); }
.tile-audio { grid-column: 1 / 3; grid-row: 1 / 3; background: var(--stage); }
.tile-audio .cat-img img { max-height: 360px; }
.tile-wear { grid-column: 3; grid-row: 1 / 3; background: #fff; border: 1px solid var(--line); }
.tile-wear .cat-img img { max-height: 300px; }
.tile-desk { grid-column: 4; grid-row: 1; background: var(--tint); }
.tile-acc { grid-column: 4; grid-row: 2; background: var(--stage); }
.tile-desk .cat-img img, .tile-acc .cat-img img { max-height: 120px; }

.promo-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 26px 30px; border-radius: var(--r-m); background: var(--navy); color: #DCE5F0; }
.promo-band p { margin: 0; font-size: 1.05rem; }
.promo-band strong { color: #fff; }
.promo-band .code { color: #fff; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: 24px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { padding-top: 18px; border-top: 1px solid var(--line-strong); counter-increment: step; }
.steps li::before { content: counter(step); display: block; margin-bottom: 10px; font-size: 0.875rem; font-weight: 600; color: var(--accent-ink); }
.steps h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.help-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding: 28px 30px; border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; }
.help-strip p { margin: 0; color: var(--muted); }
.help-strip .h3 { margin-bottom: 4px; }
.help-strip .btn-row { margin: 0; }

/* ---------- 7. Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 36px 20px; }
.product-card { display: flex; flex-direction: column; min-width: 0; }
.pc-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--r-m); background: var(--stage); }
.pc-img { display: grid; place-items: center; width: 100%; height: 100%; padding: 13%; }
.pc-img img { width: 100%; height: 100%; transition: transform 0.5s var(--ease); }
.product-card:hover .pc-img img { transform: scale(1.05); }
.pc-flag { position: absolute; top: 12px; left: 12px; padding: 3px 9px; border-radius: 6px; background: #fff; color: var(--bad); font-size: 0.75rem; font-weight: 600; }
.pc-tools { position: absolute; top: 8px; right: 8px; display: flex; flex-direction: column; gap: 6px; }
.pc-tools .icon-btn { background: rgba(255, 255, 255, 0.9); }
.pc-tools .icon-btn:hover { background: #fff; }
.pc-tools [data-action="quick"] { opacity: 0; transform: translateY(-4px); transition: opacity 0.2s, transform 0.25s var(--ease), background-color 0.2s; }
.product-card:hover [data-action="quick"], .pc-tools [data-action="quick"]:focus-visible { opacity: 1; transform: none; }
.pc-body { display: flex; flex-direction: column; flex: 1; padding-top: 14px; }
.pc-cat { margin: 0 0 2px; font-size: 0.8rem; color: var(--muted); }
.pc-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; font-size: 1.02rem; font-weight: 600; }
.pc-title a { color: var(--navy); text-decoration: none; }
.pc-title a:hover { text-decoration: underline; }
.pc-desc { margin: 6px 0 0; font-size: 0.875rem; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stock { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 0.82rem; font-weight: 600; }
.stock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.stock.in { color: var(--ok); }
.stock.low { color: var(--warn); }
.stock.out { color: var(--bad); }
.pc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 14px; }

/* ---------- 8. Shop ---------- */
.shop-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 18px; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); display: grid; }
.filter-block { margin: 0; padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); }
.filter-block:first-child { padding-top: 0; }
.filter-h { display: block; margin-bottom: 8px; padding: 0; font-size: 0.875rem; font-weight: 600; color: var(--navy); }
#f-cats .check span { margin-left: auto; }
.range { width: 100%; accent-color: var(--navy); }
.range-row { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--muted); }
.shop-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.shop-bar p { margin: 0; }
.shop-bar .select { width: auto; min-width: 200px; }
.filters-toggle { display: none; }

/* ---------- 9. Product page ---------- */
.pd { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 12px; }
.gallery-main { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--r-l); cursor: zoom-in; }
#main-img { display: grid; place-items: center; width: 100%; height: 100%; padding: 10%; transition: opacity 0.14s; }
#main-img.is-swapping { opacity: 0; }
#main-img img { width: 100%; height: 100%; }
.zoom-img { transition: transform 0.35s var(--ease); }
.gallery-main.is-zooming .zoom-img { transform: scale(1.8); }
.zoom-btn { position: absolute; right: 14px; bottom: 14px; background: #fff; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 88px)); gap: 10px; }
.thumb { aspect-ratio: 1; padding: 8px; border: 1px solid transparent; border-radius: var(--r-s); background: var(--stage); transition: border-color 0.2s; }
.thumb img { width: 100%; height: 100%; }
.thumb[aria-pressed="true"] { border-color: var(--navy); }
.pd-info { display: flex; flex-direction: column; gap: 16px; padding-top: 8px; }
.pd-info .eyebrow { margin: 0; }
.pd-title { margin: 0; }
.pd-price-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.pd-price-row .stock { margin: 0; }
.demo-note { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); }
.demo-note .icon { width: 16px; height: 16px; }
.pd-desc { margin: 0; color: #3D4859; }
.field-group { margin: 0; padding: 0; border: 0; }
.field-group legend { margin-bottom: 10px; padding: 0; font-size: 0.9rem; font-weight: 600; color: var(--navy); }
.swatch-row, .pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 40px; height: 40px; padding: 0; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px var(--line-strong); transition: box-shadow 0.2s, transform 0.15s var(--ease); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--navy); }
.pill { min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--r-s); background: #fff; color: var(--navy); transition: border-color 0.2s, background-color 0.2s, transform 0.15s var(--ease); }
.pill:hover { border-color: var(--navy); }
.pill[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: #fff; }
.pill.is-out { color: var(--muted); text-decoration: line-through; }
.pill:active, .swatch:active { transform: scale(0.95); }
.buy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.buy-row .btn-primary { min-height: 52px; }
.pd-info .btn-row { margin-top: 0; }
.pd-perks { display: grid; gap: 10px; margin: 4px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 0.92rem; color: #3D4859; }
.pd-perks li { display: flex; gap: 12px; }
.pd-perks .icon { margin-top: 2px; color: var(--accent); }
.pd-perks strong { margin-right: 4px; color: var(--navy); }
.pd-tabs { margin-top: clamp(40px, 6vw, 72px); }
.tablist { display: flex; gap: 4px; margin-bottom: 20px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.tablist [role="tab"] { min-height: 50px; margin-bottom: -1px; padding: 0 16px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font-weight: 600; white-space: nowrap; transition: color 0.2s, border-color 0.2s; }
.tablist [role="tab"][aria-selected="true"] { border-bottom-color: var(--navy); color: var(--navy); }
[role="tabpanel"]:not([hidden]) { animation: fade-up 0.25s var(--ease); }
.spec-table { width: 100%; max-width: 760px; border-collapse: collapse; }
.spec-table caption { padding-bottom: 10px; text-align: left; font-size: 0.85rem; color: var(--muted); }
.spec-table th, .spec-table td { padding: 13px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { width: 38%; padding-right: 16px; font-weight: 400; color: var(--muted); }
.spec-table td { color: var(--navy); }

/* ---------- 10. Categories page ---------- */
.cat-list { display: grid; gap: clamp(36px, 6vw, 72px); margin-top: 24px; }
.cat-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.cat-row:nth-child(even) .cat-row-media { order: 2; }
.cat-row-media { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 9%; border-radius: var(--r-l); background: var(--stage); }
.cat-row-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform 0.5s var(--ease); }
.cat-row:hover .cat-row-media img { transform: scale(1.03); }
.cat-row-body .h2 a { color: var(--navy); text-decoration: none; }
.cat-row-body .btn { margin-top: 6px; }
.mini-list { display: grid; margin: 10px 0 18px; padding: 0; list-style: none; }
.mini-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mini-list a { color: var(--text); text-decoration: none; }
.mini-list a:hover { color: var(--accent-ink); text-decoration: underline; }

/* ---------- 11. Forms, cart & checkout ---------- */
.panel { padding: clamp(20px, 3vw, 28px); border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; }
.input, .select { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r-s); background: #fff; color: var(--text); transition: border-color 0.2s, box-shadow 0.2s; }
textarea.input { min-height: 110px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.select { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px; background-repeat: no-repeat; }
.input::placeholder { color: #8892A2; }
.input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(82, 120, 199, 0.18); }
.input[aria-invalid="true"] { border-color: var(--bad); }
.label { display: block; margin-bottom: 6px; font-size: 0.9rem; font-weight: 600; color: var(--navy); }
.req { color: var(--bad); }
.field-error { margin: 6px 0 0; font-size: 0.85rem; color: var(--bad); animation: fade-up 0.2s var(--ease); }
.field-error:empty { display: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field.full { grid-column: 1 / -1; }
.field .small { margin: 6px 0 0; }
.check { display: flex; align-items: flex-start; gap: 10px; min-height: 40px; padding: 6px 0; cursor: pointer; }
.check input { flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--navy); }
.form-msg { margin: 10px 0 0; font-size: 0.92rem; }
.form-msg:empty { display: none; }
.form-msg.ok { color: var(--ok); }
.form-msg.info { color: var(--accent-ink); }
.form-msg.error, #checkout-msg { color: var(--bad); }
.notice { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 16px; padding: 14px 16px; border-radius: var(--r-s); background: rgba(220, 229, 240, 0.6); color: #33405A; font-size: 0.94rem; }
.notice .icon { margin-top: 2px; color: var(--accent); }
.notice.ok { background: rgba(31, 122, 85, 0.08); }
.notice.ok .icon { color: var(--ok); }
.notice:empty { display: none; }

.choices { display: grid; gap: 10px; }
.choice, .pay-option { display: flex; align-items: center; gap: 14px; padding: 15px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-s); background: #fff; cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
.choice:hover, .pay-option:not(.is-soon):hover { border-color: var(--navy); }
.choice:has(input:checked), .pay-option:has(input:checked) { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.choice input, .pay-option input { flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--navy); }
.choice-body { display: flex; flex: 1; flex-direction: column; }
.choice-body strong { color: var(--navy); }
.pay-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pay-icon { display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; border-radius: var(--r-s); background: var(--bg); color: var(--navy); }
.pay-wa .pay-icon { color: var(--wa); }
.pay-option.is-soon { grid-column: 1 / -1; border-style: dashed; background: var(--bg); color: var(--muted); cursor: not-allowed; }
.pay-option.is-soon strong { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #4A5568; }
.soon-badge { padding: 1px 8px; border-radius: 5px; background: var(--tint); color: var(--navy); font-size: 0.72rem; font-weight: 600; }
.pay-brands { display: flex; gap: 4px; }
.pay-brands span { padding: 2px 5px; border: 1px solid var(--line-strong); border-radius: 4px; background: #fff; font-size: 0.62rem; font-weight: 600; color: #8A95A6; }
.pay-panel { margin-top: 14px; padding: 16px; border-radius: var(--r-s); background: var(--bg); animation: fade-up 0.25s var(--ease); }
.pay-panel[hidden] { display: none; }
.pay-panel p:last-child { margin-bottom: 0; }
.steps-list { display: grid; gap: 4px; margin: 8px 0 0; padding-left: 1.2rem; color: #3D4859; }
.bank-card { padding: 16px; border-radius: var(--r-s); background: #fff; }
.bank-card .h4 { margin-bottom: 8px; }
.bank-pending { display: flex; align-items: flex-start; gap: 14px; }
.bank-pending > .icon { width: 24px; height: 24px; margin-top: 2px; color: var(--accent); }
.bank-pending p { margin: 0; }
.place-block { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.place-block .btn { margin-top: 6px; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-s); background: #fff; }
.qty button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: var(--r-s); background: none; color: var(--navy); transition: background-color 0.15s, transform 0.12s var(--ease); }
.qty button:hover { background: var(--bg); }
.qty button:active { transform: scale(0.88); }
.qty button .icon { width: 16px; height: 16px; }
.qty span { min-width: 26px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.qty-lg button { width: 48px; height: 50px; }
.promo-form { display: flex; gap: 8px; margin: 14px 0 6px; }
.promo-form .input { min-height: 40px; text-transform: uppercase; }
.summary { display: grid; gap: 8px; margin: 14px 0; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.95rem; color: #3D4859; }
.sum-row span:last-child { font-variant-numeric: tabular-nums; }
.sum-row.accent { color: var(--ok); }
.sum-row.total { padding-top: 10px; border-top: 1px solid var(--line); color: var(--navy); font-size: 1.15rem; font-weight: 600; }
.ship-bar p { margin: 0 0 8px; }
.progress { height: 4px; overflow: hidden; border-radius: 2px; background: var(--tint); }
.progress span { display: block; width: 100%; height: 100%; background: var(--navy); transform-origin: left; transition: transform 0.5s var(--ease); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; margin-top: 18px; }
.summary-panel { position: sticky; top: calc(var(--header-h) + 20px); }
.summary-panel .btn + .btn { margin-top: 10px; }
.checkout-main { display: grid; gap: 16px; min-width: 0; }
.step { margin: 0; }
.step-legend { float: left; width: 100%; display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 0; font-size: 1.1rem; font-weight: 600; color: var(--navy); }
.step-legend + * { clear: both; }
.step-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 0.85rem; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; color: var(--navy); }
.mini-lines { display: grid; gap: 12px; margin: 14px 0 6px; padding: 0; list-style: none; }
.mini-lines li { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 12px; }
.mini-lines li > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.mini-thumb { display: grid; place-items: center; width: 56px; height: 56px; padding: 5px; border-radius: var(--r-s); background: var(--stage); }
.mini-thumb img { width: 100%; height: 100%; }

.cart-lines { margin: 12px 0 0; padding: 0; list-style: none; }
.cart-line { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { display: grid; place-items: center; flex-shrink: 0; width: 80px; height: 80px; padding: 8px; border-radius: var(--r-s); background: var(--stage); }
.cart-thumb img { width: 100%; height: 100%; }
.cart-lines-lg .cart-thumb { width: 104px; height: 104px; }
.cart-info { display: flex; flex: 1; flex-direction: column; gap: 6px; min-width: 0; }
.cart-info p { margin: 0; }
.cart-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cart-name { color: var(--navy); font-weight: 600; text-decoration: none; }
.cart-name:hover { text-decoration: underline; }

.confirm { max-width: 820px; margin: 28px auto 0; text-align: center; }
.confirm .lead { margin-inline: auto; }
.confirm-logo { width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 13px; }
.confirm-mark { width: 60px; height: 60px; margin: 0 auto 10px; fill: none; stroke: var(--ok); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.confirm-mark circle, .confirm-mark path { stroke-dasharray: 200; stroke-dashoffset: 200; animation: draw 0.8s var(--ease) 0.2s forwards; }
.confirm-mark path { animation-delay: 0.5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.confirm-wa-mark { margin: 0 auto 10px; }
.confirm-ref { margin: 0 0 4px; color: var(--muted); }
.confirm-ref strong { margin-left: 6px; font-size: 1.1rem; color: var(--navy); }
.confirm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); text-align: left; }
.confirm-grid .dl { margin-top: 8px; }
.confirm-demo { margin: 18px 0 0; }
.plain { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }

.empty-state { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 48px 20px; text-align: center; }
.empty-state h1, .empty-state h2, .empty-state h3 { margin: 10px 0 0; }
.empty-state .btn { margin-top: 12px; }
.empty-state.wide { grid-column: 1 / -1; }

/* ---------- 12. Content pages ---------- */
.prose { max-width: 720px; }
.prose h2 { margin-top: 2rem; font-size: 1.5rem; font-weight: 300; letter-spacing: -0.015em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #3D4859; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.policy { margin-top: 24px; }
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; margin-top: 28px; }
.about-media { display: grid; place-items: center; aspect-ratio: 1; padding: 10%; border-radius: var(--r-l); }
.about-media img { width: 100%; height: 100%; }
.rule-list { margin: 0; padding: 0 !important; list-style: none; }
.rule-list li { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.owner-note { margin-top: 28px; padding: 16px 18px; border: 1px dashed var(--line-strong); border-radius: var(--r-s); font-size: 0.92rem; }
.owner-note p { margin: 0; }
.service-list { max-width: 900px; margin: 28px 0 0; }
.service-list > div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 8px 32px; padding: 22px 0; border-top: 1px solid var(--line); }
.service-list > div:last-child { border-bottom: 1px solid var(--line); }
.service-list dt { font-weight: 600; color: var(--navy); }
.service-list dd { margin: 0; color: #3D4859; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 64px); align-items: start; margin-top: 28px; }
.contact-methods { margin: 0 0 32px; padding: 0; list-style: none; }
.contact-methods li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-methods li:first-child { padding-top: 0; }
.contact-methods > li > .icon { margin-top: 2px; color: var(--accent); }
.contact-methods .h4 { margin: 0 0 2px; }
.contact-value { margin: 0; color: var(--text); }
.contact-methods .link-btn { min-height: 36px; }
.faq-title { margin-bottom: 4px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; min-height: 44px; padding: 16px 36px 16px 0; color: var(--navy); font-weight: 600; list-style: none; cursor: pointer; transition: color 0.2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-ink); }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 8px; height: 8px; border-right: 1.7px solid currentColor; border-bottom: 1.7px solid currentColor; transform: translateY(-70%) rotate(45deg); transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 16px; color: #3D4859; }
.faq details[open] > div { animation: fade-up 0.25s var(--ease); }
.faq details > div p { margin: 0; }
.faq-page { max-width: 760px; margin-top: 20px; border-top: 1px solid var(--line); }
.faq-more { margin-top: 22px; }
.contact-form .h3 { margin-bottom: 16px; }
.error-page { padding-top: clamp(48px, 10vw, 120px); }
.error-code { margin: 0; font-size: clamp(4.5rem, 14vw, 8rem); font-weight: 300; line-height: 1; letter-spacing: -0.04em; color: var(--tint); }

/* ---------- 13. Overlays ---------- */
.overlay { position: fixed; inset: 0; z-index: 80; }
.overlay[hidden] { display: none; }
.scrim { position: absolute; inset: 0; background: rgba(23, 43, 77, 0.3); opacity: 0; transition: opacity 0.28s; }
.overlay.is-open .scrim { opacity: 1; }
/* Overlay surfaces are solid: a blur behind a moving full-height drawer costs
   frames on mid-range phones (measured), and at 90%+ opacity it isn't visible. */
.glass { background: #fff; box-shadow: var(--shadow-float); }
.drawer { position: absolute; top: 0; bottom: 0; display: flex; flex-direction: column; width: min(420px, 100vw); transition: transform 0.34s var(--ease); }
.drawer-right { right: 0; transform: translateX(100%); }
.drawer-left { left: 0; transform: translateX(-100%); }
.overlay.is-open .drawer { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 10px; }
.drawer-title { margin: 0; font-size: 1.5rem; font-weight: 300; }
.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 20px 20px; }
.drawer-foot { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.drawer-foot .btn + .btn { margin-top: 8px; }
.drawer-head .brand-logo { width: 32px; height: 32px; }
.mobile-nav ul { display: grid; margin: 0; padding: 0 10px; list-style: none; }
.mobile-nav li { opacity: 0; transform: translateX(-10px); transition: opacity 0.25s, transform 0.3s var(--ease); transition-delay: calc(var(--i, 0) * 30ms + 60ms); }
.overlay.is-open .mobile-nav li { opacity: 1; transform: none; }
.mobile-nav a { display: flex; align-items: center; min-height: 52px; padding: 0 12px; border-radius: var(--r-s); color: var(--navy); font-size: 1.4rem; font-weight: 300; text-decoration: none; }
.mobile-nav a:hover, .mobile-nav a[aria-current="page"] { background: var(--bg); }
.mobile-nav a[aria-current="page"] { font-weight: 400; }

.search-panel { position: absolute; top: 72px; left: 50%; width: min(640px, calc(100vw - 24px)); padding: 8px; border-radius: var(--r-m); opacity: 0; transform: translate(-50%, -10px); transition: opacity 0.2s, transform 0.28s var(--ease); }
.overlay.is-open .search-panel { opacity: 1; transform: translate(-50%, 0); }
.search-form { display: flex; align-items: center; gap: 10px; padding-left: 12px; }
.search-form > .icon { color: var(--muted); }
.search-form input { flex: 1; min-height: 52px; border: 0; background: none; font-size: 1.1rem; }
.search-form input:focus { outline: none; }
.search-results { max-height: 60vh; overflow-y: auto; padding: 4px 8px 10px; }
.search-results ul { display: grid; gap: 2px; margin: 0 0 6px; padding: 0; list-style: none; }
.search-hit { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 14px; padding: 6px; border-radius: var(--r-s); color: var(--navy); text-decoration: none; transition: background-color 0.15s; }
.search-hit:hover, .search-hit:focus-visible { background: var(--bg); }
.search-hit img { width: 52px; height: 52px; padding: 4px; border-radius: 8px; background: var(--stage); }
.search-hit > span:nth-child(2) { display: flex; flex-direction: column; }

.modal { position: absolute; left: 50%; top: 50%; width: min(860px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; border-radius: var(--r-l); opacity: 0; transform: translate(-50%, -47%) scale(0.98); transition: opacity 0.24s, transform 0.3s var(--ease); }
.modal-sm { width: min(480px, calc(100vw - 24px)); }
.overlay.is-open .modal { opacity: 1; transform: translate(-50%, -50%); }
.msg-body { padding: 24px; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 20px; }
.quick-media { display: grid; place-items: center; aspect-ratio: 1; padding: 10%; border-radius: var(--r-m); background: var(--stage); }
.quick-media img { width: 100%; height: 100%; }
.quick-info { display: flex; flex-direction: column; }
.quick-top { display: flex; align-items: center; justify-content: space-between; }
.quick-top .eyebrow { margin: 0; }
.quick-info .h3 { margin: 6px 0; font-size: 1.8rem; font-weight: 300; }
.quick-info .btn-row { margin-top: auto; padding-top: 12px; }
.nc { text-align: center; }
.nc-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 12px; border-radius: var(--r-m); background: var(--bg); color: var(--navy); }
.nc-icon .icon { width: 26px; height: 26px; }
.nc-wa { color: var(--wa); }
.nc p { max-width: 40ch; margin-inline: auto; }

.overlay-lightbox .scrim { background: rgba(23, 43, 77, 0.78); }
.lightbox { position: absolute; inset: 24px; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity 0.25s; }
.overlay.is-open .lightbox { opacity: 1; }
.lightbox > div { position: relative; display: grid; place-items: center; width: 100%; height: 100%; }
.lightbox img { width: auto; height: auto; max-width: min(92vw, 960px); max-height: 82vh; padding: 3%; border-radius: var(--r-m); background: #fff; object-fit: contain; pointer-events: auto; }
.lightbox .icon-btn { position: absolute; background: #fff; pointer-events: auto; }
.lb-close { top: 0; right: 0; }
.lb-prev { left: 0; top: 50%; transform: translateY(-50%); }
.lb-next { right: 0; top: 50%; transform: translateY(-50%); }

.toasts { position: fixed; left: 50%; bottom: 24px; z-index: 90; display: grid; justify-items: center; gap: 8px; width: min(92vw, 420px); transform: translateX(-50%); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: var(--r-s); background: var(--navy); color: #fff; font-size: 0.92rem; opacity: 0; transform: translateY(10px); transition: opacity 0.25s, transform 0.3s var(--ease); }
.toast.is-in { opacity: 1; transform: none; }
.toast .icon { width: 18px; height: 18px; color: #9FE0C0; }
.toast-error .icon { color: #FFD38A; }

/* ---------- 14. Admin ---------- */
.admin-banner { display: flex; align-items: flex-start; gap: 12px; margin-top: 8px; padding: 14px 16px; border-radius: var(--r-s); background: #FDF2F1; color: #5A2420; }
.admin-banner p { margin: 0; }
.admin-banner .icon { margin-top: 2px; color: var(--bad); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.stat { padding: 18px; border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; }
.stat p { margin: 0; }
.stat-v { margin-top: 6px !important; font-size: 2rem; font-weight: 300; color: var(--navy); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 36px; }
.toolbar .h3 { margin: 0; }
.toolbar .btn-row { margin: 0; }
.admin-form { margin-top: 14px; }
.table-wrap { position: relative; margin-top: 14px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; }
.table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 0.92rem; }
.table th { padding: 12px 16px; border-bottom: 1px solid var(--line-strong); text-align: left; font-size: 0.82rem; font-weight: 600; color: var(--navy); }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table .num { font-variant-numeric: tabular-nums; }
.table .actions { text-align: right; white-space: nowrap; }
.table .select { min-width: 190px; min-height: 40px; }
.admin-prod { display: flex; align-items: center; gap: 12px; }
.admin-prod img, .admin-prod .img-placeholder { width: 44px; height: 44px; min-height: 0; padding: 3px; border-radius: 8px; background: var(--stage); }

/* ---------- 15. Responsive & motion preferences ---------- */
@media (hover: none) { .pc-tools [data-action="quick"] { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
  .main-nav > ul > li > a { padding: 0 9px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .main-nav { display: none; }
  .menu-btn { display: inline-grid; }
  .header-actions { margin-left: auto; }
  .hero, .about, .contact-layout, .cat-row, .pd, .split, .shop-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-stage { aspect-ratio: 4 / 3; }
  .cat-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
  .tile-audio { grid-column: 1 / -1; grid-row: auto; min-height: 300px; }
  .tile-wear, .tile-desk { grid-column: auto; grid-row: auto; min-height: 220px; }
  .tile-acc { grid-column: 1 / -1; grid-row: auto; flex-direction: row; align-items: center; min-height: 150px; }
  .tile-acc .cat-img { padding-top: 0; }
  .tile-audio .cat-img img { max-height: 240px; }
  .tile-wear .cat-img img, .tile-desk .cat-img img, .tile-acc .cat-img img { max-height: 140px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-row:nth-child(even) .cat-row-media { order: 0; }
  .gallery, .summary-panel, .filters { position: static; }
  .filters { display: none; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; }
  .filters.is-open { display: grid; animation: fade-up 0.25s var(--ease); }
  .filters-toggle { display: inline-flex; }
  .about-media { aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  :root { --header-h: 58px; }
  .announce { font-size: 0.76rem; }
  .header-bar { gap: 8px; }
  .brand-logo { width: 32px; height: 32px; }
  .brand-name { font-size: 1.05rem; }
  .icon-btn { width: 40px; height: 40px; }
  .cat-bento { gap: 10px; }
  .cat-tile { padding: 16px; }
  .tile-wear, .tile-desk { min-height: 190px; }
  .cat-name { font-size: 1.05rem; }
  .steps, .form-grid, .confirm-grid, .pay-grid, .stats { grid-template-columns: minmax(0, 1fr); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .pc-title { flex-direction: column; gap: 2px; font-size: 0.95rem; }
  .pc-desc, .pay-brands { display: none; }
  .pc-actions { grid-template-columns: minmax(0, 1fr); }
  .pc-actions .btn { min-height: 42px; }
  .service-list > div { grid-template-columns: minmax(0, 1fr); }
  .tablist [role="tab"] { padding: 0 10px; font-size: 0.92rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .quick { grid-template-columns: minmax(0, 1fr); padding: 14px; gap: 14px; }
  .quick-media { aspect-ratio: 4 / 3; }
  .buy-row .btn-primary { flex-basis: 100%; order: 3; }
  .shop-bar .select { width: 100%; min-width: 0; }
  .shop-bar > * { flex: 1 1 auto; }
  .help-strip, .promo-band { padding: 22px; }
  .dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .dl dd { margin-bottom: 8px; }
  .hero-facts { flex-direction: column; gap: 4px; }
  .hero-facts li + li::before { display: none; }
}
@media (max-width: 359px) {
  .product-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal-ready [data-reveal]:not(.is-in), .mobile-nav li { opacity: 1; transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
