/* ==========================================================================
   Zoo Shop Malawi — demo theme
   Layered on top of Bootstrap 5.3. Everything here is presentational; the
   markup stays plain Bootstrap so it ports cleanly into a WP theme later.
   ========================================================================== */

/* --- tokens --------------------------------------------------------------- */
:root {
  --ink:        #05070d;
  --ink-2:      #090e1a;
  --ink-3:      #101728;
  --surface:    rgba(255,255,255,.045);
  --surface-2:  rgba(255,255,255,.07);
  --line:       rgba(255,255,255,.10);
  --line-2:     rgba(255,255,255,.18);
  --text:       #eef2f8;
  --muted:      #94a1b9;
  --muted-2:    #6c7a94;

  --brand:      #ff2f8e;   /* logo magenta */
  --brand-2:    #ff7a3d;   /* logo coral   */
  --brand-3:    #8b5cf6;   /* logo violet  */
  --aqua:       #2ee6d6;
  --gold:       #ffc247;

  /* per-category accent, overridden by [data-cat] below */
  --accent:     var(--aqua);
  --accent-2:   var(--brand);
  --accent-ink: #04211f;

  --radius:     18px;
  --radius-sm:  12px;
  --shadow:     0 24px 60px -20px rgba(0,0,0,.75);
  --shadow-lift:0 40px 80px -24px rgba(0,0,0,.85);

  --ff-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --ff-body:    "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --nav-h: 76px;
}

