/* ==========================================================================
   BioHerbolario — REDISEÑO UX FASE 1 (15-oct-2026, maquetas de Celia)
   Cabecera (franja verde, buscador, acciones, menú, barra fija), pie y tarjeta de producto.
   Archivo propio, cargado DESPUÉS de los bundles CCC (ver header.tpl). Si lo cambias, sube el ?v= en header.tpl.
   Sin fuentes nuevas (se usa Roboto local del tema), iconos SVG en línea.
   ========================================================================== */

:root {
  --bh-g: #6aa343;          /* verde principal (maquetas): bordes, acentos, puntos */
  --bh-g-ink: #4a842c;      /* verde para fondos con texto blanco (contraste AA >= 4,5) */
  --bh-g-hov: #3f7425;
  --bh-g-d: #1f5a2e;        /* verde oscuro de títulos */
  --bh-bg: #f1f7ec;         /* fondo verde muy claro */
  --bh-line: #cfe0c3;
  --bh-pink: #f2557a;       /* rosa ofertas (maqueta) */
  --bh-pink-ink: #d63a63;   /* rosa para fondos con texto blanco (AA) */
  --bh-red: #c8102e;        /* precio con descuento */
  --bh-text: #23301f;
  --bh-muted: #5f6b59;
  --bh-radius: 12px;
  --bh-w: 1320px;           /* ANCHO ÚNICO: cabecera, menú, barra fija, contenido de todas las páginas y pie (con 24 px de margen lateral) */
}

/* ---------- utilidades ---------- */
#header .bh26-ico, .bh26-why .bh26-ico, .bh26-card .bh26-ico { display: inline-block; flex: 0 0 auto; fill: none; stroke: currentColor; vertical-align: middle; }
.bh26-hooks:empty { display: none; }
.bh26-hooks .header-wishlist, .bh26-hooks #languages-block-top { display: none !important; }
.bh26-legacy-banner:empty { display: none; }

/* ==========================================================================
   1. FRANJA SUPERIOR VERDE
   ========================================================================== */
#header .bh26-topbar { background: var(--bh-g-ink); color: #fff; font-size: 14px; line-height: 1.25; }
#header .bh26-topbar-list { display: flex; justify-content: space-around; align-items: center; gap: 12px; max-width: var(--bh-w); margin: 0 auto; padding: 9px 24px; list-style: none; }
#header .bh26-topbar-list li { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; color: #fff; text-align: left; }
#header .bh26-topbar-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; flex: 0 0 auto; }
#header .bh26-topbar-list .bh26-ico { display: none; }

/* ==========================================================================
   2. CABECERA PRINCIPAL (escritorio)
   ========================================================================== */
#header.bh26-header { background: #fff; }
#header .main-header.bh26-main { position: static !important; z-index: auto; width: 100%; padding: 0 !important; background: #fff; }
#header .main-header.bh26-main.affix { position: static !important; }   /* el affix antiguo de zeromanager (móvil) no debe fijar nada */
#header .main-header.bh26-main.affix + .affix-placeholder { display: none; }
#header .bh26-main-in { display: flex; align-items: center; gap: 24px; max-width: var(--bh-w); margin: 0 auto; padding: 14px 24px 12px; box-sizing: border-box; }
#header .bh26-burger-wrap { display: none; }
#header .bh26-logo { flex: 0 0 auto; margin: 0; }
#header .bh26-logo a { display: block; line-height: 0; }
#header .bh26-logo img.logo { display: block; height: 84px; width: auto; max-width: none; }   /* fase 2: más grande como la maqueta (antes 66px); el <img> lleva width/height => sin CLS */
#header .bh26-searchwrap { flex: 1 1 auto; min-width: 0; }

/* buscador (módulo blocksearch: se conserva #searchbox y el input) */
#header .bh26-search { display: block !important; position: static; float: none; width: 100%; max-width: none; margin: 0; padding: 0; background: none; }
#header .bh26-search #searchbox { position: relative; display: block; width: 100%; margin: 0; padding: 0; }
#header .bh26-search .search_query { display: block; width: 100%; height: 50px; margin: 0; padding: 0 60px 0 24px; box-sizing: border-box; border: 2px solid var(--bh-g); border-radius: 999px; background: var(--bh-bg); color: var(--bh-text); font-size: 16px; box-shadow: none; outline: 0; }
#header .bh26-search .search_query::placeholder { color: #5f6b59; opacity: 1; }
#header .bh26-search .search_query:focus { border-color: var(--bh-g-ink); box-shadow: 0 0 0 3px rgba(106, 163, 67, .25); background: #fff; }
#header .bh26-search .button-search { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--bh-g-ink); display: flex; align-items: center; justify-content: center; box-shadow: none; }
#header .bh26-search .button-search::before, #header .bh26-search .button-search::after { display: none !important; content: none !important; }
#header .bh26-search .button-search:hover, #header .bh26-search .button-search:focus-visible { background: var(--bh-bg); color: var(--bh-g-d); }

/* acciones */
#header .bh26-actions { display: flex; align-items: center; gap: 20px; flex: 0 0 auto; }
#header .bh26-assistant { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; background: var(--bh-g-ink); color: #fff; font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap; }
#header .bh26-assistant:hover, #header .bh26-assistant:focus-visible { background: var(--bh-g-hov); color: #fff; text-decoration: none; }
#header .bh26-assistant .bh26-ico { stroke: none; fill: currentColor; }
#header .bh26-act { display: inline-flex; align-items: center; gap: 8px; color: var(--bh-g-d); font-size: 15px; text-decoration: none; white-space: nowrap; }
#header .bh26-act .bh26-ico { color: var(--bh-g); }
#header .bh26-act:hover, #header .bh26-act:focus-visible { color: var(--bh-g-ink); text-decoration: none; }

/* carrito (módulo blockcart; se conserva .shopping_cart, .ajax_cart_quantity, #layer_cart) */
#header .bh26-cart .shopping_cart_wrapper, #header .bh26-cart .header-element { float: none; position: static; display: block; width: auto; height: auto; margin: 0; padding: 0; line-height: 1.2; background: none; }
#header .bh26-cart .shopping_cart { float: none; position: static; display: block; width: auto !important; margin: 0; padding: 0; text-align: left; background: none; }
#header .bh26-cart .shopping_cart > a:first-child { position: relative; display: inline-flex; align-items: center; gap: 8px; height: auto; margin: 0; padding: 0; border: 0; background: none !important; color: var(--bh-g-d) !important; font-size: 15px; line-height: 1.2; text-decoration: none; box-shadow: none; }
#header .bh26-cart .shopping_cart > a:first-child:hover { color: var(--bh-g-ink) !important; background: none !important; }
#header .bh26-cart .shopping_cart > a:first-child .bh26-ico { color: var(--bh-g); }
#header .bh26-cart .shopping_cart > a:first-child .icon-shopping-cart,
#header .bh26-cart .shopping_cart > a:first-child .ajax_cart_product_txt,
#header .bh26-cart .shopping_cart > a:first-child .ajax_cart_product_txt_s,
#header .bh26-cart .shopping_cart > a:first-child .ajax_cart_total,
#header .bh26-cart .shopping_cart > a:first-child .ajax_cart_no_product,
#header .bh26-cart .shopping_cart > a:first-child .block_cart_expand,
#header .bh26-cart .shopping_cart > a:first-child .block_cart_collapse { display: none !important; }
#header .ajax_cart_quantity { min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; border-radius: 10px; background: var(--bh-pink-ink); color: #fff; font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }
#header .bh26-cart .ajax_cart_quantity { position: absolute; top: -9px; left: 16px; margin: 0; }
#header .ajax_cart_quantity.unvisible { display: none !important; }

