/* ============================================================
   VOLTRA — design system
   Ink / White + Electric Blue accent (energetic, e-mobility)
   ============================================================ */
:root {
  --bg:            #ffffff;
  --bg-soft:       #f4f6fb;
  --surface:       #ffffff;
  --surface-2:     #eef1f8;
  --line:          rgba(10,16,40,.10);
  --line-strong:   rgba(10,16,40,.16);
  --text:          #0b1020;
  --text-dim:      #4c5266;
  --text-faint:    #9398a9;
  --accent:        #2E5BFF;
  --accent-600:    #2249e0;
  --accent-700:    #1838b8;
  --accent-glow:   rgba(46,91,255,.40);
  --on-accent:     #ffffff;
  --hover:         rgba(10,16,40,.05);
  --fill:          rgba(10,16,40,.08);
  --scrim:         rgba(0,0,0,.6);
  --on-media:      #ffffff;
  --radius:        16px;
  --radius-sm:     10px;
  --radius-pill:   999px;
  --maxw:          1180px;
  --gap:           clamp(16px, 4vw, 28px);
  --section-y:     clamp(34px, 5vw, 70px);
  --ease:          cubic-bezier(.22,.61,.36,1);
  --shadow:        0 16px 44px rgba(0,0,0,.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: var(--font);
  --font-heading: var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
main { flex: 1 0 auto; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
svg { display: block; }

h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -.02em; font-weight: 800; font-family: var(--font-heading); }
h1 { font-size: clamp(2.1rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4.5vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.6vw, 1.6rem); }
p  { margin: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(16px, 5vw, 32px); }
.section { padding-block: var(--section-y); }
.center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content:""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.lead { color: var(--text-dim); font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 62ch; }
.muted { color: var(--text-dim); }
.accent { color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  --pad-y: 14px; --pad-x: 26px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: var(--pad-y) var(--pad-x);
  border: 1px solid transparent; border-radius: var(--radius-pill);
  font-weight: 700; font-size: .97rem; line-height: 1; letter-spacing: .005em;
  white-space: nowrap;
  overflow: hidden; isolation: isolate;
  transition: transform .18s var(--ease), box-shadow .3s var(--ease), filter .2s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn:active { transform: translateY(1px) scale(.99); }

.btn--accent {
  color: var(--on-accent);
  background: linear-gradient(135deg, #5a82ff 0%, var(--accent) 45%, var(--accent-700) 100%);
  box-shadow: 0 8px 22px -8px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.28);
}
.btn--accent:hover { transform: translateY(-2px); filter: saturate(1.06) brightness(1.04); box-shadow: 0 16px 34px -10px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.32); }
/* sheen sweep */
.btn--accent::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,.35) 48%, transparent 72%);
  transform: translateX(-130%); transition: transform .7s var(--ease);
}
.btn--accent:hover::after { transform: translateX(130%); }

.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--text); background: var(--hover); transform: translateY(-1px); }
.btn--lg { --pad-y: 16px; --pad-x: 32px; font-size: 1.01rem; }
.btn--block { width: 100%; }

/* ---------- gentle "breathing" glow for primary CTA (no harsh rings) ---------- */
@keyframes rj-breathe {
  0%, 100% { box-shadow: 0 8px 22px -8px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.28); }
  50%      { box-shadow: 0 12px 34px -6px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.3); }
}
.pulse { animation: rj-breathe 5.5s var(--ease) infinite; }

/* ---------- reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .pulse { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: var(--surface); font-size: .82rem; font-weight: 600; color: var(--text-dim);
}
.stars { color: var(--accent); letter-spacing: 2px; font-size: 1rem; }

/* ---------- card ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

/* ---------- grid helpers ---------- */
.grid { display: grid; gap: var(--gap); }
@media (min-width: 720px){ .grid--2 { grid-template-columns: repeat(2,1fr); } .grid--3 { grid-template-columns: repeat(3,1fr); } .grid--4 { grid-template-columns: repeat(4,1fr); } }

.visually-hidden { position:absolute!important; width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap; }

/* ---- quantity stepper (global so it works on cart too) ---- */
.buy__qty { display:inline-flex; align-items:stretch; height:54px; border:1px solid var(--line-strong); border-radius:var(--radius-pill); overflow:hidden; }
.buy__qty button { width:46px; height:100%; display:grid; place-items:center; line-height:1; padding:0; background:transparent; color:var(--text); font-size:1.35rem; font-weight:600; border:none; cursor:pointer; }
.buy__qty button:hover { background:var(--hover); }
.buy__qty input { width:44px; height:100%; text-align:center; padding:0; background:transparent; border:none; border-inline:1px solid var(--line); color:var(--text); font-size:1.05rem; font-weight:700; line-height:1; -moz-appearance:textfield; }
.buy__qty input::-webkit-outer-spin-button, .buy__qty input::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }

