/* ============================================================
   TrustAct × Energetics kiosk — app styles (rebuild)
   depth & rhyme aesthetic inspired by OKLCH layering & visual systems
   ============================================================ */
@import url('assets/intersport-tokens.css');

* { box-sizing: border-box; }
html, body, #root {
  margin: 0; padding: 0;
  height: 100vh;
  width: 100vw;
  background: var(--brand-red);
  overflow: hidden;
}

/* Depth shadows — red-tinted elevation system */
:root {
  --shadow-depth-s:
    inset 0 1px 2px rgba(255,255,255,0.4),
    0 1px 2px rgba(180,12,22,0.15),
    0 2px 6px rgba(0,0,0,0.12);

  --shadow-depth-m:
    inset 0 1px 2px rgba(255,255,255,0.5),
    0 2px 6px rgba(180,12,22,0.2),
    0 6px 14px rgba(0,0,0,0.18);

  --shadow-depth-l:
    inset 0 1px 2px rgba(255,255,255,0.6),
    0 4px 8px rgba(180,12,22,0.25),
    0 12px 24px rgba(0,0,0,0.22);
}

/* Greek Language Typography Override */
[lang="el"] { --font-display: var(--font-display-el); --font-sans: var(--font-sans-el); }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  user-select: none;
  overscroll-behavior: none;
  touch-action: manipulation;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { max-width: 100%; display: block; }

#root { display: flex; flex-direction: column; }

/* The single app shell — fills viewport below the header */
.app {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  padding: 14px 24px;
  background: linear-gradient(135deg, #F7FAFF 0%, #E8F1FF 50%, #FFFFFF 100%);
  border-bottom: none;
  box-shadow: var(--shadow-depth-m);
  height: 76px;
  flex-shrink: 0;
  z-index: 5;
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
}
.header-brand {
  display: flex; align-items: center; gap: 14px;
  padding: 0;
}
.logo-intersport { height: 28px; }
.logo-energetics { height: 40px; }
.header-divider {
  width: 1px; height: 22px; background: var(--line); opacity: 0.4;
}
.header-crumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--fs-20);
  color: var(--ink-2);
  flex-wrap: nowrap;
  overflow: hidden;
}
.crumb {
  padding: 10px 18px;
  border-radius: 8px;
  color: var(--ink-2);
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
}
.crumb:hover { background: var(--brand-blue); color: #fff; }
.crumb-current { color: var(--brand-blue); font-weight: 600; }
.crumb-home { padding: 10px 18px; }
.crumb-sep { color: var(--ink-3); flex-shrink: 0; }

/* Lang toggle — blue pill on light background (header + home) */
.lang-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: var(--surface-2);
  border-radius: 999px;
  padding: 4px;
  font-size: var(--fs-14);
  font-weight: 700;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
}
.lang-pill {
  position: absolute;
  top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px);
  background: var(--brand-blue);
  border-radius: 999px;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.lang-toggle[data-active="en"] .lang-pill { transform: translateX(100%); }
.lang-toggle span:not(.lang-pill) {
  position: relative;
  z-index: 1;
  padding: 8px 14px;
  color: var(--ink-3);
  transition: color 0.28s ease;
  min-width: 44px;
  text-align: center;
}
.lang-toggle[data-active="el"] .lang-el { color: #fff; }
.lang-toggle[data-active="en"] .lang-en { color: #fff; }

.global-lang-toggle {
  position: fixed;
  bottom: 28px;
  left: calc(48px + max(0px, (100vw - 1448px) / 2));
  z-index: 200;
}


/* ============================================================
   MAIN AREA
   ============================================================ */
.main {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}

.screen-head {
  flex: 0 0 auto;
  text-align: center;
  padding: clamp(18px, 3vh, 32px) 24px clamp(6px, 1vh, 12px);
  margin-top: 2rem;
}
.screen-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 4.2vh, 48px);
  letter-spacing: -0.01em;
  margin: 0;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.screen-head p {
  margin: clamp(2px, 0.4vh, 6px) 0 0;
  color: var(--ink-2);
  font-size: clamp(14px, 1.8vh, 18px);
  opacity: 0.72;
}

/* ============================================================
   HOME SCREEN — logo top-center, two symmetrical tiles below
   ============================================================ */
.home {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 0;
  gap: clamp(20px, 3.5vw, 52px);
  padding: clamp(24px, 3.5vh, 44px) clamp(32px, 6vw, 80px);
  position: relative;
  isolation: isolate;
}

/* Sticker collage — sits behind everything on the red background */
.home-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.home-decor img {
  position: absolute;
  opacity: 0.72;
  display: block;
}

.home-header {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1.1vh, 14px);
  background: linear-gradient(135deg, #ffffffe0 0%, #f0f5ffe6 100%);
  padding: clamp(16px, 2.4vh, 30px) clamp(32px, 6vw, 80px);
  border-radius: clamp(16px, 2.2vh, 24px);
  width: 100%;
  max-width: 680px;
  box-shadow:
    inset 0 2px 8px rgba(0,0,0,0.14),
    inset 0 1px 3px rgba(0,0,0,0.10);
}
.home-logo-lockup {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3.5vw, 52px);
}
.home-logo-mark {
  height: clamp(112px, 4vh, 208px);
  width: auto;
  display: block;
  flex-shrink: 0;
}
.home-logo-energetics {
  height: clamp(110px, 3vh, 200px);
  width: auto;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}
