/* =========================================================
   Hamze General Trading: Main Stylesheet
   1. Tokens   2. Base   3. Utilities   4. Buttons
   5. Header   6. Hero   7. Stats   8. Sections
   9. Catalog  10. Process  11. About  12. Brands
   13. Form    14. FAQ   15. Contact  16. Footer
   17. FABs    18. Motion  19. Responsive
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand */
  --color-primary: #1E293B;
  --color-primary-900: #0F172A;
  --color-secondary: #334155;
  --color-accent: #DC2626;
  --color-accent-hover: #B91C1C;
  --color-on-accent: #FFFFFF;

  /* Surfaces */
  --color-bg: #F8FAFC;
  --color-card: #FFFFFF;
  --color-muted: #EEF2F6;
  --color-border: #E2E8F0;
  --color-fg: #0F172A;
  --color-fg-muted: #475569;

  /* Dark surfaces */
  --color-dark-fg: #F1F5F9;
  --color-dark-muted: #94A3B8;
  --color-dark-border: rgba(148, 163, 184, 0.18);

  /* Type */
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
  --font-serif: "Instrument Serif", Georgia, serif;

  /* Spacing */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;

  /* Misc */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .25);
  --shadow-lg: 0 25px 50px -12px rgba(15, 23, 42, .35);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 76px;
  --container: 1200px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  -webkit-tap-highlight-color: transparent;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-fg);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p a, .catalog__empty a { color: var(--color-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; margin: 0; letter-spacing: .01em; }
p { margin: 0 0 var(--space-4); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- 3. Utilities ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--space-5); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--space-4); top: -100px; z-index: 200; background: var(--color-accent); color: #fff; padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm); }
.skip-link:focus { top: var(--space-4); }

