/* CSS ============================================================================ 
   STYLES.MVC – Estilos globales (limpio, minimal, elegante, fondo claro)
   ------------------------------------------------------------------------
   ▶ Paleta original respetada
   ▶ Mejora de TIPOGRAFÍA y SOPORTE PARA ÍCONOS
   ▶ Ajustes: LOGO y tipografías del header MÁS GRANDES y responsive
   (No se toca ninguna funcionalidad/JS)
============================================================================ */

:root{
  /* === COLORES (tus tokens originales) === */
  --bg:        #FAFAF8;  /* Fondo marfil muy claro */
  --panel:     #FFFFFF;  /* Tarjetas y modales */
  --panel-2:   #FBFAF7;  /* Hover/fondo suave */
  --text:      #1A1C1B;  /* Texto principal */
  --muted:     #6B716F;  /* Texto tenue */
  --line:      #E6E2DA;  /* Bordes sutiles */
  --accent:    #0E8F6E;  /* Jade (CTA) */
  --accent-2:  #DAD2C5;  /* Beige cálido */
  --accent-3:  #0B6F57;  /* Jade profundo */
  --shadow:    0 10px 30px rgba(14,143,110,.10);
  --radius:    16px;

  /* === TIPOGRAFÍA (variables) === */
   --font-serif: 'Cormorant Garamond', serif; /* Títulos y frases principales */
  --font-sans: 'Work Sans', sans-serif;      /* Texto base, botones, descripción */

  /* Escala fluida (ajusta tamaños suavemente según viewport) */
  --fs-12: clamp(11px, 0.72vw, 12px);
  --fs-13: clamp(12px, 0.78vw, 13px);
  --fs-14: clamp(13px, 0.85vw, 14px);
  --fs-16: clamp(15px, 1.0vw, 16px);
  --fs-18: clamp(16px, 1.2vw, 18px);
  --fs-20: clamp(18px, 1.5vw, 20px);
  --fs-24: clamp(20px, 2.0vw, 24px);
  --fs-28: clamp(22px, 2.4vw, 28px);
  --fs-40: clamp(28px, 4.0vw, 40px);

  /* Alturas de línea y tracking */
  --lh-tight: 1.15;    /* títulos */
  --lh-body:  1.6;     /* párrafos */
  --lh-ui:    1.3;     /* botones/etiquetas */
  --track-tight:  -0.2px;
  --track-normal:  0.0px;
  --track-wide:    0.3px;

  /* ====== NUEVO: variables para ESCALAR header rápido ====== */
  --logo-size-desktop: 87px;                    /* ← tamaño de logo en escritorio (antes 36px) */
  --logo-size-mobile: 68px;                    /* ← tamaño en móviles */
  --brand-title-size:  clamp(24px, 2.6vw, 30px);/* ← “MVC Silver” */
  --brand-badge-size:  clamp(12px, 1.2vw, 14px);/* ← “Mexican .925 …” */
  --nav-font-size:     clamp(13px, 1.1vw, 15px);/* ← enlaces menú */
}

/* ==== Modal desktop fix + premium catalog cards ==== */
@media (min-width: 769px){
  #productModal .modal-content{
    grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr);
    max-height: calc(100vh - 34px);
    overflow-y: auto;
    align-items: start;
  }

  #productModal .modal-left{
    gap: 10px;
  }

  #productModal .m-media-frame{
    padding: 16px;
  }

  #productModal .m-img{
    height: min(50vh, 500px);
  }

  #productModal .m-thumbs{
    grid-template-columns: repeat(auto-fit, minmax(76px, 88px));
    justify-content: start;
  }
}

.grid.products,
#catalogo.grid{
  gap: 22px;
}

.card.product{
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 14px;
  border-radius: 24px;
  border: 1px solid rgba(219, 210, 193, .92);
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(249,246,240,.98)),
    linear-gradient(135deg, rgba(14,143,110,.05), rgba(214,168,87,.04));
  box-shadow: 0 18px 34px rgba(12, 20, 28, .08);
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease;
}

.card.product:hover{
  transform: translateY(-6px);
  border-color: rgba(14,143,110,.24);
  box-shadow: 0 26px 50px rgba(12, 20, 28, .12);
  background:
    linear-gradient(180deg, rgba(255,255,255,1), rgba(249,246,240,1)),
    linear-gradient(135deg, rgba(14,143,110,.06), rgba(214,168,87,.06));
}

.card.product .pimg{
  isolation: isolate;
  margin-bottom: 14px;
  border-radius: 20px;
  border: 1px solid rgba(219, 210, 193, .88);
  background:
    radial-gradient(circle at top, rgba(255,255,255,.98), #f2eee6 74%),
    linear-gradient(180deg, rgba(14,143,110,.05), rgba(214,168,87,.04));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 16px 28px rgba(12, 20, 28, .08);
}

.card.product .pimg::after{
  content: "";
  position: absolute;
  inset: auto 18px 12px 18px;
  height: 24px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(18,32,51,.16), rgba(18,32,51,0));
  filter: blur(10px);
  opacity: .42;
  z-index: 0;
  pointer-events: none;
}

.card.product .pimg img{
  z-index: 1;
  transition: transform .3s ease, filter .3s ease;
}

.card.product:hover .pimg img{
  transform: scale(1.03);
  filter: saturate(1.04);
}

.card.product .ptit{
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}

.card.product .ptit strong{
  display: block;
  color: #142236;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.08;
}

.card.product .price{
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fdf8ed, #f6eddc);
  border: 1px solid rgba(214,168,87,.35);
  color: #8a6322;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .01em;
}

.card.product .psub{
  color: #5f6e6a;
  font-size: .9rem;
  line-height: 1.55;
  min-height: 2.8em;
}

.card.product .sku{
  margin-top: 4px;
  color: #7a8782;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.card.product .pact{
  margin-top: auto !important;
  padding-top: 12px !important;
}

.card.product .pill-soldout{
  top: 12px;
  right: 12px;
  left: auto;
  background: rgba(17, 24, 39, .82);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 10px 20px rgba(12, 20, 28, .16);
}

@media (max-width: 768px){
  .card.product{
    padding: 12px;
    border-radius: 20px;
  }

  .card.product .ptit strong{
    font-size: 1.16rem;
  }

  .card.product .psub{
    min-height: auto;
  }
}

/* ===== Selector de idioma unificado v2.19 ===== */
.header-language{
  display:inline-flex;
  align-items:center;
  flex:0 0 auto;
  gap:5px;
  min-height:44px;
  margin-right:2px;
  padding:4px 8px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  color:var(--muted);
}

