/* ==========================================================================
   bh2026-ficha.css — REDISEÑO UX FASE 4: ficha de producto (Claudia, 15-oct-2026, maquetas de Celia)
   Se carga solo en la ficha (header.tpl, $page_name == 'product') DESPUÉS de bh2026.css: reutiliza sus variables
   (--bh-g, --bh-g-ink, --bh-pink-ink, --bh-red, --bh-bg, --bh-line, --bh-text, --bh-muted, --bh-radius).
   Todo va bajo #product para ganar al CSS antiguo (product.css) sin tocarlo. Sin fuentes ni librerías nuevas.
   Contraste AA: texto blanco solo sobre #4a842c (verde) y #d63a63 (rosa).
   ========================================================================== */

/* ---------- utilidades ---------- */
#product .bh4-sr, #product .bh4-ph, #product .bh4-packs .bh4-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
#product .bh4-product { color: var(--bh-text); }
#product .bh4-product img { max-width: 100%; }

/* ---------- bloque principal ---------- */
#product .primary_block.bh4-primary { margin: 6px 0 26px; background: none; border-radius: 0; box-shadow: none; }
#product .bh4-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
@media (min-width: 900px) {
  #product .bh4-top { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 44px; }
}

/* ==========================================================================
   1. GALERÍA
   ========================================================================== */
#product .bh4-gal { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; width: 100%; min-width: 0; float: none; padding: 0; }
#product .bh4-gal #image-block { position: relative; display: block; margin: 0; padding: 12px; float: none; width: auto; max-width: none; cursor: zoom-in; text-align: center; background: #fff; border: 1px solid #e3ebdc; border-radius: var(--bh-radius); overflow: hidden; }
#product .bh4-gal #image-block .middle-content { position: relative; display: block; margin: 0; padding: 0; }
#product .bh4-gal #image-block #view_full_size { display: block; position: relative; }
#product .bh4-gal #image-block img { display: block; width: 100%; height: auto; max-height: 580px; margin: 0 auto; object-fit: contain; }
#product .bh4-gal #image-block #view_full_size .span_link { display: none; }
#product .bh4-gal #image-block .new-box, #product .bh4-gal #image-block .sale-box { position: absolute; top: 4px; left: 4px; z-index: 5; line-height: 1.2; cursor: default; }
#product .bh4-gal #image-block .new-box .new-label, #product .bh4-gal #image-block .sale-box .sale-label { display: inline-block; padding: 4px 11px; border-radius: 999px; background: var(--bh-pink-ink); color: #fff; font-size: 13px; font-weight: 700; }
#product .bh4-gal #image-block .discount { display: none; }
/* flechas sobre la imagen (solo móvil; las muestra el JS si hay más de una imagen) */
#product .bh4-arrow { position: absolute; top: 50%; z-index: 6; display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin-top: -22px; padding: 0; border: 1px solid #dfe8d6; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--bh-text); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); cursor: pointer; }
#product .bh4-arrow-prev { left: 6px; }
#product .bh4-arrow-next { right: 6px; }
#product .bh4-arrow:focus-visible { outline: 3px solid var(--bh-g); outline-offset: 2px; }
@media (max-width: 899px) {
  #product .bh4-arrow:not([hidden]) { display: flex; }
}

/* miniaturas: fila bajo la imagen (móvil) / columna a la izquierda (escritorio) */
#product .bh4-gal #views_block { position: relative; margin: 0; padding: 0; float: none; width: auto; }
#product .bh4-gal #views_block.hidden { display: none !important; }
#product .bh4-gal .view_scroll_spacer, #product .bh4-gal #view_scroll_left, #product .bh4-gal #view_scroll_right { display: none !important; }
#product .bh4-gal #thumbs_list { max-width: none; width: auto; margin: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
#product .bh4-gal #thumbs_list_frame { display: flex; flex-direction: row; gap: 10px; width: max-content !important; max-width: none; margin: 0 !important; padding: 2px; list-style: none; overflow: visible; position: static !important; left: auto !important; }
#product .bh4-gal #thumbs_list li { float: none; flex: 0 0 auto; width: 76px; height: 76px; margin: 0 !important; padding: 0; line-height: 0; overflow: hidden; border-radius: 10px; }
#product .bh4-gal #thumbs_list li a { display: block; width: 100%; height: 100%; border: 1px solid #dfe8d6; border-radius: 10px; background: #fff; overflow: hidden; }
#product .bh4-gal #thumbs_list li a:hover { border-color: var(--bh-g); }
#product .bh4-gal #thumbs_list li a.shown { border: 2px solid var(--bh-g-ink); }
#product .bh4-gal #thumbs_list li img { display: block; width: 100%; height: 100%; object-fit: contain; }
#product .bh4-gal .resetimg { margin: 0; }
@media (min-width: 900px) {
  #product .bh4-gal { grid-template-columns: 88px minmax(0, 1fr); grid-template-areas: "thumbs main"; align-items: start; }
  #product .bh4-gal #image-block { grid-area: main; }
  #product .bh4-gal #views_block { grid-area: thumbs; }
  #product .bh4-gal .resetimg { grid-column: 1 / -1; }
  #product .bh4-gal #thumbs_list { overflow-x: hidden; overflow-y: auto; max-height: 560px; }
  #product .bh4-gal #thumbs_list_frame { flex-direction: column; width: auto !important; }
  #product .bh4-gal #thumbs_list li { width: 84px; height: 84px; }
}

/* ==========================================================================
   2. COLUMNA DERECHA
   ========================================================================== */
#product .bh4-info { position: relative; display: flex; flex-direction: column; min-width: 0; }
#product .bh4-info > * { order: 6; }
#product .bh4-info .bh4-fav { position: absolute; top: 0; right: 0; order: 0; }
#product .bh4-info .bh4-brand { order: 1; margin: 0 0 2px; font-size: 15px; font-weight: 700; letter-spacing: .05em; line-height: 1.3; text-transform: uppercase; }
#product .bh4-info .bh4-brand a { color: var(--bh-g-ink); text-decoration: none; }
#product .bh4-info .bh4-brand a:hover, #product .bh4-info .bh4-brand a:focus-visible { text-decoration: underline; }
#product .bh4-info h1.product-name { order: 2; margin: 0 0 8px; padding: 0 52px 0 0; font-size: clamp(25px, 3vw, 37px); font-weight: 700; line-height: 1.15; color: var(--bh-text); text-transform: none; }
#product .bh4-info p.online_only { order: 3; margin: 0 0 6px; }
#product .bh4-info #product_reference { display: none; }
#product .bh4-info .bh4-offer-msg { order: 5; margin: 0 0 10px; }
#product .bh4-info #short_description_block { order: 4; margin: 0 0 14px; }
#product .bh4-info #short_description_content { font-size: 17px; line-height: 1.5; color: #34432f; text-align: left; }
#product .bh4-info #short_description_content p { margin: 0 0 6px; }

/* bloques de los módulos (displayProductButtons) en un contenedor transparente: se ordenan como hijos del flex */
#product .bh4-acciones { display: contents; }
#product .bh4-acciones > * { order: 5; }
#product .bh4-acciones > .volume-discounts { order: 7; }
#product .bh4-info .box-info-product.bh4-buy { order: 6; }
#product .bh4-info .bh4-garantias { order: 8; }
#product .bh4-info .bh4-extra-right { order: 9; }