.icon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--lg { width: 26px; height: 26px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--color-accent); margin-bottom: var(--space-3);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.eyebrow--light { color: #F87171; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 46px; padding: 0 var(--space-5);
  font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  border: 2px solid transparent; border-radius: var(--radius-sm);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
  cursor: pointer; white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn--lg { min-height: 54px; padding: 0 var(--space-6); font-size: 19px; }
.btn--accent { background: var(--color-accent); color: var(--color-on-accent); box-shadow: 0 8px 20px -8px rgba(220, 38, 38, .6); }
.btn--accent:hover { background: var(--color-accent-hover); }
.btn--accent .icon { transition: transform .2s var(--ease); }
.btn--accent:hover .icon { transform: translateX(3px); }
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-900); }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn--outline { color: var(--color-primary); border-color: var(--color-primary); background: transparent; }
.btn--outline:hover { background: var(--color-primary); color: #fff; }
.btn--wa { background: #16A34A; color: #fff; box-shadow: 0 8px 20px -8px rgba(22, 163, 74, .6); }
.btn--wa:hover { background: #15803D; }

/* ---------- 5. Header ---------- */
.topbar { background: var(--color-primary-900); color: var(--color-dark-muted); font-size: 14px; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: var(--space-4); }
.topbar__info { display: flex; gap: var(--space-5); }
.topbar a, .topbar__hours { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 40px; }
.topbar a:hover { color: #fff; }
.topbar .icon { width: 15px; height: 15px; color: #F87171; }

.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.header.is-scrolled { border-color: var(--color-border); box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: var(--space-3); }
.logo__mark { display: block; width: auto; height: 58px; object-fit: contain; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__text strong { font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: .08em; color: var(--color-primary-900); }
.logo__text small { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--color-fg-muted); margin-top: 3px; }
.logo--light .logo__text strong { color: #fff; }
.logo--light .logo__text small { color: var(--color-dark-muted); }

.nav { display: flex; align-items: center; gap: var(--space-6); }
.nav__list { display: flex; gap: var(--space-1); }
.nav__link {
  position: relative; display: block; padding: var(--space-2) var(--space-3);
  font-weight: 600; font-size: 16px; color: var(--color-secondary);
  transition: color .2s;
}
.nav__link::after {
  content: ""; position: absolute; left: var(--space-3); right: var(--space-3); bottom: 2px; height: 2px;
  background: var(--color-accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--color-primary-900); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: var(--space-2); }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 46px; padding: 0 var(--space-4); border: 0; border-radius: var(--radius-sm);
  background: var(--color-accent); color: #fff;
  font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  box-shadow: 0 8px 20px -8px rgba(220, 38, 38, .6); transition: background-color .2s;
}
.cart-btn:hover { background: var(--color-accent-hover); }
.cart-btn.is-bumped { animation: bump .4s var(--ease); }
.cart-btn__count {
  position: absolute; top: -7px; right: -7px; display: grid; place-items: center;
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--color-primary-900); color: #fff; border: 2px solid #fff;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0;
}
.cart-btn__count[hidden] { display: none; }
.nav-toggle { display: none; width: 46px; height: 46px; place-items: center; border: 0; background: transparent; color: var(--color-primary-900); border-radius: var(--radius-sm); }

/* ---------- 5b. Entrance: filmed truck arrival (video + scrubbed crane frames, js/entrance.js) ---------- */
/* JS sets --intro, --yard, --xray (copy phases), --landed (after the unload), --xr (x-ray layer), --away (pull-away), --out (hand-off) */
.arrival { position: relative; height: 380vh; background: #0B1120; color: #fff; }
.arrival__stage {
  --intro: 1; --yard: 0; --xray: 0; --landed: 0; --xr: 0; --away: 0; --out: 0; --bw: 100%; --bx: 0px; --by: 0px;
  position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h));
  overflow: hidden; isolation: isolate;
  /* first frame of the film while it loads, over a painted sunset */
  background: url("../images/arrival/poster.webp") 70% 100% / cover no-repeat,
    linear-gradient(180deg, #0B1120 0%, #243049 38%, #7C2D12 60%, #D97706 72%, #FCD34D 78%, #4a3a2c 79%, #2b2622 100%);
}
.arrival__stage > * { position: absolute; }
/* the video stays rendered (browsers stop decoding hidden video) but the canvas paints over it */
.arrival__video { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.arrival__canvas { inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .8s var(--ease); transform: scale(calc(1 + var(--away) * .14)); transform-origin: 60% 55%; }
/* X-ray: a blueprint of the aerial shot with a grid and a scan line */
.arrival__xr {
  inset: 0; opacity: var(--xr); pointer-events: none; transform: scale(calc(1 + var(--away) * .14)); transform-origin: 60% 55%;
  background: url("../images/arrival/xray.webp") var(--bx) var(--by) / var(--bw) auto no-repeat, #060E20;
}
.arrival__xr::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background: linear-gradient(rgba(56, 189, 248, .22) 1px, transparent 1px) 0 0 / 48px 48px, linear-gradient(90deg, rgba(56, 189, 248, .22) 1px, transparent 1px) 0 0 / 48px 48px;
}
.arrival__xr::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 22%;
  background: linear-gradient(180deg, transparent, rgba(125, 211, 252, .16) 85%, rgba(186, 230, 253, .55));
  animation: xrScan 3.2s linear infinite;
}
@keyframes xrScan { from { transform: translateY(-100%); } to { transform: translateY(460%); } }
.arrival__stage.is-ready .arrival__canvas { opacity: 1; }
.arrival__shade { inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(5, 8, 15, .72) 0%, rgba(5, 8, 15, .25) 45%, transparent 70%), linear-gradient(180deg, rgba(5, 8, 15, .45), transparent 22%); }

.arrival__top, .arrival__bottom { left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); }
.arrival__top { top: 0; padding-top: var(--space-5); }
.arrival__kicker, .arrival__meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.arrival__kicker { display: inline-flex; align-items: center; gap: var(--space-2); color: #FDE68A; }
.arrival__kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #F59E0B; box-shadow: 0 0 10px #F59E0B; }
.arrival__kicker span, .arrival__meta { color: #CBD5E1; }

/* Copy blocks for each phase */
.arrival__copy { left: 0; right: 0; top: 50%; transform: translateY(-50%); pointer-events: none; }
.arrival__copy > * { max-width: 560px; }
.arrival__copy--intro { opacity: var(--intro); transform: translateY(calc(-50% - (1 - var(--intro)) * 40px)); }
.arrival__copy--intro .arrival__actions { pointer-events: auto; }
.arrival__copy--yard { opacity: var(--yard); top: 14%; transform: translateY(calc((1 - var(--yard)) * 24px)); }
.arrival__copy--xray { opacity: var(--xray); transform: translateY(calc(-50% + (1 - var(--xray)) * 24px)); }
.arrival__label { display: inline-flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-4); font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #CBD5E1; }
.arrival__label b { padding: 3px 8px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 4px; font-weight: 400; color: #fff; }
.arrival__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(44px, 5.8vw, 88px); line-height: .96; letter-spacing: -.01em; margin-bottom: var(--space-4); text-shadow: 0 4px 30px rgba(0, 0, 0, .45); }
.arrival__title em { font-style: italic; color: #FCD34D; }
.arrival__copy--xray .arrival__title em { color: #38BDF8; }
.arrival__lead { font-size: 19px; color: #E2E8F0; max-width: 44ch; margin-bottom: var(--space-5); text-shadow: 0 2px 16px rgba(0, 0, 0, .5); }
.arrival__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.arrival__actions .btn--ghost { background: rgba(5, 8, 15, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.js .arrival__copy--intro > * { animation: lineUp 1s var(--ease) both; }
.js .arrival__copy--intro > :nth-child(2) { animation-delay: .15s; }
.js .arrival__copy--intro > :nth-child(3) { animation-delay: .3s; }
.js .arrival__copy--intro > :nth-child(4) { animation-delay: .45s; }

.arrival__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); max-width: 480px; }
.arrival__stats li { padding: var(--space-3) var(--space-4); border: 1px solid rgba(56, 189, 248, .35); border-radius: var(--radius); background: rgba(5, 11, 26, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.arrival__stats strong { display: block; font-family: var(--font-display); font-size: 40px; line-height: 1; color: #38BDF8; }
.arrival__stats span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #CBD5E1; }

/* Labels pinned to the pallets in the film (positioned by JS) */
.yard-label {
  left: 0; top: 0; z-index: 3; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 var(--space-3);
  border-radius: 999px; background: rgba(15, 23, 42, .85); border: 1px solid rgba(252, 211, 77, .5);
  font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; white-space: nowrap;
  opacity: 0; pointer-events: none; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .7);
}
.yard-label b { font-family: var(--font-mono); font-size: 11px; font-weight: 400; color: #FCD34D; }
.yard-label::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 16px; background: rgba(252, 211, 77, .7); }
.yard-label:hover { background: var(--color-accent); border-color: var(--color-accent); }

.arrival__bottom { bottom: 0; padding-bottom: var(--space-5); }
.arrival__time { display: flex; align-items: center; gap: var(--space-3); font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #CBD5E1; }
.arrival__track { position: relative; width: clamp(90px, 16vw, 220px); height: 1px; background: rgba(255, 255, 255, .25); }
.arrival__bar { position: absolute; left: 0; top: -.5px; height: 2px; width: 0; background: #FCD34D; }
.arrival__hint { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.arrival__hint .icon { width: 14px; height: 14px; animation: nudgeDown 1.8s ease-in-out infinite; }
.arrival__fade { inset: 0; background: var(--color-primary-900); opacity: var(--out); pointer-events: none; }

/* Film unavailable: keep the copy on the poster */
.arrival__stage.is-fallback .arrival__copy--intro { opacity: 1; }

@media (max-width: 900px) {
  .arrival { height: 340vh; }
  .arrival__shade { background: linear-gradient(180deg, rgba(5, 8, 15, .75) 0%, rgba(5, 8, 15, .3) 45%, transparent 65%); }
  .arrival__copy { top: var(--space-8); transform: none; }
  .arrival__copy--intro { transform: translateY(calc((1 - var(--intro)) * -30px)); }
  .arrival__copy--xray { transform: translateY(calc((1 - var(--xray)) * 24px)); }
  .arrival__title { font-size: clamp(38px, 11vw, 56px); }
  .arrival__lead { font-size: 16px; }
  .arrival__meta { display: none; }
  .arrival__actions .btn { flex: 1 1 auto; min-height: 48px; }
  #arrivalReplay, .arrival__hint { display: none; }
  .arrival__label { margin-bottom: var(--space-3); }
  .arrival__lead { margin-bottom: var(--space-4); }
  .yard-label { font-size: 13px; min-height: 34px; }
  .arrival__time { flex: 1; }
  .arrival__track { flex: 1; }
}

/* ---------- 6. Hero ---------- */
.hero {
  --oil: #F59E0B; --oil-deep: #B45309; --oil-light: #FDE68A;
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(ellipse 45% 50% at 74% 46%, rgba(245, 158, 11, .16) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 75% 40%, #334155 0%, var(--color-primary-900) 60%);
  color: #fff;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto;
  min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h));
  padding-bottom: calc(var(--space-7) + var(--space-5)); /* room for the stats card that overlaps */
}
.hero__oil { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero__grid-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background-image:
    linear-gradient(rgba(148, 163, 184, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero__inner > *, .about > *, .faq > *, .contact > * { min-width: 0; }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: var(--space-7); padding-block: var(--space-4); }

/* Reel-style frame: thin meta row on top, category timeline strip at the bottom */
.hero__meta, .hero__strip { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); }
.hero__meta { padding-top: var(--space-5); font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--color-dark-muted); }
.hero__meta span:first-child::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: var(--space-3); border-radius: 50%; background: var(--oil); box-shadow: 0 0 10px var(--oil); vertical-align: middle; }
.hero__label {
  display: inline-flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-4);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--color-dark-muted);
  animation: fadeIn .8s var(--ease) both;
}
.hero__label b { padding: 3px 8px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 4px; color: #fff; font-weight: 400; }

.hero__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(56px, min(6.2vw, 10.5vh), 100px); line-height: .92; letter-spacing: -.015em; margin-bottom: var(--space-5); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero__title .line--gold { overflow: visible; }
.hero__title .line:not(.line--gold) > * { display: inline-block; animation: lineUp 1s var(--ease) both; }
.hero__title .line:nth-child(2) > * { animation-delay: .3s; }
.hero__title .line:nth-child(3) > * { animation-delay: .45s; }
.hero__title em { font-style: italic; color: #E2E8F0; }

/* Liquid-gold headline word with a slow sheen and a falling drop */
.oil-word {
  position: relative; display: inline-block; padding-right: .04em;
  background: linear-gradient(100deg, var(--oil-deep) 0%, var(--oil) 22%, var(--oil-light) 38%, var(--oil) 52%, var(--oil-deep) 72%, var(--oil) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 8px 28px rgba(245, 158, 11, .28));
  transform-origin: 50% 100%;
  animation: wordIn 1.1s var(--ease) .15s both, oilShine 7s linear 1.2s infinite;
}
.oil-word::before, .oil-word::after {
  content: ""; position: absolute; left: 71%; top: 86%;
  background: radial-gradient(circle at 35% 30%, var(--oil-light), var(--oil) 45%, var(--oil-deep));
}
.oil-word::before { width: .14em; height: .09em; border-radius: 0 0 50% 50%; transform: translateX(-50%); }
.oil-word::after {
  width: .12em; height: .15em; margin-left: -.06em;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  transform-origin: 50% 0; opacity: 0;
  animation: drip 4.8s cubic-bezier(.55, 0, .9, .4) 1.6s infinite;
}

.rotator { display: inline-block; color: var(--color-accent); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.rotator.is-out { opacity: 0; transform: translateY(12px) rotateX(60deg); }
.hero__lead { font-size: 19px; color: #CBD5E1; max-width: 54ch; margin-bottom: var(--space-6); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-6); }

/* Quick viscosity finder */
.grade-finder { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); }
.grade-finder__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--color-dark-muted); }
.grade-finder__list { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.grade {
  min-height: 40px; padding: 0 var(--space-3); border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, .35); background: rgba(245, 158, 11, .06);
  font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--oil-light);
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.grade:hover, .grade:focus-visible { background: var(--oil); color: var(--color-primary-900); transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(245, 158, 11, .8); }

.hero__strip { padding-top: var(--space-4); border-top: 1px solid rgba(255, 255, 255, .1); flex-wrap: wrap; }
.hero__cats { display: flex; gap: var(--space-5); min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.hero__cats a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--color-dark-muted);
  transition: color .25s var(--ease);
}
.hero__cats a b { font-weight: 400; margin-right: 6px; color: var(--oil); }
.hero__cats a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.hero__cats a:hover, .hero__cats a:focus-visible { color: #fff; }
.hero__cats a:hover::after, .hero__cats a:focus-visible::after { transform: scaleX(1); }
.hero__time { display: flex; align-items: center; gap: var(--space-3); font-family: var(--font-mono); font-size: 11px; color: var(--color-dark-muted); }
.hero__track { position: relative; width: clamp(80px, 12vw, 180px); height: 1px; background: rgba(255, 255, 255, .2); }
.hero__bar { position: absolute; left: 0; top: -.5px; height: 2px; width: 12.5%; background: var(--oil); transition: width .4s var(--ease); }
.hero__explore { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-left: var(--space-3); letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.hero__explore .icon { width: 14px; height: 14px; animation: nudgeDown 1.8s ease-in-out infinite; }

/* 3D product showcase: JS turns --ring, CSS trig places each can on the circle */
.hero__visual { position: relative; width: 100%; max-width: min(540px, 68vh); justify-self: center; }
.showcase {
  --r: 190px; --ring: 0deg; --tx: 0deg; --ty: 0deg; --px: 0; --py: 0;
  position: relative; aspect-ratio: 1 / .92; perspective: 820px;
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.showcase.is-dragging { cursor: grabbing; }
.showcase__glow {
  position: absolute; inset: 12% 8% 18%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(245, 158, 11, .42), rgba(220, 38, 38, .14) 45%, transparent 70%);
  filter: blur(34px); animation: glow 6s ease-in-out infinite;
}
.showcase__stage {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(calc(-13deg + var(--tx))) rotateY(var(--ty));
}
.showcase__floor {
  position: absolute; left: 50%; top: 72%; width: calc(var(--r) * 3.1); aspect-ratio: 1.3; border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(90deg);
  background:
    radial-gradient(circle, rgba(245, 158, 11, .30) 0 16%, transparent 17% 33%, rgba(148, 163, 184, .16) 33.5% 34.5%, transparent 35% 48%, rgba(245, 158, 11, .22) 48.5% 49.5%, transparent 50%),
    radial-gradient(circle, rgba(2, 6, 23, .85) 0, transparent 68%);
}
.showcase__floor::after {
  content: ""; position: absolute; inset: 9%; border-radius: 50%;
  border: 2px dashed rgba(245, 158, 11, .35); animation: spin 36s linear infinite;
}
.can {
  --a: calc(var(--i) * 45deg + var(--ring));
  --c: cos(var(--a));
  position: absolute; left: 50%; top: 72%; width: calc(var(--r) * .7);
  padding: 0; border: 0; background: none; cursor: inherit; transform-origin: 50% 100%;
  transform: translate(-50%, -100%) translate3d(calc(sin(var(--a)) * var(--r) * 1.32), 0, calc(var(--c) * var(--r)));
  filter: brightness(calc(.42 + .58 * (var(--c) + 1) / 2)) saturate(calc(.6 + .4 * (var(--c) + 1) / 2));
}
.can img {
  display: block; width: 100%; height: auto; pointer-events: none;
  filter: drop-shadow(0 22px 22px rgba(0, 0, 0, .5));
  -webkit-box-reflect: below 4px linear-gradient(transparent 72%, rgba(255, 255, 255, .16));
}
.can.is-front img { animation: canBob 3.6s ease-in-out infinite; }
.can:focus-visible { outline: none; }
.can:focus-visible img { outline: 2px solid var(--oil); outline-offset: 6px; border-radius: 10px; }

/* Glass info cards around the showcase, drifting with the pointer */
.float-card {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius);
  background: rgba(15, 23, 42, .62); color: #fff;
  border: 1px solid rgba(245, 158, 11, .22);
  backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .7);
  translate: calc(var(--px) * var(--d, 16px)) calc(var(--py) * var(--d, 16px));
  animation: float 6s ease-in-out infinite; pointer-events: none;
}
.float-card strong { display: block; font-family: var(--font-display); font-size: 19px; line-height: 1.1; }
.float-card small { font-family: var(--font-mono); font-size: 12px; color: var(--color-dark-muted); }
.float-card__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--radius-sm); background: rgba(245, 158, 11, .16); color: var(--oil); }
.float-card--1 { top: 2%; left: -4%; --d: 26px; }
.float-card--2 { top: 12%; right: -6%; --d: -20px; animation-delay: -2s; }
.float-card--3 { bottom: -3%; right: -6%; --d: 14px; animation-delay: -4s; }

.showcase__hint {
  position: absolute; left: 36%; bottom: 1%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-dark-muted); white-space: nowrap; pointer-events: none;
  transition: opacity .5s var(--ease);
}
.showcase__hint::before, .showcase__hint::after { content: "\2190"; display: inline-block; margin-right: .6em; animation: nudge 1.6s ease-in-out infinite; }
.showcase__hint::after { content: "\2192"; margin: 0 0 0 .6em; animation-direction: reverse; }
.showcase.is-touched .showcase__hint { opacity: 0; }

.showcase__bar { display: flex; align-items: center; justify-content: center; gap: var(--space-4); margin-top: var(--space-3); }
.showcase__nav {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .04); color: #fff;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.showcase__nav:hover { border-color: var(--oil); background: rgba(245, 158, 11, .12); }
#canPrev .icon { transform: rotate(180deg); }
.showcase__info { display: grid; justify-items: center; gap: 2px; min-width: 0; min-height: 44px; padding: 0 var(--space-2); border: 0; background: none; color: #fff; text-align: center; }
.showcase__name { font-family: var(--font-display); font-size: 24px; font-weight: 700; line-height: 1.1; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.showcase__name.is-swap { opacity: 0; transform: translateY(6px); }
.showcase__cta { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--oil); }
.showcase__cta .icon { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.showcase__info:hover .showcase__cta .icon { transform: translateX(3px); }

/* ---------- 7. Stats ---------- */
.stats { position: relative; z-index: 2; margin-top: calc(var(--space-7) * -1); }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--color-card); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 0; max-width: calc(var(--container) - 48px);
}
.stat { padding: var(--space-6) var(--space-5); text-align: center; border-right: 1px solid var(--color-border); }
.stat:last-child { border-right: 0; }
.stat__num { display: block; font-family: var(--font-display); font-size: 52px; font-weight: 800; line-height: 1; color: var(--color-accent); font-variant-numeric: tabular-nums; }
.stat__label { font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--color-fg-muted); }

/* ---------- 7a. Lukoil in motion: scroll-scrubbed video on a 3D screen ---------- */
/* JS drives: --rx (tilt back), --s (scale), --ty (lift), --mx/--my (pointer tilt), --t1/--t2 (captions), --end (CTA) */
.reel { position: relative; height: 420vh; margin-top: var(--space-8); background: #05080F; color: #fff; }
.reel__stage {
  --rx: 34deg; --tilt: 1; --s: .74; --ty: 60px; --mx: 0deg; --my: 0deg; --title: 1; --t1: 0; --t2: 0; --end: 0;
  position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h));
  overflow: hidden; isolation: isolate;
  display: grid; grid-template-rows: auto auto 1fr auto;
  background:
    radial-gradient(ellipse 60% 50% at 50% 60%, rgba(220, 38, 38, .12), transparent 70%),
    radial-gradient(ellipse 80% 70% at 50% 40%, #111827 0%, #05080F 70%);
}
.reel__top { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding-top: var(--space-5); }

.reel__title {
  text-align: center; font-family: var(--font-serif); font-weight: 400; line-height: .95; letter-spacing: -.01em;
  font-size: clamp(40px, min(5.4vw, 8vh), 84px); margin-top: var(--space-3);
  opacity: var(--title); transform: translateY(calc((1 - var(--title)) * -24px));
}
.reel__title .line { display: inline-block; overflow: hidden; padding-bottom: .06em; }
.reel__title em { font-style: italic; color: #F87171; }

.reel__scene { position: relative; display: grid; place-items: center; min-height: 0; perspective: 1400px; perspective-origin: 50% 20%; }
.reel__screen {
  position: relative; width: min(1100px, calc(100vw - 48px), calc((100svh - var(--header-h) - 250px) * 1.774));
  aspect-ratio: 848 / 478; border-radius: 18px; overflow: hidden;
  background: #0B0F19;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 50px 100px -30px rgba(0, 0, 0, .9), 0 0 80px -20px rgba(220, 38, 38, .35);
  transform-origin: 50% 100%;
  transform: translateY(var(--ty)) rotateX(calc(var(--rx) + var(--mx))) rotateY(var(--my)) scale(var(--s));
  will-change: transform;
}
.reel__canvas { display: block; width: 100%; height: 100%; }
/* Light sweeping across the glass as the screen swings up */
.reel__glare {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .14) 45%, transparent 60%);
  background-size: 250% 100%; background-position: calc(var(--tilt) * 100%) 0;
  opacity: calc(var(--tilt) + .15);
}
/* Soft reflection on the floor under the screen */
.reel__floor {
  position: absolute; left: 50%; bottom: 2%; width: min(900px, 80vw); height: 60px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(220, 38, 38, .28), transparent 70%); filter: blur(20px); pointer-events: none;
  opacity: calc(1 - var(--tilt) * .85);
}

.reel__cap {
  position: absolute; left: 4%; bottom: 8%; max-width: 44%; padding: var(--space-3) var(--space-4);
  border-left: 2px solid var(--color-accent); background: linear-gradient(90deg, rgba(5, 8, 15, .85), rgba(5, 8, 15, .2));
  font-family: var(--font-display); font-size: clamp(18px, 2vw, 26px); font-weight: 700; line-height: 1.15; text-transform: uppercase; letter-spacing: .02em;
  pointer-events: none;
}
.reel__cap b { display: block; margin-bottom: 4px; font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: .14em; color: #F87171; }
.reel__cap span { font-family: var(--font-body); font-size: clamp(13px, 1.2vw, 16px); font-weight: 500; text-transform: none; letter-spacing: 0; color: #CBD5E1; }
.reel__cap--1 { opacity: var(--t1); transform: translateX(calc((1 - var(--t1)) * -24px)); }
.reel__cap--2 { left: auto; right: 4%; top: 8%; bottom: auto; border-left: 0; border-right: 2px solid var(--color-accent); text-align: right;
  background: linear-gradient(270deg, rgba(5, 8, 15, .85), rgba(5, 8, 15, .2));
  opacity: var(--t2); transform: translateX(calc((1 - var(--t2)) * 24px)); }

.reel__loader {
  position: absolute; right: var(--space-3); bottom: var(--space-3); padding: 4px 10px; border-radius: 999px;
  background: rgba(0, 0, 0, .6); font-family: var(--font-mono); font-size: 11px; color: var(--color-dark-muted); transition: opacity .4s;
}
.reel__loader.is-done { opacity: 0; }

.reel__bottom { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding-block: var(--space-4) var(--space-5); }
.reel__cta { opacity: var(--end); transform: translateY(calc((1 - var(--end)) * 16px)); pointer-events: none; }
.reel__stage.is-end .reel__cta { pointer-events: auto; }

@media (max-width: 900px) {
  .reel { height: 340vh; }
  /* Taller frame on phones: the video is cropped to fill it, so the cans stay big */
  .reel__screen { aspect-ratio: 4 / 5; width: min(calc(100vw - 32px), calc((100svh - var(--header-h) - 230px) * .8)); border-radius: 14px; }
  .reel__cap { max-width: 78%; padding: var(--space-2) var(--space-3); font-size: 17px; }
  .reel__cap span { font-size: 13px; }
  .reel__cap--1 { bottom: 5%; }
  .reel__cap--2 { top: 5%; }
  .reel__bottom { flex-direction: column; align-items: stretch; }
  .reel__cta { align-self: center; }
}

/* ---------- 7b. Oil range scroll story ---------- */
/* The section is tall; the stage sticks under the header while scroll progress drives everything inside */
.story { position: relative; height: 560vh; background: #0B1120; color: #fff; }
.story__stage {
  position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h));
  overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse 70% 60% at 70% 40%, #1E293B 0%, #0B1120 70%);
  display: grid; grid-template-rows: auto 1fr auto;
}
.story__liquid { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.story__shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(11, 17, 32, .85) 0%, rgba(11, 17, 32, .35) 45%, transparent 70%); }
.story__num {
  position: absolute; right: -2vw; top: 50%; transform: translateY(-50%); z-index: -1;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(220px, 34vw, 520px); line-height: .8;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .08); pointer-events: none;
}