.home-sub {
  font-size: clamp(13px, 1.7vh, 18px);
  color: var(--ink);
  margin: 0;
  line-height: 1.5;
  opacity: 0.55;
  letter-spacing: 0.01em;
  text-align: center;
}

.folder-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3.5vw, 52px);
  width: 100%;
  max-width: 680px;
}

/* Rounded-square tile — vertical layout */
.folder-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.2vh, 24px);
  aspect-ratio: 1;
  padding: clamp(24px, 3.5vh, 44px) clamp(18px, 2.5vw, 32px);
  background: linear-gradient(145deg, #FFFFFF 0%, #F4F4F4 100%);
  border-radius: clamp(24px, 3.5vh, 40px);
  border: none;
  text-align: center;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.09);
}
.folder-tile:hover {
  box-shadow: var(--shadow-depth-l);
  transform: translateY(-5px) scale(1.02);
}

.folder-equipment .folder-tile-icon { background: var(--brand-blue); }

.folder-tile-icon {
  width: clamp(68px, 10vh, 108px);
  height: clamp(68px, 10vh, 108px);
  display: grid; place-items: center;
  background: var(--brand-blue);
  color: #fff;
  border-radius: clamp(14px, 2vh, 22px);
  flex-shrink: 0;
  box-shadow: var(--shadow-depth-m), 0 8px 20px rgba(0,0,0,0.16);
  transition: all 0.25s ease;
}
.folder-tile-icon svg,
.folder-tile-icon .icon-mask {
  width: clamp(38px, 6vh, 60px) !important;
  height: clamp(38px, 6vh, 60px) !important;
}
.folder-tile:hover .folder-tile-icon {
  box-shadow: var(--shadow-depth-l), 0 12px 30px rgba(0,0,0,0.22);
  transform: scale(1.08);
}
.folder-accessories .folder-tile-icon { background: var(--brand-red); }
.folder-tile-text { min-width: 0; }
.folder-tile-text h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(15px, 2.2vh, 26px);
  letter-spacing: -0.01em;
  margin: 0 0 clamp(4px, 0.6vh, 8px);
  color: var(--ink);
  text-transform: uppercase;
  line-height: 1.1;
}
.folder-tile-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: clamp(12px, 1.6vh, 16px);
  font-weight: 600;
  color: var(--brand-blue);
}

/* ============================================================
   CATEGORY SCREEN — fits within viewport, never scrolls
   ============================================================ */
.categories {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  min-height: 0;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, clamp(170px, 27vh, 250px));
  gap: clamp(10px, 1.4vh, 16px);
  padding: clamp(8px, 1.2vh, 14px) clamp(80px, 14vw, 180px) clamp(14px, 2vh, 22px);
  width: 100%;
  overflow: hidden;
  min-height: 0;
}

.category-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(7px, 1vh, 12px);
  padding: clamp(10px, 1.4vh, 16px) clamp(10px, 1.4vw, 16px);
  background: linear-gradient(135deg, #FFFFFF 0%, #F8F8F8 100%);
  border: none;
  border-radius: clamp(12px, 1.6vh, 16px);
  text-align: center;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: var(--shadow-depth-m);
  overflow: hidden;
}
.category-tile:hover {
  box-shadow: var(--shadow-depth-l);
  transform: translateY(-2px);
}
.category-tile.is-placeholder {
  background: var(--surface-2);
  opacity: 0.85;
}
.category-tile-icon {
  width: clamp(76px, 10.5vh, 106px);
  height: clamp(76px, 10.5vh, 106px);
  display: grid; place-items: center;
  background: var(--brand-blue);
  color: #fff;
  border-radius: clamp(12px, 1.6vh, 16px);
  box-shadow: var(--shadow-depth-m);
  transition: all 0.25s ease;
  flex-shrink: 0;
}
.category-tile-icon svg,
.category-tile-icon .icon-mask {
  width: clamp(44px, 6.5vh, 64px) !important;
  height: clamp(44px, 6.5vh, 64px) !important;
}
.category-tile:hover .category-tile-icon {
  box-shadow: var(--shadow-depth-l);
  transform: scale(1.06);
}
.is-placeholder .category-tile-icon { background: var(--ink-3); }
.category-tile--functional .category-tile-icon .icon-mask { transform: rotate(90deg); }
.category-tile-text { min-width: 0; width: 100%; margin-top: 0.7rem; }
.category-tile-text h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(15px, 2.2vh, 22px);
  margin: 0 0 clamp(1px, 0.2vh, 3px);
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.category-tile-count {
  font-size: clamp(13px, 1.7vh, 16px);
  color: var(--ink);
  font-weight: 500;
  opacity: 0.68;
}
.is-placeholder .category-tile-count { font-style: italic; }
.category-tile-arrow { color: var(--brand-blue); }

