/* Página de un combo con el sistema de la página de inicio (home-page.css): foto grande en tarjeta redondeada
   con halo lila (Portrait), información a la derecha, "Qué incluye" en tarjetas y fila de relacionados (Tedy). */
.page-combo main { overflow-x: clip; }

/* Fila superior: ruta en píldoras a la izquierda y "Ver más" de la categoría a la derecha */
.combo-topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; width: min(1200px, calc(100% - 48px)); margin: 32px auto 0; }
.combo-topbar .combo-crumbs { width: auto; margin: 0; }
.combo-more { min-height: 44px; padding: 10px 22px; font-size: 15px; }
.combo-block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 14px; }
.combo-block-head h2 { margin: 0; }

/* Ruta en píldoras */
.combo-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: min(1200px, calc(100% - 48px)); margin: 32px auto 0; font-weight: 600; font-size: 14px; color: var(--muted); }
.combo-crumbs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--wash-lilac); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .combo-crumbs a:hover { color: var(--accent); } }

/* Foto + información */
.combo-main { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; width: min(1200px, calc(100% - 48px)); margin: 24px auto 0; }
.combo-photo { position: relative; isolation: isolate; aspect-ratio: 1 / 1; border-radius: 36px; overflow: hidden; background: var(--wash-lilac); box-shadow: 0 0 0 1px #35223e0f, 0 30px 60px -30px #a80b5559; }
.combo-photo::before { content: ''; position: absolute; inset: -20%; z-index: -1; background: radial-gradient(closest-side, #e5d6ff, transparent); }
.combo-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.combo-photo:has(img) { aspect-ratio: auto; }
.combo-photo:has(img) img { height: auto; }
.combo-info { display: flex; flex-direction: column; align-items: flex-start; padding-top: 8px; }
.combo-info .favs-tag { margin: 0; }
.combo-info h1 { margin: 16px 0 0; font: 600 clamp(40px, 5.2vw, 72px)/1 var(--font-display); letter-spacing: -.05em; color: var(--ink); }
.combo-stars { margin: 14px 0 0; font-size: 16px; letter-spacing: 2px; }
.combo-stars .stars-filled { color: #d99a00; }
.combo-stars .stars-empty { color: #e3dbe8; }
.combo-rating-num { margin-left: 6px; letter-spacing: 0; font-weight: 700; color: var(--ink); }
.combo-price { display: flex; align-items: baseline; gap: 12px; margin: 20px 0 0; }
.combo-price [data-combo-total] { font: 700 clamp(36px, 4vw, 48px)/1 var(--font-body); letter-spacing: -.03em; color: var(--accent); font-variant-numeric: tabular-nums; }
.combo-price-note { font-weight: 600; color: var(--muted); }

/* Opciones de inflado: control segmentado en píldoras */
.combo-options { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; border: 0; }
.combo-options legend { margin-bottom: 12px; padding: 0; font-weight: 700; font-size: 15px; color: var(--ink); }
.combo-option { position: relative; cursor: pointer; }
.combo-option input { position: absolute; opacity: 0; pointer-events: none; }
.combo-option span { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 10px 20px; border-radius: 999px; background: #fff; box-shadow: var(--card-shadow); font-weight: 600; transition: background-color .2s ease, color .2s ease, transform .15s ease; }
.combo-option small { font-weight: 600; color: var(--accent); }
.combo-option input:checked + span { background: var(--ink); color: #fff; }
.combo-option input:checked + span small { color: #ffc1e0; }
.combo-option input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.combo-option:active span { transform: scale(.97); }

.combo-description { margin: 0; max-width: 36em; font-size: 17px; line-height: 1.6; color: var(--muted); white-space: pre-line; }
.combo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }

/* Columna izquierda: foto y descripción debajo */
.combo-media-col { display: grid; gap: 0; min-width: 0; }
.combo-desc-block { margin-top: 28px; padding-top: 0; border-top: 0; }

/* Qué incluye dentro de la columna de información */
.combo-block { width: 100%; margin-top: 32px; padding-top: 24px; border-top: 1px solid #35223e14; }
.combo-block h2 { margin: 0 0 14px; font: 700 20px/1.2 var(--font-body); letter-spacing: -.02em; }
.combo-muted { margin: 0; color: var(--muted); }
.contents-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }

/* Qué incluye */
.combo-contents, .combo-related { width: min(1200px, calc(100% - 48px)); margin: 96px auto 0; }
.combo-contents h2, .combo-related h2 { font-size: clamp(30px, 3.6vw, 48px); }
.contents-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.content-card { display: grid; grid-template-columns: 72px 1fr auto; align-items: center; gap: 16px; padding: 10px 18px 10px 10px; border-radius: 24px; background: #fff; box-shadow: var(--card-shadow); }
.content-media { aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; background: var(--wash-sky); }
.content-media img { width: 100%; height: 100%; object-fit: contain; }
.content-name { font-weight: 600; line-height: 1.3; }
.content-qty { padding: 4px 12px; border-radius: 999px; background: var(--wash-butter); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }

/* También te puede gustar */
.combo-related { padding-bottom: 96px; }
.combo-related-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.related-arrows { display: flex; gap: 8px; }
.favs-arrow-btn { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: #fff; box-shadow: var(--card-shadow); color: var(--ink); font-size: 18px; cursor: pointer; }
.favs-arrow-btn:disabled { opacity: .35; cursor: default; }
@media (hover: hover) { .favs-arrow-btn:not(:disabled):hover { background: var(--ink); color: #fff; } }
.related-rail { margin-top: 24px; padding: 8px 4px 24px; scroll-padding-inline: 4px; }

@media (max-width: 900px) {
    .combo-main { grid-template-columns: 1fr; }
    .combo-photo { max-width: 560px; width: 100%; justify-self: center; }
    /* En una sola columna: foto, información y al final la descripción */
    .combo-media-col { display: contents; }
    .combo-photo { order: 1; }
    .combo-info { order: 2; }
    .combo-desc-block { order: 3; margin-top: 0; padding-top: 24px; border-top: 1px solid #35223e14; }
}
@media (max-width: 700px) {
    .combo-topbar, .combo-main, .combo-contents, .combo-related { width: calc(100% - 32px); }
    .combo-more { flex: 1 1 100%; }
    .combo-photo { border-radius: 28px; }
    .combo-contents, .combo-related { margin-top: 64px; }
    .related-arrows { display: none; }
    .combo-actions .home-button { flex: 1 1 100%; }
}

/* Página de un producto: etiqueta con "Mira los combos" a la derecha, agotado y disponibilidad */
.combo-tag-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; width: 100%; }
.page-product .sold-out-pill { position: absolute; left: 16px; top: 16px; padding: 6px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 13px; }
.product-stock { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 6px 14px; border-radius: 999px; background: var(--wash-mint); color: #2c6b2f; font-weight: 600; font-size: 14px; }
.product-stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.product-stock.is-out { background: #fde3e3; color: #a3271f; }

/* Página de un festejo: collage de productos en lugar de foto y aviso de apartar en tienda */
.page-festejo .combo-photo .occasion-collage { position: absolute; inset: 0; padding: 18px; gap: 10px; }
.festejo-store-note { margin: 28px 0 0; padding: 14px 20px; border-radius: 20px; background: var(--wash-butter); font-weight: 600; color: var(--ink); }
.page-festejo .favs-media { position: relative; overflow: hidden; }
.page-festejo .favs-media .occasion-collage { position: absolute; inset: 0; }