.story__top, .story__bottom { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); }
.story__top { padding-top: var(--space-5); }
.story__kicker, .story__meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--color-dark-muted); }
.story__kicker { display: inline-flex; align-items: center; gap: var(--space-2); color: #F59E0B; }
.story__kicker::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.story__kicker span, .story__meta span { color: var(--color-dark-muted); }

.story__body { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 0; }
.story__copy { position: relative; height: 100%; min-height: 360px; }

/* Each chapter: JS sets --in (0→1 entering) and --out (0→1 leaving) */
.chapter {
  --in: 0; --out: 0;
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  opacity: calc(1 - var(--out)); transform: translateY(calc(var(--out) * -48px));
}
.chapter:not(.is-active) { pointer-events: none; }
.chapter__eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--color-dark-muted);
  opacity: var(--in);
}
.chapter__eyebrow b { padding: 3px 8px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 4px; color: #fff; font-weight: 400; }
.chapter__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(44px, 5.6vw, 84px); line-height: .98; letter-spacing: -.01em; margin-bottom: var(--space-4); }
.chapter__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.chapter__title .line > span { display: block; transform: translateY(calc((1 - clamp(0, calc(var(--in) * 1.25), 1)) * 110%)); }
.chapter__title .line + .line > span { transform: translateY(calc((1 - clamp(0, calc(var(--in) * 1.4 - .4), 1)) * 110%)); font-style: italic; color: var(--tint, #F59E0B); }
.chapter__desc { max-width: 46ch; font-size: 18px; color: #CBD5E1; margin-bottom: var(--space-5); opacity: clamp(0, calc(var(--in) * 1.6 - .5), 1); }
.chapter__grades { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-5); opacity: clamp(0, calc(var(--in) * 1.8 - .7), 1); }
.chapter__grades li { font-family: var(--font-mono); font-size: 12px; padding: 4px 10px; border: 1px dashed rgba(255, 255, 255, .25); border-radius: var(--radius-sm); color: #E2E8F0; }
.chapter__cta { align-self: flex-start; opacity: clamp(0, calc(var(--in) * 2 - 1), 1); }

/* Product shelf: cans rise out of the oil, drift, then lift away */
.story__shelf { position: relative; height: 100%; min-height: 320px; perspective: 900px; }
.shelf__item {
  --in: 0; --out: 0; --drift: 0;
  position: absolute; bottom: 14%; width: var(--w, 30%); left: var(--x, 35%);
  transform-origin: 50% 100%;
  transform:
    translateY(calc((1 - var(--in)) * 140px - var(--out) * 180px))
    rotateY(calc(var(--drift) * 1deg))
    scale(calc(.82 + var(--in) * .18 + var(--out) * .08));
  opacity: calc(var(--in) * (1 - var(--out)));
  filter: blur(calc((1 - var(--in)) * 8px + var(--out) * 10px)) drop-shadow(0 30px 30px rgba(0, 0, 0, .55));
  will-change: transform, opacity, filter;
}
.shelf__item img { display: block; width: 100%; height: auto; -webkit-box-reflect: below 2px linear-gradient(transparent 78%, rgba(255, 255, 255, .14)); }
.shelf__item--round img { border-radius: 50%; box-shadow: 0 0 0 6px rgba(255, 255, 255, .06), 0 0 60px var(--tint, #F59E0B); -webkit-box-reflect: unset; }

/* Chapter tabs with per-chapter progress underline, like a video timeline */
.story__bottom { flex-wrap: wrap; padding-bottom: var(--space-5); }
.story__tabs { display: flex; gap: var(--space-5); min-width: 0; }
.story__tab {
  --p: 0; position: relative; min-width: 44px; min-height: 44px; padding: 0; border: 0; background: none; text-align: left;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--color-dark-muted); white-space: nowrap;
  transition: color .3s var(--ease);
}
.story__tab::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: calc(var(--p) * 100%); background: #fff; }
.story__tab b { font-weight: 400; margin-right: 6px; }
.story__tab.is-active, .story__tab:hover { color: #fff; }
.story__time { display: flex; align-items: center; gap: var(--space-3); font-family: var(--font-mono); font-size: 11px; color: var(--color-dark-muted); }
.story__track { position: relative; width: clamp(80px, 16vw, 220px); height: 1px; background: rgba(255, 255, 255, .2); }
.story__bar { position: absolute; left: 0; top: -.5px; height: 2px; width: 0; background: #fff; }
.story__hint { margin-left: var(--space-3); letter-spacing: .14em; text-transform: uppercase; }

@media (max-width: 900px) {
  .story { height: 520vh; }
  .story__shade { background: linear-gradient(180deg, rgba(11, 17, 32, .9) 0%, rgba(11, 17, 32, .4) 55%, transparent 80%); }
  .story__body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .story__copy { min-height: 330px; height: auto; }
  .chapter { justify-content: flex-start; padding-top: var(--space-4); }
  .chapter__desc { font-size: 16px; margin-bottom: var(--space-4); }
  .chapter__grades { margin-bottom: var(--space-4); }
  .story__shelf { min-height: 0; }
  .shelf__item { bottom: 6%; }
  .story__meta, .story__hint { display: none; }
  .story__tabs { gap: var(--space-4); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .story__tab:not(.is-active) span { display: none; }
  .story__time { width: 100%; }
  .story__track { flex: 1; }
}

/* ---------- 8. Sections ---------- */
.section { padding: var(--space-9) 0; }
.section--muted { background: var(--color-muted); }
.section--dark { background: var(--color-primary-900); color: var(--color-dark-fg); }
.section--dark .section__lead { color: var(--color-dark-muted); }
.section__head { max-width: 680px; margin-bottom: var(--space-7); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__title { font-size: clamp(34px, 4.4vw, 52px); font-weight: 800; text-transform: uppercase; margin-bottom: var(--space-4); }
.section__lead { font-size: 18px; color: var(--color-fg-muted); }

/* ---------- 9. Catalog ---------- */
.cat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; gap: var(--space-4); margin-bottom: var(--space-7); }
.cat-tile--wide { grid-column: span 2; }
.cat-tile {
  position: relative; display: block; overflow: hidden; padding: 0; border: 0; border-radius: var(--radius);
  background: var(--color-primary); color: #fff; text-align: left;
  box-shadow: var(--shadow-sm); transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 23, 42, 0) 35%, rgba(15, 23, 42, .92) 100%); }
.cat-tile:hover { box-shadow: var(--shadow-lg); }
.cat-tile:hover img { transform: scale(1.06); }
.cat-tile__body { position: absolute; left: var(--space-5); right: 72px; bottom: var(--space-5); z-index: 1; display: flex; flex-direction: column; }
.cat-tile__name { font-family: var(--font-display); font-size: 30px; font-weight: 800; text-transform: uppercase; line-height: 1.05; }
.cat-tile__meta { font-size: 14px; color: #CBD5E1; }
.cat-tile__arrow {
  position: absolute; right: var(--space-5); bottom: var(--space-5); z-index: 1;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .15); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background-color .25s, transform .25s var(--ease);
}
.cat-tile:hover .cat-tile__arrow, .cat-tile.is-active .cat-tile__arrow { background: var(--color-accent); transform: translateX(3px); }
.cat-tile.is-active { outline: 3px solid var(--color-accent); outline-offset: 3px; }
.cat-tile__num {
  position: absolute; top: var(--space-4); left: var(--space-5); z-index: 1;
  font-family: var(--font-mono); font-size: 13px; font-weight: 700; letter-spacing: .08em;
  padding: 4px 10px; border-radius: 999px; background: var(--color-accent); color: #fff;
}

.catalog__toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-4); margin-bottom: var(--space-6); }
.tabs { display: flex; flex-wrap: wrap; gap: var(--space-2); min-width: 0; max-width: 100%; }
.tab {
  min-height: 44px; padding: 0 var(--space-4);
  font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-card); color: var(--color-secondary);
  transition: background-color .2s, color .2s, border-color .2s;
}
.tab:hover { border-color: var(--color-primary); color: var(--color-primary-900); }
.tab.is-active { background: var(--color-primary-900); border-color: var(--color-primary-900); color: #fff; }

.search {
  display: flex; align-items: center; gap: var(--space-2);
  min-height: 46px; padding: 0 var(--space-4); min-width: 260px;
  border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-card); color: var(--color-fg-muted);
  transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(30, 41, 59, .12); }
.search input { flex: 1; border: 0; outline: 0; background: transparent; min-height: 44px; color: var(--color-fg); }

/* Oils sub-filters (brand / type) */
.subfilters {
  display: grid; gap: var(--space-3); margin: calc(var(--space-2) * -1) 0 var(--space-6);
  padding: var(--space-4) var(--space-5); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  background: var(--color-card); box-shadow: var(--shadow-sm);
}
.subfilters[hidden] { display: none; }
.subfilters:not([hidden]) { animation: cardIn .35s var(--ease) both; }
.subfilter { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.subfilter__label { flex: none; width: 56px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-fg-muted); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); min-width: 0; }
.chip {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 40px; padding: 0 var(--space-2) 0 var(--space-4);
  border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-bg);
  font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--color-secondary);
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover:not(:disabled) { border-color: var(--color-primary); color: var(--color-primary-900); }
.chip.is-active { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.chip:disabled { opacity: .45; cursor: not-allowed; }
.chip__count { min-width: 24px; padding: 2px 7px; border-radius: 999px; background: var(--color-muted); font-family: var(--font-mono); font-size: 11px; text-align: center; color: var(--color-fg-muted); }
.chip.is-active .chip__count { background: rgba(255, 255, 255, .22); color: #fff; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-5); }
.product {
  position: relative; display: flex; flex-direction: column;
  background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: var(--space-5); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  animation: cardIn .4s var(--ease) both;
}
.product::before {
  content: ""; position: absolute; z-index: 1; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--color-accent); transform: scaleY(0); transform-origin: bottom; transition: transform .3s var(--ease);
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.product:hover::before { transform: scaleY(1); }
@media (hover: none) {
  .product:hover { transform: none; box-shadow: none; border-color: var(--color-border); }
  .product:hover .product__media img { transform: none; }
}
.product__media { position: relative; margin: calc(var(--space-5) * -1) calc(var(--space-5) * -1) var(--space-4); aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-muted); }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product:hover .product__media img { transform: scale(1.06); }
.product__media .product__tag { position: absolute; top: var(--space-3); left: var(--space-3); background: rgba(255, 255, 255, .92); box-shadow: 0 0 0 1px var(--color-border), var(--shadow-sm); color: var(--color-primary-900); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.product__tag { white-space: nowrap; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; background: var(--color-muted); color: var(--color-fg-muted); }
.product h3 { font-size: 24px; font-weight: 700; margin-bottom: var(--space-2); }
.product p { font-size: 15px; color: var(--color-fg-muted); margin-bottom: var(--space-4); }
.product__specs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--space-5); }
.product__specs li { font-family: var(--font-mono); font-size: 12px; padding: 3px 8px; border: 1px dashed var(--color-border); border-radius: var(--radius-sm); color: var(--color-secondary); }
.product__cta {
  margin-top: auto; display: inline-flex; align-items: center; gap: var(--space-2); align-self: flex-start;
  min-height: 44px; padding: 0; border: 0; background: none;
  font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--color-accent);
}
.product__cta:hover { color: var(--color-accent-hover); }
.product__cta:active .icon { transform: scale(.85); }
.product__qty { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--color-accent); color: #fff; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0; }
.product__qty[hidden] { display: none; }
.catalog__empty { text-align: center; padding: var(--space-7) 0; color: var(--color-fg-muted); font-size: 18px; }
.catalog__empty[hidden] { display: none; }
.catalog__empty p { margin-bottom: var(--space-4); }
.catalog__empty strong { color: var(--color-fg); }

