/* ================================================================
   SHEEPSLEEP — Merged Stylesheet
   v4 (2026-05-13). Gemini typography head + original components tail.
   - Sections 1-5 (fonts, tokens, body, headings, buttons): Gemini's v3
   - Section 6+ (layout, header, hero, cards, footer, PDP, cart, etc.): original
   - Compatibility aliases keep --ff-ge etc. working for legacy components.
   ================================================================ */

/* ----- 1. Fonts & Fallbacks ----- */
@font-face {
  font-family: "Aktiv Grotesk";
  src: url("../fonts/Aktiv_Grotesk_Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sora";
  src: url("../fonts/Sora-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Engravers Gothic";
  src: url("../fonts/engravers-gothic-regular.ttf") format("truetype");
  font-weight: 700; /* Handles display capitals naturally */
  font-style: normal;
  font-display: swap;
}

/* Prevent faked/blurry browser-generated weights */
html { 
  font-synthesis: none; 
  -webkit-text-size-adjust: 100%; 
  scroll-behavior: smooth; 
}

/* ----- 2. Brand Tokens & Global Typography Reset ----- */
:root {
  /* Color Palette Hooks */
  --c-ground:      #432f2e;
  --c-forest:      #23322f;
  --c-sunrise:     #f5b784;
  --c-cloud:       #8fb3cd;
  --c-cloud-pale:  #d8e6ef;
  --c-field:       #869c5f;
  --c-field-pale:  #d6dec3;
  --c-sunset:      #8f3b46;
  --c-twilight:    #778ddc;
  --c-cream:       #f6f1e6;
  --c-bone:        #ece6d6;
  --c-ink:         var(--c-forest);

  /* Clean, highly compatible font-stack fallbacks */
  --ff-display-en: "Engravers Gothic", "Sora", sans-serif;
  --ff-body-en:    "Sora", system-ui, sans-serif;
  --ff-ge-all:     "Aktiv Grotesk", "Sora", system-ui, sans-serif;

  /* Compatibility aliases — original components below still reference these names. */
  --ff-display:    var(--ff-display-en);
  --ff-body:       var(--ff-body-en);
  --ff-ge:         var(--ff-ge-all);
  --ff-ge-display: var(--ff-ge-all);

  /* Layout Spacing Metrics */
  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s5: 3rem;
  --s6: 4rem;
  --container: 1280px;
  --radius: 14px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

/* Default Base Settings (English Language Focus) */
body {
  margin: 0;
  background: var(--c-cream);
  color: var(--c-ink);
  font-family: var(--ff-body-en);
  font-weight: 400; /* Crisp standard weight */
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Base Settings Overrides (Georgian Language Focus) */
body[data-lang="ge"] {
  font-family: var(--ff-ge-all);
  font-weight: 400; /* Eliminated light 300 font weights for better reading contrast */
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; margin: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s2);
}
@media (min-width: 768px) { .container { padding: 0 var(--s4); } }

/* ----- 3. Global Headings & Structural Scale ----- */
h1, h2, h3, h4, h5 {
  color: var(--c-ink);
  line-height: 1.15; /* Loosened slightly from 1.08 to accommodate script transitions cleanly */
  margin: 0 0 var(--s2);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Explicit Language Stack Adjustments */
body:not([data-lang="ge"]) h1,
body:not([data-lang="ge"]) h2,
body:not([data-lang="ge"]) h3,
body:not([data-lang="ge"]) h4,
body:not([data-lang="ge"]) h5 {
  font-family: var(--ff-display-en);
}

body[data-lang="ge"] h1,
body[data-lang="ge"] h2,
body[data-lang="ge"] h3,
body[data-lang="ge"] h4,
body[data-lang="ge"] h5,
body[data-lang="ge"] .eyebrow {
  font-family: var(--ff-ge-all);
}

/* Standardized, non-extreme font weights for readability */
h1 { font-weight: 700; font-size: clamp(1.8rem, 5vw, 2.8rem); }
h2 { font-weight: 700; font-size: clamp(1.4rem, 3.5vw, 2.1rem); }
h3 { font-weight: 600; font-size: clamp(1.1rem, 2.2vw, 1.35rem); }
h4 { font-weight: 600; font-size: 1.1rem; }
h5 { font-weight: 600; font-size: 0.95rem; }

p { 
  margin: 0 0 var(--s2); 
  font-weight: 400;
}
body[data-lang="ge"] p {
  letter-spacing: 0.01em; /* Slight track adjustment for Georgian text rendering */
}

/* Eyebrows & UI Overrides */
.eyebrow {
  font-family: var(--ff-display-en);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--c-forest);
  margin: 0 0 var(--s1);
}

/* ----- 4. Components Redesign (Buttons & Interactivity) ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75em 1.6em;
  border-radius: 999px;
  font-family: var(--ff-body-en);
  font-weight: 600; /* Semibold hits the design sweet spot across modern engines */
  font-size: 0.9rem;
  border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
  cursor: pointer;
}
body[data-lang="ge"] .btn {
  font-family: var(--ff-ge-all);
  font-weight: 600;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary  { background: var(--c-forest); color: var(--c-cream); }
.btn-primary:hover  { background: var(--c-ground); }
.btn-outline  { background: transparent; color: var(--c-forest); border-color: var(--c-forest); }
.btn-outline:hover  { background: var(--c-forest); color: var(--c-cream); }
.btn-sunrise  { background: var(--c-sunrise); color: var(--c-forest); }
.btn-sunrise:hover  { background: #ecaa78; }
.btn-cream   { background: var(--c-cream); color: var(--c-forest); }
.btn-cream:hover   { background: #fff; }
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--c-forest);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.btn-link:hover { gap: 0.7rem; }

/* ================================================================
   COMPONENTS BELOW — merged from original sheepsleep.css (line 176+)
   Gemini rules above WIN on conflict (cascade order).
   ================================================================ */
/* ----- 6. Section base padding (compact, mobile-first) ----- */
section {
  padding: var(--s5) 0;
}
@media (min-width: 768px) { section { padding: var(--s6) 0; } }
@media (min-width: 1024px){ section { padding: 4.5rem 0; } }

/* ================================================================
   HEADER (single row, sticky, with mega-menu dropdowns)
   ================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-cream);
  border-bottom: 1px solid rgba(35,50,47,.08);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 2px 12px rgba(35,50,47,.08); }

.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s3);
  padding: 0.6rem 0;
  min-height: var(--header-h);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
}
.nav-logo img {
  height: 40px;
  width: auto;
}
@media (min-width: 1024px) { .nav-logo img { height: 42px; } }
@media (min-width: 1280px) { .nav-logo img { height: 44px; } }

/* --- Nav links: spacious, centered --- */
.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
}

.nav-links a {
  position: relative;
  padding: 0.4em 0;
  color: var(--c-forest);
  transition: color .2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--c-field); }
.nav-links a.has-dot::after {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--c-sunset);
  position: absolute;
  top: 6px; right: -10px;
}

/* --- Right utilities: more breathing room --- */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
@media (min-width: 1024px) { .nav-right { gap: 0.6rem; } }

.icon-btn {
  width: 42px; height: 42px;
  border: none;
  background: transparent;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: var(--c-forest);
  position: relative;
  transition: background .2s;
}
.icon-btn:hover { background: rgba(35,50,47,.08); }

/* Offer icon — sunset accent + pulsing dot */
.icon-btn--offer { color: var(--c-sunset); }
.icon-btn--offer:hover { background: rgba(143,59,70,.10); }
.offer-dot {
  position: absolute;
  top: 7px; right: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-sunset);
  border: 2px solid var(--c-cream);
  animation: offerPulse 2s ease-in-out infinite;
}
@keyframes offerPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .offer-dot { animation: none; }
}

