/* ======================================================================
   NETLINE — front hub stylesheet
   Design language: network infrastructure. Patch-panel port rows stand
   in for the generic "icon row," a status/uplink readout replaces the
   generic stat block, and a copper-trace rule connects sections the way
   a cable run connects a rack. Mono type is used only where real gear
   uses it — model numbers, counts, status text.

   v2 — deeper, more differentiated palette (copper / verdigris / signal
   green each doing a distinct job instead of two colors repeating
   everywhere) and a real spacing scale so section rhythm, card padding
   and grid gaps all derive from the same steps instead of one-off
   pixel values.
   ====================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Inter:wght@400;500;600;700&family=DM+Sans:wght@400;500;700&display=swap');

:root {
  /* ---- color: editorial midnight palette ----
     midnight = rich base tone
     blossom  = vivid accent for emotion and action
     sea      = cooler supporting highlight */
  --ink: #0f172a;          /* midnight navy */
  --ink-soft: #17253d;      /* softer midnight */
  --ink-raised: #1d2e46;    /* elevated card */
  --paper: #fcf7f2;         /* ivory canvas */
  --paper-raised: #ffffff;
  --paper-dim: #f3ece4;     /* warm ivory dim */

  --midnight: #111827;      /* deep slate */
  --blossom: #ff6b6b;       /* vivid coral */
  --blossom-2: #ff8f6b;     /* soft coral */
  --sea: #2bb3a2;           /* sea teal */
  --sea-2: #4fbfdf;         /* sky teal */

  --line: #e8dfd3;          /* warm ivory hairline */
  --line-dark: #26374e;     /* midnight hairline */
  --slate: #64748b;         /* cool gray */
  --slate-soft: #97a3b2;    /* softer gray */

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'DM Sans', 'Segoe UI', sans-serif;

  --radius: 3px;
  --radius-lg: 8px;
  --container-w: 1180px;

  /* ---- spacing scale: every margin/padding below is one of these ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 18px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 48px;
  --space-9: 60px;
  --space-10: 80px;
  --space-11: 112px;

  --gutter: clamp(20px, 4vw, var(--space-6));
}

/* ----------------------------- base ----------------------------- */

.front-hub {
  background:
    radial-gradient(circle at top left, rgba(255, 107, 107, 0.14), transparent 26%),
    linear-gradient(135deg, var(--paper) 0%, #fdf7f1 100%);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.front-hub * { box-sizing: border-box; }

.front-hub .container {
  max-width: var(--container-w);
  width: min(1180px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 0;
}

/* rhythm varies by section instead of one repeated block value —
   each section states its own vertical weight below */
.front-hub .section-block {
  padding: clamp(1.25rem, 2.2vw, 2rem) 0;
  margin-bottom: clamp(1rem, 1.8vw, 1.5rem);
}

.front-hub h1,
.front-hub h2,
.front-hub h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin: 0;
}

.front-hub p { margin: 0; color: var(--slate); }

.front-hub a { text-decoration: none; color: inherit; }

.front-hub .muted { color: var(--slate); font-size: 0.85rem; }

/* signature motif: a row of small "ports," one lit, used as a quiet
   header ornament above cards instead of an icon or numbered badge */
.port-row {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.port-row span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
}

.port-row span:first-child {
  background: var(--led);
  box-shadow: 0 0 0 3px rgba(63, 214, 140, 0.15);
}

@media (prefers-reduced-motion: no-preference) {
  .port-row span:first-child { animation: link-pulse 3.2s ease-in-out infinite; }
}

@keyframes link-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* ----------------------------- hero ----------------------------- */

.hero-editorial {
  background:
    radial-gradient(circle at top left, rgba(255, 107, 107, 0.26), transparent 30%),
    linear-gradient(135deg, #0f172a 0%, #17253d 42%, #2bb3a2 100%);
  color: var(--paper);
  padding: clamp(1.8rem, 3.2vw, 2.6rem) clamp(1rem, 2vw, 1.6rem) clamp(2rem, 3vw, 2.6rem);
  position: relative;
  overflow: hidden;
  margin: 0 0 clamp(1rem, 1.8vw, 1.4rem);
  border-radius: 0 0 24px 24px;
}

/* faint schematic grid behind the hero, engineering-drawing style */
.hero-editorial::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.3;
  mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
}

.hero-grid-editorial {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-8);
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--led);
  border: 1px solid var(--line-dark);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius);
  margin-bottom: var(--space-5);
}