.header-language .language-globe{font-size:15px;line-height:1}
.header-language .language-divider{color:var(--line);font-size:13px}
.header-language .lang-btn{
  min-width:30px;
  padding:6px 5px;
  border:0;
  border-radius:999px;
  background:transparent;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  line-height:1;
}
.header-language .lang-btn:hover{background:var(--panel-2);color:var(--text)}
.header-language .lang-btn.active{background:var(--accent);color:#fff;box-shadow:0 4px 10px rgba(14,143,110,.2)}

.mobile-language-toggle{display:none}

.language-welcome{
  position:fixed;
  left:24px;
  bottom:24px;
  z-index:120;
  width:min(340px,calc(100vw - 32px));
  padding:18px;
  display:grid;
  gap:7px;
  border:1px solid rgba(14,143,110,.22);
  border-radius:18px;
  background:rgba(255,255,255,.97);
  box-shadow:0 22px 55px rgba(16,35,56,.18);
  backdrop-filter:blur(12px);
}
.language-welcome strong{padding-right:28px;color:var(--text);font-size:1rem}
.language-welcome > span{color:var(--muted);font-size:.86rem}
.language-welcome-close{position:absolute;top:9px;right:10px;width:30px;height:30px;border:0;border-radius:50%;background:var(--panel-2);cursor:pointer}
.language-welcome-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:6px}
.language-welcome-actions button{min-height:42px;border:1px solid var(--accent);border-radius:12px;background:#fff;color:var(--accent);font-weight:800;cursor:pointer}
.language-welcome-actions button:hover{background:var(--accent);color:#fff}

@media (max-width:768px){
  .header-language{display:none!important}
  .mobile-language-toggle{
    display:inline-flex;
    position:fixed;
    left:14px;
    bottom:calc(16px + env(safe-area-inset-bottom));
    z-index:115;
    align-items:center;
    justify-content:center;
    min-width:72px;
    min-height:44px;
    padding:9px 13px;
    border:1px solid rgba(14,143,110,.25);
    border-radius:999px;
    background:rgba(255,255,255,.96);
    color:var(--accent-3);
    box-shadow:0 12px 28px rgba(16,35,56,.18);
    font-size:13px;
    font-weight:800;
    backdrop-filter:blur(10px);
  }
  .language-welcome{left:14px;bottom:calc(72px + env(safe-area-inset-bottom))}
}

/* Product Cards V2: overrides finales contra reglas históricas duplicadas. */
.card.product{
  padding:12px;
  border-radius:20px;
  border:1px solid rgba(211,201,184,.78);
  background:#fff;
  box-shadow:0 12px 28px rgba(18,32,51,.07);
}
.card.product:hover{
  transform:translateY(-4px);
  border-color:rgba(14,143,110,.26);
  background:#fff;
  box-shadow:0 20px 42px rgba(18,32,51,.11);
}
.card.product .ptit{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:0 2px 8px}
.card.product .price{flex:0 0 auto;padding:0;border:0;border-radius:0;background:transparent;color:#102338;font-size:1.02rem;font-weight:800}
.card.product .psub{min-height:0;margin:0 2px 3px;color:#52645f;font-size:.82rem;line-height:1.45}
.card.product .sku{margin:0 2px;color:#78847f;font-size:.7rem;letter-spacing:.07em}
.card.product .pact{display:flex;align-items:stretch;gap:8px;margin-top:auto!important;padding-top:14px!important}

/* ======================================================
   PRODUCT CARDS V2 — capa final unificada
   ====================================================== */
.card.product{
  padding: 12px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(211,201,184,.78);
  box-shadow: 0 12px 28px rgba(18,32,51,.07);
}

.card.product:hover{
  transform: translateY(-4px);
  border-color: rgba(14,143,110,.26);
  background: #fff;
  box-shadow: 0 20px 42px rgba(18,32,51,.11);
}

.card.product .product-card-media{
  appearance: none;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 0 14px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: #f7f4ee;
  cursor: pointer;
}

.card.product .product-card-media::after{display:none}

.card.product .product-card-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
  transition: transform .28s ease, filter .28s ease;
}

.card.product:hover .product-card-media img{
  transform: scale(1.025);
  filter: saturate(1.03);
}

.card.product .ptit{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 2px 8px;
}

.card.product .product-card-title{
  appearance: none;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #142236;
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: left;
  cursor: pointer;
}

.card.product .product-card-title:hover{color:var(--accent-3)}

.card.product .price{
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #102338;
  font-size: 1.02rem;
  font-weight: 800;
}

.card.product .psub{
  min-height: 0;
  margin: 0 2px 3px;
  color: #52645f;
  font-size: .82rem;
  line-height: 1.45;
}

.card.product .sku{
  margin: 0 2px;
  color: #78847f;
  font-size: .7rem;
  letter-spacing: .07em;
}

.card.product .pact{
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: auto !important;
  padding-top: 14px !important;
}

.card.product .product-card-add{
  display: inline-flex;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 44px;
  padding: 11px 14px;
  border-radius: 13px;
  font-size: .78rem;
  letter-spacing: .03em;
  text-transform: none;
}

.card.product .product-card-share{
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(14,143,110,.28);
  border-radius: 13px;
  background: #fff;
  color: var(--accent-3);
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.card.product .product-card-share:hover{
  transform: translateY(-1px);
  border-color: var(--accent);
  background: #f1fbf7;
}

.card.product .product-card-share svg{
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.card.product .product-card-media:focus-visible,
.card.product .product-card-title:focus-visible,
.card.product .product-card-add:focus-visible,
.card.product .product-card-share:focus-visible{
  outline: 3px solid rgba(14,143,110,.28);
  outline-offset: 3px;
}

@media (max-width: 640px){
  .card.product .product-card-title{font-size:1.1rem}
  .card.product .ptit{gap:8px}
  .card.product .product-card-add{font-size:.75rem}
}

/* Reset mínimo */
*{box-sizing:border-box}
html,body{margin:0;height:100%}

body{
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  line-height: var(--lh-body);
  letter-spacing: var(--track-normal);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* apenas separa del borde de la ventana */
  box-shadow: inset 0 2px 0 rgba(0,0,0,.02);
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{font:inherit}

/* ================= NAVBAR ================= */
.topbar{
  position:sticky; top:0; z-index:50;
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(8px);
  border-bottom:1px solid var(--line);
}
.wrap{
  max-width:1200px; margin:0 auto; 
  padding:14px 22px;        /* ↑ un poco más de alto para equilibrar el logo grande */
  display:flex; align-items:center; gap:16px;
}
.brand{display:flex; align-items:center; gap:12px}

/* Logotipo horizontal unificado: evita repetir el nombre junto al emblema. */
.brand-lockup{
  display:block;
  width:clamp(184px, 18vw, 224px);
  max-width:none;
  height:auto;
  aspect-ratio:3 / 1;
  object-fit:contain;
}

/* LOGO
   Mantiene tu gradiente para <div class="logo">.
   Si usas <img class="logo" src="...">, aplicamos tamaño y anulamos el fondo. */
.logo{
  width:var(--logo-size-desktop); 
  height:var(--logo-size-desktop); 
  border-radius:50%;
  background: radial-gradient(circle at 30% 30%, #fff 0, #EFEDE8 60%, #E1DBD0 100%);
  border:0px solid var(--line);
}
/* Caso específico para IMG: evita fondo y asegura recorte correcto */
img.logo{
  background:none !important;
  object-fit:cover;
  display:inline-block;
}

@media (max-width: 768px){
  .logo{ width:var(--logo-size-mobile); height:var(--logo-size-mobile); }
  .brand-lockup{ width:clamp(142px, 42vw, 166px); }
}

/* TÍTULOS con serif elegante */
.brand-title{line-height:1}
.title, h1, h2, h3{
  font-family: var(--font-serif);
  line-height: var(--lh-tight);
  letter-spacing: var(--track-wide);
  color: var(--text);
  margin: 0;
}
.title{ 
  font-weight:700; 
  font-size: var(--brand-title-size);   /* ↑ tamaño del título del header */
}
h1{ font-size: var(--fs-40); font-weight:700; }
h2{ font-size: var(--fs-28); font-weight:600; }
h3{ font-size: var(--fs-24); font-weight:600; }

.badge{
  font-family: var(--font-sans);
  font-size: var(--brand-badge-size);   /* ↑ badge ligeramente mayor */
  color: var(--muted);
}
.spacer{flex:1}

/* ================= MENÚ COLECCIONES ================= */
.nav{
  display:flex; gap:6px; padding:6px;
  border:1px solid var(--line); border-radius:999px; background:#FFFFFFAA;
  font-family: var(--font-sans);
}
.nav a{
  padding:8px 12px; /* ↑ un poco más de aire (antes 6px 10px) */
  border-radius:999px; color:var(--muted);
  border:1px solid transparent; transition: .15s;
  font-size: var(--nav-font-size);   /* ↑ tamaño del texto del menú */
  line-height: var(--lh-ui);
  letter-spacing: var(--track-normal);
  font-weight: 600;
}
/* Íconos inline dentro del menú (si usas <svg> dentro del <a>) */
.nav a svg{
  width:16px; height:16px; margin-right:6px; flex:0 0 auto; vertical-align:middle;
}
.nav a:hover{color:var(--text); background:var(--panel-2); border-color:var(--line)}

/* ================= BOTONES ================= */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px; border-radius:12px; cursor:pointer;
  border:1px solid var(--line); background: var(--panel);
  transition:.2s;

  /* Tipografía botón */
  font-family: var(--font-sans);
  font-size: var(--fs-14);
  line-height: var(--lh-ui);
  letter-spacing: 0.4px;
  text-transform: none;
  font-weight: 600;
}
/* Íconos inline dentro de botones (SVG) */
.btn svg{
  width:18px; height:18px; flex:0 0 auto; vertical-align:middle;
}

/* Ajuste tipográfico sutil para todos los botones .btn */
.btn{
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

/* ======================================================
   BOTONES PRINCIPALES (CTA) – Verde MVC oficial
   ====================================================== */
.btn-cta,
.btn.primary,
a.btn-cta,
button.btn-cta {
  background: var(--accent) !important;      /* Verde #0E8F6E */
  color: #FFFFFF !important;
  border: none !important;
  box-shadow: 0 6px 16px rgba(14,143,110,.25) !important;
}

/* Hover */
.btn-cta:hover,
.btn.primary:hover,
a.btn-cta:hover,
button.btn-cta:hover {
  background: var(--accent-3) !important;    /* Verde oscuro */
}

/* ======================================================
   BOTONES OUTLINE – evitar gris y mantener estilo verde
   ====================================================== */
.btn-outline {
  background: transparent !important;
  color: var(--accent) !important;
  border: 1px solid var(--accent) !important;
}

.btn-outline:hover {
  background: var(--accent) !important;
  color: #FFFFFF !important;
}

/* ======================================================
   BOTÓN DEL HERO (Ver catálogo completo)
   ====================================================== */
.hero a.btn-cta,
.hero-banner a.btn-cta,
a.btn-cta[href*="shop.html"] {
  background: var(--accent) !important;
  color: #FFFFFF !important;
   font-size: 1.4rem;        /* ⬅️ AQUI CAMBIAS EL TAMAÑO DE LETRA */
  padding: 15px 29px;       /* opcional: más grande visualmente */
  font-weight: 700;  
}

/* === ICON BUTTONS (account + cart) === */
.icon-btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px; padding:10px 14px; border:1px solid var(--line); border-radius:999px;
  background:#fff; color:var(--text); cursor:pointer; text-decoration:none;
  min-height:40px;
}
.icon-btn:hover{ background: var(--panel-2); }
.icon-btn svg{ display:block; }
.icon-btn .cart-count{
  margin-left:6px;
}


/* ===== Social icons in header ===== */
.social-links{
  display:flex;
  gap:10px;
  align-items:center;
  margin-right:10px; /* separa de cuenta/carrito */
}

.social-btn{
  padding:10px 12px;
  min-height:44px;
}

.social-btn svg{
  width:26px;
  height:26px;
  display:block;
}


/* Position the icon buttons to the right side of header */
.header-inner .icon-btn{ margin-left:10px; }

/* Accessible helper */
.sr-only{ position:absolute; clip:rect(1px,1px,1px,1px); padding:0; border:0; height:1px; width:1px; overflow:hidden; }
/* ================= HERO ================= */
.hero{
  max-width:1200px; margin:28px auto 0; padding:0 20px;
  display:grid; grid-template-columns:1.1fr .9fr; gap:24px;
}
@media (max-width:1024px){.hero{grid-template-columns:1fr}}
.hero-card{
  background: var(--panel);
  border:1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-body{padding:26px}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.hero p{
  color:var(--muted); margin:0 0 16px;
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  line-height: var(--lh-body);
}
.chips{display:flex; gap:8px; flex-wrap:wrap}
.chip{
  font-size: var(--fs-12); padding:6px 10px;
  border:1px solid var(--line); border-radius:999px; color:#3C4743; background:#FFFFFF;
  letter-spacing: 0.2px;
  font-weight: 600;
}

/* Controlar tamaño visual del hero */
.hero img {
  width: 100%;
  height: 250%;
  max-height: 1200px; /* ← cambia este valor según lo que quieras */
  object-fit: cover;
  border-radius: var(--radius);
}

/* ================= TÍTULO + FILTROS ================= */
.section-title{
  max-width:1200px; margin:34px auto 10px; padding:0 20px;
  display:flex; align-items:end; justify-content:space-between; gap:14px;
}
.section-title h2{
  margin:0; 
  font-family: var(--font-serif);
  font-size: var(--fs-28);
  font-weight: 600;
  letter-spacing: var(--track-wide);
}
.filters{display:flex; gap:8px; flex-wrap:wrap}

/* ================= GRID CATÁLOGO ================= */
.grid{
  max-width:1200px; margin:12px auto 80px; padding:0 20px;
  display:grid; grid-template-columns:repeat(4,1fr); gap:18px;
}
@media (max-width:1100px){.grid{grid-template-columns:repeat(3,1fr)}}
@media (max-width:820px){.grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.grid{grid-template-columns:1fr}}

.card{
  background: var(--panel);
  border:1px solid var(--line);
  border-radius: 14px;
  overflow:hidden;
  display:flex; flex-direction:column;
  transition:.2s; position:relative;
}
.card .media{aspect-ratio:1/1; background:#F4F2EE}
.card .body{padding:14px; display:flex; flex-direction:column; gap:6px}
.name{
  font-family: var(--font-sans);
  font-weight:600; letter-spacing:.2px; font-size: var(--fs-16);
}
.price{
  font-family: var(--font-sans);
  font-weight:700; color:#1F2E2A; font-size: var(--fs-16);
}
.muted{color:var(--muted); font-size:var(--fs-14)}
.card:hover{transform: translateY(-2px); background:var(--panel-2)}
.ribbon{
  position:absolute; top:10px; left:10px;
  background:#0E8F6E; color:#fff; font-size:12px; font-weight:700;
  padding:4px 8px; border-radius: 999px;
  box-shadow: 0 6px 12px rgba(14,143,110,.18);
}

/* Cantidades */
.row{display:flex; align-items:center; justify-content:space-between; gap:10px}
.qty{
  display:flex; align-items:center;
  border:1px solid var(--line); border-radius:12px; overflow:hidden;
  background:#FFFFFF;
  font-family: var(--font-sans);
}
.qty button{
  border:none; background:#F3F1ED; color:#33423D; padding:7px 11px; cursor:pointer;
  font-weight: 700;
}
.qty input{
  width:46px; text-align:center; background:#FFFFFF; color:#1A1C1B;
  border:none; padding:7px 0; font-weight:600;
  font-family: var(--font-sans);
  letter-spacing: 0.3px;
}

/* CTAs de card */
.btn-add{
  background: var(--panel);
  border:1px solid var(--accent);
  color: var(--accent);
  font-weight:700;
  border-radius:12px; padding:9px 12px;

  /* Tipografía botón secundario */
  font-family: var(--font-sans);
  font-size: var(--fs-14);
  letter-spacing: 0.3px;
}
.btn-add:hover{background:#F1FFF9}
.btn-buy{
  background: linear-gradient(180deg, #11A582 0%, #0E8F6E 100%);
  border:none; color:#FFFFFF; font-weight:700;
  border-radius:12px; padding:9px 12px;
  box-shadow: 0 8px 18px rgba(14,143,110,.20);

  /* Tipografía compra directa */
  font-family: var(--font-sans);
  font-size: var(--fs-14);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

/* ================= CARRITO (DRAWER) ================= */
.drawer{ pointer-events:none;
  position:fixed; inset:0 0 0 auto; width:420px; max-width:100%;
  background: var(--panel);
  border-left:1px solid var(--line);
  transform: translateX(100%); transition: .25s; z-index:60;
  box-shadow: var(--shadow);
  font-family: var(--font-sans);
  font-size: var(--fs-14);
}
.drawer.open{transform:none}
.drawer .head{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 16px; border-bottom:1px solid var(--line);
  font-weight: 600;
}
.drawer .items{
  max-height:55vh; overflow:auto; padding:10px 16px; display:flex; flex-direction:column; gap:12px;
}
.line{display:flex; gap:10px}
.line img{
  width:64px; height:64px; object-fit:cover; border-radius:10px;
  border:1px solid var(--line); background:#F4F2EE;
}
.line .meta{flex:1}
.remove{
  background:#FFF; border:1px solid var(--line); color:#6D4C43;
  padding:7px 10px; border-radius:10px; cursor:pointer;
  font-weight: 600;
}
.remove:hover{background:#FFF3F0}
.drawer .totals{padding:14px 16px; border-top:1px solid var(--line)}
.small{font-size:12px; color:var(--muted)}

#drawer.drawer{
  position:fixed; top:0; right:0; bottom:0;
  width:min(420px, 92vw);
  background:#fff;
  display:flex; flex-direction:column;
  box-shadow:-10px 0 25px rgba(0,0,0,.12);
  z-index:9999;
}
#drawer .head{ flex:0 0 auto; }
#drawer .items{ max-height: 40vh; overflow:auto; }
#drawer .totals{ margin-top:auto; }

/* ================= MODAL DETALLE ================= */
.modal{
  position:fixed; inset:0; background:rgba(0,0,0,.3);
  display:none; align-items:center; justify-content:center; z-index:70;
}
.modal.open{display:flex}
.modal-card{
  width:min(980px,94vw); background: var(--panel); border:1px solid var(--line);
  border-radius: 16px; overflow:hidden; box-shadow: var(--shadow);
}
.modal-body{display:grid; grid-template-columns:1fr 1fr}
@media (max-width:900px){.modal-body{grid-template-columns:1fr}}
.modal-media{background:#F4F2EE; padding:10px}
.modal-content{padding:18px}
.modal h3{
  font-family: var(--font-serif);
  font-size: var(--fs-24);
  font-weight: 600;
  letter-spacing: var(--track-wide);
  margin:0 0 6px;
}
.pill{
  display:inline-block; background:#F6FBF9; border:1px solid var(--accent);
  padding:6px 10px; border-radius:999px; font-size:12px; color:#0E8F6E; margin-right:6px;
  font-weight:600;
}
.ul{margin:8px 0 0 18px; color:#3E4744; font-size:14px}


/* ================= FOOTER ================= */
footer{
  max-width:1200px; margin:60px auto 30px; padding:0 20px;
  color:#4B524F; font-size:14px;
  font-family: var(--font-sans);
  line-height: var(--lh-body);
}

/* ==== OVERRIDE: separación entre título y subtítulo del brand en el header ==== */

/* 1) Con Flex + gap (la forma más limpia) */
.brand-title{
  display: flex;               /* apila título y badge en columna */
  flex-direction: column;
  gap: clamp(4px, 0.6vw, 10px);/* ← ajusta aquí la separación vertical */
}

/* 2) (Opcional) Si prefieres controlar solo con margen del título: */
/* .brand-title .title{ margin-bottom: 8px; } */

/* 3) (Opcional) Ajustes finos de tracking si “se ven muy pegadas” tipográficamente */
.brand-title .title{ letter-spacing: 0.4px; }   /* más aire en el título */
.brand-title .badge{ letter-spacing: 0.2px; }   /* un toque de aire en el subtítulo */

footer a{color:#0E8F6E; text-decoration:underline dotted}
.policies{display:grid; grid-template-columns:repeat(2,1fr); gap:18px; margin-top:18px}
@media (max-width:800px){.policies{grid-template-columns:1fr}}


/* ===================================================================
   NAV: Dropdown "Shop" (accesible y minimal)
   ------------------------------------------------------------------- */
.main-nav{align-items:center}
.nav-dropdown{position:relative}
.nav-dropbtn{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 12px; border-radius:999px;
  border:1px solid var(--line); background:#ffffffaa; color:var(--text);
  cursor:pointer; font-weight:600; font-size:var(--fs-14); line-height:var(--lh-ui);
}
.nav-dropbtn:hover{background:var(--panel-2)}
.nav-dropdown .nav-menu{
  position:absolute; top:calc(100% + 8px); left:0; min-width:220px;
  background:var(--panel); border:1px solid var(--line); border-radius:12px;
  box-shadow: var(--shadow); padding:8px; display:none; z-index:70;
}
.nav-dropdown.open .nav-menu{display:block}
.nav-dropdown .nav-menu a{
  display:block; padding:10px 12px; border-radius:10px; color:var(--text); font-size:var(--fs-14);
}
.nav-dropdown .nav-menu a:hover{background:var(--panel-2)}

/* Oculta "My Account" en pantallas pequeñas (ya tienes el carrito visible) */
.only-desktop{display:none}
@media(min-width:980px){.only-desktop{display:inline-flex}}

/* ===================================================================
   FOOTER
   ------------------------------------------------------------------- */
.site-footer{border-top:1px solid var(--line); margin-top:60px; background:var(--panel-2)}
.footer-wrap{
  max-width:1200px; margin:0 auto; padding:28px 20px;
  display:grid; gap:20px; grid-template-columns:repeat(4,1fr);
}
@media(max-width:980px){.footer-wrap{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.footer-wrap{grid-template-columns:1fr}}
.f-col h4{
  font-family: var(--font-serif); font-weight:600; font-size:var(--fs-18); margin:0 0 10px;
}
.f-list{list-style:none; margin:0; padding:0}
.f-list li{margin:6px 0}
.f-list a{text-decoration:none; color:var(--text)}
.f-list a:hover{text-decoration:underline}
.newsletter{display:flex; gap:8px; margin-top:6px}
.newsletter input{
  flex:1; padding:10px 12px; border-radius:12px; border:1px solid var(--line); background:#fff;
  font: inherit;
}
.footer-bottom{
  max-width:1200px; margin:0 auto; padding:12px 20px;
  display:flex; align-items:center; justify-content:space-between; gap:10px; border-top:1px solid var(--line);
}
.footer-quick{display:flex; gap:12px}

/* Pequeño foco para accesibilidad en items del menú */
.nav a:focus, .nav-dropbtn:focus, .nav-menu a:focus{outline:2px solid var(--accent); outline-offset:2px}


/* === TOP PROMO BANNER (shared) === */
/* === CENTRADO DEL BANNER SUPERIOR === */
.promo-banner {
  position: sticky;
  top: 0;
  z-index: 60;
  background:linear-gradient(180deg, #D6BA8C 0%, #B89D73 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .25);
  overflow: hidden;
  text-align: center;              /* centra el contenido */
}

.banner-inner {
  display: flex;
  justify-content: center;         /* centra la pista */
  align-items: center;
  gap: 12px;
  padding: 8px 22px;
  max-width: 1200px;               /* limita ancho total */
  margin: 0 auto;
  position: relative;
}

.banner-track {
  display: inline-flex;
  gap: 18px;
  animation: banner-slide 22s linear infinite;
  white-space: nowrap;
}

.banner-close {
  position: absolute;
  right: 16px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.promo-banner a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.promo-banner a:hover {
  text-decoration: underline;
}

/* Animación más fluida y centrada */
@keyframes banner-slide {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

/* === Banner e idiomas === */
.promo-banner{position:sticky;top:0;z-index:60;background:linear-gradient(180deg,#D6BA8C 0%,#B89D73 100%);;color:#fff;border-bottom:1px solid rgba(255,255,255,.25);text-align:center}
.banner-inner{max-width:1200px;margin:0 auto;padding:8px 22px;display:flex;align-items:center;gap:12px}
.banner-track{display:inline-flex;gap:18px;white-space:nowrap;animation:banner-slide 22s linear infinite}
.promo-banner a{color:#fff;text-decoration:none;font-weight:600}
.promo-banner a:hover{text-decoration:underline}
.banner-close{margin-left:8px;background:transparent;border:0;color:#fff;font-size:18px;cursor:pointer}
.lang-switch{margin-left:auto;display:flex;gap:6px}
.lang-btn{font:inherit;padding:6px 10px;border-radius:999px;border:1px solid rgba(255,255,255,.5);background:transparent;color:#fff;cursor:pointer}
.lang-btn:hover{background:rgba(255,255,255,.15)}
@keyframes banner-slide{0%{transform:translateX(0%)}100%{transform:translateX(-50%)}}

/* Remove circle/badge behind the logo and enlarge spacing */
.brand .logo{
  border-radius:0 !important;
  background:none !important;
  box-shadow:none !important;
}
.brand{ gap:14px; }

/* === Product gallery (modal) === */
.modal-media{ display:flex; flex-direction:column; gap:10px; }
.modal-media #mImg{ width:100%; height:auto; border-radius:12px; object-fit:cover; background:var(--panel-2); }
.thumbs{ display:flex; gap:8px; flex-wrap:wrap; }
.thumbs button{
  width:70px; height:70px; padding:0; border:1px solid var(--line); border-radius:8px; background:#fff; cursor:pointer;
}
.thumbs img{ width:100%; height:100%; object-fit:cover; border-radius:8px; display:block; }
.thumbs button.active{ outline:2px solid var(--accent); }

/* Stable card media height */
.card .media{ aspect-ratio: 4/3; background: var(--panel-2); display:block; overflow:hidden; }
.card .media img{ width:100%; height:100%; object-fit:cover; display:block; }

/* ===== HERO FULL-WIDTH (≈4in) ===== */
/* SUBIR TEXTO EN HERO (full-width) */
.hero-banner{
  position: relative;
  width: 100%;
  height: 384px;
  margin: 10px 0 24px;
  overflow: hidden;
  border-radius: 16px;
}

.hero-banner .hero-bg{
  position: absolute;
  inset: 0;
}

/* Overlay de textos: título, subtítulo y botón */
.hero-banner .hero-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start !important;  /* queremos empezar desde arriba */
  text-align: center;
  gap: 8px;                                /* menos espacio entre H1 y subtítulo */
  padding: 0 60px;
  padding-top: 5px !important;            /* súbelo/bájalo aquí (35–55px) */
  color: #0f172a;
  text-shadow: 0 1px 2px rgba(255,255,255,.6);
}

/* Subtítulo justo debajo del título, más visible */
.hero-banner .hero-subcopy{
  margin-top: -11px;
  color: #2b2b2b;
  font-size: 1.1rem;
  font-weight: 400;
  text-shadow: 0 0 4px rgba(255,255,255,0.9);
}

/* Ajustes en móvil */
@media (max-width: 768px){
  .hero-banner{
    height: 320px;
  }
  .hero-banner .hero-overlay{
    padding: 0 24px;
    padding-top: 32px !important;
  }
  .hero-banner .hero-subcopy{
    font-size: 1rem;
  }
}

@media (max-width: 800px){
  .hero-banner .hero-overlay{
    padding-top: 40px !important;          /* un poco menos en móvil */
  }
}

/* === Centrar imagen del banner === */
.hero-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 16px;
  max-width: 1200px;   /* igual que el contenido del sitio */
  margin: 0 auto 24px; /* centra horizontalmente */
}

.hero-banner .hero-bg img {
  width: 100%;
  height: 400px;       /* altura aproximada (4 pulgadas) */
  object-fit: cover;
  object-position: center 42%; /* centra la imagen dentro del recorte */
  border-radius: 16px;
}

.drawer.open{ pointer-events:auto; }

/* CTA bajo el hero (centrado y con espacio) */
.hero-cta{
  max-width: 1200px;
  margin: -12px auto 56px;   /* -12px lo acerca al borde inferior del hero */
  padding: 0 20px;
  display: flex;
  justify-content: center;
}

@media (max-width: 640px){
  .hero-cta{ margin: -8px auto 48px; }
}

/* === Fix: product card media sizing & gallery thumbs === */
.card .media{ aspect-ratio: 1 / 1; width: 100%; overflow: hidden; border-radius: 14px; background:#fff; }
.card .media img{ width:100%; height:100%; object-fit: cover; display:block; }

/* Grid defaults: 3 columns on desktop */
.grid.products{ display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:16px; }
@media (max-width: 900px){ .grid.products{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px){ .grid.products{ grid-template-columns: 1fr; } }

/* Modal gallery thumbs */
.modal .thumbs{ display:flex; gap:8px; margin-top:8px; flex-wrap:wrap; }
.modal .thumbs button{ border:1px solid var(--border, #e7e9ec); border-radius:10px; padding:0; overflow:hidden; width:64px; height:64px; cursor:pointer; }
.modal .thumbs button.active{ outline:2px solid var(--link, #0a66c2); }
.modal .thumbs img{ width:100%; height:100%; object-fit: cover; display:block; }

/* Modal básico NUEVO*/
.modal{ position:fixed; inset:0; background:rgba(0,0,0,.4); display:none; z-index:9999; }
.modal.open{ display:block; }
.modal-content{ background:#fff; border-radius:16px; max-width:980px; margin:6vh auto; padding:18px; display:grid; grid-template-columns: 1.1fr 0.9fr; gap:18px; }
@media (max-width:900px){ .modal-content{ grid-template-columns: 1fr; } }
.modal-left img{ width:100%; height:auto; border-radius:12px; border:1px solid #eee; }
.m-thumbs{ display:flex; gap:10px; flex-wrap:wrap; margin-top:10px; }
.m-thumbs .thumb{ border:2px solid transparent; background:#fff; border-radius:12px; padding:4px; cursor:pointer; }
.m-thumbs .thumb.active{ border-color:#0E8F6E; }
.m-thumbs .thumb img{ width:56px; height:56px; object-fit:cover; border-radius:8px; }


/* === Checkout layout polish === */
.checkout-wrap{padding:40px 16px;}
.checkout-grid{max-width:1080px;margin:0 auto;display:grid;grid-template-columns:1fr 400px;gap:28px;}
.checkout-left,.checkout-right{background:#fff;border-radius:16px;box-shadow:0 12px 30px rgba(0,0,0,.06);padding:20px;}
.checkout-left h2,.checkout-right h3{margin:0 0 12px;font-family: 'Cormorant Garamond', serif;}
.checkout-left .form input,.checkout-left .form select{
  width:100%;padding:12px;border:1px solid #e5e7eb;border-radius:10px;margin:6px 0;font:16px/1.2 system-ui, Arial;
}
.checkout-left .row2{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.summary .line{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px dashed #eee;}
.summary .total{display:flex;justify-content:space-between;margin-top:12px;font-weight:600;}
.btn{display:inline-block;padding:10px 16px;border-radius:10px;border:1px solid #0E8F6E;background:#0E8F6E;color:#fff;font-weight:600;text-align:center}
.btn.ghost{background:#fff;color:#111;border-color:#d1d5db}
.btn.danger{background:#1f2937;border-color:#1f2937}
.muted{color:#6b7280;font-size:12px;display:block;margin-top:6px}
#pp-buttons.is-disabled{opacity:.5;pointer-events:none}
@media (max-width:960px){
  .checkout-grid{grid-template-columns:1fr;gap:18px}
}

/* Pills / badges */
.pill { display:inline-block; padding:4px 10px; border-radius:999px; font-size:12px; background:#EFF6F5; color:#0E8F6E; border:1px solid #CDE5DF; }
.pill-new { background:#ECFDF5; color:#047857; border-color:#BBF7D0; }

/* --- Badge "Nuevo" arriba-izquierda sobre la foto --- */
.card .pimg{
  position: relative;        /* clave para posicionar el badge dentro */
}

.card .pimg .pill,
.card .pimg .pill-new{
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: #10B981;       /* verde tipo “emerald” como en tu captura */
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  padding: 6px 12px;
  border-radius: 9999px;     /* burbuja redonda */
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
  pointer-events: none;      /* no bloquea clicks en la imagen */
}

/* =========================
   Tamaños CONSISTENTES
   ========================= */

/* --- Tarjeta de producto: contenedor de imagen con relación fija --- */
.card.product .pimg{
  position: relative;
  /* Elige 4/3 (se ve como tus fotos “mano + anillo”);
     si prefieres cuadrado, cambia a 1/1 */
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
}

/* Imagen siempre llena el contenedor sin deformarse */
.card.product .pimg img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;    /* usa 'contain' si NO quieres recorte */
  display: block;
}

/* Badge “Nuevo” arriba-izquierda (ya lo estás generando desde JS) */
.card.product .pimg .pill-new{
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: #18a05a;           /* mismo verde de tus chips */
  color: #fff;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
  line-height: 1;
}

/* --- Modal: imagen principal con alto uniforme --- */
#productModal .m-img{
  width: 100%;
  max-width: 760px;     /* evita que se dispare demasiado ancha */
  height: 560px;        /* ALTO fijo: todas iguales */
  object-fit: contain;  /* muestra la foto completa sin recorte */
  border-radius: 16px;
  background: #fff;
  display: block;
}

/* Thumbnails del modal consistentes */
#productModal .m-thumbs .thumb{
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
}
#productModal .m-thumbs .thumb.active{ border-color:#18a05a; }
#productModal .m-thumbs .thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* =========================
/* (Opcional) si ya tienes una clase .pill con otros estilos, 
   este bloque asegura que el "Nuevo" mantenga el color y la posición. */
/*.card .pimg .pill-new{
/*  background: #10B981;
/*}


/* Modal thumbs */
.m-thumbs { display:flex; gap:10px; margin-top:10px; flex-wrap:wrap; }
.m-thumbs .thumb { border:2px solid transparent; background:#fff; border-radius:12px; padding:4px; }
.m-thumbs .thumb.active { border-color:#0E8F6E; }
.m-thumbs .thumb img { width:56px; height:56px; object-fit:cover; border-radius:8px; }

/* Evitar cursor bloqueado por estilos previos */
#goCheckout, .btn, .btn.primary { cursor:pointer; }

.filters .btn.active{ background:#0E8F6E; color:#fff; }

/*MENSAJE Y BOTONES DE AGOTADO*/

/* Pill "Agotado" */
.pill-soldout{
  background:#e0e0e0;
  color:#555;
  border-radius:999px;
  padding:2px 10px;
  font-size:0.75rem;
  font-weight:600;
  margin-left:6px;
}

/* Estado deshabilitado sin hacer el botón transparente */
.btn.is-disabled,
.btn[disabled]{
  opacity: 1 !important;      /* nunca se ve lavado */
  cursor: not-allowed;
  pointer-events: none;       /* evita clics cuando realmente quieras bloquear */
}


/* ==== Mensajes de confianza en carrito y checkout ==== */
.checkout-notes{
  margin-top: 10px;
  padding: 10px 12px;
  background: #F5F7F5;
  border-radius: 12px;
  font-size: 0.85rem;
  color: #4B5563;
  line-height: 1.4;
}

.checkout-notes p{
  margin: 2px 0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.checkout-notes p span.icon{
  font-size: 1rem;
  line-height: 1;
}

/* versión compacta dentro del drawer del carrito */
.drawer .checkout-notes{
  margin-top: 8px;
  font-size: 0.8rem;
}

/* ==== Mensajes de confianza en carrito y checkout ==== */
.checkout-notes{
  margin-top: 10px;
  padding: 10px 12px;
  background: #F5F7F5;
  border-radius: 12px;
  font-size: 0.85rem;
  color: #4B5563;
  line-height: 1.4;
}

.checkout-notes p{
  margin: 2px 0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.checkout-notes p span.icon{
  font-size: 1rem;
  line-height: 1;
}

/* versión compacta dentro del drawer del carrito */
.drawer .checkout-notes{
  margin-top: 8px;
  font-size: 0.8rem;
}

/* ==== Barra de pasos en checkout ==== */
.checkout-steps{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  margin: 14px 0 18px;
  font-size:0.85rem;
  flex-wrap:wrap;
}

.checkout-steps .step{
  position:relative;
  padding:6px 12px;
  border-radius:999px;
  background:#F3F4F6;
  color:#6B7280;
  font-weight:500;
}

.checkout-steps .step.current{
  background:#0E8F6E;
  color:#ffffff;
}

.checkout-steps .step.done{
  background:#DCFCE7;
  color:#166534;
}

.checkout-steps .step + .step::before{
  content:"→";
  position:absolute;
  left:-16px;
  top:50%;
  transform:translateY(-50%);
  font-size:0.7rem;
  color:#9CA3AF;
}

/* Ajuste móvil SOLO para los pasos */
@media (max-width: 640px){
  .checkout-steps{
    font-size:0.8rem;
    gap:6px;
  }
}

/* === Checkout layout polish (scoped) === */
.checkout-wrap{
  padding:40px 16px;
}

.checkout-grid{
  max-width:1080px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr 400px;
  gap:28px;
}

.checkout-left,
.checkout-right{
  background:#fff;
  border-radius:16px;
  box-shadow:0 12px 30px rgba(0,0,0,.06);
  padding:20px;
}

.checkout-left h2,
.checkout-right h3{
  margin:0 0 12px;
  font-family: 'Cormorant Garamond', serif;
}

.checkout-left .form input,
.checkout-left .form select{
  width:100%;
  padding:12px;
  border:1px solid #e5e7eb;
  border-radius:10px;
  margin:6px 0;
  font:16px/1.2 system-ui, Arial;
}

.checkout-left .row2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.summary .line{
  display:flex;
  justify-content:space-between;
  padding:8px 0;
  border-bottom:1px dashed #eee;
}

.summary .total{
  display:flex;
  justify-content:space-between;
  margin-top:12px;
  font-weight:600;
}

/* Botones SOLO dentro del checkout */
.checkout-wrap .btn{
  display:inline-block;
  padding:10px 16px;
  border-radius:10px;
  border:1px solid #0E8F6E;
  background:#0E8F6E;
  color:#fff;
  font-weight:600;
  text-align:center;
}

.checkout-wrap .btn.ghost{
  background:#fff;
  color:#111;
  border-color:#d1d5db;
}

.checkout-wrap .btn.danger{
  background:#1f2937;
  border-color:#1f2937;
}

.checkout-wrap .muted{
  color:#6b7280;
  font-size:12px;
  display:block;
  margin-top:6px;
}

#pp-buttons.is-disabled{
  opacity:.5;
  pointer-events:none;
}

@media (max-width:960px){
  .checkout-grid{
    grid-template-columns:1fr;
    gap:18px;
  }
}

/* Pills / badges extra */
.pill-soldout{
  background:#e0e0e0;
  color:#555;
  border-radius:999px;
  padding:2px 10px;
  font-size:0.75rem;
  font-weight:600;
  margin-left:6px;
}

.btn.is-disabled[disabled],
.btn[disabled]{
  opacity:0.5;
  cursor:not-allowed;
  pointer-events:none;
}

/* ================= HEADER MÓVIL (logo + botones) ================= */
@media (max-width: 768px){

  /* Empaque más compacto y ordenado en móvil */
  .topbar .wrap{
    padding: 10px 14px;
    flex-wrap: wrap;
    align-items: flex-start;
    row-gap: 8px;
  }

  /* Marca (logo + texto) ocupa la fila superior */
  .topbar .brand{
    flex: 1 0 60%;
  }

  /* Logo más pequeño para que no se corte */
  .topbar .logo{
    width: 52px;
    height: auto;
  }

  /* Iconos a la derecha en la misma fila */
  #accountBtn,
  #openCartBtn{
    margin-left: 4px;
  }
}

/* ===== SECCIÓN "NOVEDADES Y FAVORITOS" + CATEGORÍAS TIENDA – MÓVIL ===== */
@media (max-width: 768px){

  /* Título centrado arriba de las categorías (inicio y tienda) */
  .section-title{
    max-width: 1200px;
    margin: 24px auto 12px;
    padding: 0 16px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .section-title h2{
    margin-bottom: 8px;
  }

  /* Píldoras de categorías en 2 columnas (inicio + tienda) */
  .section-title .filters{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .section-title .filters .btn{
    flex: 0 1 calc(50% - 10px);   /* dos columnas en móvil */
    text-align: center;
    padding: 8px 10px;
    font-size: 0.9rem;
    border-radius: 999px;
  }
}

/* ===== TESTIMONIOS ===== */
.testimonials{
  padding: 56px 16px 64px;
  background: #FAFAF8;
}

.testimonials-inner{
  max-width: 1100px;
  margin: 0 auto;
}

.testimonials-title{
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 8px;
}

.testimonials-sub{
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 0.98rem;
  color: #4b5563;
}

.testimonials-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.t-card{
  background: #ffffff;
  border-radius: 18px;
  padding: 20px 20px 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.t-quote{
  font-size: 0.98rem;
  line-height: 1.5;
  color: #374151;
  margin-bottom: 16px;
}

.t-meta{
  font-size: 0.85rem;
  color: #6b7280;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.t-name{
  font-weight: 600;
  color: #111827;
}

.t-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #0E8F6E;
  color: #ffffff;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Responsive testimonios */
@media (max-width: 900px){
  .testimonials-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px){
  .testimonials{
    padding: 40px 16px 48px;
  }
  .testimonials-grid{
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===== TESTIMONIOS MINI (ABOUT) ===== */
.testimonials-mini{
  padding: 40px 16px 48px;
  background: #FAFAF8;
}

.tmini-inner{
  max-width: 900px;
  margin: 0 auto;
}

.tmini-title{
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem;
  margin-bottom: 20px;
}

.tmini-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tmini-card{
  background: #fff;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,.05);
  border: 1px solid #e5e7eb;
}

.tmini-quote{
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.45;
  margin-bottom: 12px;
}

.tmini-name{
  font-size: 0.85rem;
  font-weight: 600;
  color: #0E8F6E;
}

/* Responsive */
@media (max-width: 900px){
  .tmini-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

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



/* ===== HEADER + MENÚ EN MÓVIL (<=768px) ===== */
@media (max-width: 768px){

  /* Contenedor del header: dos filas (brand+iconos arriba, menú abajo) */
  .topbar .wrap{
    padding: 10px 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 8px;
  }

  /* Quitamos el spacer en móvil */
  .topbar .spacer{
    display: none;
  }

  /* BRAND (logo + texto) a la izquierda en la primera fila */
  .topbar .brand{
    flex: 0 1 auto;
    margin-right: auto;          /* empuja los iconos hacia la derecha */
  }

  /* Logo un poco más compacto para que no provoque saltos de línea */
  .topbar .logo{
    width: 52px;
    height: auto;
  }

  /* ICONOS: cuenta + carrito, juntos en la esquina derecha */
  #accountBtn,
  #openCartBtn{
    order: 2;                    /* van en la primera fila, después de la brand */
    flex: 0 0 auto;
    padding: 6px 8px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 999px;
    gap: 4px;
  }

  /* Cuenta a la izquierda, carrito a la derecha (más pegado al borde) */
  #accountBtn{
    margin-left: 0;
  }
  #openCartBtn{
    margin-left: 6px;
  }

  /* Contador del carrito más compacto */
  #openCartBtn .cart-count{
    padding: 0 6px;
    font-size: 11px;
  }

  /* MENÚ: segunda fila, ocupa todo el ancho */
  .topbar .main-nav{
    order: 3;
    width: 100%;
    margin-top: 4px;

    display: flex;
    justify-content: space-between;
    padding: 4px 4px;
    gap: 2px;
    overflow-x: hidden;
  }

  .topbar .main-nav a{
    flex: 1 1 auto;
    padding: 6px 4px;
    font-size: 0.82rem;
    text-align: center;
    white-space: nowrap;
  }

  /* Ajuste especial para los enlaces más largos */
  .topbar .main-nav a:nth-child(4),
  .topbar .main-nav a:nth-child(5){
    font-size: 0.78rem;
  }

  /* SECCIÓN "Novedades y favoritos" + filtros en 2 columnas */
  .section-title{
    text-align: center;
    align-items: center;
  }
  .section-title h2{
    margin-bottom: 8px;
  }
  .section-title .filters{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  .section-title .filters .btn{
    flex: 0 1 calc(50% - 10px);
    text-align: center;
    padding: 8px 10px;
    font-size: 0.9rem;
  }
}

/* === Parche miniaturas global (index + shop) === */
.thumb::before,
.thumb::after{
  content:none !important;
}
.thumb{
  font-size:0;
  line-height:0;
}
.thumb img{
  display:block;
  width:64px;
  height:64px;
  object-fit:cover;
}
/* Reducir espacio entre catálogo y testimonios en DESKTOP y MÓVIL */
#catalogo {
  margin-bottom: 20px !important;   /* antes estaba aprox. en 90–120px */
}

/* Sección de testimonios */
.testimonials-section {
  margin-top: 20px !important;     /* antes 60–80px */
}

/* Opcional: si quieres aún más compacto (modo elegante) */
@media (max-width: 768px){
  #catalogo {
    margin-bottom: 28px !important;
  }
  .testimonials-section {
    margin-top: 14px !important;
  }
}

/* ===== MODAL PRODUCTO – TAMAÑO MÁS PEQUEÑO EN MÓVIL / PEGAR ARRIBA DE AQUI ===== */
@media (max-width: 768px) {

  /* Caja del modal más pequeña y centrada */
  #productModal .modal-content{
    width: 90vw;          /* más angosto que la pantalla */
    max-height: 100vh;     /* no llega al borde inferior */
    margin: 20px auto;    /* separación arriba/abajo */
    padding: 12px 12px 16px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
  }

  /* Columna de la imagen */
  #productModal .modal-left{
    flex: 0 0 auto;
    margin-bottom: 10px;
  }

  #productModal .modal-left .m-img{
    width: 100%;
    height: auto;
    max-height: 40vh;     /* FOTO más bajita → deja espacio para el texto y botones */
    object-fit: contain;
    display: block;
  }

  /* Parte de texto + botones: puede hacer scroll si hace falta */
  #productModal .modal-right{
    flex: 1 1 auto;
    overflow-y: auto;
    padding-bottom: 8px;
  }

  /* Thumbs un poco pegadas a la foto */
  #productModal .m-thumbs{
    margin-top: 6px;
  }
}

/* ===== MODAL PRODUCTO – MINIATURAS VERTICALES DENTRO DE LA FOTO (SOLO MÓVIL) ===== */
@media (max-width: 768px) {
  /* El contenedor izquierdo del modal será el "marco" de la foto */
  #productModal .modal-left{
    position: relative;
    padding-left: 72px;         /* espacio para la columna de thumbs */
  }

  /* Strip vertical de miniaturas flotando dentro de la imagen */
  #productModal .m-thumbs{
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(255,255,255,0.92);  /* fondo blanco semitransparente */
    padding: 6px 4px;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  }

  /* Cada thumb: cuadrito pequeño */
  #productModal .m-thumbs .thumb{
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    background: #fff;
  }

  #productModal .m-thumbs .thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* Thumb activa en verde MVC */
  #productModal .m-thumbs .thumb.active{
    border-color: #0E8F6E;
  }
}

/* ==== Product modal redesign ==== */
#productModal{
  backdrop-filter: blur(8px);
}

#productModal.modal{
  background: rgba(12, 20, 28, .62);
}

#productModal .modal-content{
  width: min(1120px, calc(100vw - 32px));
  margin: 4vh auto;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(219, 210, 193, .9);
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,247,240,.98)),
    linear-gradient(135deg, rgba(14,143,110,.06), rgba(214,168,87,.05));
  box-shadow: 0 28px 80px rgba(12, 20, 28, .32);
  gap: 22px;
}

#productModal .modal-left{
  display: grid;
  gap: 12px;
  align-content: start;
}

#productModal .m-media-frame{
  position: relative;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(219, 210, 193, .92);
  background: linear-gradient(180deg, #ffffff, #f7f4ee);
  box-shadow: 0 18px 34px rgba(12, 20, 28, .08);
}

#productModal .m-media-kicker{
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(14,143,110,.15);
  color: #0B6B54;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#productModal .m-img{
  max-width: none;
  height: min(62vh, 620px);
  border-radius: 18px;
  border: none;
  background: radial-gradient(circle at top, rgba(255,255,255,.95), #f3efe7);
}

#productModal .m-thumbs{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 10px;
  margin-top: 0;
}

#productModal .m-thumbs .thumb{
  width: 100%;
  height: 76px;
  padding: 4px;
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(219, 210, 193, .88);
  box-shadow: 0 10px 18px rgba(12, 20, 28, .05);
}

#productModal .m-thumbs .thumb.active{
  border-color: #0E8F6E;
  box-shadow: 0 0 0 2px rgba(14,143,110,.12);
}

#productModal .modal-right{
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 8px 4px 8px 0;
}

#productModal .m-kicker-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#productModal .m-kicker{
  color: #0B6B54;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

#productModal .m-sku-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #F8FBFA;
  border: 1px solid rgba(14,143,110,.14);
  color: #30524A;
  font-size: .82rem;
  font-weight: 700;
}

#productModal .m-name{
  margin: 0;
  font-size: clamp(2rem, 2.1vw, 2.9rem);
  line-height: 1;
  color: #122033;
}

#productModal .m-price{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
  color: #102338;
  font-size: 1.9rem;
  font-weight: 800;
}

#productModal .m-price::after{
  content: "Pago protegido";
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(214,168,87,.28);
  color: #8D6424;
  font-size: .8rem;
  font-weight: 700;
}

#productModal .m-badges{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

#productModal .m-desc{
  color: #465565;
  font-size: .98rem;
  line-height: 1.8;
}

#productModal .m-value-strip{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

#productModal .m-value-card{
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(219, 210, 193, .82);
  background: linear-gradient(180deg, #ffffff, #faf6ef);
  box-shadow: 0 10px 18px rgba(12, 20, 28, .04);
}

#productModal .m-value-card strong{
  display: block;
  margin-bottom: 4px;
  color: #122033;
  font-size: .92rem;
}

#productModal .m-value-card span{
  display: block;
  color: #6B7482;
  font-size: .82rem;
  line-height: 1.55;
}

#productModal .m-section{
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(219, 210, 193, .84);
  background: rgba(255,255,255,.88);
}

#productModal .m-section-title{
  margin-bottom: 12px;
  color: #122033;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .03em;
}

#productModal .m-bullets{
  margin: 0;
}

#productModal .m-bullets ul{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

#productModal .m-bullets li{
  position: relative;
  padding: 12px 14px 12px 42px;
  border-radius: 16px;
  background: #F8FBFA;
  border: 1px solid rgba(14,143,110,.10);
  color: #3D4E5E;
  line-height: 1.6;
}

#productModal .m-bullets li::before{
  content: "✓";
  position: absolute;
  left: 14px;
  top: 11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(14,143,110,.12);
  color: #0B6B54;
  font-weight: 800;
  font-size: .84rem;
}

#productModal .m-size-wrapper{
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(219, 210, 193, .84);
  background: #FBF8F3;
}

#productModal .m-size-wrapper select{
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #ddd6c9;
  background: #fff;
  font: inherit;
}

#productModal .qty-ctrl{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid rgba(219, 210, 193, .84);
  background: #fff;
  width: fit-content;
}

#productModal .qty-ctrl #mQty{
  width: 72px !important;
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 1rem;
}

#productModal .m-actions{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px !important;
}

#productModal #mBuy{
  grid-column: 1 / -1;
}

#productModal .m-assurance{
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(219, 210, 193, .82);
  background: linear-gradient(180deg, #ffffff, #faf7f1);
}

#productModal .m-assurance p{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 8px;
  color: #526171;
  font-size: .9rem;
  line-height: 1.6;
}

#productModal .m-assurance p:last-child{
  margin-bottom: 0;
}

@media (max-width: 980px){
  #productModal .modal-content{
    width: min(96vw, 960px);
    grid-template-columns: 1fr;
  }

  #productModal .m-value-strip{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px){
  #productModal .modal-content{
    margin: 12px auto;
    padding: 14px;
    border-radius: 22px;
  }

  #productModal .modal-left{
    padding-left: 0;
  }

  #productModal .m-media-frame{
    padding: 14px;
  }

  #productModal .m-img{
    height: min(44vh, 420px);
  }

  #productModal .m-thumbs{
    grid-template-columns: repeat(4, minmax(0, 1fr));
    position: static;
    transform: none;
  }

  #productModal .m-thumbs .thumb{
    width: 100%;
    height: 58px;
  }

  #productModal .m-actions{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px){
  .modal-left .m-thumbs {
    border-radius: 12px;
    box-shadow:
      0 0 0 2px rgba(14,143,110,0.25), /* borde interno suave */
      0 4px 12px rgba(0,0,0,0.10);     /* sombra externa */
  }
}