/* --- valoraciones (módulo gsnippetsreviews, con su aggregateRating): compactas bajo el H1 --- */
#product .bh4-acciones > #gsr.productAction { order: 3; margin: 0 0 10px; padding: 0; border: 0; background: none; box-shadow: none; }
#product .bh4-acciones > #gsr.productAction .average-heading-title,
#product .bh4-acciones > #gsr.productAction .display-distribution,
#product .bh4-acciones > #gsr.productAction .distrib-text,
#product .bh4-acciones > #gsr.productAction .clr_5,
#product .bh4-acciones > #gsr.productAction .clr_0,
#product .bh4-acciones > #gsr.productAction > .clear { display: none !important; }
#product .bh4-acciones > #gsr.productAction > div[itemprop="aggregateRating"] { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
#product .bh4-acciones > #gsr.productAction .display-review { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; }
#product .bh4-acciones > #gsr.productAction .pull-left, #product .bh4-acciones > #gsr.productAction .pull-right { float: none !important; display: flex; align-items: center; }
#product .bh4-acciones > #gsr.productAction .rating-star-yellow { float: none !important; display: flex; align-items: center; color: #f0a500; line-height: 1; }
#product .bh4-acciones > #gsr.productAction .left { float: none; font-size: 15px; color: var(--bh-text); }
#product .bh4-acciones > #gsr.productAction .padding-left5 { padding-left: 0; }
#product .bh4-acciones > #gsr.productAction .text-center, #product .bh4-acciones > #gsr.productAction a.btn { display: none !important; }
#product .bh4-acciones > #gsr.productAction .review-count-text { float: none; font-size: 15px; color: var(--bh-g-ink); }
#product .bh4-acciones > #gsr.productAction .review-count-text span { font-size: inherit; }
#product .bh4-acciones > #gsr.productAction.bh4-rating-link { cursor: pointer; }
#product .bh4-acciones > #gsr.productAction.bh4-rating-link:hover .review-count-text { text-decoration: underline; }
#product .bh4-acciones > #gsr.productAction:focus-visible { outline: 3px solid var(--bh-g); outline-offset: 3px; border-radius: 6px; }
/* «4,9/5 (9 opiniones)» (lo pinta js/bh2026-ficha.js con los mismos datos del schema); el texto del módulo queda en el DOM, solo recortado */
#product .bh4-acciones > #gsr.productAction.bh4-rating-done .pull-right, #product .bh4-acciones > #gsr.productAction.bh4-rating-done .review-count-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
#product .bh4-acciones > #gsr.productAction.bh4-rating-done .display-review { display: contents; }
#product .bh4-acciones > #gsr .bh4-rt { display: inline-flex; align-items: baseline; gap: 5px; margin-left: 10px; font-size: 16px !important; line-height: 1.2; color: var(--bh-text); white-space: nowrap; }
#product .bh4-acciones > #gsr .bh4-rt strong, #product .bh4-acciones > #gsr .bh4-rt span { font-size: inherit !important; }
#product .bh4-acciones > #gsr .bh4-rt strong { font-weight: 700; }
#product .bh4-acciones > #gsr .bh4-rt span { color: var(--bh-g-ink); }
/* sin valoraciones: no se pintan estrellas (ni la invitación a puntuar, que sigue en la pestaña Opiniones) */
#product .bh4-acciones > #gsr.productAction:not(:has([itemprop="aggregateRating"])) { display: none; }

/* --- caja de compra --- */
#product .box-info-product.bh4-buy { margin: 0; padding: 0; border: 0; border-radius: 0; height: auto; display: block; }
#product .bh4-buyform { margin: 0; }
#product .content_prices { margin: 0; }
#product p.our_price_display { float: none; margin: 0; line-height: 0; }
#product #visual_total_price_block { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 2px 0 6px; font-size: 18px; font-weight: 400; color: var(--bh-text); }
#product #visual_total_price_block .bh4-price-now { display: inline-flex; align-items: baseline; }
#product #visual_total_price_block .styled-price, #product #visual_total_price_block .styled-currency { font-size: clamp(34px, 4.2vw, 46px); font-weight: 800; line-height: 1.1; color: var(--bh-text); }
#product #visual_total_price_block.bh4-has-disc .styled-price, #product #visual_total_price_block.bh4-has-disc .styled-currency { color: var(--bh-red); }
#product #visual_total_price_block #visual_total_old_price { margin: 0; font-size: 21px; font-weight: 400; color: #6a6a6a; text-decoration: line-through; }
#product #visual_total_price_block .classic-discount-label { display: inline-block; margin: 0; padding: 4px 12px; border-radius: 999px; background: var(--bh-pink-ink); color: #fff; font-size: 17px; font-weight: 700; line-height: 1.3; }
#product .content_prices .price-ecotax, #product .content_prices .unit-price { margin: 4px 0; font-size: 14px; color: var(--bh-muted); }

/* disponibilidad (sin cifras) */
#product #pQuantityAvailable { display: none !important; }
#product #last_quantities { display: none !important; }
#product #availability_statut.bh4-stock { margin: 2px 0 12px; }
#product #availability_value.label { display: inline-flex; align-items: center; gap: 8px; padding: 0; background: none; border: 0; font-size: 15px; font-weight: 600; line-height: 1.35; text-align: left; white-space: normal; color: var(--bh-g-ink); }
#product #availability_value.label::before { content: ""; flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; background: var(--bh-g-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
#product #availability_value.label-success.bh4-last, #product #availability_value.label-warning { color: #8a5a00; }
#product #availability_value.label-success.bh4-last::before, #product #availability_value.label-warning::before { background-color: #c98200; }
#product #availability_value.label-danger { color: #b3261e; }
#product #availability_value.label-danger::before { background-color: #b3261e; }
#product #availability_date { margin: 0; }
#product #oosHook { margin: 0 0 10px; }

/* --- selector por cantidad (bhpackselector, ronda 16-oct) --- ver bloque «RONDA 16-OCT» al final --- */
#product .bh4-packs { margin: 4px 0 14px; }
/* con packs reales, el bloque «AHORRA CON ESTOS PACKS» del módulo de descuentos por volumen sobra */
#product .bh4-info.has-packs .bh4-acciones > .volume-discounts { display: none; }

/* --- combinaciones --- */
#product .bh4-info .product_attributes { margin: 0 0 10px; padding: 0; }
#product .bh4-info #attributes fieldset { margin: 0 0 10px; padding: 0; border: 0; }
#product .bh4-info #attributes .attribute_label { display: block; margin: 0 0 4px; font-size: 14px; font-weight: 700; color: var(--bh-text); }
#product .bh4-info #attributes select.form-control { width: 100%; max-width: 100%; height: 48px; border: 1px solid #c9d8bd; border-radius: 10px; background-color: #fff; font-size: 16px; }
#product .bh4-info #attributes .attribute_list ul { margin: 0; padding: 0; list-style: none; }