/* ============================================================
   PRODUCT GRID + CARDS — fills viewport, dashboard-fit
   ============================================================ */
.product-grid-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  min-height: 0;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, clamp(180px, 29vh, 270px));
  gap: clamp(10px, 1.4vh, 16px);
  padding: clamp(8px, 1.2vh, 14px) clamp(80px, 14vw, 180px) clamp(14px, 2vh, 22px);
  width: 100%;
  overflow: hidden;
  min-height: 0;
  transition: opacity 0.3s ease;
}

/* Pagination controls */
.product-pagination {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vh, 24px);
  padding: 8px clamp(16px, 2vw, 28px);
  background: var(--surface-1);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  z-index: 20;
}

.pagination-buttons {
  display: flex;
  gap: clamp(6px, 1vh, 10px);
  align-items: center;
}

.pagination-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  background: var(--surface-2);
  border: 2px solid var(--border-light);
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination-btn:hover {
  background: var(--surface-3);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.pagination-btn.active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: white;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: none;
  border-radius: clamp(10px, 1.4vh, 14px);
  padding: clamp(7px, 1.1vh, 12px);
  text-align: left;
  transition: all 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
  cursor: pointer;
  box-shadow: var(--shadow-depth-m);
  min-height: 0;
  overflow: hidden;
}
.product-card:hover {
  box-shadow: var(--shadow-depth-l);
  transform: translateY(-3px);
  overflow: visible;
}
.product-card-img {
  flex: 1;
  min-height: 0;
  background: var(--surface-2);
  border-radius: clamp(6px, 0.9vh, 10px);
  display: grid;
  place-items: center;
  margin-bottom: clamp(4px, 0.7vh, 8px);
  overflow: visible;
  position: relative;
  isolation: isolate;
}
.product-card-img .product-card-image {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: clamp(3px, 0.5vh, 6px);
  max-width: 86%;
  max-height: 80%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center center;
  transition: transform 0.3s ease, opacity 0.3s ease;
  mix-blend-mode: multiply;
}

.product-card-code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(10px, 1.2vh, 12px);
  color: var(--brand-blue);
  letter-spacing: 0.05em;
  margin-bottom: 1px;
}
.product-card-name {
  font-weight: 600;
  font-size: clamp(11px, 1.3vh, 14px);
  color: var(--ink);
  line-height: 1.2;
  /* clamp to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* fade siblings when one is selected (smooth exit on transition) */
.product-card.is-fading {
  opacity: 0;
  transform: scale(0.92) translateY(8px);
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: calc(var(--card-i, 0) * 12ms);
}
.product-card.is-rising {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
  transition: opacity 0.28s ease-out, transform 0.28s ease-out;
}

/* placeholder block — fills available space and centers content */
.placeholder-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(20px, 4vh, 64px) 24px;
  max-width: 640px;
  margin: 0 auto;
  color: rgba(255,255,255,0.78);
  min-height: 0;
}
.placeholder-icon {
  width: clamp(120px, 22vh, 200px);
  height: clamp(120px, 22vh, 200px);
  display: grid; place-items: center;
  background: rgba(255,255,255,0.15);
  border-radius: clamp(20px, 3vh, 28px);
  margin: 0 auto clamp(14px, 2.4vh, 24px);
  color: rgba(255,255,255,0.65);
}
.placeholder-icon svg { width: 50%; height: 50%; }
.placeholder-block h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vh, 36px);
  text-transform: uppercase;
  margin: 0 0 clamp(6px, 1vh, 10px);
  color: #fff;
}
.placeholder-block p {
  font-size: clamp(14px, 1.8vh, 18px);
  margin: 0;
  opacity: 0.8;
}

/* ============================================================
   PRODUCT DETAIL OVERLAY
   ============================================================ */