.hero-copy-card h1 {
  font-size: clamp(1.8rem, 2.9vw, 2.65rem);
  color: var(--paper);
  max-width: 12.5ch;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
 
.hero-copy-card > p {
  margin-top: var(--space-4);
  font-size: 0.95rem;
  color: var(--slate-soft);
  max-width: 44ch;
}
 
.hero-actions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-6);
  flex-wrap: wrap;
}
 
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.86rem;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blossom) 0%, var(--sea) 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(255, 107, 107, 0.16);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--sea-2) 0%, var(--blossom-2) 100%);
  transform: translateY(-1px);
}

.btn-outline {
  border-color: rgba(255,255,255,0.24);
  color: var(--paper);
  background: rgba(255,255,255,0.08);
}

.btn-outline:hover {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
  transform: translateY(-1px);
}

.hero-badges {
  list-style: none;
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin: var(--space-6) 0 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--slate-soft);
}

.hero-badges li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* alternate icon color per badge so the row has quiet variety instead
   of one accent repeated three times */
.hero-badges i { color: var(--blossom); font-size: 0.74rem; }
.hero-badges li:nth-child(2) i { color: var(--sea); }
.hero-badges li:nth-child(3) i { color: var(--sea-2); }

/* showcase card styled like a small NOC status panel */
.hero-showcase-card {
  position: relative;
  background: var(--ink-soft);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.showcase-topbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-mono);
}

.showcase-topbar span {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-soft);
}

.showcase-topbar strong {
  font-size: 0.85rem;
  color: var(--paper);
  font-weight: 500;
}

.showcase-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--line-dark);
}

.showcase-metrics div { text-align: left; }

.showcase-metrics strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--blossom);
}

/* three stats, three colors — reads as distinct readouts rather than
   one metric repeated */
.showcase-metrics div:nth-child(2) strong { color: var(--sea); }
.showcase-metrics div:nth-child(3) strong { color: var(--sea-2); }