/* --- cantidad + botón --- */
#product .bh4-buyrow { display: flex; align-items: stretch; gap: 12px; margin: 6px 0 0; }
#product #quantity_wanted_p.bh4-qty { position: static; display: inline-flex; flex: 0 0 auto; align-items: center; gap: 0; margin: 0; max-width: none; flex-wrap: nowrap; border: 1px solid #c9d8bd; border-radius: 10px; background: #fff; overflow: hidden; }
#product #quantity_wanted_p.bh4-qty input#quantity_wanted { width: 52px; height: 54px; margin: 0; padding: 0; border: 0; border-radius: 0; background: #fff; text-align: center; font-size: 18px; font-weight: 700; color: var(--bh-text); -moz-appearance: textfield; appearance: textfield; }
#product #quantity_wanted_p.bh4-qty .btn.button-minus, #product #quantity_wanted_p.bh4-qty .btn.button-plus { position: static; float: none; display: flex; align-items: center; justify-content: center; width: 46px; height: 54px; margin: 0; padding: 0; border: 0; border-radius: 0; background: #fff; box-shadow: none; color: var(--bh-text); font-size: 16px; line-height: 1; }
#product #quantity_wanted_p.bh4-qty .btn.button-minus:hover, #product #quantity_wanted_p.bh4-qty .btn.button-plus:hover, #product #quantity_wanted_p.bh4-qty .btn:focus-visible { background: var(--bh-bg); }
#product .bh4-buyrow .box-cart-bottom { flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; }
#product .bh4-buyrow .box-cart-bottom > div { height: 100%; }
#product .bh4-buyrow .box-cart-bottom .unvisible { display: none; }
#product .bh4-buyrow #add_to_cart { height: 100%; margin: 0; }
#product .bh4-buyrow #add_to_cart button.exclusive { position: relative; display: block; width: 100%; height: 100%; min-height: 56px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--bh-g-ink); color: #fff; font-size: 19px; font-weight: 700; line-height: 1.2; text-transform: none; box-shadow: 0 2px 0 rgba(31, 90, 46, .35); transition: background .15s; }
#product .bh4-buyrow #add_to_cart button.exclusive > span { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 0; }
#product .bh4-buyrow #add_to_cart button.exclusive:hover, #product .bh4-buyrow #add_to_cart button.exclusive:focus { background: var(--bh-g-hov); }
#product .bh4-buyrow #add_to_cart button.exclusive:focus-visible { outline: 3px solid var(--bh-g); outline-offset: 2px; }
#product .bh4-buyrow #add_to_cart button.exclusive.disabled { opacity: .7; cursor: progress; }
#product .bh4-buyrow #add_to_cart button.exclusive .bh4-ico-cart { flex: 0 0 auto; fill: none; stroke: currentColor; }
#product #minimal_quantity_wanted_p { margin: 8px 0 0; font-size: 14px; color: var(--bh-muted); }

/* descuentos por volumen del módulo (cuando no hay packs reales): chips compactos */
#product .bh4-acciones > .volume-discounts { margin: 12px 0 0; padding: 12px; border: 1px solid var(--bh-line); border-radius: var(--bh-radius); background: var(--bh-bg); }
#product .bh4-acciones > .volume-discounts .titulo { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .03em; text-align: center; color: var(--bh-g-d); }
#product .bh4-acciones > .volume-discounts .discount-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }

/* --- garantías --- */
#product .bh4-garantias { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; margin: 16px 0 0; padding: 14px 0 0; list-style: none; border-top: 1px solid #e3ebdc; }
#product .bh4-garantias li { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; font-size: 13.5px; line-height: 1.3; color: var(--bh-text); }
#product .bh4-garantias svg { flex: 0 0 auto; color: var(--bh-g); }
@media (min-width: 1600px) {
  #product .bh4-garantias { grid-template-columns: repeat(4, auto); justify-content: space-between; }
}
#product #visual_total_price_block .styled-currency { margin-left: .18em; }
#product .bh4-extra-right { margin-top: 12px; }

/* ==========================================================================
   3. «COMPRADOS JUNTOS HABITUALMENTE»
   ========================================================================== */