.product-detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 18, 38, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  z-index: 50;
  padding: 24px;
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.product-detail {
  background: #fff;
  border-radius: 24px;
  width: min(1400px, 96vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: var(--shadow-depth-l);
  animation: zoomIn 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes zoomIn {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.detail-header {
  padding: 24px 28px 20px;
  border-bottom: none;
  box-shadow: var(--shadow-depth-s);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.detail-header-main { flex: 1; min-width: 0; }
.detail-close {
  flex-shrink: 0;
  margin-top: 2px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--surface-2);
  border-radius: 10px;
  color: var(--ink);
  transition: all 0.2s ease;
}
.detail-close:hover {
  background: var(--ink);
  color: #fff;
}

.detail-eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 8px;
}
.detail-brand {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--brand-blue);
  font-size: var(--fs-14);
  text-transform: uppercase;
}
.detail-cat {
  font-size: var(--fs-14);
  color: var(--ink-2);
  opacity: 0.68;
  padding-left: 0;
}
.detail-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 6px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.detail-code {
  font-size: var(--fs-14);
  color: var(--ink);
  opacity: 0.64;
}
.detail-code strong { color: var(--brand-blue); font-weight: 700; }

.detail-body {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 0;
  flex: 1;
  overflow: visible;
}
.detail-hero {
  background: linear-gradient(180deg, #F7FAFF 0%, #ECEFF6 100%);
  display: grid;
  place-items: center;
  position: relative;
  padding: 32px;
}
.detail-hero img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.18));
  animation: heroIn 0.5s ease;
}
.detail-hero-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  height: 100%;
  place-items: center;
}
.detail-hero-single {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}
.detail-hero-single img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.18));
  animation: heroIn 0.5s ease;
}
@keyframes heroIn {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.detail-hero-tag {
  position: absolute;
  bottom: 24px; left: 24px;
  background: var(--brand-blue);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: var(--fs-14);
}

/* Image carousel navigation */
.detail-image-carousel {
  position: absolute;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px 12px;
  border-radius: 24px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--surface-2);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: var(--ink);
}

.carousel-btn:hover {
  background: var(--brand-blue);
  color: white;
  transform: scale(1.05);
}

.carousel-counter {
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-secondary);
  min-width: 50px;
  text-align: center;
}
.detail-info {
  display: flex;
  flex-direction: column;
  overflow: visible;
}
.detail-tabs {
  display: flex;
  gap: 4px;
  padding: 16px 24px 0;
  border-bottom: none;
  box-shadow: var(--shadow-depth-s);
  flex-shrink: 0;
  overflow: visible;
}
.detail-tab {
  padding: 12px 20px;
  border-radius: 10px 10px 0 0;
  color: var(--ink-2);
  font-weight: 600;
  font-size: var(--fs-15, 15px);
  position: relative;
  white-space: nowrap;
}
.detail-tab.on {
  color: var(--brand-blue);
  background: var(--surface-2);
}
.detail-tab.on::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  background: var(--brand-blue);
  border-radius: 3px 3px 0 0;
}

.detail-tab-body {
  padding: 24px 32px;
  flex: 1;
  overflow: visible;
}

/* Overview tab */
.badges {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: var(--surface-2);
  border-radius: 999px;
  font-size: var(--fs-13);
  font-weight: 600;
  color: var(--ink);
}
.badge svg { color: var(--brand-blue); }

.highlights {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.highlights li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 14px 18px;
  background: var(--surface-2);
  border-radius: 12px;
  align-items: baseline;
  box-shadow: var(--shadow-depth-s);
  border: none;
}
.hl-label {
  font-size: var(--fs-14);
  color: var(--ink);
  font-weight: 500;
  opacity: 0.7;
}
.hl-value {
  font-weight: 700;
  color: var(--ink);
  text-align: right;
  font-size: var(--fs-16);
}

.price-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: var(--brand-blue);
  color: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-depth-m);
}
.price-label {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: var(--fs-13);
  opacity: 0.85;
}
.price-value {
  font-weight: 700;
  font-size: var(--fs-18);
}

/* Specs tab */
.specs-pane { padding-bottom: 12px; }
.spec-group { margin-bottom: 22px; }
.spec-group-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: var(--fs-14);
  color: var(--brand-blue);
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--brand-blue);
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-14);
}
.spec-table tr { 
  border-bottom: none;
  background: var(--surface-2);
  margin-bottom: 6px;
  display: grid;
  grid-template-columns: 56% 1fr;
  gap: 8px;
  padding: 0;
  border-radius: 8px;
  box-shadow: var(--shadow-depth-s);
  overflow: hidden;
}
.spec-table tr:last-child { border-bottom: 0; }
.spec-table th, .spec-table td {
  padding: 10px 8px;
  vertical-align: top;
  text-align: left;
}
.spec-table th {
  font-weight: 500;
  color: var(--ink);
  opacity: 0.72;
  width: auto;
}
.spec-table td {
  font-weight: 600;
  color: var(--ink);
  white-space: pre-line;
}