/* === FABs: carrito flotante + subir === */
.floating-ui{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: auto;  /* los hijos sí pueden click */
}

.fab{
  pointer-events: auto;
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

/* Carrito: verde MVC */
.fab-cart{
  background-color: #0E8F6E;
  color: #fff;
}

/* Contador del carrito dentro del FAB */
.fab-cart #cartCountFab{
  display: inline-block;
  min-width: 20px;
  text-align: center;
  margin-left: 4px;
}

/* Botón "Subir" más discreto */
.fab-top{
  background-color: #ffffff;
  color: #444;
}

/* Efecto hover */
.fab:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.22);
}

/* En pantallas muy pequeñas, hacerlos un pelín más chicos */
@media (max-width: 480px){
  .fab{
    padding: 8px 11px;
    font-size: 0.85rem;
  }
}

/* En pantallas grandes, si quieres puedes ocultar el botón "Subir" o ambos
   (si prefieres dejar solo el header en desktop) */
@media (min-width: 1024px){
  .fab-top{
    opacity: 0.7;
  }
}

/* ============================
   FIX: Botón "Pagar Ahora" en el DRAWER
   (index.html + shop.html)
   ============================ */
#drawer #goCheckout {
  background: #FFC439 !important;
  border-color: #FFC439 !important;
  color: #111 !important;
}