.cart-badge {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  background: var(--c-sunset);
  color: var(--c-cream);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  display: grid; place-items: center;
}
/* ---- Add-to-cart toast ---- */
.cart-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(1rem);
  background: var(--c-forest);
  color: var(--c-cream);
  font-family: var(--ff-ge);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 20px rgba(35,50,47,.3);
  opacity: 0;
  transition: opacity .25s, transform .25s;
  z-index: 9999;
  pointer-events: none;
  white-space: nowrap;
}
.cart-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.lang-toggle {
  font-family: var(--ff-display-en);
  font-size: 0.72rem;
  
  display: flex;
  align-items: center;
  gap: 0;
  margin-right: 0.2rem;
}
.lang-toggle a {
  color: rgba(35,50,47,.42);
  text-transform: uppercase;
  line-height: 1;
  transition: color .15s;
}
.lang-toggle a:hover { color: var(--c-forest); }
.lang-toggle a.active { color: var(--c-forest); font-weight: 700; }
.lang-toggle a + a::before {
  content: '/';
  padding: 0 0.35em;
  color: rgba(35,50,47,.25);
  font-weight: 400;
}

.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  background: transparent;
  border: none;
  color: var(--c-forest);
}
@media (min-width: 1024px) { .menu-toggle { display: none; } }

/* --- Mobile: nav-links is a drawer --- */
.nav-links {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: var(--c-cream);
  flex-direction: column;
  gap: 0;
  padding: var(--s3);
  transform: translateY(-130%);
  transition: transform .25s ease;
  border-bottom: 1px solid rgba(35,50,47,.08);
  z-index: 49;
  box-shadow: 0 14px 24px rgba(35,50,47,.08);
}
.nav-links.open { transform: translateY(0); }
.nav-links a {
  padding: var(--s2) 0;
  border-bottom: 1px solid rgba(35,50,47,.08);
  width: 100%;
  font-size: 1.02rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* --- Desktop: nav-links is inline, generously spaced --- */
@media (min-width: 1024px) {
  .nav-links {
    position: static;
    flex-direction: row;
    background: transparent;
    transform: none;
    padding: 0;
    border-bottom: none;
    box-shadow: none;
    gap: 1.6rem;
  }
  .nav-links a {
    padding: 0.4em 0;
    border-bottom: none;
    width: auto;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
  }
}
@media (min-width: 1200px) { .nav-links { gap: 2.2rem; } }
@media (min-width: 1400px) { .nav-links { gap: 2.6rem; } }

/* --- Caret for has-mega items --- */
.nav-links .caret {
  transition: transform .2s ease;
  opacity: 0.65;
  flex-shrink: 0;
}
.nav-links .has-mega.open > a .caret,
.nav-links .has-mega:hover > a .caret { transform: rotate(180deg); opacity: 1; }

/* ================================================================
   MEGA MENU (Purple-style dropdown panel)
   ================================================================ */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fdfaf4;
  border-top: 1px solid rgba(35,50,47,.08);
  border-bottom: 1px solid rgba(35,50,47,.08);
  box-shadow: 0 14px 24px rgba(35,50,47,.06);
  padding: var(--s4) 0 var(--s5);
  z-index: 48;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
  pointer-events: none;
}
.mega-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.mega-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s4);
  align-items: start;
}
@media (min-width: 1024px) {
  .mega-grid { grid-template-columns: 1fr auto; }
}
.mega-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
}
.mega-cards--two { grid-template-columns: repeat(2, 1fr); max-width: 560px; }

.mega-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-decoration: none;
  color: var(--c-forest);
  transition: transform .15s ease;
}
.mega-card:hover { transform: translateY(-2px); }
.mega-card:hover h4 { color: var(--c-field); }

