/* ============================================================
   Combos — página del combo (combo.php) y su marca en el catálogo / carrito. Prefijo cmb-
   Usa las variables del tema; reutiliza prd-* (productos.css) y shp-* (shop.css).
   ============================================================ */

/* ---------- Imagen ---------- */
.cmb-gallery { position: sticky; top: 88px; }
.cmb-gallery__main {
    aspect-ratio: 800 / 1080; border-radius: 18px; overflow: hidden; background: #14141A;
    border: 1px solid var(--tcg-border); box-shadow: 0 22px 44px -26px rgba(0,0,0,.6);
}
.cmb-gallery__main img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cmb-thumbs .prd-thumb { width: 64px; height: 88px; border-radius: 10px; background: #14141A; }
.cmb-thumbs .prd-thumb img { object-fit: cover; }

/* ---------- Encabezado e info ---------- */
.cmb-tag {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
    background: var(--tcg-primary); color: #fff; font-size: .8rem; font-weight: 800; letter-spacing: .02em;
}
.cmb .prd-info h1 { margin-top: 12px; }
.cmb-old { margin-top: 6px; font-size: .9rem; color: var(--tcg-text-muted); }
.cmb-save { margin-left: 6px; padding: 2px 9px; border-radius: 999px; background: #FEE2E2; color: #991B1B; font-size: .76rem; font-weight: 800; }
[data-theme="dark"] .cmb-save { background: rgba(239,68,68,.18); color: #FCA5A5; }
.cmb-ahorro {
    display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 11px 14px; border-radius: 12px;
    background: #ECFDF5; color: #065F46; font-size: .9rem; line-height: 1.45;
}
.cmb-ahorro i { font-size: 1.15rem; margin-top: 1px; }
.cmb-ahorro s { opacity: .75; }
[data-theme="dark"] .cmb-ahorro { background: rgba(16,185,129,.14); color: #6EE7B7; }
.cmb .prd-pill { margin-top: 12px; }
.cmb .prd-desc { margin-top: 26px; }

/* ---------- Qué incluye ---------- */
.cmb-incluye { margin-top: 48px; }
.cmb-incluye__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.cmb-incluye__head h2 { margin: 0; font-size: 1.4rem; letter-spacing: -.01em; }
.cmb-incluye__head p { margin: 0; color: var(--tcg-text-muted); font-size: .92rem; }
.cmb-lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 14px; }
.cmb-it {
    display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px;
    background: var(--tcg-bg-card, #fff); border: 1px solid var(--tcg-border); border-radius: 16px;
}
.cmb-it__img { position: relative; aspect-ratio: 5 / 7; border-radius: 8px; background: var(--tcg-bg-soft); box-shadow: 0 6px 14px -8px rgba(0,0,0,.5); }
.cmb-it__img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 8px; }
.cmb-it__x {
    position: absolute; top: -8px; right: -8px; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center;
    background: var(--tcg-primary); color: #fff; border: 2px solid var(--tcg-bg-card, #fff); font-size: .8rem; font-weight: 800;
}
.cmb-it__txt { min-width: 0; }
.cmb-it__txt b { display: block; font-size: 1rem; line-height: 1.25; overflow-wrap: anywhere; }
.cmb-it__txt > span { display: block; margin-top: 3px; font-size: .82rem; color: var(--tcg-text-muted); overflow-wrap: anywhere; }
.cmb-it__txt small { display: block; margin-top: 8px; font-size: .8rem; color: var(--tcg-text-muted); font-variant-numeric: tabular-nums; }
.cmb-it__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.cmb-chip {
    display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 8px; background: var(--tcg-bg-soft);
    border: 1px solid var(--tcg-border); font-size: .76rem; font-weight: 700; color: var(--tcg-text);
}
.cmb-chip--gold { background: #FEF3C7; border-color: #FCD34D; color: #92400E; }
.cmb-chip--foil { background: #EDE9FE; border-color: #C4B5FD; color: #5B21B6; }
[data-theme="dark"] .cmb-chip--gold { background: rgba(245,158,11,.16); border-color: rgba(245,158,11,.4); color: #FCD34D; }
[data-theme="dark"] .cmb-chip--foil { background: rgba(139,92,246,.18); border-color: rgba(139,92,246,.4); color: #C4B5FD; }

/* ---------- Ficha del combo en el catálogo (shop.css) ---------- */
.shp-item--combo .shp-item__media { padding: 0; background: #14141A; overflow: hidden; }
.shp-item--combo .shp-item__img { object-fit: cover; width: 100%; height: 100%; }
.shp-pill--combo { background: var(--tcg-primary); color: #fff; border-color: transparent; }
.shp-item--combo .shp-item__sub { color: var(--tcg-primary); font-weight: 700; }
.shp-save { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #D1FAE5; color: #065F46; font-size: .72rem; font-weight: 800; white-space: nowrap; }
[data-theme="dark"] .shp-save { background: rgba(16,185,129,.18); color: #6EE7B7; }

@media (max-width: 860px) {
    .cmb-gallery { position: static; max-width: 440px; margin: 0 auto; width: 100%; }
}
@media (max-width: 480px) {
    .cmb-it { grid-template-columns: 78px minmax(0, 1fr); gap: 12px; padding: 12px; }
}
