/* ============================================================
   SURAMERICANA JI — PROTOTIPO ESTÁTICO
   Hoja de estilos compartida (header, footer, home, tienda, producto)
   ============================================================ */

:root {
  --primary: #063320;
  --secondary: #2E9E6B;
  --text: #257251;
  --accent: #55D899;

  --font-title: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;

  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;
  --sp-6: 64px;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 12px rgba(6, 51, 32, 0.08);
  --shadow-md: 0 12px 32px rgba(6, 51, 32, 0.14);
  --shadow-lg: 0 24px 56px rgba(6, 51, 32, 0.18);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--primary);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-3);
}

/* Regla de defensa: cualquier elemento con [hidden] SIEMPRE se oculta,
   sin importar qué otra CSS se agregue después (a propósito, tras el bug
   de especificidad que tuvimos en WordPress con clases combinadas). */
[hidden] { display: none !important; }

/* Cuando el menú móvil está abierto, bloquea el scroll del fondo para
   que el usuario no pierda de referencia dónde estaba en la página. */
body.nav-locked {
  overflow: hidden;
}

/* ============================================================
   BARRA SUPERIOR
   ============================================================ */
.topbar {
  position: relative;
  color: #ffffff;
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 15% 20%, rgba(85, 216, 153, 0.35), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(46, 158, 107, 0.4), transparent 50%),
    var(--primary);
  background-size: 200% 200%;
  overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  .topbar { animation: mesh-drift 18s ease-in-out infinite alternate; }
}

@keyframes mesh-drift {
  0%   { background-position: 0% 0%, 100% 100%, 0 0; }
  100% { background-position: 20% 15%, 80% 85%, 0 0; }
}

.topbar__inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px var(--sp-3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-1) var(--sp-4);
}

.topbar__item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0.95;
}

.topbar__item svg { flex-shrink: 0; color: var(--accent); }

.topbar__item a {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 2px;
}

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

@media (max-width: 600px) {
  .topbar__item--hide-sm { display: none; }
  .topbar__inner { justify-content: flex-start; overflow-x: auto; }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #FCFFFD;
  box-shadow: 0 1px 0 rgba(6, 51, 32, 0.06);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px var(--sp-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo svg { height: 44px; width: auto; display: block; }

@media (min-width: 901px) {
  /* Logo más grande e impactante en escritorio (en móvil se queda en
     44px para no empujar el resto del header). */
  .logo svg { height: 68px; }
}

/* ---------- Nav principal ---------- */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: #EEF8F1;
  border-radius: 999px;
}

.nav-list > li { position: relative; }

.nav-link {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 15px;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover { background: #ffffff; }

.nav-item-shop { display: flex; align-items: center; }

/* Fila que agrupa el enlace "Tienda" + la flecha. Esta regla debe
   existir SIEMPRE (no solo en móvil): sin ella, en escritorio el div
   caía a "display:block" por defecto y el texto + la flecha se
   apilaban verticalmente en vez de ir en la misma línea, lo que
   empujaba "Tienda" hacia arriba respecto a "Inicio"/"Contacto". */
.nav-item-shop__row {
  display: flex;
  align-items: center;
}

.nav-caret {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 8px;
  margin-right: 4px;
  cursor: pointer;
  color: var(--primary);
  border-radius: 999px;
}

.nav-caret:hover { background: #ffffff; }

.nav-caret svg { transition: transform 0.25s ease; }

/* El estado abierto lo decide EXCLUSIVAMENTE JS quitando/poniendo el
   atributo [hidden] en #shop-panel y volteando esta clase en el botón —
   nunca depende de :hover ni de combinar selectores con ancestros. */
.nav-caret.is-open svg { transform: rotate(180deg); }

/* ---------- Panel de categorías ("Tienda") ---------- */
.shop-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  width: 720px;
  max-width: 90vw;
  padding: var(--sp-4);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 50;
}

.shop-panel__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--sp-2);
}

.catcard {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: var(--sp-2);
  border-radius: 14px;
  background: #F7FCF9;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .catcard:hover {
    background: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(6, 51, 32, 0.1);
  }

  .catcard__icon svg [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 0; }
  .catcard:hover .catcard__icon svg [pathLength] { animation: leaf-draw 0.7s ease; }
}

@keyframes leaf-draw {
  from { stroke-dashoffset: 1; }
  to   { stroke-dashoffset: 0; }
}

.catcard__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--secondary);
}

.catcard__icon svg { width: 100%; height: 100%; }

.catcard__label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.catcard--promo {
  background: linear-gradient(160deg, var(--primary), #0a4a2f);
  grid-column: span 2;
}

.catcard--promo .catcard__icon { color: var(--accent); }

.catcard--promo .catcard__label {
  color: #ffffff;
  font-family: var(--font-title);
  font-size: 15px;
}

.catcard__cta {
  font-family: var(--font-title);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
}

.shop-panel__footer {
  border-top: 1px solid #EAF3EE;
  margin-top: var(--sp-3);
  padding-top: var(--sp-2);
  text-align: center;
}

.shop-panel__viewall {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.shop-panel__viewall:hover { color: var(--secondary); }

/* ---------- Acciones (carrito + hamburguesa) ---------- */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
}

.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  text-decoration: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #F0FAF5;
  transition: background 0.2s ease, transform 0.15s ease;
}