.mega-card__visual {
  aspect-ratio: 4/3;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  margin-bottom: 0.2rem;
}
.mega-card__visual::after {
  content: "";
  position: absolute;
  inset: auto 14% 14% 14%;
  height: 28%;
  background: rgba(255,255,255,.85);
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(35,50,47,.15);
}
.mega-card__visual.c-cloud     { background: linear-gradient(135deg, #b1cee0, var(--c-cloud)); }
.mega-card__visual.c-field     { background: linear-gradient(135deg, #9bb074, var(--c-field)); }
.mega-card__visual.c-ground    { background: linear-gradient(135deg, #5b3f3e, var(--c-ground)); }
.mega-card__visual.c-pillow    { background: linear-gradient(135deg, #ecdfc7, var(--c-bone)); }
.mega-card__visual.c-pillow::after { inset: auto 22% 28% 22%; height: 22%; border-radius: 999px / 50%; }
.mega-card__visual.c-protector { background: linear-gradient(135deg, #d8e6ef, var(--c-cloud-pale)); }
.mega-card__visual.c-protector::after { background: rgba(255,255,255,.6); inset: 18% 18% 18% 18%; height: auto; border-radius: 8px; }

.mega-card .badge {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--c-sunset);
  color: var(--c-cream);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  
  z-index: 1;
}
.mega-card .collection {
  font-family: var(--ff-display-en);
  font-style: italic;
  font-size: 0.78rem;
  
  color: rgba(35,50,47,.65);
  margin: 0;
}
body[data-lang="ge"] .mega-card .collection {
  font-family: var(--ff-ge);
  font-style: normal;
  
}
.mega-card h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  transition: color .2s;
}
.mega-card .price {
  font-size: 0.88rem;
  color: var(--c-forest);
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.mega-card .price s { color: rgba(35,50,47,.45); }
.mega-card .price strong { color: var(--c-sunset); font-weight: 700; }

.mega-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: stretch;
  min-width: 220px;
}
.mega-actions .btn {
  width: 100%;
  justify-content: center;
}

/* On mobile (no sticky absolute panel — hide entirely; user clicks scroll-to-section instead) */
@media (max-width: 1023px) {
  .mega-menu { display: none; }
  .nav-links .caret { display: none; }
}

/* ================================================================
   MARQUEE (back, after hero)
   ================================================================ */
.marquee {
  background: var(--c-forest);
  color: var(--c-cream);
  padding: 0.8rem 0;
  overflow: hidden;
  font-family: var(--ff-display-en);
  
  font-size: 0.85rem;
  text-transform: uppercase;
}
body[data-lang="ge"] .marquee {
  font-family: var(--ff-ge);
  font-weight: 700;
  
  text-transform: none;
}
.marquee-track {
  display: flex;
  gap: 2.5rem;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
  width: max-content;
}
.marquee-track span { display: inline-flex; align-items: center; }
.marquee-track .dot { color: var(--c-sunrise); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ================================================================
   HERO — single sheep jumping over fence (restored)
   ================================================================ */
.hero {
  background: var(--c-cloud);
  padding: var(--s4) 0 var(--s5);
  overflow: hidden;
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero {
    min-height: calc(88vh - var(--header-h));
    padding: var(--s5) 0 var(--s6);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: var(--s4);
  width: 100%;
}
@media (min-width: 880px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--s5); }
}
.hero-copy h1 {
  color: var(--c-forest);
  margin-bottom: var(--s3);
  max-width: 32ch;
}
.hero-copy h1 em {
  font-style: normal;
  color: var(--c-sunset);
}
.lead {
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.5;
}
.hero-copy p.lead {
  font-size: 1rem;
  max-width: 32em;
  margin-bottom: var(--s3);
}
@media (min-width: 1024px) { .hero-copy p.lead { font-size: 1.05rem; } }

.hero-ctas {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-wrap: wrap;
}

.hero-stage {
  position: relative;
  height: 260px;
  border-radius: var(--radius);
  order: -1;
}
@media (min-width: 880px) {
  .hero-stage { height: 320px; order: 0; }
}

.stage-fence {
  position: absolute;
  left: 50%;
  bottom: 14%;
  transform: translateX(-50%);
  width: 200px;
  height: auto;
  z-index: 2;
  user-select: none;
  filter: drop-shadow(0 4px 10px rgba(35,50,47,.18));
}
@media (max-width: 880px) { .stage-fence { width: 160px; } }

.stage-sheep {
  position: absolute;
  left: 5%;
  bottom: 18%;
  width: 80px;
  z-index: 3;
  animation: sheepJump 5.5s cubic-bezier(.45,.05,.55,.95) infinite;
  user-select: none;
  filter: drop-shadow(0 6px 6px rgba(35,50,47,.18));
}
@media (max-width: 880px) { .stage-sheep { width: 64px; } }

@keyframes sheepJump {
  0%   { transform: translate(0, 0) rotate(-4deg); opacity: 0; }
  6%   { opacity: 1; }
  35%  { transform: translate(180%, -120px) rotate(8deg); }
  50%  { transform: translate(260%, -160px) rotate(0deg); }
  65%  { transform: translate(340%, -120px) rotate(-8deg); }
  92%  { transform: translate(560%, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate(640%, 0); opacity: 0; }
}
@media (max-width: 880px) {
  @keyframes sheepJump {
    0%   { transform: translate(0, 0) rotate(-4deg); opacity: 0; }
    6%   { opacity: 1; }
    35%  { transform: translate(180%, -90px) rotate(8deg); }
    50%  { transform: translate(260%, -120px) rotate(0deg); }
    65%  { transform: translate(340%, -90px) rotate(-8deg); }
    92%  { transform: translate(490%, 0) rotate(0deg); opacity: 1; }
    100% { transform: translate(560%, 0); opacity: 0; }
  }
}

.stage-cloud {
  position: absolute;
  font-family: var(--ff-display-en);
  font-size: 0.7rem;
  
  color: rgba(35,50,47,.35);
}
.stage-cloud.c1 { top: 12%; left: 18%; }
.stage-cloud.c2 { top: 30%; right: 12%; }

@media (prefers-reduced-motion: reduce) {
  .stage-sheep { animation: none; left: 50%; transform: translateX(-180%); }
}

/* ================================================================
   MATTRESSES (cream base)
   ================================================================ */
.mattresses { background: #fdfaf4; }
.section-head {
  text-align: center;
  margin-bottom: var(--s4);
}
.section-head p { max-width: 38em; margin: 0 auto; }

.mattress-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s3);
  margin-bottom: var(--s4);
}
@media (min-width: 720px) { .mattress-grid { grid-template-columns: repeat(3, 1fr); } }

.mattress-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(35,50,47,.08);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.mattress-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(35,50,47,.12);
}
.mattress-visual {
  aspect-ratio: 4/3;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.mattress-visual.c-ground  { background: linear-gradient(135deg, #5b3f3e, var(--c-ground)); }
.mattress-visual.c-field   { background: linear-gradient(135deg, #9bb074, var(--c-field)); }
.mattress-visual.c-cloud   { background: linear-gradient(135deg, #b1cee0, var(--c-cloud)); }
.mattress-visual::after {
  content: "";
  position: absolute;
  inset: auto 12% 12% 12%;
  height: 28%;
  background: rgba(255,255,255,.85);
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(35,50,47,.18);
}
.mattress-visual span.placeholder {
  position: absolute;
  bottom: 8px; left: 50%; transform: translateX(-50%);
  color: rgba(35,50,47,.45);
  font-size: 0.7rem;
  
  font-family: var(--ff-display-en);
}
body[data-lang="ge"] .mattress-visual span.placeholder { font-family: var(--ff-ge); }
.mattress-body { padding: var(--s3); flex: 1; display: flex; flex-direction: column; }
.mattress-body h3 { margin-bottom: var(--s1); }
.mattress-body .meta {
  font-size: 0.78rem;
  
  text-transform: uppercase;
  color: var(--c-field);
  margin-bottom: var(--s1);
  font-weight: 600;
}
.mattress-body p { font-size: 0.92rem; color: rgba(35,50,47,.78); margin-bottom: var(--s2); }
.mattress-body .price {
  font-family: var(--ff-display-en);
  font-size: 1.3rem;
  color: var(--c-forest);
}
body[data-lang="ge"] .mattress-body .price { font-family: var(--ff-ge); font-weight: 700; }
.mattress-body .price small { font-size: .8rem; color: rgba(35,50,47,.55); margin-right: .3em; }
.mattress-body .price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  margin-top: auto;
  padding-top: var(--s2);
}
.mattress-body .price-row .btn { flex-shrink: 0; }

.compare-row { text-align: center; }

/* ================================================================
   COMPARISON STRIP (Field accent — small band)
   ================================================================ */
.comparison-strip {
  background: var(--c-field-pale);
  padding: var(--s4) 0;
}
.comparison-strip .container {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: var(--s3);
  text-align: center;
}
@media (min-width: 768px) {
  .comparison-strip .container { grid-template-columns: 1fr auto; text-align: left; }
}
.comparison-strip h2 { margin: 0 0 var(--s1); }
.comparison-strip p { margin: 0; color: rgba(35,50,47,.78); }

/* ================================================================
   BENEFITS (bone — distinct from cream mattresses section)
   ================================================================ */
.benefits { background: #f6f1e6; }
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s4);
  text-align: center;
  margin-bottom: var(--s4);
}
@media (min-width: 720px) { .benefits-grid { grid-template-columns: repeat(3, 1fr); } }

.benefit { padding: var(--s2); }
.benefit-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--c-bone);
  border: 2px solid var(--c-forest);
  display: grid; place-items: center;
  margin: 0 auto var(--s2);
  color: var(--c-forest);
}
.benefit h3 { margin-bottom: var(--s1); }
.benefit p { font-size: 0.92rem; color: rgba(35,50,47,.78); margin: 0; }
.benefits-cta { text-align: center; }

/* ================================================================
   TESTIMONIALS (cream base — light)
   ================================================================ */
.testimonials { background: #fdfaf4; }
.t-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s3);
}
@media (min-width: 720px) { .t-grid { grid-template-columns: repeat(3, 1fr); } }
.t-card {
  background: var(--c-cream);
  border: 1px solid rgba(35,50,47,.10);
  padding: var(--s3);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}
.t-stars {
  color: var(--c-sunrise);
  
  margin-bottom: var(--s2);
  font-size: 1.05rem;
}
.t-card blockquote {
  margin: 0 0 var(--s3);
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--c-forest);
}
.t-author {
  display: flex; align-items: center; gap: var(--s2);
  margin-top: auto;
}
.t-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--c-field);
  display: grid; place-items: center;
  font-family: var(--ff-display-en);
  font-weight: 700;
  color: var(--c-cream);
  font-size: 0.95rem;
  flex-shrink: 0;
}
body[data-lang="ge"] .t-avatar { font-family: var(--ff-ge); }
.t-author .name { font-weight: 700; line-height: 1.15; }
.t-author .meta { font-size: 0.8rem; color: rgba(35,50,47,.6); }

/* ================================================================
   MANIFESTO (DARK ACCENT — Forest)
   ================================================================ */
.manifesto {
  background: var(--c-forest);
  color: var(--c-cream);
  position: relative;
}
.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: var(--s4);
}
@media (min-width: 880px) {
  .manifesto-grid { grid-template-columns: 1.1fr .9fr; gap: var(--s5); }
}
.manifesto h2 { color: var(--c-cream); }
body[data-lang="ge"] .manifesto h2 {
  font-weight: 400;
  
}
.manifesto h2 em {
  font-style: italic;
  font-family: var(--ff-body-en);
  font-weight: 300;
  display: block;
  margin-top: var(--s2);
  color: var(--c-bone);
}
body[data-lang="ge"] .manifesto h2 em { font-family: var(--ff-ge); font-weight: 300; font-style: normal; }
.manifesto p {
  max-width: 32em;
  font-size: 1rem;
  color: var(--c-bone);
}
.manifesto-art {
  aspect-ratio: 1/1;
  background: rgba(255,255,255,.05);
  border: 1px dashed rgba(255,255,255,.3);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,.55);
  
  text-transform: uppercase;
}

/* ================================================================
   TRUST BAND (cream — small icon band, no big padding)
   ================================================================ */
.trust-band {
  background: var(--c-cream);
  border-top: 1px solid rgba(35,50,47,.08);
  border-bottom: 1px solid rgba(35,50,47,.08);
  padding: var(--s3) 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s3);
  text-align: center;
}
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }

.trust-item { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.trust-item svg { color: var(--c-field); }
.trust-item .label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-forest);
  line-height: 1.25;
}

/* ================================================================
   BLOG PREVIEW (cream)
   ================================================================ */
.blog-preview { background: #fdfaf4; }
.blog-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: var(--s4);
  flex-wrap: wrap;
  gap: var(--s2);
}
.blog-head h2 { margin: 0; }
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s3);
}
@media (min-width: 600px)  { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .blog-grid { grid-template-columns: repeat(4, 1fr); } }