/* ============================
   FIX: Botón "Ver catálogo completo" bajo el hero
   ============================ */
.hero-cta .btn,
.hero-cta .btn-cta {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(14,143,110,.25) !important;
}

/* ============================================
   FIX: CONTACTO – versión móvil y desktop limpio
   ============================================ */
.hero-card form.newsletter {
  display: flex;
  flex-direction: row;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-card form.newsletter input {
  flex: 1 1 100%;
  min-width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 1rem;
}

/* Botón "Send" */
.hero-card form.newsletter button {
  flex: 1 1 100%;
  width: 100%;
  justify-content: center;
}

/* Botón WhatsApp */
#contactWhatsApp {
  width: 100%;
  text-align: center;
  margin-bottom: 12px;
}

/* Mobile: todo perfectamente en columna */
@media (max-width: 768px){
  .hero-card form.newsletter {
    flex-direction: column;
  }

  .hero-card form.newsletter input,
  .hero-card form.newsletter button {
    width: 100%;
    min-width: 100%;
  }

  #contactWhatsApp {
    font-size: 1rem;
    padding: 12px;
  }
}

.mvc-seal {
    margin-top: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 1.05rem;
    background: #f7f7f7;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

/* =========================================================
   FIX DEFINITIVO: BOTONES DE ACCIONES (VER/COMPARTIR/AGREGAR)
   - Móvil y Desktop: VER + COMPARTIR arriba, AGREGAR abajo
   - Forzado con !important para que no se vuelva vertical
   ========================================================= */

/* Cubre casos donde JS no pone .card.product a tiempo */
.pact,
.card .pact,
.card.product .pact{
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  grid-template-areas:
    "view share"
    "add  add" !important;
  gap: 10px !important;
  margin-top: 10px !important;
  padding: 0 !important;

  /* por si alguna regla lo vuelve flex */
  flex-direction: unset !important;
  align-items: center !important;
}

/* Botones o links dentro de .pact (por si usas <a> en vez de <button>) */
.pact button,
.pact a,
.card .pact button,
.card .pact a{
  width: 100% !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Asignación por áreas (NO depende del orden del HTML) */
.pact [data-action="view"]{  grid-area: view !important; }
.pact [data-action="share"]{ grid-area: share !important; }
.pact [data-action="add"],
.pact [data-action="sold"]{  grid-area: add !important; }

/* Evita que alguna regla antigua ponga "share" en fila completa */
.pact [data-action="share"]{
  grid-column: auto !important;
}

/* TAMAÑOS: MÓVIL */
@media (max-width: 640px){
  .pact button, .pact a{
    min-height: 38px !important;
    font-size: 13px !important;
    padding: 10px 14px !important;
  }
}

/* TAMAÑOS: DESKTOP (premium) */
@media (min-width: 768px){
  .pact [data-action="view"],
  .pact [data-action="share"]{
    min-height: 32px !important;
    padding: 5px 12px !important;
    font-size: 12px !important;
  }
  .pact [data-action="add"],
  .pact [data-action="sold"]{
    min-height: 38px !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
  }
}

/* =====================================================
   SHOP – ajuste fino del HERO
   - mueve imagen completa
   - libera un poco el recorte inferior
   ===================================================== */

.page-shop .hero-banner{
  height: 400px;          /* ⬅️ AUMENTA un poco la altura (antes ~360) */
  overflow: hidden;
}

.page-shop .hero-banner .hero-bg img{
  width: 100%;
  height: 400px;
  object-fit: cover;

  /* 1️⃣ mover imagen completa (YA LO TENÍAS) */
  transform: translateY(1px);

  /* 2️⃣ transición suave (opcional, se ve pro) */
  transition: transform .2s ease;
}

/* =========================
   MOBILE (<=768px): header iconos compactos, 1 fila, sin huecos
   + carrito más grande y contador tipo badge (no empuja el icono)
   ========================= */
@media (max-width: 768px) {

  /* Contenedor derecho / acciones */
  .header-actions,
  .header-right,
  .nav-actions,
  .header-actions-right,
  .actions-right,
  .right-actions,
  .header-icons{
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
  }

  /* Evita hijos "flex:1", márgenes/paddings raros */
  .header-actions > *,
  .header-right > *,
  .nav-actions > *,
  .header-actions-right > *,
  .actions-right > *,
  .right-actions > *,
  .header-icons > *{
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Redes */
  .social-links{
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
  }

  /* Botones redondos (cuenta, redes, carrito) */
  .icon-btn,
  .social-btn,
  .account-btn,
  #openCartBtn{
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    gap: 0 !important; /* evita que el contador/espacios reduzcan visualmente el icono */
  }

  /* Tamaño base de iconos (Instagram/TikTok/Cuenta) */
  .icon-btn svg,
  .social-btn svg{
    width: 20px !important;
    height: 20px !important;
    display: block !important;
  }

  /* Carrito: icono más grande (sin salirse del círculo) */
  #openCartBtn svg{
    width: 26px !important;
    height: 26px !important;
    transform: scale(1.18) !important;
    transform-origin: center !important;
  }

  /* Contador del carrito: badge arriba-derecha (NO empuja el icono) */
  #cartCount,
  #openCartBtn .cart-count{
    position: absolute !important;
    top: 4px !important;
    right: 4px !important;
    margin: 0 !important;

    font-size: 11px !important;
    min-width: 16px !important;
    height: 16px !important;
    line-height: 16px !important;
    padding: 0 4px !important;
    border-radius: 999px !important;
  }

  /* Quitar separadores invisibles en mobile */
  .spacer,
  .flex-spacer,
  .header-spacer{
    display: none !important;
  }
}