.cart-link:hover { background: var(--primary); color: #ffffff; transform: translateY(-1px); }

.cart-link .count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--accent);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  min-width: 19px;
  height: 19px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   RESPONSIVE — MENÚ MÓVIL
   Arquitectura deliberadamente simple: el estado abierto/cerrado del
   nav y del panel de categorías lo controla SOLO JS a través del
   atributo [hidden] (nunca clases combinadas tipo .a.b .c, que fue
   justo lo que falló en producción). En desktop, un @media con
   !important fuerza que el nav sea visible pase lo que pase con
   [hidden] (por si JS no llegó a limpiar el estado al redimensionar).
   ============================================================ */
@media (max-width: 900px) {
  /* El botón hamburguesa solo debe existir visualmente en móvil.
     Antes faltaba esta regla: el botón se renderizaba en el DOM
     (con su JS funcionando) pero display:none del estilo base nunca
     se revertía, así que era invisible e inutilizable. */
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    /* Alto real del header (topbar + header), medido por JS y
       expuesto como variable — no un número fijo. El topbar puede
       ocupar 1 o 2 líneas según el ancho de pantalla y el idioma,
       así que un valor fijo se desincroniza fácilmente. */
    top: var(--header-h, 78px);
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    overflow-y: auto;
    box-shadow: 0 12px 24px rgba(6, 51, 32, 0.1);
    z-index: 1000;
  }

  /* Fondo oscurecido detrás del panel para separarlo claramente del
     contenido de la página (also cerrable con un tap). */
  .nav-backdrop {
    position: fixed;
    top: var(--header-h, 78px);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 51, 32, 0.35);
    z-index: 999;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: transparent;
    border-radius: 0;
    padding: var(--sp-1) var(--sp-3) var(--sp-5);
  }

  .nav-list > li { width: 100%; }

  .nav-link {
    width: 100%;
    padding: 14px 4px;
    border-radius: 0;
    justify-content: space-between;
  }

  .nav-item-shop { flex-wrap: wrap; }
  .nav-item-shop__row { display: flex; align-items: center; width: 100%; }
  .nav-item-shop__row .nav-link { flex: 1; }

  /* Objetivo táctil más grande para el botón de la flecha (antes 8px
     de padding sobre un ícono de 10x6 quedaba muy pequeño para el dedo). */
  .nav-caret {
    width: 44px;
    height: 44px;
    padding: 0;
  }

  .shop-panel {
    position: static;
    transform: none;
    width: 100%;
    max-width: none;
    box-shadow: none;
    border-radius: 0;
    padding: var(--sp-1) 0 var(--sp-3);
  }

  .shop-panel__grid { grid-template-columns: repeat(2, 1fr); }
  .catcard--promo { grid-column: span 2; }
}

@media (min-width: 901px) {
  /* Pase lo que pase con el atributo [hidden] (p. ej. si JS no alcanzó
     a limpiarlo al pasar de móvil a desktop), en desktop el nav SIEMPRE
     se ve. Esto es a propósito redundante. */
  #main-nav[hidden] {
    display: flex !important;
  }
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(6, 51, 32, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #ffffff;
}

.btn-accent {
  background: var(--accent);
  color: var(--primary);
}

.btn-accent:hover {
  background: #48c589;
  transform: translateY(-2px);
}

/* ============================================================
   HOME — HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #F7FCF9 0%, #EAF6EF 60%, #E3F3EA 100%);
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
}

.hero__blob--1 {
  top: -180px;
  right: -160px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(85, 216, 153, 0.35), transparent 70%);
}

.hero__blob--2 {
  bottom: -220px;
  left: -140px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(46, 158, 107, 0.25), transparent 70%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: var(--sp-5);
  padding: var(--sp-6) var(--sp-3);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--secondary);
  background: #ffffff;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--sp-3);
}

.hero__title {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--primary);
  margin: 0 0 var(--sp-3);
  letter-spacing: -0.01em;
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__text {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  max-width: 46ch;
  margin: 0 0 var(--sp-4);
}

.hero__actions {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-bottom: var(--sp-4);
}

.hero__stats {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.hero__stat {
  display: flex;
  flex-direction: column;
}

.hero__stat strong {
  font-family: var(--font-title);
  font-size: 22px;
  color: var(--primary);
}

.hero__stat span {
  font-size: 12.5px;
  color: var(--text);
}

.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-4);
  width: 100%;
  max-width: 380px;
}

.hero__card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-2);
}

.hero__card-item {
  background: #F7FCF9;
  border-radius: var(--radius-sm);
  padding: var(--sp-2);
  text-align: center;
}

.hero__card-item .emoji { font-size: 28px; display: block; margin-bottom: 6px; }
.hero__card-item span { font-size: 12px; font-weight: 600; color: var(--text); }

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    padding: var(--sp-5) var(--sp-3);
    text-align: center;
  }
  .hero__stats { justify-content: center; }
  .hero__actions { justify-content: center; }
  .hero__visual { margin-top: var(--sp-4); }
}

/* ============================================================
   HOME — CATEGORÍAS DESTACADAS
   ============================================================ */