/* Video placeholder */
.video-placeholder {
  display: grid; place-items: center;
  padding: 24px 0;
}
.vp-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--surface-3);
  border: 2px dashed var(--line);
  border-radius: 16px;
  display: grid; place-items: center; gap: 8px;
  color: var(--ink-2);
  text-align: center;
}
.vp-frame svg { color: var(--brand-blue); opacity: 0.7; }
.vp-frame p { margin: 4px 0 0; font-weight: 600; font-size: var(--fs-16); }
.vp-kind {
  font-size: var(--fs-13);
  color: var(--ink-3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.detail-footer {
  padding: 14px 32px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  text-align: center;
}
.detail-close-hint {
  font-size: var(--fs-13);
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ============================================================
   PRODUCT FOCUS VIEW — elevated in-place product expansion
   The page background (brand red) stays visible. Spec cards float
   above it with soft shadows; the product image is the protagonist.
   ============================================================ */

.product-grid-screen.product-focus-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  min-height: 0;
}

/* A soft wash that sits above the page background to give a subtle
   "stage light" feel without becoming a modal backdrop. */
.product-grid-screen.product-focus-view::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,0.08), transparent 60%),
    radial-gradient(80% 60% at 50% 100%, rgba(0,0,0,0.18), transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: focusBackdropIn 0.55s ease both;
}
@keyframes focusBackdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.focus-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: clamp(16px, 2.6vh, 26px) clamp(20px, 3vw, 36px) clamp(20px, 3vh, 36px);
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vh, 22px);
  flex: 1;
  min-height: 0;
  overflow: hidden;
  animation: focusStageIn 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes focusStageIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Top bar ─────────────────────────────────────────────────── */
.focus-top-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  animation: focusBarIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.06s both;
}
@keyframes focusBarIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.focus-title-block {
  flex: 1 1 320px;
  min-width: 0;
  color: #fff;
}
.focus-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.focus-brand {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.95);
  font-size: var(--fs-13);
  text-transform: uppercase;
}
.focus-eyebrow-sep {
  color: rgba(255,255,255,0.5);
  font-weight: 700;
}
.focus-cat-chip {
  font-size: var(--fs-12);
  color: #fff;
  letter-spacing: 0.08em;
  background: rgba(255,255,255,0.16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.22);
}
.focus-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.8vw, 44px);
  margin: 0 0 8px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  text-shadow: 0 2px 14px rgba(0,0,0,0.22);
}
.focus-code-line {
  font-size: var(--fs-13);
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.02em;
}
.focus-code-line .focus-code-dim {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  font-size: var(--fs-12);
  opacity: 0.85;
  margin-right: 8px;
}
.focus-code-line strong {
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.06em;
}

/* ── Action buttons (top right) ──────────────────────────────── */
.focus-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.focus-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 11px;
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-13);
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1.5px solid rgba(255,255,255,0.28);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background 0.22s ease, color 0.22s ease,
              transform 0.22s ease, box-shadow 0.22s ease,
              border-color 0.22s ease;
  cursor: pointer;
  white-space: nowrap;
}
.focus-action-btn svg { transition: transform 0.22s ease; opacity: 0.95; }
.focus-action-btn:hover {
  background: #fff;
  color: var(--brand-red);
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}
.focus-action-btn:hover svg { transform: translateX(-1px); }

.focus-action-back {
  background: #fff;
  color: var(--brand-red);
  border-color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
.focus-action-back:hover {
  background: rgba(255,255,255,0.92);
  color: var(--brand-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.24);
}
.focus-action-back svg { transform: translateX(0); }
.focus-action-back:hover svg { transform: translateX(-2px); }

/* ── Main 3-column layout: specs L | product | specs R ──────── */
.focus-main {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(380px, 1.45fr) minmax(240px, 1fr);
  gap: 24px;
  flex: 1;
  align-items: stretch;
  min-height: 0;
}

/* Side spec columns */
.focus-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.4) transparent;
}
.focus-side::-webkit-scrollbar { width: 5px; }
.focus-side::-webkit-scrollbar-track { background: transparent; }
.focus-side::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.35); border-radius: 4px; }
.focus-side-left  { animation: focusSlideL 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) 0.16s both; }
.focus-side-right { animation: focusSlideR 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s  both; }
@keyframes focusSlideL {
  from { opacity: 0; transform: translateX(-22px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes focusSlideR {
  from { opacity: 0; transform: translateX(22px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Spec card — white panel that floats above the red page */
.focus-spec-card {
  background: #fff;
  border-radius: 16px;
  padding: 14px 16px 12px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.5) inset,
    0 12px 28px rgba(0,0,0,0.18),
    0 2px 6px rgba(0,0,0,0.10);
  border: 1px solid rgba(255,255,255,0.6);
  animation: focusCardIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(0.22s + var(--enter-i, 0) * 0.07s);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: clamp(190px, 30vh, 270px);
}
@keyframes focusCardIn {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.focus-spec-card-head {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-13);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand-red);
  flex-shrink: 0;
}

.focus-spec-list {
  list-style: none;
  margin: 0;
  padding: 0 6px 0 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.18) transparent;
}
.focus-spec-list::-webkit-scrollbar { width: 4px; }
.focus-spec-list::-webkit-scrollbar-track { background: transparent; }
.focus-spec-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.16); border-radius: 4px; }

.focus-spec-row {
  display: grid;
  grid-template-columns: 1.05fr auto;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  align-items: baseline;
}
.focus-spec-row:last-child { border-bottom: none; }
.focus-spec-key {
  font-size: var(--fs-13);
  color: var(--ink);
  opacity: 0.72;
  font-weight: 500;
  line-height: 1.3;
}
.focus-spec-val {
  font-size: var(--fs-13);
  font-weight: 700;
  color: var(--ink);
  text-align: right;
  white-space: pre-line;
  line-height: 1.3;
}

/* Trust card (cert + warranty) on left column */
.focus-trust-card {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: focusCardIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(0.22s + var(--enter-i, 0) * 0.07s);
}
.focus-trust-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: var(--fs-13);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.focus-trust-row svg { color: #fff; opacity: 0.95; flex-shrink: 0; }

/* ── Center stage — product image ────────────────────────────── */
.focus-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.6vh, 20px);
  padding: 4px 12px;
  position: relative;
  min-height: 0;
  min-width: 0;
  animation: focusCenterIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both;
}
@keyframes focusCenterIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