/* ==========================================================================
   3. MENÚ HORIZONTAL
   ========================================================================== */
#header .bh26-nav { position: relative; z-index: 60; max-width: var(--bh-w); margin: 0 auto; padding: 0 24px; box-sizing: border-box; border-top: 1px solid var(--bh-line); border-bottom: 1px solid #d5d5d5; }
#header .bh26-menu { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 0; padding: 4px 0; list-style: none; }
#header .bh26-item { position: relative; margin: 0; padding: 0; list-style: none; display: flex; align-items: center; }
#header .bh26-top { display: inline-block; padding: 12px 8px 12px 14px; color: #1d1d1d; font-size: 16px; line-height: 1.2; text-decoration: none; }
#header .bh26-item:not(.bh26-has-sub) > .bh26-top { padding-right: 14px; }
#header .bh26-top:hover, #header .bh26-top:focus-visible { color: var(--bh-g-ink); text-decoration: none; }
#header .bh26-caret { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 40px; margin: 0 6px 0 -6px; padding: 0; border: 0; background: transparent; color: #444; cursor: pointer; }
#header .bh26-caret .bh26-ico { transition: transform .15s; }
#header .bh26-has-sub:hover > .bh26-caret .bh26-ico, #header .bh26-has-sub.is-open > .bh26-caret .bh26-ico { transform: rotate(180deg); }
#header .bh26-sub { display: none; position: absolute; left: 0; top: 100%; z-index: 70; min-width: 250px; max-width: 360px; margin: 0; padding: 8px 0; list-style: none; background: #fff; border: 1px solid var(--bh-line); border-radius: 0 0 var(--bh-radius) var(--bh-radius); box-shadow: 0 12px 24px rgba(31, 90, 46, .14); }
#header .bh26-has-sub:hover > .bh26-sub, #header .bh26-has-sub:focus-within > .bh26-sub, #header .bh26-has-sub.is-open > .bh26-sub { display: block; }
#header .bh26-sub li { margin: 0; padding: 0; list-style: none; }
#header .bh26-sub a { display: block; padding: 9px 20px; color: #222; font-size: 15px; line-height: 1.3; text-decoration: none; }
#header .bh26-sub a:hover, #header .bh26-sub a:focus-visible { background: var(--bh-bg); color: var(--bh-g-d); }
#header .bh26-sub .bh26-all a { border-top: 1px solid var(--bh-line); margin-top: 6px; padding-top: 11px; color: var(--bh-g-d); font-weight: 600; }
#header .bh26-brands { margin-left: 10px; }
#header .bh26-brands > .bh26-top { padding: 10px 18px; border-radius: 999px; background: var(--bh-bg); color: #2b3a26; }
#header .bh26-brands > .bh26-top:hover { background: var(--bh-line); }
#header .bh26-offers-li { margin-left: auto; padding-right: 6px; }
#header .bh26-offers { display: inline-flex; align-items: center; height: 42px; padding: 0 28px; border-radius: 999px; background: var(--bh-pink-ink); color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .02em; text-decoration: none; }
#header .bh26-offers:hover, #header .bh26-offers:focus-visible { background: #b92e55; color: #fff; text-decoration: none; }

/* ==========================================================================
   4. BARRA FINA FIJA AL HACER SCROLL
   Siempre position:fixed y fuera de pantalla; solo cambian transform y visibility => CLS 0.
   ========================================================================== */
