/* Tienda publica (/tienda/). Usa los tokens de core/variables.css, sin los
   componentes del panel: es otra superficie, mobile-first, sin degradados. */

.shop { background: var(--color-bg); color: var(--color-text); font-family: var(--font-ui); line-height: 1.55; }
.shop a { color: inherit; }
/* reset.css baja la opacidad de todo link en hover; la tienda tiene sus propios
   estados (borde, color, flecha) y con eso las tarjetas y botones se veian apagados. */
.shop a:hover { opacity: 1; }
.shop img { max-width: 100%; display: block; }
.shop-wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -48px; background: var(--color-gold); color: var(--color-forest); padding: 8px 14px; border-radius: var(--radius-sm); z-index: 10; font-weight: 700; }
.skip-link:focus { top: 8px; }
.shop :focus-visible { outline: 3px solid var(--color-gold); outline-offset: 2px; }

/* ── Botones ── */
.shop-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 20px; border-radius: 999px; font-weight: 700; font-size: 0.92rem; text-decoration: none; background: var(--color-primary); color: #fff !important; border: 2px solid transparent; transition: var(--transition); white-space: nowrap; }
.shop-btn:hover { background: var(--color-primary-hover); }
.shop-btn .material-symbols-outlined { font-size: 1.15em; }
.shop-btn-gold { background: var(--color-gold); color: var(--color-forest) !important; }
.shop-btn-gold:hover { background: var(--color-gold-light); }
.shop-btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.7); color: var(--color-on-brand) !important; }
.shop-btn-ghost:hover { background: var(--color-on-brand-hover); }
.shop-btn-sm { padding: 7px 14px; font-size: 0.82rem; }
.shop-btn-lg { padding: 14px 26px; font-size: 1rem; margin-top: 8px; }

/* ── Header ── */
.shop-header { background: var(--color-brand-surface); color: var(--color-on-brand); border-bottom: 1px solid var(--color-on-brand-line); position: sticky; top: 0; z-index: 5; }
.shop-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.shop-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.05rem; color: var(--color-brand-name) !important; }
.shop-brand .brand-mark { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.shop-nav { display: flex; align-items: center; gap: 4px; }
.shop-nav a:not(.shop-btn) { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 0.92rem; color: var(--color-on-brand-muted); }
.shop-nav a:not(.shop-btn):hover, .shop-nav a[aria-current] { color: var(--color-on-brand); background: var(--color-on-brand-hover); }
.shop-nav-cta { margin-left: 6px; padding: 8px 16px; }

/* ── Hero ── */
.shop-hero { background: var(--color-brand-surface); color: var(--color-on-brand); padding: 48px 0 64px; }
.shop-hero-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.shop-eyebrow { color: var(--color-brand-name); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px; }
.shop-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; color: var(--color-on-brand); max-width: 14ch; }
.shop-lead { font-size: 1.05rem; color: var(--color-on-brand-muted); margin: 16px 0 28px; max-width: 46ch; }
.shop-lead-dark { color: var(--color-text-secondary); margin: 4px 0 20px; }
.shop-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.shop-hero-mark { justify-self: center; width: min(300px, 70%); }
.shop-hero-mark .brand-mark { width: 100%; height: auto; display: block; }

/* ── Secciones ── */
.shop-section { padding-top: 44px; padding-bottom: 8px; }
.shop-section h2, .shop-page-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; color: var(--color-forest); margin-bottom: 18px; }
.shop-page-title { font-size: clamp(1.7rem, 4vw, 2.3rem); margin-bottom: 8px; }
.shop-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.shop-section-head a { color: var(--color-primary); font-weight: 600; font-size: 0.9rem; }

