/* ===== Tridimensional Chile — tema oscuro, colores del logo ===== */
/* Fuentes: se cargan desde <link> en partials/header.ejs (no con @import
   aquí), porque @import es render-blocking y retrasa su descubrimiento hasta
   que el navegador termina de parsear todo este archivo. */

:root {
  --bg: #0b0b0d; --bg-soft: #141417; --bg-card: #18181c; --line: #2a2a30;
  --text: #f4f4f6; --muted: #9a9aa4; --teal: #3aafbf; --yellow: #f4b73e; --pink: #e84a6b;
  --display: 'Bricolage Grotesque', sans-serif; --body: 'Hanken Grotesk', system-ui, sans-serif; --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--body);
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(58,175,191,.10), transparent 60%),
    radial-gradient(700px 400px at 0% 110%, rgba(232,74,107,.08), transparent 60%), var(--bg);
  color: var(--text); line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header */
header { border-bottom: 1px solid var(--line); background: rgba(11,11,13,.7); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 50; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand .name { font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.brand .tag { color: var(--muted); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 22px; font-weight: 500; }
.nav-links a:hover { color: var(--teal); }
.cart-pill { background: var(--bg-card); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; font-weight: 600; }
.cart-pill b { color: var(--yellow); }
.catbar { display: flex; gap: 18px; padding: 10px 20px; overflow-x: auto; border-top: 1px solid var(--line); }
.catlink { color: var(--muted); font-size: .9rem; white-space: nowrap; font-weight: 500; }
.catlink:hover { color: var(--text); }

/* Hero */
.hero { padding: 70px 0 10px; }
.hero h1 { font-family: var(--display); font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.02; letter-spacing: -.02em; font-weight: 800; }
.hero h1 .accent-t { color: var(--teal); } .hero h1 .accent-y { color: var(--yellow); } .hero h1 .accent-p { color: var(--pink); }
.hero p { color: var(--muted); max-width: 540px; margin-top: 16px; font-size: 1.05rem; }

/* Chips (categorias) */
.chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip { display: inline-block; background: var(--bg-card); border: 1px solid rgba(255,255,255,0.12); color: var(--text); padding: 6px 14px; border-radius: 999px; font-size: .88rem; font-weight: 500; cursor: pointer; transition: border-color .15s, color .15s; }
.chip:hover { border-color: var(--teal); color: var(--teal); }
.chip-on { background: var(--teal); color: #04141a; border-color: var(--teal); font-weight: 600; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-family: var(--body); font-weight: 600; font-size: .95rem; border: none; border-radius: 999px; padding: 12px 22px; transition: transform .15s ease, filter .15s ease; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-primary { background: var(--teal); color: #04141a; }
.btn-pink { background: var(--pink); color: #fff; }
.btn-ghost { background: var(--bg-card); border: 1px solid var(--line); color: var(--text); }
.btn-block { width: 100%; justify-content: center; }

/* Product grid */
.section-title { font-family: var(--display); font-weight: 700; font-size: 1.6rem; margin: 30px 0 18px; letter-spacing: -.01em; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s ease, transform .2s ease; }
.card:hover { border-color: var(--teal); transform: translateY(-3px); }
.card .thumb { aspect-ratio: 1/1; background: var(--bg-soft); display: grid; place-items: center; padding: 26px; }
.card .thumb img, .card .thumb video { width: 70%; height: 70%; object-fit: contain; }
.card .body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .body h3 { font-size: 1rem; font-weight: 600; }
.card .price { font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--yellow); margin-top: auto; }

/* Galeria producto */
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb-btn { width: 70px; height: 70px; border-radius: 10px; overflow: hidden; border: 2px solid var(--line); background: var(--bg-soft); cursor: pointer; padding: 0; }
.thumb-btn img, .thumb-btn video { width: 100%; height: 100%; object-fit: cover; }
.thumb-on { border-color: var(--teal); }

/* Media grid (admin) */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px,1fr)); gap: 10px; margin: 8px 0; }
.media-cell { position: relative; aspect-ratio: 1/1; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); }
.media-cell img, .media-cell video { width: 100%; height: 100%; object-fit: cover; }
.media-del { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: none; background: rgba(232,74,107,.9); color: #fff; cursor: pointer; font-size: .8rem; line-height: 1; }
.media-edit { position: absolute; bottom: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: none; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; font-size: .8rem; line-height: 1; }
.media-edit:hover { background: var(--teal); color: #04141a; }

/* Editor de imagenes (recortar/girar/renombrar) */
.me-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.7); display: grid; place-items: center; z-index: 1000; padding: 16px; }
.me-overlay[hidden] { display: none; }
.me-box { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; }
.me-box h3 { font-family: var(--display); margin-bottom: 14px; }
.me-canvas-wrap { position: relative; margin: 0 auto; background: repeating-conic-gradient(#00000022 0% 25%, transparent 0% 50%) 50% / 20px 20px; border-radius: 8px; overflow: hidden; touch-action: none; }
.me-canvas-wrap canvas { display: block; max-width: 100%; }
.me-crop { position: absolute; border: 2px dashed var(--teal); box-shadow: 0 0 0 2000px rgba(0,0,0,.45); cursor: move; }
.me-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.me-tools .btn { font-size: .82rem; padding: 8px 12px; }
.me-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* Generic / forms */
main { flex: 1; padding-bottom: 60px; }
.panel { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.auth-wrap { max-width: 420px; margin: 50px auto; }
.auth-wrap h1 { font-family: var(--display); font-size: 1.8rem; margin-bottom: 6px; }
.auth-wrap p.sub { color: var(--muted); margin-bottom: 22px; }
label { display: block; font-size: .85rem; color: var(--muted); margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], select {
  width: 100%; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--text); font-family: var(--body); font-size: 1rem;
}
input:focus, select:focus { outline: none; border-color: var(--teal); }
input[type=file] { font-family: var(--body); }
.form-foot { margin-top: 22px; }
.muted-link { color: var(--muted); font-size: .9rem; margin-top: 16px; display: block; text-align: center; }
.muted-link a { color: var(--teal); }

/* Cart / tables */
.line { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line .mini { width: 64px; height: 64px; background: var(--bg-soft); border-radius: 10px; display: grid; place-items: center; padding: 10px; overflow: hidden; }
.qty-form { display: flex; gap: 6px; align-items: center; }
.qty-form input { width: 64px; }
.qty-stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.qty-stepper .qbtn { width: 30px; height: 30px; border-radius: 50%; border: none; background: var(--bg-card); color: var(--text); font-size: 1.1rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.qty-stepper .qbtn:hover { background: var(--teal); color: #04141a; }
.qty-stepper .qbtn:disabled { opacity: .5; cursor: default; }
.qty-stepper .qval { min-width: 28px; text-align: center; font-weight: 600; }
.qbtn.shake { animation: shake .3s; }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-3px)} 75%{transform:translateX(3px)} }
.totals { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; }
.totals .grand { font-family: var(--display); font-size: 1.8rem; font-weight: 700; color: var(--yellow); }

/* Orders */
.order-row { display: flex; justify-content: space-between; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; background: var(--bg-card); transition: border-color .2s; }
.order-row:hover { border-color: var(--teal); }
.badge { font-size: .78rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; text-transform: capitalize; }
.b-pendiente { background: rgba(244,183,62,.15); color: var(--yellow); }
.b-pagado { background: rgba(58,175,191,.15); color: var(--teal); }
.b-enviado { background: rgba(58,175,191,.18); color: var(--teal); }
.b-listo_retiro { background: rgba(244,183,62,.18); color: var(--yellow); }
.b-entregado { background: rgba(80,200,120,.15); color: #6fd08c; }
.b-rechazado, .b-anulado { background: rgba(232,74,107,.15); color: var(--pink); }

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: 0; margin-top: 20px; }
.step { display: flex; gap: 14px; }
.step .dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); margin-top: 4px; flex-shrink: 0; }
.step.done .dot { background: var(--teal); border-color: var(--teal); }
.step .stem { width: 2px; flex: 1; background: var(--line); margin: 2px 7px; }
.step.done .stem { background: var(--teal); }
.step .label { padding-bottom: 22px; }
.step .label strong { display: block; }
.step .label span { color: var(--muted); font-size: .85rem; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: 10px; margin: 16px 0; font-weight: 500; }
.alert-success { background: rgba(58,175,191,.12); border: 1px solid var(--teal); color: var(--teal); }
.alert-error { background: rgba(232,74,107,.12); border: 1px solid var(--pink); color: var(--pink); }