.section {
  padding: var(--sp-6) 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--sp-5);
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: var(--sp-1);
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 var(--sp-1);
}

.section-text {
  color: var(--text);
  font-size: 15.5px;
  margin: 0;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-3);
}

.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  text-align: center;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #EAF3EE;
  border-radius: var(--radius-md);
  padding: var(--sp-4) var(--sp-2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.cat-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #F0FAF5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
}

.cat-card__icon svg { width: 26px; height: 26px; }

.cat-card__label {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
}

@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   HOME — PRODUCTOS DESTACADOS (grilla reutilizada en tienda)
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}

@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #EAF3EE;
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  background: var(--accent);
  color: var(--primary);
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}

.product-card__badge--out {
  background: #EEE;
  color: #888;
}

.product-card__image {
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, #F0FAF5, #E3F3EA);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.product-card__body {
  padding: var(--sp-2) var(--sp-2) var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.product-card__cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--secondary);
}

.product-card__title {
  font-family: var(--font-title);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
  flex: 1;
}

.product-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
}

.product-card__price {
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
}

.product-card__price-old {
  font-size: 13px;
  color: #a9b8b0;
  text-decoration: line-through;
}

.product-card__add {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #F0FAF5;
  color: var(--primary);
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  padding: 10px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.product-card__add:hover {
  background: var(--primary);
  color: #ffffff;
}

/* ============================================================
   TIENDA — filtros + grilla
   ============================================================ */
.shop-header {
  background: linear-gradient(160deg, #F7FCF9, #EAF6EF);
  padding: var(--sp-5) 0 var(--sp-4);
}

.shop-header__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid #EAF3EE;
  margin-bottom: var(--sp-4);
}

.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: #F0FAF5;
  border: 1px solid transparent;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.filter-chip.is-active,
.filter-chip:hover {
  background: var(--primary);
  color: #ffffff;
}

.shop-count {
  font-size: 13.5px;
  color: var(--text);
}

/* ============================================================
   PRODUCTO — ficha individual
   ============================================================ */
.product-single {
  padding: var(--sp-5) 0 var(--sp-6);
}

.breadcrumbs {
  font-size: 13px;
  color: var(--text);
  margin-bottom: var(--sp-4);
}

.breadcrumbs a { color: var(--text); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

.product-single__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
  align-items: start;
}

.product-single__gallery {
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, #F0FAF5, #E3F3EA);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 96px;
  position: sticky;
  top: 110px;
}

.product-single__cat {
  font-family: var(--font-title);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--secondary);
  margin-bottom: var(--sp-1);
}

.product-single__title {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 var(--sp-2);
}

.product-single__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 14px;
  margin-bottom: var(--sp-3);
}

.product-single__rating span { color: var(--text); font-size: 13px; }

.product-single__price-row {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}

.product-single__price {
  font-family: var(--font-title);
  font-size: 30px;
  font-weight: 800;
  color: var(--primary);
}

.product-single__price-old {
  font-size: 17px;
  color: #a9b8b0;
  text-decoration: line-through;
}

.product-single__desc {
  color: var(--text);
  line-height: 1.7;
  font-size: 15.5px;
  margin-bottom: var(--sp-4);
}

.product-single__meta {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-4);
  font-size: 13.5px;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-single__meta strong { color: var(--primary); }

.qty-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}

.qty-stepper {
  display: flex;
  align-items: center;
  border: 1.5px solid #EAF3EE;
  border-radius: 999px;
  overflow: hidden;
}

.qty-stepper button {
  width: 40px;
  height: 40px;
  background: #F7FCF9;
  border: none;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
}

.qty-stepper input {
  width: 44px;
  text-align: center;
  border: none;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 15px;
  color: var(--primary);
}

.product-single__actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; }

@media (max-width: 900px) {
  .product-single__grid { grid-template-columns: 1fr; }
  .product-single__gallery { position: static; font-size: 72px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.85);
}

.footer-main { padding: var(--sp-6) 0 var(--sp-4); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--sp-4);
}

.footer-logo { height: 40px; width: auto; display: block; margin-bottom: var(--sp-2); }

.footer-tagline {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  max-width: 34ch;
  margin: 0 0 var(--sp-3);
}

.footer-social {
  display: flex;
  gap: 8px;
}

.footer-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
  transition: background 0.2s ease;
}

.footer-social__link:hover { background: rgba(255, 255, 255, 0.16); }

.footer-heading {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 var(--sp-2);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a,
.footer-links li {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--sp-3) 0;
}

.footer-bottom__inner {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-social { justify-content: center; }
}