/* Product name on cards opens the detail sheet */
.product__media[data-open] { cursor: zoom-in; }
.product__name { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.product__name:hover { color: var(--color-accent); }

/* ---------- Product detail sheet ---------- */
.sheet {
  width: min(960px, calc(100% - 32px)); max-height: min(88vh, 760px); padding: 0; border: 0; border-radius: var(--radius-lg);
  background: var(--color-card); color: var(--color-fg); box-shadow: 0 40px 80px -20px rgba(2, 6, 23, .6); overflow: hidden;
}
.sheet::backdrop { background: rgba(2, 6, 23, .6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.sheet[open] { animation: sheetIn .35s var(--ease); }
.sheet[open]::backdrop { animation: fadeIn .3s var(--ease); }
.sheet__inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; max-height: inherit; overflow-y: auto; overscroll-behavior: contain; }
.sheet__close {
  position: absolute; top: var(--space-3); right: var(--space-3); z-index: 2; display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--color-primary-900); box-shadow: var(--shadow-sm);
}
.sheet__close:hover { background: var(--color-muted); }
.sheet__media { background: #fff; display: grid; place-items: center; border-right: 1px solid var(--color-border); }
.sheet__media img { width: 100%; height: 100%; max-height: 520px; object-fit: contain; }
.sheet__info { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-7) var(--space-6) var(--space-6); }
.sheet__meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-fg-muted); }
.sheet__title { font-size: clamp(28px, 3vw, 38px); font-weight: 800; line-height: 1.05; }
.sheet__desc { font-size: 17px; color: var(--color-fg-muted); }
.sheet__info .product__specs { margin: 0; }
.sheet__buy { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; padding-top: var(--space-2); }
.qty--lg button { width: 44px; height: 44px; }
.qty--lg input { width: 52px; font-size: 16px; }
.sheet__add { flex: 1; min-width: 180px; }
.sheet__add.is-done { background: #16A34A; box-shadow: 0 8px 20px -8px rgba(22, 163, 74, .6); }
.sheet__links { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.sheet__link {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-4);
  border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-bg);
  font-weight: 600; font-size: 15px; color: var(--color-secondary); transition: border-color .2s, color .2s;
}
.sheet__link:hover { border-color: var(--color-primary); color: var(--color-primary-900); }
.sheet__link .icon { width: 18px; height: 18px; }
.sheet__link:first-child .icon { color: #16A34A; }
.sheet__related { margin-top: var(--space-2); padding-top: var(--space-4); border-top: 1px solid var(--color-border); }
.sheet__related-title { margin-bottom: var(--space-3); font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-fg-muted); }
.sheet__rel-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); }
.rel { display: grid; gap: 6px; padding: 6px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: #fff; text-align: left; font-size: 12px; font-weight: 600; line-height: 1.25; color: var(--color-secondary); transition: border-color .2s; }
.rel:hover { border-color: var(--color-primary); }
.rel img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.rel span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

@keyframes sheetIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  /* Phones: slide-up bottom sheet */
  .sheet { width: 100%; max-width: 100%; max-height: 92vh; max-height: 92dvh; margin: auto 0 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .sheet[open] { animation: sheetUp .35s var(--ease); }
  .sheet__inner { grid-template-columns: 1fr; }
  .sheet__media { border-right: 0; border-bottom: 1px solid var(--color-border); }
  .sheet__media img { max-height: 42vh; }
  .sheet__info { padding: var(--space-5) var(--space-4) calc(var(--space-5) + env(safe-area-inset-bottom)); gap: var(--space-3); }
  .sheet__desc { font-size: 16px; }
  .sheet__buy .qty { flex: none; }
  .sheet__add { min-width: 0; }
  .sheet__rel-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }

/* ---------- 10. Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); counter-reset: step; }
.step {
  position: relative; padding: var(--space-6) var(--space-5);
  border: 1px solid var(--color-dark-border); border-radius: var(--radius); background: rgba(30, 41, 59, .5);
  transition: border-color .3s, transform .3s var(--ease);
}
.step:hover { border-color: rgba(248, 113, 113, .5); transform: translateY(-4px); }
.step__num { position: absolute; top: var(--space-4); right: var(--space-5); font-family: var(--font-mono); font-size: 32px; font-weight: 700; color: rgba(148, 163, 184, .2); }
.step__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--radius); background: var(--color-accent); color: #fff; margin-bottom: var(--space-5); }
.step__title { font-size: 26px; font-weight: 700; text-transform: uppercase; margin-bottom: var(--space-3); }
.step p { color: var(--color-dark-muted); font-size: 16px; margin: 0; }

/* ---------- 11. About ---------- */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--space-8); align-items: center; }
.about__text p { color: var(--color-fg-muted); }
.about__text .btn { margin-top: var(--space-3); }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.feature {
  padding: var(--space-5); border-radius: var(--radius); background: var(--color-card); border: 1px solid var(--color-border);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.feature:nth-child(even) { transform: translateY(var(--space-6)); }
.feature:hover { box-shadow: var(--shadow); }
.feature__icon { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: var(--radius-sm); background: #FEE2E2; color: var(--color-accent); margin-bottom: var(--space-4); }
.feature h3 { font-size: 22px; font-weight: 700; margin-bottom: var(--space-2); }
.feature p { font-size: 15px; color: var(--color-fg-muted); margin: 0; }

/* ---------- 12. Brands ---------- */
.brands { padding: var(--space-8) 0; border-block: 1px solid var(--color-border); background: var(--color-card); }
.brands__label { text-align: center; font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--color-fg-muted); margin-bottom: var(--space-6); }
.brand-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
.brand-group { padding: var(--space-5); border: 1px solid var(--color-border); border-radius: var(--radius); transition: border-color .25s, box-shadow .25s var(--ease); }
.brand-group:hover { border-color: var(--color-accent); box-shadow: var(--shadow); }
.brand-group__title { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); font-family: var(--font-display); font-size: 22px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--color-primary-900); }
.brand-group__title span { font-family: var(--font-mono); font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--color-accent); color: #fff; }
.brand-group__list { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.brand-group__list li { font-family: var(--font-display); font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 6px 14px; border-radius: var(--radius-sm); background: var(--color-muted); color: var(--color-secondary); }

/* ---------- 13. Cart ---------- */
.cart-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(15, 23, 42, .5); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.cart-overlay.is-open { opacity: 1; visibility: visible; }
.cart {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 201;
  display: flex; flex-direction: column; width: min(440px, 100%);
  background: var(--color-card); box-shadow: var(--shadow-lg);
  transform: translateX(100%); visibility: hidden;
  transition: transform .35s var(--ease), visibility .35s;
}
.cart.is-open { transform: none; visibility: visible; }
body.cart-open { overflow: hidden; }
.cart__head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--color-border); }
.cart__title { font-size: 28px; font-weight: 800; text-transform: uppercase; }
.cart__close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--color-primary-900); }
.cart__close:hover { background: var(--color-muted); }
.cart__body { flex: 1; overflow-y: auto; padding: var(--space-4) var(--space-5); }
.cart__list { display: grid; gap: var(--space-3); }
.cart__empty { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); padding: var(--space-8) 0; text-align: center; color: var(--color-fg-muted); }
.cart__empty[hidden] { display: none; }
.cart__empty > .icon { width: 48px; height: 48px; stroke-width: 1.5; color: var(--color-border); }
.cart__empty p { margin: 0; font-size: 18px; }