.showcase-metrics span {
  display: block;
  margin-top: var(--space-1);
  font-size: 0.72rem;
  color: var(--slate-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.showcase-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-top: var(--space-4);
}

.showcase-links a {
  font-size: 0.88rem;
  color: var(--paper);
  padding: var(--space-2) var(--space-1);
  border-radius: var(--radius);
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.showcase-links a:hover {
  color: var(--led);
  padding-left: var(--space-2);
}

/* ----------------------------- trust strip ----------------------------- */

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  padding: calc(var(--space-6) + 4px) var(--gutter);
  margin: var(--space-4) 0 var(--space-5);
  border-bottom: 1px solid var(--line);
}

.trust-pill {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--slate);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.trust-pill i { color: var(--sea); font-size: 0.85rem; }
.trust-pill:nth-child(2) i { color: var(--blossom); }

/* ----------------------------- section headers ----------------------------- */

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
 
.featured-head {
  align-items: flex-start;
  margin-bottom: var(--space-5);
}

.featured-head p {
  margin-top: var(--space-2);
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.section-pill,
.featured-note {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sea);
  margin-bottom: var(--space-2);
}

.featured-products-spotlight .featured-note { color: var(--blossom); }

.section-head h2 { font-size: clamp(1.35rem, 2.1vw, 1.75rem); }

.text-link {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  white-space: nowrap;
}

.text-link:hover { color: var(--blossom); border-color: var(--blossom); }

.text-link-light { color: var(--paper); border-color: rgba(255,255,255,0.34); }
.text-link-light:hover { color: #fff; border-color: #fff; }

.empty-state {
  padding: var(--space-8);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* ----------------------------- catalog / categories ----------------------------- */

.catalog-spotlight {
  background: var(--paper);
  padding: clamp(1.1rem, 1.8vw, 1.5rem);
  margin-top: clamp(0.45rem, 1vw, 0.8rem);
  margin-bottom: clamp(0.8rem, 1.4vw, 1.15rem);
  border-radius: 24px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-6);
  align-items: start;
}

.category-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.category-story-card {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.category-story-card:hover {
  border-color: var(--copper);
  transform: translateY(-2px);
}

.category-story-card img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
  background: var(--paper-dim);
}
 
.category-story-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
}
 
.category-story-card p {
  font-size: 0.8rem;
  margin-top: var(--space-1);
}

.catalog-side-card {
  background: linear-gradient(140deg, #0f172a 0%, #17253d 50%, #2bb3a2 100%);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  position: sticky;
  top: var(--space-5);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
}
 
.catalog-side-card h3 {
  color: var(--paper);
  font-size: 1.05rem;
  margin-top: var(--space-1);
}
 
.catalog-side-card p {
  color: var(--slate-soft);
  font-size: 0.84rem;
  margin-top: var(--space-2);
}

.catalog-side-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-5);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.catalog-side-links a {
  color: var(--led);
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: var(--space-3);
}

.catalog-side-links a:last-child { border-bottom: none; padding-bottom: 0; }

/* ----------------------------- product grid ----------------------------- */

.shop-section { position: relative; }

.featured-products-spotlight {
  background: linear-gradient(135deg, #0f172a 0%, #17253d 45%, #2bb3a2 100%);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  margin-top: var(--space-5);
  margin-bottom: var(--space-5);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18);
}

.product-grid,
.flash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-5);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  align-items: stretch;
}

/* defensive styling for the included product card partial — adjust
   selectors here if _card.php uses different class names */
.front-products-grid .product-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.2s ease;
  box-shadow: 0 10px 24px rgba(6, 10, 20, 0.16);
}

.front-products-grid .product-card:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
}

/* ----------------------------- "best picks" spotlight ----------------------------- */

.featured-products-spotlight {
  --spot-bg: #eef4ff;
  --spot-bg-soft: rgba(255, 255, 255, 0.72);
  --spot-card: rgba(255, 255, 255, 0.94);
  --spot-line: rgba(115, 133, 190, 0.16);
  --spot-line-strong: rgba(86, 110, 188, 0.3);
  --spot-ink: #14213d;
  --spot-copy: #5a6788;
  --spot-accent: #5b7cff;
  --spot-accent-soft: #dfe7ff;
  --spot-accent-2: #9f7aea;
  
  background:
    radial-gradient(620px 320px at 8% 6%, rgba(91, 124, 255, 0.18), transparent 72%),
    radial-gradient(500px 280px at 100% 0%, rgba(159, 122, 234, 0.16), transparent 74%),
    linear-gradient(135deg, #f9fbff 0%, #eef4ff 100%);
  color: var(--spot-ink);
  border: 1px solid rgba(91, 124, 255, 0.16);
  border-radius: 24px;
  box-shadow: 0 28px 60px rgba(34, 53, 104, 0.12);
  overflow: hidden;
  padding: clamp(24px, 2.8vw, 36px);
  margin-top: calc(var(--space-5) + 2px);
  margin-bottom: calc(var(--space-5) + 2px);
}
 
.featured-products-spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(91, 124, 255, 0.06), transparent 35%, transparent 65%, rgba(159, 122, 234, 0.06));
  pointer-events: none;
}
 
.featured-products-spotlight::after { content: none; }
 