/* Footer + redes */
footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .85rem; }
footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.social { display: flex; gap: 10px; }
.soc { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); transition: all .15s ease; }
.soc:hover { color: var(--text); border-color: var(--teal); transform: translateY(-2px); }

.result-icon { font-size: 3rem; }
.center { text-align: center; }
.mt { margin-top: 18px; }

/* Aviso de verificación de correo */
.verify-bar { background: rgba(244,183,62,.12); border-bottom: 1px solid rgba(244,183,62,.5); color: var(--yellow); }
.verify-bar { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 10px 16px; font-size: .9rem; }
.verify-bar button { background: transparent; border: 1px solid var(--yellow); color: var(--yellow); border-radius: 999px; padding: 5px 14px; cursor: pointer; font-size: .82rem; }
.verify-bar button:hover { background: var(--yellow); color: #1a1300; }

/* Aviso de plazo (checkout) */
.aviso-plazo { margin-top: 12px; padding: 10px 14px; background: var(--bg-soft); border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: 8px; color: var(--muted); font-size: .86rem; }

/* Textarea */
textarea:focus { outline: none; border-color: var(--teal); }
.linklike { background: none; border: none; color: var(--teal); cursor: pointer; padding: 0; font: inherit; text-decoration: underline; }

/* Footer */
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: .88rem; }
.footer-links a:hover { color: var(--text); }