/* ==== Modal desktop fix + premium catalog cards ==== */
@media (min-width: 769px){
  #productModal .modal-content{
    grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr);
    max-height: calc(100vh - 34px);
    overflow-y: auto;
    align-items: start;
  }

  #productModal .modal-left{
    gap: 10px;
  }

  #productModal .m-media-frame{
    padding: 16px;
  }

  #productModal .m-img{
    height: min(50vh, 500px);
  }

  #productModal .m-thumbs{
    grid-template-columns: repeat(auto-fit, minmax(76px, 88px));
    justify-content: start;
  }
}

.grid.products,
#catalogo.grid{
  gap: 22px;
}

.card.product{
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 14px;
  border-radius: 24px;
  border: 1px solid rgba(219, 210, 193, .92);
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(249,246,240,.98)),
    linear-gradient(135deg, rgba(14,143,110,.05), rgba(214,168,87,.04));
  box-shadow: 0 18px 34px rgba(12, 20, 28, .08);
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease;
}

.card.product:hover{
  transform: translateY(-6px);
  border-color: rgba(14,143,110,.24);
  box-shadow: 0 26px 50px rgba(12, 20, 28, .12);
  background:
    linear-gradient(180deg, rgba(255,255,255,1), rgba(249,246,240,1)),
    linear-gradient(135deg, rgba(14,143,110,.06), rgba(214,168,87,.06));
}

