/* ══════════════════════════════════════════════════════════════
   BELLEZA ETERNA — Design System
   Paleta: Blanco clínico + Azul La Roche-Posay + Gris suave
══════════════════════════════════════════════════════════════ */

:root {
  /* Colores principales */
  --blue:        #0057a8;
  --blue-dark:   #003f7d;
  --blue-light:  #e8f2fc;
  --blue-mid:    #d0e8f8;
  --white:       #ffffff;
  --off-white:   #f8fafc;
  --surface:     #f2f7fc;
  --ink:         #0a0e14;
  --ink-soft:    #4a5568;
  --ink-ghost:   #94a3b8;
  --border:      #dde6f0;
  --border-dark: #b0c4d8;

  /* Feedback */
  --green:       #1a9e5c;
  --green-bg:    #edfaf3;
  --red:         #c0392b;
  --red-bg:      #fdf0ef;
  --gold:        #d4a017;
  --gold-bg:     #fef9ec;

  /* Tipografía */
  --font-serif:  'DM Serif Display', Georgia, serif;
  --font-sans:   'DM Sans', -apple-system, sans-serif;

  /* Espaciado */
  --radius-sm:   8px;
  --radius:      12px;
  --radius-lg:   20px;
  --radius-xl:   28px;

  /* Sombras */
  --shadow-xs:   0 1px 3px rgba(0,87,168,.06);
  --shadow-sm:   0 2px 8px rgba(0,87,168,.08);
  --shadow-md:   0 4px 20px rgba(0,87,168,.10);
  --shadow-lg:   0 12px 40px rgba(0,87,168,.14);

  /* Layout */
  --container:   1200px;
  --header-h:    130px;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body { font-family: var(--font-sans); background: var(--off-white); color: var(--ink); line-height: 1.6; font-size: 15px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }
svg { display: block; }

/* ── Contenedor ── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ══════════════════════════════════════════════
   ANNOUNCE BAR
══════════════════════════════════════════════ */
.announce-bar {
  background: #1e2329;;
  color: white;
  padding: 9px 20px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .02em;
}
.announce-inner { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.announce-sep { opacity: .4; }

/* ══════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 20px;
  height: 70px; display: flex; align-items: center; gap: 20px;
}

/* Logo */
.site-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark { flex-shrink: 0; }
.logo-text { line-height: 1; }
.logo-brand { display: block; font-family: var(--font-serif); font-size: 18px; color: var(--ink); }
.logo-sub { display: block; font-size: 10px; color: var(--ink-ghost); letter-spacing: .1em; text-transform: uppercase; margin-top: 2px; }

/* Search */
.header-search {
  flex: 1; max-width: 480px; display: flex;
  border: 1.5px solid var(--border); border-radius: 30px;
  overflow: hidden; transition: border-color .2s, box-shadow .2s;
  background: var(--surface);
}
.header-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,87,168,.1); }
.header-search input {
  flex: 1; padding: 10px 16px; border: none; background: transparent;
  font-size: 14px; color: var(--ink); outline: none;
}
.header-search button {
  padding: 0 16px; border: none; background: transparent; cursor: pointer; color: var(--ink-ghost);
  transition: color .2s;
}
.header-search button:hover { color: var(--blue); }

/* Actions */
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.cart-btn {
  position: relative; width: 42px; height: 42px; display: flex;
  align-items: center; justify-content: center; border-radius: 50%;
  border: 1.5px solid var(--border); transition: all .2s; color: var(--ink);
}
.cart-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px;
  background: var(--blue); color: white; font-size: 10px; font-weight: 700;
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
  padding: 0 4px; border: 2px solid white;
}
.cart-count:empty, .cart-count[data-count="0"] { display: none; }

/* Mobile menu btn */
.mobile-menu-btn {
  display: none; flex-direction: column; gap: 5px;
  width: 36px; height: 36px; padding: 8px 7px;
  border: none; background: transparent; cursor: pointer;
}
.mobile-menu-btn span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: all .3s; }
.mobile-menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Main Nav ── */
.main-nav {
  border-top: 1px solid var(--border);
  background: var(--white);
}
.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 4px; height: 44px;
}
.nav-link {
  padding: 6px 14px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  border: none; background: transparent; cursor: pointer;
  transition: color .2s, background .2s; display: flex; align-items: center; gap: 5px;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--blue); background: var(--blue-light); }
.nav-link.nav-featured { color: var(--blue); font-weight: 600; }
.nav-dropdown { position: relative; }
.dropdown-panel {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px; z-index: 800;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all .2s ease; pointer-events: none;
}
.nav-dropdown:hover .dropdown-panel,
.nav-dropdown-btn[aria-expanded="true"] + .dropdown-panel {
  opacity: 1; visibility: visible; transform: translateY(0); pointer-events: all;
}
.dropdown-item {
  display: block; padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: 13.5px; color: var(--ink-soft); transition: all .15s;
}
.dropdown-item:hover { background: var(--blue-light); color: var(--blue); }
.dropdown-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.dropdown-brand-logo { height: 24px; width: auto; object-fit: contain; }
.dropdown-brand-name { font-size: 13px; font-weight: 600; }