/* Menú hamburguesa (oculto en escritorio) */
.nav-burger { display: none; cursor: pointer; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.nav-burger span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; }

/* ====== RESPONSIVO ====== */
@media (max-width: 860px) {
  .order-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 760px) {
  .container { padding: 0 16px; }
  /* min-height permite que el nav se expanda cuando el menú abre */
  .nav { min-height: 64px; height: auto; position: relative; flex-wrap: wrap; align-content: flex-start; }
  .brand .name { font-size: 1rem; }
  .brand img { width: 36px; height: 36px; }
  .nav-burger { display: flex; }
  .nav-links {
    display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 10px 0 14px; order: 3;
    /* fondo sólido para que no sea transparente sobre el contenido */
    background: var(--bg-card);
    border-top: 1px solid var(--line);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,.5);
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-links a, .nav-links form { width: 100%; }
  .nav-links a { padding: 12px 14px; border-radius: 10px; }
  .nav-links a:hover { background: var(--bg-soft); }
  .nav-links .cart-pill { text-align: center; }
  .nav-links .btn, .nav-links form button { width: 100%; justify-content: center; }
  /* Buscador en su propia fila antes de las categorías */
  .catbar { flex-wrap: wrap; gap: 8px 14px; padding: 10px 16px; }
  .search-form { order: -1; flex: 1 1 100%; margin-right: 0; border-color: var(--teal); }
  .search-form input[type=search] { width: 100%; }
  .hero { padding: 40px 0 6px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .section-title { font-size: 1.35rem; }
  /* Tablas/listas apiladas */
  .line { grid-template-columns: 52px 1fr !important; grid-auto-rows: auto; row-gap: 8px; }
  .line .mini { width: 52px; height: 52px; }
  .qty-form { grid-column: 1 / -1; }
  .panel { padding: 18px; }
  .panel [style*="grid-template-columns"]:not(.line) { grid-template-columns: 1fr !important; }
  .totals .grand { font-size: 1.5rem; }
  .order-row { flex-direction: row; gap: 10px; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 460px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2rem; }
  .chips { width: 100%; }
}


/* ===== v1.7: descuentos, variantes, WhatsApp ===== */
.card .thumb { position: relative; }
.card-disc { position: absolute; top: 10px; left: 10px; background: var(--pink); color: #fff; font-weight: 700; font-size: .8rem; padding: 3px 9px; border-radius: 999px; z-index: 2; }
.disc-badge { display: inline-block; background: var(--pink); color: #fff; font-weight: 700; font-size: .72rem; padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.price-old { color: var(--muted); text-decoration: line-through; font-weight: 500; }
.price .from { color: var(--muted); font-size: .8rem; font-weight: 500; }
.variant-tag { display: inline-block; background: var(--bg-soft); border: 1px solid var(--line); color: var(--muted); font-size: .78rem; padding: 2px 9px; border-radius: 999px; margin-top: 4px; }
.soc-wa:hover { color: #25D366; border-color: #25D366; }

/* Ver/ocultar contraseña */
.pwd-wrap { position: relative; }
.pwd-wrap input { padding-right: 76px; }
.pwd-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: transparent; border: 0; color: var(--muted); font-size: .82rem; font-weight: 600; cursor: pointer; padding: 6px 8px; }
.pwd-toggle:hover { color: var(--teal); }

/* Opciones de tipo de envío en checkout */
.ship-opt { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; padding: 12px; border: 1px solid var(--line); border-radius: 12px; margin: 0 0 10px; }
.ship-opt:hover { border-color: var(--teal); }
.ship-opt input { width: auto; margin-top: 3px; }
.opt-desc { color: var(--muted); font-size: .85rem; }

/* Barra de búsqueda */
.search-form { display: flex; align-items: center; gap: 6px; background: var(--bg-card); border: 1px solid var(--line); border-radius: 999px; padding: 3px 4px 3px 12px; margin-right: 10px; }
.search-form input[type=search] { width: 190px; background: transparent; border: 0; color: var(--text); padding: 6px 2px; font-size: .9rem; }
.search-form input[type=search]:focus { outline: none; }
.search-form button { background: var(--teal); color: #04141a; border: 0; border-radius: 999px; width: 30px; height: 30px; min-width: 30px; display: grid; place-items: center; cursor: pointer; }
@media (max-width: 720px) { .search-form { flex: 1; } }

/* Filas de variantes en el admin */
.variant-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.variant-thumb { width: 56px; height: 56px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-soft); display: grid; place-items: center; overflow: hidden; flex: 0 0 auto; }
.variant-thumb img { width: 100%; height: 100%; object-fit: cover; }
.variant-thumb span { color: var(--muted); font-size: .62rem; text-align: center; }
.variant-fields { display: grid; grid-template-columns: 1.4fr .9fr .7fr .9fr; gap: 8px; flex: 1 1 320px; align-items: end; }
.variant-fields > div label, .variant-fields .chk { font-size: .72rem; }
.variant-fields .chk { display: flex; gap: 6px; align-items: center; color: var(--muted); margin: 0; padding-bottom: 8px; }
.variant-actions { display: flex; gap: 6px; align-items: flex-start; padding-top: 18px; }
.variant-actions .btn { padding: 9px 12px; }

/* ===== Tarjetas de producto: layout uniforme y estado agotado ===== */
.card { display: flex; flex-direction: column; }
.card > a { flex: 1; }
.btn-agotado { background: var(--bg-soft); border: 1px solid var(--line); color: var(--muted); cursor: not-allowed; opacity: .65; }
.card-agotado-badge { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.65); color: var(--muted); font-size: .7rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; z-index: 2; }

/* ===== Carrito deslizante (drawer) ===== */
.cart-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.55); z-index: 199;
}
.cart-overlay.open { display: block; }