.shop-lines { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
/* Tarjeta-link: icono, nombre, y un "Ver productos ->" que deja claro que se toca. */
.shop-line { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "icon text" "cta cta"; align-items: center; gap: 14px 14px; padding: 18px 18px 14px; border-radius: var(--radius-md); background: var(--color-surface); border: 1.5px solid var(--color-border-light); text-decoration: none; cursor: pointer; box-shadow: var(--shadow-sm); transition: var(--transition); }
.shop-line:hover { border-color: var(--color-primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.shop-line:active { transform: translateY(0); }
.shop-line-icon { grid-area: icon; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--color-value-hover); color: var(--color-primary); font-size: 26px; transition: var(--transition); }
.shop-line:hover .shop-line-icon { background: var(--color-primary); color: #fff; }
.shop-line-text { grid-area: text; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.shop-line-text strong { font-size: 1.1rem; color: var(--color-forest); }
.shop-line-text span { font-size: 0.85rem; color: var(--color-text-muted); }
.shop-line-cta { grid-area: cta; display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--color-border-light); font-size: 0.85rem; font-weight: 700; color: var(--color-primary); }
.shop-line-cta .material-symbols-outlined { font-size: 20px; transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1); }
.shop-line:hover .shop-line-cta .material-symbols-outlined { transform: translateX(4px); }

/* ── Tarjetas ── */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.shop-card { display: flex; flex-direction: column; background: var(--color-surface); border: 1px solid var(--color-border-light); border-radius: var(--radius-md); overflow: hidden; transition: var(--transition); }
.shop-card:hover { box-shadow: var(--shadow-md); }
.shop-card-link { text-decoration: none; flex: 1; }
.shop-card-img { aspect-ratio: 4 / 3; background: var(--color-bg-hover); display: flex; align-items: center; justify-content: center; position: relative; }
.shop-card-img img { width: 100%; height: 100%; object-fit: cover; }
/* Brillo mientras baja la foto; el onload de la tarjeta saca la clase. */
.shop-card-img.is-loading { background: linear-gradient(100deg, var(--color-bg-hover) 30%, var(--color-surface) 50%, var(--color-bg-hover) 70%) 0 0 / 300% 100%; animation: shop-shimmer 1.4s linear infinite; }
@keyframes shop-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .shop-card-img.is-loading { animation: none; } }
.shop-card-img .material-symbols-outlined, .shop-detail-img .material-symbols-outlined { font-size: 3rem; color: var(--color-primary); opacity: 0.5; }
.shop-tag { position: absolute; top: 10px; left: 10px; background: var(--color-gold); color: var(--color-forest); font-size: 0.7rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.06em; }
.shop-card-body { padding: 14px 16px 6px; display: flex; flex-direction: column; gap: 2px; }
.shop-card-line { font-size: 0.72rem; font-weight: 700; color: var(--color-accent); text-transform: uppercase; letter-spacing: 0.08em; }
.shop-card-name { font-size: 0.98rem; font-weight: 700; line-height: 1.3; color: var(--color-text); }
.shop-card-pres { font-size: 0.85rem; color: var(--color-text-muted); }
.shop-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px 16px; }
.shop-price { font-size: 1.15rem; font-weight: 700; color: var(--color-forest); font-variant-numeric: tabular-nums; }
.shop-soldout { font-size: 0.82rem; font-weight: 600; color: var(--color-text-muted); }

/* ── Catalogo ── */
.shop-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 12px 0 24px; }
.shop-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.shop-chips a { text-decoration: none; padding: 7px 14px; border-radius: 999px; background: var(--color-surface); border: 1px solid var(--color-border); font-size: 0.88rem; font-weight: 600; color: var(--color-text-secondary); }
.shop-chips a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.shop-chips a[aria-current] { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.shop-chips a span { opacity: 0.6; margin-left: 2px; }
.shop-search { flex: 0 1 300px; min-width: 0; width: 100%; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--color-border); background: var(--color-surface); font-size: 0.95rem; }
.shop-search:focus { outline: none; border-color: var(--color-primary); }
.shop-empty { color: var(--color-text-secondary); padding: 32px 0; }
.shop-empty a { color: var(--color-primary); font-weight: 600; }