/* Mobile search */
.mobile-search {
  display: none; padding: 8px 16px 10px;
  border-top: 1px solid var(--border);
}
.mobile-search input {
  width: 100%; padding: 9px 14px; border: 1.5px solid var(--border);
  border-radius: 30px; font-size: 14px; outline: none;
}
.mobile-search button { display: none; }

/* ══════════════════════════════════════════════
   CART DRAWER
══════════════════════════════════════════════ */
.cart-drawer { position: fixed; inset: 0; z-index: 1000; pointer-events: none; }
.cart-drawer.open { pointer-events: all; }
.cart-drawer-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.4); opacity: 0; transition: opacity .3s; }
.cart-drawer.open .cart-drawer-overlay { opacity: 1; }
.cart-drawer-panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(420px, 100vw);
  background: var(--white); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-lg);
}
.cart-drawer.open .cart-drawer-panel { transform: translateX(0); }
.cart-drawer-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.cart-drawer-header h3 { font-family: var(--font-serif); font-size: 22px; }
.cart-drawer-header button { width: 36px; height: 36px; border: none; background: var(--surface); border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cart-drawer-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-drawer-footer { padding: 20px 24px; border-top: 1px solid var(--border); }
.cart-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: none; }
.cart-item-img { width: 64px; height: 64px; object-fit: contain; border-radius: var(--radius-sm); border: 1px solid var(--border); flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.cart-item-price { font-size: 14px; font-weight: 700; color: var(--blue); }
.cart-item-qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty-btn { width: 26px; height: 26px; border: 1px solid var(--border); border-radius: 6px; background: white; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: all .15s; }
.qty-btn:hover { border-color: var(--blue); color: var(--blue); }
.qty-val { font-size: 14px; font-weight: 600; min-width: 20px; text-align: center; }
.cart-item-remove { background: none; border: none; cursor: pointer; color: var(--ink-ghost); padding: 4px; }
.cart-item-remove:hover { color: var(--red); }

/* ══════════════════════════════════════════════
   HERO — HOME
══════════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, #001f4d 0%, var(--blue-dark) 40%, var(--blue) 100%);
  color: white; padding: 80px 20px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { max-width: var(--container); margin: 0 auto; position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 20px; }
.hero h1 { font-family: var(--font-serif); font-size: clamp(36px, 5vw, 58px); line-height: 1.15; margin-bottom: 20px; }
.hero h1 span { color: #7ec8f4; }
.hero-desc { font-size: 17px; opacity: .85; line-height: 1.7; margin-bottom: 32px; max-width: 480px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 28px; border-radius: 30px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all .22s ease; border: 2px solid transparent; text-decoration: none; white-space: nowrap; }
.btn-primary { background: white; color: var(--blue); }
.btn-primary:hover { background: var(--blue-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.btn-outline { background: transparent; color: white; border-color: rgba(255,255,255,.5); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: white; }
.btn-blue { background: var(--blue); color: white; }
.btn-blue:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-blue-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-blue-outline:hover { background: var(--blue-light); }
.btn-sm { padding: 9px 20px; font-size: 13.5px; }
.btn-full { width: 100%; }
.hero-trust { display: flex; gap: 20px; margin-top: 28px; flex-wrap: wrap; }
.hero-trust-item { display: flex; align-items: center; gap: 7px; font-size: 12.5px; opacity: .75; }
.hero-img { display: flex; align-items: center; justify-content: center; }
.hero-img img { max-height: 380px; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(0,0,0,.3)); }

/* ══════════════════════════════════════════════
   SECCIONES GENERALES
══════════════════════════════════════════════ */
.section { padding: 64px 20px; }
.section-sm { padding: 40px 20px; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-family: var(--font-serif); font-size: clamp(28px, 4vw, 40px); color: var(--ink); margin-bottom: 10px; }
.section-header p { font-size: 16px; color: var(--ink-soft); max-width: 540px; margin: 0 auto; }
.section-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.section-header-row h2 { font-family: var(--font-serif); font-size: 30px; }

/* ══════════════════════════════════════════════
   MARCA HERO BANNER (La Roche-Posay strip)
══════════════════════════════════════════════ */
.brand-banner {
  background: linear-gradient(90deg, var(--blue-light) 0%, white 100%);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 32px;
  display: flex; align-items: center; gap: 24px; margin: 0 20px 40px;
}
.brand-banner-logo { height: 44px; object-fit: contain; }
.brand-banner-text h3 { font-family: var(--font-serif); font-size: 22px; color: var(--blue-dark); }
.brand-banner-text p { font-size: 14px; color: var(--ink-soft); margin-top: 4px; }
.brand-banner-action { margin-left: auto; flex-shrink: 0; }

/* ══════════════════════════════════════════════
   PRODUCT GRID
══════════════════════════════════════════════ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.products-grid-5 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

/* ── Product Card ── */
.product-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
  position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.product-card-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  display: flex; flex-direction: column; gap: 5px;
}
.badge { display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.badge-discount { background: var(--red); color: white; }
.badge-new { background: var(--green); color: white; }
.badge-brand { background: var(--blue); color: white; }

.product-card-img{
  aspect-ratio: 1/1;
  position: relative;
  overflow: hidden;

  background: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 6px;
}

.product-card-img img{
  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center;

  display: block;

  transform: scale(1.18);

  transition:
    transform .35s ease,
    opacity .25s ease;
}

/* Hover desktop */
.product-card:hover .product-card-img img{
  transform: scale(1.24);
}
.product-card:hover .product-card-img img { transform: scale(1.05); }

.product-card-quick {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%) translateY(10px);
  opacity: 0; transition: all .22s ease; white-space: nowrap;
  background: var(--blue); color: white; padding: 7px 16px; border-radius: 20px;
  font-size: 12.5px; font-weight: 600; cursor: pointer; border: none;
}
.product-card:hover .product-card-quick { opacity: 1; transform: translateX(-50%) translateY(0); }

