/* ==========================================================
   MAU STORE — Tienda (mobile-first)
   ========================================================== */
body { background: var(--mau-blanco); padding-bottom: calc(68px + var(--safe-bottom)); }
body.bloqueado { overflow: hidden; }

/* ---------- Cabecera ---------- */
.st-header {
  position: sticky; top: 0; z-index: 50; background: #fff;
  box-shadow: 0 1px 0 var(--mau-borde);
}
/* Tres columnas iguales a los lados: "Mau Store" queda siempre en el centro exacto */
.st-topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .25rem; padding: .5rem .75rem 0; }
.st-logo-caja { justify-self: start; position: relative; }
/* El logo es el botón del menú: una insignia con las tres rayas lo indica */
.st-logo { position: relative; display: inline-flex; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; -webkit-tap-highlight-color: transparent; transition: transform .15s; }
.st-logo:active { transform: scale(.94); }
.st-logo:focus-visible { outline: 2px solid var(--mau-fucsia); outline-offset: 2px; }
.st-logo img { height: 40px; width: auto; }
.st-logo-hamb {
  position: absolute; right: -4px; bottom: -3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--mau-fucsia); border: 2px solid #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1.6px;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.st-logo-hamb i { display: block; width: 8px; height: 1.5px; border-radius: 1px; background: #fff; transition: transform .2s, opacity .2s; }