.featured-products-spotlight .featured-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-5);
  flex-wrap: wrap;
  margin-bottom: clamp(1.15rem, 2.1vw, 1.7rem);
  position: relative;
  z-index: 1;
}
 
.featured-products-spotlight .featured-note {
  color: var(--spot-accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 10px;
  border: 1px solid rgba(91, 124, 255, 0.16);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  margin-bottom: var(--space-3);
}
 
.featured-products-spotlight .featured-note::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--spot-accent), var(--spot-accent-2));
  box-shadow: 0 0 0 4px rgba(91, 124, 255, 0.12);
  flex-shrink: 0;
}
 
.featured-products-spotlight .featured-head h2 {
  font-size: clamp(1.6rem, 2.35vw, 2.05rem);
  line-height: 1.08;
  max-width: 28ch;
  letter-spacing: -0.02em;
  color: var(--spot-ink);
}
 
.featured-products-spotlight .featured-head p {
  color: var(--spot-copy);
  max-width: 54ch;
  margin-top: var(--space-2);
  font-size: 0.9rem;
  line-height: 1.6;
}
 
.featured-products-spotlight .text-link-light {
  color: var(--spot-ink);
  border-color: rgba(20, 33, 61, 0.24);
}
 
.featured-products-spotlight .text-link-light:hover {
  color: var(--spot-accent);
  border-color: var(--spot-accent);
}
 
.featured-products-spotlight .section-head::after {
  background: linear-gradient(90deg, var(--spot-accent), transparent);
  width: 92px;
  height: 3px;
}
 
.featured-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 1.8vw, 1.4rem);
}

/* override the generic .front-hub .product-grid 4-column rule for featured */
.front-hub .product-grid.featured-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 1.8vw, 1.4rem);
}

.featured-products-spotlight .product-grid > * {
  min-width: 0;
}

/* first card gets a subtle highlighted border — no spanning/horizontal layout */
.featured-products-spotlight .product-grid > :first-child.product-card {
  border-color: rgba(91, 124, 255, 0.42);
  box-shadow: 0 24px 52px rgba(54, 74, 128, 0.22), 0 0 0 1px rgba(91, 124, 255, 0.2);
}

/* (first-child horizontal layout removed — all cards are equal vertical cards) */

.featured-products-spotlight .front-products-grid .product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  border-radius: 24px;
  border: 1px solid rgba(91, 124, 255, 0.16);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(242, 247, 255, 0.96));
  box-shadow: 0 16px 34px rgba(54, 74, 128, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.featured-products-spotlight .front-products-grid .product-card::before {
  content: none;
}

.featured-products-spotlight .front-products-grid .product-card:hover {
  animation: none;
  opacity: 1;
  transform: translateY(-6px);
  border-color: rgba(91, 124, 255, 0.34);
  box-shadow: 0 24px 48px rgba(54, 74, 128, 0.18);
}

.featured-products-spotlight .product-card .thumb {
  position: relative;
  height: auto;
  aspect-ratio: 4 / 3;
  min-height: 160px;
  flex-shrink: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(91, 124, 255, 0.12), transparent 35%),
    linear-gradient(135deg, #f8fbff 0%, #eaf0fb 100%);
}

.featured-products-spotlight .product-card .thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 50%, rgba(20, 33, 61, 0.12) 100%);
  pointer-events: none;
}

.featured-products-spotlight .product-card .thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.35s ease;
}

.featured-products-spotlight .product-card:hover .thumb img {
  transform: scale(1.055);
}

.featured-products-spotlight .product-card .content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4) var(--space-4);
}
 
.featured-products-spotlight .product-card h3 {
  font-size: 0.98rem;
  line-height: 1.28;
  color: var(--spot-ink);
  margin-top: var(--space-1);
}

.featured-products-spotlight .product-card h3 a:hover {
  color: var(--spot-accent);
}

.featured-products-spotlight .product-card .muted {
  color: var(--spot-copy);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}
 