.card.product .pimg{
  isolation: isolate;
  margin-bottom: 14px;
  border-radius: 20px;
  border: 1px solid rgba(219, 210, 193, .88);
  background:
    radial-gradient(circle at top, rgba(255,255,255,.98), #f2eee6 74%),
    linear-gradient(180deg, rgba(14,143,110,.05), rgba(214,168,87,.04));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 16px 28px rgba(12, 20, 28, .08);
}

.card.product .pimg::after{
  content: "";
  position: absolute;
  inset: auto 18px 12px 18px;
  height: 24px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(18,32,51,.16), rgba(18,32,51,0));
  filter: blur(10px);
  opacity: .42;
  z-index: 0;
  pointer-events: none;
}

.card.product .pimg img{
  z-index: 1;
  transition: transform .3s ease, filter .3s ease;
}

.card.product:hover .pimg img{
  transform: scale(1.03);
  filter: saturate(1.04);
}

.card.product .ptit{
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}

.card.product .ptit strong{
  display: block;
  color: #142236;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.08;
}

.card.product .price{
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fdf8ed, #f6eddc);
  border: 1px solid rgba(214,168,87,.35);
  color: #8a6322;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .01em;
}

.card.product .psub{
  color: #5f6e6a;
  font-size: .9rem;
  line-height: 1.55;
  min-height: 2.8em;
}

.card.product .sku{
  margin-top: 4px;
  color: #7a8782;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.card.product .pact{
  margin-top: auto !important;
  padding-top: 12px !important;
}

.card.product .pill-soldout{
  top: 12px;
  right: 12px;
  left: auto;
  background: rgba(17, 24, 39, .82);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 10px 20px rgba(12, 20, 28, .16);
}

@media (max-width: 768px){
  .card.product{
    padding: 12px;
    border-radius: 20px;
  }

  .card.product .ptit strong{
    font-size: 1.16rem;
  }

  .card.product .psub{
    min-height: auto;
  }
}