/* ---- account forms ---- */
.acct-form { display:grid; gap:12px; }
.acct-form input { padding:13px 16px; background:var(--surface); border:1px solid var(--line-strong); border-radius:var(--radius-sm); color:var(--text); font-size:1rem; }
.acct-form input:focus { outline:none; border-color:var(--accent); }

/* ============================================================
   Mobile refinements (<= 600px)
   ============================================================ */
@media (max-width: 600px) {
  :root { --section-y: clamp(28px, 8vw, 46px); --gap: 16px; }
  body { font-size: 15.5px; }
  h1 { font-size: clamp(2rem, 8.5vw, 2.6rem); line-height: 1.06; }
  h2 { font-size: clamp(1.55rem, 6.6vw, 2.1rem); }
  .wrap { padding-inline: 18px; }

  /* full-width, comfortable tap targets for primary actions */
  .btn { width: 100%; --pad-y: 14px; font-size: .95rem; }
  .btn--lg { --pad-y: 15px; font-size: .98rem; }
  .hero__buy, .buy { max-width: 100%; }

  /* keep inline button groups from forcing full width where unwanted */
  .site-nav__cta, .search-form .btn, .coll__pager .btn, .pw__form .btn { width: auto; }

  .card { padding: 20px; }
  .eyebrow { font-size: .72rem; letter-spacing: .14em; }
  .lead { font-size: 1rem; }

  /* tighter card grids read better stacked on phones */
  .grid--4, .grid--3 { gap: 14px; }
}

/* avoid the sticky add-to-cart bar hiding page-bottom content on phones */
@media (max-width: 860px) {
  main { scroll-padding-bottom: 90px; }
  .site-footer { padding-bottom: 96px; }
}

/* ============================================================
   Cart (drawer) — shared across all pages
   ============================================================ */
.cart-btn { position:relative; display:grid; place-items:center; width:42px; height:42px; border-radius:12px; border:1px solid var(--line); background:var(--surface); color:var(--text); cursor:pointer; transition:border-color .2s; }
.cart-btn:hover { border-color:var(--line-strong); }
.cart-btn svg { width:22px; height:22px; }
.cart-btn__count { position:absolute; top:-6px; right:-6px; min-width:18px; height:18px; padding:0 5px; display:grid; place-items:center; background:var(--accent); color:#fff; font-size:.68rem; font-weight:800; border-radius:999px; }
.cart-btn__count[hidden] { display:none; }

.cart-overlay { position:fixed; inset:0; z-index:90; background:rgba(8,12,30,.5); opacity:0; visibility:hidden; transition:opacity .3s, visibility .3s; }
.cart-overlay.is-open { opacity:1; visibility:visible; }
.cart-drawer { position:fixed; top:0; right:0; bottom:0; z-index:91; width:min(420px,92vw); background:var(--bg); border-left:1px solid var(--line); display:flex; flex-direction:column; transform:translateX(100%); transition:transform .35s var(--ease); box-shadow:-20px 0 60px -30px rgba(8,12,30,.5); }
.cart-drawer.is-open { transform:none; }
.cart-drawer__head { display:flex; align-items:center; justify-content:space-between; padding:20px 22px; border-bottom:1px solid var(--line); }
.cart-drawer__head h3 { font-size:1.15rem; }
.cart-drawer__close { width:38px; height:38px; display:grid; place-items:center; border:1px solid var(--line); border-radius:10px; background:transparent; font-size:1rem; cursor:pointer; }
.cart-drawer__close:hover { background:var(--hover); }
.cart-items { flex:1; overflow-y:auto; padding:16px 22px; display:grid; gap:16px; align-content:start; }
.cart-empty { color:var(--text-dim); text-align:center; padding:48px 0; }
.cart-row { display:grid; grid-template-columns:64px 1fr auto; gap:12px; align-items:start; }
.cart-row__img { width:64px; height:64px; border-radius:10px; object-fit:cover; border:1px solid var(--line); }
.cart-row__name { font-weight:700; font-size:.95rem; }
.cart-row__price { color:var(--text-dim); font-size:.82rem; margin-top:2px; }
.cart-row__qty { display:inline-flex; align-items:center; border:1px solid var(--line-strong); border-radius:999px; margin-top:8px; }
.cart-row__qty button { width:28px; height:28px; background:transparent; border:none; font-size:1.05rem; cursor:pointer; color:var(--text); }
.cart-row__qty button:hover { color:var(--accent); }
.cart-row__qty span { min-width:24px; text-align:center; font-weight:700; font-size:.85rem; }
.cart-row__right { text-align:right; }
.cart-row__line { font-weight:800; }
.cart-row__remove { background:none; border:none; color:var(--text-faint); font-size:.76rem; cursor:pointer; margin-top:6px; padding:0; }
.cart-row__remove:hover { color:var(--accent); }
.cart-foot { border-top:1px solid var(--line); padding:18px 22px; display:grid; gap:12px; }
.cart-foot[hidden] { display:none; }
.cart-foot__row { display:flex; justify-content:space-between; align-items:baseline; }
.cart-foot__total { font-size:1.4rem; font-weight:900; letter-spacing:-.02em; }
.cart-foot .btn { width:100%; }
.cart-note { font-size:.8rem; color:var(--text-dim); text-align:center; margin:0; }

/* language switcher (i18n) — custom dropdown */
.lang { position:relative; }
.lang__btn { display:inline-flex; align-items:center; gap:7px; height:42px; padding:0 12px; border:1px solid var(--line); border-radius:12px; background:var(--surface); color:var(--text); font:inherit; font-size:.85rem; font-weight:700; cursor:pointer; transition:border-color .2s; }
.lang__btn:hover { border-color:var(--line-strong); }
.lang__btn .globe { width:16px; height:16px; color:var(--accent); }
.lang__btn .chev { width:11px; height:11px; opacity:.55; transition:transform .2s var(--ease); }
.lang.is-open .lang__btn .chev { transform:rotate(180deg); }
.lang__menu { position:absolute; right:0; top:calc(100% + 8px); min-width:178px; background:var(--surface); border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow); padding:6px; display:none; z-index:80; }
.lang.is-open .lang__menu { display:block; animation:lang-in .16s var(--ease); }
@keyframes lang-in { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:none; } }
.lang__item { display:flex; align-items:center; gap:9px; width:100%; text-align:left; padding:9px 11px; border:none; background:transparent; border-radius:9px; font:inherit; font-size:.9rem; color:var(--text-dim); cursor:pointer; }
.lang__item:hover { background:var(--hover); color:var(--text); }
.lang__item b { color:var(--text); min-width:24px; font-size:.8rem; letter-spacing:.03em; }
.lang__item.is-active { color:var(--accent); }
.lang__item.is-active b { color:var(--accent); }