.cart-item { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius); }
.cart-item__img { width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: cover; background: var(--color-muted); }
.cart-item__main { min-width: 0; }
.cart-item__name { margin: 0; font-weight: 600; line-height: 1.3; }
.cart-item__cat { margin: 2px 0 var(--space-2); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--color-fg-muted); }
.cart-item__note, .cart__note {
  width: 100%; padding: 8px 10px; font: inherit; font-size: 14px; color: var(--color-fg);
  border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-bg);
}
.cart-item__note:focus, .cart__note:focus { outline: 0; border-color: var(--color-primary); background: #fff; box-shadow: 0 0 0 3px rgba(30, 41, 59, .12); }
.cart-item__side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: var(--space-2); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--color-border); border-radius: 999px; }
.qty button { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--color-primary-900); }
.qty button:hover { background: var(--color-muted); }
.qty .icon { width: 16px; height: 16px; }
.qty input { width: 40px; border: 0; background: transparent; text-align: center; font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--color-fg); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-item__remove { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--color-fg-muted); }
.cart-item__remove:hover { background: #FEE2E2; color: var(--color-accent); }
.cart-item__remove .icon { width: 18px; height: 18px; }

.cart__foot { display: grid; gap: var(--space-3); padding: var(--space-4) var(--space-5) var(--space-5); border-top: 1px solid var(--color-border); background: var(--color-bg); }
.cart__foot[hidden] { display: none; }
.cart__label { font-weight: 600; font-size: 15px; }
.cart__note { resize: vertical; min-height: 60px; }
.cart__clear { justify-self: center; padding: var(--space-2); border: 0; background: none; font-size: 14px; color: var(--color-fg-muted); text-decoration: underline; }
.cart__clear:hover { color: var(--color-accent); }

.toast {
  position: fixed; left: 50%; bottom: var(--space-6); z-index: 300;
  padding: var(--space-3) var(--space-5); border-radius: 999px;
  background: var(--color-primary-900); color: #fff; font-weight: 600; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
  max-width: calc(100% - 32px); text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 14. FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: var(--space-8); align-items: start; }
.accordion { display: grid; gap: var(--space-3); }
.acc { border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-card); transition: border-color .2s, box-shadow .2s; }
.acc[open] { border-color: var(--color-primary); box-shadow: var(--shadow-sm); }
.acc summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  min-height: 60px; padding: var(--space-4) var(--space-5);
  font-family: var(--font-display); font-size: 21px; font-weight: 700; cursor: pointer; list-style: none;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary .icon { transition: transform .25s var(--ease); color: var(--color-accent); }
