/* UA Electronics premium storefront layer — presentation only. */
:root {
  color-scheme: light;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --line: #d2d2d7;
  --paper: #ffffff;
  --surface: #f5f5f7;
  --surface-raised: rgba(255,255,255,.84);
  --surface-soft: rgba(245,245,247,.82);
  --glass: rgba(255,255,255,.68);
  --glass-border: rgba(255,255,255,.64);
  --shadow-soft: 0 12px 34px rgba(22,32,52,.08);
  --shadow-hover: 0 22px 52px rgba(22,32,52,.14);
  --radius-card: 18px;
  --motion-ease: cubic-bezier(.2,.7,.2,1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --accent: #2997ff;
  --accent-hover: #55aaff;
  --line: #3a3a3c;
  --paper: #111315;
  --surface: #1c1e21;
  --surface-raised: rgba(33,35,39,.92);
  --surface-soft: rgba(29,31,35,.86);
  --glass: rgba(32,34,38,.76);
  --glass-border: rgba(255,255,255,.14);
  --shadow-soft: 0 12px 34px rgba(0,0,0,.24);
  --shadow-hover: 0 22px 52px rgba(0,0,0,.38);
}
html { scroll-behavior: smooth; scroll-padding-top: 88px; background: var(--paper); }
body { color: var(--ink); background: var(--paper); transition: background-color .32s ease, color .32s ease; }
body, button, input, select, textarea { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
::selection { background: rgba(0,113,227,.18); }
a { -webkit-tap-highlight-color: transparent; }
button, a, input, select { outline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); }
.announcement { display: none; }

/* Navigation: translucent, precise, and shared across the storefront. */
.site-header {
  position: sticky; top: 0; z-index: 100;
  width: 100%; max-width: none; margin: 0;
  min-height: 64px; padding: 8px clamp(20px,4.1vw,64px);
  display: flex; align-items: center; justify-content: space-between; gap: clamp(16px,2.5vw,38px);
  border-bottom: 1px solid rgba(210,210,215,.62);
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px);
  box-shadow: 0 2px 18px rgba(20,28,43,.035);
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
html[data-theme="dark"] .site-header { background: rgba(20,22,25,.82); border-bottom-color: rgba(255,255,255,.1); box-shadow: 0 2px 22px rgba(0,0,0,.2); }
.brand-wordmark { flex: 0 0 auto; gap: 5px; white-space: nowrap; letter-spacing: -.055em; }
.brand-wordmark .brand-ua { font-size: 26px; font-weight: 850; letter-spacing: -.085em; color: var(--ink); }
.brand-wordmark .brand-electronics { font-size: 23px; font-weight: 500; color: var(--ink); letter-spacing: -.065em; }
.brand-wordmark, .brand-wordmark:hover { text-decoration: none; }
.main-nav { align-items: center; justify-content: center; gap: clamp(13px,1.9vw,29px); min-width: 0; flex: 1 1 auto; }
.main-nav a, .text-link { position: relative; color: var(--ink); font-size: 12px; font-weight: 500; white-space: nowrap; transition: color .2s ease; }
.main-nav a { padding: 12px 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; border-radius: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .28s var(--motion-ease); }
.main-nav a:hover, .main-nav a.is-current, .main-nav a[aria-current="true"] { color: var(--ink); }
.main-nav a:hover::after, .main-nav a.is-current::after, .main-nav a[aria-current="true"]::after { transform: scaleX(1); }
.header-tools { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex: 0 0 auto; }
.header-search { width: clamp(175px,20vw,306px); height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 14px 0 17px; border: 1px solid rgba(210,210,215,.7); border-radius: 999px; background: rgba(255,255,255,.72); box-shadow: 0 3px 14px rgba(20,28,43,.045) inset, 0 2px 10px rgba(20,28,43,.04); transition: border-color .2s, box-shadow .2s, background .2s; }
.header-search:focus-within { border-color: rgba(0,113,227,.7); box-shadow: 0 0 0 3px rgba(0,113,227,.1); }
.header-search input { min-width: 0; width: 100%; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 11px; }
.header-search input::placeholder { color: #86868b; }
.search-glyph { width: 14px; height: 14px; display: block; position: relative; flex: 0 0 auto; border: 1.7px solid currentColor; border-radius: 50%; color: var(--ink); }
.search-glyph::after { content: ""; width: 6px; height: 1.7px; position: absolute; right: -4px; bottom: -2px; background: currentColor; border-radius: 2px; transform: rotate(48deg); }
html[data-theme="dark"] .header-search { background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.15); }
.header-action { position: relative; gap: 7px; padding: 9px 12px; border: 1px solid transparent; border-radius: 999px; color: var(--ink); background: transparent; font-size: 11px; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.header-action:hover { color: var(--ink); background: var(--surface); border-color: var(--line); transform: translateY(-1px); }
.cart-glyph { font-size: 22px !important; line-height: 1; color: var(--ink) !important; }
.header-action .cart-action-label { color: var(--ink); font-size: 11px; }
.header-action .cart-glyph { color: var(--ink) !important; font-size: 22px !important; }
.header-action .cart-count { color: #fff; font-size: 9px; }
.cart-count { background: #123d75; color: #fff; min-width: 18px; height: 18px; font-size: 9px; }
html[data-theme="dark"] .cart-count { background: var(--accent); color: #07111d; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 7px 10px; flex: 0 0 auto; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--ink); font-size: 11px; font-weight: 550; cursor: pointer; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.theme-toggle:hover { background: var(--surface); border-color: var(--line); transform: translateY(-1px); }
.theme-toggle-icon { font-size: 18px; line-height: 1; }
.theme-toggle-label { white-space: nowrap; }
html[data-theme="dark"] .theme-toggle { background: rgba(255,255,255,.04); }

/* Wide cinematic hero with photography, rather than decorative fake device mockups. */
.storefront-home main { overflow: clip; }
.hero {
  max-width: none; margin: 0; min-height: clamp(348px,27vw,420px); padding: clamp(40px,4vw,68px) clamp(24px,8vw,122px);
  display: flex; align-items: center; position: relative; isolation: isolate; overflow: hidden; border-radius: 0;
  color: #f5f5f7; background: #111419;
}
.hero::before { content: ""; position: absolute; z-index: -2; inset: 0 0 0 35%; background-image: url('/images/ui/hero-kitchen.webp'); background-position: center 52%; background-size: cover; background-repeat: no-repeat; transform: scale(1.015); animation: hero-settle 1.25s var(--motion-ease) both; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,#101319 0%,rgba(16,19,25,.97) 24%,rgba(16,19,25,.72) 41%,rgba(16,19,25,.15) 64%,rgba(16,19,25,.06) 100%),linear-gradient(0deg,rgba(0,0,0,.28),transparent 40%); }
.hero-copy { position: relative; z-index: 2; width: min(590px,52vw); max-width: 590px; }
.hero-eyebrow { margin: 0 0 19px; color: #e4e5e8; font-size: 10px; line-height: 1.5; letter-spacing: .22em; font-weight: 600; }
.hero .live-dot { display: none; }
.hero h1 { margin: 0; color: #f5f5f7; font-size: clamp(39px,4vw,60px); line-height: 1.02; font-weight: 680; letter-spacing: -.055em; }
.hero h1 span { color: #f5f5f7; background: linear-gradient(100deg,#fff 12%,#d5d8de 85%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-description { max-width: 445px; margin: 19px 0 23px; color: rgba(245,245,247,.86); font-size: 15px; line-height: 1.55; }
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.button { border-radius: 999px; padding: 12px 20px; gap: 12px; font-size: 12px; font-weight: 650; transition: transform .24s var(--motion-ease), background .24s, color .24s, border-color .24s, box-shadow .24s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--accent); box-shadow: 0 8px 22px rgba(0,113,227,.22); border: 1px solid var(--accent); }
.button-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; box-shadow: 0 12px 27px rgba(0,113,227,.27); }
.button-primary span { font-size: 17px; }
.hero .button-primary { min-width: 153px; justify-content: center; background: #fff; border-color: #fff; color: #1d1d1f; box-shadow: 0 6px 22px rgba(0,0,0,.2); }
.hero .button-primary:hover { background: #e9e9eb; border-color: #e9e9eb; color: #111; }
.hero-secondary { min-width: 184px; justify-content: center; border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.085); color: #fff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hero-secondary:hover { color: #fff; border-color: rgba(255,255,255,.8); background: rgba(255,255,255,.15); }
.hero-caption { position: absolute; right: clamp(24px,7vw,105px); top: 16%; display: flex; flex-direction: column; gap: 9px; color: rgba(255,255,255,.76); font-size: 10px; letter-spacing: .43em; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.hero-caption i { display: block; height: 1px; width: 44px; margin-top: 8px; background: rgba(255,255,255,.6); }
.hero-scroll-cue { position: absolute; right: 50%; bottom: 22px; width: 22px; height: 30px; border: 1px solid rgba(255,255,255,.38); border-radius: 999px; opacity: .65; }
.hero-scroll-cue span { display: block; width: 3px; height: 6px; margin: 6px auto; background: #fff; border-radius: 999px; animation: scroll-cue 1.5s ease-in-out infinite; }
.hero-art { display: none; }

/* A light-catching transparent benefits bar overlaps the hero edge. */
.trust-strip { max-width: 1388px; margin: -27px auto 25px; padding: 20px clamp(18px,3vw,40px); position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; border: 1px solid rgba(255,255,255,.8); border-radius: 24px; background: rgba(255,255,255,.72); backdrop-filter: saturate(160%) blur(28px); -webkit-backdrop-filter: saturate(160%) blur(28px); box-shadow: 0 12px 42px rgba(21,30,45,.13), inset 0 1px 0 rgba(255,255,255,.9); }
.trust-item { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 2px clamp(10px,2vw,24px); }
.trust-item + .trust-item { border-left: 1px solid rgba(180,182,188,.65); }
.trust-icon { display: grid; flex: 0 0 40px; width: 40px; height: 40px; place-items: center; border: 1px solid rgba(140,145,155,.34); border-radius: 50%; color: var(--ink); background: rgba(255,255,255,.22); font-size: 25px; }
.trust-item strong, .trust-item small { display: block; }
.trust-item strong { margin-bottom: 4px; color: #1d1d1f; font-size: 11px; letter-spacing: -.01em; }
.trust-item small { color: #6e6e73; font-size: 10px; line-height: 1.45; }
html[data-theme="dark"] .trust-strip { background: rgba(35,37,41,.78); border-color: rgba(255,255,255,.15); box-shadow: 0 16px 48px rgba(0,0,0,.32),inset 0 1px 0 rgba(255,255,255,.08); }
html[data-theme="dark"] .trust-item strong, html[data-theme="dark"] .trust-item small { color: var(--ink); }
html[data-theme="dark"] .trust-item small { color: var(--muted); }
html[data-theme="dark"] .trust-item + .trust-item { border-left-color: rgba(255,255,255,.12); }
html[data-theme="dark"] .trust-icon { border-color: rgba(255,255,255,.17); background: rgba(255,255,255,.04); color: var(--ink); }

.category-section, .catalogue-section, .support-section { width: min(1388px, calc(100% - 9.8vw)); max-width: 1388px; margin-left: auto; margin-right: auto; }
.category-section { padding: 0 0 24px; }
.section-heading { margin-bottom: 23px; align-items: flex-end; gap: 25px; }
.section-heading h2, .support-section h2 { margin: 0; color: var(--ink); font-size: clamp(26px,2.05vw,34px); line-height: 1.13; font-weight: 700; letter-spacing: -.045em; }
.section-heading>div>p:not(.eyebrow), .section-heading>p, .support-section>p { color: var(--muted); font-size: 13px; line-height: 1.65; margin: 7px 0 0; }
.section-link { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; color: var(--accent); font-size: 11px; font-weight: 600; text-decoration: none; transition: gap .2s ease; }
.section-link:hover { gap: 15px; }
.section-link span { font-size: 17px; }
.category-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 11px; }
.category-card { position: relative; isolation: isolate; display: flex; align-items: flex-end; justify-content: space-between; min-width: 0; height: clamp(132px,10.5vw,165px); overflow: hidden; padding: 13px 15px; border: 1px solid rgba(210,210,215,.6); border-radius: 16px; color: #fff; text-decoration: none; background-color: #d9dade; background-image: linear-gradient(0deg,rgba(20,21,23,.7) 0%,rgba(20,21,23,.08) 50%,transparent 100%),var(--category-image); background-repeat: no-repeat; background-size: cover; background-position: center; box-shadow: 0 6px 17px rgba(24,31,43,.065); transition: transform .34s var(--motion-ease), box-shadow .34s var(--motion-ease), border-color .3s ease; }
.category-card::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(130deg,rgba(255,255,255,.15),transparent 45%); opacity: .6; transition: opacity .28s ease; }
.category-card span { font-size: 12px; line-height: 1.2; font-weight: 650; letter-spacing: -.01em; text-shadow: 0 1px 7px rgba(0,0,0,.4); }
.category-card b { font-size: 20px; font-weight: 450; text-shadow: 0 1px 7px rgba(0,0,0,.4); transition: transform .28s var(--motion-ease); }
.category-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(24,31,43,.15); border-color: rgba(0,113,227,.32); color: #fff; }
.category-card:hover::before { opacity: 1; }
.category-card:hover b { transform: translateX(4px); }
html[data-theme="dark"] .category-card { border-color: rgba(255,255,255,.12); box-shadow: 0 7px 22px rgba(0,0,0,.25); }

.featured-section { padding: 10px 0 49px; }
.featured-heading { margin-bottom: 18px; }
.featured-controls { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.category-tabs { display: flex; align-items: center; gap: 2px; padding: 4px; border: 1px solid rgba(210,210,215,.55); border-radius: 999px; background: var(--surface-raised); box-shadow: 0 4px 20px rgba(20,28,43,.035); }
.category-tab { padding: 9px 13px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--muted); font-size: 10px; font-weight: 550; cursor: pointer; white-space: nowrap; transition: color .2s, background .2s, box-shadow .2s, transform .2s; }
.category-tab:hover { color: var(--ink); }
.category-tab.is-active { background: var(--surface-raised); border-color: rgba(210,210,215,.48); color: var(--accent); box-shadow: 0 3px 10px rgba(20,28,43,.08); }
.sort-compact select { min-height: 39px; max-width: 170px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--surface-raised); font: inherit; font-size: 10px; outline-offset: 2px; }
.catalogue-toolbar-accessible { height: 1px; overflow: hidden; position: absolute; clip: rect(0,0,0,0); white-space: nowrap; }
.visually-hidden-field, .visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.catalogue-status-row { margin: 8px 0 13px; min-height: 18px; }
.catalogue-feedback { color: var(--muted); font-size: 10px; }
.state-pill { padding: 6px 10px; background: var(--surface); color: var(--muted); border-radius: 999px; font-size: 9px; }
.product-grid { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 14px; }
.product-card { position: relative; border-radius: 17px; border: 1px solid rgba(210,210,215,.58); background: var(--surface-raised); box-shadow: 0 5px 20px rgba(20,28,43,.035); transition: transform .32s var(--motion-ease), box-shadow .32s var(--motion-ease), border-color .3s, background .3s; }
.product-card::after { content: ""; pointer-events: none; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(140deg,rgba(255,255,255,.45),transparent 35%); opacity: .4; transition: opacity .3s; }
.product-card:hover { transform: translateY(-5px); border-color: rgba(0,113,227,.25); box-shadow: var(--shadow-hover); }
.product-card:hover::after { opacity: .8; }
.product-image-link { aspect-ratio: 1.08; background: var(--surface); }
.product-image-link img { mix-blend-mode: normal; object-fit: contain; transition: transform .5s var(--motion-ease); }
html[data-theme="dark"] .product-image-link img { mix-blend-mode: normal; }
.product-card:hover .product-image-link img { transform: scale(1.055); }
.product-image-placeholder { background: radial-gradient(circle at 50% 36%,var(--surface-raised),var(--surface)); }
.product-image-placeholder span { color: var(--line); }
.product-card-body { padding: 13px 13px 14px; }
.product-brand { font-size: 8px; letter-spacing: .11em; color: var(--muted); }
.product-card h3 { min-height: 40px; margin-bottom: 8px; font-size: 12px; line-height: 1.45; font-weight: 650; }
.product-card h3 a { color: var(--ink); }
.product-card h3 a:hover, .product-details-link { color: var(--accent); }
.product-price-line strong { color: var(--ink); font-size: 14px; }
.product-card-bottom { border-color: var(--line); margin-top: 12px; padding-top: 10px; }
.product-availability { font-size: 8px; }
.product-availability.available { color: #218448; }
.product-availability.unavailable { color: #b26b33; }
.add-to-cart-button { position: relative; z-index: 1; min-height: 36px; border-radius: 999px; background: transparent; color: var(--ink); border-color: var(--line); }
.add-to-cart-button:hover { color: var(--accent); border-color: var(--accent); background: rgba(0,113,227,.04); }
.add-to-cart-button span { color: var(--accent); }
.catalogue-empty { border-radius: var(--radius-card); border-color: var(--line); background: var(--surface-raised); box-shadow: var(--shadow-soft); }
.catalogue-empty p { color: var(--muted); }
.state-icon { background: rgba(0,113,227,.08); color: var(--accent); }
.catalogue-pagination { padding: 22px 0 0; }
.button-secondary { background: var(--surface-raised); color: var(--ink); border-color: var(--line); }
.button-secondary:hover { background: var(--surface); border-color: var(--accent); color: var(--accent); }

/* Product detail, cart, and checkout share the same material system. */
.product-page-shell, .cart-page-shell { max-width: 1388px; margin: 24px auto 82px; padding: 0 clamp(18px,4.8vw,70px); color: var(--ink); }
.back-link { color: var(--muted); transition: color .2s; }
.back-link:hover { color: var(--accent); }
.product-detail-layout { gap: clamp(28px,5vw,74px); align-items: center; }
.product-detail-image { border-radius: 24px; background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-soft); }
.product-detail-image>img { mix-blend-mode: normal; }
.product-detail-copy h1 { color: var(--ink); font-size: clamp(30px,3.5vw,49px); letter-spacing: -.05em; }
.product-detail-description, .cart-page-heading p:not(.eyebrow), .checkout-heading>p:not(.eyebrow) { color: var(--muted); }
.product-spec-list { border-color: var(--line); }
.product-spec-list>div, .product-spec-list dd { border-color: var(--line); color: var(--ink); }
.product-page-note { background: var(--surface); border-color: var(--line); color: var(--muted); border-radius: 14px; }
.product-purchase-actions .button { min-height: 44px; }
.cart-page-heading h1 { color: var(--ink); }
.cart-mode-badge { border-radius: 999px; background: var(--surface); color: var(--muted); border-color: var(--line); }
.cart-layout { gap: 20px; }
.cart-items-panel, .cart-summary-panel, .checkout-form-section, .checkout-result { border: 1px solid var(--line); border-radius: 22px; background: var(--surface-raised); box-shadow: var(--shadow-soft); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.cart-items-heading { border-color: var(--line); }
.cart-item { border-color: var(--line); }
.cart-item-image { border-radius: 14px; background: var(--surface); }
.cart-item-image img { mix-blend-mode: normal; }
.cart-item-placeholder { color: var(--muted); }
.cart-item-copy>strong, .summary-line strong, .cart-summary-panel h2 { color: var(--ink); }
.cart-item-copy>p:not(.product-brand), .cart-item-copy small, .summary-line, .shipping-rule-note, .cart-summary-footnote { color: var(--muted); }
.quantity-control { border-color: var(--line); }
.quantity-control button { background: var(--surface); color: var(--ink); }
.cart-item-unavailable { background: var(--surface); }
.summary-line, .summary-total { border-color: var(--line); }
.checkout-form-section { margin-top: 24px; padding: clamp(20px,3vw,34px); }
.checkout-heading h2, .checkout-result h2 { color: var(--ink); }
.checkout-fields-grid label, .checkout-consent { color: var(--muted); }
.checkout-fields-grid input { border-color: var(--line); border-radius: 12px; color: var(--ink); background: var(--paper); }
.checkout-fields-grid input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,113,227,.12); }
.checkout-warning { background: rgba(255,190,62,.1); border-color: rgba(205,155,50,.28); color: var(--muted); border-radius: 14px; }
.checkout-result { padding: 42px 26px; }
.checkout-result>p:not(.eyebrow) { color: var(--muted); }
.cart-count { vertical-align: middle; }

.support-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 50px; border-top: 1px solid var(--line); padding: 55px 0 65px; }
.support-section .eyebrow { margin-bottom: 13px; color: var(--accent); font-size: 9px; letter-spacing: .16em; }
.support-section>p { max-width: 540px; margin: 0; font-size: 13px; }
.site-footer { max-width: 1388px; padding: 24px 0; color: var(--muted); border-color: var(--line); font-size: 10px; }
.site-footer-premium { width: min(1388px,calc(100% - 9.8vw)); }
.mobile-search { display: none; }
.site-footer nav { display: flex; align-items: center; gap: 18px; }
.site-footer nav a { color: var(--muted); text-decoration: none; transition: color .2s; }
.site-footer nav a:hover { color: var(--accent); }
.footer-brand .brand-ua { font-size: 19px; }
.footer-brand .brand-electronics { font-size: 18px; }

/* Admin gets the same graphite/porcelain palette, without changing forms or actions. */
html[data-theme="dark"] body:not(.storefront-home) { background: var(--paper); }
html[data-theme="dark"] .announcement { background: var(--surface); color: var(--ink); }
html[data-theme="dark"] .header-action, html[data-theme="dark"] .main-nav a { color: var(--ink); }
html[data-theme="dark"] .catalogue-toolbar input, html[data-theme="dark"] .catalogue-toolbar select,
html[data-theme="dark"] .checkout-fields-grid input, html[data-theme="dark"] .sort-compact select { color: var(--ink); background: var(--surface); border-color: var(--line); }
html[data-theme="dark"] .category-tabs { background: var(--surface-raised); border-color: var(--line); }
html[data-theme="dark"] .category-tab.is-active { background: rgba(255,255,255,.09); border-color: var(--line); }
html[data-theme="dark"] .product-card, html[data-theme="dark"] .catalogue-empty,
html[data-theme="dark"] .cart-items-panel, html[data-theme="dark"] .cart-summary-panel,
html[data-theme="dark"] .checkout-form-section, html[data-theme="dark"] .checkout-result { background: var(--surface-raised); border-color: var(--line); }
html[data-theme="dark"] .product-card h3 a, html[data-theme="dark"] .product-price-line strong,
html[data-theme="dark"] .product-detail-copy h1, html[data-theme="dark"] .cart-page-heading h1 { color: var(--ink); }
html[data-theme="dark"] .product-image-link, html[data-theme="dark"] .product-detail-image,
html[data-theme="dark"] .cart-item-image { background: #24262a; }
html[data-theme="dark"] .product-page-note { background: var(--surface); border-color: var(--line); }
html[data-theme="dark"] .result-icon { background: rgba(45,182,101,.13); color: #70d69a; }
html[data-theme="dark"] .quantity-control button { color: var(--ink); background: #26282c; }
html[data-theme="dark"] .cart-item-unavailable { background: rgba(255,180,66,.07); }

/* Reveal animation only affects elements explicitly marked for presentation. */
.has-premium-motion [data-reveal], .has-premium-motion .product-card { opacity: 0; transform: translateY(16px); transition: opacity .65s var(--motion-ease), transform .65s var(--motion-ease); }
.has-premium-motion [data-reveal].is-visible, .has-premium-motion .product-card.is-visible { opacity: 1; transform: translateY(0); }
.has-premium-motion .category-card:nth-child(2), .has-premium-motion .trust-item:nth-child(2) { transition-delay: 55ms; }
.has-premium-motion .category-card:nth-child(3), .has-premium-motion .trust-item:nth-child(3) { transition-delay: 100ms; }
.has-premium-motion .category-card:nth-child(4), .has-premium-motion .trust-item:nth-child(4) { transition-delay: 145ms; }
@keyframes hero-settle { from { transform: scale(1.055); opacity: .5; } to { transform: scale(1.015); opacity: 1; } }
@keyframes scroll-cue { 0%,100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(6px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .has-premium-motion [data-reveal], .has-premium-motion .product-card { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 1240px) {
  .site-header { gap: 17px; padding-left: 25px; padding-right: 25px; }
  .brand-wordmark .brand-ua { font-size: 23px; }
  .brand-wordmark .brand-electronics { font-size: 21px; }
  .main-nav { gap: 14px; }
  .main-nav a { font-size: 11px; }
  .header-search { width: 190px; }
  .header-tools { gap: 5px; }
  .theme-toggle { padding: 7px 8px; }
  .category-section, .catalogue-section, .support-section { width: calc(100% - 7vw); }
  .category-card { height: clamp(125px,11vw,150px); padding: 11px; }
  .category-card span { font-size: 10px; }
  .product-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 950px) {
  .site-header { min-height: 62px; padding: 8px 19px; gap: 13px; }
  .main-nav { gap: 13px; }
  .main-nav a:nth-child(6) { display: none; }
  .header-search { width: 170px; }
  .header-search input { font-size: 10px; }
  .theme-toggle-label { display: none; }
  .theme-toggle { width: 37px; min-width: 37px; height: 37px; padding: 0; border: 1px solid var(--line); }
  .hero { min-height: 360px; padding-left: 7vw; }
  .hero-copy { width: min(550px,61vw); }
  .hero::before { left: 30%; }
  .hero-caption { right: 4%; }
  .trust-strip { width: calc(100% - 42px); padding: 14px 10px; }
  .trust-item { gap: 9px; padding: 4px 11px; }
  .trust-icon { flex-basis: 34px; width: 34px; height: 34px; font-size: 21px; }
  .trust-item strong { font-size: 10px; }
  .trust-item small { font-size: 9px; }
  .category-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .category-card { height: 150px; }
  .featured-heading { align-items: flex-start; flex-direction: column; }
  .featured-controls { width: 100%; justify-content: space-between; }
  .category-tabs { max-width: 100%; overflow-x: auto; }
  .category-tabs::-webkit-scrollbar { display: none; }
  .category-tab { padding: 9px 12px; }
  .support-section { gap: 28px; }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 70px; }
  .site-header { min-height: 60px; display: flex; flex-wrap: wrap; gap: 0 10px; padding: 9px 15px; }
  .brand-wordmark .brand-ua { font-size: 22px; }
  .brand-wordmark .brand-electronics { font-size: 20px; }
  .main-nav { display: none; }
  .header-tools { margin-left: auto; gap: 5px; }
  .header-search { display: none; }
  .mobile-search { display: block; width: calc(100% - 30px); margin: 9px auto 0; }
  .mobile-search .header-search { display: flex; width: 100%; height: 38px; }
  .theme-toggle { width: 35px; min-width: 35px; height: 35px; }
  .cart-action { padding: 6px 8px; gap: 4px; }
  .cart-action-label { display: none; }
  .cart-glyph { font-size: 20px !important; }
  .storefront-home .site-header::after { content: ""; }
  .hero { min-height: 470px; padding: 50px 23px 54px; align-items: flex-start; }
  .hero::before { inset: 0; background-position: 53% bottom; background-size: auto 60%; opacity: .9; }
  .hero::after { background: linear-gradient(180deg,#101319 0%,rgba(16,19,25,.95) 28%,rgba(16,19,25,.7) 53%,rgba(16,19,25,.2) 100%); }
  .hero-copy { width: 100%; max-width: 520px; }
  .hero-eyebrow { font-size: 8px; letter-spacing: .16em; max-width: 280px; }
  .hero h1 { font-size: clamp(38px,10vw,49px); }
  .hero-description { max-width: 350px; font-size: 13px; margin: 17px 0 19px; }
  .hero-actions { gap: 9px; }
  .hero .button { min-width: unset; padding: 11px 16px; font-size: 11px; }
  .hero-caption { top: auto; bottom: 35px; right: 19px; gap: 5px; font-size: 8px; }
  .hero-scroll-cue { display: none; }
  .trust-strip { width: calc(100% - 26px); margin: -20px auto 27px; padding: 12px 8px; grid-template-columns: repeat(2,minmax(0,1fr)); border-radius: 18px; gap: 0; }
  .trust-item { padding: 10px 8px; align-items: flex-start; }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid rgba(180,182,188,.45); }
  .trust-icon { flex-basis: 30px; width: 30px; height: 30px; font-size: 18px; }
  .trust-item strong { font-size: 9px; line-height: 1.3; }
  .trust-item small { font-size: 8px; }
  .category-section, .catalogue-section, .support-section { width: calc(100% - 30px); }
  .category-section { padding-bottom: 22px; }
  .section-heading { margin-bottom: 16px; }
  .section-heading h2, .support-section h2 { font-size: 27px; }
  .section-heading>div>p:not(.eyebrow), .section-heading>p { font-size: 11px; }
  .section-link { font-size: 10px; }
  .category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .category-card { height: 140px; border-radius: 13px; padding: 11px; }
  .category-card span { font-size: 11px; }
  .category-card b { font-size: 18px; }
  .featured-section { padding-top: 7px; }
  .featured-controls { align-items: flex-start; flex-direction: column; gap: 8px; }
  .category-tabs { width: 100%; justify-content: flex-start; padding: 4px; }
  .category-tab { flex: 0 0 auto; font-size: 9px; padding: 9px 11px; }
  .sort-compact select { max-width: none; min-height: 35px; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .product-card { border-radius: 13px; }
  .product-image-link { aspect-ratio: .98; }
  .product-card-body { padding: 10px 9px; }
  .product-card h3 { font-size: 11px; min-height: 46px; }
  .product-price-line strong { font-size: 12px; }
  .product-card-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
  .add-to-cart-button { font-size: 10px; min-height: 33px; }
  .catalogue-empty { gap: 12px; padding: 17px; }
  .support-section { grid-template-columns: 1fr; gap: 13px; padding: 36px 0 42px; }
  .support-section>p { font-size: 12px; }
  .site-footer, .site-footer-premium { width: calc(100% - 30px); align-items: flex-start; flex-direction: column; gap: 14px; padding: 20px 0; }
  .site-footer nav { gap: 16px; }
  .product-page-shell, .cart-page-shell { padding: 0 16px; margin-top: 14px; }
  .product-detail-layout { grid-template-columns: 1fr; gap: 18px; }
  .product-detail-image { border-radius: 18px; }
  .product-detail-copy h1 { font-size: 32px; }
  .cart-page-heading { align-items: flex-start; }
  .cart-items-panel, .cart-summary-panel, .checkout-form-section, .checkout-result { border-radius: 17px; }
}


/* Premium checkout refinement: cart, delivery details, payment hand-off and confirmation. */
.cart-page-shell { position: relative; }
.cart-page-heading { display: flex; gap: 18px; align-items: center; justify-content: space-between; padding: clamp(20px,3vw,34px) 0 22px; }
.cart-page-heading h1 { margin: 4px 0 8px; font-size: clamp(34px,4vw,52px); letter-spacing: -.055em; }
.cart-page-heading .eyebrow, .checkout-heading .eyebrow { color: var(--accent); font-size: 10px; font-weight: 750; letter-spacing: .17em; }
.cart-items-panel, .cart-summary-panel, .checkout-form-section, .checkout-result { position: relative; overflow: clip; }
.cart-items-panel::before, .cart-summary-panel::before, .checkout-form-section::before, .checkout-result::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg,transparent,rgba(255,255,255,.92),transparent); pointer-events: none; }
html[data-theme="dark"] .cart-items-panel::before, html[data-theme="dark"] .cart-summary-panel::before, html[data-theme="dark"] .checkout-form-section::before, html[data-theme="dark"] .checkout-result::before { background: linear-gradient(90deg,transparent,rgba(255,255,255,.18),transparent); }
.cart-items-panel { padding: clamp(18px,2.4vw,28px); }
.cart-summary-panel { padding: clamp(20px,2.5vw,30px); }
.cart-summary-panel h2 { letter-spacing: -.035em; }
.cart-summary-panel .cart-checkout-jump, .checkout-submit { width: 100%; min-height: 48px; justify-content: center; }
.cart-summary-footnote { font-size: 11px; line-height: 1.6; }
.cart-item { transition: background .22s ease, border-color .22s ease; }
.cart-item:hover { background: color-mix(in srgb, var(--surface) 46%, transparent); }
.quantity-control { border-radius: 999px; overflow: hidden; background: var(--surface-raised); }
.quantity-control button { transition: background .2s ease, color .2s ease; }
.quantity-control button:hover { background: var(--accent); color: #fff; }
.checkout-form-section { scroll-margin-top: 88px; }
.checkout-heading { max-width: 740px; margin-bottom: 24px; }
.checkout-heading h2, .checkout-result h2 { margin: 6px 0 9px; font-size: clamp(25px,3vw,36px); letter-spacing: -.045em; }
.checkout-fields-grid { gap: 17px; }
.checkout-fields-grid label { display: grid; gap: 8px; font-size: 12px; font-weight: 650; }
.checkout-fields-grid input { min-height: 46px; padding: 11px 13px; box-shadow: 0 1px 2px rgba(0,0,0,.025); transition: border-color .2s ease, box-shadow .2s ease, background .25s ease; }
.checkout-fields-grid input:hover { border-color: color-mix(in srgb, var(--accent) 48%, var(--line)); }
.checkout-fields-grid input:focus-visible { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0,113,227,.13); }
.checkout-consent { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0 14px; font-size: 12px; line-height: 1.55; }
.checkout-consent input { accent-color: var(--accent); margin-top: 2px; flex: 0 0 auto; }
.checkout-warning { padding: 13px 15px; line-height: 1.6; font-size: 12px; }
.checkout-message:empty { display: none; }
.checkout-message:not(:empty) { padding: 12px 14px; border-radius: 12px; background: var(--surface); color: var(--ink); }
.checkout-submit { margin-top: 8px; }
.checkout-submit:disabled { filter: saturate(.7); box-shadow: none; transform: none; }
.checkout-result { text-align: center; }
.checkout-result .button { margin-top: 12px; }
html[data-theme="dark"] .checkout-fields-grid input { background: rgba(255,255,255,.045); color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] .checkout-fields-grid input::placeholder { color: #8f9299; }
html[data-theme="dark"] .checkout-message:not(:empty) { background: rgba(255,255,255,.06); }
html[data-theme="dark"] .checkout-warning { background: rgba(255,190,62,.08); border-color: rgba(255,190,62,.22); }
html[data-theme="dark"] .cart-item:hover { background: rgba(255,255,255,.025); }
html[data-theme="dark"] .cart-mode-badge { background: rgba(255,255,255,.055); color: var(--muted); }
@media (max-width: 680px) {
  .cart-page-heading { align-items: flex-start; flex-direction: column; }
  .cart-items-panel, .cart-summary-panel { padding: 17px; }
  .checkout-form-section { padding: 18px; }
  .checkout-fields-grid { gap: 13px; }
  .checkout-fields-grid input { min-height: 44px; }
}