.product-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-card-brand { font-size: 11px; font-weight: 700; color: var(--blue); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 5px; }
.product-card-name { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.4; margin-bottom: 8px; flex: 1; }
.product-card-name a { color: inherit; }
.product-card-name a:hover { color: var(--blue); }

.product-card-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.price-current { font-size: 18px; font-weight: 700; color: var(--blue-dark); }
.price-before { font-size: 13px; color: var(--ink-ghost); text-decoration: line-through; }
.price-pct { font-size: 11.5px; font-weight: 700; color: var(--red); }

.product-card-actions { display: flex; gap: 8px; }
.btn-cart {
  flex: 1; padding: 10px; background: var(--blue-light); color: var(--blue);
  border: 1.5px solid var(--blue-mid); border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all .2s;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-cart:hover { background: var(--blue); color: white; border-color: var(--blue); }
.btn-buy-now {
  flex: 1; padding: 10px; background: var(--blue); color: white;
  border: none; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all .2s;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-buy-now:hover { background: var(--blue-dark); transform: translateY(-1px); }

/* ══════════════════════════════════════════════
   CATÁLOGO — LAYOUT CON FILTROS
══════════════════════════════════════════════ */
.catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; max-width: var(--container); margin: 0 auto; padding: 32px 20px; }

.filters-sidebar { position: sticky; top: 120px; height: fit-content; }
.filter-panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 16px; }
.filter-panel h3 { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-ghost); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.filter-option { display: flex; align-items: center; gap: 10px; padding: 7px 0; cursor: pointer; }
.filter-option input { width: 16px; height: 16px; accent-color: var(--blue); cursor: pointer; }
.filter-option label { font-size: 14px; color: var(--ink-soft); cursor: pointer; transition: color .15s; }
.filter-option:hover label { color: var(--blue); }
.filter-option.active label { color: var(--blue); font-weight: 600; }

.price-range { display: flex; flex-direction: column; gap: 10px; }
.price-range input[type="range"] { width: 100%; accent-color: var(--blue); }
.price-range-labels { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-soft); }

.catalog-main {}
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding: 14px 16px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); }
.catalog-count { font-size: 14px; color: var(--ink-soft); }
.catalog-count strong { color: var(--ink); }
.catalog-sort select { padding: 7px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13.5px; background: white; cursor: pointer; }

/* ══════════════════════════════════════════════
   PRODUCTO INDIVIDUAL
══════════════════════════════════════════════ */
.product-page { max-width: var(--container); margin: 0 auto; padding: 32px 20px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-ghost); margin-bottom: 28px; flex-wrap: wrap; }
.breadcrumb a { color: var(--ink-ghost); transition: color .15s; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb-sep { opacity: .4; }

.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

/* Galería */
.product-gallery { position: sticky; top: 120px; }
.gallery-main{
    width:100%;
    height:650px;
    background:#fff;
    border-radius:24px;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
    position:relative;
    padding:10px;
    border:1px solid #edf2f7;
}
.gallery-main img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    transition:transform .35s ease;
    image-rendering:auto;
}
.gallery-main:hover img { transform: scale(1.05); }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; }
.gallery-thumb {
  width: 68px; height: 68px; flex-shrink: 0; border-radius: var(--radius);
  overflow: hidden; cursor: pointer; border: 2px solid transparent;
  background: var(--surface); padding: 6px; transition: border-color .2s;
}
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--blue); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }

/* Info producto */
.product-info {}
.product-brand-link { font-size: 12px; font-weight: 700; color: var(--blue); letter-spacing: .1em; text-transform: uppercase; display: inline-block; margin-bottom: 8px; }
.product-title { font-family: var(--font-serif); font-size: clamp(24px, 3vw, 34px); color: var(--ink); line-height: 1.25; margin-bottom: 12px; }
.product-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.stars { color: #f59e0b; font-size: 16px; letter-spacing: 2px; }
.rating-text { font-size: 13px; color: var(--ink-ghost); }

.product-price-box { background: var(--surface); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 20px; display: flex; align-items: center; gap: 16px; }
.product-price-current { font-family: var(--font-serif); font-size: 36px; color: var(--blue-dark); font-weight: 400; }
.product-price-before { font-size: 18px; color: var(--ink-ghost); text-decoration: line-through; }
.product-price-badge { background: var(--red); color: white; padding: 3px 10px; border-radius: 20px; font-size: 13px; font-weight: 700; }

/* Tabs descripción */
.product-tabs { margin-bottom: 24px; }
.tabs-nav { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 16px; }
.tab-btn {
  padding: 10px 20px; font-size: 14px; font-weight: 600; color: var(--ink-soft);
  border: none; background: transparent; cursor: pointer; position: relative;
  transition: color .2s; white-space: nowrap;
}
.tab-btn::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--blue); transform: scaleX(0); transition: transform .2s; }
.tab-btn.active { color: var(--blue); }
.tab-btn.active::after { transform: scaleX(1); }
.tab-content { display: none; font-size: 14.5px; color: var(--ink-soft); line-height: 1.8; }
.tab-content.active { display: block; }
.tab-content p { margin-bottom: 12px; }
.tab-content ul { padding-left: 16px; list-style: disc; }
.tab-content ul li { margin-bottom: 6px; }

/* Cantidad + botones */
.product-qty { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.qty-control { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.qty-control button { width: 38px; height: 42px; border: none; background: var(--surface); cursor: pointer; font-size: 18px; color: var(--ink); transition: background .15s; }
.qty-control button:hover { background: var(--blue-light); color: var(--blue); }
.qty-control input { width: 50px; height: 42px; text-align: center; border: none; font-size: 16px; font-weight: 700; color: var(--ink); background: white; outline: none; }

.product-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.btn-add-cart { padding: 15px; font-size: 15px; }
.btn-comprar { padding: 15px; font-size: 15px; font-weight: 700; }

.product-trust { display: flex; gap: 16px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-soft); }
.trust-item svg { color: var(--blue); flex-shrink: 0; }

/* ══════════════════════════════════════════════
   CHECKOUT
══════════════════════════════════════════════ */
.checkout-page { max-width: 1100px; margin: 0 auto; padding: 32px 20px 60px; }
.checkout-grid { display: grid; grid-template-columns: 1fr 420px; gap: 32px; align-items: start; }
.checkout-title { font-family: var(--font-serif); font-size: 32px; color: var(--ink); margin-bottom: 28px; }

/* Steps */
.checkout-steps { display: flex; gap: 0; margin-bottom: 28px; }
.step { display: flex; align-items: center; gap: 10px; flex: 1; }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--border); color: var(--ink-ghost); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all .2s; }
.step.active .step-num { background: var(--blue); color: white; }
.step.done .step-num { background: var(--green); color: white; }
.step-label { font-size: 13px; color: var(--ink-ghost); font-weight: 500; }
.step.active .step-label { color: var(--blue); font-weight: 600; }
.step-line { flex: 1; height: 2px; background: var(--border); margin: 0 6px; }

/* Form sections */
.form-section { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 16px; }
.form-section h3 { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.form-section h3 svg { color: var(--blue); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 12px; font-weight: 700; color: var(--ink-soft); letter-spacing: .06em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; color: var(--ink); background: white; outline: none;
  transition: border-color .2s, box-shadow .2s; -webkit-appearance: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,87,168,.1);
}
.field input.error { border-color: var(--red); }
.field-hint { font-size: 11.5px; color: var(--ink-ghost); }