[data-cat="akvaristika"] { --accent:#2ee6d6; --accent-2:#ff2f8e; --accent-ink:#04211f; }
[data-cat="psi"]         { --accent:#ffa63d; --accent-2:#ff6b3d; --accent-ink:#2a1704; }
[data-cat="macke"]       { --accent:#b07cff; --accent-2:#ff2f8e; --accent-ink:#1d1030; }
[data-cat="ptice"]       { --accent:#62c8ff; --accent-2:#2ee6d6; --accent-ink:#04202e; }
[data-cat="teraristika"] { --accent:#8fd14f; --accent-2:#ffc247; --accent-ink:#132404; }
[data-cat="glodari"]     { --accent:#e0a458; --accent-2:#ff7a3d; --accent-ink:#271805; }

/* --- base ----------------------------------------------------------------- */
* { -webkit-tap-highlight-color: transparent; }

/* `overflow-x: hidden` on body alone does not stop the root element expanding,
   so a wide child still produces a sideways scrollbar. `clip` on the root does,
   and unlike `hidden` it does not turn the root into a scroll container, which
   would break every `position: sticky` on the page. */
html { overflow-x: clip; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.6;
  /* `clip`, not `hidden`. `hidden` makes body a scroll container, which makes
     every `position: sticky` descendant resolve against body instead of the
     viewport — that is why the filter bar never actually stuck. `clip` stops
     the sideways pan without establishing a scroll container, so sticky still
     resolves against the viewport. The root alone was not enough. */
  overflow-x: clip;
  /* Deep-water wash so the page never reads as flat black. */
  background-image:
    radial-gradient(120% 80% at 12% -10%, rgba(139,92,246,.20), transparent 60%),
    radial-gradient(100% 70% at 88% 4%,  rgba(255,47,142,.14), transparent 62%),
    radial-gradient(90% 60% at 50% 100%, rgba(46,230,214,.10), transparent 60%);
  background-attachment: fixed;
}

h1, h2, h3, h4, .display-font { font-family: var(--ff-display); font-weight: 700; letter-spacing: -.02em; }
h1 { line-height: 1.03; }
h2 { line-height: 1.1; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent); }

::selection { background: var(--accent); color: var(--accent-ink); }

.text-muted-2 { color: var(--muted) !important; }
.text-dim     { color: var(--muted-2) !important; }

/* Focus ring that survives the dark theme. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --- shared bits ---------------------------------------------------------- */
.eyebrow {
  font-family: var(--ff-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}

.section { position: relative; padding: clamp(64px, 9vw, 128px) 0; }
.section-tight { padding: clamp(44px, 6vw, 84px) 0; }

.rule {
  height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}

.pill {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .34rem .8rem;
  font-size: .75rem; font-weight: 600;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
}
.pill-accent { border-color: color-mix(in srgb, var(--accent) 55%, transparent); color: var(--accent); }
.pill-live   { border-color: rgba(46,230,214,.5); color: var(--aqua); }
.pill-sale   { border-color: rgba(255,194,71,.55); color: var(--gold); }

.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.dot-pulse { animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1);} 50% { opacity:.35; transform:scale(.7);} }

/* --- buttons -------------------------------------------------------------- */
.btn { font-weight: 600; border-radius: 999px; padding: .72rem 1.5rem; transition: transform .18s, box-shadow .18s, background .18s, color .18s; }
.btn:active { transform: translateY(1px); }

.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn-accent:hover {
  background: color-mix(in srgb, var(--accent) 88%, white);
  color: var(--accent-ink);
  box-shadow: 0 16px 40px -12px color-mix(in srgb, var(--accent) 85%, transparent);
}

.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { background: var(--surface-2); color: var(--text); border-color: var(--accent); }

.btn-brand {
  border: 0; color: #fff;
  background: linear-gradient(100deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 34px -12px rgba(255,47,142,.8);
}
.btn-brand:hover { color: #fff; filter: brightness(1.08); }

/* --- swimmers (ambient background layer) ---------------------------------- */
/* Fixed, non-interactive, and always behind content. */
.swimmers {
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.swimmer {
  position: absolute;
  top: 0; left: 0;
  will-change: transform;
  pointer-events: none;
  user-select: none;
}
.swimmer img { display: block; width: 100%; height: auto; }

/* Content sits above the ambient layer. */
.page { position: relative; z-index: 1; }

/* Caustic light shimmer, pure CSS. */
.caustics {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .5;
  background:
    repeating-linear-gradient(102deg, rgba(255,255,255,.055) 0 2px, transparent 2px 90px),
    repeating-linear-gradient(78deg,  rgba(255,255,255,.04)  0 2px, transparent 2px 130px);
  mask-image: radial-gradient(70% 60% at 50% 0%, #000 0%, transparent 78%);
  animation: caustic 14s ease-in-out infinite alternate;
}
@keyframes caustic {
  from { transform: translate3d(-2%, 0, 0) skewX(0deg); }
  to   { transform: translate3d(2%, 1.2%, 0) skewX(1.4deg); }
}

/* --- top promo bar -------------------------------------------------------- */
.topbar {
  background: linear-gradient(90deg, var(--brand-3), var(--brand), var(--brand-2));
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.topbar a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* --- header --------------------------------------------------------------- */
.nav-main {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(5,7,13,.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background .28s, border-color .28s, padding .28s;
}
.nav-main.is-stuck {
  background: rgba(5,7,13,.88);
  border-bottom-color: var(--line);
}
.nav-inner { height: var(--nav-h); transition: height .28s; }
.nav-main.is-stuck .nav-inner { height: 62px; }

.brand-lockup { display: flex; align-items: center; gap: .7rem; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line-2), 0 8px 22px -8px rgba(255,47,142,.7);
  transition: width .28s, height .28s;
}
.nav-main.is-stuck .brand-mark { width: 34px; height: 34px; }
.brand-text { font-family: var(--ff-display); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.brand-text small {
  display: block;
  font-family: var(--ff-body);
  font-size: .6rem; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--muted-2);
}

.nav-link-x {
  position: relative;
  color: var(--text);
  font-weight: 500; font-size: .95rem;
  padding: .5rem .1rem;
}
.nav-link-x::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: .18rem;
  height: 2px; border-radius: 2px;
  background: var(--accent);
  transition: right .3s cubic-bezier(.22,1,.36,1);
}
.nav-link-x:hover, .nav-link-x[aria-current="page"] { color: var(--text); }
.nav-link-x:hover::after, .nav-link-x[aria-current="page"]::after { right: 0; }

.icon-btn {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  transition: background .2s, border-color .2s, transform .2s;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--accent); color: var(--text); transform: translateY(-2px); }

.cart-count {
  position: absolute; top: -4px; right: -4px;
  min-width: 19px; height: 19px; padding: 0 5px;
  display: grid; place-items: center;
  font-size: .68rem; font-weight: 700;
  border-radius: 999px;
  background: var(--brand); color: #fff;
}

/* Cart attention: a firm bounce the moment something lands in it, then a small
   heartbeat every so often so a filled cart keeps drawing the eye. */
.cart-btn.is-bumped { animation: cartBump .62s cubic-bezier(.22,1.4,.36,1) both; }
@keyframes cartBump {
  0%   { transform: translateY(0) scale(1); }
  28%  { transform: translateY(-9px) scale(1.14); }
  55%  { transform: translateY(0) scale(.94); }
  76%  { transform: translateY(-3px) scale(1.04); }
  100% { transform: translateY(0) scale(1); }
}

.cart-btn.is-nudging { animation: cartNudge 1.5s ease-in-out both; }
@keyframes cartNudge {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.09); }
  24% { transform: scale(1); }
  36% { transform: scale(1.06); }
  48% { transform: scale(1); }
}

/* A ring that pings outward with the bump. */
.cart-btn::after {
  content: ""; position: absolute; inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--brand);
  opacity: 0; pointer-events: none;
}
.cart-btn.is-bumped::after { animation: cartPing .7s ease-out both; }
@keyframes cartPing {
  0%   { opacity: .85; transform: scale(.85); }
  100% { opacity: 0;   transform: scale(1.7); }
}

/* --- hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex; align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.hero-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(5,7,13,.94) 0%, rgba(5,7,13,.78) 42%, rgba(5,7,13,.28) 100%),
    linear-gradient(0deg,  var(--ink) 2%, transparent 42%);
}
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 800; }
.hero .lead-x { font-size: clamp(1rem, 1.35vw, 1.16rem); color: var(--muted); max-width: 46ch; }

.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(1.4rem, 4vw, 3rem); }
.hero-stat b { display: block; font-family: var(--ff-display); font-size: 1.7rem; font-weight: 800; line-height: 1; }
.hero-stat span { font-size: .78rem; color: var(--muted-2); letter-spacing: .06em; text-transform: uppercase; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-2);
}
.scroll-hint i { display: block; width: 1px; height: 34px; background: linear-gradient(var(--accent), transparent); animation: drop 2s ease-in-out infinite; }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: top; } 56%,100% { transform: scaleY(0); transform-origin: bottom; } }

/* --- category grid -------------------------------------------------------- */
.cat-tile {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-2);
  color: var(--text);
  min-height: 210px;
  transition: transform .38s cubic-bezier(.22,1,.36,1), border-color .3s, box-shadow .38s;
}
.cat-tile:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: var(--shadow-lift); color: var(--text); }
.cat-tile-media { position: absolute; inset: 0; }
.cat-tile-media img { width: 100%; height: 100%; object-fit: cover; opacity: .5; transition: transform .7s cubic-bezier(.22,1,.36,1), opacity .4s; }
.cat-tile:hover .cat-tile-media img { transform: scale(1.09); opacity: .68; }
.cat-tile-veil {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(5,7,13,.95) 6%, rgba(5,7,13,.35) 60%, rgba(5,7,13,.12) 100%);
}
.cat-tile-body { position: relative; padding: 1.35rem 1.4rem; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-height: 210px; }
.cat-tile h3 { font-size: 1.25rem; margin: 0; }
.cat-tile p { margin: .2rem 0 0; font-size: .84rem; color: var(--muted); }
.cat-tile .go {
  position: absolute; top: 1.1rem; right: 1.1rem;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line-2);
  transition: background .28s, transform .28s, border-color .28s;
}
.cat-tile:hover .go { background: var(--accent); color: var(--accent-ink); border-color: transparent; transform: rotate(-45deg); }
.cat-tile.is-lead { min-height: 320px; }
.cat-tile.is-lead .cat-tile-body { min-height: 320px; }
.cat-tile.is-lead h3 { font-size: 1.8rem; }