.st-logo[aria-expanded="true"] .st-logo-hamb i:nth-child(1) { transform: translateY(3.1px) rotate(45deg); }
.st-logo[aria-expanded="true"] .st-logo-hamb i:nth-child(2) { opacity: 0; }
.st-logo[aria-expanded="true"] .st-logo-hamb i:nth-child(3) { transform: translateY(-3.1px) rotate(-45deg); }
.st-menu {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 60; min-width: 200px; padding: .8rem .6rem .5rem;
  background: #fff; border-radius: var(--radio); box-shadow: 0 10px 30px rgba(0,0,0,.16), 0 0 0 1px var(--mau-borde);
  transform-origin: top left; animation: menuEntrar .2s ease-out;
}
.st-menu::before { content: ""; position: absolute; top: -6px; left: 14px; width: 12px; height: 12px; background: #fff; transform: rotate(45deg); box-shadow: -1px -1px 0 var(--mau-borde); }
.st-menu.saliendo { animation: menuSalir .15s ease-in forwards; }
@keyframes menuEntrar { from { opacity: 0; transform: translateY(-6px) scale(.96); } }
@keyframes menuSalir { to { opacity: 0; transform: translateY(-6px) scale(.96); } }
.st-menu-titulo { margin: 0 .4rem .35rem; font: 700 22px/1.1 'Mau Script', 'Brush Script MT', cursive; color: var(--mau-fucsia); }
.st-menu-lista a {
  display: flex; align-items: center; gap: .65rem; padding: .6rem .5rem; border-radius: var(--radio-sm);
  color: var(--mau-texto); text-decoration: none; font-weight: 600; font-size: 16px; transition: background .15s, color .15s;
}
.st-menu-lista a svg { width: 22px; height: 22px; flex: none; }
.st-menu-lista a:hover, .st-menu-lista a:focus-visible { background: var(--mau-rosa); color: var(--mau-fucsia); }
/* "Mau Store" dorado con sombra, como las letras del logo */
.st-marca {
  justify-self: center; text-decoration: none;
  font: 700 clamp(24px, 7.5vw, 38px)/1.25 'Mau Script', 'Brush Script MT', cursive; white-space: nowrap; padding: .35rem .1rem 0;
  background: linear-gradient(180deg, #F8E58C 0%, #E9C75A 35%, #C9A02E 60%, #9C7418 85%, #E8C964 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(120, 85, 10, .55)) drop-shadow(0 2px 2px rgba(0, 0, 0, .25));
}
.st-marca-s { position: relative; }
.st-corona { position: absolute; left: -.05em; top: -.42em; width: .6em; height: .4em; }
.st-redes-caja { justify-self: end; display: flex; flex-direction: column; align-items: flex-end; }
.st-siguenos { font: 700 17px/1 'Mau Script', 'Brush Script MT', cursive; color: var(--mau-fucsia); margin: 0 .55rem -.1rem 0; }
.st-social { display: flex; gap: .1rem; }
.st-social a { color: var(--mau-texto); width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.st-social a:hover { color: var(--mau-fucsia); background: var(--mau-rosa); }
.st-social svg { width: 22px; height: 22px; }

.st-buscador { position: relative; padding: .5rem .75rem; }
.st-buscador input { padding-left: 2.5rem; border-radius: 999px; background: var(--mau-humo); border-color: transparent; }
.st-buscador input:focus { background: #fff; }
.st-buscador-icono { position: absolute; left: 1.6rem; top: 50%; transform: translateY(-50%); color: var(--mau-gris); pointer-events: none; display: flex; }
.st-buscador-icono svg { width: 18px; height: 18px; }

.st-cats, .st-subcats {
  display: flex; gap: .5rem; overflow-x: auto; padding: .25rem .75rem .6rem;
  scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.st-cats::-webkit-scrollbar, .st-subcats::-webkit-scrollbar { display: none; }
.st-cats .chip, .st-subcats .chip { scroll-snap-align: start; flex: none; }
.st-subcats { padding-top: 0; }
.st-subcats .chip { min-height: 32px; font-size: 13px; background: var(--mau-rosa); border-color: transparent; color: var(--mau-fucsia-osc); }
.st-subcats .chip.activo { background: var(--mau-fucsia-osc); color: #fff; }

/* ---------- Banners ---------- */
.st-banner { padding: .75rem 1rem; font-size: 14px; display: flex; gap: .75rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.st-banner-aviso { background: #FEF3C7; color: #92400E; justify-content: center; text-align: center; }
.st-banner-ok { background: #DCFCE7; color: #14532D; }
.st-banner .btn { min-height: 36px; }

/* ---------- Grilla ---------- */
.st-main { padding: .75rem; max-width: 1200px; margin: 0 auto; }
.st-titulo { display: flex; align-items: baseline; justify-content: space-between; margin: .25rem .1rem .75rem; }
.st-titulo h1 { font-size: 18px; margin: 0; }
.st-titulo .muted { font-size: 13px; }

.st-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem .6rem; }
.st-card {
  position: relative;
  background: #fff; border-radius: var(--radio); overflow: hidden; cursor: pointer; text-align: left;
  border: none; padding: 0; font: inherit; color: inherit; display: flex; flex-direction: column;
  -webkit-tap-highlight-color: transparent;
}
.st-card-foto { position: relative; aspect-ratio: 3 / 4; background: var(--mau-humo); border-radius: var(--radio); overflow: hidden; }
.st-card-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
/* Varias fotos: tira que se desliza sola (store.js → girar) */
.st-card-fotos { display: flex; height: 100%; transition: transform .65s cubic-bezier(.65, 0, .35, 1); will-change: transform; }
.st-card-fotos img { flex: 0 0 100%; }
.st-card:hover .st-card-foto img { transform: scale(1.03); }
.st-card-insignias { position: absolute; top: .5rem; left: .5rem; display: flex; flex-direction: column; gap: .25rem; align-items: flex-start; }
.st-card.agotado .st-card-foto img { opacity: .55; filter: grayscale(.4); }
.st-card-info { padding: .5rem .15rem 0; }
.st-card-nombre {
  font-size: 13.5px; margin: 0 0 .2rem; font-weight: 500;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em;
}
.st-card-precio { font-size: 15px; }
.st-card-colores { display: flex; gap: 4px; margin-top: .3rem; }
.st-card-colores span { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }

.st-card-skeleton .st-card-foto { aspect-ratio: 3 / 4; }
.st-card-skeleton .l1 { height: 12px; margin: .6rem .15rem .35rem; width: 85%; }
.st-card-skeleton .l2 { height: 14px; margin: 0 .15rem; width: 45%; }

#sentinela { height: 1px; }
.st-cargar-mas { display: flex; justify-content: center; padding: 1rem 0; }

/* ---------- Footer ---------- */
.st-footer { background: var(--mau-humo); padding: 1.5rem 1rem 1rem; text-align: center; margin-top: 1.5rem; font-size: 14px; }
.st-footer-logo { margin: 0 auto .5rem; height: 56px; width: auto; }
.st-footer p { margin: .35rem 0; }
.st-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1rem; margin: .75rem 0; }
.st-legal a { color: var(--mau-texto); font-size: 13px; }
.st-pagos { font-size: 13px; }

/* ---------- Barra inferior ---------- */
.st-bottom {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: #fff; border-top: 1px solid var(--mau-borde);
  padding-bottom: var(--safe-bottom);
}
.st-bottom button, .st-bottom a {
  background: none; border: none; height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font: 500 11px var(--fuente); color: var(--mau-gris); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.st-bottom button svg, .st-bottom a svg { width: 24px; height: 24px; }
.st-bottom a { text-decoration: none; }
.st-bottom a.hidden { display: none; }
.st-contacto { color: #128C4A !important; }
.st-bottom button.activo { color: var(--mau-fucsia); }
.st-bolsa { position: relative; display: inline-flex; }
.st-contador {
  position: absolute; top: -6px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--mau-fucsia); color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.st-contador.rebote { animation: rebote .4s; }
@keyframes rebote { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.35); } }

/* ---------- Velo + hojas ---------- */
.st-velo { position: fixed; inset: 0; background: rgba(17, 24, 39, .45); z-index: 80; animation: fadeIn .2s; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes subir { from { transform: translateY(100%); } }
@keyframes entrarDerecha { from { transform: translateX(100%); } }

/* ---------- Ficha de producto ---------- */
.st-ficha {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: #fff;
  max-height: 94vh; max-height: 94dvh; overflow-y: auto; border-radius: 18px 18px 0 0;
  animation: subir .25s ease-out; overscroll-behavior: contain;
  padding-bottom: calc(1rem + var(--safe-bottom));
}
.st-ficha-cerrar {
  position: absolute; top: .6rem; right: .6rem; z-index: 3; background: rgba(255,255,255,.92);
  box-shadow: var(--sombra);
}
.st-galeria { position: relative; }
.st-galeria-pista {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.st-galeria-pista::-webkit-scrollbar { display: none; }
.st-galeria-pista button { flex: 0 0 100%; scroll-snap-align: center; border: none; padding: 0; background: var(--mau-humo); cursor: zoom-in; }
.st-galeria-pista img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; max-height: 62vh; }
.st-puntos { position: absolute; bottom: .6rem; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.st-puntos span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.7); box-shadow: 0 0 0 1px rgba(0,0,0,.1); transition: all .2s; }
.st-puntos span.activo { background: var(--mau-fucsia); width: 18px; border-radius: 4px; }

.st-ficha-cuerpo { padding: 1rem; }
.st-ficha-cuerpo h2 { font-size: 19px; margin-bottom: .25rem; }
.st-ficha-precio { font-size: 22px; margin: 0 0 .75rem; }
.st-ficha-desc { color: #4B5563; font-size: 14px; margin: 0 0 1rem; }
.st-opcion { margin-bottom: 1rem; }
.st-opcion-titulo { font-size: 14px; font-weight: 600; margin-bottom: .45rem; display: flex; justify-content: space-between; }
.st-opcion-titulo .muted { font-weight: 400; }
.st-swatches, .st-tallas { display: flex; flex-wrap: wrap; gap: .5rem; }
.st-swatch {
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--mau-borde);
  cursor: pointer; position: relative; padding: 0;
}
.st-swatch.activo { box-shadow: 0 0 0 2px var(--mau-fucsia); }
.st-swatch:disabled { opacity: .35; cursor: not-allowed; }
.st-swatch:disabled::after { content: ""; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 2px; background: var(--mau-error); transform: translateX(-50%) rotate(45deg); }
.st-tallas .chip { min-width: 48px; justify-content: center; min-height: 40px; }
.st-quedan { color: var(--mau-aviso); font-weight: 600; font-size: 13px; }
.st-cantidad { display: inline-flex; align-items: center; border: 1px solid var(--mau-borde); border-radius: 999px; }
.st-cantidad button { width: 40px; height: 40px; border: none; background: none; cursor: pointer; color: var(--mau-texto); display: flex; align-items: center; justify-content: center; }
.st-cantidad button:disabled { opacity: .3; }
.st-cantidad button svg { width: 18px; height: 18px; }
.st-cantidad span { min-width: 32px; text-align: center; font-weight: 600; }
.st-ficha-acciones { display: flex; gap: .75rem; align-items: center; position: sticky; bottom: 0; background: #fff; padding: .75rem 0 0; }
.st-ficha-acciones .btn-primario { flex: 1; }

/* ---------- Zoom ---------- */
.st-zoom { position: fixed; inset: 0; z-index: 120; background: #000; display: flex; align-items: center; justify-content: center; }
.st-zoom-contenedor { width: 100%; height: 100%; overflow: auto; touch-action: pinch-zoom pan-x pan-y; display: flex; align-items: center; justify-content: center; }
.st-zoom img { max-width: none; width: 100%; max-width: 900px; height: auto; }
.st-zoom .btn-icono { position: absolute; top: calc(.75rem + env(safe-area-inset-top, 0px)); right: .75rem; background: rgba(255,255,255,.9); color: var(--mau-texto); }

/* ---------- Carrito ---------- */
.st-carrito {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 95; width: 100%; max-width: 440px;
  background: #fff; display: flex; flex-direction: column; animation: entrarDerecha .25s ease-out;
}
.st-carrito-cabecera { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1rem; border-bottom: 1px solid var(--mau-borde); }
.st-carrito-cabecera h2 { font-size: 18px; margin: 0; }
.st-carrito-cuerpo { flex: 1; overflow-y: auto; padding: 1rem; overscroll-behavior: contain; }
.st-carrito-pie { border-top: 1px solid var(--mau-borde); padding: .75rem 1rem calc(.75rem + var(--safe-bottom)); background: #fff; }
.st-aviso-cambios { background: #FEF3C7; color: #92400E; border-radius: var(--radio-sm); padding: .6rem .8rem; font-size: 13px; margin-bottom: 1rem; }
.st-aviso-cambios ul { margin: .25rem 0 0; padding-left: 1.1rem; }
.st-item { display: grid; grid-template-columns: 72px 1fr; gap: .75rem; padding: .75rem 0; border-bottom: 1px solid var(--mau-borde); }
.st-item img { width: 72px; height: 96px; object-fit: cover; border-radius: var(--radio-sm); background: var(--mau-humo); }
.st-item h3 { font-size: 14px; font-weight: 600; margin: 0 0 .15rem; }
.st-item .muted { font-size: 13px; }
.st-item-fila { display: flex; align-items: center; justify-content: space-between; margin-top: .4rem; }
.st-item .st-cantidad button { width: 34px; height: 34px; }
.st-item.no-disponible { opacity: .55; }
.st-totales { display: flex; justify-content: space-between; align-items: baseline; margin: .25rem 0; }
.st-totales strong { font-size: 18px; }
.st-envio-nota { font-size: 13px; color: var(--mau-gris); margin: 0 0 .75rem; }
.st-form-entrega { margin-top: 1.25rem; }
.st-form-entrega h3 { font-size: 15px; margin-bottom: .75rem; }

/* Envío y pago */
.st-opciones { border: 0; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.st-opciones legend { font-weight: 600; font-size: 14px; margin-bottom: .5rem; padding: 0; }
.st-opcion { display: flex; gap: .65rem; align-items: flex-start; padding: .7rem .8rem; min-height: 44px;
  border: 1px solid var(--mau-borde); border-radius: var(--radio); background: #fff; cursor: pointer; }
.st-opcion input { margin-top: .2rem; accent-color: var(--mau-fucsia); flex: none; width: 18px; height: 18px; }
.st-opcion span { display: grid; gap: .15rem; }
.st-opcion small { color: var(--mau-gris); font-size: 12.5px; line-height: 1.35; }
.st-opcion:has(input:checked) { border-color: var(--mau-fucsia); background: var(--mau-rosa); }
.st-opcion:has(input:focus-visible) { outline: 2px solid var(--mau-fucsia); outline-offset: 2px; }
.st-opciones-compactas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.st-opciones-compactas legend { grid-column: 1 / -1; }
.st-opciones-compactas .error-campo, .st-opciones-compactas p { grid-column: 1 / -1; }
.st-por-whatsapp { margin: -.25rem 0 1rem; }
/* Elegida una opción, el grupo se pliega: queda solo la elegida y el botón «Cambiar» */
.st-cambiar { display: none; justify-self: end; grid-column: 1 / -1; border: none; background: none; padding: .2rem 0; cursor: pointer;
  font: 600 13px var(--fuente); color: var(--mau-fucsia); text-decoration: underline; text-underline-offset: 3px; }
.st-opciones.plegado { grid-template-columns: 1fr; }
.st-opciones.plegado .st-opcion:not(:has(input:checked)) { display: none; }
.st-opciones.plegado .st-cambiar { display: block; margin-top: -.15rem; }
.st-opciones.plegado .st-opcion { animation: aparecer .2s ease-out; cursor: pointer; }
.st-opciones:not(.plegado) .st-opcion:not(:has(input:checked)) { animation: aparecer .22s ease-out; }
.st-pago { display: grid; gap: .75rem; margin-bottom: 1rem; }
.st-pago-nota { display: flex; gap: .5rem; align-items: center; font-size: 13.5px; background: var(--mau-humo);
  border-radius: var(--radio); padding: .7rem .8rem; margin: 0 0 1rem; }
.st-pago-nota svg { width: 18px; height: 18px; color: #25D366; flex: none; }
.st-datos-pago { display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  border: 1px dashed var(--mau-fucsia); border-radius: var(--radio); padding: .75rem .9rem; background: #fff; }
.st-datos-pago > div { display: grid; gap: .1rem; min-width: 0; }
.st-datos-pago strong { font-size: 17px; letter-spacing: .5px; overflow-wrap: anywhere; }
.st-datos-pago .muted { font-size: 12.5px; }
.st-etiqueta { display: block; font-weight: 600; font-size: 14px; margin-bottom: .4rem; }
.st-subir { position: relative; }
.st-comprobante { display: flex; align-items: center; gap: .75rem; }
.st-comprobante img { width: 72px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid var(--mau-borde); }
.st-form-fila { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.st-turnstile { margin: .5rem 0 1rem; min-height: 20px; font-size: 12px; color: var(--mau-gris); }

/* ---------- Páginas legales ---------- */
.st-legal-pagina { max-width: 720px; margin: 0 auto; padding: 1rem; }
.st-legal-pagina h1 { font-size: 22px; margin: .5rem 0 1rem; }
.st-legal-pagina p { margin: 0 0 .9rem; color: #374151; }
.st-volver { display: inline-flex; align-items: center; gap: .25rem; text-decoration: none; color: var(--mau-texto); font-weight: 600; }
.st-volver svg { width: 18px; height: 18px; }

/* ---------- Carruseles por categoría ---------- */
@font-face { font-family: 'Mau Script'; src: url('../../assets/fonts/dancing-script-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
.st-seccion { margin: 0 0 1.6rem; }
.st-seccion-cab { display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem; margin: 0 .1rem .6rem; }
.st-banner-cat {
  margin: 0; padding: .1rem 1.1rem .3rem; border-radius: 10px; color: #fff; min-width: 0;
  font: 700 30px/1.2 'Mau Script', 'Brush Script MT', cursive; letter-spacing: .01em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .18); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 7px), linear-gradient(135deg, #E25A88, var(--mau-fucsia));
  box-shadow: 0 2px 8px rgba(212, 66, 116, .25);
}
.st-banner-portada { display: block; text-align: center; font-size: 40px; padding: .5rem 1rem .7rem; margin: .25rem 0 1.1rem; }
.st-seccion-titulo { margin: 0; font-size: 17px; }
.st-ver-mas { flex: none; border: none; background: none; padding: .4rem 0 .4rem .4rem; font: 600 14px var(--fuente); color: var(--mau-fucsia); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* 2,5 productos en el celular; el que se corta se desvanece a la derecha */
.st-carrusel {
  --gap: .6rem;
  display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; margin: 0 -.75rem; padding: 0 .75rem; scroll-padding: 0 .75rem;
}
.st-carrusel::-webkit-scrollbar { display: none; }
/* scroll-snap-stop: al deslizar con el dedo avanza de a un producto */
.st-carrusel > .st-card { flex: 0 0 calc((100% - 2 * var(--gap)) / 2.5); scroll-snap-align: start; scroll-snap-stop: always; }
.st-carrusel.hay-mas {
  -webkit-mask-image: linear-gradient(to right, #000 78%, transparent);
  mask-image: linear-gradient(to right, #000 78%, transparent);
}

.st-carrusel-caja { position: relative; }
.st-flecha {
  display: none; position: absolute; z-index: 2; top: 38%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--mau-borde); padding: 0; cursor: pointer;
  background: rgba(255, 255, 255, .95); color: var(--mau-fucsia); box-shadow: var(--sombra-lg, 0 4px 14px rgba(0, 0, 0, .15));
  align-items: center; justify-content: center; transition: background .15s, color .15s;
}
.st-flecha svg { width: 22px; height: 22px; }
.st-flecha:hover { background: var(--mau-fucsia); color: #fff; }
.st-flecha-izq { left: -12px; }
.st-flecha-izq svg { transform: scaleX(-1); }
.st-flecha-der { right: -12px; }
/* Solo con mouse (computador) y cuando hay más productos de los que caben */
@media (hover: hover) and (pointer: fine) {
  .st-carrusel-caja.con-flechas .st-flecha { display: inline-flex; }
}

/* Vista Categorías: tarjetas con foto y franja rosada con el nombre */
.st-cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem .6rem; }
.st-cat-tarjeta {
  position: relative; display: block; padding: 0; border: none; cursor: pointer; overflow: hidden;
  aspect-ratio: 3 / 4; border-radius: var(--radio); background: var(--mau-rosa); box-shadow: 0 2px 8px rgba(212, 66, 116, .15);
}
.st-cat-tarjeta img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.st-cat-tarjeta:hover img { transform: scale(1.04); }
.st-cat-nombre {
  position: absolute; left: 0; right: 0; bottom: 0; padding: .45rem .5rem .55rem; text-align: center; color: #fff;
  font: 700 23px/1.15 'Mau Script', 'Brush Script MT', cursive; text-shadow: 0 1px 2px rgba(0, 0, 0, .2);
  background: linear-gradient(135deg, rgba(226, 90, 136, .94), rgba(212, 66, 116, .94));
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

@media (max-width: 360px) {
  .st-topbar { padding: .4rem .5rem 0; }
  .st-logo img { height: 34px; }
  .st-social a { width: 34px; height: 34px; }
  .st-social svg { width: 19px; height: 19px; }
  .st-siguenos { font-size: 15px; }
}

/* ---------- Transiciones suaves (cortas para que la página no se sienta lenta) ---------- */
@keyframes fadeOut { to { opacity: 0; } }
@keyframes bajar { to { transform: translateY(100%); } }
@keyframes salirDerecha { to { transform: translateX(100%); } }
@keyframes aparecer { from { opacity: 0; transform: translateY(10px); } }
.st-velo.saliendo, .st-zoom.saliendo { animation: fadeOut .18s ease-in forwards; }
.st-ficha.saliendo { animation: bajar .22s ease-in forwards; }
.st-carrito.saliendo { animation: salirDerecha .22s ease-in forwards; }
.st-zoom { animation: fadeIn .18s ease-out; }
.anim-entrar { animation: aparecer .28s ease-out; }
.anim-suave { animation: fadeIn .22s ease-out; }
.st-grid > .st-card, .st-cat-tarjeta { animation: aparecer .3s ease-out backwards; }
.st-cat-tarjeta:nth-child(2n) { animation-delay: .04s; }
.st-subcats:not(.hidden) { animation: aparecer .2s ease-out; }
.st-banner:not(.hidden) { animation: aparecer .25s ease-out; }
.chip { transition: background-color .2s, color .2s, border-color .2s, transform .1s; }
.chip:active, .st-card-abrir:active, .st-cat-tarjeta:active { transform: scale(.97); }
.st-card-abrir, .st-cat-tarjeta { transition: transform .12s; }
.st-swatch { transition: box-shadow .15s, transform .15s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* ---------- Favoritos ---------- */
.st-card-abrir { display: flex; flex-direction: column; width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.st-card-abrir:focus-visible { outline: 2px solid var(--mau-fucsia); outline-offset: 2px; border-radius: var(--radio); }
.st-fav {
  position: absolute; top: .4rem; right: .4rem; z-index: 2; width: 34px; height: 34px; border-radius: 50%; padding: 0;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border: none;
  background: rgba(255, 255, 255, .92); color: var(--mau-texto); box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
  transition: color .15s, transform .1s; -webkit-tap-highlight-color: transparent;
}
.st-fav svg { width: 19px; height: 19px; }
.st-fav:active { transform: scale(.88); }
.st-fav.activo { color: var(--mau-fucsia); }
.st-fav.activo svg { fill: currentColor; animation: latido .35s ease-out; }
@keyframes latido { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
.st-ficha-titulo { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.st-ficha-titulo .st-fav { position: static; flex: none; width: 40px; height: 40px; box-shadow: none; border: 1px solid var(--mau-borde); }
.st-ficha-titulo .st-fav svg { width: 22px; height: 22px; }

/* Carrusel de Favoritos del inicio: se despliega (alto 0 → automático) y aparece con fundido */
/* La altura la anima store.js (desplegarCaja); el resto de la página se desplaza con ella */
.st-fav-caja { height: 0; overflow: hidden; opacity: 0; transition: height .55s cubic-bezier(.4, 0, .2, 1), opacity .5s ease .1s;
  margin: 0 -.75rem; padding: 0 .75rem; } /* el recorte no debe cortar el carrusel, que llega al borde */
.st-fav-caja.visible { opacity: 1; }
/* Producto recién guardado: aparece lento de transparente a visible */
.st-fav-nuevo { animation: fadeIn 1.4s ease-out; }

/* ---------- Escritorio ---------- */
@media (min-width: 768px) {
  .st-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem 1rem; }
  .st-topbar, .st-buscador, .st-cats, .st-subcats { max-width: 1200px; margin: 0 auto; }
  .st-ficha { left: 50%; right: auto; top: 50%; bottom: auto; transform: translate(-50%, -50%); width: min(920px, 94vw); max-height: 90vh; border-radius: 18px; animation: fichaEntrarPC .22s ease-out; display: grid; grid-template-columns: 1.1fr 1fr; padding-bottom: 0; }
  .st-ficha.saliendo { animation: fichaSalirPC .18s ease-in forwards; }
  .st-galeria-pista img { max-height: 90vh; }
  .st-ficha-cuerpo { padding: 1.5rem; overflow-y: auto; max-height: 90vh; }
  .st-ficha-acciones { position: static; }
}
@media (min-width: 768px) {
  .st-carrusel { --gap: 1rem; margin: 0; padding: 0; scroll-padding: 0; }
  .st-cat-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem 1rem; }
  .st-fav-caja { margin: 0 -16px; padding: 0 16px; }
  .st-cat-nombre { font-size: 27px; }
  .st-carrusel > .st-card { flex-basis: calc((100% - 3 * var(--gap)) / 4); }
  .st-carrusel.hay-mas { -webkit-mask-image: linear-gradient(to right, #000 90%, transparent); mask-image: linear-gradient(to right, #000 90%, transparent); }
  .st-banner-cat { font-size: 34px; }
}
@media (min-width: 1100px) {
  .st-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .st-bottom { left: auto; right: 1.25rem; bottom: 1.25rem; grid-template-columns: repeat(5, 76px); border: 1px solid var(--mau-borde); border-radius: 999px; box-shadow: var(--sombra-lg); padding: 0 .5rem; }
  .st-bottom button, .st-bottom a { height: 56px; }
  #toasts { bottom: 6rem; }
}

@keyframes fichaEntrarPC { from { opacity: 0; transform: translate(-50%, -48%) scale(.97); } }
@keyframes fichaSalirPC { to { opacity: 0; transform: translate(-50%, -48%) scale(.97); } }