/* Order bump */
.order-bump {
  background: linear-gradient(135deg, var(--gold-bg) 0%, #fff9f0 100%);
  border: 2px solid var(--gold); border-radius: var(--radius);
  padding: 18px 20px; margin-top: 16px; cursor: pointer;
}
.order-bump-inner { display: flex; align-items: flex-start; gap: 14px; }
.order-bump input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.order-bump-text h4 { font-size: 14.5px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.order-bump-text p { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.order-bump-price { font-size: 14px; font-weight: 700; color: var(--gold); margin-top: 6px; }

/* Payment methods */
.payment-methods { display: flex; flex-direction: column; gap: 10px; }
.payment-method {
  border: 1.5px solid var(--border); border-radius: var(--radius);
  cursor: pointer; transition: all .2s; overflow: hidden;
}
.payment-method.selected { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,87,168,.1); }
.payment-method-header { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.payment-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border); transition: all .2s; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.payment-method.selected .payment-radio { border-color: var(--blue); background: var(--blue); }
.payment-radio::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: white; opacity: 0; transition: opacity .2s; }
.payment-method.selected .payment-radio::after { opacity: 1; }
.payment-method-info { flex: 1; }
.payment-method-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.payment-method-desc { font-size: 12px; color: var(--ink-ghost); margin-top: 2px; }
.payment-method-logos { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.pay-logo { height: 22px; border-radius: 4px; }
.payment-method-body { padding: 0 16px 16px; display: none; }
.payment-method.selected .payment-method-body { display: block; }
.payment-body-inner { padding: 16px; background: var(--surface); border-radius: var(--radius-sm); }

/* Resumen pedido (sidebar checkout) */
.order-summary { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; position: sticky; top: 120px; }
.order-summary h3 { font-family: var(--font-serif); font-size: 22px; margin-bottom: 20px; }
.summary-items { border-top: 1px solid var(--border); padding-top: 16px; margin-bottom: 16px; }
.summary-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.summary-item:last-child { border-bottom: none; }
.summary-item img { width: 52px; height: 52px; object-fit: contain; border-radius: var(--radius-sm); border: 1px solid var(--border); flex-shrink: 0; background: var(--surface); padding: 4px; }
.summary-item-info { flex: 1; }
.summary-item-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.summary-item-qty { font-size: 12px; color: var(--ink-ghost); }
.summary-item-price { font-size: 14px; font-weight: 700; color: var(--blue-dark); flex-shrink: 0; }
.summary-rows { display: flex; flex-direction: column; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-soft); }
.summary-row.discount { color: var(--green); font-weight: 600; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; }
.summary-total span:first-child { font-size: 14px; font-weight: 700; }
.summary-total-amount { font-family: var(--font-serif); font-size: 32px; color: var(--ink); }
.summary-currency { font-size: 13px; color: var(--ink-ghost); margin-left: 4px; }

/* Submit button */
.checkout-submit { margin-top: 24px; }
.btn-submit {
  width: 100%; padding: 17px; background: var(--blue); color: white;
  border: none; border-radius: 30px; font-size: 16px; font-weight: 700;
  cursor: pointer; transition: all .22s; display: flex; align-items: center; justify-content: center; gap: 10px;
  letter-spacing: .01em;
}
.btn-submit:hover:not(:disabled) { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,87,168,.3); }
.btn-submit:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.checkout-secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; font-size: 12px; color: var(--ink-ghost); }

/* ══════════════════════════════════════════════
   PÁGINA DE GRACIAS
══════════════════════════════════════════════ */
.thanks-page { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.thanks-card {
  background: var(--white); border-radius: var(--radius-xl); padding: 48px 40px;
  max-width: 680px; width: 100%; box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--green); text-align: center;
  animation: popIn .4s cubic-bezier(.34,1.56,.64,1);
}
.thanks-icon { font-size: 60px; margin-bottom: 16px; }
.thanks-title { font-family: var(--font-serif); font-size: 38px; color: var(--ink); margin-bottom: 8px; }
.thanks-sub { font-size: 16px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 28px; }
.thanks-order-box { background: var(--surface); border-radius: var(--radius); padding: 16px 24px; margin-bottom: 28px; display: inline-block; }
.thanks-order-label { font-size: 12px; color: var(--ink-ghost); text-transform: uppercase; letter-spacing: .1em; }
.thanks-order-num { font-family: var(--font-serif); font-size: 28px; color: var(--green); }
.thanks-details { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; text-align: left; margin-bottom: 28px; }
.thanks-detail-box { background: var(--surface); border-radius: var(--radius); padding: 16px 18px; }
.thanks-detail-box h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-ghost); margin-bottom: 10px; }
.thanks-detail-row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 4px 0; }
.thanks-detail-row span:first-child { color: var(--ink-soft); }
.thanks-detail-row span:last-child { font-weight: 600; color: var(--ink); }

/* Upsell en gracias */
.thanks-upsell { background: linear-gradient(135deg, var(--blue-light) 0%, white 100%); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 28px; text-align: left; }
.thanks-upsell h4 { font-family: var(--font-serif); font-size: 20px; margin-bottom: 8px; }
.thanks-upsell p { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 14px; }

