/* ============================================
   RESET & BASE
   ============================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
*::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Poppins', sans-serif;
  color: #e8e6e1;
  min-height: 100dvh;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-thumb { background: rgba(201,168,76,.3); border-radius: 99px; }

/* ============================================
   HEADER
   ============================================ */
header {
  background: var(--bg2);
  border-bottom: 1px solid rgba(255,255,255,.07);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 200;
  padding: 0 24px;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: 12px;
}

/* LOGO */
.logo { display: flex; align-items: center; gap: 10px; }

.logo-mark {
  width: 36px;
  height: 36px;
  background: #c9a84c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: #000;
  flex-shrink: 0;
}

.logo-text .name  { font-size: 15px; font-weight: 700; letter-spacing: .03em; }
.logo-text .sub   { font-size: 10px; color: #666; text-transform: uppercase; letter-spacing: .06em; }

/* HEADER RIGHT */
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* WhatsApp — texto en desktop, solo icono en mobile */
.btn-wa {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  background: #25D366;
  color: #fff;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  transition: background .15s;
  white-space: nowrap;
}
.btn-wa:hover { background: #1db954; }
.btn-wa-text  { /* span con el texto, ocultar en mobile */ }

.btn-admin {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(201,168,76,.1);
  border: 1px solid rgba(201,168,76,.3);
  color: #c9a84c;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  transition: background .15s;
  white-space: nowrap;
}
.btn-admin:hover { background: rgba(201,168,76,.2); }

.btn-cart-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: #aaa;
  font-size: 18px;
  transition: all .15s;
  flex-shrink: 0;
}
.btn-cart-header:hover {
  background: rgba(201,168,76,.1);
  border-color: rgba(201,168,76,.3);
  color: #c9a84c;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  padding: 64px 24px 56px;
  text-align: center;
  border-bottom: 1px solid rgba(201,168,76,.1);
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1594035910387-fea47794261f?w=1600&q=80');
  background-size: cover;
  background-position: center 30%;
  filter: brightness(.22) saturate(1.3);
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,.15) 0%, transparent 60%, rgba(15,17,23,.6) 100%);
}
.hero > *:not(.hero-bg) { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201,168,76,.12);
  border: 1px solid rgba(201,168,76,.3);
  color: #c9a84c;
  border-radius: 99px;
  padding: 5px 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}

.hero h1 {
  font-size: clamp(26px,4.5vw,50px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 14px;
  text-shadow: 0 2px 24px rgba(0,0,0,.8);
}
.hero h1 span { color: #c9a84c; }

.hero p {
  font-size: 14.5px;
  color: #999;
  max-width: 420px;
  margin: 0 auto 32px;
  line-height: 1.7;
  text-shadow: 0 1px 8px rgba(0,0,0,.9);
}

.hero-features {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
}

.hfeat { display: flex; flex-direction: column; align-items: center; gap: 8px; }

.hfeat-icon {
  width: 40px;
  height: 40px;
  background: rgba(201,168,76,.1);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #c9a84c;
  backdrop-filter: blur(6px);
}

.hfeat-text {
  font-size: 11.5px;
  color: #bbb;
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
}

/* ============================================
   FILTERS
   ============================================ */
   .filters {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 14px 24px;
    position: sticky;
    top: 62px;
    z-index: 100;
    overflow-x: hidden;
  }
  
  .filters-inner {
    max-width: 1280px;
    margin: 0 auto;
  }
  
  /* Desktop row (search + sort + clear) */
  .filters-row1 {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 12px;
  }
  
  /* Mobile: solo búsqueda */
  .filters-row-mobile {
    display: none;
    margin-bottom: 10px;
  }
  
  /* Mobile: sort + clear en una línea */
  .filters-row-sort-mobile {
    display: none;
  }
  
  .filter-label {
    font-size: 11px;
    font-weight: 600;
    color: #c9a84c;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
  }
  
  .sinput-wrap {
    position: relative;
  }
  
  .sinput-wrap i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
    font-size: 14px;
    pointer-events: none;
  }
  
  .finput {
    width: 100%;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 11px 14px 11px 38px;
    color: var(--text);
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: border-color 0.15s;
  }
  
  .finput:focus {
    border-color: rgba(201, 168, 76, 0.5);
  }
  
  .fselect {
    width: 100%;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 11px 14px;
    color: var(--text);
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 38px;
  }
  
  .fselect:focus {
    border-color: rgba(201, 168, 76, 0.5);
  }
  
  .fselect option {
    background: var(--card);
  }
  
  .btn-clear {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 11px 14px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #666;
    font-size: 13px;
    white-space: nowrap;
    transition: all 0.15s;
  }
  
  .btn-clear:hover {
    border-color: rgba(201, 168, 76, 0.4);
    color: #c9a84c;
  }
  
  .btn-clear-sm {
    padding: 9px 12px;
    font-size: 12px;
    flex-shrink: 0;
  }
  
  /* Tabs de género */
  .filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-top: 10px;
    padding-bottom: 2px;
  }
  
  .filter-tabs::-webkit-scrollbar {
    display: none;
  }
  
  .ftab {
    padding: 7px 16px;
    border-radius: 99px;
    font-size: 12.5px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: #666;
    transition: all 0.15s;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  .ftab.active,
  .ftab:hover {
    background: rgba(201, 168, 76, 0.12);
    border-color: rgba(201, 168, 76, 0.35);
    color: #c9a84c;
  }
  
  /* Sort inline en mobile — icono + select + limpiar */
  .fsort-label {
    font-size: 11px;
    color: #c9a84c;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
  }
  
  .fsort-select {
    flex: 1;
    min-width: 0;
  }
/* ============================================
   CATALOG
   ============================================ */
.catalog {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px 60px;
}

.cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 10px;
}
.cat-header h2 { font-size: 17px; font-weight: 600; }