/* ============================================================
   Header / switcher responsive refinements (all device sizes)
   ============================================================ */
@media (max-width: 600px) {
  .site-header .site-header__inner { gap: 10px; }
  .site-header .site-header__actions { gap: 9px; }
  .site-header .brand__word { font-size: 1.15rem; }
}
@media (max-width: 420px) {
  .site-header .lang__btn { padding: 0 9px; gap: 5px; }
  .site-header .lang__btn .globe { display: none; }
  .site-header .site-header__actions { gap: 7px; }
  .cart-btn, .site-header .lang__btn { height: 40px; }
  .lang__menu { min-width: 160px; }
}
/* never let the language menu fall off a small screen */
@media (max-width: 360px) {
  .lang__menu { right: -6px; }
}
/* tighten the 7-item nav on narrow desktops (1025–1180px) before burger kicks in */
@media (max-width: 1180px) {
  .site-header .site-nav { gap: 20px; }
  .site-header .site-nav__link { font-size: .9rem; }
}

/* ============================================================
   Apple-style frosted glass top bar (overrides inline header
   via higher specificity: .site-header[data-header])
   ============================================================ */
.site-header[data-header] {
  background: rgba(255,255,255,.62);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid rgba(10,16,40,.06);
  box-shadow: none;
  transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header[data-header].is-scrolled {
  background: rgba(255,255,255,.8);
  border-bottom-color: rgba(10,16,40,.1);
  box-shadow: 0 6px 26px rgba(8,12,30,.07);
}
/* glassy announcement strip */
body .announcement {
  background: linear-gradient(90deg, var(--accent-700), var(--accent) 55%, var(--accent-600));
  -webkit-backdrop-filter: saturate(150%);
  backdrop-filter: saturate(150%);
}
/* give the glass something to refract: nudge hero glow up under the bar */
.hero { isolation: isolate; }

/* ============================================================
   Nav "Info" dropdown
   ============================================================ */
.nav-info { position: relative; }
.nav-info__btn { display: inline-flex; align-items: center; gap: 5px; background: none; border: none; cursor: pointer; color: var(--text-dim); font-weight: 600; }
.nav-info__btn:hover { color: var(--text); }
.nav-info__btn .chev { transition: transform .2s var(--ease); }
.nav-info.is-open .nav-info__btn .chev { transform: rotate(180deg); }
.nav-info__menu { position: absolute; left: 0; top: calc(100% + 14px); min-width: 190px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; display: none; z-index: 80; }
.nav-info.is-open .nav-info__menu { display: block; animation: lang-in .16s var(--ease); }
.nav-info__menu a { display: block; padding: 10px 12px; border-radius: 9px; font-size: .92rem; font-weight: 600; color: var(--text-dim); }
.nav-info__menu a:hover { background: var(--hover); color: var(--text); }

/* inside the mobile slide-in menu: show Info items inline (no floating dropdown) */
@media (max-width: 1024px) {
  .site-nav .nav-info { width: 100%; }
  .site-nav .nav-info__btn { width: 100%; justify-content: space-between; font-size: 1.2rem; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav .nav-info__menu { position: static; display: block; box-shadow: none; border: none; border-radius: 0; padding: 4px 0 8px 10px; min-width: 0; animation: none; }
  .site-nav .nav-info__menu a { padding: 10px 0; font-size: 1.05rem; }
}