.featured-products-spotlight .product-card .price {
  margin-top: auto;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--spot-ink);
}
 
.featured-products-spotlight .product-card .actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-2);
}
 
.featured-products-spotlight .product-card .actions > * {
  flex: 1 1 130px;
  justify-content: center;
  min-height: 40px;
}

.featured-products-spotlight .product-card .btn-primary {
  background: linear-gradient(135deg, var(--spot-accent) 0%, var(--spot-accent-2) 100%);
  box-shadow: 0 14px 28px rgba(91, 124, 255, 0.18);
  border: 0;
}

.featured-products-spotlight .product-card .btn-primary:hover {
  transform: translateY(-1px);
}

.featured-products-spotlight .product-card .btn-outline {
  border-color: rgba(91, 124, 255, 0.18);
  color: var(--spot-ink);
  background: rgba(255, 255, 255, 0.9);
}

.featured-products-spotlight .product-card .btn-outline:hover {
  border-color: var(--spot-accent);
  color: var(--spot-accent);
  background: #fff;
}

.featured-products-spotlight .product-grid > :first-child.product-card {
  box-shadow: 0 20px 42px rgba(54, 74, 128, 0.16);
}

.featured-products-spotlight .card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid rgba(91, 124, 255, 0.12);
  margin-bottom: var(--space-1);
}

.featured-products-spotlight .card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--spot-accent);
}

.featured-products-spotlight .card-kicker::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--spot-accent);
  box-shadow: 0 0 0 3px rgba(91, 124, 255, 0.13);
}

.featured-products-spotlight .card-price-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--spot-accent);
  background: rgba(91, 124, 255, 0.08);
  letter-spacing: -0.01em;
}
 
.featured-products-spotlight .thumb-badge {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 2;
  padding: 6px 8px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--spot-accent), var(--spot-accent-2));
  box-shadow: 0 10px 24px rgba(91, 124, 255, 0.2);
}

/* ----------------------------- flash deals ----------------------------- */

.home-flash {
  background: var(--paper);
  padding: clamp(1.1rem, 1.8vw, 1.5rem);
  margin-top: clamp(0.45rem, 1vw, 0.8rem);
  margin-bottom: clamp(0.8rem, 1.4vw, 1.15rem);
  border-radius: 24px;
}
 
.flash-banner {
  background: linear-gradient(135deg, var(--blossom) 0%, var(--blossom-2) 55%, var(--sea) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 18px 36px rgba(255, 107, 107, 0.18);
}

.flash-banner h3 {
  font-size: 1.15rem;
  color: #fff;
}
 
.flash-banner p {
  color: rgba(255, 255, 255, 0.85);
  margin-top: var(--space-2);
  font-size: 0.84rem;
}

/* ----------------------------- reviews ----------------------------- */

.home-reviews {
  background: var(--paper-dim);
  padding: clamp(1.1rem, 1.8vw, 1.5rem);
  margin-top: clamp(0.45rem, 1vw, 0.8rem);
  margin-bottom: clamp(0.8rem, 1.4vw, 1.15rem);
  border-radius: 24px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
}

.review-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
  position: relative;
}

.review-card .stars {
  color: var(--blossom);
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: var(--space-3);
}

.review-card:nth-child(3n+2) .stars { color: var(--sea); }

.review-card p {
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.5;
}
 
.review-card strong {
  display: block;
  margin-top: var(--space-3);
  font-size: 0.82rem;
  font-family: var(--font-mono);
}

/* ----------------------------- conversion banner ----------------------------- */

.conversion-banner {
  text-align: center;
  padding: calc(var(--space-8) + 8px) var(--gutter);
  position: relative;
  margin-top: calc(var(--space-6) + 6px);
  margin-bottom: calc(var(--space-4) + 4px);
}

.conversion-banner::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 1px;
  height: var(--space-7);
  background: repeating-linear-gradient(
    to bottom,
    var(--copper) 0,
    var(--copper) 4px,
    transparent 4px,
    transparent 9px
  );
}