.bh26-sticky { position: fixed; top: 0; left: 0; right: 0; z-index: 998; background: #fff; border-bottom: 2px solid var(--bh-g); box-shadow: 0 3px 12px rgba(0, 0, 0, .12); transform: translateY(-115%); visibility: hidden; transition: transform .22s ease, visibility 0s linear .22s; }
.bh26-sticky.is-on { transform: translateY(0); visibility: visible; transition: transform .22s ease; }
.bh26-sticky-in { display: flex; align-items: center; gap: 16px; max-width: var(--bh-w); height: 58px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.bh26-sticky-logo { flex: 0 0 auto; line-height: 0; }
.bh26-sticky-logo img { display: block; height: 38px; width: auto; }
.bh26-sticky-search { position: relative; flex: 1 1 auto; min-width: 0; margin: 0; }
.bh26-sticky-search input.search_query { display: block; width: 100%; height: 42px; margin: 0; padding: 0 52px 0 20px; box-sizing: border-box; border: 2px solid var(--bh-g); border-radius: 999px; background: var(--bh-bg); color: var(--bh-text); font-size: 16px; box-shadow: none; outline: 0; }
.bh26-sticky-search input.search_query:focus { border-color: var(--bh-g-ink); background: #fff; box-shadow: 0 0 0 3px rgba(106, 163, 67, .25); }
.bh26-sticky-btn { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--bh-g-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.bh26-sticky-cart { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--bh-g-d); }
.bh26-sticky-cart .bh26-ico { color: var(--bh-g); }
.bh26-sticky-cart .ajax_cart_quantity { position: absolute; top: 0; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; border-radius: 10px; background: var(--bh-pink-ink); color: #fff; font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }
.bh26-sticky-cart .ajax_cart_quantity.unvisible { display: none !important; }
html.st-menu-open .bh26-sticky { display: none; }

/* ==========================================================================
   5. TABLET (768-991)
   ========================================================================== */
@media (min-width: 768px) and (max-width: 991px) {
  #header .bh26-main-in { gap: 14px; padding-left: 16px; padding-right: 16px; }
  #header .bh26-logo img.logo { height: 52px; }
  #header .bh26-actions { gap: 12px; }
  #header .bh26-act .bh26-label { display: none; }
  #header .bh26-assistant { padding: 0 16px; }
  #header .bh26-nav { padding: 0 8px; }
  #header .bh26-top { font-size: 14px; padding-left: 8px; }
  #header .bh26-offers { padding: 0 18px; }
}

/* ==========================================================================
   6. MÓVIL (<768): hamburguesa, logo, iconos, buscador a lo ancho debajo
   ========================================================================== */
@media (max-width: 767px) {
  #header .bh26-topbar-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 7px 8px; font-size: 11px; line-height: 1.2; }
  #header .bh26-topbar-list li { gap: 6px; }
  #header .bh26-topbar-list li::before { display: none; }
  #header .bh26-topbar-list .bh26-ico { display: inline-block; width: 22px; height: 22px; }

  #header .bh26-main-in { display: grid; grid-template-columns: 44px 1fr auto; grid-template-areas: "burger logo actions" "search search search"; align-items: center; gap: 6px 4px; padding: 8px 12px 10px; }
  #header .bh26-burger-wrap { display: block; grid-area: burger; float: none; width: auto; height: auto; margin: 0; padding: 0; }
  #header .bh26-burger { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; background: transparent; color: var(--bh-g-d); cursor: pointer; }
  #header .bh26-logo { grid-area: logo; text-align: left; }
  #header .bh26-logo img.logo { height: 46px; }
  #header .bh26-actions { grid-area: actions; gap: 0; }
  #header .bh26-assistant { display: none; }
  #header .bh26-act, #header .bh26-cart .shopping_cart > a:first-child { justify-content: center; width: 44px; height: 44px; gap: 0; }
  #header .bh26-act .bh26-ico { width: 28px; height: 28px; }
  /* los rótulos siguen en el HTML para lectores de pantalla */
  #header .bh26-label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  #header .bh26-cart .ajax_cart_quantity { top: 2px; left: auto; right: -2px; margin: 0; }   /* el tema trae margin-top:-24px: la burbuja se salía por arriba */
  #header .bh26-cart .ajax_cart_quantity.unvisible { display: inline-block !important; visibility: visible; }   /* en móvil el contador se ve siempre, también el 0 (maqueta) */
  #header .bh26-searchwrap { grid-area: search; }
  #header .bh26-search .search_query { height: 48px; padding: 0 16px 0 52px; font-size: 16px; }
  #header .bh26-search .button-search { left: 6px; right: auto; }
  #header .bh26-nav { display: none; }

  .bh26-sticky-in { height: 56px; padding: 0 10px; gap: 8px; }
  .bh26-sticky-logo { display: none; }
  .bh26-sticky-search input.search_query { height: 44px; padding: 0 14px 0 46px; }
  .bh26-sticky-btn { left: 3px; right: auto; width: 40px; height: 40px; }
}

/* ==========================================================================
   7. PIE
   ========================================================================== */
.footer-container .bh26-why { max-width: var(--bh-w); margin: 0 auto; padding: 36px 24px 8px; box-sizing: border-box; text-align: center; }
.bh26-why h2 { margin: 0 0 22px; padding: 0; color: var(--bh-g-d); font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 600; line-height: 1.25; text-transform: none; letter-spacing: 0; }
.bh26-why h2::after { content: ""; display: block; width: 44px; height: 2px; margin: 12px auto 0; background: var(--bh-g); }
.bh26-why-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 0; padding: 0; list-style: none; }
.bh26-why-cards li { margin: 0; padding: 26px 20px 28px; border-radius: 16px; background: var(--bh-bg); text-align: center; list-style: none; }
.bh26-why-ico { display: inline-flex; align-items: center; justify-content: center; width: 78px; height: 78px; margin-bottom: 10px; border-radius: 50%; background: #fff; color: var(--bh-g-d); }
.bh26-why-cards h3 { margin: 0 0 6px; padding: 0; color: var(--bh-g-d); font-size: 21px; font-weight: 700; line-height: 1.25; text-transform: none; }
.bh26-why-cards p { margin: 0; color: #2f3b2b; font-size: 16px; line-height: 1.4; }
.bh26-why-line { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 38px; margin: 24px 0 8px; padding: 0; color: #1d1d1d; font-size: 15px; }
.bh26-why-line span { display: inline-flex; align-items: center; gap: 10px; }
.bh26-why-line .bh26-ico { width: 28px; height: 28px; padding: 6px; box-sizing: border-box; border-radius: 50%; background: var(--bh-bg); color: var(--bh-g-d); }
.bh26-why-line a { color: #1d1d1d; text-decoration: underline; text-underline-offset: 3px; }

/* pie de siempre, reorganizado: columnas, acordeón en móvil. TODO el HTML sigue en la página. */
.footer-container #footer { background: #fff; color: #2c3a27; border-top: 1px solid var(--bh-line); margin-top: 22px; }
.footer-container #footer a { color: #2c3a27; }
.footer-container #footer a:hover { color: var(--bh-g-ink); }
.footer-container #footer h3, .footer-container #footer h4 { color: var(--bh-g-d); font-size: 16px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.footer-container #footer .footer-main { background: #fff; padding-top: 26px; }
.footer-container #footer .footer-menu ul { margin: 0 0 12px; padding: 0; list-style: none; }
.footer-container #footer .footer-menu li { padding: 4px 0; }
.footer-container #footer .social-icons a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bh-bg); color: var(--bh-g-d); }
.footer-container #footer .social-icons a:hover { background: var(--bh-g-ink); color: #fff; }
.footer-container #footer #newsletter_block_left { background: transparent; border: 0; padding: 0; }
.footer-container #footer #newsletter_block_left h4 { margin: 0 0 10px; }
.footer-container #footer #newsletter_block_left .form-group { display: flex; gap: 8px; align-items: stretch; margin: 0; }
.footer-container #footer #newsletter_block_left input.inputNew { flex: 1 1 auto; min-width: 0; height: 46px; padding: 0 16px; border: 1.5px solid var(--bh-g); border-radius: 999px; background: #fff; color: var(--bh-text); font-size: 16px; box-shadow: none; }
.footer-container #footer #newsletter_block_left button[type="submit"] { flex: 0 0 auto; height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--bh-g-ink); color: #fff; font-weight: 700; }
.footer-container #footer #newsletter_block_left button[type="submit"]:hover { background: var(--bh-g-hov); }
.footer-container #footer .footer-bottom { background: var(--bh-bg); color: #2c3a27; }
.footer-container #footer .footer-bottom p, .footer-container #footer .footer-bottom strong { color: #2c3a27; }
.footer-container #footer .footer-bottom .copyright p { text-align: left !important; margin: 10px 0; font-size: 13px; }

@media (max-width: 767px) {
  .bh26-why h2 { font-size: 22px; }
  .bh26-why-cards { grid-template-columns: 1fr; gap: 10px; padding: 14px; border-radius: 16px; background: var(--bh-bg); }
  .bh26-why-cards li { display: grid; grid-template-columns: 56px 1fr; grid-template-areas: "ico t" "ico d"; column-gap: 12px; align-items: center; padding: 6px 4px; background: transparent; text-align: left; }
  .bh26-why-ico { grid-area: ico; width: 52px; height: 52px; margin: 0; }
  .bh26-why-ico .bh26-ico { width: 30px; height: 30px; }
  .bh26-why-cards h3 { grid-area: t; font-size: 16px; margin: 0; }
  .bh26-why-cards p { grid-area: d; font-size: 14px; }
  .bh26-why-line { flex-direction: column; align-items: flex-start; gap: 10px; padding: 0 10px; font-size: 14px; }

  /* acordeones del pie: solo cuando bh2026.js los ha preparado (html.bh26-acc); si no hay JS todo queda visible */
  html.bh26-acc .footer-container #footer .bh26-acc-head { position: relative; margin: 0; padding: 14px 36px 14px 0; border-bottom: 1px solid var(--bh-line); cursor: pointer; }
  html.bh26-acc .footer-container #footer .bh26-acc-head::after { content: ""; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--bh-g-d); border-bottom: 2px solid var(--bh-g-d); transform: rotate(45deg); transition: transform .15s; }
  html.bh26-acc .footer-container #footer .bh26-acc-head.is-open::after { transform: rotate(-135deg); margin-top: -3px; }
  html.bh26-acc .footer-container #footer .bh26-acc-head:focus-within { outline: 2px solid var(--bh-g); outline-offset: 2px; }
  .bh26-acc-btn:focus { outline: 0; }
  html.bh26-acc .footer-container #footer .bh26-acc-panel { display: none; }
  html.bh26-acc .footer-container #footer .bh26-acc-panel.is-open { display: block; }
  .footer-container #footer .footer-menu li { padding: 8px 0; }
  .footer-container #footer .footer-bottom .copyright p { text-align: center !important; }

  /* Fase 2 (revisión a 390px contra ux-bio-home-movil.jpg): orden de los bloques del pie como la maqueta
     (Información, Destacados, Síguenos, boletín y, al final, los datos de contacto) y «DESTACADOS» (que es un h3 con estilos en línea)
     igual que el resto de cabeceras del acordeón. El HTML no cambia: solo el orden visual. */
  .footer-container #footer .footer-main .row { display: flex; flex-direction: column; }
  .footer-container #footer .footer-main .footer-top-left,
  .footer-container #footer .footer-main .footer-top-right,
  .footer-container #footer .footer-main .footer-menu,
  .footer-container #footer .footer-main .footer-menu > .row { display: contents; }
  .footer-container #footer .footer-menu > .row > div { order: 1; }                 /* «Información» (columna con su h4) */
  .footer-container #footer .footer-menu > .row > :not(div) { order: 2; margin-left: 15px; margin-right: 15px; }   /* «DESTACADOS»: h3 + lista suelta dentro de la fila */
  .footer-container #footer .footer-top-left .social-link { order: 3; padding: 0 15px; }
  .footer-container #footer .footer-top-right #footer_newsletter { order: 4; padding: 0 15px; }
  .footer-container #footer .footer-top-left .about-us { order: 5; padding: 0 15px; }
  .footer-container #footer .footer-menu h3, .footer-container #footer .footer-menu h4 { margin: 0; padding-left: 0; text-transform: none; text-align: left !important; font-size: 16px; font-weight: 700; }
  html.bh26-acc .footer-container #footer .footer-menu .bh26-acc-head { padding: 14px 36px 14px 0; }
}

/* buscador móvil: el icono (a la izquierda) no debe pisar el texto del placeholder; el tema de blocksearch pisaba el padding */
@media (max-width: 767px) {
  #header .bh26-search #searchbox .search_query { padding-left: 52px !important; }
  #header .bh26-search .search_query::placeholder, .bh26-sticky-search input.search_query::placeholder { font-size: 14.5px; }
}

/* ==========================================================================
   8. TARJETA DE PRODUCTO (product-list.tpl: categoría, búsqueda, marca, home, carruseles)
   ========================================================================== */
ul.product_base_list li.base_product { padding: 0 8px; margin-bottom: 16px; }
ul.product_base_list li.base_product .product-container.bh26-card { display: flex; flex-direction: column; height: 100%; border: 1px solid #e2ebdb; border-radius: var(--bh-radius); background: #fff; box-shadow: none; overflow: hidden; }
body:not(.touchDevice) ul.product_base_list:not(.product_sidebar) li.base_product:not(.sidebar_block_product) .product-container.bh26-card:hover { border-color: var(--bh-g); box-shadow: 0 8px 20px rgba(31, 90, 46, .14); }
.bh26-card .left-block { position: relative; flex: 0 0 auto; }
.bh26-card .product-image-container { position: relative; padding: 14px 14px 6px; background: #fff; }
.bh26-card .product-image-container .product_img_link { display: block; position: relative; aspect-ratio: 1 / 1; }
.bh26-card .product-image-container img { display: block; width: 100%; height: 100%; object-fit: contain; }
.bh26-card .label-box { display: none; }
/* 20-oct: la etiqueta «Liquidación» (liquidacion-franja.css) caía encima del -XX % en el mismo rincón: pasa a la esquina contraria */
.bh26-card .liquidacion-badge { left: auto; right: 10px; top: 10px; z-index: 12; }
.bh26-badge { position: absolute; top: 10px; left: 10px; z-index: 12; padding: 4px 11px; border-radius: 999px; background: var(--bh-pink-ink); color: #fff; font-size: 13px; font-weight: 700; line-height: 1.3; }
.bh26-has-dto .product_img_link .fmm_sticker_base_span[style*="top"] { top: 40px !important; }   /* el sticker BIO de arriba-izquierda baja para no taparse con la etiqueta rosa */
.bh26-fav { position: absolute; top: 8px; right: 8px; z-index: 12; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid #e2ebdb; border-radius: 50%; background: #fff; color: var(--bh-g-d); cursor: pointer; }
.bh26-fav[hidden] { display: none; }
.bh26-fav:hover, .bh26-fav:focus-visible { border-color: var(--bh-pink-ink); color: var(--bh-pink-ink); }
.bh26-fav.is-on .bh26-ico { fill: var(--bh-pink-ink); stroke: var(--bh-pink-ink); }
.bh26-card .hover-box { position: static; }
ul.product_base_list.grid li.base_product .bh26-card .left-block .hover-box > div { max-width: 34px; }

.bh26-card .right-block { display: flex; flex-direction: column; flex: 1 1 auto; padding: 4px 12px 14px; min-width: 0; }
.bh26-card .right-block > * { order: 50; }
.bh26-card .bh26-brand { order: 1; margin: 0 0 2px; color: #4f7f33; font-size: 13px; font-weight: 500; line-height: 1.3; }
.bh26-card h3.bh26-name { order: 2; margin: 0 0 6px; padding: 0; background: none; height: 3.9em; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; text-align: left; font-size: 15px; font-weight: 600; line-height: 1.3; text-transform: none; }
.bh26-card h3.bh26-name a { color: var(--bh-text); text-decoration: none; }
.bh26-card h3.bh26-name a:hover { color: var(--bh-g-ink); }
/* estrellas y nº de opiniones (módulo gsnippetsreviews: solo si el producto tiene opiniones) */
.bh26-card #gsr-review-list { order: 3; display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-start; gap: 4px; min-height: 20px; margin: 0 0 4px; text-align: left; background: none; }
/* ronda 1b: estrellas a la izquierda con el número al lado «★★★★★ (15)» (el módulo las flota y centra con !important) */
.bh26-card #gsr-review-list > div, .bh26-card #gsr-review-list .rating-star-yellow { float: none !important; display: inline-flex; align-items: center; width: auto !important; margin: 0 !important; padding: 0 !important; text-align: left !important; flex: 0 0 auto; }
.bh26-card #gsr-review-list .gsr-review-count-padding-1611 { padding-left: 0 !important; }
.bh26-card #gsr-review-list > div { padding: 0; text-align: left; background: none; }
/* Fase 2: sin opiniones no se pinta NADA («☆☆☆☆☆ Sin calificaciones» fuera). La señal es que ninguna estrella está marcada
   (label.checked): la regla con :has() la cubre en los navegadores modernos y bh2026.js pone .bh26-noreview como respaldo. */
.bh26-card #gsr-review-list.bh26-noreview { display: none; }
.bh26-card #gsr-review-list:not(:has(label.checked)) { display: none; }
.bh26-card #gsr-review-list .gsr-review-count-rating { display: inline; color: var(--bh-muted); font-size: 12.5px; }
.bh26-card #gsr-review-list .gsr-review-count-padding-1611 { display: inline-block; padding-left: 4px; }
.bh26-card #gsr-review-list .rating-star-yellow { display: inline-block; }
.product-container.bh26-card .gsr-clr_20 { display: none !important; }   /* ronda 1b: el separador de 20 px del módulo se colaba debajo del botón y desalineaba las tarjetas con opiniones */
/* Disponibilidad (punto verde + «Disponible en 24 horas» / «En stock» / «Últimas unidades»). Fase 2: el CSS del tema oculta
   .availability en la rejilla (ul.product_base_list.grid … .availability{display:none}) y ponía el texto en blanco: se gana por especificidad. */
ul.product_base_list.grid li.base_product .product-container.bh26-card .right-block .availability { order: 4; display: block !important; margin: 0 0 6px; font-size: 13.5px; line-height: 1.3; }
.product-container.bh26-card .availability > span { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 0; background: none; color: #2c6e1b; font-weight: 500; }
.product-container.bh26-card .availability > span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3b9a24; flex: 0 0 auto; }
/* «Disponible en 24 horas» (sin stock pero se puede pedir) = label-warning del tema: en VERDE como la maqueta. «Últimas unidades» en ámbar. */
.product-container.bh26-card .availability > .bh26-last { color: #8a5a00; }
.product-container.bh26-card .availability > .bh26-last::before { background: #e39b00; }
.product-container.bh26-card .availability > .label-danger { color: #a4262c; }
.product-container.bh26-card .availability > .label-danger::before { background: #c8102e; }
.bh26-card .grid-bottom { display: contents !important; }
.bh26-card .grid-left-bottom { order: 5; display: block !important; width: auto !important; margin: auto 0 8px; padding: 0 !important; }
.bh26-card .content_price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; text-align: left; }
.bh26-card .content_price .price.product-price { color: var(--bh-text); font-size: 20px; font-weight: 700; line-height: 1.2; }
.bh26-card .content_price .price.special-price { color: var(--bh-red); }
.bh26-card .content_price .old-price { color: #6d6d6d; font-size: 13.5px; font-weight: 400; text-decoration: line-through; }
.bh26-card .content_price .price-percent-reduction { display: none !important; }
.bh26-card .button-container.button-grid { order: 6; display: block !important; width: auto !important; margin: 0; padding: 0 !important; text-align: center !important; }
.bh26-card .button-container.button-grid a.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; margin: 0; padding: 8px 12px; border: 2px solid var(--bh-g-ink); border-radius: 8px; background: var(--bh-g-ink) !important; color: #fff !important; font-size: 15px; font-weight: 700; line-height: 1.2; text-transform: none; text-decoration: none; box-shadow: none; }
.bh26-card .button-container.button-grid a.btn > span { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.bh26-card .button-container.button-grid a.btn:hover, .bh26-card .button-container.button-grid a.btn:focus-visible { background: var(--bh-g-hov) !important; border-color: var(--bh-g-hov); }
.bh26-card .button-container.button-grid a.btn:not(.ajax_add_to_cart_button) { background: #fff !important; color: var(--bh-g-ink) !important; }
.bh26-card .button-container.button-grid a.btn:not(.ajax_add_to_cart_button) > span { color: var(--bh-g-ink); }
.bh26-card .product-flags, .bh26-card .product-desc, .bh26-card .color-list-container, .bh26-card .zcountdown-box { display: none; }
ul.product_base_list.grid li.base_product .bh26-card .right-block .product-desc { display: none; }
.bh26-card .absolute-bottom { display: none; }
/* modo lista (si algún listado lo usa): se deja el comportamiento del tema */
ul.product_base_list.list li.base_product .bh26-card .absolute-bottom { display: block; }

/* Rejilla: 5 por fila en escritorio, 2 en móvil (categoría, búsqueda, marcas, ofertas...). Los carruseles slick de la home los gobierna su JS. */
@media (max-width: 767px) {
  body:not(#index) .product_list_wrapper ul.product_base_list.grid:not(.slick-slider) li.base_product { width: 50%; max-width: none; }
  ul.product_base_list li.base_product { padding: 0 4px; }
  .bh26-card .product-image-container { padding: 10px 8px 4px; }
  .bh26-card .right-block { padding: 2px 8px 10px; }
  .bh26-card h3.bh26-name { font-size: 14px; }
  .bh26-card .content_price .price.product-price { font-size: 18px; }
  .bh26-fav { width: 44px; height: 44px; top: 4px; right: 4px; }
}
@media (min-width: 768px) and (max-width: 991px) {
  body:not(#index) .product_list_wrapper ul.product_base_list.grid:not(.slick-slider) li.base_product { width: 33.3333%; max-width: none; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  body:not(#index) .product_list_wrapper ul.product_base_list.grid:not(.slick-slider) li.base_product { width: 25%; max-width: none; }
}
@media (min-width: 1200px) {
  body:not(#index) .product_list_wrapper ul.product_base_list.grid:not(.slick-slider) li.base_product { width: 20%; max-width: none; }
}

/* Fase 2: alturas iguales por fila => el botón «Añadir» queda siempre abajo alineado (el precio ya empuja con margin-top:auto).
   Solo en rejillas normales; los carruseles slick de otras zonas no se tocan. */
ul.product_base_list.grid:not(.slick-slider) { display: flex; flex-wrap: wrap; align-items: stretch; }
ul.product_base_list.grid:not(.slick-slider)::before, ul.product_base_list.grid:not(.slick-slider)::after { display: none; content: none; }
ul.product_base_list.grid:not(.slick-slider) > li.base_product { display: flex; }
ul.product_base_list.grid:not(.slick-slider) > li.base_product > .bh26-card { flex: 1 1 auto; width: 100%; height: auto; }

/* Ronda 3 (accesibilidad AA): el verde de enlace del tema (#5a9e74) da 2,95:1 sobre el fondo gris claro. Se oscurece al verde de la fase
   (#1f5a2e = 8:1) en los enlaces de las categorías destacadas y del texto SEO de la portada; los enlaces dentro de texto, subrayados. */
.zerofeaturedcategories h3.category-name a, .zerofeaturedmanufacturers h3 a { color: #1f5a2e; }
#bottom_column .static-html a, .zhomepage .static-html p a { color: #1f5a2e; text-decoration: underline; text-underline-offset: 2px; }
#bottom_column .static-html a:hover, .zhomepage .static-html p a:hover { color: #163f21; }
/* aviso de cookies (módulo de consentimiento): botones con el verde de la fase para llegar a AA (antes #5a9e74 = 3,19:1) */
#cm #c-p-bn, #s-cnt #s-all-bn, #s-cnt #s-sv-bn { background: #2f6b45 !important; border-color: #2f6b45 !important; color: #fff !important; }
#cm #c-s-bn, #cm #c-t-bn, #s-cnt #s-rall-bn { color: #2f6b45 !important; border-color: #2f6b45 !important; }

/* Ronda 3 (I5): «Cerrar sesión» en la cabecera (con sesión) y en el menú lateral móvil */
#header .bh26-act-logout { color: var(--bh-muted); font-size: 14px; }
#header .bh26-act-logout .bh26-ico { width: 24px; height: 24px; color: var(--bh-muted); }
.st-menu .bh26-menu-logout { display: block; padding: 14px 20px; border-top: 1px solid rgba(0, 0, 0, .12); color: #fff; font-weight: 700; text-decoration: none; }
@media (min-width: 768px) and (max-width: 1099px) { #header .bh26-act-logout .bh26-label { display: none; } }

/* Ronda 4: con el ancho único de 1320 px el menú debe caber en UNA línea desde 1280 px (antes «OFERTAS» saltaba a una 2.ª fila) */
#header .bh26-menu { flex-wrap: nowrap; gap: 0; }
#header .bh26-top { padding: 12px 4px 12px 10px; font-size: 15px; white-space: nowrap; }
#header .bh26-item:not(.bh26-has-sub) > .bh26-top { padding-right: 10px; }
#header .bh26-caret { margin: 0 2px 0 -4px; }
#header .bh26-brands { margin-left: 6px; }
#header .bh26-brands > .bh26-top { padding: 9px 16px; }
#header .bh26-offers-li { padding-right: 0; }
#header .bh26-offers { padding: 0 24px; white-space: nowrap; }
@media (min-width: 1500px) { #header .bh26-top { padding-left: 14px; font-size: 16px; } #header .bh26-item:not(.bh26-has-sub) > .bh26-top { padding-right: 14px; } }
@media (min-width: 768px) and (max-width: 1099px) { #header .bh26-menu { flex-wrap: wrap; row-gap: 2px; } #header .bh26-offers-li { margin-left: auto; } }
@media (min-width: 768px) and (max-width: 1279px) {
  #header .bh26-top { padding: 11px 2px 11px 7px; font-size: 14px; }
  #header .bh26-item:not(.bh26-has-sub) > .bh26-top { padding-right: 7px; }
  #header .bh26-caret { width: 20px; margin-left: -3px; }
  #header .bh26-brands > .bh26-top { padding: 8px 11px; }
  #header .bh26-offers { height: 38px; padding: 0 14px; font-size: 13.5px; }
}

/* <button> dentro de los encabezados del acordeón del pie (ronda 3: patrón ARIA); idéntico al texto que sustituye */
.footer-container #footer .bh26-acc-btn { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-align: inherit; text-transform: inherit; cursor: inherit; -webkit-appearance: none; appearance: none; }

/* ==========================================================================
   9. ANCHO ÚNICO (ronda 2): cabecera, menú, barra fija, contenedor general y pie comparten --bh-w (1320 px) con 24 px de margen.
   Bootstrap fijaba .container a 750/970/1170 px; el contenido quedaba más estrecho que la cabecera.
   ========================================================================== */
#header .bh26-topbar-list, #header .bh26-main-in, #header .bh26-nav, .bh26-sticky-in { box-sizing: border-box; }
@media (min-width: 768px) {
  body .container { width: auto; max-width: var(--bh-w); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; box-sizing: border-box; }
  body .container .container { padding-left: 0; padding-right: 0; max-width: none; }   /* contenedores anidados del tema: sin doble margen */
}

/* ==========================================================================
   10. PANEL LATERAL DEL CARRITO (se abre al pulsar «Añadir»): estilo de la fase. Solo CSS + textos de blockcart.tpl;
   ids, clases funcionales y el JS de ajax-cart no se tocan.
   ========================================================================== */
.st-menu-right.st-effect-right { width: 400px; max-width: 100vw; background: #fff; }
#cart_sidebar_content { padding: 0 0 28px; background: #fff; color: var(--bh-text); font-size: 15px; }
#cart_sidebar_content .st-menu-title { margin: 0; padding: 22px 24px 14px; background: #fff; border-bottom: 1px solid var(--bh-line); color: var(--bh-g-d); font-size: 24px; font-weight: 700; line-height: 1.2; text-align: left; text-transform: none; letter-spacing: 0; }
#cart_sidebar_content .block_content, #cart_sidebar_content .cart_block_list { padding: 0; background: #fff; border: 0; }
#cart_sidebar_content dl.products { margin: 0; padding: 4px 24px; }
#cart_sidebar_content dl.products dt { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr) 36px; gap: 14px; align-items: center; float: none; width: auto; margin: 0; padding: 14px 0; border-bottom: 1px solid #e8efe2; background: none; }
#cart_sidebar_content dl.products dt .cart-images { display: block; width: 72px; float: none; margin: 0; }
#cart_sidebar_content dl.products dt .cart-images img { display: block; width: 72px; height: 72px; object-fit: contain; border: 1px solid #e8efe2; border-radius: 8px; background: #fff; }
#cart_sidebar_content dl.products dt .cart-info { float: none; width: auto; margin: 0; padding: 0; min-width: 0; }
#cart_sidebar_content .cart-info .product-name { margin: 0 0 4px; font-size: 15px; font-weight: 600; line-height: 1.3; white-space: normal; }
#cart_sidebar_content .cart-info .product-name a, #cart_sidebar_content .cart-info .cart_block_product_name { color: var(--bh-text); font-size: 15px; text-decoration: none; }
#cart_sidebar_content .cart-info .quantity-formated, #cart_sidebar_content .cart-info .quantity-formated .quantity { color: var(--bh-g-d); font-size: 15px; font-weight: 700; text-transform: none; }
/* botón de cerrar del panel: una × de 44 px arriba a la derecha (el tema lo dejaba como un cuadrado pequeño a la izquierda) */
.st-menu-right .st-menu-close { left: auto !important; right: 12px !important; top: 14px !important; width: 44px !important; height: 44px !important; padding: 0 !important; font-size: 0 !important; line-height: 0 !important; text-indent: 0 !important; background: none !important; border: 0 !important; cursor: pointer; z-index: 5; }
.st-menu-right .st-menu-close::before, .st-menu-right .st-menu-close::after { content: none !important; display: none !important; }
.st-menu-right .st-menu-close { display: flex; align-items: center; justify-content: center; }
.st-menu-right .st-menu-close::before { content: "\00d7" !important; display: block !important; position: static !important; color: #555; font-size: 32px !important; line-height: 1 !important; }
#cart_sidebar_content .cart-info .price { display: block; color: var(--bh-text); font-size: 17px; font-weight: 700; line-height: 1.2; }
#cart_sidebar_content dl.products dt .remove_link { float: none; position: static; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; }
#cart_sidebar_content .remove_link a { position: relative; display: block; width: 36px; height: 36px; border-radius: 50%; }
#cart_sidebar_content .remove_link a::before { content: "\00d7"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #6b6b6b; font-size: 24px; line-height: 1; }
#cart_sidebar_content .remove_link a:hover { background: #fbeaee; }
#cart_sidebar_content .remove_link a:hover::before { color: var(--bh-pink-ink); }
#cart_sidebar_content .cart_block_no_products { margin: 0; padding: 28px 24px; color: var(--bh-muted); font-size: 16px; text-align: center; }
#cart_sidebar_content .cart-prices { margin: 0; padding: 16px 24px 8px; border: 0; background: none; }
#cart_sidebar_content .cart-prices-line { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: baseline; margin: 0; padding: 6px 0; border: 0; color: #4a4a4a; font-size: 15px; }
#cart_sidebar_content .cart-prices-line .price { float: none; color: var(--bh-text); font-weight: 600; }
#cart_sidebar_content .cart-prices-line.last-line { margin-top: 8px; padding-top: 14px; border-top: 2px solid var(--bh-line); color: var(--bh-text); font-size: 20px; font-weight: 700; }
#cart_sidebar_content .cart-prices-line.last-line .price { color: var(--bh-g-d); font-size: 26px; font-weight: 800; }
#cart_sidebar_content .cart-prices p { margin: 6px 0 0; color: var(--bh-muted); font-size: 12.5px; }
#cart_sidebar_content p.cart-buttons { margin: 0; padding: 10px 24px 0; text-align: center; }
#cart_sidebar_content #button_order_cart { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; margin: 0; padding: 8px 16px; border: 0; border-radius: 10px; background: var(--bh-g-ink) !important; color: #fff !important; font-size: 18px; font-weight: 700; line-height: 1.2; text-transform: none; text-decoration: none; box-shadow: none; }
#cart_sidebar_content #button_order_cart:hover, #cart_sidebar_content #button_order_cart:focus-visible { background: var(--bh-g-hov) !important; }
#cart_sidebar_content #button_order_cart > span { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-transform: none; }
#cart_sidebar_content #button_order_cart .icon-chevron-right { display: none; }
#cart_sidebar_content .bh26-cart-keep-wrap { margin: 0; padding: 12px 24px 0; text-align: center; }
#cart_sidebar_content a.bh26-cart-keep { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px; color: var(--bh-g-d); font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
#cart_sidebar_content a.bh26-cart-keep:hover { color: var(--bh-g-ink); }
/* barra de progreso hacia el envío gratis (solo en tiendas con umbral configurado: PS_SHIPPING_FREE_PRICE > 0) */
#cart_sidebar_content .bh26-freebar { margin: 4px 24px 6px; padding: 12px 14px; border-radius: 10px; background: var(--bh-bg); }
#cart_sidebar_content .bh26-freebar-txt { margin: 0 0 8px; color: var(--bh-text); font-size: 14px; font-weight: 600; line-height: 1.3; }
#cart_sidebar_content .bh26-freebar-track { display: block; height: 8px; overflow: hidden; border-radius: 999px; background: #dbe8d0; }
#cart_sidebar_content .bh26-freebar-fill { display: block; height: 100%; border-radius: 999px; background: var(--bh-g-ink); transition: width .3s; }
#cart_sidebar_content .bh26-freebar.is-ok .bh26-freebar-txt { color: var(--bh-g-d); }
@media (max-width: 767px) { #cart_sidebar_content dl.products, #cart_sidebar_content .cart-prices { padding-left: 16px; padding-right: 16px; } }

/* ==========================================================================
   11. PIE: bloque de contacto (el HTML viene de la BD con estilos en línea: subrayados y un botón del tema)
   ========================================================================== */
.footer-container #footer .about-us span[style*="underline"] { text-decoration: none !important; }
.footer-container #footer .about-us a.btn.btn-default { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 26px; border: 2px solid var(--bh-g-ink); border-radius: 999px; background: var(--bh-g-ink) !important; color: #fff !important; font-size: 15px; font-weight: 700; text-transform: none; text-decoration: none; box-shadow: none; }
.footer-container #footer .about-us a.btn.btn-default:hover, .footer-container #footer .about-us a.btn.btn-default:focus-visible { background: var(--bh-g-hov) !important; border-color: var(--bh-g-hov); }
.footer-container #footer .about-us a.btn.btn-default span { display: inline-block; color: #fff !important; text-transform: none; text-decoration: none !important; }
.footer-container #footer .about-us a.btn.btn-default span::first-letter { text-transform: uppercase; }
.footer-container #footer .about-us p { margin: 0 0 8px; }

/* foco visible y movimiento reducido */
#header a:focus-visible, #header button:focus-visible, .bh26-card a:focus-visible, .bh26-card button:focus-visible, .bh26-why a:focus-visible { outline: 2px solid var(--bh-g-ink); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .bh26-sticky, .bh26-sticky.is-on, #header .bh26-caret .bh26-ico { transition: none; }
}

/* ==========================================================================
   RONDA 16-OCT: buscador de la cabecera y de la barra fija IGUALES (mismo alto, píldora completa, mismo borde, fondo y foco).
   Antes la regla del módulo blocksearch «#searchbox #search_query_top» (2 ids) pisaba la de la cabecera (radio 5px, 42px, borde gris).
   No se tocan ids ni nombres (Doofinder sigue enganchándose igual).
   ========================================================================== */
#header .bh26-search #searchbox #search_query_top.search_query,
.bh26-sticky-search input.search_query {
  height: 46px; margin: 0; padding: 0 56px 0 24px; box-sizing: border-box;
  border: 2px solid var(--bh-g); border-radius: 999px; background: var(--bh-bg); color: var(--bh-text);
  font-size: 16px; line-height: normal; box-shadow: none; outline: 0;
}
#header .bh26-search #searchbox #search_query_top.search_query:focus,
.bh26-sticky-search input.search_query:focus { border-color: var(--bh-g-ink); background: #fff; box-shadow: 0 0 0 3px rgba(106, 163, 67, .25); }
#header .bh26-search .button-search, .bh26-sticky-btn { right: 3px; width: 40px; height: 40px; }
@media (max-width: 767px) {
  #header .bh26-search #searchbox #search_query_top.search_query,
  .bh26-sticky-search input.search_query { height: 46px; padding: 0 14px 0 52px !important; }
  #header .bh26-search .button-search, .bh26-sticky-btn { left: 3px; right: auto; width: 40px; height: 40px; }
}

/* ==========================================================================
   PIE NUEVO (maqueta de Celia, 19-oct-2026): fondo crema, 4 columnas con separadores (logo+contacto · Información ·
   Destacados · Boletín), títulos verdes en mayúsculas subrayados y copyright centrado. Logo = el real (footer.tpl).
   En móvil se mantienen los acordeones de siempre; solo se añaden logo e iconos.
   ========================================================================== */
.footer-container #footer { background: #faf8f2; border-top: 1px solid #e8e2d3; }
.footer-container #footer .footer-main { background: transparent; padding: 44px 0 34px; }
.footer-container #footer .bh19-foot-logo { display: inline-block; margin: 0 0 16px; }
.footer-container #footer .bh19-foot-logo img { display: block; width: 230px; max-width: 100%; height: auto; mix-blend-mode: multiply; }
.footer-container #footer .about-us, .footer-container #footer .about-us p { text-align: left !important; }
.footer-container #footer .about-us p { margin: 0; font-size: 14.5px; line-height: 1.5; color: #4a5446; }
.footer-container #footer .about-us p:empty { display: none; }
.footer-container #footer .about-us a.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; max-width: 340px; min-height: 46px; margin: 0 0 16px; padding: 0 18px; border: 0; border-radius: 8px; background: var(--bh-g-ink); color: #fff !important; font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.footer-container #footer .about-us a.btn::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); }
.footer-container #footer .about-us a.btn:hover { background: var(--bh-g-hov); }
/* horario (p 4-5) con reloj y teléfono (p 6) con auricular — iconos en SVG en línea, sin peticiones */
.footer-container #footer .about-us > p:nth-of-type(4), .footer-container #footer .about-us > p:nth-of-type(5), .footer-container #footer .about-us > p:nth-of-type(6) { position: relative; max-width: 340px; padding-left: 40px; }
.footer-container #footer .about-us > p:nth-of-type(4) { font-weight: 700; color: #2c3a27; }
.footer-container #footer .about-us > p:nth-of-type(4)::before, .footer-container #footer .about-us > p:nth-of-type(6)::before { content: ""; position: absolute; left: 0; top: 2px; width: 26px; height: 26px; background: no-repeat center / contain; }
.footer-container #footer .about-us > p:nth-of-type(4)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d7a2a' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.footer-container #footer .about-us > p:nth-of-type(5) { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid #e3ddcd; }
.footer-container #footer .about-us > p:nth-of-type(6)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%233d7a2a'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E"); }
.footer-container #footer .about-us > p:nth-of-type(6) strong { display: block; margin-top: 2px; color: var(--bh-g-d); font-size: 18px; font-weight: 700; }
.footer-container #footer .about-us > p:nth-of-type(7) { max-width: 340px; margin-top: 12px; font-size: 13.5px; color: #6b7466; }
@media (min-width: 992px) { .footer-container #footer .social-link h4 { margin-top: 22px; } }
.footer-container #footer .social-icons a { border-radius: 10px; background: #e9f1df; }
.footer-container #footer .footer-menu li a { font-size: 15.5px; color: #3a4436; }
.footer-container #footer .about-us a.btn { border-radius: 8px !important; text-transform: uppercase !important; }
@media (min-width: 992px) { .footer-container #footer .social-link h4, .footer-container #footer .social-link h4 .bh26-acc-btn { color: var(--bh-g-d); font-size: 17px; letter-spacing: .03em; text-transform: uppercase; } }
.footer-container #footer .footer-bottom .container, .footer-container #footer .footer-bottom .row { min-height: 0; }
.footer-container #footer .footer-bottom .bottom-block { min-height: 0; padding-top: 0; padding-bottom: 0; }
.footer-container #footer .footer-bottom .payment:empty, .footer-container #footer .footer-bottom .payment { display: none; }
.footer-container #footer .footer-bottom .copyright { float: none; margin: 0 auto; }
/* copyright y enlaces legales en la MISMA línea (en móvil, si no cabe, baja solo) */
.footer-container #footer .footer-bottom .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; margin: 0; padding: 14px 0; }
.footer-container #footer .footer-bottom .row::before, .footer-container #footer .footer-bottom .row::after { display: none; }
.footer-container #footer .footer-bottom .copyright { flex: 0 0 auto; width: auto !important; max-width: 100%; margin: 0 !important; padding: 0; }
.footer-container #footer .footer-bottom .copyright p { margin: 0; }
.footer-container #footer .bh19-foot-legal { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: #6b7466; }
.footer-container #footer .bh19-foot-legal::before { content: "·"; margin-right: 4px; }
.footer-container #footer .bh19-foot-legal a { color: #4a5446; text-decoration: underline; text-underline-offset: 2px; }
.footer-container #footer .footer-bottom { background: #f3efe4; border-top: 1px solid #e3ddcd; }
.footer-container #footer .footer-bottom .copyright { width: 100%; }
.footer-container #footer .footer-bottom .copyright p { text-align: center !important; font-size: 13.5px; }
.footer-container #footer .footer-bottom .copyright strong { font-weight: 400; }
@media (min-width: 992px) {
  .footer-container #footer .footer-main .row { display: grid; grid-template-columns: minmax(0, 1.1fr) auto auto minmax(0, 1.25fr); align-items: start; margin: 0; }
  .footer-container #footer .footer-main .footer-top-right,
  .footer-container #footer .footer-main .footer-menu,
  .footer-container #footer .footer-main .footer-menu > .row { display: contents; }
  /* 19-oct (4.ª): «Síguenos» pasa bajo el boletín (col. 4) para que la 1.ª columna no quede tan larga */
  .footer-container #footer .footer-main .footer-top-left { display: contents; }
  /* «Síguenos» lo mete el JS (bh2026.js) dentro del bloque del boletín: una sola fila, todo cuadrado */
  .footer-container #footer .footer-top-left .about-us { grid-column: 1; grid-row: 1; padding: 0 40px 0 0; }
  .footer-container #footer #footer_newsletter .social-link { margin: 34px 0 0 !important; padding: 0 !important; }
  .footer-container #footer #footer_newsletter .social-link h4 { margin: 0 0 12px !important; padding: 0; border: 0; }
  .footer-container #footer .footer-menu > .row > div { width: auto; float: none; align-self: stretch; padding: 0 26px 0 30px; border-left: 1px solid #e3ddcd; }
  .footer-container #footer .footer-menu li a { white-space: nowrap; }
  .footer-container #footer .footer-menu > .row > div:first-child { grid-column: 2; grid-row: 1; }
  .footer-container #footer .footer-menu > .row > div.bh16-footcol { grid-column: 3; grid-row: 1; border-right: 1px solid #e3ddcd; }
  .footer-container #footer .footer-menu > .row > :not(div), .footer-container #footer .vimeo_tool, .footer-container #footer #vtPopupMenu { display: none !important; }
  .footer-container #footer #footer_newsletter { grid-column: 4; grid-row: 1; align-self: start; width: auto; float: none; padding: 0 0 0 36px; }
  .footer-container #footer .footer-menu h4, .footer-container #footer #newsletter_block_left h4 { margin: 4px 0 18px; padding: 0 0 14px; border-bottom: 1px solid #e3ddcd; color: var(--bh-g-d); font-size: 19px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
  .footer-container #footer .footer-menu li { padding: 6px 0; }
  .footer-container #footer #newsletter_block_left .form-group { gap: 0; }
  .footer-container #footer #newsletter_block_left input.inputNew { border-radius: 8px 0 0 8px; border-right: 0; height: 52px; }
  .footer-container #footer #newsletter_block_left button[type="submit"] { border-radius: 0 8px 8px 0; height: 52px; padding: 0 24px; }
  .footer-container #footer #newsletter_block_left form::before { content: "Suscríbete y recibe nuestras novedades, ofertas exclusivas y consejos de salud natural."; display: block; margin: 0 0 18px; color: #4a5446; font-size: 15px; line-height: 1.55; }
}
html:not([lang^="es"]) .footer-container #footer #newsletter_block_left form::before { content: none; }
@media (max-width: 991px) { .footer-container #footer #footer_newsletter .social-link { margin: 0 !important; padding: 0 !important; } .footer-container #footer #footer_newsletter { padding-bottom: 0; margin-bottom: 0; } }
@media (max-width: 767px) {
  .footer-container #footer .footer-bottom .copyright p { line-height: 1.45; padding: 0 12px; }
  .footer-container #footer .bh19-foot-legal::before { content: none; }
  /* franja verde de arriba en móvil: UNA línea, los 3 avisos rotan (antes 3 columnas de 3 líneas cada una) */
  #header .bh26-topbar-list { position: relative; display: block; height: 34px; padding: 0 12px; overflow: hidden; }
  #header .bh26-topbar-list li { position: absolute; inset: 0; justify-content: center; font-size: 13px; white-space: nowrap; opacity: 0; animation: bh19-rota 12s infinite; }
  #header .bh26-topbar-list li .bh26-ico { width: 18px; height: 18px; }
  #header .bh26-topbar-list li:nth-child(2) { animation-delay: 4s; }
  #header .bh26-topbar-list li:nth-child(3) { animation-delay: 8s; }
}
/* Pie: «Cómo comprar en Bioherbolario» en lugar del pedido por teléfono (19-oct); hereda el hueco del teléfono, con icono de info */
.footer-container #footer .about-us > p.bh19-foot-como::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d7a2a' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6M12 7.5v.5'/%3E%3C/svg%3E") !important; top: 0 !important; }
.footer-container #footer .about-us > p.bh19-foot-como { padding-top: 2px; }
.footer-container #footer .about-us > p.bh19-foot-como a { color: var(--bh-g-d) !important; font-size: 15.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
/* La burbuja del chat sube por encima de la flecha de «subir arriba» (antes se montaban en páginas largas) */
#bhchat { bottom: 74px !important; }
#scroll_to_top { z-index: 900; }
/* Ruta de navegación en móvil (decisión 8A, 19-oct): solo «← categoría anterior»; el HTML completo sigue ahí (Google lo lee igual) */
@media (max-width: 767px) {
  .breadcrumb ol.breadcrumb > li { display: none !important; }
  .breadcrumb ol.breadcrumb > li:nth-last-child(2) { display: inline-flex !important; align-items: center; }
  .breadcrumb ol.breadcrumb > li:nth-last-child(2)::before { content: "←" !important; margin: 0 8px 0 0 !important; padding: 0 !important; color: var(--bh-g-d); font-size: 17px; }
  .breadcrumb ol.breadcrumb > li:nth-last-child(2) a { color: var(--bh-g-d); font-weight: 600; text-decoration: none; }
}
@keyframes bh19-rota { 0% { opacity: 0; } 3% { opacity: 1; } 30% { opacity: 1; } 33.3% { opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  #header .bh26-topbar-list li { animation: none; }
  #header .bh26-topbar-list li:first-child { opacity: 1; }
}

/* Barra de campaña (Promotion Pro, GIF 1170×150 que sube Celia), 19-oct: al ancho de la página, centrada, esquinas
   redondeadas y menos aire (antes 1170 px pegada a la izquierda con 20 px de blanco arriba y abajo) */
#banner-container .top-banner-content { padding: 10px 0 0; }
#banner-container .top-banner-content p { margin: 0; }
#banner-container .top-banner-content img { display: block; width: 100% !important; max-width: 100%; height: auto !important; margin: 0 auto; border-radius: 12px; }
@media (max-width: 767px) { #banner-container .top-banner-content { padding: 6px 0 0; } #banner-container .top-banner-content img { border-radius: 8px; } }