.thanks-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.thanks-timeline { display: flex; justify-content: space-between; margin-bottom: 28px; }
.tl-item { flex: 1; text-align: center; position: relative; }
.tl-item:not(:last-child)::after { content: ''; position: absolute; top: 14px; left: 60%; width: 80%; height: 2px; background: var(--border); }
.tl-dot { width: 28px; height: 28px; background: var(--blue); border-radius: 50%; margin: 0 auto 6px; display: flex; align-items: center; justify-content: center; color: white; font-size: 12px; font-weight: 700; }
.tl-label { font-size: 11.5px; color: var(--ink-soft); }
.tl-date { font-size: 12px; font-weight: 600; color: var(--ink); margin-top: 2px; }

/* ══════════════════════════════════════════════
   TRUST SECTION / FEATURES HOME
══════════════════════════════════════════════ */
.features-strip { background: var(--blue-dark); color: white; padding: 28px 20px; }
.features-inner { max-width: var(--container); margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px; }
.feature-item { display: flex; align-items: center; gap: 12px; }
.feature-icon { font-size: 26px; }
.feature-text strong { display: block; font-size: 14px; font-weight: 700; }
.feature-text span { font-size: 12.5px; opacity: .75; }

/* ══════════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════════ */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 40px; }
.page-btn { width: 38px; height: 38px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: var(--ink-soft); background: white; cursor: pointer; transition: all .15s; text-decoration: none; }
.page-btn:hover, .page-btn.active { background: var(--blue); color: white; border-color: var(--blue); }
.page-btn.disabled { opacity: .35; pointer-events: none; }

/* ══════════════════════════════════════════════
   TOAST NOTIFICACIONES
══════════════════════════════════════════════ */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--ink); color: white; padding: 14px 20px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); max-width: 340px;
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  animation: slideUp .3s ease; border-left: 3px solid var(--blue);
}
.toast.success { border-left-color: var(--green); }
.toast.error { border-left-color: var(--red); }
.toast-icon { font-size: 18px; flex-shrink: 0; }

/* ══════════════════════════════════════════════
   LOADING / OVERLAY
══════════════════════════════════════════════ */
.loading-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
  z-index: 2000; display: none; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
}
.loading-overlay.active { display: flex; }
.loader { width: 44px; height: 44px; border: 3px solid rgba(255,255,255,.2); border-top-color: white; border-radius: 50%; animation: spin 1s linear infinite; }
.loading-overlay p { color: white; font-size: 15px; font-weight: 600; }