.conversion-banner h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  max-width: 22ch;
  margin: 0 auto;
}

.conversion-banner p {
  max-width: 46ch;
  margin: var(--space-4) auto 0;
}

.conversion-banner .hero-actions { justify-content: center; margin-top: var(--space-7); }
.conversion-banner .btn-outline { border-color: var(--line); color: var(--ink); }
.conversion-banner .btn-outline:hover { border-color: var(--copper); color: var(--copper); }

/* ----------------------------- polish / depth ----------------------------- */

@keyframes drift-soft {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -3px, 0); }
}

.hero-editorial::after {
  content: '';
  position: absolute;
  inset: auto -8% -36% auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 214, 140, 0.16), transparent 68%);
  pointer-events: none;
}

.hero-copy-card,
.hero-showcase-card,
.catalog-side-card,
.featured-products-spotlight,
.home-flash,
.home-reviews,
.category-story-card,
.review-card,
.front-products-grid .product-card {
  position: relative;
  isolation: isolate;
}

.hero-copy-card::after,
.hero-showcase-card::after,
.catalog-side-card::after,
.featured-products-spotlight::after,
.home-flash::after,
.home-reviews::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.category-story-card::before,
.review-card::before,
.front-products-grid .product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(168, 90, 44, 0.08), transparent 62%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.category-story-card:hover::before,
.review-card:hover::before,
.front-products-grid .product-card:hover::before {
  opacity: 1;
}

.trust-pill {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.trust-pill:hover {
  transform: translateY(-2px);
  border-color: var(--copper);
  box-shadow: 0 8px 18px rgba(14, 18, 25, 0.08);
}

.section-head {
  position: relative;
}

.section-head::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, var(--copper), transparent);
  border-radius: 999px;
}

.flash-banner {
  position: relative;
  overflow: hidden;
}

.flash-banner::before {
  content: '';
  position: absolute;
  inset: -20% -20% auto auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.conversion-banner {
  overflow: hidden;
}

.conversion-banner::after {
  content: '';
  position: absolute;
  inset: auto auto -24px -24px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 214, 140, 0.16), transparent 70%);
  pointer-events: none;
}

.category-story-card:hover,
.review-card:hover,
.front-products-grid .product-card:hover {
  animation: drift-soft 3.2s ease-in-out infinite;
  opacity: 1;
}

/* ----------------------------- responsive ----------------------------- */

@media (max-width: 960px) {
  .hero-grid-editorial { grid-template-columns: 1fr; }
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-side-card { position: static; }
  .category-stack { grid-template-columns: 1fr; }
  .front-hub .product-grid.featured-grid,
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-products-spotlight { border-radius: 0; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); }
}

@media (max-width: 600px) {
  .front-hub .section-block { padding: var(--space-6) var(--gutter); }
  .catalog-spotlight,
  .home-flash { padding-top: var(--space-6); padding-bottom: var(--space-6); }
  .home-reviews { padding-top: var(--space-6); padding-bottom: var(--space-6); }
  .hero-editorial { padding: var(--space-7) var(--gutter) var(--space-7); }
  .section-head { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
  .front-hub .product-grid.featured-grid,
  .featured-grid { grid-template-columns: 1fr; }
  .featured-products-spotlight .product-card .thumb { aspect-ratio: 4 / 3; min-height: 180px; }
  .featured-products-spotlight .product-card .content { padding: var(--space-4); }
  .featured-products-spotlight .product-card .actions > * { flex-basis: 100%; }
  .showcase-metrics { grid-template-columns: 1fr 1fr; }
  .conversion-banner { padding: var(--space-7) var(--gutter); margin-top: var(--space-4); }
}

/* ----------------------------- accessibility ----------------------------- */

.front-hub a:focus-visible,
.front-hub button:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .front-hub * { animation: none !important; transition: none !important; }
}