/* --- product cards -------------------------------------------------------- */
.product-card {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  display: flex; flex-direction: column;
  transition: transform .32s cubic-bezier(.22,1,.36,1), border-color .3s, box-shadow .32s;
}
.product-card:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: var(--shadow); }
.product-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #06090f; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22,1,.36,1); }
.product-card:hover .product-media img { transform: scale(1.06); }
.product-badges { position: absolute; top: .7rem; left: .7rem; display: flex; gap: .35rem; flex-wrap: wrap; }
.product-badges .pill { background: rgba(5,7,13,.72); backdrop-filter: blur(8px); }

.product-body { padding: 1rem 1.05rem 1.15rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.product-cat { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }
.product-title { font-family: var(--ff-display); font-size: 1rem; font-weight: 600; margin: 0; line-height: 1.32; }
.product-title a { color: var(--text); }
.product-title a:hover { color: var(--accent); }
.product-latin { font-size: .78rem; font-style: italic; color: var(--muted-2); }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding-top: .3rem; }
.price { font-family: var(--ff-display); font-weight: 700; font-size: 1.12rem; }
.price small { font-size: .68em; font-weight: 600; color: var(--muted); margin-left: .15rem; }
.price-was { font-size: .82rem; color: var(--muted-2); text-decoration: line-through; margin-right: .4rem; font-weight: 500; }
.price-ask { font-family: var(--ff-display); font-weight: 700; font-size: .98rem; color: var(--aqua); }

.btn-cart {
  width: 40px; height: 40px; flex: 0 0 40px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text);
  display: grid; place-items: center;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn-cart:hover { background: var(--accent); color: var(--accent-ink); border-color: transparent; transform: scale(1.08); }
.btn-cart.is-added { background: var(--aqua); color: var(--accent-ink); border-color: transparent; }

/* Placeholder tile for categories that have no photography yet (dogs, cats,
   birds, rodents, reptiles). Tinted by the page accent so it still reads as
   part of the design rather than a missing image. */
.media-placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background:
    radial-gradient(120% 90% at 30% 0%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 65%),
    linear-gradient(150deg, var(--ink-3), var(--ink-2));
}
.media-placeholder svg { width: 42%; max-width: 96px; height: auto; opacity: .28; color: var(--accent); }
.media-placeholder::after {
  content: attr(data-note);
  position: absolute; bottom: .55rem; left: 0; right: 0;
  z-index: 1;
  text-align: center;
  font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-2);
}
/* In a category tile the bottom is occupied by the title, so the note moves up. */
.cat-tile .media-placeholder::after { bottom: auto; top: .7rem; }

.hero-creature {
  position: absolute; right: 4%; bottom: 0;
  width: clamp(220px, 30vw, 460px);
  pointer-events: none;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,.7));
  animation: bobbing 6s ease-in-out infinite;
}
.hero-creature img { width: 100%; height: auto; display: block; }
@keyframes bobbing { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-14px) rotate(-1.2deg); } }

/* --- the weave section (fish threads between cards) ----------------------- */
/* Cards get explicit stacking contexts so the swimmer can pass between them. */
.weave { position: relative; }
.weave-track { position: relative; }
/* The creature perches on a card corner; JS drives position and z-index. */
.weave-fish {
  position: absolute;
  top: 0; left: 0;
  z-index: 5;
  width: clamp(96px, 10vw, 150px);
  pointer-events: none;
  will-change: transform;
  /* Hidden until JS places it, so it never parks at the track origin. */
  opacity: 0;
  transition: opacity .35s ease;
  filter: drop-shadow(0 14px 24px rgba(0,0,0,.55));
}
.weave-fish img { width: 100%; height: auto; display: block; }

.weave-slot { position: relative; }
.weave-slot > .product-card { position: relative; }
/* Depth ladder — JS moves the fish's z-index across these as it travels. */
.weave-slot:nth-child(1) > .product-card { z-index: 6; }
.weave-slot:nth-child(2) > .product-card { z-index: 4; }
.weave-slot:nth-child(3) > .product-card { z-index: 6; }
.weave-slot:nth-child(4) > .product-card { z-index: 4; }