.count-badge {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 99px;
  padding: 4px 14px;
  font-size: 12px;
  color: #666;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px,1fr));
  gap: 18px;
}

.load-more-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
}

.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  background: transparent;
  border: 1px solid rgba(201,168,76,.35);
  border-radius: 99px;
  color: #c9a84c;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  transition: all .18s;
}
.btn-load-more:hover { background: rgba(201,168,76,.1); border-color: rgba(201,168,76,.6); }
.btn-load-more i { font-size: 16px; }
#load-more-info { font-size: 12px; color: #555; }

/* ============================================
   PRODUCT CARD
   ============================================ */
.pcard {
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.pcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 56px rgba(0,0,0,.6);
  border-color: rgba(201,168,76,.25);
}

/* Etiquetas de la foto: arriba el tipo y abajo el ahorro, a todo lo ancho.
   Giradas en la esquina se encimaban con "Paquete" en cuadrícula y en lista. */
.tag-paquete {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 2;
  display: flex; align-items: center; gap: 4px;
  max-width: calc(100% - 16px);
  padding: 2px 8px;
  background: rgba(20, 18, 14, .82);
  border: 1px solid var(--gold-b);
  border-radius: 12px;
  color: var(--gold);
  font-size: 10px; font-weight: 700;
  white-space: nowrap;
}
.savings-tag {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 4px 6px;
  background: rgba(201, 168, 76, .95);
  color: #000;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .03em;
  text-align: center; text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}

.card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--card2);
  position: relative;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pcard:hover .card-img img { transform: scale(1.05); }

.card-no-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--faint); font-size: 52px;
}

.card-in-cart {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(201,168,76,.9);
  color: #000;
  border-radius: 99px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(4px);
}

