/* ==========================================================================
   Catálogo público v1.1 — diseño moderno y personalizable.
   Cada comercio define: --c-primary, --c-secondary, --c-bg, --c-font, --c-on-primary
   y clases en <body>: hdr-{cover|gradient|solid|minimal} btn-{rounded|pill|square}
   card-{shadow|border|flat} is-dark
   ========================================================================== */
:root {
  --c-primary: #4f46e5; --c-secondary: #0ea5e9; --c-bg: #f6f7fb; --c-font: 'Inter'; --c-on-primary: #fff;
  --c-surface: #ffffff; --c-text: #0f172a; --c-muted: #64748b; --c-border: #e9ebf0;
  --c-soft: color-mix(in srgb, var(--c-primary) 10%, var(--c-surface));
  --r: 18px; --rb: 12px; --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow-sm: 0 1px 2px rgba(15,23,42,.04), 0 2px 6px rgba(15,23,42,.04);
  --shadow-md: 0 10px 30px -12px rgba(15,23,42,.18);
}
body.is-dark { --c-surface: #131a26; --c-text: #f1f5f9; --c-muted: #94a3b8; --c-border: #222c3b; --shadow-sm: none; --shadow-md: 0 14px 34px -14px rgba(0,0,0,.7); }
body.btn-pill { --rb: 999px; } body.btn-square { --rb: 6px; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--c-font), system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; background: var(--c-bg); color: var(--c-text); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.015em; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
::selection { background: color-mix(in srgb, var(--c-primary) 25%, transparent); }

/* ── Botones ───────────────────────────────────────────── */
.c-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; padding: .55rem 1.05rem; border-radius: var(--rb); border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-text); font-weight: 650; font-size: .92rem; cursor: pointer; transition: transform .12s var(--ease), box-shadow .2s, background .2s, filter .2s; white-space: nowrap; }
.c-btn:hover { box-shadow: var(--shadow-sm); }
.c-btn:active { transform: scale(.97); }
.c-btn-primary { background: var(--c-primary); color: var(--c-on-primary); border-color: transparent; box-shadow: 0 8px 20px -10px var(--c-primary); }
.c-btn-primary:hover { filter: brightness(1.06); }
.c-btn-wa { background: #25d366; color: #fff; border-color: transparent; box-shadow: 0 8px 20px -10px #25d366; }
.c-btn-glass { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(10px); }
.c-btn-lg { min-height: 54px; font-size: 1rem; padding: .8rem 1.3rem; }
.c-btn-block { width: 100%; }
.c-btn-icon { width: 44px; padding: 0; }

/* ── Encabezado ───────────────────────────────────────── */
.c-hero { position: relative; }
.c-cover { height: 190px; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--c-primary), var(--c-secondary)); }
.c-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.28)); }
.c-cover img { width: 100%; height: 100%; object-fit: cover; }
body.hdr-cover .c-cover.no-img { background: radial-gradient(120% 140% at 0% 0%, var(--c-secondary) 0, transparent 55%), linear-gradient(160deg, color-mix(in srgb, var(--c-primary) 75%, #000), var(--c-primary)); }
body.hdr-gradient .c-cover { background: radial-gradient(90% 120% at 10% 10%, color-mix(in srgb, var(--c-secondary) 90%, #fff) 0, transparent 55%), radial-gradient(80% 120% at 95% 20%, color-mix(in srgb, var(--c-primary) 60%, #fff) 0, transparent 50%), linear-gradient(135deg, var(--c-primary), var(--c-secondary)); }
body.hdr-gradient .c-cover::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px); background-size: 18px 18px; mask-image: linear-gradient(180deg, #000, transparent); }
body.hdr-solid .c-cover { background: var(--c-primary); }
body.hdr-solid .c-cover::after, body.hdr-gradient .c-cover::after { display: none; }
body.hdr-minimal .c-cover { height: 0; }
.c-head { position: relative; text-align: center; padding: 0 1rem 1.25rem; }
.c-logo { width: 100px; height: 100px; border-radius: 28px; background: var(--c-surface); margin: -50px auto .8rem; box-shadow: 0 12px 30px -10px rgba(0,0,0,.35); overflow: hidden; display: flex; align-items: center; justify-content: center; border: 4px solid var(--c-surface); position: relative; z-index: 2; }
body.hdr-minimal .c-logo { margin-top: 1.5rem; box-shadow: var(--shadow-md); }
body.btn-pill .c-logo { border-radius: 50%; }
.c-logo img { width: 100%; height: 100%; object-fit: contain; }
.c-logo .initial { font-size: 2.4rem; font-weight: 800; color: var(--c-primary); }
.c-head h1 { font-size: 1.65rem; font-weight: 800; letter-spacing: -.025em; }
.c-meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; justify-content: center; align-items: center; color: var(--c-muted); font-size: .87rem; margin-top: .35rem; }
.c-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.c-open { font-weight: 650; }
.c-open::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18); }
.c-open.closed { color: var(--c-muted); }
.c-open.closed::before { background: #94a3b8; box-shadow: none; }
.c-head .desc { color: var(--c-muted); max-width: 640px; margin: .7rem auto 0; font-size: .96rem; }
.c-actions { display: flex; gap: .5rem; justify-content: center; margin-top: 1.1rem; flex-wrap: wrap; }
.c-socials { display: flex; gap: .45rem; justify-content: center; margin-top: .9rem; flex-wrap: wrap; }
.c-socials a { width: 40px; height: 40px; border-radius: var(--rb); display: inline-flex; align-items: center; justify-content: center; background: var(--c-surface); border: 1px solid var(--c-border); font-size: 1.05rem; transition: transform .15s, color .15s; }
body.btn-pill .c-socials a { border-radius: 50%; }
.c-socials a:hover { color: var(--c-primary); transform: translateY(-2px); }
.c-hours { max-width: 380px; margin: 1rem auto 0; font-size: .88rem; text-align: left; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 14px; }
.c-hours summary { padding: .65rem .9rem; cursor: pointer; font-weight: 600; list-style: none; display: flex; align-items: center; gap: .45rem; justify-content: center; }
.c-hours summary::-webkit-details-marker { display: none; }
.c-hours dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: 0; padding: 0 .9rem .85rem; }
.c-hours dt { color: var(--c-muted); }
.c-hours dd { margin: 0; text-align: right; }
.c-hours .today { font-weight: 750; color: var(--c-text); }

/* ── Barra fija: buscador + categorías ────────────────── */
.c-bar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--c-bg) 82%, transparent); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); padding: .65rem 0 .5rem; border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.c-bar.scrolled { border-bottom-color: var(--c-border); box-shadow: 0 6px 20px -16px rgba(15,23,42,.35); }
.c-bar .row { display: flex; gap: .5rem; align-items: center; }
.c-bar .mini-brand { display: none; align-items: center; gap: .55rem; font-weight: 800; min-width: 0; flex-shrink: 0; max-width: 34%; }
.c-bar .mini-brand img, .c-bar .mini-brand .mb-i { width: 36px; height: 36px; border-radius: 11px; object-fit: contain; background: var(--c-surface); border: 1px solid var(--c-border); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--c-primary); }
.c-bar .mini-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-bar.scrolled .mini-brand, .c-bar.always .mini-brand { display: flex; }
@media (max-width: 520px) { .c-bar .mini-brand span { display: none; } }
.c-search { flex: 1; position: relative; min-width: 0; }
.c-search input { width: 100%; height: 46px; border-radius: var(--rb); border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-text); padding: 0 1rem 0 2.7rem; font: inherit; font-size: 16px; transition: border-color .15s, box-shadow .15s; box-shadow: var(--shadow-sm); }
body.btn-square .c-search input { border-radius: 8px; }
.c-search input::placeholder { color: var(--c-muted); }
.c-search input:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-primary) 16%, transparent); }
.c-search .bi { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--c-muted); }
.c-cart-btn { position: relative; flex-shrink: 0; }
.c-count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--c-primary); color: var(--c-on-primary); font-size: .72rem; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid var(--c-bg); }
.c-count:empty, .c-count[data-count="0"] { display: none; }
.c-chips { display: flex; gap: .45rem; overflow-x: auto; padding: .6rem 1rem .15rem; margin: 0 -1rem; scrollbar-width: none; scroll-snap-type: x proximity; }
.c-chips::-webkit-scrollbar, .c-scroll::-webkit-scrollbar, .p-thumbs::-webkit-scrollbar { display: none; }
.c-chip { flex-shrink: 0; scroll-snap-align: start; display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .95rem; border-radius: 99px; background: var(--c-surface); border: 1px solid var(--c-border); font-weight: 600; font-size: .86rem; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
body.btn-square .c-chip { border-radius: 8px; }
.c-chip:hover { border-color: color-mix(in srgb, var(--c-primary) 45%, var(--c-border)); }
.c-chip.active { background: var(--c-primary); color: var(--c-on-primary); border-color: var(--c-primary); }

/* ── Secciones y categorías ───────────────────────────── */
.c-section { margin: 1.6rem 0; }
.c-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .85rem; gap: 1rem; }
.c-section-head h2 { font-size: 1.2rem; font-weight: 800; display: flex; align-items: center; gap: .5rem; }
.c-section-head h2 small { color: var(--c-muted); font-weight: 500; font-size: .85rem; }
.c-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: .65rem; }
.c-cat { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r); padding: .9rem .5rem .8rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .5rem; font-weight: 650; font-size: .84rem; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.c-cat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.c-cat .ico { width: 58px; height: 58px; border-radius: 18px; background: linear-gradient(145deg, color-mix(in srgb, var(--c-primary) 16%, var(--c-surface)), color-mix(in srgb, var(--c-secondary) 14%, var(--c-surface))); color: var(--c-primary); display: flex; align-items: center; justify-content: center; font-size: 1.55rem; overflow: hidden; }
body.btn-pill .c-cat .ico { border-radius: 50%; }
.c-cat .ico img { width: 100%; height: 100%; object-fit: cover; }
.c-cat span:last-child { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.breadcrumb { font-size: .82rem; color: var(--c-muted); display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; margin-top: 1rem; }
.breadcrumb a:hover { color: var(--c-primary); }
.c-page-title { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; margin-top: .5rem; }

/* ── Tarjetas de producto ─────────────────────────────── */
.c-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.c-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: .75rem; overflow-x: auto; padding: 4px 1rem 1rem; margin: -4px -1rem -.5rem; scroll-snap-type: x mandatory; scrollbar-width: none; }
.c-scroll > * { scroll-snap-align: start; }
.c-card { position: relative; display: flex; flex-direction: column; background: var(--c-surface); border-radius: var(--r); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; animation: c-in .5s var(--ease) both; }
body.card-shadow .c-card { box-shadow: var(--shadow-sm); }
body.card-shadow .c-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
body.card-border .c-card { border: 1px solid var(--c-border); }
body.card-border .c-card:hover { border-color: color-mix(in srgb, var(--c-primary) 50%, var(--c-border)); }
body.card-flat .c-card { background: transparent; overflow: visible; }
body.card-flat .c-card .img { border-radius: var(--r); }
body.card-flat .c-card .body { padding-left: .15rem; padding-right: .15rem; }
@keyframes c-in { from { opacity: 0; transform: translateY(8px); } }
.c-card .img { position: relative; aspect-ratio: 1; display: block; overflow: hidden; background: color-mix(in srgb, var(--c-primary) 6%, var(--c-surface)); }
.c-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.c-card:hover .img img { transform: scale(1.05); }
.c-card .img .ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: color-mix(in srgb, var(--c-primary) 40%, transparent); font-size: 2.2rem; }
.c-card .body { padding: .75rem .85rem .9rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.c-card .brand { color: var(--c-muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.c-card .name { font-weight: 650; font-size: .93rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.c-card .short { color: var(--c-muted); font-size: .8rem; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.c-card .prices { margin-top: auto; padding-top: .4rem; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .45rem; }
.c-card .view { margin-top: .6rem; min-height: 38px; font-size: .84rem; padding: .35rem .6rem; }
.c-add { position: absolute; right: .55rem; bottom: .55rem; z-index: 3; width: 42px; height: 42px; border-radius: var(--rb); border: 0; background: var(--c-primary); color: var(--c-on-primary); display: flex; align-items: center; justify-content: center; font-size: 1.15rem; cursor: pointer; box-shadow: 0 8px 18px -6px rgba(0,0,0,.35); transition: transform .15s var(--ease); }
body.btn-pill .c-add { border-radius: 50%; }
.c-add:hover { transform: scale(1.08); }
.c-add:active { transform: scale(.92); }
.c-add.added { animation: pop .4s var(--ease); }
@keyframes pop { 50% { transform: scale(1.25); } }
.price { font-weight: 800; font-size: 1.05rem; color: var(--c-primary); letter-spacing: -.01em; }
body.is-dark .price { color: color-mix(in srgb, var(--c-primary) 72%, #fff); }
.price-old { color: var(--c-muted); text-decoration: line-through; font-size: .82rem; font-weight: 500; }
.price-consult { color: var(--c-muted); font-weight: 650; font-size: .86rem; }
.tag { position: absolute; top: .6rem; left: .6rem; z-index: 2; padding: .25rem .55rem; border-radius: 8px; font-size: .72rem; font-weight: 800; background: var(--c-secondary); color: #fff; letter-spacing: .01em; }
body.btn-pill .tag { border-radius: 99px; }
.tag-sale { background: #e11d48; }
.tag-out { background: rgba(15,23,42,.82); }
.tag-soon { background: #f59e0b; color: #111; }
.tag-new { background: var(--c-secondary); }
.c-card.is-out .img img { filter: grayscale(.85); opacity: .7; }

/* ── Detalle de producto ──────────────────────────────── */
.p-wrap { display: grid; gap: 1.3rem; margin: 1rem 0 2rem; }
.p-gallery .main-img { aspect-ratio: 1; border-radius: calc(var(--r) + 6px); overflow: hidden; background: var(--c-surface); position: relative; }
body.card-border .p-gallery .main-img { border: 1px solid var(--c-border); }
body.card-shadow .p-gallery .main-img { box-shadow: var(--shadow-md); }
.p-gallery .main-img img { width: 100%; height: 100%; object-fit: contain; transition: opacity .2s; }
.p-thumbs { display: flex; gap: .5rem; margin-top: .7rem; overflow-x: auto; scrollbar-width: none; }
.p-thumbs button { width: 70px; height: 70px; flex-shrink: 0; border-radius: 14px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--c-surface); cursor: pointer; opacity: .65; transition: opacity .15s, border-color .15s; }
.p-thumbs button.active { border-color: var(--c-primary); opacity: 1; }
.p-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.p-info h1 { font-size: 1.6rem; font-weight: 800; margin: .4rem 0 .45rem; letter-spacing: -.025em; }
.p-meta { display: flex; gap: .4rem; flex-wrap: wrap; font-size: .8rem; color: var(--c-muted); }
.p-meta span { background: var(--c-surface); border: 1px solid var(--c-border); padding: .2rem .65rem; border-radius: 99px; }
.p-price { margin: 1.1rem 0 .8rem; display: flex; align-items: baseline; gap: .65rem; flex-wrap: wrap; }
.p-price .price { font-size: 2rem; }
.p-price .off { background: #e11d48; color: #fff; font-weight: 800; font-size: .8rem; padding: .2rem .55rem; border-radius: 8px; }
.avail { display: inline-flex; align-items: center; gap: .45rem; font-weight: 650; font-size: .9rem; padding: .35rem .75rem; border-radius: 99px; background: rgba(34,197,94,.1); color: #15803d; }
body.is-dark .avail { color: #4ade80; }
.avail::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.avail.out { background: rgba(100,116,139,.12); color: var(--c-muted); }
.avail.soon { background: rgba(245,158,11,.14); color: #b45309; }
.p-buttons { display: grid; gap: .6rem; margin: 1.2rem 0; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--c-border); border-radius: var(--rb); background: var(--c-surface); overflow: hidden; flex-shrink: 0; }
.qty button { width: 44px; height: 52px; border: 0; background: none; color: var(--c-text); font-size: 1.25rem; cursor: pointer; }
.qty input { width: 40px; height: 52px; border: 0; text-align: center; background: none; color: var(--c-text); font: inherit; font-weight: 800; font-size: 16px; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.p-box { background: var(--c-surface); border-radius: var(--r); padding: 1.15rem 1.2rem; margin-top: 1rem; }
body.card-border .p-box, body.card-flat .p-box { border: 1px solid var(--c-border); }
body.card-shadow .p-box { box-shadow: var(--shadow-sm); }
.p-box h2 { font-size: 1rem; margin-bottom: .65rem; font-weight: 800; }
.p-box .text { white-space: pre-line; font-size: .95rem; }
.p-features { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.p-features li { display: flex; gap: .6rem; padding: .35rem 0; font-size: .93rem; }
.p-features li .bi { color: var(--c-primary); }
.share { display: flex; gap: .45rem; flex-wrap: wrap; align-items: center; }
.share .lbl { color: var(--c-muted); font-size: .85rem; margin-right: .25rem; }
.share a, .share button { width: 42px; height: 42px; border-radius: var(--rb); display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--c-border); background: var(--c-surface); font-size: 1.05rem; cursor: pointer; transition: color .15s, transform .15s; }
body.btn-pill .share a, body.btn-pill .share button { border-radius: 50%; }
.share a:hover, .share button:hover { color: var(--c-primary); transform: translateY(-2px); }
.video { aspect-ratio: 16/9; border-radius: var(--r); overflow: hidden; margin-top: 1rem; background: #000; }
.video iframe { width: 100%; height: 100%; border: 0; }
.p-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: .65rem 1rem calc(.65rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--c-surface) 90%, transparent); backdrop-filter: blur(16px); border-top: 1px solid var(--c-border); display: flex; gap: .5rem; align-items: center; transform: translateY(110%); transition: transform .3s var(--ease); }
.p-sticky.show { transform: none; }
.p-sticky .ps-price { flex: 1; min-width: 0; line-height: 1.2; }
.p-sticky .ps-price small { display: block; color: var(--c-muted); font-size: .72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.has-sticky .fab-wa, body.has-sticky .fab-cart { display: none !important; }

/* ── Carrito (hoja inferior) ──────────────────────────── */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(2,6,23,.5); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .25s; backdrop-filter: blur(2px); }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; background: var(--c-surface); border-radius: 26px 26px 0 0; max-height: 90vh; display: flex; flex-direction: column; transform: translateY(105%); transition: transform .32s var(--ease); box-shadow: 0 -10px 40px rgba(0,0,0,.2); }
.sheet::before { content: ''; width: 40px; height: 5px; border-radius: 9px; background: var(--c-border); margin: .6rem auto 0; }
body.cart-open .sheet { transform: none; }
body.cart-open .sheet-backdrop { opacity: 1; pointer-events: auto; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: .6rem 1.15rem .75rem; border-bottom: 1px solid var(--c-border); }
.sheet-head h2 { font-size: 1.15rem; font-weight: 800; display: flex; gap: .5rem; align-items: center; }
.sheet-body { overflow-y: auto; padding: .4rem 1.15rem; flex: 1; }
.sheet-foot { padding: .9rem 1.15rem calc(1rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--c-border); }
.cart-item { display: flex; gap: .8rem; padding: .8rem 0; border-bottom: 1px solid var(--c-border); align-items: center; }
.cart-item:last-child { border-bottom: 0; }
.cart-item img, .cart-item .ph { width: 60px; height: 60px; border-radius: 14px; object-fit: cover; background: var(--c-soft); flex-shrink: 0; }
.cart-item .info { flex: 1; min-width: 0; }
.cart-item .n { font-weight: 650; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-item .p { color: var(--c-primary); font-weight: 700; font-size: .88rem; }
.cart-item .qty button { width: 34px; height: 36px; font-size: 1.05rem; }
.cart-item .qty input { width: 32px; height: 36px; }
.cart-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.15rem; margin-bottom: .8rem; }
.cart-empty { text-align: center; color: var(--c-muted); padding: 2.8rem 1rem; }
.cart-empty .bi { font-size: 2.8rem; display: block; margin-bottom: .5rem; color: var(--c-primary); opacity: .5; }
.cart-note { width: 100%; border: 1px solid var(--c-border); border-radius: 12px; background: var(--c-bg); color: var(--c-text); padding: .65rem .8rem; font: inherit; font-size: 16px; resize: none; margin-bottom: .8rem; }

/* ── Flotantes ────────────────────────────────────────── */
.fab-wa { position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 40; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; box-shadow: 0 10px 26px -6px rgba(37,211,102,.6); transition: transform .2s var(--ease); }
.fab-wa:hover { transform: scale(1.07); }
.fab-wa::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37,211,102,.5); animation: ring 2.6s infinite; }
@keyframes ring { 70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
.fab-cart { position: fixed; left: 1rem; right: 5.4rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 40; display: none; animation: c-in .35s var(--ease); }
body.has-cart .fab-cart { display: flex; }
.fab-cart .c-btn { width: 100%; min-height: 58px; justify-content: space-between; border-radius: calc(var(--rb) + 4px); box-shadow: 0 14px 30px -10px rgba(0,0,0,.45); }
body.btn-square .fab-cart .c-btn { border-radius: 10px; }
.fab-cart .c-count { position: static; border: 0; background: var(--c-on-primary); color: var(--c-primary); }
.c-toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); background: #0f172a; color: #fff; padding: .7rem 1.15rem; border-radius: 99px; font-size: .88rem; font-weight: 600; z-index: 80; opacity: 0; transition: all .25s var(--ease); pointer-events: none; white-space: nowrap; display: flex; gap: .45rem; align-items: center; }
.c-toast.show { opacity: 1; transform: translate(-50%, 0); }
.install-banner { position: fixed; left: .75rem; right: .75rem; top: .75rem; z-index: 70; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 18px; box-shadow: 0 16px 40px rgba(0,0,0,.18); padding: .75rem; display: none; align-items: center; gap: .75rem; max-width: 480px; margin: 0 auto; }
.install-banner.show { display: flex; animation: c-in .35s var(--ease); }
.install-banner img { width: 46px; height: 46px; border-radius: 12px; }
.install-banner .t { flex: 1; min-width: 0; font-size: .84rem; color: var(--c-muted); }
.install-banner .t b { display: block; font-size: .93rem; color: var(--c-text); }

/* ── Pie y varios ─────────────────────────────────────── */
.c-footer { margin-top: 3rem; padding: 2.2rem 0 7.5rem; color: var(--c-muted); font-size: .9rem; background: color-mix(in srgb, var(--c-surface) 60%, var(--c-bg)); border-top: 1px solid var(--c-border); }
.c-footer .cols { display: grid; gap: 1.5rem; }
.c-footer h3 { color: var(--c-text); font-size: .95rem; margin-bottom: .6rem; }
.c-footer p { margin: .35rem 0; display: flex; gap: .5rem; align-items: flex-start; }
.c-footer p .bi { color: var(--c-primary); }
.c-footer a:hover { color: var(--c-primary); }
.c-footer .powered { text-align: center; margin-top: 2rem; font-size: .8rem; }
.c-footer .powered a { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .8rem; border-radius: 99px; background: var(--c-surface); border: 1px solid var(--c-border); font-weight: 650; color: var(--c-text); }
.c-empty { text-align: center; padding: 3rem 1rem; color: var(--c-muted); }
.c-empty .bi { font-size: 2.8rem; display: block; margin-bottom: .6rem; color: var(--c-primary); opacity: .45; }
.c-pagination { display: flex; justify-content: center; gap: .4rem; margin: 1.8rem 0; flex-wrap: wrap; }
.c-pagination a, .c-pagination span { min-width: 44px; height: 44px; padding: 0 .9rem; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--rb); background: var(--c-surface); border: 1px solid var(--c-border); font-weight: 650; font-size: .9rem; }
.c-pagination .active { background: var(--c-primary); color: var(--c-on-primary); border-color: var(--c-primary); }
.c-pagination .disabled { opacity: .4; }
.c-select { height: 40px; border-radius: var(--rb); border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-text); padding: 0 .75rem; font: inherit; font-size: .85rem; }
.suspended { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 2rem; }
.suspended .box { max-width: 420px; }
.suspended .bi { font-size: 3rem; color: var(--c-muted); }
.preview-banner { background: #0f172a; color: #fff; text-align: center; padding: .55rem 1rem; font-size: .85rem; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

@media (min-width: 640px) {
  .c-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .c-scroll { grid-auto-columns: 31%; }
  .c-cover { height: 250px; }
  .c-footer .cols { grid-template-columns: 1.3fr 1fr 1fr; }
  .p-buttons { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .c-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.15rem; }
  .c-scroll { grid-auto-columns: 23.5%; }
  .c-cover { height: 300px; max-width: 1240px; margin: 1rem auto 0; border-radius: 28px; }
  body.hdr-minimal .c-cover { margin-top: 0; }
  .c-head { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto; gap: 0 1.4rem; align-items: end; text-align: left; padding: 0 2.5rem 1.4rem; }
  .c-logo { margin: -56px 0 0; width: 120px; height: 120px; grid-row: span 2; }
  body.hdr-minimal .c-logo { margin-top: 1.5rem; }
  .c-head .info { padding-bottom: .2rem; }
  .c-head h1 { font-size: 2rem; }
  .c-meta { justify-content: flex-start; }
  .c-head .desc { margin: .6rem 0 0; }
  .c-actions { justify-content: flex-end; margin: 0; align-self: center; }
  .c-head .extras { grid-column: 2 / -1; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-top: .8rem; }
  .c-head .extras .c-socials, .c-head .extras .c-hours { margin: 0; }
  .c-head .extras .c-hours { position: relative; }
  .c-head .extras .c-hours[open] dl { position: absolute; top: 100%; left: 0; right: 0; background: var(--c-surface); border: 1px solid var(--c-border); border-top: 0; border-radius: 0 0 14px 14px; padding-top: .3rem; z-index: 10; }
  .c-bar .row { gap: .75rem; }
  .p-wrap { grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: start; margin-top: 1.5rem; }
  .p-gallery { position: sticky; top: 90px; }
  .p-info h1 { font-size: 2.1rem; }
  .p-sticky { display: none; }
  body.has-sticky .fab-wa, body.has-sticky .fab-cart { display: flex !important; }
  body.has-sticky:not(.has-cart) .fab-cart { display: none !important; }
  .sheet { left: auto; right: 1rem; bottom: 1rem; top: 1rem; width: 430px; max-height: none; border-radius: 26px; transform: translateX(112%); }
  .sheet::before { display: none; }
  .fab-cart { left: auto; right: 5.6rem; width: 320px; }
}
@media (min-width: 1280px) { .c-grid.wide { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.c-card .media { position: relative; }
body.card-flat .c-card .media { border-radius: var(--r); }
.fab-cart .c-btn { padding: .5rem 1rem; gap: .5rem; } #fab-cart-total { white-space: nowrap; font-weight: 800; }