.acc[open] summary .icon { transform: rotate(180deg); }
.acc p { padding: 0 var(--space-5) var(--space-5); margin: 0; color: var(--color-fg-muted); }

/* ---------- 15. Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: stretch; }
.contact__list { display: grid; gap: var(--space-4); margin-top: var(--space-5); }
.contact__list li { display: flex; align-items: flex-start; gap: var(--space-4); }
.contact__list small { display: block; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--color-dark-muted); }
.contact__list a { display: inline-block; padding-block: 12px; margin-block: -12px; } /* bigger tap area, same layout */
.contact__list a:hover { color: #F87171; }
.contact__icon { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: var(--radius-sm); background: rgba(220, 38, 38, .15); color: #F87171; }
.contact__map { min-height: 380px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-dark-border); }
.contact__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(.4) contrast(1.05); }

/* ---------- 16. Footer ---------- */
.footer { background: #070B14; color: var(--color-dark-muted); padding-top: var(--space-8); font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--space-6); padding-bottom: var(--space-7); }
.footer__brand p { margin-top: var(--space-4); max-width: 34ch; }
.footer__title { font-size: 18px; text-transform: uppercase; letter-spacing: .06em; color: #fff; margin-bottom: var(--space-4); }
.footer__links { display: grid; gap: var(--space-2); }
.footer__links a { display: inline-block; padding: 2px 0; transition: color .2s; }
.footer__links a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid var(--color-dark-border); padding-block: var(--space-5); font-size: 14px; }
.footer__bottom p { margin: 0; }
.footer__credits { margin-top: var(--space-3); font-size: 12px; color: #64748B; }
.footer__credits summary { cursor: pointer; width: fit-content; }
.footer__credits summary:hover { color: #fff; }
.footer__credits p { margin: var(--space-2) 0 !important; }
.footer__credit-list { display: flex; flex-wrap: wrap; gap: 2px var(--space-3); }
.footer__credits a { text-decoration: underline; }
.footer__credits a:hover { color: #fff; }
.footer__credits a { text-decoration: underline; text-underline-offset: 2px; }
.footer__credits a:hover { color: #fff; }

/* ---------- 17. Floating buttons ---------- */
.fab {
  position: fixed; right: var(--space-5); z-index: 90;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 0;
  box-shadow: var(--shadow-lg); transition: transform .25s var(--ease), opacity .25s, background-color .2s;
}
.fab--wa { bottom: var(--space-5); background: #16A34A; color: #fff; }
.fab--wa:hover { background: #15803D; transform: scale(1.06); }
.fab--top { bottom: calc(var(--space-5) + 68px); background: var(--color-primary-900); color: #fff; opacity: 0; pointer-events: none; transform: translateY(10px); }
.fab--top.is-visible { opacity: 1; pointer-events: auto; transform: none; }

/* ---------- 18. Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .feature.reveal.is-visible:nth-child(even) { transform: translateY(var(--space-6)); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }
@keyframes bump { 40% { transform: scale(1.12); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes wordIn { from { opacity: 0; transform: perspective(600px) rotateX(-75deg) translateY(.3em); } to { opacity: 1; transform: none; } }
@keyframes oilShine { to { background-position: -250% 0; } }
@keyframes drip {
  0%   { opacity: 0; transform: translateY(0) scale(.2, .2); }
  10%  { opacity: 1; }
  45%  { opacity: 1; transform: translateY(0) scale(1, 1.35); }
  75%  { opacity: 1; transform: translateY(1.1em) scale(.85, 1.1); }
  82%, 100% { opacity: 0; transform: translateY(1.4em) scale(.6); }
}
@keyframes glow { 0%, 100% { opacity: .85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes canBob { 0%, 100% { transform: translateY(-6px); } 50% { transform: translateY(-16px); } }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-4px); } }
@keyframes lineUp { from { transform: translateY(110%); } to { transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes nudgeDown { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

@media (prefers-reduced-motion: reduce) {
  .arrival__xr::after { animation: none; opacity: 0; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 19. Responsive ---------- */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; text-align: left; }
  .hero__visual { max-width: 480px; }
  .float-card--1 { left: 0; }
  .float-card--2 { right: 0; }
  .float-card--3 { right: 0; }
  .hero__meta span:last-child { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cat-tiles { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .about, .faq, .contact { grid-template-columns: 1fr; gap: var(--space-7); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  /* backdrop-filter would make the fixed mobile menu size itself to the header */
  .header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-toggle { display: grid; }
  .nav {
    position: fixed; inset: calc(var(--header-h)) 0 0 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: var(--space-5);
    padding: var(--space-5); background: #fff;
    opacity: 0; transform: translateY(-8px); visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
    overflow-y: auto;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { padding: var(--space-4) 0; font-size: 22px; font-family: var(--font-display); text-transform: uppercase; border-bottom: 1px solid var(--color-border); }
  .nav__link::after { display: none; }
  body.nav-open { overflow: hidden; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--color-border); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding-inline: var(--space-4); }
  .topbar__hours, .topbar__info a:last-child { display: none; }
  .hero { padding-bottom: var(--space-8); }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__visual { max-width: 100%; }
  .float-card { padding: var(--space-2) var(--space-3); gap: var(--space-2); }
  .float-card strong { font-size: 15px; }
  .float-card small { font-size: 11px; }
  .float-card__icon { width: 30px; height: 30px; }
  .float-card--1 { top: -2%; }
  .float-card--2 { top: 8%; }
  .float-card--3 { display: none; }
  .showcase__hint { left: 50%; }
  .showcase__name { font-size: 20px; }
  .grade-finder__label { flex-basis: 100%; }
  .hero__title { font-size: clamp(50px, 14vw, 72px); }
  .hero__cats { gap: var(--space-4); }
  .hero__time { width: 100%; }
  .hero__track { flex: 1; }
  .section { padding: var(--space-8) 0; }
  .stats__grid { max-width: calc(100% - 32px); }
  .stat { padding: var(--space-5) var(--space-3); }
  .stat__num { font-size: 40px; }
  .stat__label { font-size: 11px; }
  .search { min-width: 0; width: 100%; }
  .subfilters { padding: var(--space-3) var(--space-4); }
  .subfilter { flex-direction: column; align-items: stretch; gap: var(--space-2); }
  .subfilter__label { width: auto; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; padding-bottom: 2px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex-shrink: 0; }
  .steps, .features { grid-template-columns: 1fr; }
  .feature:nth-child(even), .js .feature.reveal.is-visible:nth-child(even) { transform: none; }
  .cart-btn { padding: 0 var(--space-3); }
  .cart-btn__label { display: none; }
  .logo__mark { height: 48px; }
  .footer__grid { grid-template-columns: 1fr; }
  .cat-tiles { gap: var(--space-3); grid-auto-rows: 160px; }
  .cat-tile__num { top: var(--space-3); left: var(--space-3); }
  .cat-tile__body { left: var(--space-3); right: var(--space-3); bottom: var(--space-3); }
  .cat-tile__name { font-size: 22px; }
  .cat-tile__meta, .cat-tile__arrow { display: none; }
  .brand-groups { grid-template-columns: 1fr; }

  /* Horizontal scrollers fade at the edge so it's clear there is more */
  .tabs, .chips, .hero__cats, .story__tabs {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent);
  }
  .chips::-webkit-scrollbar, .hero__cats::-webkit-scrollbar, .story__tabs::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }

  /* Two-column compact product cards */
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
  .product { padding: var(--space-3); }
  .product__media { margin: calc(var(--space-3) * -1) calc(var(--space-3) * -1) var(--space-3); }
  .product__media .product__tag { display: none; }
  .product h3 { font-size: 17px; line-height: 1.15; margin-bottom: var(--space-1); }
  .product p { font-size: 13px; line-height: 1.4; margin-bottom: var(--space-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .product__specs { gap: 4px; margin-bottom: var(--space-2); }
  .product__specs li { font-size: 11px; padding: 2px 6px; }
  .product__specs li:nth-child(n+3) { display: none; }
  .sheet__info .product__specs li:nth-child(n+3) { display: block; } /* the detail sheet shows every spec */
  .product__cta { font-size: 15px; gap: 6px; }

  /* iOS zooms into inputs under 16px */
  .cart-item__note, .cart__note, .qty input, .search input { font-size: 16px; }
  /* Floating buttons: keep WhatsApp, drop back-to-top, tuck them away while the cart is open */
  .fab { width: 50px; height: 50px; right: var(--space-3); }
  .fab--top { display: none; }
  body.cart-open .fab { display: none; }
  .toast { bottom: 96px; }
  body.cart-open .toast { top: 88px; bottom: auto; } /* keep the Send button visible */

  /* Comfortable tap targets in the footer */
  .footer__links { gap: 0; }
  .footer__links a { padding: 10px 0; }
  .footer__credits summary { padding: 10px 0; }
  .footer__credit-list { gap: var(--space-2) var(--space-4); }
  .footer__credits a { display: inline-block; padding: 4px 0; }
}