/* Error banner */
.error-banner { display: flex; align-items: flex-start; gap: 10px; background: var(--red-bg); border: 1px solid #f5c6c2; border-radius: var(--radius-sm); padding: 12px 14px; font-size: 13.5px; color: var(--red); margin-bottom: 14px; animation: slideDown .2s ease; }

/* ══════════════════════════════════════════════
   ANIMACIONES
══════════════════════════════════════════════ */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slideUp { from { opacity:0; transform: translateY(16px); } to { opacity:1; transform: translateY(0); } }
@keyframes slideDown { from { opacity:0; transform: translateY(-10px); } to { opacity:1; transform: translateY(0); } }
@keyframes popIn { from { opacity:0; transform: scale(.88); } to { opacity:1; transform: scale(1); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

/* ══════════════════════════════════════════════
   BASE GLOBAL — evitar overflow horizontal en TODO
══════════════════════════════════════════════ */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
* { box-sizing: border-box; }
img, video, iframe, table { max-width: 100%; }

/* ══════════════════════════════════════════════
   VTEX CONTENT — limpio y responsive
══════════════════════════════════════════════ */
.vtex-content {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.8;
  word-break: break-word;
  overflow-wrap: break-word;
}
.vtex-content p { margin-bottom: 12px; }
.vtex-content p:last-child { margin-bottom: 0; }
.vtex-content ul, .vtex-content ol { padding-left: 18px; margin-bottom: 12px; }
.vtex-content ul { list-style: disc; }
.vtex-content ol { list-style: decimal; }
.vtex-content li { margin-bottom: 6px; }
.vtex-content strong, .vtex-content b { color: var(--ink); font-weight: 700; }
.vtex-content h2, .vtex-content h3, .vtex-content h4 {
  font-family: var(--font-serif); color: var(--ink); margin: 16px 0 8px;
}
.vtex-content table {
  width: 100%; border-collapse: collapse; font-size: 13.5px;
  margin-bottom: 12px; display: block; overflow-x: auto;
}
.vtex-content td, .vtex-content th {
  padding: 8px 12px; border: 1px solid var(--border); text-align: left;
  min-width: 80px;
}
.vtex-content th { background: var(--surface); font-weight: 700; color: var(--ink); }
.vtex-content img { max-width: 100%; border-radius: var(--radius-sm); height: auto; }
.vtex-ingredients {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 16px;
}
.vtex-ingredients p { font-size: 12.5px; line-height: 2; word-break: break-word; }

/* ══════════════════════════════════════════════
   REVIEWS — layout responsive
══════════════════════════════════════════════ */
.reviews-summary-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  word-break: break-word;
  overflow-wrap: break-word;
}
.review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.review-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.review-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ══════════════════════════════════════════════
   RESPONSIVE ≤ 960px — tablet
══════════════════════════════════════════════ */
@media (max-width: 960px) {
  /* Layout producto: columna única */
  .product-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px;
  }

  /* CRÍTICO: eliminar sticky en galería para que no baje con el scroll */
  .product-gallery {
    position: static !important;
    top: auto !important;
    width: 100% !important;
  }

  /* Galería más compacta en tablet */
  .gallery-main {
    max-height: 360px;
    padding: 20px;
  }

  /* Info producto full width */
  .product-info { width: 100%; }

  /* Catálogo: sidebar arriba */
  .catalog-layout {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
  }
  .filters-sidebar {
    position: static !important;
    top: auto !important;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .filter-panel { margin-bottom: 0; }

  /* Checkout: columna única, resumen arriba */
  .checkout-grid { grid-template-columns: 1fr; }
  .order-summary { position: static !important; }

  /* Hero */
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-img { display: none; }

  /* Reviews grid */
  .reviews-summary-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ══════════════════════════════════════════════
   RESPONSIVE ≤ 700px — móvil
══════════════════════════════════════════════ */
@media (max-width: 700px) {

  /* ── Header ── */
  .header-search { display: none; }
  .mobile-menu-btn { display: flex; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .nav-inner {
    flex-direction: column; height: auto;
    padding: 10px 14px 16px; gap: 2px;
  }
  .nav-link { padding: 10px 12px; font-size: 14px; border-radius: var(--radius-sm); }
  .mobile-search { display: block; }
  /* Dropdowns en móvil: se despliegan en flujo normal */
  .dropdown-panel {
    position: static !important;
    opacity: 1 !important; visibility: visible !important;
    transform: none !important; pointer-events: all !important;
    box-shadow: none; border: none;
    background: var(--surface); border-radius: var(--radius-sm);
    padding: 4px 0 4px 12px; margin-top: 4px; display: none;
  }
  .nav-dropdown-btn[aria-expanded="true"] + .dropdown-panel { display: block; }
  .site-logo .logo-sub { display: none; }
  .header-inner { height: 58px; padding: 0 12px; }

  /* ── Producto — galería ── */
  .gallery-main {
    max-height: 280px;
    padding: 16px;
    border-radius: var(--radius);
  }
  .gallery-thumbs { gap: 6px; }
  .gallery-thumb { width: 54px; height: 54px; padding: 4px; }

  /* ── Producto — info ── */
  .product-page { padding: 16px 12px 40px; }
  .product-title { font-size: 22px !important; }
  .product-price-current { font-size: 28px !important; }
  .product-price-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 12px 14px;
  }
  .product-actions { flex-direction: column; gap: 10px; }
  .product-trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .trust-item { font-size: 12px; }

  /* ── Tabs ── */
  .tabs-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    white-space: nowrap;
    display: flex;
    border-bottom: 2px solid var(--border);
  }
  .tabs-nav::-webkit-scrollbar { display: none; }
  .tab-btn {
    flex-shrink: 0;
    padding: 10px 14px;
    font-size: 13px;
  }
  .tab-content { font-size: 13.5px; }

  /* ── Urgencia / badges en producto ── */
  .product-page [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* ── Catálogo ── */
  .filters-sidebar { grid-template-columns: 1fr; }
  .catalog-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }
  .product-card-body { padding: 10px; }
  .price-current { font-size: 15px; }
  .product-card-name { font-size: 13px; }
  .product-card-actions { flex-direction: column; gap: 6px; }

  /* ── Reviews ── */
  .reviews-summary-grid { grid-template-columns: 1fr; gap: 20px; }
  /* Rating summary: horizontal compacto */
  .reviews-summary-grid > div:first-child {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 20px !important;
    padding: 16px !important;
    text-align: left !important;
  }
  .reviews-summary-grid > div:first-child > div:first-child {
    font-size: 48px !important;
    line-height: 1 !important;
    flex-shrink: 0;
  }
  .review-card-header { flex-direction: column; gap: 6px; }
  .review-card-meta { flex-direction: row; }
  .review-card { padding: 14px; }
  .review-form-grid { grid-template-columns: 1fr !important; }
  /* Estrellas del picker más táctiles */
  .star-pick { font-size: 36px !important; }
  /* Form reseña textarea */
  #formCalificacion textarea { min-height: 80px; }

  /* ── Checkout ── */
  .checkout-page { padding: 16px 12px 60px; }
  .checkout-title { font-size: 22px; margin-bottom: 14px; }
  .step-label { display: none; }
  .form-section { padding: 16px 14px; }
  .form-grid { grid-template-columns: 1fr !important; }
  .payment-method-logos { display: none; }
  .summary-total-amount { font-size: 26px; }
  .order-bump-inner { flex-direction: column; }

  /* ── Gracias ── */
  .thanks-card { padding: 28px 16px; }
  .thanks-title { font-size: 26px; }
  .thanks-details { grid-template-columns: 1fr; }
  .thanks-timeline {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    padding-bottom: 8px;
  }
  .tl-item { min-width: 70px; flex-shrink: 0; }
  .thanks-actions { flex-direction: column; gap: 10px; }
  .thanks-actions .btn { width: 100%; text-align: center; justify-content: center; }
  .thanks-upsell > div { flex-direction: column !important; }

  /* ── Hero ── */
  .hero { padding: 36px 14px 40px; }
  .hero h1 { font-size: 30px; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-trust { gap: 12px; }

  /* ── Features strip ── */
  .features-inner { flex-direction: column; gap: 14px; padding: 0 4px; }
  .announce-sep { display: none; }
  .announce-inner { flex-direction: column; gap: 4px; text-align: center; font-size: 11.5px; }

  /* ── Toast ── */
  .toast-container { bottom: 16px; right: 12px; left: 12px; }
  .toast { max-width: 100%; }

  /* ── Cart drawer ── */
  .cart-drawer-panel { width: 100vw !important; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE ≤ 420px — móvil pequeño
══════════════════════════════════════════════ */
@media (max-width: 420px) {
  .products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; }
  .product-card-actions { flex-direction: column; }
  .gallery-main { max-height: 240px; }
  .breadcrumb { font-size: 11px; gap: 4px; }
  .section-header h2 { font-size: 22px; }
  .section-header-row h2 { font-size: 22px; }
  /* Garantías 2x2 en pantalla muy pequeña */
  .product-page [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
  }
}

@media (max-width:768px){

    .gallery-main{
        min-height:340px;
        padding:14px;
    }

    .gallery-main img{
        max-width:100%;
        width:100%;
        max-height:320px;
        object-fit:contain;
    }

}

/* =========================================================
   FILTROS RESPONSIVE MOBILE
========================================================= */

.mobile-filters-toggle{
    display:none;
}

.filters-overlay{
    display:none;
}

/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 960px){

    /* BOTÓN ABRIR */
    .mobile-filters-toggle{
        display:flex;
        align-items:center;
        justify-content:center;
        gap:8px;

        width:100%;
        padding:14px 18px;
        margin-bottom:18px;

        background:#111827;
        color:#fff;

        border:none;
        border-radius:14px;

        font-size:15px;
        font-weight:700;

        cursor:pointer;

        position:sticky;
        top:75px;
        z-index:90;
    }

    /* OVERLAY */
    .filters-overlay{
        display:block;

        position:fixed;
        inset:0;

        background:rgba(0,0,0,.45);

        opacity:0;
        visibility:hidden;

        transition:.25s;

        z-index:9998;
    }

    .filters-overlay.active{
        opacity:1;
        visibility:visible;
    }

    /* SIDEBAR */
   .filters-sidebar{
    position:fixed !important;

    top:0 !important;
    left:-100%;

    width:88%;
    max-width:360px;

    height:100vh !important;
    max-height:100vh;

    margin:0 !important;

    background:#fff;

    z-index:9999;

    overflow-y:auto;
    overflow-x:hidden;

    padding:
        20px
        18px
        40px;

    transition:left .35s ease;

    box-shadow:0 0 40px rgba(0,0,0,.2);

    border-radius:
        0
        24px
        24px
        0;

    display:block !important;

    align-self:flex-start !important;

    transform:none !important;
}
    .filters-sidebar.active{
        left:0;
    }

    /* BOTÓN CERRAR */
   .filters-close{
    position:sticky;

    top:0;

    margin-left:auto;

    width:42px;
    height:42px;

    border:none;

    border-radius:50%;

    background:#f3f4f6;

    font-size:26px;

    cursor:pointer;

    z-index:5;

    display:flex;
    align-items:center;
    justify-content:center;
}

    /* PANEL */
    .filter-panel{
        background:#fafafa;

        border:1px solid #ececec;
        border-radius:18px;

        padding:16px;

        margin-bottom:18px;
    }

    .filter-panel h3{
        font-size:15px;
        font-weight:800;

        margin-bottom:14px;

        color:#111827;
    }

    /* OPCIONES */
    .filter-option{
        display:flex;
        align-items:center;
        gap:10px;

        padding:10px 0;

        font-size:14px;
    }

    .filter-option input{
        width:18px;
        height:18px;
    }

    /* LAYOUT */
    .catalog-layout{
        display:block !important;
    }

    #main-content{
        width:100%;
    }

    /* GRID PRODUCTOS */
    .products-grid{
        grid-template-columns:repeat(2,1fr) !important;
        gap:12px !important;
    }

}