.blog-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(35,50,47,.08);
  transition: transform .2s, box-shadow .2s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(35,50,47,.10); }
.blog-thumb {
  aspect-ratio: 4/3;
  background: var(--c-cloud-pale);
  position: relative;
}
.blog-thumb::after {
  content: "IMG";
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  font-family: var(--ff-display-en);
  font-size: 0.75rem;
  
  color: rgba(35,50,47,.35);
}
body[data-lang="ge"] .blog-thumb::after { content: "სურათი"; font-family: var(--ff-ge); }
.blog-body { padding: var(--s2) var(--s3) var(--s3); }
.blog-body .tag {
  font-family: var(--ff-display-en);
  font-size: 0.68rem;
  
  text-transform: uppercase;
  color: var(--c-field);
}
body[data-lang="ge"] .blog-body .tag { font-family: var(--ff-ge); font-weight: 700; }
.blog-body h3 { font-size: 1.02rem; margin: var(--s1) 0 0; }
body[data-lang="ge"] .blog-body h3 {
  font-weight: 400;
  
  line-height: 1.4;
}

.blog-head-actions {
  display: flex;
  align-items: center;
  gap: var(--s2);
  flex-wrap: wrap;
}
.blog-arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--c-forest);
  background: transparent;
  color: var(--c-forest);
  display: grid; place-items: center;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.blog-arrow:hover { background: var(--c-forest); color: var(--c-cream); }
.blog-head-actions .btn-link { margin-left: var(--s1); }
@media (max-width: 600px) {
  .blog-head-actions { width: 100%; justify-content: flex-start; }
  .blog-head-actions .btn-link { margin-left: auto; }
}

/* ================================================================
   FAQ (cream)
   ================================================================ */
.faq { background: var(--c-cream); }
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid rgba(35,50,47,.15);
  padding: var(--s2) 0;
}
.faq details:first-of-type { border-top: 1px solid rgba(35,50,47,.15); }
.faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s2);
  color: var(--c-forest);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--ff-display-en);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1;
  transition: transform .2s;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div {
  padding-top: var(--s2);
  color: rgba(35,50,47,.78);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--c-forest);
  color: var(--c-cream);
  padding: var(--s6) 0 var(--s3);
}
@media (min-width: 1024px) {
  .footer { padding: 4.5rem 0 var(--s3); }
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s4);
  margin-bottom: var(--s4);
}
@media (min-width: 600px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }

.footer h4 {
  font-size: 0.78rem;
  
  text-transform: uppercase;
  color: var(--c-sunrise);
  margin-bottom: var(--s2);
  font-family: var(--ff-display-en);
  font-weight: 400;
}
body[data-lang="ge"] .footer h4 { font-family: var(--ff-ge); font-weight: 700; }
.footer ul li { margin-bottom: 0.4rem; }
.footer ul a { color: rgba(246,241,230,.78); transition: color .2s; font-size: 0.92rem; }
.footer ul a:hover { color: var(--c-cream); }
.footer .footer-logo img {
  height: 72px;
  width: auto;
  filter: invert(96%) brightness(1.1);
}
.footer-meta {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: var(--s2);
  padding-top: var(--s3);
  border-top: 1px solid rgba(246,241,230,.12);
  font-size: 0.78rem;
  color: rgba(246,241,230,.6);
}

/* ================================================================
   AUTH MODAL (placeholder)
   ================================================================ */
.auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(35,50,47,.5);
  display: none;
  place-items: center;
  z-index: 100;
  padding: var(--s2);
}
.auth-modal.open { display: grid; }
.auth-modal__inner {
  background: var(--c-cream);
  border-radius: var(--radius);
  padding: var(--s4);
  max-width: 420px;
  width: 100%;
  position: relative;
}
.auth-modal__close {
  position: absolute;
  top: var(--s2); right: var(--s2);
  width: 32px; height: 32px;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--c-forest);
  cursor: pointer;
}
.auth-modal h3 { margin: 0 0 var(--s1); }
.auth-modal p { margin: 0 0 var(--s3); color: rgba(35,50,47,.7); font-size: 0.92rem; }
.auth-modal .btn { width: 100%; justify-content: center; margin-bottom: var(--s1); }

/* Auth tabs */
.auth-tabs {
  display: flex;
  border-bottom: 1px solid rgba(35,50,47,.12);
  margin-bottom: var(--s3);
  gap: 0;
}
.auth-tab {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: var(--s2) 0;
  font-family: var(--ff-ge);
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(35,50,47,.4);
  cursor: pointer;
  transition: color .2s, border-color .2s;
  margin-bottom: -1px;
}
.auth-tab.active {
  color: var(--c-forest);
  border-bottom-color: var(--c-forest);
}
.auth-panel--hidden { display: none; }
.auth-panel:not(.auth-panel--hidden) {
  animation: authIn .3s ease;
}
@keyframes authIn {
  from { opacity: 0; transform: translateX(10px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ----- Skip link ----- */
.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--c-forest);
  color: var(--c-cream);
  padding: 0.5em 1em;
  z-index: 200;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ================================================================
   MATTRESS LISTING PAGE (mattresses.php)
   ================================================================ */

/* Hero band: Bone bg, title + lead + 3 trust badges underneath */
.mlist-hero {
  background: #fdfaf4;
  padding: var(--s5) 0 var(--s4);
}
.mlist-hero .section-head { text-align: center; margin-bottom: var(--s4); }
.mlist-hero h1 {
  color: var(--c-forest);
  margin-bottom: var(--s2);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
}
@media (min-width: 1024px) {
  .mlist-hero h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
}
.mlist-hero .section-head p {
  max-width: 44em;
  margin: 0 auto;
  color: rgba(35,50,47,.7);
  font-size: 1rem;
}

/* Trust cards section (Cream bg, after Quiz CTA band) */
.mlist-trust-section {
  background: var(--c-cream);
  padding: var(--s5) 0;
}
.mlist-trust {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s2);
  max-width: 980px;
  margin: 0 auto;
}
@media (min-width: 720px) {
  .mlist-trust { grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
}
.mlist-trust-card {
  background: #fff;
  border: 1px solid rgba(35,50,47,.08);
  border-radius: var(--radius);
  padding: var(--s3);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s1);
}
.mlist-trust-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c-cream);
  color: var(--c-forest);
  display: grid; place-items: center;
  margin-bottom: var(--s1);
}
.mlist-trust-card h3 {
  font-size: 0.95rem;
  color: var(--c-forest);
  margin: 0;
}
.mlist-trust-card p {
  font-size: 0.85rem;
  color: rgba(35,50,47,.7);
  margin: 0;
  line-height: 1.45;
}