.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100dvh; width: 380px; max-width: 95vw;
  background: var(--bg-card); border-left: 1px solid var(--line);
  box-shadow: -8px 0 32px rgba(0,0,0,.5);
  transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  z-index: 200; display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.drawer-close-btn {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px;
  width: 32px; height: 32px; font-size: 1rem; cursor: pointer; color: var(--text);
  display: grid; place-items: center;
}
.drawer-close-btn:hover { border-color: var(--pink); color: var(--pink); }

.drawer-body { flex: 1; overflow-y: auto; padding: 0; }
.drawer-loading { text-align: center; padding: 40px 20px; color: var(--muted); }

.drawer-line {
  display: grid; grid-template-columns: 64px 1fr auto;
  gap: 12px; align-items: center; padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.drawer-thumb {
  width: 64px; height: 64px; background: var(--bg-soft); border-radius: 10px;
  display: grid; place-items: center; padding: 6px; overflow: hidden; flex-shrink: 0;
}
.drawer-info { min-width: 0; }
.drawer-foot { padding: 16px 20px; border-top: 1px solid var(--line); flex-shrink: 0; }

@media (max-width: 760px) {
  .cart-overlay, .cart-drawer { display: none !important; }
}

/* ===== Paginación del catálogo ===== */
.pagination { display: flex; align-items: center; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 32px 0 8px; }
.pag-btn { padding: 9px 16px; font-size: .9rem; }
.pag-current { pointer-events: none; }
.pag-ellipsis { color: var(--muted); padding: 0 4px; }

/* ===== Toast de notificación (agregar al carrito en móvil) ===== */
.toast-notif {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(12px);
  background: var(--bg-card); border: 1px solid var(--teal); color: var(--text);
  padding: 13px 26px; border-radius: 999px; font-size: .9rem; font-weight: 600;
  z-index: 9999; opacity: 0; transition: opacity .25s ease, transform .25s ease;
  pointer-events: none; white-space: nowrap; box-shadow: 0 4px 24px rgba(0,0,0,.5);
}
.toast-notif.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-notif.toast-error { border-color: var(--pink); }

/* ===== Productos relacionados ===== */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.product-card { display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, transform .15s; text-decoration: none; color: inherit; }
.product-card:hover { border-color: var(--teal); transform: translateY(-2px); }
.card-thumb { aspect-ratio: 1/1; background: var(--bg-soft); display: grid; place-items: center; padding: 16px; position: relative; }
.card-thumb img { width: 80%; height: 80%; object-fit: contain; }
.card-body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.card-name { font-weight: 600; font-size: .9rem; line-height: 1.35; }
.card-price { font-family: var(--display); font-size: 1rem; color: var(--yellow); margin-top: 4px; }
.card-price .price-old { font-size: .78rem; color: var(--muted); text-decoration: line-through; margin-right: 4px; font-family: var(--body); }

/* ===== Barra catálogo (chips + sort) ===== */
.catalog-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.sort-form { display: flex; }
.sort-select { width: auto; background: var(--bg-card); border: 1px solid rgba(255,255,255,0.12); border-radius: 999px; color: var(--text); font-family: var(--body); font-size: .88rem; padding: 7px 14px; cursor: pointer; }
.sort-select:focus { outline: none; border-color: var(--teal); }

/* ===== Drag handle galería admin ===== */
.media-cell { position: relative; }
.media-drag { position: absolute; top: 4px; left: 4px; cursor: grab; color: #fff;
  background: rgba(0,0,0,.55); border-radius: 5px; width: 22px; height: 22px;
  display: grid; place-items: center; font-size: 14px; line-height: 1; z-index: 2;
  user-select: none; }
.media-cell.drag-over { outline: 2px dashed var(--teal); outline-offset: -2px; }

/* ===== Carrusel destacados ===== */
.feat-wrap {
  position: relative;
  padding: 0 36px;
  overflow: hidden;
}
.feat-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 220px;
  gap: 16px;
  overflow-x: scroll;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0 12px;
  -webkit-overflow-scrolling: touch;
}
.feat-scroll::-webkit-scrollbar { display: none; }
.feat-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s, opacity .15s;
  line-height: 1;
  padding: 0;
}
.feat-arrow:hover { border-color: var(--teal); color: var(--teal); }

/* ===== Utilidades: extraídas de los estilos inline más repetidos en las vistas =====
   No cubre los 616 usos originales, pero reemplaza los patrones de mayor repetición
   (colores de texto y espaciados sueltos) para reducir la duplicación más pesada. */
.u-muted { color: var(--muted); }
.u-teal { color: var(--teal); }
.u-pink { color: var(--pink); }
.u-yellow { color: var(--yellow); }
.u-text { color: var(--text); }
.u-muted-sm { color: var(--muted); font-size: .85rem; }
.u-muted-xs { color: var(--muted); font-size: .82rem; }
.u-inline { display: inline; }
.u-block-title { font-family: var(--display); margin-bottom: 10px; }
.mb-0 { margin-bottom: 0; }
.mt-8 { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.mt-18 { margin-top: 18px; }
.text-right { text-align: right; }
.text-center { text-align: center; }