#product .bh4-cross-band { position: relative; margin: 0 0 8px; padding: 22px 0 26px; background: #f8f6f1; box-shadow: 0 0 0 100vmax #f8f6f1; -webkit-clip-path: inset(0 -100vmax); clip-path: inset(0 -100vmax); }
#product .bh4-cs-title { margin: 0 0 14px; font-size: 24px; font-weight: 700; line-height: 1.25; color: var(--bh-text); text-transform: none; }
#product .bh4-cs-wrap { position: relative; }
#product .bh4-cs-list { display: flex; gap: 16px; margin: 0; padding: 2px 2px 8px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
#product .bh4-cs-list::-webkit-scrollbar { display: none; }
#product .bh4-cs-item { flex: 0 0 86%; margin: 0; padding: 0; scroll-snap-align: start; }
@media (min-width: 640px) { #product .bh4-cs-item { flex-basis: calc((100% - 16px) / 2); } }
@media (min-width: 992px) { #product .bh4-cs-item { flex-basis: calc((100% - 48px) / 4); min-width: 250px; } }
#product .bh4-cs-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; height: 100%; padding: 12px; box-sizing: border-box; border: 1px solid #ece6d8; border-radius: var(--bh-radius); background: #fff; }
#product .bh4-cs-img { display: block; align-self: center; line-height: 0; }
#product .bh4-cs-img img { display: block; width: 100%; height: auto; max-height: 110px; object-fit: contain; }
#product .bh4-cs-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
#product .bh4-cs-name { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.3; text-transform: none; }
#product .bh4-cs-name a { color: var(--bh-text); text-decoration: none; }
#product .bh4-cs-name a:hover { text-decoration: underline; }
#product .bh4-cs-price { font-size: 17px; font-weight: 700; color: var(--bh-text); }
#product .bh4-cs-add { display: inline-flex; align-items: center; justify-content: center; align-self: stretch; min-height: 44px; margin-top: auto; padding: 0 14px; border-radius: 8px; background: var(--bh-g-ink); color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; transition: background .15s; }
#product .bh4-cs-add:hover, #product .bh4-cs-add:focus-visible { background: var(--bh-g-hov); color: #fff; text-decoration: none; }
#product .bh4-cs-add.bh4-cs-ver { background: #fff; color: var(--bh-g-ink); border: 1px solid var(--bh-g-ink); }
#product .bh4-cs-nav { position: absolute; top: 50%; z-index: 4; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-top: -26px; padding: 0; border: 1px solid #dfe8d6; border-radius: 50%; background: #fff; color: var(--bh-text); box-shadow: 0 2px 8px rgba(0, 0, 0, .14); cursor: pointer; }
#product .bh4-cs-nav[hidden] { display: none; }
#product .bh4-cs-nav:disabled { opacity: .4; cursor: default; }
#product .bh4-cs-nav:focus-visible { outline: 3px solid var(--bh-g); outline-offset: 2px; }
#product .bh4-cs-prev { left: -14px; }
#product .bh4-cs-next { right: -14px; }
@media (max-width: 991px) { #product .bh4-cs-prev { left: -6px; } #product .bh4-cs-next { right: -6px; } }

/* estrellas compactas propias (tarjetas): 0-5 con --bh4-r */
#product .bh4-stars { display: inline-block; position: relative; width: 5.4em; height: 1em; font-size: 14px; line-height: 1; vertical-align: -2px; }
#product .bh4-stars::before { content: "\2605\2605\2605\2605\2605"; position: absolute; inset: 0; letter-spacing: .08em; color: #d8d8cf; }
#product .bh4-stars::after { content: "\2605\2605\2605\2605\2605"; position: absolute; inset: 0; letter-spacing: .08em; color: #f0a500; width: calc(var(--bh4-r, 0) / 5 * 100%); overflow: hidden; white-space: nowrap; }
#product .bh4-stars-n { margin-left: 4px; font-size: 13px; color: var(--bh-muted); }

/* ==========================================================================
   4. PESTAÑAS
   ========================================================================== */
#product .bh4-tabs { margin: 28px 0 14px; }
#product .bh4-tabbar { display: flex; gap: 2px; margin: 0; overflow-x: auto; border-bottom: 2px solid #e3e8df; scrollbar-width: none; }
#product .bh4-tabbar::-webkit-scrollbar { display: none; }
#product .bh4-tab { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 52px; margin: 0 0 -2px; padding: 0 22px; border-bottom: 3px solid transparent; color: var(--bh-muted); font-size: 17px; line-height: 1.2; text-decoration: none; white-space: nowrap; }
#product .bh4-tab:hover { color: var(--bh-text); }
#product .bh4-tab[aria-selected="true"] { color: var(--bh-text); font-weight: 700; border-bottom-color: var(--bh-g); }
#product .bh4-tab:focus-visible { outline: 3px solid var(--bh-g); outline-offset: -3px; border-radius: 6px; }
#product .bh4-panel { padding: 22px 0 6px; }
#product .bh4-panel[hidden] { display: none; }
#product .bh4-desc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 900px) { #product .bh4-desc-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; } }
#product #product_description { margin: 0; font-size: 16px; line-height: 1.7; color: #2c3a28; }
#product #product_description h2, #product #product_description h3 { margin: 22px 0 8px; font-size: 20px; line-height: 1.3; color: var(--bh-g-d); cursor: auto; }
#product #product_description h2:first-child, #product #product_description h3:first-child { margin-top: 0; }
#product #product_description p { margin: 0 0 12px; }
#product #product_description img { max-width: 100%; height: auto; }
#product .bh4-features { margin-top: 24px; }
#product .bh4-features .table-data-sheet { width: 100%; }
#product .bh4-modo { display: flex; align-items: flex-start; gap: 14px; align-self: start; padding: 18px 20px; border-radius: var(--bh-radius); background: var(--bh-bg); }
#product .bh4-modo-ico { flex: 0 0 auto; color: var(--bh-g-ink); }
#product .bh4-modo-t { margin: 2px 0 4px; font-size: 16px; font-weight: 700; color: var(--bh-text); text-transform: none; }
#product .bh4-modo-p { margin: 0; font-size: 15px; line-height: 1.5; color: #34432f; }

/* ficha legal (ingredientes / cómo tomarlo): clases hg-legal del publicador del gestor */
#product .bh4-legal { font-size: 15.5px; line-height: 1.65; color: #2c3a28; }
#product .bh4-legal section { margin: 0 0 18px; }
#product .bh4-legal h3 { margin: 0 0 6px; font-size: 18px; color: var(--bh-g-d); text-transform: none; }
#product .bh4-legal p { margin: 0 0 8px; }
#product .bh4-legal ul { margin: 0 0 8px; padding-left: 20px; }
#product .bh4-legal table { width: 100%; max-width: 560px; border-collapse: collapse; font-size: 14.5px; }
#product .bh4-legal caption { padding: 0 0 6px; font-weight: 700; text-align: left; caption-side: top; }
#product .bh4-legal th, #product .bh4-legal td { padding: 6px 10px; border: 1px solid #dfe8d6; text-align: left; }
#product .bh4-legal thead th { background: var(--bh-bg); }
#product .bh4-legal .hg-legal-nota, #product .bh4-legal .hg-legal-vrn-nota { font-size: 13px; color: var(--bh-muted); }
#product .bh4-legal strong { font-weight: 700; }

/* FAQ */
#product .bh4-faq-item { padding: 14px 0; border-bottom: 1px solid #e3e8df; }
#product .bh4-faq-item:first-child { padding-top: 0; }
#product .bh4-faq-q { margin: 0 0 4px; font-size: 17px; font-weight: 700; line-height: 1.35; color: var(--bh-text); text-transform: none; }
#product .bh4-faq-a { margin: 0; font-size: 16px; line-height: 1.6; color: #34432f; }

/* opiniones (HTML del módulo gsnippetsreviews): sin su título duplicado */
#product .bh4-panel-op > section.page-product-box { margin: 0; padding: 0; border: 0; box-shadow: none; background: none; }
#product .bh4-panel-op > section.page-product-box > .page-product-heading { display: none; }

/* resto de bloques (módulos) a todo el ancho */
#product .bh4-after { margin-top: 8px; }
#product #blockpack { margin-top: 18px; }

/* medida de línea legible (~75 caracteres) en descripción y fichas */
#product #product_description, #product .bh4-legal, #product .bh4-faq { max-width: 75ch; }
@media (min-width: 1100px) {
  /* sin caja «Modo de empleo»: la descripción ocupa el ancho a dos columnas de lectura (sin hueco a la derecha) */
  #product .bh4-desc-grid.bh4-nobox #product_description { max-width: none; column-width: 440px; column-count: 2; column-gap: 56px; }
  #product .bh4-desc-grid.bh4-nobox #product_description h2, #product .bh4-desc-grid.bh4-nobox #product_description h3 { break-after: avoid; -webkit-column-break-after: avoid; }
  #product .bh4-desc-grid.bh4-nobox #product_description img, #product .bh4-desc-grid.bh4-nobox #product_description table { break-inside: avoid; }
}

/* títulos de sección en la fuente de la fase (no la condensada antigua) */
#product .bh4-cs-title, #product .bh4-after .page-product-heading, #product #blockpack .page-product-heading, #product .bh4-sidebar .page-product-heading, #product .bh4-extra .page-product-heading { font-family: inherit !important; }
#product #blockpack { margin-top: 30px; }
#product #blockpack .page-product-heading { margin: 0 0 14px; padding: 0; border: 0; background: none; font-size: 24px; font-weight: 700; line-height: 1.25; color: var(--bh-text); text-transform: none; letter-spacing: 0; }
/* «Contenido del paquete»: tarjetas de fase 1, compactas y en fila */
#product #blockpack ul.product_base_list { display: flex; flex-wrap: wrap; gap: 16px; margin: 0; padding: 0; list-style: none; }
#product #blockpack ul.product_base_list li.base_product { float: none; width: 210px; max-width: 100%; margin: 0; padding: 0; }
#product #blockpack .bh26-card .product-image-container { padding: 10px 10px 4px; }
#product #blockpack .bh26-card .right-block { padding: 4px 10px 12px; }
#product #blockpack .bh26-card h3.bh26-name { height: 3.9em; font-size: 14px; }

/* ---------- bloques antiguos de debajo: títulos h2 de la fase, tarjetas y flechas coherentes ---------- */
#product .bh4-after .page-product-box { margin: 30px 0 0; padding: 0; border: 0; background: none; box-shadow: none; }
#product .bh4-after .page-product-heading, #product .bh4-after h2.page-product-heading { margin: 0 0 14px; padding: 0; border: 0; background: none; font-size: 24px; font-weight: 700; line-height: 1.25; color: var(--bh-text); text-transform: none; letter-spacing: 0; }
#product .bh4-after .page-product-heading::before, #product .bh4-after .page-product-heading::after { display: none; }

/* «Otros productos en la misma categoría» (productscategory, slick) */
#product .blockproductscategory .product_list_wrapper { position: relative; }
#product .blockproductscategory .product_base_list { margin: 0; padding: 0; list-style: none; }
#product .blockproductscategory .base_product { padding: 0 8px; box-sizing: border-box; }
#product .blockproductscategory .product-container { height: 100%; padding: 14px 12px; box-sizing: border-box; border: 1px solid #ece6d8; border-radius: var(--bh-radius); background: #fff; box-shadow: none; text-align: center; }
#product .blockproductscategory .product-image-container { margin: 0 0 8px; line-height: 0; }
#product .blockproductscategory .product-image-container img { display: block; width: auto; max-width: 100%; height: 150px; margin: 0 auto; object-fit: contain; }
#product .blockproductscategory .right-block h5 { margin: 0 0 6px; font-size: 14px; font-weight: 500; line-height: 1.3; text-transform: none; }
#product .blockproductscategory .product-name { color: var(--bh-text); text-decoration: none; }
#product .blockproductscategory .product-name:hover { text-decoration: underline; }
#product .blockproductscategory .content_price { margin: 0; }
#product .blockproductscategory .price { font-size: 17px; font-weight: 700; color: var(--bh-text); }
#product .blockproductscategory .slick-prev, #product .blockproductscategory .slick-next { position: absolute; top: 50%; z-index: 4; width: 44px; height: 44px; min-width: 44px; margin: -22px 0 0; padding: 0; border: 1px solid #dfe8d6; border-radius: 50%; background: #fff center / 20px no-repeat; box-shadow: 0 2px 8px rgba(0, 0, 0, .14); font-size: 0; line-height: 0; color: transparent; text-indent: -9999px; overflow: hidden; opacity: 1; cursor: pointer; }
#product .blockproductscategory .slick-prev { left: -10px; right: auto; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323301f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 5-7 7 7 7'/%3E%3C/svg%3E"); }
#product .blockproductscategory .slick-next { right: -10px; left: auto; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323301f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 5 7 7-7 7'/%3E%3C/svg%3E"); }
#product .blockproductscategory .slick-prev::before, #product .blockproductscategory .slick-next::before, #product .blockproductscategory .slick-prev::after, #product .blockproductscategory .slick-next::after { display: none !important; content: none !important; }
#product .blockproductscategory .slick-prev:focus-visible, #product .blockproductscategory .slick-next:focus-visible { outline: 3px solid var(--bh-g); outline-offset: 2px; }
#product .blockproductscategory .slick-disabled { opacity: .4; cursor: default; }

/* banners de zeroproductadditional (VG+SD, envíos gratis…) y accesorios: tarjetas con borde y radio */
#product .bh4-sidebar { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 30px; }
#product .bh4-sidebar > .page-product-box, #product .bh4-sidebar > section { margin: 0; padding: 18px; box-sizing: border-box; border: 1px solid #ece6d8; border-radius: var(--bh-radius); background: #fff; text-align: center; }
#product .bh4-sidebar .page-product-heading { margin: 0 0 12px; font-size: 20px; }
#product .bh4-sidebar img { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 8px; }
#product .bh4-sidebar .rte, #product .bh4-sidebar .rte p { margin: 0; }
#product .bh4-sidebar .rte h2 { margin: 0; font-size: inherit; }

/* «Información sobre productos» (aviso legal): bloque sobrio, con el espaciado y la tipografía de la fase */
#product .bh4-extra .page-product-box { margin: 34px 0 0; padding: 20px 0 0; border-top: 1px solid #e3e8df; }
#product .bh4-extra .page-product-heading { margin: 0 0 8px; font-size: 18px; }
#product .bh4-extra .rte p, #product .bh4-extra .rte span { margin: 0 0 6px; font-size: 13.5px; line-height: 1.6; color: var(--bh-muted); }
#product .bh4-extra .rte { max-width: 75ch; }

/* ==========================================================================
   5. BARRA FIJA DE COMPRA (móvil)
   ========================================================================== */
#product #mobile-sticky-add-to-cart { display: none !important; }
@media (max-width: 767px) {
  #product #mobile-sticky-add-to-cart.is-on { display: block !important; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid #dfe8d6; box-shadow: 0 -2px 10px rgba(0, 0, 0, .1); }
  #product.bh4-sticky-on { padding-bottom: 72px; }
  #product #mobile-sticky-add-to-cart .mobile-bar-inner { gap: 10px; }
  #product #mobile-sticky-add-to-cart .quantity-controls { gap: 0; border: 1px solid #c9d8bd; border-radius: 10px; overflow: hidden; }
  #product #mobile-sticky-add-to-cart .quantity-controls input { width: 44px; height: 48px; border: 0; border-radius: 0; font-size: 17px; font-weight: 700; }
  #product #mobile-sticky-add-to-cart .quantity-controls .btn-minus, #product #mobile-sticky-add-to-cart .quantity-controls .btn-plus { width: 44px; height: 48px; border: 0; border-radius: 0; background: #fff; font-size: 20px; }
  #product #mobile-sticky-add-to-cart .btn-add-to-cart { min-height: 48px; padding: 0 12px; border-radius: 10px; background: var(--bh-g-ink); font-size: 17px; font-weight: 700; text-transform: none; }
  #product #mobile-sticky-add-to-cart .btn-add-to-cart:disabled { background: #9aa893; }
}

/* ==========================================================================
   6. MÓVIL
   ========================================================================== */
@media (max-width: 599px) {
  #product .bh4-info h1.product-name { font-size: 25px; }
  #product .bh4-tab { padding: 0 16px; font-size: 16px; }
  #product .bh4-cs-title { font-size: 21px; }
  #product .bh4-buyrow #add_to_cart button.exclusive { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  #product .bh16-opt, #product .bh4-cs-add, #product .bh4-buyrow #add_to_cart button.exclusive { transition: none; }
}

/* ==========================================================================
   RONDA 16-OCT (ficha, envío gratis por dirección y fecha de entrega) — Claudia, 16-oct-2026
   ========================================================================== */

/* 1. Con UNA sola imagen no hay columna de miniaturas: la foto queda centrada (escritorio y móvil) */
#product .bh4-gal.bh4-gal-solo { grid-template-columns: minmax(0, 1fr); grid-template-areas: none; justify-items: center; }
#product .bh4-gal.bh4-gal-solo #image-block { grid-area: auto; width: 100%; max-width: 640px; }
#product .bh4-gal.bh4-gal-solo #views_block, #product .bh4-gal.bh4-gal-solo .resetimg { display: none !important; }

/* 2-3. Selector por cantidad: tarjetas (radiogroup) */
#product .bh16-qty { margin: 4px 0 14px; }
#product .bh16-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(124px, 1fr)); gap: 10px; margin: 0; padding: 0; }
#product .bh16-opt { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 3px; min-height: 116px; padding: 12px 6px 12px; box-sizing: border-box; border: 1px solid var(--bh-line); border-radius: var(--bh-radius); background: #fff; color: var(--bh-text); font: inherit; text-align: center; cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; -webkit-appearance: none; appearance: none; }
#product .bh16-opt.has-tags { padding-top: 14px; }
#product .bh16-opt:hover { border-color: var(--bh-g); }
#product .bh16-opt:focus-visible { outline: 3px solid var(--bh-g); outline-offset: 2px; }
#product .bh16-opt.is-sel { border: 2px solid var(--bh-g-ink); background: var(--bh-bg); padding: 11px 5px 11px; box-shadow: 0 0 0 1px var(--bh-g-ink) inset; }
#product .bh16-opt.is-sel.has-tags { padding-top: 13px; }
#product .bh16-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; width: 100%; margin: -2px 0 4px; }
#product .bh16-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; line-height: 1.5; text-transform: uppercase; white-space: nowrap; }
#product .bh16-tag-pop { background: var(--bh-g-ink); }
#product .bh16-tag-rec { background: #2b5f8f; }
#product .bh16-tag-max { background: var(--bh-pink-ink); }
#product .bh16-n { font-size: 16px; font-weight: 700; line-height: 1.25; }
#product .bh16-u { font-size: 14px; color: var(--bh-muted); line-height: 1.3; }
#product .bh16-t { font-size: 18px; font-weight: 700; line-height: 1.25; color: var(--bh-text); }
#product .bh16-d { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 2px; }
#product .bh16-d-pct { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--bh-pink-ink); color: #fff; font-size: 14px; font-weight: 700; line-height: 1.4; }
#product .bh16-d-eur { font-size: 13px; color: #34432f; line-height: 1.3; }
#product .bh16-free { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; color: var(--bh-g-d); font-size: 13px; font-weight: 700; line-height: 1.3; }
#product .bh16-free svg { flex: 0 0 auto; fill: none; stroke: currentColor; }
#product .bh16-priceinfo { margin: 2px 0 8px; font-size: 15px; font-weight: 600; color: var(--bh-g-d); }
#product .bh16-priceinfo[hidden] { display: none; }

/* 5. Fecha de entrega destacada junto al botón */
#product .bh16-entrega { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0 0; padding: 11px 14px; border-radius: 10px; background: var(--bh-bg); color: var(--bh-g-d); font-size: 15px; line-height: 1.4; }
#product .bh16-entrega[hidden] { display: none; }
#product .bh16-entrega svg { flex: 0 0 auto; margin-top: 1px; fill: none; stroke: currentColor; }
#product .bh16-entrega strong { font-weight: 700; }
#product .bh16-entrega-t span { display: inline; }
#product .bh16-entrega-pedido { background: #fdf8ec; color: #6b4e12; }

/* 8. Aviso legal («Información sobre productos»): nota discreta */
#product .bh4-extra .bh16-aviso { display: flex; align-items: flex-start; gap: 12px; max-width: 80ch; margin: 28px 0 0; padding: 14px 16px; box-sizing: border-box; border: 1px solid #e3e8df; border-radius: 10px; background: #f6f8f3; color: #4b5746; }
#product .bh4-extra .bh16-aviso-ico { flex: 0 0 auto; margin-top: 2px; color: #6a7a63; fill: none; stroke: currentColor; }
#product .bh4-extra .bh16-aviso-t { margin: 0 0 4px; padding: 0; border: 0; font-size: 14px; font-weight: 700; line-height: 1.4; color: #34432f; text-transform: none; }
#product .bh4-extra .bh16-aviso p { margin: 0 0 4px; font-size: 14px; line-height: 1.55; color: #4b5746; }
#product .bh4-extra .bh16-aviso p:last-child { margin-bottom: 0; }

/* 9. «Otros productos en la misma categoría»: tarjeta normal (product-list) en carrusel de scroll */
#product .bh16-cat { position: relative; margin: 34px 0 0; }
#product .bh16-cat .bh16-cat-t { margin: 0 0 14px; font-size: 24px; font-weight: 700; line-height: 1.25; color: var(--bh-text); text-transform: none; }
#product .bh16-cat-list { margin: 0; padding: 0; }
#product .bh16-cat-list ul.product_list { display: flex; flex-wrap: nowrap; gap: 14px; margin: 0; padding: 2px 2px 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; list-style: none; }
#product .bh16-cat-list ul.product_list > li { flex: 0 0 calc((100% - 56px) / 5); min-width: 190px; width: auto; margin: 0; padding: 0; scroll-snap-align: start; float: none; }
@media (max-width: 1199px) { #product .bh16-cat-list ul.product_list > li { flex-basis: calc((100% - 28px) / 3); } }
@media (max-width: 767px) { #product .bh16-cat-list ul.product_list > li { flex-basis: 70%; min-width: 0; } }
#product .bh16-cat-nav { display: flex; gap: 8px; position: absolute; top: 0; right: 0; }
#product .bh16-cat-nav button { width: 44px; height: 44px; padding: 0; border: 1px solid #dfe8d6; border-radius: 50%; background: #fff; color: var(--bh-text); cursor: pointer; }
#product .bh16-cat-nav button:disabled { opacity: .4; cursor: default; }
#product .bh16-cat-nav button:focus-visible { outline: 3px solid var(--bh-g); outline-offset: 2px; }
#product .bh16-cat-nav[hidden] { display: none; }

/* 9. Banners de debajo de la ficha: sin título interno (se quita en la plantilla) */
@media (max-width: 599px) {
  #product .bh16-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #product .bh16-opt { min-height: 110px; }
  #product .bh16-entrega { font-size: 14px; }
  #product .bh16-cat .bh16-cat-t { font-size: 21px; }
  #product .bh16-cat-nav { position: static; margin: -6px 0 8px; justify-content: flex-end; }
}

/* Los banners de zeroproductadditional traen imágenes con width fijo (p. ej. 631 px): sin min-width:0 la rejilla se ensancha y la página desborda (visto en la ficha 29074 a 1440 px) */
#product .bh4-sidebar > * { min-width: 0; }
#product .bh4-sidebar img { max-width: 100%; height: auto; }
#product .bh4-sidebar { width: 100%; float: none; clear: both; box-sizing: border-box; }

/* Selector por cantidad, 19-oct (Fernando): todas las tarjetas del mismo alto y con las líneas a la misma altura;
   la etiqueta (una como mucho) va montada sobre el borde superior y no empuja el contenido; «Envío gratis» siempre abajo */
#product .bh16-opts { gap: 16px 10px; padding-top: 10px; align-items: stretch; }
#product .bh16-opt, #product .bh16-opt.has-tags { justify-content: flex-start; min-height: 0; padding: 16px 6px 12px; }
#product .bh16-opt.is-sel, #product .bh16-opt.is-sel.has-tags { padding: 15px 5px 11px; }
#product .bh16-tags { position: absolute; z-index: 1; top: 0; left: 50%; width: auto; max-width: calc(100% - 10px); margin: 0; transform: translate(-50%, -50%); }
#product .bh16-tag { overflow: hidden; max-width: 100%; padding: 2px 9px; font-size: 10.5px; text-overflow: ellipsis; box-shadow: 0 0 0 2px #fff; }
#product .bh16-d { min-height: 44px; justify-content: flex-start; }
#product .bh16-free { margin-top: auto; padding-top: 4px; }
/* 20-oct (Celia): «Envío gratis» más destacado = chip verde suave, negrita, mismo hueco para que las tarjetas sigan iguales */
#product .bh16-free { align-self: center; box-sizing: border-box; padding: 3px 9px; border-radius: 999px; background: #e3f1d6; color: var(--bh-g-d); font-weight: 800; font-size: 13px; letter-spacing: .01em; white-space: nowrap; }
#product .bh16-opt.is-sel .bh16-free { background: #d3e9c1; }
@media (max-width: 599px) { #product .bh16-free { padding: 3px 7px; font-size: 12px; gap: 3px; } #product .bh16-free svg { width: 14px; height: 14px; } }
@media (max-width: 599px) { #product .bh16-opt { min-height: 0; } }
/* la línea verde bajo el precio tiene su hueco siempre (no empuja al cambiar de tarjeta) */
#product .bh16-priceinfo { min-height: 1.4em; }

/* Estrellas de arriba, 19-oct: las del módulo (medias estrellas solapadas) fuera; las nuestras con la nota real */
#product .bh4-acciones #gsr .rating-star-yellow.bh4-stars-mod { display: none !important; }
#product .bh4-acciones #gsr .bh4-stars.bh4-stars-top { display: inline-block !important; flex: 0 0 auto; width: 5.6em !important; height: 1em !important; font-size: 17px !important; line-height: 1 !important; margin: 0 8px 0 0 !important; }

/* ===== Ficha 19-oct (3.ª ronda, Fernando) ===== */
/* Foto algo más pequeña: la columna de compra gana sitio */
@media (min-width: 900px) {
  #product .bh4-top { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 40px; }
  #product .bh4-gal #image-block img { max-height: 470px; }
  #product .bh4-gal #thumbs_list { max-height: 470px; }
}

/* Comprados juntos dentro de la columna de compra: lista compacta (máx. 3), filas imagen · nombre/precio · botón */
#product .bh4-info .bh4-cross-side { order: 8; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid #e3ebdc; }
#product .bh4-info .bh4-garantias { order: 7; }
#product .bh4-cross-side .bh4-cs-rate { display: none; }
#product .bh4-cross-side .bh4-cs-name { align-self: end; }
#product .bh4-cross-side .bh4-cs-price { align-self: start; }
/* la foto acompaña al bajar (la columna de compra es más larga y dejaba un hueco blanco a la izquierda) */
@media (min-width: 900px) { #product .bh4-top > .bh4-gal { position: sticky; top: 76px; } }
#product .bh4-cross-side .bh4-cs-title { margin: 0 0 10px; font-size: 17px; font-weight: 700; }
#product .bh4-cross-side .bh4-cs-nav { display: none !important; }
#product .bh4-cross-side .bh4-cs-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 0; overflow: visible; }
#product .bh4-cross-side .bh4-cs-item { min-width: 0 !important; flex: none; }
#product .bh4-cross-side .bh4-cs-item:nth-child(n+4) { display: none; }
#product .bh4-cross-side .bh4-cs-card { grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 10px; }
#product .bh4-cross-side .bh4-cs-img img { max-height: 56px; }
#product .bh4-cross-side .bh4-cs-body { display: contents; }
#product .bh4-cross-side .bh4-cs-name { grid-column: 2; font-size: 14px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
#product .bh4-cross-side .bh4-cs-price { grid-column: 2; font-size: 15px; margin-top: -6px; }
#product .bh4-cross-side .bh4-cs-card { grid-template-rows: auto auto; row-gap: 0; }
#product .bh4-cross-side .bh4-cs-img { grid-row: 1 / span 2; }
#product .bh4-cross-side .bh4-cs-add { grid-column: 3; grid-row: 1 / span 2; align-self: center; min-height: 40px; padding: 0 14px; font-size: 14px; margin: 0; }

/* Pestañas a todo el ancho, en tarjeta blanca; FAQ en 2 columnas, ingredientes y uso en 2 columnas, descripción en 2 columnas */
#product .bh4-tabs { padding: 6px 28px 24px; background: #fff; border: 1px solid #e3ebdc; border-radius: var(--bh-radius); }
#product .bh4-tabbar { margin: 0 -28px; padding: 0 20px; }
#product .bh4-tab { font-size: 16px; }
#product #product_description, #product .bh4-legal, #product .bh4-faq { max-width: none; }
@media (min-width: 900px) {
  #product .bh4-desc-grid.bh4-nobox #product_description { column-count: 2; column-width: auto; column-gap: 56px; }
  /* ficha legal: cada apartado una celda; si solo hay uno ocupa todo el ancho (con columnas quedaba a la mitad) */
  #product .bh4-legal { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 8px 56px; }
  #product .bh4-legal > :not(section) { grid-column: 1 / -1; }
  #product .bh4-legal table { max-width: none; }
  #product .bh4-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
  #product .bh4-faq-item, #product .bh4-faq-item:first-child { padding: 16px 18px; border: 1px solid #e3e8df; border-radius: 10px; background: #fbfaf6; }
}
#product .bh4-extra .bh16-aviso { max-width: none !important; width: 100%; }
#product .bh4-desc-grid.bh4-nobox { grid-template-columns: minmax(0, 1fr) !important; }
@media (max-width: 767px) { #product .bh4-tabs { padding: 4px 14px 18px; } #product .bh4-tabbar { margin: 0 -14px; padding: 0 6px; } }

/* Barra fija de compra también en PC (19-oct): abajo, al ancho de la página, solo cuando el botón grande quedó arriba */
#product #mobile-sticky-add-to-cart .bh4-sb-prod { display: none; }
@media (min-width: 768px) {
  #product #mobile-sticky-add-to-cart.is-on { display: block !important; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; padding: 10px 24px; background: #fff; border-top: 1px solid #dfe8d6; box-shadow: 0 -4px 16px rgba(0, 0, 0, .1); }
  #product.bh4-sticky-on { padding-bottom: 80px; }
  #product #mobile-sticky-add-to-cart .mobile-bar-inner { display: flex; align-items: center; gap: 16px; max-width: 1272px; margin: 0 auto; }
  #product #mobile-sticky-add-to-cart .bh4-sb-prod { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0; }
  #product #mobile-sticky-add-to-cart .bh4-sb-img { flex: 0 0 48px; width: 48px; height: 48px; object-fit: contain; border-radius: 8px; border: 1px solid #ece6d8; background: #fff; }
  #product #mobile-sticky-add-to-cart .bh4-sb-name { min-width: 0; overflow: hidden; color: var(--bh-text); font-size: 15px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
  #product #mobile-sticky-add-to-cart .bh4-sb-price { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; font-size: 14px; color: var(--bh-muted); white-space: nowrap; }
  #product #mobile-sticky-add-to-cart .bh4-sb-price strong { color: #c8102e; font-size: 22px; font-weight: 700; }
  #product #mobile-sticky-add-to-cart .bh4-sb-price em { padding: 2px 9px; border-radius: 999px; background: var(--bh-pink-ink); color: #fff; font-size: 13px; font-style: normal; font-weight: 700; }
  #product #mobile-sticky-add-to-cart .quantity-controls { display: flex; flex: 0 0 auto; border: 1px solid #c9d8bd; border-radius: 10px; overflow: hidden; }
  #product #mobile-sticky-add-to-cart .quantity-controls input { width: 48px; height: 48px; border: 0; text-align: center; font-size: 17px; font-weight: 700; }
  #product #mobile-sticky-add-to-cart .quantity-controls .btn-minus, #product #mobile-sticky-add-to-cart .quantity-controls .btn-plus { width: 44px; height: 48px; border: 0; background: #fff; font-size: 20px; cursor: pointer; }
  #product #mobile-sticky-add-to-cart .btn-add-to-cart { flex: 0 0 280px; min-height: 48px; border: 0; border-radius: 10px; background: var(--bh-g-ink); color: #fff; font-size: 17px; font-weight: 700; text-transform: none; cursor: pointer; }
  #product #mobile-sticky-add-to-cart .btn-add-to-cart:hover { background: var(--bh-g-hov); }
}

/* Opiniones propias (19-oct): resumen con media y barras + tarjetas; sin Twitter ni paginación con recarga */
#product .bh19-op-res { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 48px; margin: 0 0 22px; padding: 18px 22px; border-radius: 12px; background: #f6f9f2; }
#product .bh19-op-media { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
#product .bh19-op-media strong { font-size: 40px; font-weight: 700; line-height: 1; color: var(--bh-text); }
#product .bh19-op-media .bh4-stars { font-size: 20px; width: 5.6em; height: 1em; }
#product .bh19-op-n { font-size: 14px; color: var(--bh-muted); }
#product .bh19-op-dist { flex: 1 1 260px; max-width: 420px; margin: 0; padding: 0; list-style: none; }
#product .bh19-op-dist li { display: grid; grid-template-columns: 34px minmax(0, 1fr) 28px; align-items: center; gap: 10px; padding: 2px 0; font-size: 13.5px; color: #4a5446; }
#product .bh19-op-bar { height: 8px; border-radius: 999px; background: #e3e8df; overflow: hidden; }
#product .bh19-op-bar i { display: block; height: 100%; border-radius: inherit; background: #f0a500; }
#product .bh19-op-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin: 0; padding: 0; list-style: none; }
#product .bh19-op-it { margin: 0; padding: 16px 18px; border: 1px solid #e3e8df; border-radius: 10px; background: #fff; }
html.bh26-js #product .bh19-op-it.is-mas { display: none; }
html.bh26-js #product .bh19-op.is-todas .bh19-op-it.is-mas { display: block; }
#product .bh19-op-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 6px; }
#product .bh19-op-st { color: #f0a500; font-size: 15px; letter-spacing: .08em; line-height: 1; white-space: nowrap; }
#product .bh19-op-st i { color: #d8d8cf; font-style: normal; }
#product .bh19-op-tit { font-size: 16px; font-weight: 700; color: var(--bh-text); }
#product .bh19-op-txt { margin: 0 0 8px; font-size: 15px; line-height: 1.55; color: #34432f; }
#product .bh19-op-meta { margin: 0; font-size: 13px; color: var(--bh-muted); }
#product .bh19-op-mas { display: block; min-height: 44px; margin: 18px auto 0; padding: 0 24px; border: 1.5px solid var(--bh-g); border-radius: 999px; background: #fff; color: var(--bh-g-d); font-size: 15px; font-weight: 700; cursor: pointer; }
#product .bh19-op-mas:hover { background: var(--bh-bg); }
html:not(.bh26-js) #product .bh19-op-mas { display: none; }
@media (max-width: 767px) { #product .bh19-op-list { grid-template-columns: minmax(0, 1fr); } #product .bh19-op-res { padding: 14px; gap: 14px 24px; } }

/* La burbuja del chat (módulo bhchat) sube cuando sale la barra fija de compra: no puede tapar «Añadir a la cesta» */
body.bh4-sticky-on #bhchat { bottom: 134px !important; transition: bottom .2s; }
@media (min-width: 768px) { body.bh4-sticky-on #bhchat { bottom: 140px !important; } }
/* con la barra fija, la flecha de subir arriba también sube */
body.bh4-sticky-on #scroll_to_top { bottom: 86px !important; }
#product .bh4-acciones #gsr .bh4-rt { margin-left: 0 !important; }

/* Banners de «producto adicional» (zeroproductadditional), 19-oct: 3 por fila y más pequeños (antes 2 enormes) */
@media (min-width: 768px) {
  #product .bh4-sidebar { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
  #product .bh4-sidebar > .page-product-box, #product .bh4-sidebar > section { padding: 12px; }
  #product .bh4-sidebar img { width: auto; max-width: 100%; max-height: 200px; object-fit: contain; }
}
@media (max-width: 767px) {
  #product .bh4-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #product .bh4-sidebar > .page-product-box, #product .bh4-sidebar > section { padding: 8px; }
}

/* Garantías, 19-oct (Fernando): siempre en 2 líneas de 2 y cada texto en una sola línea (antes, en PC ancho, 4 columnas partidas) */
#product .bh4-garantias, #product .bh4-garantias { grid-template-columns: auto auto; justify-content: start; gap: 10px 28px; }
#product .bh4-garantias li { font-size: 14px; white-space: nowrap; }
@media (min-width: 1600px) { #product .bh4-garantias { grid-template-columns: auto auto; justify-content: start; } }
@media (max-width: 599px) { #product .bh4-garantias { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; } #product .bh4-garantias li { white-space: normal; font-size: 13.5px; } }
/* 19-oct (4.ª): las garantías salen de la columna y van en UNA franja a todo el ancho encima de las pestañas */
#product .bh4-garantias.bh19-gar-franja { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); justify-content: stretch; gap: 0; margin: 24px 0 0; padding: 14px 8px; border: 1px solid #e3ebdc; border-radius: var(--bh-radius); background: #f6f9f2; }
#product .bh19-gar-franja li { justify-content: center; padding: 2px 12px; font-size: 15px; font-weight: 600; white-space: nowrap; }
#product .bh19-gar-franja li + li { border-left: 1px solid #dfe8d6; }
@media (max-width: 899px) { #product .bh4-garantias.bh19-gar-franja { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 0; } #product .bh19-gar-franja li:nth-child(3) { border-left: 0; } #product .bh19-gar-franja li { justify-content: flex-start; white-space: normal; font-size: 14px; } }