/* Product rows: 3 horizontal cards (image left, body right on desktop) */
.mlist-products {
  background: #fdfaf4;
  padding: var(--s5) 0;
}
.mlist-row {
  display: grid;
  grid-template-columns: 1fr;
  background: #fff;
  border: 1px solid rgba(35,50,47,.08);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: var(--s4);
  transition: transform .2s, box-shadow .2s;
}
.mlist-row:last-of-type { margin-bottom: var(--s4); }
.mlist-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(35,50,47,.10);
}
@media (min-width: 880px) {
  .mlist-row { grid-template-columns: 1.2fr 1fr; }
}

/* Image side */
.mlist-row-visual {
  position: relative;
  aspect-ratio: 4/3;
  display: grid;
  place-items: center;
  overflow: hidden;
}
@media (min-width: 880px) {
  .mlist-row-visual { aspect-ratio: auto; min-height: 360px; }
}
.mlist-row-visual.c-cloud  { background: linear-gradient(135deg, #b1cee0, var(--c-cloud)); }
.mlist-row-visual.c-field  { background: linear-gradient(135deg, #9bb074, var(--c-field)); }
.mlist-row-visual.c-ground { background: linear-gradient(135deg, #5b3f3e, var(--c-ground)); }
.mlist-row-visual::after {
  content: "";
  position: absolute;
  inset: auto 14% 14% 14%;
  height: 30%;
  background: rgba(255,255,255,.85);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(35,50,47,.18);
}
.mlist-row-badge {
  position: absolute;
  top: var(--s2);
  left: var(--s2);
  background: var(--c-sunset);
  color: #fff;
  font-size: 0.7rem;
  
  text-transform: uppercase;
  padding: 0.3em 0.7em;
  border-radius: 999px;
  font-weight: 600;
  z-index: 1;
}

/* Body side */
.mlist-row-body {
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.mlist-row-meta {
  font-size: 0.78rem;
  
  text-transform: uppercase;
  color: var(--c-field);
  font-weight: 600;
}
.mlist-row-body h2 {
  margin: 0;
  color: var(--c-forest);
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.mlist-row-desc {
  font-size: 0.95rem;
  color: rgba(35,50,47,.78);
  margin: 0;
  line-height: 1.5;
}

/* Feature bullets */
.mlist-row-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.mlist-row-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--c-forest);
}
.mlist-row-features svg {
  color: var(--c-field);
  flex-shrink: 0;
}

/* Firmness scale */
.mlist-row-firmness {
  margin-top: var(--s1);
}
.mlist-row-firmness-label {
  display: block;
  font-size: 0.78rem;
  color: rgba(35,50,47,.6);
  margin-bottom: 0.4rem;
  
}
.mlist-row-firmness-bar {
  display: flex;
  gap: 3px;
}
.mlist-row-firmness-bar span {
  flex: 1;
  height: 6px;
  background: rgba(35,50,47,.10);
  border-radius: 3px;
}
.mlist-row-firmness-bar span.on { background: var(--c-forest); }
.mlist-row-firmness-bar span.cur {
  background: var(--c-sunset);
  height: 10px;
  margin-top: -2px;
}

/* Footer row: price + button */
.mlist-row-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  margin-top: auto;
  padding-top: var(--s2);
  flex-wrap: wrap;
}
.mlist-row-price {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.mlist-row-price s {
  color: rgba(35,50,47,.45);
  font-family: var(--ff-display-en);
  font-size: 0.95rem;
}
body[data-lang="ge"] .mlist-row-price s { font-family: var(--ff-ge); font-weight: 600; }
.mlist-row-price strong {
  font-family: var(--ff-display-en);
  font-size: 1.4rem;
  color: var(--c-forest);
  font-weight: 700;
}
body[data-lang="ge"] .mlist-row-price strong { font-family: var(--ff-ge); }
.mlist-row-price small { font-size: 0.7rem; color: rgba(35,50,47,.55); margin-left: .2em; }

/* Compare button — centered, breathing room above and below */
.mlist-compare-row {
  text-align: center;
  margin-top: var(--s5);
  margin-bottom: var(--s4);
  padding: var(--s4) 0;
}

/* Quiz CTA band — Bone bg, separates products from trust section */
.mlist-quiz {
  padding: var(--s5) 0;
  text-align: center;
  border-top: 1px solid rgba(35,50,47,.08);
}

.mlist-quiz-band {
  background: var(--c-bone);
  color: var(--c-forest);
  padding: var(--s5) 0;
  text-align: center;
  border-top: 1px solid rgba(35,50,47,.08);
  border-bottom: 1px solid rgba(35,50,47,.08);
}
.mlist-quiz-band h2 {
  color: var(--c-forest);
  margin-bottom: var(--s2);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
}
@media (min-width: 1024px) {
  .mlist-quiz-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
}
.mlist-quiz-band p {
  max-width: 36em;
  margin: 0 auto var(--s3);
  color: rgba(35,50,47,.72);
  font-size: 1rem;
}

/* =================================================================
   PRODUCTS LISTING PAGE — plist (pillows & protectors)
   ================================================================= */

/* Filter tab bar */
/* ---- Product card grid (3-col) ---- */
.plist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
  margin-top: var(--s4);
}
@media (max-width: 700px) { .plist-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .plist-grid { grid-template-columns: 1fr; } }

.pcard {
  background: var(--c-cream);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.pcard:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(35,50,47,.1); }
.pcard.hidden { display: none; }

.pcard__visual {
  aspect-ratio: 4/3;
  position: relative;
}
.pcard__badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--c-sunset);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}
.pcard__body {
  padding: var(--s3);
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  flex: 1;
}
.pcard__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-forest);
  margin: 0;
}
.pcard__desc {
  font-size: 0.8rem;
  color: rgba(35,50,47,.6);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pcard__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  padding-top: var(--s2);
}
.pcard__price s { font-size: 0.82rem; color: rgba(35,50,47,.4); }
.pcard__price strong { font-size: 1.1rem; font-weight: 700; color: var(--c-forest); }

.plist-filter-bar {
  display: flex;
  gap: var(--s1);
  margin-bottom: var(--s4);
  flex-wrap: wrap;
}
.plist-filter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  border: 1.5px solid rgba(35,50,47,.16);
  border-radius: 999px;
  background: transparent;
  color: rgba(35,50,47,.55);
  font-family: var(--ff-ge);
  font-size: 0.85rem;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.plist-filter:hover {
  border-color: rgba(35,50,47,.32);
  background: rgba(35,50,47,.04);
  color: var(--c-forest);
}
.plist-filter.active {
  background: var(--c-bone);
  border-color: var(--c-bone);
  color: var(--c-forest);
}
.plist-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 400;
  background: rgba(35,50,47,.10);
  color: inherit;
  line-height: 1;
}
.plist-filter.active .plist-filter-count {
  background: rgba(35,50,47,.12);
}