/* ── Detalle ── */
.shop-crumbs { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 18px; }
.shop-crumbs a { color: var(--color-primary); text-decoration: none; }
.shop-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.shop-detail-img { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-bg-hover); display: flex; align-items: center; justify-content: center; }
.shop-detail-img:has(.shop-detail-zoom) { aspect-ratio: auto; }
/* En el detalle la foto va entera (en la tarjeta se recorta): son afiches con precio y texto. */
.shop-detail-zoom { position: relative; display: block; width: 100%; padding: 0; border: none; background: none; cursor: zoom-in; }
.shop-detail-zoom img { display: block; width: 100%; height: auto; max-height: 80vh; object-fit: contain; }
.shop-detail-zoom .material-symbols-outlined { position: absolute; right: 10px; bottom: 10px; font-size: 1.4rem; opacity: 1; color: #fff; background: rgba(0, 0, 0, 0.45); border-radius: 50%; padding: 6px; }
.image-modal-card.modal { position: relative; max-width: min(92vw, 900px); padding: 0; overflow: hidden; background: #000; }
.image-modal-card img { display: block; width: 100%; height: auto; max-height: calc(100dvh - 40px); object-fit: contain; }
.image-modal-x { position: absolute; top: 8px; right: 8px; background: rgba(0, 0, 0, 0.5); color: #fff; }
.image-modal-x:hover { background: rgba(0, 0, 0, 0.7); }
.shop-detail-info h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); line-height: 1.15; color: var(--color-forest); margin: 4px 0; }
.shop-detail-price { font-size: 1.8rem; font-weight: 700; color: var(--color-forest); margin: 14px 0; font-variant-numeric: tabular-nums; }
.shop-detail-sub { font-size: 0.95rem !important; margin: 18px 0 6px !important; }
.shop-list { padding-left: 18px; margin-bottom: 14px; }
.shop-list li { margin-bottom: 2px; }
.shop-note { font-size: 0.88rem; color: var(--color-text-muted); margin-top: 18px; }
.shop-note a { color: var(--color-primary); font-weight: 600; }

/* ── Distribuidoras ── */
.shop-dep { margin-top: 28px; }
.shop-dep h2 { font-size: 1.2rem; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--color-gold); display: inline-block; }
.shop-dist-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.shop-dist { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: var(--color-surface); border: 1px solid var(--color-border-light); border-radius: var(--radius-md); }
.shop-dist strong { display: block; font-size: 0.95rem; }
.shop-dist span { font-size: 0.82rem; color: var(--color-text-muted); }

/* ── Pie ── */
.shop-footer { background: var(--color-brand-surface); color: var(--color-on-brand-muted); border-top: none; margin-top: 56px; font-size: 0.9rem; }
.shop-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; }
.shop-footer strong { color: var(--color-brand-name); }
.shop-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.shop-footer a { text-decoration: none; }
.shop-footer a:hover { color: var(--color-on-brand); }


/* ── Carrito (static/js/public/cart.js) ── */
/* Sin JS se ve "Pedir" (link directo); con JS, "Agregar" al carrito. */
.with-cart { display: none; }
.has-cart .with-cart { display: inline; }
.has-cart .no-cart { display: none; }
.shop-detail-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 8px; }
.shop-link { color: var(--color-primary) !important; font-weight: 600; font-size: 0.9rem; }