.card-body { padding: 14px 16px 16px; }
.card-marca { font-size: 11px; color: #c9a84c; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 3px; }
.card-nombre { font-size: 15px; font-weight: 600; line-height: 1.3; margin-bottom: 6px; }
.card-pills { display: flex; flex-wrap: wrap; gap: 6px; }

.cpill {
  padding: 5px 11px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: #aaa;
  white-space: nowrap;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state { grid-column: 1/-1; text-align: center; padding: 80px 20px; color: #444; }
.empty-state i { font-size: 52px; display: block; margin-bottom: 14px; }
.empty-state h3 { font-size: 17px; color: #666; margin-bottom: 6px; }

/* Fallo de carga: sin esto los esqueletos giraban indefinidamente y el
   visitante no tenía forma de saber que algo salió mal. */
.cat-error {
  grid-column: 1/-1; text-align: center;
  padding: 60px 20px; color: var(--muted);
  display: flex; flex-direction: column; align-items: center;
}
.cat-error > i { font-size: 44px; color: var(--gold); opacity: .75; margin-bottom: 16px; }
.cat-error h3 { font-size: 17px; color: var(--text); margin-bottom: 8px; }
.cat-error p { font-size: 14px; max-width: 42ch; line-height: 1.6; margin-bottom: 22px; }
.cat-error-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.cat-error-retry, .cat-error-wa {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px;
  font-size: 14px; font-weight: 600; font-family: inherit;
  cursor: pointer; text-decoration: none;
}
.cat-error-retry { background: var(--gold); color: #14120e; border: none; }
.cat-error-retry:hover { background: var(--gold-h); }
.cat-error-wa { background: rgba(37,211,102,.12); color: #25D366; border: 1px solid rgba(37,211,102,.35); }
.cat-error-wa:hover { background: rgba(37,211,102,.2); }

/* ============================================
   MODAL
   ============================================ */
/* Teléfono: hoja que sube desde abajo y ocupa casi toda la pantalla.
   Escritorio (>=860px): dos columnas, foto a la izquierda. */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal-box {
  position: relative;
  background: var(--bg);
  border: 1px solid rgba(255,255,255,.08);
  border-bottom: none;
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-height: 94vh;
  max-height: 94dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateY(100%);
  transition: transform .38s cubic-bezier(.2,.8,.2,1);
}
.modal-overlay.open .modal-box { transform: none; }

.modal-media { position: relative; }

/* Cuadrada y con la foto completa: object-fit contain sobre un fondo cálido,
   así el frasco nunca queda recortado aunque la foto no sea cuadrada. */
.modal-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 50vh;
  overflow: hidden;
  background: radial-gradient(circle at 50% 38%, #2b2620 0%, #17140f 72%);
  border-radius: 24px 24px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-img img { width: 100%; height: 100%; object-fit: contain; display: block; }

.modal-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--faint); font-size: 72px;
}

.modal-x {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 4;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(28,28,28,.72);
  border: 1px solid rgba(255,255,255,.16);
  color: #e6e3dc;
  font-size: 17px;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
  transition: background .15s, transform .15s;
}
.modal-x:hover { background: rgba(60,60,60,.85); color: #fff; }
.modal-x:active { transform: scale(.94); }

.modal-content { padding: 18px 20px 0; }

.modal-marca {
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: #c9a84c; margin-bottom: 4px;
}
.modal-nombre {
  font-size: 25px; font-weight: 700; line-height: 1.15;
  margin: 0 0 12px; color: var(--text);
}

.modal-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.modal-tags:empty { display: none; }
.mtag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 99px;
  font-size: 12px; font-weight: 600;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: #d6d0c4;
}
.mtag i { color: #c9a84c; font-size: 13px; }
.mtag-cat { background: #c9a84c; border-color: #c9a84c; color: #14120e; }
.mtag-cat i { color: #14120e; }

/* ── Pirámide olfativa ─────────────────────────── */
.modal-ficha { display: flex; flex-direction: column; gap: 12px; margin: 4px 0 20px; }
.modal-ficha[hidden] { display: none; }
.ficha-tit {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #8a8478; display: flex; align-items: center; gap: 6px;
}
.ficha-tit i { color: #c9a84c; }
.piramide { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.piso {
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.07);
}
.piso-1 { width: 80%; background: rgba(201,168,76,.07); }
.piso-2 { width: 90%; background: rgba(201,168,76,.05); }
.piso-3 { width: 100%; background: rgba(201,168,76,.035); }
.piso-tit {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #c9a84c; margin-bottom: 7px;
}
.piso-tit small { margin-left: auto; color: #6f6a60; font-weight: 500; letter-spacing: 0; text-transform: none; font-size: 11px; }
.notas { display: flex; flex-wrap: wrap; gap: 5px; }
.nota {
  font-size: 12.5px; padding: 3px 10px; border-radius: 99px;
  background: rgba(255,255,255,.06); color: #ece6d8;
}

/* Notas con significado: botón con globito al pasar el cursor o tocar (catalog.js) */
button.nota {
  border: 0; font-family: inherit; line-height: inherit; cursor: help;
  -webkit-tap-highlight-color: transparent; transition: background .15s, color .15s;
}
button.nota:hover, button.nota.activa { background: rgba(201,168,76,.18); color: #f3e3b5; }
button.nota:focus-visible { outline: 2px solid #c9a84c; outline-offset: 2px; }
.modal-ficha .ficha-tit { flex-wrap: wrap; row-gap: 2px; }
.ficha-ayuda {
  margin-left: auto; font-size: 11px; font-weight: 500; letter-spacing: 0;
  text-transform: none; color: #6f6a60; white-space: nowrap;
}
@media (max-width: 600px) { .ficha-ayuda { flex-basis: 100%; margin-left: 0; } }
.ficha-ayuda .con-cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .ficha-ayuda .con-cursor { display: inline; }
  .ficha-ayuda .con-dedo { display: none; }
}
.nota-globo {
  position: fixed; z-index: 10000; max-width: min(270px, calc(100vw - 20px));
  padding: 10px 13px 11px; border-radius: 12px;
  background: #1c1912; border: 1px solid rgba(201,168,76,.45);
  box-shadow: 0 12px 32px rgba(0,0,0,.55);
  color: #d9d2c3; font-size: 12.5px; line-height: 1.45;
  pointer-events: none; opacity: 0; transform: translateY(4px) scale(.97);
  transition: opacity .16s ease, transform .16s ease;
}
.nota-globo.abajo { transform: translateY(-4px) scale(.97); }
.nota-globo.visible { opacity: 1; transform: none; }
.nota-globo small {
  display: block; font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: #c9a84c;
}
.nota-globo b { display: block; margin: 1px 0 3px; font-size: 14px; color: #f3e3b5; }
.nota-globo p { margin: 0; }
.nota-globo::after {
  content: ''; position: absolute; left: var(--flecha, 50%); bottom: -6px;
  width: 10px; height: 10px; background: #1c1912;
  border: solid rgba(201,168,76,.45); border-width: 0 1px 1px 0;
  transform: translateX(-50%) rotate(45deg);
}
.nota-globo.abajo::after { bottom: auto; top: -6px; border-width: 1px 0 0 1px; }

/* Inspirado en: el original del dupe (catalog.js → pintarInspirado) */
.modal-inspirado { margin: 4px 0 18px; }
.modal-inspirado[hidden] { display: none; }
.insp-card {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px;
  border-radius: 14px; background: rgba(201,168,76,.06);
  border: 1px solid rgba(201,168,76,.22); color: inherit; text-decoration: none;
}
a.insp-card { transition: border-color .2s, background .2s, transform .2s; }
a.insp-card:hover { border-color: rgba(201,168,76,.55); background: rgba(201,168,76,.1); transform: translateY(-2px); }
a.insp-card:active { transform: scale(.98); }
.insp-foto {
  width: 54px; height: 54px; flex-shrink: 0; border-radius: 10px; overflow: hidden;
  background: #f4f1ea; display: grid; place-items: center;
}
.insp-foto img { width: 100%; height: 100%; object-fit: contain; }
.insp-foto i { color: #c9a84c; font-size: 22px; }
.insp-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.insp-txt small {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #c9a84c;
}
.insp-txt b { margin-top: 2px; font-size: 15px; color: #ece6d8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.insp-txt em { font-style: normal; font-size: 12px; color: #8a8478; }
.insp-ir { font-size: 12.5px; font-weight: 600; color: #c9a84c; white-space: nowrap; }
.insp-ir i { font-size: 11px; transition: transform .2s; display: inline-block; }
a.insp-card:hover .insp-ir i { transform: translateX(3px); }

.medidores { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.medidor {
  padding: 10px 12px; border-radius: 12px;
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07);
}
.medidor span {
  display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #8a8478;
}
.medidor b { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; color: #ece6d8; }
.barras { display: flex; gap: 4px; margin-top: 8px; }
.barras i { flex: 1; height: 5px; border-radius: 99px; background: rgba(255,255,255,.09); }
.barras i.on { background: #c9a84c; }

.uso { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── Cargando (link compartido): la ficha aparece al instante ── */
.modal-skeleton { display: none; }
.modal-box.cargando .modal-skeleton { display: flex; flex-direction: column; gap: 12px; padding: 4px 0 24px; }
/* Cada pieza mide como lo que va a llegar: nombre, etiquetas, descripción, tallas y botón. */
.modal-skeleton i {
  display: block; flex: none; height: 15px; border-radius: 8px;
  background: linear-gradient(90deg, #1d1a15 0%, #2a261f 50%, #1d1a15 100%);
  background-size: 200% 100%;
  animation: ficha-brillo 1.2s linear infinite;
}
.modal-skeleton .sk-fila { display: flex; flex-wrap: wrap; gap: 8px; }
.modal-skeleton .sk-marca { width: 32%; height: 13px; }
.modal-skeleton .sk-nombre { width: 82%; height: 34px; margin-bottom: 4px; }
.modal-skeleton .sk-tag { width: 92px; height: 32px; border-radius: 99px; }
.modal-skeleton .sk-linea { width: 100%; }
.modal-skeleton .sk-linea.corta { width: 62%; }
.modal-skeleton .sk-etiqueta { width: 40%; height: 12px; margin-top: 8px; }
.modal-skeleton .sk-pill { width: 96px; height: 38px; border-radius: 99px; }
.modal-skeleton .sk-boton { width: 100%; height: 52px; border-radius: 12px; margin-top: 8px; }
.modal-skeleton .sk-ayuda { width: 56%; height: 14px; margin: 4px auto 0; }
.modal-skeleton .sk-ficha { width: 100%; height: 470px; margin-top: 16px; border-radius: 14px; }
.modal-box.cargando .modal-img {
  background: linear-gradient(90deg, #1d1a15 0%, #2a261f 50%, #1d1a15 100%);
  background-size: 200% 100%;
  animation: ficha-brillo 1.2s linear infinite;
}
.modal-box.cargando .modal-content > :not(.modal-skeleton) { display: none !important; }
@keyframes ficha-brillo { from { background-position: 200% 0; } to { background-position: -200% 0; } }

@media (min-width: 860px) {
  .modal-overlay { align-items: center; padding: 24px; }
  .modal-box {
    max-width: 980px;
    height: min(88vh, 720px);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 24px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    transform: translateY(24px) scale(.98);
  }
  .modal-overlay.open .modal-box { transform: none; }
  .modal-img { height: 100%; max-height: none; aspect-ratio: auto; border-radius: 24px 0 0 24px; }
  .modal-content { overflow-y: auto; padding: 28px 28px 0; }
  .modal-nombre { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .modal-box { transition: none; }
  .modal-skeleton i, .modal-box.cargando .modal-img { animation: none; }
}

.btn-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255,255,255,.07);
  border: none; color: #888;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; margin-top: 2px;
  transition: background .15s, color .15s;
}
.btn-close:hover { background: rgba(255,255,255,.14); color: #e8e6e1; }


/* La descripción era el bloque más alto de la ficha y empujaba la compra
   fuera de pantalla: se muestra recortada y se despliega a voluntad. */
/* pre-line conserva los saltos de línea de la ficha (salida / corazón /
   fondo, duración, uso) sin que un solo salto rompa el párrafo suelto. */
.modal-desc { font-size: 14.5px; color: #aaa; margin-bottom: 6px; line-height: 1.6; white-space: pre-line; }
.modal-desc.clamp {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.modal-desc-more {
  background: none; border: none; padding: 0;
  color: #c9a84c; font-size: 12.5px; font-weight: 600;
  cursor: pointer; margin-bottom: 18px;
}
.modal-desc-more:hover { text-decoration: underline; }
.modal-desc-more[hidden] { display: none; }

.modal-sizes-label { font-size: 11px; font-weight: 600; color: #555; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 10px; }

.modal-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
/* Tocaron "Agregar" sin elegir tamaño */
.modal-pills.falta .mpill:not(:disabled) {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, .35);
  animation: falta-talla .4s ease;
}
.modal-sizes-row:has(+ .modal-pills.falta) .modal-sizes-label { color: #ef4444; }
@keyframes falta-talla {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.mpill {
  padding: 7px 11px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: #bbb;
  cursor: pointer;
  transition: all .15s;
  line-height: 1.25;
}
.mpill:hover, .mpill.sel { background: #c9a84c; border-color: #c9a84c; color: #000; }
/* Ahorro frente a comprar varias tallas chicas. Nunca precio por ml:
   eso invita a compararlo con la botella completa. */
.mpill .pill-ahorro { display: block; font-size: 10px; font-weight: 700; opacity: .85; }
/* Presentaciones de un paquete: una por renglón, precio a la izquierda y ahorro a
   la derecha. Si no cabe en un teléfono chico, el ahorro baja sin encimarse. */
.mpill-paq {
  flex: 1 1 100%;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 4px 10px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  text-align: left;
}
.mpill-paq .paq-precio { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 6px; min-width: 0; }
.mpill-paq del { font-size: .85em; opacity: .6; }
.mpill-paq small { font-size: .85em; font-weight: 500; }
.mpill-paq .pill-saving {
  flex: none;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--gold);
  color: #000;
  font-size: 11px; font-weight: 700;
  white-space: nowrap;
}
.mpill-paq.sel .pill-saving, .mpill-paq:hover .pill-saving { background: #14120e; color: var(--gold); }
.mpill-paq.agotada { opacity: .5; cursor: not-allowed; }
.mpill-paq.agotada .paq-precio { text-decoration: line-through; }

/* Perfumes del paquete: lista con límite y su propio scroll */
.pkg-lista {
  display: flex; flex-direction: column; gap: 6px;
  max-height: 318px;
  overflow-y: auto;
  padding-right: 6px;
  margin-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-b) transparent;
}
.pkg-lista::-webkit-scrollbar { width: 6px; }
.pkg-lista::-webkit-scrollbar-thumb { background: var(--gold-b); border-radius: 3px; }
.pkg-lista > * { flex: none; }
.pkg-lista[data-vacia="1"]::after { content: 'Ningún perfume con ese nombre.'; padding: 10px 2px; font-size: 13px; color: var(--muted); }
.pkg-buscar {
  width: 100%;
  margin-bottom: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  color: var(--text);
  font: inherit; font-size: 14px;
}
.pkg-buscar:focus { outline: none; border-color: var(--gold); }

.modal-or, .modal-btn-divider {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
  color: #444; font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
}
.modal-or::before, .modal-or::after,
.modal-btn-divider::before, .modal-btn-divider::after {
  content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.07);
}

/* Barra de acción pegada al fondo del modal: comprar sin tener que
   desplazarse por toda la descripción. */
.modal-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  margin: 0 -20px;
  padding: 13px 20px calc(14px + env(safe-area-inset-bottom));
  background: var(--card);
  border-top: 1px solid rgba(255,255,255,.07);
}

.btn-add-cart {
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  gap: 9px; padding: 14px;
  background: #c9a84c;
  color: #14120e;
  border: none;
  border-radius: 12px;
  font-size: 15px; font-weight: 700;
  transition: background .15s;
}
.btn-add-cart:hover { background: #e0b95a; }
.btn-add-cart:disabled { background: rgba(255,255,255,.06); color: #555; cursor: not-allowed; }

/* Secundario: presente pero sin competir con la compra */
.btn-wa-modal {
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  gap: 8px; padding: 9px 10px 2px;
  background: none; color: #25D366;
  border: none;
  font-size: 13px; font-weight: 600;
  transition: color .15s;
}
.btn-wa-modal:hover { color: #4ae585; text-decoration: underline; }

/* ============================================
   CART DRAWER
   ============================================ */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  z-index: 400;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 100%; max-width: 400px;
  background: var(--bg);
  border-left: 1px solid var(--border);
  z-index: 410;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.16,1,.3,1);
}
.cart-drawer.open { transform: translateX(0); }

.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-title { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }

#cart-list {
  flex: 1; overflow-y: auto;
  padding: 12px 16px;
  display: flex; flex-direction: column; gap: 10px;
}

.cart-empty {
  flex: 1; display: none; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px; color: var(--muted); text-align: center; padding: 40px 20px;
}
.cart-empty i { font-size: 48px; }
.cart-empty p { font-size: 13px; color: var(--muted); }

.cart-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
}

.cart-item-img {
  width: 52px; height: 52px;
  border-radius: 8px; overflow: hidden;
  background: var(--card2); flex-shrink: 0;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-no-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--faint); font-size: 20px;
}

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-marca { font-size: 10px; color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.cart-item-nombre { font-size: 13px; font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.cart-item-size { font-size: 12px; color: var(--muted); margin-top: 2px; }

.cart-item-controls {
  display: flex; align-items: center;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden; flex-shrink: 0;
}

.cart-qty-btn {
  width: 34px; height: 34px;
  background: transparent; border: none;
  color: var(--muted); font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
  line-height: 1;
}
.cart-qty-btn:hover:not(:disabled) { background: rgba(201,168,76,.15); color: var(--gold); }
.cart-qty-btn:disabled { opacity: .25; cursor: not-allowed; }
.cart-qty-num {
  font-size: 14px; font-weight: 700;
  min-width: 28px; text-align: center;
  color: var(--text);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  line-height: 34px;
}
.cart-qty-btn.is-trash { color: #e06060; }
.cart-qty-btn.is-trash:hover { background: rgba(229,57,53,.15); color: #e53935; }

.cart-footer {
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  flex-shrink: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.cart-total-row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; padding: 2px 0; }
.cart-total-row span { color: var(--muted); font-size: 14px; }
.cart-total-row strong, #cart-total { font-size: 18px; font-weight: 700; color: var(--gold); }
.cart-disclaimer { font-size: 11px; color: var(--muted); line-height: 1.5; }

.btn-cart-wa {
  display: flex; align-items: center; justify-content: center;
  gap: 9px; padding: 14px;
  background: #25D366; color: #fff;
  border: none; border-radius: 12px;
  font-size: 15px; font-weight: 600;
  width: 100%; transition: opacity .15s;
}
.btn-cart-wa:hover { opacity: 0.9; }

.btn-cart-clear {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted); font-size: 14px; font-weight: 500;
  width: 100%; transition: all .15s;
}
.btn-cart-clear:hover { border-color: rgba(229,57,53,.4); color: #e06060; }

/* FAB carrito */
.cart-fab {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gold);
  border: none; color: #000;
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  z-index: 300;
  transition: transform .2s, box-shadow .2s;
  opacity: 0; pointer-events: none;
}
.cart-fab.has-items { opacity: 1; pointer-events: all; }
.cart-fab:hover { transform: scale(1.08); box-shadow: 0 12px 32px rgba(0,0,0,.6); }

.cart-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: #e53935; color: #fff;
  border-radius: 99px;
  min-width: 20px; height: 20px;
  font-size: 11px; font-weight: 700;
  display: none; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* ============================================
   TOAST
   ============================================ */
#toast {
  position: fixed;
  bottom: 90px; left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 20px;
  border-radius: 99px;
  font-size: 13px; font-weight: 500;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
  white-space: nowrap; z-index: 999;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================
   SKELETON
   ============================================ */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skel {
  background: linear-gradient(90deg, var(--card) 25%, var(--card2) 50%, var(--card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: 8px;
}
/* La tarjeta de carga usa las clases de la real: solo se le quita el texto. */
.skel-pcard { pointer-events: none; }
.skel-txt {
  display: inline-block;
  color: transparent;
  border-color: transparent;
  background: linear-gradient(90deg, var(--card) 25%, var(--card2) 50%, var(--card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: 6px;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 32px 24px 28px;
  text-align: center;
}
.footer-social { margin-bottom: 20px; }
.footer-social > p { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin-bottom: 14px; }
.social-buttons { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }

.social-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 99px;
  font-size: 13px; font-weight: 500;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--muted); transition: all .18s;
}
.social-btn svg, .social-btn i { font-size: 15px; flex-shrink: 0; }
.social-btn.instagram:hover { background: rgba(225,48,108,.1); border-color: rgba(225,48,108,.4); color: #e1306c; }
.social-btn.tiktok:hover    { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); color: #fff; }
.social-btn.facebook:hover  { background: rgba(24,119,242,.1); border-color: rgba(24,119,242,.4); color: #1877f2; }
.footer-copy { font-size: 12.5px; color: var(--muted); }
.footer-copy a, footer a { color: var(--gold); }
footer p { font-size: 13px; color: var(--muted); }

/* ============================================
   RESPONSIVE — TABLET (≤768px)
   ============================================ */
   @media (max-width: 768px) {
    .filters {
      position: sticky;
      padding: 10px 14px;
    }
  
    /* OCULTAR SOLO LA BÚSQUEDA DE DESKTOP */
    .filters-row1 > div:first-child {
      display: none !important;
    }
  
    /* MANTENER VISIBLE "ORDENAR POR" Y LIMPIAR */
    .filters-row1 {
      display: flex !important;
      flex-wrap: wrap;
      gap: 12px;
      margin-bottom: 12px;
    }
  
    .filters-row1 > div:nth-child(2) {
      flex: 1;
      min-width: 200px;
    }
  
    /* MOSTRAR LA BÚSQUEDA DE MOBILE */
    .filters-row-mobile {
      display: block;
      margin-bottom: 12px;
    }
  
    .hero {
      padding: 40px 20px 36px;
      min-height: 300px;
    }
  
    .hero-features {
      gap: 20px;
    }
    .catalog {
      padding: 20px 14px 48px;
    }
  
    .grid {
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }
  
    .ftab {
      padding: 6px 13px;
      font-size: 12px;
    }
  
    .social-buttons {
      gap: 8px;
    }
  
    .social-btn {
      padding: 7px 13px;
      font-size: 12px;
    }
  }
/* ============================================
   RESPONSIVE — MOBILE (≤480px)
   ============================================ */
@media (max-width: 480px) {

  /* ── Header compacto ── */
  header { padding: 0 14px; }

  .header-inner { height: 56px; gap: 8px; }

  /* Ocultar texto del logo, mantener solo el círculo FS */
  .logo-text { display: none; }

  /* Admin: solo icono */
  .btn-admin span { display: none; }
  .btn-admin { padding: 8px 10px; gap: 0; }

  /* WhatsApp: solo el círculo verde con el icono */
  .btn-wa {
    width: 38px; height: 38px;
    padding: 0;
    justify-content: center;
    flex-shrink: 0;
  }
  .btn-wa-text { display: none; }

  /* Filtros */
  .filters { top: 56px; padding: 8px 12px; }

  /* Tabs sin scroll horizontal visible */
  .filter-tabs { gap: 6px; margin-top: 8px; }
  .ftab { padding: 6px 12px; font-size: 11.5px; }

  /* Sort + clear en mobile */
  .filters-row-sort-mobile {
    gap: 6px;
    margin-bottom: 6px;
  }
  .fsort-label { font-size: 11px; }
  .fselect { font-size: 12px; padding: 9px 10px; }
  .btn-clear { padding: 8px 10px; font-size: 11px; }
  .fselect { font-size: 12px; padding: 9px 10px; }
  .btn-fclear { font-size: 12px; padding: 9px 12px; }

  /* ── Grilla 2 columnas móviles ── */
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }

  /* ── Carrito Full Screen ── */
  .cart-drawer { max-width: 100% !important; border-left: none; }

  /* Grid */
  .catalog { padding: 16px 10px 60px; }

  /* Hero */
  .hero-features { gap: 14px; }
  .hfeat-icon { width: 36px; height: 36px; font-size: 16px; }

  /* Cart drawer: bottom sheet */
  .cart-drawer {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 20px 20px 0 0 !important;
    bottom: 0 !important; top: auto !important;
    height: 88vh !important;
    right: 0 !important;
    transform: translateY(100%) !important;
    transition: transform .3s cubic-bezier(.4,0,.2,1) !important;
  }
  .cart-drawer.open { transform: translateY(0) !important; }

  .cart-header {
    padding: 16px 16px 12px !important;
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .cart-header::before {
    content: '';
    display: block;
    width: 40px; height: 4px;
    background: rgba(255,255,255,.15);
    border-radius: 2px;
    margin: 0 auto 12px;
    order: -1;
  }
  .cart-item      { padding: 10px 12px !important; gap: 10px !important; }
  .cart-item-img  { width: 52px !important; height: 52px !important; flex-shrink: 0; }
  .cart-item-nombre { font-size: 13px !important; }
  .cart-item-marca  { font-size: 11px !important; }
  .cart-item-size   { font-size: 12px !important; }
  .cart-qty-btn  { width: 34px !important; height: 34px !important; font-size: 18px !important; }
  .cart-qty-num  { font-size: 14px !important; min-width: 20px; text-align: center; }
  .cart-footer   { padding: 14px 16px !important; gap: 10px !important; }
  .btn-cart-wa   { font-size: 14px !important; padding: 14px !important; }
  .btn-cart-clear{ font-size: 13px !important; padding: 11px !important; }

  #undo-toast { bottom: 72px; }
  #toast       { bottom: 140px; }
}

/* ============================================
   RESPONSIVE — SMALL (≤380px)
   ============================================ */
@media (max-width: 380px) {
  .grid { grid-template-columns: 1fr; }
}

/* ── LIST VIEW (Client Toggle) ── */
.grid.list-view {
  grid-template-columns: 1fr !important;
}

.footer-social { margin-bottom: 20px; }
.footer-social > p { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin-bottom: 14px; }
.social-buttons { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }

.social-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 99px;
  font-size: 13px; font-weight: 500;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--muted); transition: all .18s;
}
.social-btn svg, .social-btn i { font-size: 15px; flex-shrink: 0; }
.social-btn.instagram:hover { background: rgba(225,48,108,.1); border-color: rgba(225,48,108,.4); color: #e1306c; }
.social-btn.tiktok:hover    { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); color: #fff; }
.social-btn.facebook:hover  { background: rgba(24,119,242,.1); border-color: rgba(24,119,242,.4); color: #1877f2; }
.footer-copy { font-size: 12.5px; color: var(--muted); }
.footer-copy a, footer a { color: var(--gold); }
footer p { font-size: 13px; color: var(--muted); }

/* ============================================
   RESPONSIVE — TABLET (≤768px)
   ============================================ */
   @media (max-width: 768px) {
    .filters {
      position: sticky;
      padding: 10px 14px;
    }
  
    /* OCULTAR SOLO LA BÚSQUEDA DE DESKTOP */
    .filters-row1 > div:first-child {
      display: none !important;
    }
  
    /* MANTENER VISIBLE "ORDENAR POR" Y LIMPIAR */
    .filters-row1 {
      display: flex !important;
      flex-wrap: wrap;
      gap: 12px;
      margin-bottom: 12px;
    }
  
    .filters-row1 > div:nth-child(2) {
      flex: 1;
      min-width: 200px;
    }
  
    /* MOSTRAR LA BÚSQUEDA DE MOBILE */
    .filters-row-mobile {
      display: block;
      margin-bottom: 12px;
    }
  
    .hero {
      padding: 40px 20px 36px;
      min-height: 300px;
    }
  
    .hero-features {
      gap: 20px;
    }
    .catalog {
      padding: 20px 14px 48px;
    }
  
    .grid {
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }
  
    .ftab {
      padding: 6px 13px;
      font-size: 12px;
    }
  
    .social-buttons {
      gap: 8px;
    }
  
    .social-btn {
      padding: 7px 13px;
      font-size: 12px;
    }
  }
/* ============================================
   RESPONSIVE — MOBILE (≤480px)
   ============================================ */
@media (max-width: 480px) {

  /* ── Header compacto ── */
  header { padding: 0 14px; }

  .header-inner { height: 56px; gap: 8px; }

  /* Ocultar texto del logo, mantener solo el círculo FS */
  .logo-text { display: none; }

  /* Admin: solo icono */
  .btn-admin span { display: none; }
  .btn-admin { padding: 8px 10px; gap: 0; }

  /* WhatsApp: solo el círculo verde con el icono */
  .btn-wa {
    width: 38px; height: 38px;
    padding: 0;
    justify-content: center;
    flex-shrink: 0;
  }
  .btn-wa-text { display: none; }

  /* Filtros */
  .filters { top: 56px; padding: 8px 12px; }

  /* Tabs sin scroll horizontal visible */
  .filter-tabs { gap: 6px; margin-top: 8px; }
  .ftab { padding: 6px 12px; font-size: 11.5px; }

  /* Sort + clear en mobile */
  .filters-row-sort-mobile {
    gap: 6px;
    margin-bottom: 6px;
  }
  .fsort-label { font-size: 11px; }
  .fselect { font-size: 12px; padding: 9px 10px; }
  .btn-clear { padding: 8px 10px; font-size: 11px; }
  .fselect { font-size: 12px; padding: 9px 10px; }
  .btn-fclear { font-size: 12px; padding: 9px 12px; }

  /* ── Grilla 2 columnas móviles ── */
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }

  /* ── Carrito Full Screen ── */
  .cart-drawer { max-width: 100% !important; border-left: none; }

  /* Grid */
  .catalog { padding: 16px 10px 60px; }

  /* Hero */
  .hero-features { gap: 14px; }
  .hfeat-icon { width: 36px; height: 36px; font-size: 16px; }

  /* Cart drawer: bottom sheet */
  .cart-drawer {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 20px 20px 0 0 !important;
    bottom: 0 !important; top: auto !important;
    height: 88vh !important;
    right: 0 !important;
    transform: translateY(100%) !important;
    transition: transform .3s cubic-bezier(.4,0,.2,1) !important;
  }
  .cart-drawer.open { transform: translateY(0) !important; }

  .cart-header {
    padding: 16px 16px 12px !important;
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .cart-header::before {
    content: '';
    display: block;
    width: 40px; height: 4px;
    background: rgba(255,255,255,.15);
    border-radius: 2px;
    margin: 0 auto 12px;
    order: -1;
  }
  .cart-item      { padding: 10px 12px !important; gap: 10px !important; }
  .cart-item-img  { width: 52px !important; height: 52px !important; flex-shrink: 0; }
  .cart-item-nombre { font-size: 13px !important; }
  .cart-item-marca  { font-size: 11px !important; }
  .cart-item-size   { font-size: 12px !important; }
  .cart-qty-btn  { width: 34px !important; height: 34px !important; font-size: 18px !important; }
  .cart-qty-num  { font-size: 14px !important; min-width: 20px; text-align: center; }
  .cart-footer   { padding: 14px 16px !important; gap: 10px !important; }
  .btn-cart-wa   { font-size: 14px !important; padding: 14px !important; }
  .btn-cart-clear{ font-size: 13px !important; padding: 11px !important; }

  #undo-toast { bottom: 72px; }
  #toast       { bottom: 140px; }
}

/* ============================================
   RESPONSIVE — SMALL (≤380px)
   ============================================ */
@media (max-width: 380px) {
  .grid { grid-template-columns: 1fr; }
}

/* ── LIST VIEW (Client Toggle) ── */
.grid.list-view {
  grid-template-columns: 1fr !important;
}
.grid.list-view .pcard {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.grid.list-view .card-img {
  width: 110px;
  height: 110px;
  aspect-ratio: 1;
  flex-shrink: 0;
  border-radius: 12px 0 0 12px;
}
/* En lista la foto mide 110 px: el aviso "en tu pedido" va sobre la franja de ahorro. */
.grid.list-view .card-in-cart { top: auto; bottom: 28px; right: 6px; padding: 2px 8px; }
.grid.list-view .card-body {
  padding: 12px 14px;
  flex: 1;
}
.grid.list-view .card-pills {
  margin-top: 6px;
}

/* ============================================
   DRIVER.JS — FITOSCENTS THEME
   ============================================ */

/* ── Popover container ── */
.driver-popover.driverjs-theme {
  background: #1a1814 !important;
  color: #ede9e1 !important;
  border: 1px solid rgba(201,168,76,.35) !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 36px rgba(0,0,0,.85) !important;
  font-family: 'Poppins', sans-serif !important;
  padding: 18px 20px !important;
  max-width: 300px !important;
  min-width: 240px !important;
  text-align: center !important;
}

/* ── Title ── */
.driver-popover.driverjs-theme .driver-popover-title {
  all: unset !important;
  display: block !important;
  color: #c9a84c !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  margin: 0 0 10px 0 !important;
  padding: 0 24px !important;
  text-align: center !important;
  border: none !important;
}

/* ── Description ── */
.driver-popover.driverjs-theme .driver-popover-description {
  all: unset !important;
  display: block !important;
  color: rgba(237,233,225,.85) !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
}

/* ── Close (×) button ── */
.driver-popover.driverjs-theme .driver-popover-close-btn {
  all: unset !important;
  position: absolute !important;
  top: 12px !important;
  right: 14px !important;
  width: 24px !important;
  height: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  color: #8a8880 !important;
  cursor: pointer !important;
  border-radius: 6px !important;
  transition: all .15s !important;
  z-index: 2 !important;
}
.driver-popover.driverjs-theme .driver-popover-close-btn:hover {
  color: #ede9e1 !important;
  background: rgba(255,255,255,.08) !important;
}

/* ── Footer (progress + buttons) ── */
.driver-popover.driverjs-theme .driver-popover-footer {
  all: unset !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-top: 16px !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  gap: 10px !important;
}

/* ── Progress text ── */
.driver-popover.driverjs-theme .driver-popover-progress-text {
  color: #8a8880 !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
}

/* ── Navigation buttons container ── */
.driver-popover.driverjs-theme .driver-popover-navigation-btns {
  all: unset !important;
  display: flex !important;
  gap: 6px !important;
}

/* ── Prev / Next buttons ── */
.driver-popover.driverjs-theme .driver-popover-prev-btn,
.driver-popover.driverjs-theme .driver-popover-next-btn {
  all: unset !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 7px 14px !important;
  border-radius: 8px !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all .15s !important;
  white-space: nowrap !important;
}
.driver-popover.driverjs-theme .driver-popover-prev-btn {
  background: rgba(255,255,255,.06) !important;
  color: #8a8880 !important;
  border: 1px solid rgba(255,255,255,.1) !important;
}
.driver-popover.driverjs-theme .driver-popover-prev-btn:hover {
  background: rgba(255,255,255,.1) !important;
  color: #ede9e1 !important;
}
.driver-popover.driverjs-theme .driver-popover-next-btn {
  background: rgba(201,168,76,.15) !important;
  color: #c9a84c !important;
  border: 1px solid rgba(201,168,76,.35) !important;
}
.driver-popover.driverjs-theme .driver-popover-next-btn:hover {
  background: rgba(201,168,76,.25) !important;
  color: #e0b95a !important;
}

/* ── Arrow ── */
.driver-popover.driverjs-theme .driver-popover-arrow {
  display: none !important;
}

/* ── Footer Tour Button ── */
.footer-tour-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.07);
  color: #8a8880;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  margin-top: 14px;
  transition: all .2s;
  font-family: 'Poppins', sans-serif;
}
.footer-tour-btn:hover {
  border-color: rgba(201,168,76,.3);
  color: #c9a84c;
  background: rgba(201,168,76,.12);
}

@media (min-width: 860px) {
  #modal .modal-actions { margin: 0 -28px; padding-left: 28px; padding-right: 28px; }
}

/* ── Paquete sorpresa (Calaverita) ──────────────────────────── */
.sorpresa-caja {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 10px; padding: 12px 14px;
  border: 1px dashed var(--gold-b); border-radius: 10px;
  background: var(--gold-s);
}
.sorpresa-caja > i { font-size: 26px; color: var(--gold); line-height: 1; }
.sorpresa-caja strong { display: block; font-size: 14px; color: var(--text); margin-bottom: 3px; }
.sorpresa-caja span { display: block; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.sorpresa-caja .sorpresa-extra { margin-top: 6px; color: var(--gold); font-weight: 600; }
.cart-precio-antes { color: var(--muted); font-weight: 400; }
.cart-precio-extra { color: var(--gold); }
.cart-nota-extra, .cart-item-extra { font-size: 10.5px; color: var(--gold); }
.cart-item-extra { margin-top: 2px; }
.cart-item-caldero { margin-top: 2px; font-size: 10.5px; color: var(--text-faint); }

/* Las tarjetas ahora son links a la página de cada perfume (antes abrían un modal). */
a.pcard { display: block; color: inherit; text-decoration: none; }
a.pcard:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