/* Row fade for filter transitions */
.mlist-row[data-category] {
  transition: opacity 0.2s;
}
.mlist-row[data-category].hidden {
  display: none;
}

/* Product visual colors — pillows */
.mlist-row-visual.c-pillow-soft  { background: linear-gradient(135deg, #ecdfc7, #d8ceb2); }
.mlist-row-visual.c-pillow-med   { background: linear-gradient(135deg, #d6dec3, #c4ceb0); }
.mlist-row-visual.c-pillow-firm  { background: linear-gradient(135deg, #d4c4ae, #c0b098); }

/* Product visual colors — protectors */
.mlist-row-visual.c-shield-basic { background: linear-gradient(135deg, #c8dce8, #b4cad8); }
.mlist-row-visual.c-shield-plus  { background: linear-gradient(135deg, #b8d4c8, #a0c0b4); }
.mlist-row-visual.c-shield-pro   { background: linear-gradient(135deg, #c4d0e4, #b0bcd8); }

/* Icon shapes inside visuals for non-mattress products */
.mlist-row-visual.c-pillow-soft::after,
.mlist-row-visual.c-pillow-med::after,
.mlist-row-visual.c-pillow-firm::after {
  content: '';
  position: absolute;
  bottom: 22%;
  left: 15%;
  right: 15%;
  height: 28%;
  background: rgba(255,255,255,.38);
  border-radius: 999px / 50%;
}
.mlist-row-visual.c-shield-basic::after,
.mlist-row-visual.c-shield-plus::after,
.mlist-row-visual.c-shield-pro::after {
  content: '';
  position: absolute;
  inset: 20% 20%;
  background: rgba(255,255,255,.3);
  border-radius: 10px;
}

/* pcard visual colors (same palette as mlist-row-visual) */
.pcard__visual.c-pillow-soft  { background: linear-gradient(135deg, #ecdfc7, #d8ceb2); }
.pcard__visual.c-pillow-med   { background: linear-gradient(135deg, #d6dec3, #c4ceb0); }
.pcard__visual.c-pillow-firm  { background: linear-gradient(135deg, #d4c4ae, #c0b098); }
.pcard__visual.c-shield-basic { background: linear-gradient(135deg, #c8dce8, #b4cad8); }
.pcard__visual.c-shield-plus  { background: linear-gradient(135deg, #b8d4c8, #a0c0b4); }
.pcard__visual.c-shield-pro   { background: linear-gradient(135deg, #c4d0e4, #b0bcd8); }

.pcard__visual.c-pillow-soft::after,
.pcard__visual.c-pillow-med::after,
.pcard__visual.c-pillow-firm::after {
  content: '';
  position: absolute;
  bottom: 22%; left: 15%; right: 15%;
  height: 28%;
  background: rgba(255,255,255,.38);
  border-radius: 999px / 50%;
}
.pcard__visual.c-shield-basic::after,
.pcard__visual.c-shield-plus::after,
.pcard__visual.c-shield-pro::after {
  content: '';
  position: absolute;
  inset: 20% 20%;
  background: rgba(255,255,255,.3);
  border-radius: 10px;
}

/* =================================================================
   100-NIGHT TRIAL PAGE
   ================================================================= */

/* Hero — Forest dark bg, editorial typography, sunrise underline accent */
.trial-hero {
  position: relative;
  background: var(--c-forest);
  color: var(--c-cream);
  padding: clamp(56px, 8vw, 100px) 0 clamp(48px, 7vw, 80px);
  text-align: center;
}
.trial-hero__content {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}
.trial-hero h1 {
  color: var(--c-cream);
  margin: 0 0 var(--s3);
}
.trial-hero__rule {
  display: block;
  width: 56px;
  height: 3px;
  background: var(--c-sunrise);
  margin: var(--s3) auto var(--s3);
  border-radius: 2px;
}
.trial-hero__sub {
  color: rgba(246,241,230,.72);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  max-width: 38em;
  margin: 0 auto var(--s5);
  line-height: 1.55;
}
.trial-hero__arrow {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--c-cream);
  background: transparent;
  border: 1px solid rgba(246,241,230,.32);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
  animation: trialArrowBob 2.4s ease-in-out infinite;
}
.trial-hero__arrow:hover {
  background: rgba(246,241,230,.08);
  border-color: rgba(246,241,230,.6);
  transform: translateY(2px);
}
@keyframes trialArrowBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* "How it works" steps — vertical timeline with peach numbers */
.trial-steps {
  background: var(--c-cream);
  padding: var(--s5) 0 var(--s6);
}
.trial-steps__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--s5);
}
.trial-steps__head h2 {
  color: var(--c-forest);
  margin-bottom: var(--s2);
}
.trial-steps__head p {
  color: rgba(35,50,47,.7);
  font-size: 1rem;
  margin: 0;
}

/* Progress timeline (1 ღამე / 30 ღამე / 100 ღამე) */
.tl-wrap {
  max-width: 700px;
  margin: 0 auto var(--s5);
  padding: 0 1rem;
}
.tl-dot {
  width: 74px;
  height: 74px;
  border-radius: 9999px;
  background: var(--c-forest);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(35,50,47,.28);
}
.tl-dot__num {
  font-family: 'Aktiv Grotesk', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--c-cream);
  line-height: 1;
}
.tl-dot__unit {
  font-family: 'Aktiv Grotesk', system-ui, sans-serif;
  font-size: 9px;
  font-weight: 600;
  color: rgba(246,241,230,.65);
  text-transform: uppercase;
  
  margin-top: 4px;
}
.tl-label {
  font-family: var(--ff-ge), system-ui, sans-serif;
  font-weight: 700;
  color: var(--c-forest);
  text-align: center;
  font-size: 12px;
  line-height: 1.3;
}
.tl-band { left: 37px; right: 37px; }
@media (max-width: 500px) {
  .tl-dot { width: 56px; height: 56px; }
  .tl-dot__num { font-size: 17px; }
  .tl-label { font-size: 10px; }
  .tl-band { left: 28px; right: 28px; }
  .tl-wrap { margin-bottom: var(--s4); }
}

.trial-steps__list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 720px;
  position: relative;
  counter-reset: trialStep;
}
.trial-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--s3);
  padding: var(--s2) 0 var(--s4);
  position: relative;
}
.trial-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 31px;
  top: 64px;
  bottom: -16px;
  width: 2px;
  background: var(--c-sunrise);
  opacity: 0.45;
}
.trial-step__num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--c-sunrise);
  color: var(--c-forest);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.5rem;
  font-family: inherit;
  z-index: 1;
  box-shadow: 0 6px 20px rgba(245,183,132,.35);
}
.trial-step__body {
  padding-top: 8px;
}
.trial-step__icon {
  color: var(--c-forest);
  opacity: 0.7;
  margin-bottom: var(--s1);
}
.trial-step__body h3 {
  color: var(--c-forest);
  margin: 0 0 var(--s1);
}
.trial-step__body p {
  color: rgba(35,50,47,.78);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  max-width: 38em;
}

/* Final CTA band — Cream bg, two buttons */
.trial-cta-band {
  background: var(--c-cream);
  color: var(--c-forest);
  padding: var(--s6) 0;
  text-align: center;
  border-top: 1px solid rgba(35,50,47,.08);
}
.trial-cta-band h2 {
  color: var(--c-forest);
  margin-bottom: var(--s2);
}
.trial-cta-band p {
  max-width: 36em;
  margin: 0 auto var(--s4);
  color: rgba(35,50,47,.72);
  font-size: 1rem;
}
.trial-cta-band__btns {
  display: flex;
  gap: var(--s2);
  justify-content: center;
  flex-wrap: wrap;
}

/* Mobile tweaks */
@media (max-width: 600px) {
  .trial-step {
    grid-template-columns: 52px 1fr;
    gap: var(--s2);
  }
  .trial-step__num {
    width: 52px;
    height: 52px;
    font-size: 1.25rem;
  }
  .trial-step:not(:last-child)::before {
    left: 25px;
    top: 52px;
  }
}

/* ================================================================
   AUTH PAGE
   ================================================================ */

.auth-page {
  background: var(--c-bone);
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding: var(--s5) var(--s3);
}

.auth-wrap {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.auth-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 40px rgba(35,50,47,.10);
  overflow: hidden;
}

/* Tabs */
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #eae6dd;
}
.auth-tab {
  padding: var(--s3) var(--s2);
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(35,50,47,.38);
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  
  text-transform: uppercase;
  transition: color .2s;
}
.auth-tab.active { color: var(--c-forest); }
.auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--c-forest);
  border-radius: 2px 2px 0 0;
}

/* Body */
.auth-body { padding: var(--s5) var(--s4); }

.auth-panel { display: none; }
.auth-panel.active { display: block; }

.auth-h {
  font-size: clamp(1.8rem, 4.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--c-forest);
  margin-bottom: var(--s4);
}

/* Social buttons */
.auth-socials {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: var(--s3);
}
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px var(--s3);
  border-radius: 8px;
  border: 1.5px solid #e0ddd5;
  background: #fff;
  color: var(--c-forest);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background .18s, border-color .18s;
  
}
.social-btn:hover { background: var(--c-bone); border-color: var(--c-forest); }
.social-btn--apple { background: #000; color: #fff; border-color: #000; }
.social-btn--apple:hover { background: #1a1a1a; border-color: #1a1a1a; }
.social-btn--fb { background: #1877F2; color: #fff; border-color: #1877F2; }
.social-btn--fb:hover { background: #0f65d9; border-color: #0f65d9; }

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin: var(--s3) 0;
  color: rgba(35,50,47,.32);
  font-size: 0.75rem;
  
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after { content: ''; flex: 1; height: 1px; background: #e8e4da; }

/* Form */
.auth-form { display: flex; flex-direction: column; gap: var(--s2); }

.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }

.auth-field { display: flex; flex-direction: column; gap: 5px; }

.auth-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(35,50,47,.5);
  
  text-transform: uppercase;
}

.auth-input {
  padding: 13px 14px;
  border: 1.5px solid #e0ddd5;
  border-radius: 8px;
  font-size: 0.93rem;
  color: var(--c-forest);
  background: var(--c-bone);
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color .18s, background .18s;
  font-family: inherit;
}
.auth-input:focus { border-color: var(--c-forest); background: #fff; }
.auth-input::placeholder { color: rgba(35,50,47,.3); }

/* Phone */
.auth-phone-group {
  display: flex;
  border: 1.5px solid #e0ddd5;
  border-radius: 8px;
  overflow: hidden;
  background: var(--c-bone);
  transition: border-color .18s, background .18s;
}
.auth-phone-group:focus-within { border-color: var(--c-forest); background: #fff; }
.auth-phone-prefix {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--c-forest);
  border-right: 1.5px solid #e0ddd5;
  white-space: nowrap;
  user-select: none;
  background: transparent;
}
.auth-phone-input {
  flex: 1;
  padding: 13px 14px;
  border: none;
  background: transparent;
  font-size: 0.93rem;
  color: var(--c-forest);
  outline: none;
  font-family: inherit;
}
.auth-phone-input::placeholder { color: rgba(35,50,47,.3); }

/* Password eye */
.auth-pass-wrap { position: relative; }
.auth-pass-wrap .auth-input { padding-right: 44px; }
.auth-pass-eye {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: rgba(35,50,47,.35);
  cursor: pointer; padding: 4px;
  transition: color .15s;
}
.auth-pass-eye:hover { color: var(--c-forest); }

/* Forgot */
.auth-forgot {
  font-size: 0.8rem;
  color: rgba(35,50,47,.45);
  text-decoration: underline;
  text-underline-offset: 2px;
  display: block;
  text-align: right;
  margin-top: -4px;
}
.auth-forgot:hover { color: var(--c-forest); }

/* Checkbox */
.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.83rem;
  color: rgba(35,50,47,.6);
  line-height: 1.45;
  margin-top: 2px;
}
.auth-check input[type="checkbox"] {
  width: 16px; height: 16px; min-width: 16px;
  accent-color: var(--c-forest);
  margin-top: 2px; cursor: pointer;
}

/* Submit */
.auth-submit {
  display: block; width: 100%;
  padding: 14px var(--s3);
  background: var(--c-forest);
  color: var(--c-cream);
  border: none; border-radius: 8px;
  font-size: 0.93rem; font-weight: 700;
  
  cursor: pointer;
  transition: background .18s, transform .1s;
  margin-top: var(--s2);
  font-family: inherit;
}
.auth-submit:hover { background: #1c2b28; }
.auth-submit:active { transform: scale(.99); }

/* Switch link */
.auth-switch {
  text-align: center;
  margin-top: var(--s3);
  font-size: 0.85rem;
  color: rgba(35,50,47,.5);
}
.auth-switch a {
  color: var(--c-forest);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 520px) {
  .auth-body { padding: var(--s4) var(--s3); }
  .auth-row  { grid-template-columns: 1fr; }
}

/* Social icon-only circles */
.auth-socials {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 12px;
  margin-bottom: var(--s2);
}
.social-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid #e0ddd5;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: border-color .18s, box-shadow .18s, transform .15s;
  flex-shrink: 0;
}
.social-icon:hover {
  border-color: rgba(35,50,47,.35);
  box-shadow: 0 2px 8px rgba(35,50,47,.10);
  transform: translateY(-1px);
}
.social-icon--apple { background: #000; border-color: #000; color: #fff; }
.social-icon--apple:hover { background: #1a1a1a; border-color: #1a1a1a; }
.social-icon--fb { background: #1877F2; border-color: #1877F2; color: #fff; }
.social-icon--fb:hover { background: #0f65d9; border-color: #0f65d9; }
.social-icon--google { background: #fff; }

/* ================================================================
   COMPARE PAGE — Casper-style column grid
   ================================================================ */

.cmp-hero {
  padding: clamp(56px, 9vw, 96px) 0 clamp(40px, 6vw, 64px);
  text-align: center;
}
.cmp-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 400;
  margin: 0;
  
}
body[data-lang="ge"] .cmp-hero h1 {
  font-family: var(--ff-ge);
  font-weight: 700;
}

/* Size toggle */
.cmp-size-wrap {
  display: flex;
  align-items: center;
  gap: var(--s2);
  justify-content: center;
  margin-bottom: var(--s5);
}
.cmp-size-label {
  font-size: 0.8rem;
  font-weight: 700;
  
  text-transform: uppercase;
  color: rgba(35,50,47,.45);
}
.cmp-size-toggle {
  display: flex;
  border: 1.5px solid rgba(35,50,47,.18);
  border-radius: 999px;
  overflow: hidden;
}
.cmp-size-btn {
  padding: 0.4em 1.2em;
  font-size: 0.82rem;
  font-weight: 700;
  
  color: rgba(35,50,47,.45);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background .18s, color .18s;
  font-family: inherit;
}
.cmp-size-btn.active {
  background: var(--c-forest);
  color: var(--c-cream);
}

/* Small btn variant */
.btn--sm { padding: 0.55em 1.1em; font-size: 0.82rem; }
.btn--full { width: 100%; justify-content: center; margin-top: var(--s1); }

/* ---- Page wrapper ---- */
.cmp-section {
  padding: var(--s5) 0 var(--s6);
  background: var(--c-cream);
}

/* ---- Product cards (3-col grid at top) ---- */
.cmp-cols-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s2);
  margin: 0 auto var(--s2);
}

.cmp-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
}

/* Gradient visual with fake mattress slab */
.cmp-col-visual {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.cmp-col-visual.c-cloud  { background: linear-gradient(160deg, #b1cee0 0%, var(--c-cloud-pale) 100%); }
.cmp-col-visual.c-field  { background: linear-gradient(160deg, #9bb074 0%, var(--c-field-pale) 100%); }
.cmp-col-visual.c-ground { background: linear-gradient(160deg, var(--c-ground) 20%, #7a5048 100%); }
.cmp-col-visual::after {
  content: "";
  position: absolute;
  inset: auto 12% 14% 12%;
  height: 28%;
  background: rgba(255,255,255,.85);
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(35,50,47,.18);
}

.cmp-col-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--c-sunset);
  color: var(--c-cream);
  font-size: 0.65rem;
  
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 700;
  z-index: 1;
}

/* Info block below visual */
.cmp-col-info-wrap {
  width: 100%;
  padding: var(--s2) 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.cmp-col-name {
  font-family: var(--ff-display-en);
  font-weight: 700;
  font-size: 1rem;
  
  text-transform: uppercase;
  color: var(--c-forest);
  margin: 0;
}
body[data-lang="ge"] .cmp-col-name {
  font-family: var(--ff-ge);
  text-transform: none;
  
  font-size: 1.05rem;
}

.cmp-col-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
}
.cmp-price-old {
  font-size: 0.82rem;
  color: rgba(35,50,47,.38);
  text-decoration: line-through;
}
.cmp-price-new {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-forest);
  font-family: var(--ff-display-en);
}
body[data-lang="ge"] .cmp-price-new { font-family: var(--ff-ge); }

/* ---- Sticky namebar (shown after cards scroll away) ---- */
.cmp-namebar {
  display: grid;
  grid-template-columns: 180px repeat(3, 1fr);
  margin: 0 auto;
  position: sticky;
  top: var(--header-h);
  z-index: 10;
  background: var(--c-cream);
  border: 1px solid rgba(35,50,47,.1);
  border-radius: 999px;
  box-shadow: 0 6px 12px rgba(35,50,47,.06);
  padding: var(--s1) 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.cmp-namebar.visible {
  opacity: 1;
  pointer-events: auto;
}
.cmp-namebar-item {
  text-align: center;
  font-family: var(--ff-display-en);
  font-weight: 700;
  font-size: 0.95rem;
  
  text-transform: uppercase;
  color: var(--c-forest);
  padding: 8px 0;
  position: relative;
}
body[data-lang="ge"] .cmp-namebar-item {
  font-family: var(--ff-ge);
  text-transform: none;
  
}
.cmp-namebar-item::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 2px;
  margin: 0 auto 5px;
}
.cmp-namebar-item--cloud::before  { background: var(--c-cloud); }
.cmp-namebar-item--field::before  { background: var(--c-field); }
.cmp-namebar-item--ground::before { background: var(--c-ground); }

/* ---- Comparison blocks ---- */
.cmp-blocks {
  margin: var(--s2) auto 0;
}

.cmp-block {
  display: block;
}

.cmp-block-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.6rem 0 0.9rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-forest);
}
.cmp-block-header::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(35,50,47,.2);
}
body[data-lang="ge"] .cmp-block-header {
  font-family: var(--ff-ge);
}

.cmp-block-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.cmp-block-cell {
  padding: var(--s3) var(--s3);
  font-size: 0.85rem;
  color: rgba(35,50,47,.8);
  text-align: left;
  line-height: 1.55;
}

/* Firmness scale */
.cmp-firmness { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.cmp-firmness-bar { display: flex; gap: 4px; }
.cmp-firmness-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(35,50,47,.10);
}
.cmp-firmness-dot.on { background: var(--c-sunset); }
.cmp-firmness-label { font-size: 0.78rem; color: rgba(35,50,47,.55); }

/* Cooling dots */
.cmp-cool { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.cmp-cool-dots { display: flex; gap: 6px; }
.cmp-cool-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(35,50,47,.10);
}
.cmp-cool-dot.on { background: var(--c-cloud); }
.cmp-cool-note { font-size: 0.78rem; color: rgba(35,50,47,.55); }

/* Layers list */
.cmp-layers {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: layer;
}
.cmp-layers li {
  counter-increment: layer;
  font-size: 0.83rem;
  color: rgba(35,50,47,.7);
  padding: 8px 0;
  position: relative;
  padding-left: 1.6em;
  text-align: left;
}
.cmp-layers li::before {
  content: counter(layer);
  position: absolute;
  left: 0;
  top: 8px;
  font-family: var(--ff-display-en);
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(35,50,47,.3);
  
}
body[data-lang="ge"] .cmp-layers li::before { font-family: var(--ff-ge); }

/* Compare: single column on mobile & tablet */
@media (max-width: 768px) {
  .cmp-cols-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  .cmp-col-visual { border-radius: var(--radius); }
  .cmp-col-info-wrap { border-radius: 0 0 var(--radius) var(--radius); }
  .cmp-namebar { grid-template-columns: repeat(3, 1fr); }
  .cmp-block-grid { grid-template-columns: 1fr; }
  .cmp-block-cell:not(:last-child) { border-right: none; border-bottom: 1px solid rgba(35,50,47,.06); }
}

/* ================================================================
   MOBILE ENHANCEMENTS — general spacing & breathing room
   ================================================================ */

/* Auth form: fix gap at 520-600px */
@media (max-width: 600px) {
  .auth-body { padding: var(--s4) var(--s3); }
  .auth-row  { grid-template-columns: 1fr; }
}

/* Small phones (≤480px): general breathing room */
@media (max-width: 480px) {
  /* Tighter container on very small screens */
  .container { padding: 0 var(--s3); }

  /* Card body padding */
  .mattress-body   { padding: var(--s3); }
  .blog-card__body { padding: var(--s3); }
  .testimonial     { padding: var(--s3); }
  .benefit         { padding: var(--s3); }

  /* Comparison hero sub text */
  .cmp-hero__sub { font-size: 0.95rem; }

  /* CTA bands */
  .trial-cta-band { padding: var(--s5) var(--s3); }

  /* Marquee — prevent text overflow */
  .marquee-track { gap: 2rem; }
  .marquee { font-size: 0.78rem; }
}

/* Layout utilities — used by trial.php (and reusable elsewhere).
   These four were previously provided by Tailwind. Keeping them as plain
   CSS so the rest of the site doesn't depend on a framework. */
.flex          { display: flex; }
.relative      { position: relative; }
.absolute      { position: absolute; }
.items-center  { align-items: center; }