/* Soft glow behind the product to make it feel elevated */
.focus-image-glow {
  position: absolute;
  inset: 8% 12% 22%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.32), rgba(255,255,255,0) 65%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
}

.focus-image-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.focus-image-hero {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 28px 48px rgba(0,0,0,0.34))
    drop-shadow(0 8px 14px rgba(0,0,0,0.22));
  animation: focusImageFloat 6s ease-in-out infinite;
}
@keyframes focusImageFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.focus-image-duo {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
  width: 100%;
  height: 100%;
  align-items: center;
}
.focus-image-trio {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
  width: 100%;
  height: 100%;
  align-items: center;
}
.focus-image-stage:has(.focus-image-trio) {
  max-width: none;
}
.focus-image-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.focus-image-slot {
  flex: 1;
  min-height: 0;
}
.focus-image-slot img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,0.28));
}
.focus-image-slot--hero {
  align-self: stretch;
}
.focus-image-slot--hero img {
  max-height: 90%;
  filter: drop-shadow(0 28px 42px rgba(0,0,0,0.34)) drop-shadow(0 8px 16px rgba(0,0,0,0.22));
}
.focus-image-tag {
  font-size: var(--fs-12);
  color: #fff;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.28);
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.focus-code-chip {
  position: relative;
  z-index: 1;
  background: #fff;
  color: var(--brand-red);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.1em;
  font-size: var(--fs-13);
  padding: 7px 18px;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.22), 0 2px 4px rgba(0,0,0,0.12);
}

/* ── Price card on right column ──────────────────────────────── */
.focus-price-card {
  background: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.5) inset,
    0 12px 28px rgba(0,0,0,0.18),
    0 2px 6px rgba(0,0,0,0.10);
  border: 1px solid rgba(255,255,255,0.6);
  margin-top: auto;
  animation: focusCardIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(0.28s + var(--enter-i, 0) * 0.07s);
}
.focus-price-label {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: var(--fs-12);
  color: var(--brand-red);
}
.focus-price-value {
  font-weight: 700;
  font-size: var(--fs-16);
  color: var(--ink);
  letter-spacing: 0.01em;
}

/* ── Video sub-stage ─────────────────────────────────────────── */
.focus-stage-video .focus-video-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 4px 12px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.14);
  animation: focusVideoIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) 0.12s both;
  max-height: calc(100vh - 220px);
}
@keyframes focusVideoIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
.focus-stage-video video {
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 220px);
  object-fit: contain;
  display: block;
}
.focus-video-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: rgba(255,255,255,0.78);
  padding: 60px 40px;
  text-align: center;
}
.focus-video-empty svg { color: rgba(255,255,255,0.55); }
.focus-video-empty p {
  font-size: var(--fs-16);
  margin: 0;
  letter-spacing: 0.04em;
}

/* ── Smooth grid exit when leaving to focus ──────────────────── */
.product-grid-screen.is-leaving .product-grid {
  pointer-events: none;
}

/* ── Responsive tweaks ───────────────────────────────────────── */
@media (max-width: 1180px) {
  .focus-main {
    grid-template-columns: minmax(220px, 1fr) minmax(320px, 1.4fr) minmax(220px, 1fr);
    gap: 16px;
  }
}
@media (max-width: 820px) {
  /* Below tablet landscape — give the product image a fixed slice and stack sides as 2 cols */
  .focus-main {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  }
  .focus-center     { grid-column: 1 / -1; grid-row: 1; }
  .focus-side-left  { grid-column: 1; grid-row: 2; }
  .focus-side-right { grid-column: 2; grid-row: 2; }
  .focus-action-btn { padding: 8px 12px; font-size: var(--fs-12); }
}

