/* =============================================================================
   section: wine-product (ficha de vino) + breadcrumb
   shopify: plantilla de producto de Vincent + bloque propio «Ficha técnica y legal»
            (snippets wine-tech-sheet y wine-legal-info) leído de metacampos vino.* y eco.*
   Sin precio ni carrito en esta fase: el botón es «Solicitar información».
   ============================================================================= */
.breadcrumb { padding-top: 20px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; padding: 0; list-style: none; color: var(--c-ink-mute); }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; opacity: .6; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-decoration-color: var(--c-hair); text-underline-offset: 4px; }
.breadcrumb a:hover { color: var(--c-ink); }
.breadcrumb [aria-current] { display: inline-flex; align-items: center; min-height: 44px; }
/* Móvil: sin niveles intermedios y en una sola línea; el último se recorta con «…» (nunca una línea que empiece por «/») */
@media (max-width: 479px) {
  .breadcrumb ol { flex-wrap: nowrap; }
  .breadcrumb li:not(:first-child):not(:last-child) { display: none; }
  .breadcrumb li { flex: none; white-space: nowrap; }
  .breadcrumb li:last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .breadcrumb li:last-child [aria-current] { display: inline; }
}

.product { display: grid; gap: 40px; padding-top: 16px; padding-bottom: var(--section-y); }
.product__gallery { aspect-ratio: 4 / 5; max-height: 60svh; width: 100%; display: grid; place-items: center; }
.product__gallery img { width: auto; height: 78%; filter: drop-shadow(0 30px 24px rgba(20,18,16,.10)); }
.product__info { display: flex; flex-direction: column; gap: 0; }
.product__eyebrow { margin-bottom: 16px; }
.product__title { margin-bottom: 12px; }
.product__subtitle { color: var(--c-ink-soft); font-size: .875rem; letter-spacing: .02em; }
.product__cta { display: grid; gap: 12px; margin: 32px 0 8px; }
/* «Solicitar información» en una línea también a 320 px */
@media (max-width: 479px) { .product__cta .btn { padding: 0 16px; letter-spacing: .2em; } }
.product__cta small { font-size: .8125rem; color: var(--c-ink-mute); line-height: 1.6; }
.product__cta small a { text-decoration: underline; text-decoration-color: var(--c-gold-ink); text-underline-offset: 3px; }
.product__notes { display: grid; margin: 24px 0 0; padding: 0; list-style: none; font-size: .8125rem; color: var(--c-ink-soft); }
.product__notes li { padding: 12px 0; border-top: 1px solid var(--c-hair); }
.product__notes li:last-child { border-bottom: 1px solid var(--c-hair); }
.product__lede { margin: 40px 0 8px; font: italic 400 1.25rem/1.5 var(--ff-serif); color: var(--c-ink); }

/* Acordeones nativos (<details>): título en Playfair de 18 px y + / − fino */
.acc { border-bottom: 1px solid var(--c-hair); }
.product__info > .acc:first-of-type { margin-top: 40px; border-top: 1px solid var(--c-hair); }
.acc > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; cursor: pointer; list-style: none;
  font: 400 1.125rem/1.3 var(--ff-serif);
}
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary::after { content: "+"; font: 300 1.25rem/1 var(--ff-sans); color: var(--c-ink-mute); }
.acc[open] > summary::after { content: "−"; }
.acc__body { padding: 0 0 28px; }
.acc__body > * + * { margin-top: 16px; }
.acc__body .quote { font-size: 1.125rem; line-height: 1.5; } /* frase de marca dentro del acordeón, a escala */

/* Ficha técnica y bloque legal: listas de definición con filetes, sin iconos ni cajas */
.spec { display: grid; grid-template-columns: 1fr; margin: 0; }
.spec > div { display: grid; grid-template-columns: minmax(8rem, 2fr) 3fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--c-hair); }
.spec > div:first-child { border-top: 0; }
.spec dt { color: var(--c-ink-mute); font-size: .8125rem; letter-spacing: .02em; }
.spec dd { font-size: .875rem; font-variant-numeric: tabular-nums lining-nums; }
.spec .allergen { font-weight: var(--fw-medium); text-transform: uppercase; letter-spacing: .04em; }

.nutrition { width: 100%; font-size: .875rem; }
.nutrition caption { text-align: left; padding-bottom: 8px; font: var(--fw-medium) var(--fs-caps)/1.6 var(--ff-sans); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--c-ink-mute); }
.nutrition th, .nutrition td { padding: 8px 0; border-top: 1px solid var(--c-hair); text-align: left; font-weight: 400; }
.nutrition td { text-align: right; }
.nutrition .sub th { padding-left: 1.25em; color: var(--c-ink-soft); }

.eco { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--c-hair); font-size: .8125rem; }
.eco__logo { flex: none; display: grid; place-items: center; width: 64px; height: 44px; border: 1px solid var(--c-line-light-ui); font: var(--fw-medium) .5rem/1.2 var(--ff-sans); letter-spacing: .12em; color: var(--c-ink-mute); text-align: center; }

.product__responsible { margin-top: 40px; text-align: center; }

/* Imagen de ambiente a sangre entre la ficha y los otros vinos (no es la foto del producto) */
.ambient { aspect-ratio: 4 / 3; margin: 0 0 var(--section-y); }
@media (min-width: 750px) { .ambient { aspect-ratio: 21 / 9; max-height: 80vh; width: 100%; } }

@media (min-width: 990px) {
  .product { grid-template-columns: 7fr 5fr; gap: clamp(40px, 5vw, 96px); align-items: start; }
  .product__gallery { position: sticky; top: calc(var(--header-h) + 32px); aspect-ratio: auto; height: calc(100vh - var(--header-h) - 64px); min-height: 480px; max-height: 820px; }
  .product__info { padding-top: 24px; }
}

/* Foto real de botella en la ficha */
.product__gallery--photo { display: block; }
.product__gallery--photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; filter: none; }
/* En móvil y tableta, la foto mantiene su proporción 4:5 para que la botella se vea entera (con la cápsula) */
@media (max-width: 989px) {
  .product__gallery--photo { aspect-ratio: 751 / 939; max-height: none; width: min(100%, 30rem); margin-inline: auto; }
}