.cart-fab { position: fixed; right: 16px; bottom: 16px; z-index: 20; display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border: none; border-radius: 999px; background: var(--color-forest); color: #fff; font: inherit; font-weight: 700; cursor: pointer; box-shadow: var(--shadow-lg); }
.cart-fab:hover { background: var(--color-forest-2); }
.cart-fab[hidden] { display: none; }
.cart-count { min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--color-gold); color: var(--color-forest); font-size: 0.8rem; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.cart-fab.bump { animation: cart-bump 0.35s ease; }
@keyframes cart-bump { 40% { transform: scale(1.08); } }

/* Tarjeta del kit (modals.css) con el tono de la tienda. */
/* Reglas por #cart-card (la tarjeta), no por #cart-modal (el overlay): el clon que
   anima sisModals es solo la tarjeta y vive fuera del overlay; el kit conserva los
   ids en el clon, asi estas reglas valen tambien durante el morph y nada salta. */
#cart-card { border: none; padding: 22px; }
#cart-card .modal-header h3 { font-size: 1.2rem; color: var(--color-forest); }
#cart-card .modal-header > .material-symbols-outlined { color: var(--color-primary); }
/* La X se empuja sola con margin-left:auto (no depende de que el titulo crezca). */
.cart-x { margin-left: auto; border: none; background: none; cursor: pointer; padding: 6px; border-radius: 50%; color: var(--color-text-secondary); display: flex; }
.cart-x:hover { background: var(--color-bg-hover); }
.cart-empty { color: var(--color-text-muted); padding: 8px 0 14px; }
.cart-lines { list-style: none; }
.cart-line { display: grid; grid-template-columns: minmax(0, 1fr) auto 84px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--color-border-light); font-size: 0.9rem; }
.cart-line-name { line-height: 1.3; }
.cart-line-sub { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.cart-qty { display: inline-flex; align-items: center; border: 1px solid var(--color-border); border-radius: 999px; }
.cart-qty button { width: 32px; height: 32px; border: none; background: none; cursor: pointer; font-size: 1.1rem; color: var(--color-primary); border-radius: 50%; }
.cart-qty button:hover { background: var(--color-bg-hover); }
.cart-qty output { min-width: 22px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.15rem; padding: 14px 0; }
.cart-total strong { color: var(--color-forest); font-variant-numeric: tabular-nums; }
.cart-note-label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; }
.cart-note-label span { font-weight: 400; color: var(--color-text-muted); }
.cart-note { width: 100%; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: 0.95rem; resize: vertical; }
.cart-note:focus { outline: none; border-color: var(--color-primary); }
.cart-note + .cart-note-label { margin-top: 8px; }
.cart-error { color: var(--color-danger); font-weight: 600; font-size: 0.85rem; margin: 8px 0 0; }
.cart-send[aria-busy="true"] { opacity: 0.6; pointer-events: none; }
.cart-hint { font-size: 0.8rem; color: var(--color-text-muted); margin: 8px 0 14px; }
.cart-send { width: 100%; }
.cart-send[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.cart-clear { display: block; margin: 10px auto 0; border: none; background: none; color: var(--color-text-muted); font: inherit; font-size: 0.85rem; text-decoration: underline; cursor: pointer; }

@media (max-width: 760px) {
    .shop-hero { padding: 32px 0 44px; }
    .shop-hero-inner, .shop-detail { grid-template-columns: 1fr; }
    .shop-hero-mark { display: none; }
    .shop-nav a:not(.shop-btn) { padding: 8px 8px; font-size: 0.85rem; }
    .shop-nav-notify { padding: 0; width: 44px; height: 44px; justify-content: center; }
    .shop-nav-notify [data-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    /* En celular la campanita va sola (sin texto): dorada y con un punto
       mientras no esten activados, si no nadie la ve. */
    .shop-nav-notify { position: relative; }
    .shop-nav-notify .material-symbols-outlined { color: var(--color-gold); font-size: 1.4rem; }
    .shop-nav-notify[aria-pressed="false"]::after { content: ''; position: absolute; top: 9px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: #e5484d; box-shadow: 0 0 0 2px var(--color-brand-surface); }
    .shop-nav a:not(.shop-btn) { white-space: nowrap; }
    .shop-brand span { display: none; }
    .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .shop-card-body { padding: 10px 12px 4px; }
    .shop-card-foot { flex-direction: column; align-items: stretch; gap: 8px; padding: 8px 12px 12px; margin-top: auto; }
    /* Boton a todo el ancho y 44px: objetivo de toque comodo con el pulgar. */
    .shop-card-foot .shop-btn { width: 100%; min-height: 44px; -webkit-tap-highlight-color: transparent; }
    .shop-card-foot .shop-btn:active { background: var(--color-primary-hover); transform: scale(0.98); }
    .shop-card-foot .shop-soldout { min-height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--color-bg-hover); }
    .shop-search { flex-basis: 100%; }
    /* Celular: lista de filas (patron de menu de ajustes). Mas compacta que 4
       tarjetas y obvio que se toca: fila entera de 64px, flecha a la derecha y
       sombreado al tocar (en el telefono no hay hover). */
    .shop-lines { display: flex; flex-direction: column; gap: 0; background: var(--color-surface); border: 1px solid var(--color-border-light); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
    .shop-line { grid-template-columns: auto 1fr auto; grid-template-areas: "icon text cta"; gap: 14px; min-height: 64px; padding: 10px 14px 10px 16px; border: none; border-bottom: 1px solid var(--color-border-light); border-radius: 0; box-shadow: none; -webkit-tap-highlight-color: transparent; }
    .shop-line:last-child { border-bottom: none; }
    .shop-line:hover { border-color: var(--color-border-light); box-shadow: none; transform: none; }
    .shop-line:hover .shop-line-icon { background: var(--color-value-hover); color: var(--color-primary); }
    .shop-line:hover .shop-line-cta .material-symbols-outlined { transform: none; }
    .shop-line:active { background: var(--color-bg-hover); }
    .shop-line:active .shop-line-cta .material-symbols-outlined { transform: translateX(3px); }
    .shop-line-icon { width: 42px; height: 42px; font-size: 23px; }
    .shop-line-text strong { font-size: 1.02rem; }
    .shop-line-cta { padding: 0; border: none; }
    .shop-line-cta-label { display: none; }
    .shop-line-cta .material-symbols-outlined { font-size: 22px; color: var(--color-text-muted); }
    /* Bottom sheet en celular (regla del kit: posicion mobile por CSS, no JS). */
    #cart-modal.active { align-items: flex-end; padding-bottom: 0; }
    #cart-card { max-width: 100vw !important; width: 100%; margin: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 88dvh; }
    .shop-footer { padding-bottom: 72px; }  /* que el boton flotante no tape el pie */
}
/* 360-400 px (Redmi y la mayoria de Android): sin esto el logo se recorta y
   "Por mayor" se parte en dos renglones. "Pedir" queda como icono dorado. */
@media (max-width: 400px) {
    .shop-header-inner { gap: 8px; }
    .shop-brand .brand-mark { width: 34px; height: 34px; }
    .shop-nav { gap: 2px; }
    .shop-nav a:not(.shop-btn) { padding: 8px 6px; font-size: 0.8rem; }
    .shop-nav-cta { margin-left: 2px; padding: 0; width: 44px; height: 44px; justify-content: center; }
    .shop-nav-cta-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .shop * { transition: none !important; } }

/* Live de TikTok (Mi negocio > Live): barra en toda la tienda + numero en la tarjeta. */
.shop-live-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px; padding: 10px 16px; background: #C62828; color: #fff !important; text-decoration: none; font-size: 0.92rem; }
.shop-live-bar:hover span:last-child { text-decoration: underline; }
.shop-live-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; display: inline-block; animation: shop-live-pulse 1.4s ease-in-out infinite; }
.shop-live-head { display: inline-flex; align-items: center; gap: 8px; color: #C62828; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px; }
.shop-live-n { position: absolute; left: 10px; top: 10px; background: var(--color-forest); color: #fff; font-weight: 800; font-size: 1.4rem; line-height: 1; padding: 8px 12px; border-radius: var(--radius-sm); }
/* Dinamica con palabra clave: candado hasta escribirla. */
.shop-live-reload { margin-bottom: 16px; }
.shop-live-unlock { display: flex; flex-direction: column; gap: 8px; padding-bottom: 14px; }
.shop-live-unlock input[type="text"] { width: 100%; padding: 10px 14px; border: 1px solid var(--color-border); border-radius: 999px; font: inherit; font-size: 16px; /* 16px: iOS no hace zoom */ }
.shop-live-unlock-error { color: var(--color-danger); font-weight: 600; font-size: 0.85rem; }
.shop-card-locked .shop-card-img .material-symbols-outlined { font-size: 3rem; opacity: 0.6; }
@keyframes shop-live-pulse { 50% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) { .shop-live-dot { animation: none; } }

/* ── Fase 3: descripcion, combos y catalogo mayorista ── */
/* Descripcion completa en el detalle; en la tarjeta, 3 lineas. */
.shop-card-desc, .shop-card-contents { font-size: 0.82rem; color: var(--color-text-secondary); margin-top: 4px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.shop-card-contents { color: var(--color-forest); }
.shop-card-rule { font-size: 0.75rem; font-weight: 600; color: var(--color-accent); margin-top: 6px; }
.shop-price small { font-size: 0.75rem; font-weight: 600; color: var(--color-text-muted); }
.shop-price .shop-price-unit { display: block; font-weight: 500; }
.shop-price-old { font-weight: 400; font-size: .85em; opacity: .6; }
/* Descuento: etiqueta roja; en la tarjeta va sobre la foto (abajo a la izq., libre de Combo/Agotado). */
.shop-off { display: inline-block; vertical-align: middle; background: var(--color-danger); color: #fff; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.shop-card-img .shop-off { position: absolute; left: 10px; bottom: 10px; font-size: .9rem; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.shop-card .shop-price-old { display: block; }
.shop-detail-price .shop-off { font-size: 1rem; padding: 4px 12px; margin-left: 4px; }
.shop-detail-price small { font-size: 1rem; color: var(--color-text-muted); }
.shop-detail-desc { line-height: 1.6; color: var(--color-text-secondary); }
.shop-detail-desc p { margin-bottom: 10px; }
.shop-stock { display: inline-block; font-size: 0.8rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; margin-bottom: 14px; }
.shop-stock.is-in { background: var(--color-success-bg, #e6f4ea); color: var(--color-success, #15803d); }
.shop-stock.is-out { background: var(--color-bg-hover); color: var(--color-text-muted); }
.shop-wholesale-note { display: flex; gap: 12px; align-items: flex-start; background: var(--color-surface); border: 1px solid var(--color-border-light);
    border-left: 4px solid var(--color-gold); border-radius: var(--radius-md); padding: 14px 16px; margin: 8px 0 4px; font-size: 0.9rem; color: var(--color-text-secondary); }
.shop-wholesale-note .material-symbols-outlined { color: var(--color-forest); }
.shop-wholesale-note a { display: inline-block; margin-top: 4px; color: var(--color-primary); font-weight: 600; }
.shop-wholesale-rules { color: var(--color-text-secondary); }


/* ── Paginas legales y pie ── */
.shop-legal { max-width: 760px; line-height: 1.65; color: var(--color-text-secondary); }
.shop-legal h2 { font-size: 1.1rem !important; color: var(--color-forest); margin: 26px 0 8px; }
.shop-legal p { margin-bottom: 10px; }
.shop-legal strong { color: var(--color-text); }
.shop-legal a { color: var(--color-primary); font-weight: 600; }
.shop-legal-updated { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 18px !important; }
.shop-footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--color-on-brand-line); font-size: 0.8rem; opacity: 0.85; }
.shop-footer-legal a { color: inherit; }
.shop-footer-legal span { margin-left: auto; }
.cart-legal { font-size: 0.75rem; color: var(--color-text-muted); margin: 8px 0 0; }
.cart-legal a { color: var(--color-primary); }
.shop-link-btn { border: 0; background: none; padding: 0; color: var(--color-primary); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }

/* ── Avisos: "¿Le avisamos?" y Avísame ── */
/* Avisos (mismo patron que sis_eldiez): boton del menu + modales de _push_prompt.html. */
.shop-nav-notify { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 0; border-radius: 999px; background: none; color: var(--color-on-brand-muted); font: inherit; font-weight: 600; font-size: 0.92rem; cursor: pointer; }
.shop-nav-notify[hidden], .push-toast[hidden] { display: none; }
.shop-nav-notify:hover { color: var(--color-on-brand); background: var(--color-on-brand-hover); }
.shop-nav-notify .material-symbols-outlined { font-size: 1.15rem; }
.shop-nav-notify[aria-pressed="true"] .material-symbols-outlined { color: var(--color-gold); }
.push-bell { color: var(--color-gold); }
.push-lead { font-size: 0.92rem; color: var(--color-text-secondary); margin: 0 0 8px; }
.push-opt { display: flex; gap: 8px; align-items: flex-start; font-size: 0.9rem; margin: 6px 0; cursor: pointer; }
.push-opt input { margin-top: 3px; accent-color: var(--color-forest); }
.push-note { font-size: 0.78rem; color: var(--color-text-muted); margin: 10px 0 12px; }
.push-note a { color: var(--color-primary); }
.push-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.push-later { border: 0; background: none; color: var(--color-text-muted); font: inherit; font-size: 0.88rem; cursor: pointer; padding: 8px; }
.ios-steps { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; font-size: 0.9rem; }
.ios-steps li { display: flex; gap: 10px; align-items: center; }
.ios-steps .material-symbols-outlined { color: var(--color-primary); }
.ios-steps img { border-radius: 6px; }
.push-toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 84px; z-index: 40; width: max-content; max-width: calc(100vw - 32px);
    background: var(--color-forest); color: #fff; padding: 12px 18px; border-radius: var(--radius-md); font-size: 0.9rem; box-shadow: var(--shadow-lg); text-align: center; }
.shop-btn-ghost-dark { background: transparent; color: var(--color-forest) !important; border-color: var(--color-forest); }
.shop-btn-ghost-dark:hover { background: var(--color-forest); color: #fff !important; }
.shop-btn[disabled] { opacity: 0.7; cursor: default; }
.shop-tag-out { left: auto; right: 10px; background: var(--color-text-secondary); color: #fff; }

/* "Guardar en el celular" (pwa.js): abajo a la izquierda, el carrito va a la derecha. */
.pwa-install-fab { position: fixed; left: 16px; bottom: 16px; z-index: 20; box-shadow: var(--shadow-lg); }
.pwa-install-fab[hidden] { display: none; }
/* Junto al carrito no entran los dos textos: queda el icono solo. */
@media (max-width: 420px) {
    .pwa-install-fab { width: 48px; height: 48px; padding: 0; justify-content: center; border-radius: 999px; }
    .pwa-install-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