/* ============================================================
   ACCESSORY SCROLL — full-page vertical snap scroller
   Red background stays visible. Images float freely on it.
   White info panel sits on the right of each slide.
   ============================================================ */
.acc-scroll-screen {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.acc-scroll-container {
  position: absolute;
  inset: 0;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.acc-scroll-container::-webkit-scrollbar { display: none; }

/* Each product occupies one full slide height */
.acc-slide {
  height: 100%;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: clamp(20px, 3vh, 40px) clamp(24px, 4vw, 60px);
  overflow: hidden;
  isolation: isolate;
}

/* ── Floating images ─────────────────────────────────────── */
.acc-images {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.acc-img-wrapper {
  position: absolute;
}
.acc-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes accFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}
@keyframes accFloat2 {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-7px); }
}

/* ── 1 image ── */
.acc-images-1 .acc-img-wrapper:nth-child(1) {
  width: min(48vw, 500px);
  height: min(48vw, 500px);
  left: 29%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-3deg);
}
.acc-images-1 .acc-img-wrapper:nth-child(1) .acc-img {
  filter: drop-shadow(0 32px 64px rgba(0,0,0,0.40));
  animation: accFloat 6s ease-in-out infinite;
}

/* ── 2 images ── */
.acc-images-2 .acc-img-wrapper:nth-child(1) {
  width: min(40vw, 420px);
  height: min(40vw, 420px);
  left: 29%;
  top: 8%;
  transform: translateX(-50%) rotate(-8deg);
}
.acc-images-2 .acc-img-wrapper:nth-child(1) .acc-img {
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.36));
  animation: accFloat 5.5s ease-in-out infinite;
}
.acc-images-2 .acc-img-wrapper:nth-child(2) {
  width: min(30vw, 300px);
  height: min(30vw, 300px);
  left: 38%;
  bottom: 6%;
  transform: translateX(-50%) rotate(9deg);
}
.acc-images-2 .acc-img-wrapper:nth-child(2) .acc-img {
  filter: drop-shadow(0 16px 32px rgba(0,0,0,0.30));
  animation: accFloat2 7s ease-in-out infinite 1.8s;
}

/* ── 3 images ── */
.acc-images-3 .acc-img-wrapper:nth-child(1) {
  width: min(38vw, 380px);
  height: min(38vw, 380px);
  left: 29%;
  top: 50%;
  transform: translate(-50%, -55%) rotate(-5deg);
}
.acc-images-3 .acc-img-wrapper:nth-child(1) .acc-img {
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.38));
  animation: accFloat 5s ease-in-out infinite;
}
.acc-images-3 .acc-img-wrapper:nth-child(2) {
  width: min(26vw, 260px);
  height: min(26vw, 260px);
  left: 42%;
  top: 5%;
  transform: translateX(-50%) rotate(10deg);
}
.acc-images-3 .acc-img-wrapper:nth-child(2) .acc-img {
  filter: drop-shadow(0 16px 32px rgba(0,0,0,0.28));
  animation: accFloat2 7s ease-in-out infinite 1s;
}
.acc-images-3 .acc-img-wrapper:nth-child(3) {
  width: min(22vw, 220px);
  height: min(22vw, 220px);
  left: 18%;
  bottom: 5%;
  transform: translateX(-50%) rotate(-7deg);
}
.acc-images-3 .acc-img-wrapper:nth-child(3) .acc-img {
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.24));
  animation: accFloat 6s ease-in-out infinite 2.5s;
}

/* ── Info panel (white card, right-aligned) ──────────────── */
.acc-info-panel {
  position: relative;
  z-index: 2;
  width: clamp(290px, 40%, 500px);
  max-height: calc(100% - clamp(32px, 5vh, 60px));
  background: #fff;
  border-radius: clamp(18px, 2.6vh, 28px);
  padding: clamp(18px, 2.6vh, 30px) clamp(18px, 2.4vw, 30px);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.6),
    0 24px 64px rgba(0,0,0,0.30),
    0 4px 14px rgba(0,0,0,0.16);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* animation driven by JS class toggle */
  opacity: 0;
  transform: translateX(28px);
}
.acc-info-panel.acc-panel-animate {
  animation: accPanelIn 0.52s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes accPanelIn {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}

.acc-panel-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(8px, 1.2vh, 14px);
  flex-shrink: 0;
  flex-wrap: wrap;
}
.acc-eyebrow-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(10px, 1.2vh, 12px);
  letter-spacing: 0.14em;
  color: var(--brand-blue);
  text-transform: uppercase;
}
.acc-eyebrow-cat {
  font-size: clamp(10px, 1.2vh, 12px);
  color: var(--ink-2);
  background: var(--surface-2);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.acc-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 2.8vw, 32px);
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0 0 clamp(4px, 0.7vh, 8px);
  flex-shrink: 0;
}