/* --- live fish showcase --------------------------------------------------- */
.fish-tile {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  border: 1px solid var(--line);
  color: var(--text);
  transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s, border-color .3s;
}
.fish-tile:hover { transform: translateY(-8px) scale(1.012); box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--aqua) 55%, transparent); color: var(--text); }
.fish-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.22,1,.36,1); }
.fish-tile:hover img { transform: scale(1.08); }
.fish-tile-veil { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,7,13,.93) 4%, rgba(5,7,13,.15) 52%, transparent 100%); }
.fish-tile-body { position: absolute; inset: auto 0 0 0; padding: 1.15rem 1.2rem; }
.fish-tile h4 { font-size: 1.02rem; margin: 0 0 .1rem; }
.fish-tile .lat { font-size: .78rem; font-style: italic; color: var(--muted); }
.fish-tile .meta { margin-top: .55rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }

.aspect-3-4 { aspect-ratio: 3/4; }

/* --- trust strip ---------------------------------------------------------- */
.trust-item { display: flex; gap: .9rem; align-items: flex-start; }
.trust-ico {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.trust-item h5 { font-size: .95rem; margin: 0 0 .15rem; font-family: var(--ff-display); font-weight: 600; }
.trust-item p { margin: 0; font-size: .84rem; color: var(--muted); }

/* --- video block ---------------------------------------------------------- */
.phone-frame {
  position: relative;
  width: min(310px, 78vw);
  aspect-ratio: 9/19.5;
  border-radius: 38px;
  padding: 9px;
  background: linear-gradient(150deg, #2a3244, #0d121d 55%);
  box-shadow: var(--shadow-lift), 0 0 0 1px var(--line-2);
}
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: #000; }
.phone-screen video, .phone-screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone-play {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
  border: 0; background: rgba(5,7,13,.34);
  color: #fff; cursor: pointer;
  transition: background .3s, opacity .3s;
}
.phone-play:hover { background: rgba(5,7,13,.18); }
.phone-play span {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.34);
  transition: transform .3s, background .3s;
}
.phone-play:hover span { transform: scale(1.09); background: rgba(255,255,255,.26); }
.phone-play.is-hidden { opacity: 0; pointer-events: none; }

/* --- footer --------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: rgba(4,6,11,.7); }
.footer-head { font-family: var(--ff-display); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); margin-bottom: .9rem; }
.footer-link { display: block; color: var(--muted); font-size: .9rem; padding: .22rem 0; transition: color .2s, transform .2s; }
.footer-link:hover { color: var(--text); transform: translateX(3px); }

/* --- reveal on scroll ----------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .5s cubic-bezier(.22,1,.36,1), transform .5s cubic-bezier(.22,1,.36,1); }
.reveal.is-in { opacity: 1; transform: none; }
/* Kept short on purpose: a long stagger reads as a blank page when someone
   scrolls quickly, which is most of the time. */
.reveal[data-d="1"] { transition-delay: .05s; }
.reveal[data-d="2"] { transition-delay: .10s; }
.reveal[data-d="3"] { transition-delay: .15s; }
.reveal[data-d="4"] { transition-delay: .20s; }

/* --- sticky mobile CTA ---------------------------------------------------- */
.mobile-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1040;
  display: none;
  gap: .6rem;
  padding: .6rem;
  border-radius: 999px;
  background: rgba(9,14,26,.9);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
}
@media (max-width: 767.98px) { .mobile-cta { display: flex; } body:has(.mobile-cta) { padding-bottom: 84px; } }

/* --- breadcrumbs / page head ---------------------------------------------- */
.page-head { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-head-bg { position: absolute; inset: 0; z-index: -2; }
.page-head-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.page-head-veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--ink) 4%, rgba(5,7,13,.6) 60%, rgba(5,7,13,.4) 100%); }
.crumbs { font-size: .82rem; color: var(--muted-2); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }

/* --- filter rail ---------------------------------------------------------- */
.filter-card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.2rem; }
.filter-card h6 { font-family: var(--ff-display); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 .7rem; }
.form-check-input { background-color: var(--surface); border-color: var(--line-2); }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.form-check-label { font-size: .9rem; color: var(--muted); }
.form-check-input:checked + .form-check-label { color: var(--text); }

.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .85rem; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface);
  font-size: .84rem; font-weight: 500; color: var(--muted);
  transition: background .2s, color .2s, border-color .2s;
  cursor: pointer;
}
.chip:hover { color: var(--text); border-color: var(--accent); }
.chip.is-on { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 600; }