.acc-code {
  font-size: clamp(11px, 1.4vh, 13px);
  color: var(--ink);
  opacity: 0.65;
  margin-bottom: clamp(10px, 1.5vh, 18px);
  flex-shrink: 0;
}
.acc-code-dim {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  font-size: clamp(10px, 1.2vh, 11px);
  margin-right: 6px;
}
.acc-code strong {
  color: var(--brand-blue);
  font-weight: 800;
  letter-spacing: 0.06em;
}

/* Scrollable spec list inside the panel */
.acc-specs-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin-bottom: clamp(8px, 1.3vh, 16px);
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.12) transparent;
}
.acc-specs-list::-webkit-scrollbar { width: 4px; }
.acc-specs-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 4px; }

.acc-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: clamp(6px, 0.9vh, 9px) 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.acc-spec-row:last-child { border-bottom: none; }
.acc-spec-key {
  font-size: clamp(11px, 1.4vh, 13px);
  color: var(--ink);
  opacity: 0.65;
  font-weight: 500;
  line-height: 1.3;
  flex-shrink: 1;
  min-width: 0;
}
.acc-spec-val {
  font-size: clamp(11px, 1.4vh, 13px);
  font-weight: 700;
  color: var(--ink);
  text-align: right;
  flex-shrink: 0;
  max-width: 58%;
  word-break: break-word;
  white-space: pre-line;
  line-height: 1.3;
}

/* ── Dot navigation — right edge ─────────────────────────── */
.acc-dot-nav {
  position: absolute;
  right: clamp(8px, 1.2vw, 14px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  max-height: 80vh;
  overflow: hidden;
}

.acc-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.38);
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.acc-dot.active {
  height: 22px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.24);
}
.acc-dot:hover:not(.active) {
  background: rgba(255,255,255,0.68);
  transform: scale(1.25);
}

/* Large product sets: show a numeric counter instead of dots */
.acc-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
}
.acc-counter-cur {
  font-size: clamp(18px, 2.4vh, 26px);
  line-height: 1;
}
.acc-counter-sep {
  font-size: clamp(10px, 1.2vh, 12px);
  opacity: 0.55;
}
.acc-counter-tot {
  font-size: clamp(12px, 1.5vh, 15px);
  opacity: 0.7;
}

/* ── Scroll-down hint — bottom centre ───────────────────── */
.acc-scroll-hint {
  position: absolute;
  bottom: clamp(14px, 2.2vh, 24px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  pointer-events: none;
  animation: accHintBounce 2s ease-in-out infinite;
}
.acc-scroll-hint span {
  font-size: clamp(10px, 1.3vh, 12px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.80);
  text-shadow: 0 1px 4px rgba(0,0,0,0.30);
  white-space: nowrap;
}
.acc-scroll-hint svg {
  color: rgba(255,255,255,0.75);
}

@keyframes accHintBounce {
  0%, 100% { transform: translateX(-50%) translateY(0);   opacity: 0.82; }
  50%       { transform: translateX(-50%) translateY(6px); opacity: 0.48; }
}

/* ============================================================
   IDLE VIDEO / ATTRACT SCREEN
   ============================================================ */
.idle-video {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--brand-blue);
  display: grid;
  place-items: center;
  cursor: pointer;
  animation: fadeIn 0.4s ease;
}
.idle-video-el {
  width: 100%; height: 100%; object-fit: cover;
}
.idle-video-placeholder {
  text-align: center;
  color: #fff;
  padding: 40px;
}
.idle-mark {
  width: clamp(180px, 26vw, 320px);
  margin-bottom: 36px;
  filter: brightness(0) invert(1);
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.85; }
}
.idle-energetics img {
  height: 36px;
  filter: brightness(0) invert(1);
  margin-bottom: 24px;
  display: inline-block;
}
.idle-hash {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: clamp(24px, 3vw, 36px);
  margin: 0 0 60px;
  text-transform: uppercase;
}
.idle-cta {
  font-size: var(--fs-18);
  opacity: 0.7;
  margin: 0;
  letter-spacing: 0.04em;
}

/* ============================================================
   RESPONSIVE — tablet dashboard, no scroll at any width
   ============================================================ */
@media (max-width: 820px) {
  .home { padding: clamp(20px, 3vh, 32px) clamp(16px, 3vw, 28px); gap: clamp(16px, 2.5vh, 28px); }
  .folder-grid { max-width: 480px; gap: clamp(16px, 2.5vw, 28px); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid   { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .folder-grid { grid-template-columns: 1fr; max-width: 420px; }
  .header-inner { padding: 0 12px; gap: 12px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); padding: 0 12px clamp(10px, 2vh, 16px); }
  .product-grid   { grid-template-columns: repeat(2, 1fr); padding: 0 12px clamp(10px, 2vh, 16px); }
}