/* --- product detail ------------------------------------------------------- */
.gallery-main { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; background: #06090f; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: .55rem; margin-top: .55rem; }
.gallery-thumbs button { padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: none; aspect-ratio: 1; transition: border-color .2s, transform .2s; }
.gallery-thumbs button:hover { transform: translateY(-2px); }
.gallery-thumbs button.is-on { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.spec-row { display: flex; justify-content: space-between; gap: 1rem; padding: .62rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.spec-row:last-child { border-bottom: 0; }
.spec-row dt { color: var(--muted-2); font-weight: 500; margin: 0; }
.spec-row dd { margin: 0; text-align: right; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.qty button { width: 40px; height: 44px; border: 0; background: var(--surface); color: var(--text); font-size: 1.1rem; transition: background .2s; }
.qty button:hover { background: var(--surface-2); }
.qty input { width: 46px; height: 44px; border: 0; background: transparent; color: var(--text); text-align: center; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* --- brand comparison page ------------------------------------------------ */
.logo-stage {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  aspect-ratio: 16/10;
  display: grid; place-items: center;
  position: relative;
}
.logo-stage > * { position: relative; z-index: 1; }
.logo-stage figcaption { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: .7rem .9rem; font-size: .8rem; background: linear-gradient(0deg, rgba(5,7,13,.92), transparent); color: var(--muted); }
.stage-dark  { background: #05070d; }
.stage-photo::before { content:""; position:absolute; inset:0; background: url("../img/wide/room-120.jpg") center/cover; opacity:.55; }
.stage-light { background: #f4f6fa; }
.stage-light figcaption { background: linear-gradient(0deg, rgba(244,246,250,.95), transparent); color: #4a5568; }
.stage-brand { background: linear-gradient(135deg, var(--brand-3), var(--brand) 55%, var(--brand-2)); }

.lockup { display: flex; align-items: center; gap: .8rem; }
.lockup img { width: 60px; height: 60px; border-radius: 50%; }
.lockup .lw { font-family: var(--ff-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.03em; line-height: 1; }
.lockup .lw small { display: block; font-family: var(--ff-body); font-size: .58rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; opacity: .65; }

/* ==========================================================================
   Search overlay
   ========================================================================== */
body.search-open { overflow: hidden; }

.search-overlay {
  position: fixed; inset: 0; z-index: 2000;
  display: none;
}
.search-overlay.is-on { display: block; }

.search-backdrop {
  position: absolute; inset: 0;
  background: rgba(3, 5, 10, .78);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  animation: fadeIn .22s ease both;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

.search-panel {
  position: absolute; inset: 0;
  overflow-y: auto;
  padding: clamp(18px, 5vh, 64px) 0 64px;
  animation: searchIn .3s cubic-bezier(.22,1,.36,1) both;
}
@keyframes searchIn { from { opacity: 0; transform: translateY(-18px) } to { opacity: 1; transform: none } }

.search-head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.4rem; }

.search-field {
  flex: 1;
  display: flex; align-items: center; gap: .8rem;
  padding: .9rem 1.3rem;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line-2);
  color: var(--accent);
}
.search-field:focus-within { border-color: var(--accent); background: rgba(255,255,255,.09); }
.search-field input {
  flex: 1;
  background: none; border: 0; outline: none;
  color: var(--text);
  font-family: var(--ff-display);
  font-size: clamp(1.05rem, 2.4vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -.01em;
}
.search-field input::placeholder { color: var(--muted-2); font-weight: 500; }
.search-field input::-webkit-search-cancel-button { filter: invert(.7); }

.search-close {
  width: 52px; height: 52px; flex: 0 0 52px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text);
  display: grid; place-items: center;
  transition: background .2s, border-color .2s, transform .2s;
}
.search-close:hover { background: var(--surface-2); border-color: var(--accent); transform: rotate(90deg); }

.search-cats { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.search-cat { cursor: pointer; }
.search-cat input { position: absolute; opacity: 0; pointer-events: none; }
.search-cat span {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  font-size: .88rem; font-weight: 500;
  color: var(--muted);
  transition: background .2s, color .2s, border-color .2s;
}
.search-cat span::before {
  content: ""; width: 15px; height: 15px; border-radius: 4px;
  border: 1.5px solid var(--line-2);
  background: transparent;
  transition: background .2s, border-color .2s;
}
.search-cat input:checked + span {
  color: var(--accent-ink); background: var(--accent); border-color: transparent; font-weight: 600;
}
.search-cat input:checked + span::before {
  background: var(--accent-ink); border-color: var(--accent-ink);
}
.search-cat input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

.search-count {
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: .9rem;
}
.search-hint { color: var(--muted-2); font-size: .95rem; padding: 1.4rem 0; }
.search-more { text-align: center; margin-top: 1.8rem; }

/* ==========================================================================
   Toast
   ========================================================================== */
.toast-x {
  position: fixed; left: 50%; bottom: 26px; z-index: 2100;
  transform: translate(-50%, 140%);
  display: flex; align-items: center; gap: .8rem;
  padding: .8rem 1.3rem;
  border-radius: 999px;
  background: rgba(9,14,26,.95);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  font-size: .9rem; font-weight: 500;
  transition: transform .35s cubic-bezier(.22,1,.36,1);
  max-width: calc(100vw - 24px);
}
.toast-x.is-on { transform: translate(-50%, 0); }
.toast-x a { font-weight: 600; white-space: nowrap; }
@media (max-width: 767.98px) { .toast-x { bottom: 88px; } }

/* ==========================================================================
   Category page: banner with the animal on the right
   ========================================================================== */
.cat-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(90% 120% at 82% 40%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 62%),
    linear-gradient(120deg, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 55%);
}
.cat-hero-inner { position: relative; z-index: 2; padding: clamp(38px, 7vw, 84px) 0 clamp(30px, 5vw, 60px); }
.cat-hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }

.cat-hero-animal {
  position: absolute;
  right: clamp(-40px, -2vw, 0px); bottom: 0;
  width: clamp(240px, 34vw, 520px);
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 34px 46px rgba(0,0,0,.65));
  animation: bobbing 7s ease-in-out infinite;
}
.cat-hero-animal img { width: 100%; height: auto; display: block; }
.cat-hero-animal.is-tall { width: clamp(190px, 24vw, 350px); }
@media (max-width: 991.98px) { .cat-hero-animal { opacity: .3; right: -12%; width: 60vw; } }

/* sticky sub-category rail that meets the banner as it scrolls away */
.filter-bar {
  position: sticky; top: var(--nav-h); z-index: 900;
  background: rgba(5,7,13,.82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: top .28s;
}
.nav-main.is-stuck ~ .page .filter-bar,
.is-stuck ~ * .filter-bar { top: 62px; }
.filter-bar-inner {
  display: flex; align-items: center; gap: .8rem;
  padding: .7rem 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-bar-inner::-webkit-scrollbar { display: none; }
.filter-bar .chip { white-space: nowrap; flex: 0 0 auto; }
.filter-bar-label {
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted-2); flex: 0 0 auto; margin-right: .2rem;
}

/* ==========================================================================
   Cart and checkout
   ========================================================================== */
.cart-line {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.cart-line:last-child { border-bottom: 0; }
.cart-thumb {
  width: 96px; aspect-ratio: 4/3;
  border-radius: 10px; overflow: hidden;
  background: var(--ink-3);
  position: relative;
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line h4 { font-size: .96rem; margin: 0 0 .15rem; font-family: var(--ff-display); font-weight: 600; }
.cart-line .meta { font-size: .8rem; color: var(--muted-2); }
.cart-line-actions { display: flex; align-items: center; gap: .9rem; }
.link-danger {
  background: none; border: 0; padding: 0;
  color: var(--muted-2); font-size: .82rem; text-decoration: underline; text-underline-offset: 3px;
}
.link-danger:hover { color: #ff6b6b; }

.summary {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  position: sticky; top: calc(var(--nav-h) + 16px);
}
/* Sticking the summary on a phone just eats the screen. */
@media (max-width: 991.98px) { .summary { position: static; } }

/* On a narrow phone the three-column cart line has nowhere to go, so the
   thumbnail moves above the details and the price sits with them. */
@media (max-width: 479.98px) {
  .cart-line { grid-template-columns: 64px 1fr; row-gap: .5rem; }
  .cart-thumb { width: 64px; }
  .cart-line > .text-end { grid-column: 2; text-align: left !important; }
}
.summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; font-size: .92rem; }
.summary-row.total {
  border-top: 1px solid var(--line-2); margin-top: .6rem; padding-top: .9rem;
  font-family: var(--ff-display); font-size: 1.2rem; font-weight: 700;
}

.pay-option {
  display: block;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  margin-bottom: .7rem;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.pay-option:hover { border-color: var(--accent); }
.pay-option input { margin-right: .6rem; accent-color: var(--accent); }
.pay-option.is-on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, transparent); }
.pay-option .t { font-weight: 600; }
.pay-option .d { font-size: .84rem; color: var(--muted-2); margin: .2rem 0 0 1.55rem; }

.field { margin-bottom: .9rem; }
.field label { display: block; font-size: .78rem; letter-spacing: .06em; color: var(--muted-2); margin-bottom: .32rem; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: .7rem .9rem;
  color: var(--text);
  font-size: .95rem;
  font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: var(--surface-2);
}
.field input::placeholder { color: var(--muted-2); }
.field select option { background: var(--ink-2); }

.step-head { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.step-num {
  width: 28px; height: 28px; flex: 0 0 28px;
  border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center;
  font-family: var(--ff-display); font-weight: 700; font-size: .85rem;
}
.step-head h2 { font-size: 1.15rem; margin: 0; }

.card-sim {
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
  background: rgba(255,255,255,.02);
}
.card-sim-note {
  font-size: .78rem; color: var(--gold);
  display: flex; align-items: center; gap: .45rem; margin-bottom: .9rem;
}

.empty-state { text-align: center; padding: clamp(40px, 8vw, 90px) 0; }
.empty-state svg { color: var(--muted-2); opacity: .5; margin-bottom: 1rem; }

/* ==========================================================================
   Photo band: the shop's own photography, given room to breathe
   ========================================================================== */
.photo-band { columns: 4 260px; column-gap: 12px; }
@media (max-width: 767.98px) { .photo-band { columns: 2 150px; column-gap: 8px; } }

.band-item {
  display: block;
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
  transition: transform .4s cubic-bezier(.22,1,.36,1), border-color .3s, box-shadow .4s;
}
/* Reserve height before the lazy image arrives. Without this the masonry
   collapses to a 2px sliver and the whole column jumps when photos load. */
.band-item img {
  width: 100%; height: auto; display: block;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--ink-3);
  transition: transform .7s cubic-bezier(.22,1,.36,1), filter .4s;
}
.band-item:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: var(--shadow); }
.band-item:hover img { transform: scale(1.05); }

/* A horizontal rail variant for the home page. */
.photo-rail {
  display: flex; gap: 12px;
  overflow-x: auto;
  padding-bottom: .6rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.photo-rail::-webkit-scrollbar { display: none; }
.photo-rail { max-width: 100%; }
.photo-rail .band-item {
  flex: 0 0 clamp(200px, 26vw, 340px);
  margin-bottom: 0;
  scroll-snap-align: start;
  aspect-ratio: 3/2;
}
.photo-rail .band-item img { height: 100%; object-fit: cover; }

/* ==========================================================================
   Lightbox
   ========================================================================== */
body.lb-open { overflow: hidden; }

.lightbox {
  position: fixed; inset: 0; z-index: 2200;
  display: none;
  align-items: center; justify-content: center;
  padding: clamp(12px, 3vw, 40px);
}
.lightbox.is-on { display: flex; }
.lightbox-backdrop {
  position: absolute; inset: 0;
  background: rgba(2, 4, 8, .92);
  backdrop-filter: blur(6px);
  animation: fadeIn .2s ease both;
}
.lightbox-figure {
  position: relative; z-index: 1;
  max-width: min(1400px, 100%);
  max-height: 100%;
  display: flex; flex-direction: column; gap: .7rem;
  animation: lbIn .3s cubic-bezier(.22,1,.36,1) both;
}
@keyframes lbIn { from { opacity: 0; transform: scale(.96) } to { opacity: 1; transform: none } }
.lightbox-figure img {
  max-width: 100%;
  max-height: calc(100vh - 130px);
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lift);
}
.lightbox-cap {
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  align-items: center;
  gap: .8rem;
  font-size: .82rem; color: var(--muted-2);
  text-align: center;
}

.lightbox-close {
  position: absolute; top: -6px; right: -6px;
  transform: translate(50%, -50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(9,14,26,.95);
  color: var(--text);
  display: grid; place-items: center;
  z-index: 2;
  transition: background .2s, transform .25s, border-color .2s;
}
.lightbox-close:hover {
  background: var(--accent); color: var(--accent-ink);
  border-color: transparent;
  transform: translate(50%, -50%) rotate(90deg);
}
@media (max-width: 575.98px) {
  .lightbox-close { top: 4px; right: 4px; transform: none; }
  .lightbox-close:hover { transform: rotate(90deg); }
}

/* The arrows sit in the caption row, so they never cover the photo at any size.
   On a wide screen they pull out to the sides of the image; on a phone they
   stay in the row beside the counter. */
.lightbox-nav {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(9,14,26,.85);
  color: var(--text);
  display: grid; place-items: center;
  transition: background .2s, border-color .2s, transform .2s;
}
.lightbox-nav:hover { background: var(--surface-2); border-color: var(--accent); transform: scale(1.06); }

@media (min-width: 641px) {
  .lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 2;
  }
  .lightbox-nav:hover { transform: translateY(-50%) scale(1.06); }
  .lightbox-prev { left: -62px; }
  .lightbox-next { right: -62px; }
  .lightbox-figure { margin: 0 62px; }
  .lightbox-cap { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16/10;
  background: var(--ink-3);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; filter: invert(.92) hue-rotate(180deg) saturate(.6); }

.contact-row { display: flex; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: 0; }
.contact-row .ico {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.contact-row h5 { font-size: .9rem; margin: 0 0 .1rem; font-family: var(--ff-display); font-weight: 600; }
.contact-row p, .contact-row a { margin: 0; font-size: .9rem; color: var(--muted); }

/* ==========================================================================
   Phone and tablet
   Most people will see this on a phone, so this block is not an afterthought.
   The desktop hero carries a badge, a headline, a paragraph, two buttons and
   four stats. On a 390px screen that is four scrolls before anything is shop.
   ========================================================================== */

/* Utility: drop an element below the given breakpoint. */
@media (max-width: 767.98px) { .hide-sm { display: none !important; } }
@media (max-width: 991.98px) { .hide-md { display: none !important; } }

@media (max-width: 991.98px) {
  :root { --nav-h: 62px; }

  .section       { padding: clamp(44px, 8vw, 72px) 0; }
  .section-tight { padding: clamp(32px, 6vw, 54px) 0; }

  /* Headings were sized for a wide screen; the clamp minimums were too tall. */
  .hero h1 { font-size: clamp(2rem, 7.4vw, 3.2rem); }
  h2       { font-size: clamp(1.5rem, 5vw, 2.1rem) !important; }

  .cat-hero-inner { padding: clamp(26px, 6vw, 48px) 0 clamp(20px, 4vw, 36px); }
  .cat-hero h1    { font-size: clamp(1.9rem, 6.6vw, 2.9rem); }
}

@media (max-width: 767.98px) {
  /* Promo bar: one line, quieter. It wrapped to two lines and shouted. */
  .topbar { font-size: .7rem; padding: .45rem .75rem !important; line-height: 1.35; }

  .hero { min-height: 62vh; }
  .hero h1 { font-size: clamp(1.85rem, 8.4vw, 2.6rem); margin-bottom: .6rem !important; }
  .hero .lead-x { font-size: .95rem; }

  /* Four stats wrapped into a ragged two-and-a-half rows. Fix them to a grid. */
  .hero-stats {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: .9rem 1rem;
  }
  .hero-stat b { font-size: 1.25rem; }
  .hero-stat span { font-size: .66rem; letter-spacing: .04em; }

  /* Buttons sat one per row and ate half the screen. */
  .hero .btn, .cat-hero .btn { flex: 1 1 0; min-width: 0; }
  .btn-lg { padding: .68rem 1rem; font-size: .92rem; }

  .scroll-hint { display: none; }

  /* Trust strip: two cramped columns with headings breaking over three lines. */
  .trust-item { gap: .65rem; }
  .trust-ico { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 9px; }
  .trust-ico svg { width: 16px; height: 16px; }
  .trust-item h5 { font-size: .82rem; line-height: 1.25; }
  .trust-item p  { font-size: .74rem; line-height: 1.35; }

  /* Category tiles: shorter, so more than one fits on a screen. */
  .cat-tile, .cat-tile-body { min-height: 148px; }
  .cat-tile.is-lead, .cat-tile.is-lead .cat-tile-body { min-height: 210px; }
  .cat-tile h3 { font-size: 1.05rem; }
  .cat-tile.is-lead h3 { font-size: 1.35rem; }
  .cat-tile p { font-size: .76rem; }
  .cat-tile .go { width: 30px; height: 30px; top: .8rem; right: .8rem; }

  /* Product cards */
  .product-body { padding: .75rem .8rem .9rem; gap: .35rem; }
  .product-title { font-size: .86rem; line-height: 1.28; }
  .product-cat { font-size: .6rem; }
  .price { font-size: .98rem; }
  .price-was { font-size: .72rem; }
  .btn-cart { width: 34px; height: 34px; flex-basis: 34px; }

  .fish-tile h4 { font-size: .9rem; }
  .fish-tile .lat { font-size: .7rem; }
  .fish-tile-body { padding: .8rem .85rem; }

  /* Section headers stack instead of fighting for the same row. */
  .eyebrow { font-size: .65rem; letter-spacing: .18em; }

  /* Filters and chips */
  .chip { font-size: .78rem; padding: .34rem .7rem; }
  .filter-bar-inner { padding: .5rem 0; gap: .5rem; }
  .filter-bar-label { display: none; }

  /* Search overlay: the input was desktop-sized and pushed the close button. */
  .search-field { padding: .7rem 1rem; gap: .6rem; }
  .search-field input { font-size: 1rem; }
  .search-close { width: 42px; height: 42px; flex-basis: 42px; }
  .search-cat span { font-size: .78rem; padding: .38rem .75rem; }
  .search-cats { gap: .4rem; margin-bottom: 1.1rem; }

  /* Product page */
  .gallery-thumbs { grid-template-columns: repeat(5, 1fr); gap: .35rem; }
  .spec-row { font-size: .84rem; padding: .5rem 0; }

  /* Checkout / cart */
  .filter-card { padding: 1rem; }
  .step-head h2 { font-size: 1rem !important; }
  .summary { padding: 1.1rem; }

  /* Phone mockup on the contact page */
  .phone-frame { width: min(250px, 70vw); }

  /* Footer */
  .footer-head { font-size: .7rem; margin-bottom: .6rem; }
  .footer-link { font-size: .84rem; }
}

/* --------------------------------------------------------------------------
   Touch targets and legibility floor.
   The pass above shrank type and controls to fit more on screen and went too
   far: an audit at 360–1024 found controls at 33–38px and text down to 9.6px.
   Nothing a finger hits drops below 44px, and nothing anyone reads drops below
   ~11.5px. Visual size stays small — the extra height comes from padding.
   -------------------------------------------------------------------------- */
@media (pointer: coarse), (max-width: 991.98px) {
  .chip {
    min-height: 44px;
    padding: .5rem .9rem;
    font-size: .82rem;
    display: inline-flex; align-items: center;
  }

  .btn-cart {
    width: 44px; height: 44px; flex-basis: 44px;
  }

  .icon-btn { width: 44px; height: 44px; }

  .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .btn-lg { min-height: 48px; }

  /* 16px is the floor. Safari zooms the whole page when a field under 16px
     takes focus, and the visitor is then stranded at 1.3x with no way back. */
  .form-select, .form-control, .field input, .field select, .field textarea,
  input[type=text], input[type=email], input[type=tel], input[type=search],
  input[type=number], textarea, select {
    min-height: 44px;
    font-size: 16px;
  }
  textarea { min-height: 88px; }

  /* Footer links were 30px apart, which is a coin-toss to tap. */
  .footer-link { padding: .62rem 0; }

  .search-cat span { min-height: 44px; }
  .search-close { width: 44px; height: 44px; flex-basis: 44px; }

  /* Bootstrap's offcanvas close is a 24px square by default. */
  .offcanvas .btn-close {
    width: 44px; height: 44px;
    padding: 0; margin: 0;
    background-size: 15px;
    background-position: center;
    opacity: .9;
  }

  .gallery-thumbs button { min-height: 44px; }

  /* Checkboxes and radios stay visually small but get a 44px hit area from an
     invisible pseudo-element, and the whole row is tappable via the label. */
  .form-check {
    min-height: 44px;
    display: flex; align-items: center; gap: .55rem;
    padding-left: 0;
  }
  .form-check-input {
    width: 1.3rem; height: 1.3rem; margin: 0; flex: 0 0 auto;
    position: relative;
  }
  .form-check-input::before {
    content: ""; position: absolute; inset: -11px;
  }
  .form-check-label { padding: .35rem 0; flex: 1; }

  .pay-option input[type=radio] {
    width: 1.25rem; height: 1.25rem;
    position: relative;
  }
  .pay-option input[type=radio]::before { content: ""; position: absolute; inset: -12px; }

  /* "Ukloni" was a 21px-tall text button. */
  .link-danger { padding: .7rem 0; min-height: 44px; }

  .filter-bar-label { font-size: .74rem; }
  .scroll-hint      { font-size: .74rem; }

  /* --- legibility floor --- */
  .topbar          { font-size: .74rem; }
  .eyebrow         { font-size: .74rem; }
  .product-cat     { font-size: .72rem; }
  .fish-tile .lat  { font-size: .74rem; }
  .hero-stat span  { font-size: .76rem; }
  .brand-text small{ font-size: .72rem; letter-spacing: .2em; }
  .media-placeholder::after { font-size: .68rem; }
  .cart-line .meta { font-size: .78rem; }
  .lightbox-cap    { font-size: .78rem; }
  .search-count    { font-size: .72rem; }
  .footer-head     { font-size: .72rem; }
}

/* Tablet: two-up grids read better than the four-up desktop rhythm. */
@media (min-width: 768px) and (max-width: 991.98px) {
  .cat-hero-animal { opacity: .42; width: 44vw; right: -4%; }
  .hero-stats { gap: 1.4rem 2rem; }
  .phone-frame { width: min(280px, 42vw); }
}

/* --- motion & responsive guards ------------------------------------------- */
@media (max-width: 991.98px) {
  .hero { min-height: 76vh; }
  .weave-fish { display: none; }   /* the weave needs room; skip it on tablets down */
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .swimmers, .weave-fish, .caustics { display: none; }
  .reveal { opacity: 1; transform: none; }
}
