/* Bambi — carrito y checkout. Mobile-first; usa los tokens de bambi.css. */

/* ---------- Piezas compartidas ---------- */
.bb-card {
  background: var(--bb-white);
  border: 1px solid rgba(9, 54, 77, .1);
  border-radius: var(--bb-radius);
  padding: 1.25rem;
  box-shadow: 0 1px 2px rgba(9, 54, 77, .04), 0 12px 32px -16px rgba(9, 54, 77, .18);
}
.bb-card--soft { background: var(--bb-ice); border-color: transparent; box-shadow: none; margin-top: 1rem; }
.bb-card h2 { font-size: 1.15rem; margin: 0 0 1rem; }
.bb-muted { color: var(--bb-muted); font-size: .9rem; }

.bb-btn-pay {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  width: 100%; min-height: 56px; padding: .85rem 1.5rem;
  font-size: 1.05rem; border-radius: 999px;
  transition: transform .25s var(--bb-ease), box-shadow .25s var(--bb-ease), background-color .25s var(--bb-ease);
}
.bb-btn-pay:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(9, 54, 77, .55); }
.bb-btn-pay:not(:disabled):active { transform: scale(.98); }
.bb-btn-pay .fa-arrow-right { transition: transform .3s var(--bb-ease); }
.bb-btn-pay:hover .fa-arrow-right { transform: translateX(4px); }

.bb-totals { margin: 0 0 1.25rem; }
.bb-totals__row { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; font-size: .95rem; color: var(--bb-muted); }
.bb-totals__row dt, .bb-totals__row dd { margin: 0; font-weight: 400; }
.bb-totals__row.is-grand { margin-top: .5rem; padding-top: 1rem; border-top: 1px solid rgba(9, 54, 77, .12); color: var(--bb-ink); font-size: 1.2rem; }
.bb-totals__row.is-grand dt, .bb-totals__row.is-grand dd { font-weight: 800; font-family: var(--bb-font-head); }

.bb-trust { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .4rem; font-size: .85rem; color: var(--bb-muted); }
.bb-trust i { color: var(--bb-blue-2); width: 1.2em; }

/* Skeleton mientras se recalcula */
.is-loading { position: relative; pointer-events: none; }
.is-loading > * { opacity: .45; transition: opacity .2s; }
.is-loading::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .75) 50%, transparent 70%);
  background-size: 200% 100%; animation: bb-shimmer 1.1s linear infinite;
}
@keyframes bb-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Página de carrito / checkout: limpiar el padding heredado de OpenCart */
#content, #column-left, #column-right { padding-bottom: 0; }
#checkout-cart, #checkout-checkout { padding-bottom: 4rem; }

/* ---------- Carrito ---------- */
.bb-cart__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 1rem 0 1.25rem; }
.bb-cart__head h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); margin: 0; }
.bb-cart__count { color: var(--bb-muted); font-size: .9rem; white-space: nowrap; }

.bb-cart { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 992px) {
  .bb-cart { grid-template-columns: minmax(0, 1fr) 380px; gap: 2rem; }
  .bb-cart__summary { position: sticky; top: calc(var(--bb-header-h) + 1.25rem); max-height: calc(100vh - var(--bb-header-h) - 2.5rem); overflow-y: auto; padding-bottom: .5rem; scrollbar-width: thin; }
}

.bb-cart__items { display: grid; gap: 1rem; }
.bb-item {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: .5rem 1rem;
  padding: 1rem; background: var(--bb-white);
  border: 1px solid rgba(9, 54, 77, .1); border-radius: var(--bb-radius);
  animation: bb-rise .5s var(--bb-ease) both;
}
.bb-item:nth-child(2) { animation-delay: .06s; }
.bb-item:nth-child(3) { animation-delay: .12s; }
@keyframes bb-rise { from { opacity: 0; transform: translateY(14px); } }
.bb-item__img { grid-row: span 2; display: block; align-self: start; border-radius: 14px; background: var(--bb-ice); aspect-ratio: 16 / 9; overflow: hidden; }
.bb-item__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.bb-item__body { min-width: 0; }
.bb-item__name { display: block; font-size: 1.02rem; font-weight: 700; color: var(--bb-ink); line-height: 1.25; }
.bb-item__name:hover { color: var(--bb-blue-2); }
.bb-item__meta { list-style: none; margin: .25rem 0 0; padding: 0; font-size: .8rem; color: var(--bb-muted); }
.bb-item__flag { display: inline-block; margin-top: .4rem; padding: .15rem .6rem; border-radius: 999px; background: #fdecea; color: #b3261e; font-size: .75rem; font-weight: 700; }
.bb-item__prices { grid-column: 2; display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.bb-item__total { font-family: var(--bb-font-head); font-size: 1.15rem; }
.bb-item__prices small { color: var(--bb-muted); order: -1; }
@media (min-width: 768px) {
  .bb-item { grid-template-columns: 176px minmax(0, 1fr) auto; align-items: center; padding: 1.25rem; gap: .5rem 1.5rem; }
  .bb-item__img { grid-row: auto; align-self: center; }
  .bb-item__prices { grid-column: auto; flex-direction: column; align-items: flex-end; gap: .1rem; text-align: right; }
  .bb-item__prices small { order: 0; }
}

/* Selector de cantidad */
.bb-qty { display: inline-flex; align-items: center; gap: .25rem; padding: 3px; border-radius: 999px; background: var(--bb-ice); }
.bb-item__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin: .75rem 0 0; }
.bb-qty__btn {
  width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--bb-white); color: var(--bb-ink);
  font-size: 1.1rem; line-height: 1; cursor: pointer; box-shadow: 0 1px 2px rgba(9, 54, 77, .15);
  transition: transform .2s var(--bb-ease), background-color .2s;
}
.bb-qty__btn:hover { background: var(--bb-yellow); }
.bb-qty__btn:active { transform: scale(.88); }
.bb-qty__input { width: 2.6rem; border: 0; background: transparent; text-align: center; font-weight: 700; color: var(--bb-ink); padding: 0; }
.bb-qty__input:focus { outline: 2px solid var(--bb-yellow); border-radius: 8px; }
.bb-qty__submit { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); border: 0; padding: 0; }
.bb-item__remove {
  --bs-btn-bg: transparent; --bs-btn-border-color: transparent; --bs-btn-color: var(--bb-muted);
  --bs-btn-hover-bg: #fdecea; --bs-btn-hover-border-color: #fdecea; --bs-btn-hover-color: #b3261e;
  --bs-btn-active-bg: #fdecea; --bs-btn-active-color: #b3261e;
  height: 36px; padding: 0 .75rem 0 .4rem; border-radius: 999px; display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600;
}
.bb-cart__more { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; margin-top: .25rem; }

.bb-empty { text-align: center; padding: 4rem 1rem; display: grid; gap: 1rem; justify-items: center; }
.bb-empty > i { font-size: 3rem; color: var(--bb-frost); }
.bb-empty .bb-btn-pay { width: auto; }

/* Código de descuento y cálculo de envío: siempre a la vista debajo del resumen, sin acordeón. */
/* The sections come in the order of the extensions; here the discount code goes first, then points, then shipping. */
/* Trust marks side by side in the summary (they take two lines otherwise). */
.bb-cart__summary .bb-trust { grid-auto-flow: column; justify-content: center; gap: 1.1rem; margin-top: .85rem; font-size: .78rem; }
.bb-tools { display: flex; flex-direction: column; gap: 1px; margin-top: 1rem; padding: 0; overflow: hidden; background: rgba(9, 54, 77, .1); }
.bb-tool-sec { padding: 1rem 1.25rem 1.1rem; background: var(--bb-white); }
.bb-tool-sec--coupon { order: -2; }
.bb-tool-sec--reward { order: -1; }
.bb-tool-sec h3 { display: flex; align-items: center; gap: .55rem; margin: 0 0 .65rem; font-size: 1rem; }
.bb-tool-sec h3 i { color: var(--bb-blue-2); }
.bb-tool-sec__hint { margin: -.35rem 0 .65rem; color: var(--bb-muted); font-size: .85rem; line-height: 1.4; }
.bb-inline { display: flex; gap: .5rem; }
.bb-inline .form-control { min-width: 0; }
.bb-inline .btn { flex: none; }
.bb-tool-sec .form-control, .bb-tool-sec .form-select { min-height: 46px; padding-inline: 1.1rem; border: 1.5px solid rgba(9, 54, 77, .18); border-radius: 999px; }
.bb-tool-sec .form-control:focus, .bb-tool-sec .form-select:focus { border-color: var(--bb-blue); box-shadow: 0 0 0 3px rgba(254, 197, 45, .55); }
.bb-tool-sec .btn { min-height: 46px; padding-inline: 1.2rem; border-radius: 999px; font-weight: 700; }
.bb-tool-sec .form-label { margin: 0 0 .3rem; font-size: .8rem; font-weight: 600; }
.bb-tool-sec__ok { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .7rem 0 0; font-size: .85rem; color: #17653a; }
.bb-linkbtn { margin-left: auto; padding: 0; border: 0; background: none; color: var(--bb-muted); font-size: .82rem; font-weight: 600; text-decoration: underline; cursor: pointer; }
.bb-linkbtn:hover { color: #b3261e; }
.bb-quote-form__field + .bb-quote-form__field { margin-top: .75rem; }
.bb-quote { margin-top: 1rem; }
.bb-quote:empty { display: none; }
.bb-quote__title { margin: 0 0 .5rem; font-size: .85rem; font-weight: 700; }
.bb-quote__opt { display: flex; align-items: center; gap: .65rem; margin: 0 0 .5rem; padding: .7rem .9rem; border: 1.5px solid rgba(9, 54, 77, .15); border-radius: 16px; font-size: .9rem; cursor: pointer; transition: border-color .2s, background .2s; }
.bb-quote__opt:has(input:checked) { border-color: var(--bb-blue); background: var(--bb-ice); }
.bb-quote__name { flex: 1; min-width: 0; }
.bb-quote__save { width: 100%; margin-top: .25rem; }

/* ---------- Checkout ---------- */
.bb-checkout__top { display: flex; align-items: center; justify-content: space-between; padding-top: 1.25rem; font-size: .85rem; }
.bb-back { font-weight: 700; }
.bb-secure { color: var(--bb-muted); }
.bb-secure i { color: var(--bb-blue-2); }
.bb-checkout__title { font-size: clamp(1.7rem, 5vw, 2.4rem); margin: .75rem 0 1.25rem; }

.bb-checkout__grid { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 992px) {
  .bb-checkout__grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 2rem; }
  .bb-checkout__aside { position: sticky; top: calc(var(--bb-header-h) + 1.25rem); }
}

.bb-steps { counter-reset: bb-step; display: grid; gap: 1rem; }
.bb-step {
  background: var(--bb-white); border: 1px solid rgba(9, 54, 77, .1); border-radius: var(--bb-radius);
  padding: 1.25rem; animation: bb-rise .5s var(--bb-ease) both;
  /* "Continuar" / "Editar" scroll the step into view (bambi-checkout.js): leave room for the fixed header so its title lands fully visible below it. */
  scroll-margin-top: calc(var(--bb-header-h) + 1rem);
}
#checkout-shipping-method .bb-step { animation-delay: .06s; }
#checkout-payment-method .bb-step { animation-delay: .12s; }
.bb-step__head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.bb-step__edit { margin-left: auto; padding: .35rem .95rem; border: 1.5px solid rgba(9, 54, 77, .2); border-radius: 999px; background: transparent; color: var(--bb-blue); font-size: .82rem; font-weight: 700; cursor: pointer; transition: background .2s, border-color .2s; }
.bb-step__edit:hover, .bb-step__edit:focus-visible { background: var(--bb-yellow); border-color: var(--bb-yellow); }
.bb-step__edit[hidden], .bb-step__summary[hidden] { display: none; }
.bb-step__summary { margin: -.35rem 0 0 calc(32px + .75rem); color: var(--bb-muted); font-size: .9rem; line-height: 1.45; overflow-wrap: anywhere; }
.bb-step__summary strong { color: var(--bb-ink); }
.bb-step__foot { display: flex; justify-content: flex-end; margin-top: 1.1rem; }
.bb-step__next { min-height: 48px; padding-inline: 2.2rem; border-radius: 999px; font-weight: 700; }
/* States: the step in progress is open, the finished ones collapse with a summary, the later ones are locked. */
.bb-step[data-state="done"] .bb-step__body, .bb-step[data-state="locked"] .bb-step__body { display: none; }
.bb-step[data-state="done"] .bb-step__head { margin-bottom: .6rem; }
.bb-step[data-state="done"] .bb-step__num { background: #1f8a4c; color: var(--bb-white); }
.bb-step[data-state="done"] .bb-step__num::before { content: "\f00c"; font: 900 .8rem "Font Awesome 7 Free"; }
.bb-step[data-state="locked"] { opacity: .55; }
.bb-step[data-state="locked"] .bb-step__head { margin-bottom: 0; }
.bb-step[data-state="locked"] .bb-step__num { background: var(--bb-ice); color: var(--bb-muted); }
/* The pay button shows only on the last step; before that a disabled mark takes its place. */
#checkout-checkout:not(.is-paying) #checkout-payment > :not(.bb-pay__wait):not(.bb-pay__always) { display: none; }
#checkout-checkout.is-paying .bb-pay__wait { display: none; }
.bb-step__head h2 { font-size: 1.15rem; margin: 0; }
.bb-step__num {
  counter-increment: bb-step; flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bb-yellow); color: var(--bb-blue);
  font-family: var(--bb-font-head); font-weight: 800; font-size: .95rem;
}
.bb-step__num::before { content: counter(bb-step); }

/* Formularios del paso 1 (register / direcciones de OpenCart) */
.bb-step legend { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bb-frost); border: 0; padding: 0; margin: 1rem 0 .75rem; float: none; width: auto; }
.bb-step fieldset:first-child legend, .bb-step legend:first-child { margin-top: 0; }
.bb-step .form-label, .bb-step label { font-size: .85rem; font-weight: 600; color: var(--bb-ink); margin-bottom: .3rem; }
.bb-step .form-control, .bb-step .form-select { min-height: 48px; border-color: rgba(9, 54, 77, .18); }
.bb-step .form-control:focus, .bb-step .form-select:focus { border-color: var(--bb-blue-2); box-shadow: 0 0 0 .25rem rgba(254, 197, 45, .45); }
.bb-step .required > label::before, .bb-step div.required .form-label::before { content: none; }
.bb-step .required > label::after, .bb-step div.required .form-label::after { content: " *"; color: #b3261e; }
.bb-step .form-check-label { font-weight: 400; }
.bb-step #button-register { width: 100%; min-height: 52px; margin-top: 1rem; }
@media (min-width: 768px) { .bb-step #button-register { width: auto; padding-inline: 2.5rem; } }

/* Opciones de envío / pago como tarjetas */
.bb-options { display: grid; gap: .6rem; position: relative; min-height: 3rem; }
.bb-options__group { display: grid; gap: .6rem; }
.bb-options__group h3 { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--bb-frost); margin: .4rem 0 0; font-family: var(--bb-font); }
.bb-option {
  display: flex; align-items: center; gap: .85rem; padding: .95rem 1.1rem; min-height: 56px; margin: 0;
  border: 1.5px solid rgba(9, 54, 77, .15); border-radius: 18px; background: var(--bb-white);
  cursor: pointer; font-size: 1rem;
  transition: border-color .25s var(--bb-ease), background-color .25s var(--bb-ease), transform .25s var(--bb-ease), box-shadow .25s var(--bb-ease);
}
.bb-option:hover { border-color: var(--bb-frost); }
.bb-option:active { transform: scale(.985); }
.bb-option input { appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border-radius: 50%; border: 2px solid rgba(9, 54, 77, .35); display: grid; place-items: center; transition: border-color .2s, background-color .2s; }
.bb-option input::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--bb-blue); transform: scale(0); transition: transform .3s var(--bb-ease); }
.bb-option input:checked { border-color: var(--bb-blue); }
.bb-option input:checked::after { transform: scale(1); }
.bb-option:has(input:checked) { border-color: var(--bb-blue); background: var(--bb-ice); box-shadow: 0 0 0 3px rgba(254, 197, 45, .55); }
.bb-option input:focus-visible { outline: 3px solid var(--bb-yellow); outline-offset: 2px; }
.bb-option__main { flex: 1; min-width: 0; }
.bb-option__price { font-family: var(--bb-font-head); font-weight: 800; white-space: nowrap; }

.bb-note { padding: .85rem 1rem; border-radius: 14px; background: var(--bb-ice); color: var(--bb-muted); font-size: .9rem; }
.bb-note--warn { background: #fff6dc; color: #6b5200; }
.bb-note-toggle { margin-top: 1rem; }
.bb-note-toggle summary { cursor: pointer; font-weight: 700; font-size: .9rem; color: var(--bb-blue-2); list-style: none; }
.bb-note-toggle summary::before { content: "+"; display: inline-block; width: 1.2em; font-weight: 800; }
.bb-note-toggle[open] summary::before { content: "−"; }
.bb-note-toggle textarea { margin-top: .6rem; }

/* Resumen del pedido */
.bb-summary { padding: 1.25rem; }
.bb-lines { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .85rem; }
.bb-lines__item { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; }
.bb-lines__main { display: flex; gap: .6rem; min-width: 0; }
.bb-lines__item > strong { white-space: nowrap; }
.bb-lines__qty { color: var(--bb-muted); font-weight: 700; }
.bb-lines__main a { font-weight: 700; color: var(--bb-ink); display: block; }
.bb-lines__main small { display: block; color: var(--bb-muted); font-size: .78rem; }

/* Lo que muestra la extensión de pago (instrucciones de la transferencia, etc.) con el tamaño del resumen */
.bb-pay fieldset { margin: 0; padding: 0; border: 0; }
.bb-pay legend { float: none; width: 100%; margin: 0 0 .6rem; padding: 0; border: 0; font: 700 1rem var(--bb-font-head); line-height: 1.3; color: var(--bb-ink); }
.bb-pay fieldset > p { margin: 0 0 .75rem; font-size: .88rem; }
.bb-pay .border.rounded { margin-bottom: 1rem !important; padding: .9rem 1rem !important; border: 0 !important; border-radius: 16px !important; background: var(--bb-ice); font-size: .85rem; line-height: 1.5; }
.bb-pay .border.rounded p:last-child { margin-bottom: 0; }

/* Botón de pago (lo renderiza cada extensión de pago) */
.bb-pay .text-end { text-align: stretch !important; }
.bb-pay .btn-primary, #button-confirm {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 58px;
  font-size: 1.1rem; border-radius: 999px; --bs-btn-bg: var(--bb-blue);
  background: linear-gradient(135deg, var(--bb-blue), var(--bb-blue-2));
  transition: transform .25s var(--bb-ease), box-shadow .25s var(--bb-ease);
}
.bb-pay .btn-primary:hover, #button-confirm:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(9, 54, 77, .6); }
.bb-pay .btn-primary:active, #button-confirm:active { transform: scale(.98); }
.bb-pay .btn-primary:disabled { background: #9db1bd; border-color: #9db1bd; }

/* En mobile el botón de pago queda a mano mientras se ve el resumen */
@media (max-width: 991.98px) {
  /* The floating WhatsApp button would sit on top of the pay button: it goes up above it. */
  body:has(#checkout-checkout) .bb-wa { bottom: calc(6rem + env(safe-area-inset-bottom)); }
  .bb-pay .text-end { position: sticky; bottom: 0; z-index: 3; margin: 0 -1.25rem -1.25rem; padding: .85rem 1.25rem calc(.85rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid rgba(9, 54, 77, .1); border-radius: 0 0 var(--bb-radius) var(--bb-radius); }
}

/* Código de descuento dentro del resumen del checkout */
.bb-coupon { margin: 0 0 1rem; padding-top: 1rem; border-top: 1px solid rgba(9, 54, 77, .1); }
.bb-coupon .form-control { min-height: 46px; padding-inline: 1.1rem; border: 1.5px solid rgba(9, 54, 77, .18); border-radius: 999px; }
.bb-coupon .form-control:focus { border-color: var(--bb-blue); box-shadow: 0 0 0 3px rgba(254, 197, 45, .55); }
.bb-coupon__apply { min-height: 46px; padding-inline: 1.2rem; border: 0; border-radius: 999px; background: var(--bb-blue); color: var(--bb-white); font-weight: 700; }
.bb-coupon__apply:hover, .bb-coupon__apply:focus-visible { background: var(--bb-blue-2); color: var(--bb-white); }
.bb-coupon__ok { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .7rem 0 0; font-size: .85rem; color: #17653a; }

/* Pedido realizado / páginas de confirmación */
.bb-success { max-width: 560px; margin: 3rem auto 2rem; text-align: center; display: grid; gap: 1rem; justify-items: center; animation: bb-rise .6s var(--bb-ease) both; }
.bb-success h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); margin: 0; }
.bb-success__icon { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--bb-yellow); color: var(--bb-blue); font-size: 2rem; animation: bb-pop .7s var(--bb-ease) .15s both; }
.bb-success__text { color: var(--bb-muted); }
.bb-success .bb-btn-pay { width: auto; margin-top: .5rem; }
@keyframes bb-pop { from { transform: scale(.4); opacity: 0; } }

/* ---------- Ficha de producto ---------- */
.bb-pdp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin: 1rem 0 2.5rem; align-items: start; }
.bb-gallery, .bb-pdp__info, .bb-pdp__details { min-width: 0; }
@media (min-width: 992px) {
  /* Gallery and details scroll on the left; the buy box stays put on the right (price, promos, quantity, button). */
  .bb-pdp { grid-template-columns: minmax(0, 1fr) 410px; grid-template-areas: "gallery buy" "details buy"; gap: 1.75rem 3rem; }
  .bb-gallery { grid-area: gallery; }
  .bb-pdp__details { grid-area: details; }
  .bb-pdp__info {
    grid-area: buy; position: sticky; top: calc(var(--bb-header-h) + 1.25rem);
    max-height: calc(100vh - var(--bb-header-h) - 2rem); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  }
  .bb-buybox {
    padding: 1.5rem; border: 1px solid rgba(9, 54, 77, .1); border-radius: var(--bb-radius); background: var(--bb-white);
    box-shadow: 0 1px 2px rgba(9, 54, 77, .05), 0 24px 48px -28px rgba(9, 54, 77, .35);
  }
  .bb-buybox h1 { font-size: clamp(1.4rem, 1.9vw, 1.75rem); }
  .bb-buybox .bb-price { margin: .75rem 0 1rem; }
  .bb-buybox .bb-price__now { font-size: 2.4rem; }
  .bb-buybox .bb-price--offer .bb-price__now { font-size: 2.7rem; }
  .bb-buybox .bb-trust { margin-top: .5rem; grid-auto-flow: column; justify-content: center; gap: 1.25rem; }
  .bb-buybox .bb-pdp__aux { margin: .25rem 0 .5rem; gap: .1rem 1rem; }
  .bb-buybox .bb-link { font-size: .8rem; }
}
.bb-buybox__promos { margin: 0 0 1.25rem; }

.bb-gallery__stage { position: relative; aspect-ratio: 16 / 9; border-radius: var(--bb-radius); overflow: hidden; background: var(--bb-ice); cursor: zoom-in; }
.bb-gallery__img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .35s var(--bb-ease), opacity .25s; will-change: transform; }
.bb-gallery__stage.is-zoom .bb-gallery__img { transform: scale(2.4); }
.bb-gallery__stage.is-swap .bb-gallery__img { opacity: .35; }
.bb-gallery__hint {
  position: absolute; left: .75rem; bottom: .75rem; display: inline-flex; align-items: center; gap: .45rem;
  padding: .4rem .85rem; border-radius: 999px; background: rgba(9, 54, 77, .78); color: var(--bb-white);
  font-size: .75rem; font-weight: 600; pointer-events: none; transition: opacity .3s;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.bb-gallery__stage.is-zoom .bb-gallery__hint { opacity: 0; }
/* Animated GIF in the gallery: a tag on the photo, a play badge on its thumbnail, and no "zoom" hint (it is not zoomed on hover). */
.bb-gallery__motion {
  position: absolute; left: .75rem; top: .75rem; z-index: 1; display: inline-flex; align-items: center; gap: .45rem;
  padding: .35rem .8rem; border-radius: 999px; background: var(--bb-yellow); color: var(--bb-blue);
  font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; pointer-events: none;
  box-shadow: 0 8px 18px -8px rgba(9, 54, 77, .5);
}
.bb-gallery__motion[hidden] { display: none; }
.bb-gallery__motion i { font-size: .65rem; }
.bb-gallery__stage.is-motion .bb-gallery__hint { display: none; }
.bb-gallery__thumbs button[data-motion] { position: relative; }
.bb-gallery__thumbs button[data-motion]::after {
  content: "\f04b"; position: absolute; right: .4rem; bottom: .4rem; width: 1.5rem; height: 1.5rem; display: grid; place-items: center;
  border-radius: 50%; background: var(--bb-yellow); color: var(--bb-blue);
  font: 900 .6rem/1 "Font Awesome 7 Free"; padding-left: .08rem;
}
.bb-hint-mouse { display: none; }
@media (hover: hover) and (pointer: fine) { .bb-hint-mouse { display: inline; } .bb-hint-touch { display: none; } }

.bb-gallery__thumbs { list-style: none; margin: .75rem 0 0; padding: .25rem .25rem .5rem; display: flex; gap: .6rem; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.bb-gallery__thumbs::-webkit-scrollbar { display: none; }
.bb-gallery__thumbs li { flex: 0 0 96px; scroll-snap-align: start; }
@media (min-width: 768px) { .bb-gallery__thumbs li { flex-basis: 120px; } }
.bb-gallery__thumbs button {
  display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 2px solid transparent; border-radius: 14px; overflow: hidden;
  background: var(--bb-ice); cursor: pointer; opacity: .72;
  transition: opacity .25s, border-color .25s, box-shadow .25s, transform .25s var(--bb-ease);
}
.bb-gallery__thumbs button:hover { opacity: 1; transform: translateY(-2px); }
.bb-gallery__thumbs button.is-active { opacity: 1; border-color: var(--bb-blue); box-shadow: 0 0 0 3px rgba(254, 197, 45, .55); }
.bb-gallery__thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }

.bb-chips { list-style: none; margin: 0 0 .75rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .78rem; }
.bb-chips li { padding: .3rem .75rem; border-radius: 999px; background: var(--bb-ice); color: var(--bb-muted); font-weight: 600; }
.bb-chips a { color: inherit; }
.bb-chips .bb-chips__stock { background: #e7f6ec; color: #17653a; }
.bb-pdp__info h1 { font-size: clamp(1.45rem, 4.2vw, 2.2rem); line-height: 1.12; margin: 0 0 .5rem; }
/* Desktop: the name is smaller (it is a column next to the photo, not the page banner). */
@media (min-width: 992px) { .bb-pdp__info h1 { font-size: clamp(1.4rem, 1.9vw, 1.75rem); line-height: 1.18; } }
.bb-pdp__info .form-label, .bb-pdp__info label { font-size: .85rem; font-weight: 600; }

/* Precio: el valor final es lo más grande de la ficha. En oferta, el anterior va tachado y chico, con el porcentaje y el ahorro. */
.bb-price { display: grid; justify-items: start; gap: .3rem; margin: 1rem 0 1.25rem; }
.bb-price__now { font-family: var(--bb-font-head); font-size: clamp(2rem, 6vw, 2.8rem); font-weight: 800; line-height: 1; letter-spacing: -.02em; color: var(--bb-ink); }
.bb-price__top { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .65rem; }
.bb-price__badge { padding: .28rem .7rem; border-radius: 999px; background: var(--bb-yellow); color: var(--bb-blue); font: 800 .85rem var(--bb-font); letter-spacing: .01em; }
.bb-price__was { font-size: 1.05rem; font-weight: 500; color: var(--bb-muted); }
.bb-price__was s { text-decoration-thickness: 2px; text-decoration-color: rgba(179, 38, 30, .7); }
.bb-price--offer .bb-price__now { font-size: clamp(2.3rem, 7vw, 3.1rem); color: var(--bb-blue); }
.bb-price__save { font-size: .9rem; font-weight: 700; color: #17653a; }
.bb-price__tax { color: var(--bb-muted); font-size: .8rem; line-height: 1.35; }
.bb-price__tax strong { color: var(--bb-ink); font-weight: 700; }
.bb-price small { color: var(--bb-muted); font-size: .85rem; }
.bb-price__discounts { list-style: none; margin: .5rem 0 0; padding: 0; color: var(--bb-muted); font-size: .85rem; }

.bb-buy { display: flex; flex-direction: column; gap: .75rem; margin: 1rem 0; }
.bb-buy .bb-btn-pay { margin: 0; }
@media (min-width: 480px) { .bb-buy { flex-direction: row; align-items: stretch; } .bb-buy .bb-btn-pay { flex: 1; } }
.bb-qty--lg { margin: 0; padding: 4px; align-self: flex-start; }
.bb-qty--lg .bb-qty__btn { width: 48px; height: 48px; font-size: 1.3rem; }
.bb-qty--lg .bb-qty__input { width: 3rem; font-size: 1.1rem; }
@media (min-width: 480px) { .bb-qty--lg { align-self: stretch; } }
/* Desktop: the quantity and the buy button are smaller so "Agregar al carrito" stays on one line inside the narrow buy box. */
@media (min-width: 992px) {
  .bb-buybox .bb-buy { gap: .6rem; margin: .75rem 0; }
  .bb-buybox .bb-qty--lg { padding: 3px; }
  .bb-buybox .bb-qty--lg .bb-qty__btn { width: 38px; height: 38px; font-size: 1.1rem; }
  .bb-buybox .bb-qty--lg .bb-qty__input { width: 2.1rem; font-size: 1rem; }
  .bb-buybox .bb-btn-pay { min-height: 48px; padding: .6rem 1rem; font-size: .95rem; white-space: nowrap; }
}

/* Top of the buy box: model and stock on the left, heart and compare as bare icons on the right. */
.bb-buybox__top { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; margin: 0 0 .75rem; }
.bb-buybox__top .bb-chips { margin: 0; min-width: 0; }
.bb-pdp__tools { display: flex; flex: none; gap: .4rem; margin: 0; }
.bb-tool { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(9, 54, 77, .15); border-radius: 50%; background: var(--bb-white); color: var(--bb-blue); font-size: .95rem; cursor: pointer; transition: transform .25s var(--bb-ease), background .2s, color .2s; }
.bb-tool:hover, .bb-tool:focus-visible { background: var(--bb-yellow); transform: scale(1.08); }
.bb-tool:active { transform: scale(.92); }
.bb-pdp__aux { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: .5rem 0 1rem; }
.bb-link { border: 0; background: none; padding: .4rem 0; font-weight: 700; font-size: .9rem; color: var(--bb-blue-2); cursor: pointer; }
.bb-link:hover { color: var(--bb-blue); }
.bb-link i { margin-right: .35rem; }

/* Pestañas, descripción y especificaciones */
.bb-tabs { border: 0; gap: .5rem; margin-bottom: 1.5rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.bb-tabs .nav-link { border: 0; border-radius: 999px; color: var(--bb-muted); font-weight: 700; padding: .6rem 1.2rem; white-space: nowrap; }
.bb-tabs .nav-link:hover { color: var(--bb-blue); background: var(--bb-ice); }
.bb-tabs .nav-link.active { background: var(--bb-blue); color: var(--bb-white); }
.bb-prose { max-width: 70ch; line-height: 1.75; color: var(--bb-muted); }
.bb-prose h3 { color: var(--bb-ink); font-size: 1.2rem; margin: 1.75rem 0 .5rem; }
.bb-prose .bb-lead { color: var(--bb-ink); font-size: 1.15rem; font-weight: 500; }
.bb-prose ul { padding-left: 1.1rem; }
.bb-prose li { margin-bottom: .4rem; }
.bb-prose .bb-sample { margin-top: 1.5rem; padding: .85rem 1rem; border-radius: 14px; background: #fff6dc; color: #6b5200; font-size: .9rem; }
.bb-specs { max-width: 720px; --bs-table-bg: transparent; }
.bb-specs thead td { padding: 0 0 .5rem; border: 0; font-family: var(--bb-font-head); font-size: 1.15rem; }
.bb-specs td { padding: .85rem 0; border-color: rgba(9, 54, 77, .1); }
.bb-specs tbody td:first-child { width: 45%; color: var(--bb-muted); }
.bb-specs tbody td:last-child { font-weight: 600; }

/* Relacionados */
.bb-related { margin: 3rem 0 1rem; }
.bb-related h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 1.25rem; }
.bb-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .25rem .25rem 1rem; margin-inline: -.25rem; scrollbar-width: none; }
.bb-rail::-webkit-scrollbar { display: none; }
.bb-rail__item { scroll-snap-align: start; }
@media (min-width: 640px) { .bb-rail { grid-auto-columns: 42%; } }
@media (min-width: 992px) { .bb-rail { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; } }
@media (min-width: 1280px) { .bb-rail { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Visor de fotos: clic para ampliar, mover para recorrer los detalles */
.bb-lb {
  position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center;
  background: rgba(5, 28, 41, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--bb-ease), visibility 0s .3s;
}
.bb-lb.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.bb-lb__stage { width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; padding: 4.5rem 1rem 3.5rem; }
.bb-lb__stage img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; cursor: zoom-in; touch-action: none; user-select: none; -webkit-user-drag: none; transition: transform .35s var(--bb-ease); }
.bb-lb.is-zoomed .bb-lb__stage img { transform: scale(2.6); cursor: zoom-out; }
.bb-lb__btn { position: absolute; z-index: 1; width: 48px; height: 48px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); color: var(--bb-white); cursor: pointer; transition: background .2s, color .2s, transform .2s var(--bb-ease); }
.bb-lb__btn:hover { background: var(--bb-yellow); color: var(--bb-blue); }
.bb-lb__btn:active { transform: scale(.92); }
.bb-lb__close { top: 1rem; right: 1rem; }
.bb-lb__prev { left: 1rem; top: 50%; margin-top: -24px; }
.bb-lb__next { right: 1rem; top: 50%; margin-top: -24px; }
.bb-lb.is-zoomed .bb-lb__prev, .bb-lb.is-zoomed .bb-lb__next { opacity: 0; pointer-events: none; }
.bb-lb__count { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .8); font-size: .85rem; }

/* ---------- Garantía extendida: cuadro al agregar al carrito ---------- */
.bb-wm { position: fixed; inset: 0; z-index: 2100; display: grid; align-items: end; justify-items: center; padding: 0; background: rgba(5, 28, 41, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .3s var(--bb-ease), visibility 0s .3s; }
.bb-wm.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
/* A closed layer (or one fading out) never catches clicks. */
.bb-wm:not(.is-open), .bb-lb:not(.is-open) { pointer-events: none; }
.bb-wm__panel {
  position: relative; width: 100%; max-width: 560px; max-height: 92svh; overflow-y: auto; padding: 1.5rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
  background: var(--bb-white); border-radius: var(--bb-radius-lg) var(--bb-radius-lg) 0 0;
  transform: translateY(40px); transition: transform .5s var(--bb-ease);
}
.bb-wm.is-open .bb-wm__panel { transform: none; }
@media (min-width: 640px) {
  .bb-wm { align-items: center; padding: 1.5rem; }
  .bb-wm__panel { padding: 2rem 2rem 1.75rem; border-radius: var(--bb-radius-lg); transform: translateY(20px) scale(.98); }
  .bb-wm.is-open .bb-wm__panel { transform: none; }
}
.bb-wm__close { position: absolute; top: .9rem; right: .9rem; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bb-ice); color: var(--bb-blue); cursor: pointer; }
.bb-wm__close:hover { background: var(--bb-yellow); }
.bb-wm h2 { margin: 0 2.5rem .35rem 0; font-size: clamp(1.4rem, 4vw, 1.8rem); }
.bb-wm__lead { margin: 0 0 1.25rem; color: var(--bb-muted); }
.bb-wm__product { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.25rem; padding: .75rem; border-radius: 18px; background: var(--bb-ice); }
.bb-wm__product img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: #e1e9ee; }
.bb-wm__product small { display: block; color: var(--bb-muted); font-size: .78rem; }
.bb-wm__product strong { display: block; line-height: 1.25; }
.bb-wm__plans { display: grid; gap: .7rem; }
.bb-wm__plan {
  position: relative; display: flex; align-items: center; gap: .9rem; margin: 0; padding: 1.1rem 1.1rem; min-height: 68px;
  border: 1.5px solid rgba(9, 54, 77, .15); border-radius: 18px; cursor: pointer; background: var(--bb-white);
  transition: border-color .25s var(--bb-ease), box-shadow .25s var(--bb-ease), background-color .25s var(--bb-ease), transform .25s var(--bb-ease);
}
.bb-wm__plan:hover { border-color: var(--bb-frost); }
.bb-wm__plan:active { transform: scale(.985); }
.bb-wm__plan:has(input:checked) { border-color: var(--bb-blue); background: var(--bb-ice); box-shadow: 0 0 0 3px rgba(254, 197, 45, .55); }
.bb-wm__plan input { appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border-radius: 50%; border: 2px solid rgba(9, 54, 77, .35); display: grid; place-items: center; }
.bb-wm__plan input::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--bb-blue); transform: scale(0); transition: transform .3s var(--bb-ease); }
.bb-wm__plan input:checked { border-color: var(--bb-blue); }
.bb-wm__plan input:checked::after { transform: scale(1); }
.bb-wm__plan input:focus-visible { outline: 3px solid var(--bb-yellow); outline-offset: 2px; }
.bb-wm__plan-main { flex: 1; min-width: 0; }
.bb-wm__plan-main strong { display: block; font-size: 1.05rem; }
.bb-wm__plan-main small { display: block; color: var(--bb-muted); font-size: .8rem; margin-top: .15rem; }
.bb-wm__plan-price { font-family: var(--bb-font-head); font-weight: 800; font-size: 1.15rem; white-space: nowrap; }
/* Botones de los cuadros: también sirven como enlaces */
.bb-wm__btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; text-decoration: none; text-align: center; }
.bb-wm__btn--main:hover { background: var(--bb-blue-2); color: var(--bb-white); }
.bb-wm__btn--main { color: var(--bb-white); }
.bb-wm__btn:focus-visible { outline: 3px solid var(--bb-yellow); outline-offset: 2px; }
.bb-wm__head { display: flex; align-items: center; gap: 1rem; margin: 0 2.75rem 1.25rem 0; }
.bb-wm__head h2 { margin: 0 0 .15rem; }
.bb-wm__head .bb-wm__lead { margin: 0; font-size: .9rem; }

/* Cuadros chicos de agregar al carrito: "Agregado" y "No es compatible" */
.bb-pop .bb-wm__panel { max-width: 480px; text-align: center; }
@media (min-width: 640px) { .bb-pop .bb-wm__panel { padding: 2.25rem 2rem 1.75rem; } }
.bb-pop h2 { margin: 0 0 .4rem; font-size: clamp(1.4rem, 4vw, 1.7rem); }
.bb-pop .bb-wm__lead { margin: 0 0 1.5rem; line-height: 1.5; }
.bb-pop__icon { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 1rem; border-radius: 50%; font-size: 1.9rem; }
.bb-pop__icon--ok { background: #e4f5ea; color: #17653a; animation: bb-pop-in .6s var(--bb-ease) both; }
.bb-pop__icon--ok i { animation: bb-pop-check .5s var(--bb-ease) .25s both; }
.bb-pop__icon--warn { background: #fff3d1; color: #a87400; animation: bb-pop-in .5s var(--bb-ease) both; }
.bb-pop__icon--shield { flex: none; width: 56px; height: 56px; margin: 0; background: var(--bb-yellow); color: var(--bb-blue); font-size: 1.5rem; }
@keyframes bb-pop-in { from { transform: scale(.4); opacity: 0; } }
@keyframes bb-pop-check { from { transform: scale(0) rotate(-30deg); opacity: 0; } }
.bb-pop__item { display: flex; align-items: center; gap: .9rem; margin: .75rem 0 1rem; padding: .8rem; border-radius: 18px; background: var(--bb-ice); color: var(--bb-ink); text-align: left; text-decoration: none; transition: background .2s; }
.bb-pop__item:hover { background: #e1eaf0; color: var(--bb-ink); }
.bb-pop__item img { flex: none; width: 72px; height: 72px; border-radius: 14px; object-fit: cover; background: var(--bb-white); }
.bb-pop__item > span { display: grid; gap: .2rem; min-width: 0; }
.bb-pop__item strong { line-height: 1.25; font-size: 1rem; }
.bb-pop__item small { color: var(--bb-muted); font-size: .8rem; line-height: 1.3; }
.bb-pop__item small i { margin-right: .3rem; color: var(--bb-blue-2); }
.bb-pop__item em { font: 800 1.05rem var(--bb-font-head); font-style: normal; color: var(--bb-blue); }
.bb-pop__sum { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0 0 1.25rem; padding: 0 .25rem; color: var(--bb-muted); font-size: .92rem; }
.bb-pop__sum strong { color: var(--bb-ink); font: 800 1.35rem var(--bb-font-head); }
.bb-pop__actions { flex-direction: column-reverse; }
@media (min-width: 480px) { .bb-pop__actions { flex-direction: row; } }
@media (prefers-reduced-motion: reduce) { .bb-pop__icon, .bb-pop__icon i { animation: none; } }
.bb-wm__badge { position: absolute; top: -.7rem; right: 1rem; padding: .2rem .65rem; border-radius: 999px; background: var(--bb-blue); color: var(--bb-white); font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.bb-wm__foot { margin-top: 1.5rem; display: grid; gap: 1rem; }
.bb-wm__foot p { margin: 0; color: var(--bb-muted); font-size: .8rem; }
.bb-wm__actions { display: flex; gap: .6rem; }
.bb-wm__btn { flex: 1; min-height: 52px; padding: .75rem 1.25rem; border: 0; border-radius: 999px; font-weight: 700; cursor: pointer; transition: transform .25s var(--bb-ease), background-color .25s, box-shadow .25s; }
.bb-wm__btn:active { transform: scale(.97); }
.bb-wm__btn--ghost { background: var(--bb-ice); color: var(--bb-blue); }
.bb-wm__btn--ghost:hover { background: #dfe8ee; }
.bb-wm__btn--main { background: var(--bb-blue); color: var(--bb-white); }
.bb-wm__btn--main:hover { background: var(--bb-blue-2); box-shadow: 0 12px 24px -10px rgba(9, 54, 77, .6); }
/* The buttons come first and take the full width; the small print goes under them. */
.bb-wm__foot { display: flex; flex-direction: column-reverse; gap: .9rem; }
.bb-wm__foot p { text-align: center; }
@media (min-width: 640px) { .bb-wm__btn { flex: 1 1 0; min-width: 0; } }
/* The warranty box has a long main label ("Agregar con protección · $ 121.000"): the buttons stack, the main one on top. */
.bb-wm__actions--stack { flex-direction: column-reverse; }
.bb-wm__actions--stack .bb-wm__btn { flex: none; width: 100%; }

/* ---------- Ficha: flechas, datos clave, barra de compra mobile ---------- */
.bb-gallery__nav {
  position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .85); color: var(--bb-blue); cursor: pointer;
  box-shadow: 0 6px 18px -6px rgba(9, 54, 77, .4); opacity: 0; transition: opacity .25s, background-color .25s, transform .25s var(--bb-ease);
}
.bb-gallery__nav--prev { left: .75rem; }
.bb-gallery__nav--next { right: .75rem; }
.bb-gallery__stage:hover .bb-gallery__nav, .bb-gallery__nav:focus-visible { opacity: 1; }
@media (hover: none) { .bb-gallery__nav { opacity: 1; } }
.bb-gallery__stage.is-zoom .bb-gallery__nav { opacity: 0; }
.bb-gallery__nav:hover { background: var(--bb-yellow); }
.bb-gallery__nav:active { transform: scale(.9); }

.bb-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .6rem; margin: 0 0 1.75rem; }
.bb-facts > div { padding: .75rem .9rem; border-radius: 16px; background: var(--bb-ice); }
.bb-facts dt { color: var(--bb-muted); font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.bb-facts dd { margin: .15rem 0 0; font-weight: 700; font-size: .95rem; }

.bb-item__warranty { color: #17653a; font-weight: 600; }

/* Seguros y asistencias: lo que se compra aparte de los productos (hoy, la garantía extendida), en el carrito y en el resumen del checkout */
.bb-insure { padding: 1rem 1.1rem 1.1rem; background: var(--bb-white); border: 1px solid rgba(9, 54, 77, .1); border-radius: var(--bb-radius); }
.bb-insure h2 { display: flex; align-items: center; gap: .55rem; margin: 0 0 .85rem; font-size: 1.1rem; }
.bb-insure h2 i { color: #17653a; }
.bb-insure__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.bb-insure__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .85rem; padding: .8rem .9rem; border-radius: 16px; background: #eef8f1; }
.bb-insure__icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #d7f0df; color: #17653a; font-size: 1.1rem; }
.bb-insure__main { display: grid; gap: .1rem; min-width: 0; line-height: 1.3; }
.bb-insure__main strong { font-size: .98rem; }
.bb-insure__main span { color: #17653a; font-weight: 600; font-size: .9rem; }
.bb-insure__main small { color: var(--bb-muted); font-size: .78rem; }
.bb-insure__main small a { color: var(--bb-ink); font-weight: 600; }
.bb-insure__price { display: grid; justify-items: end; gap: .1rem; text-align: right; }
.bb-insure__price strong { font: 800 1.1rem var(--bb-font-head); white-space: nowrap; }
.bb-insure__price small { color: var(--bb-muted); font-size: .76rem; white-space: nowrap; }
@media (max-width: 575.98px) { .bb-insure__row { grid-template-columns: auto minmax(0, 1fr); } .bb-insure__price { grid-column: 2; justify-items: start; text-align: left; } }
.bb-lines__title { display: flex; align-items: center; gap: .5rem; margin: 1.1rem 0 .6rem; padding-top: 1rem; border-top: 1px dashed rgba(9, 54, 77, .15); font-size: .95rem; }
.bb-lines__title i { color: #17653a; }
.bb-lines--insure .bb-lines__main strong { display: block; color: var(--bb-ink); }
.bb-item__warranty i { margin-right: .25rem; }

.bb-sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem var(--bb-gutter) calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid rgba(9, 54, 77, .1);
  transform: translateY(110%); transition: transform .4s var(--bb-ease);
}
.bb-sticky-buy.is-on { transform: none; }
.bb-sticky-buy small { display: block; max-width: 40vw; color: var(--bb-muted); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-sticky-buy strong { font-family: var(--bb-font-head); font-size: 1.2rem; }
.bb-sticky-buy .btn { min-height: 48px; padding-inline: 1.5rem; white-space: nowrap; }
@media (min-width: 992px) { .bb-sticky-buy { display: none; } }

/* ---------- Categoría ---------- */
.bb-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin: .5rem 0 1.25rem; }
.bb-cat-head h1 { margin: 0; font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.05; }
.bb-cat-head__desc { max-width: 60ch; margin-top: .6rem; color: var(--bb-muted); }
.bb-cat-head__desc p { margin: 0; }
.bb-cat-head__img { display: none; max-height: 140px; border-radius: var(--bb-radius); }
@media (min-width: 768px) { .bb-cat-head__img { display: block; } }
.bb-pills { display: flex; gap: .5rem; overflow-x: auto; margin: 0 0 1.25rem; padding-bottom: .25rem; scrollbar-width: none; }
.bb-pills::-webkit-scrollbar { display: none; }
.bb-pills a { flex: none; padding: .55rem 1.1rem; border-radius: 999px; background: var(--bb-ice); color: var(--bb-blue); font-weight: 700; font-size: .9rem; transition: background-color .25s, color .25s; }
.bb-pills a:hover { background: var(--bb-yellow); }

.bb-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .9rem; margin-bottom: 1.5rem; padding: .75rem; border-radius: 20px; background: var(--bb-ice); }
.bb-toolbar__compare { margin-right: auto; padding: .55rem 1rem; border-radius: 999px; background: var(--bb-white); font-weight: 700; font-size: .85rem; }
.bb-toolbar__field span { white-space: nowrap; }
.bb-toolbar__field { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: .8rem; color: var(--bb-muted); }
.bb-toolbar__field select { min-width: 9rem; border-radius: 999px; border-color: transparent; background-color: var(--bb-white); font-size: .85rem; font-weight: 600; }
/* Celular: orden y cantidad son lo de menos (chicos, en una fila, con la etiqueta arriba); los filtros y comparar mandan. */
@media (max-width: 991.98px) {
  .bb-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 6.5rem; gap: .5rem .6rem; margin-bottom: 1rem; padding: 0; border-radius: 0; background: none; }
  .bb-toolbar__compare { grid-column: 1 / -1; margin: 0; padding: .85rem 1rem; border: 1.5px solid rgba(9, 54, 77, .15); text-align: center; background: var(--bb-white); color: var(--bb-blue); }
  .has-filters .bb-toolbar__compare { display: none; }
  .bb-toolbar__field { display: grid; gap: .2rem; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
  .bb-toolbar__field select { min-width: 0; width: 100%; height: 38px; padding-block: 0; border: 1px solid rgba(9, 54, 77, .12); background-color: var(--bb-white); font-size: .8rem; font-weight: 600; text-transform: none; letter-spacing: 0; }
}

.bb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; }
.bb-grid > div > .product-thumb { height: 100%; }
.bb-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin: 2rem 0 1rem; color: var(--bb-muted); }
.pagination { gap: .35rem; margin: 0; }
.pagination .page-link { min-width: 40px; border: 0; border-radius: 999px !important; text-align: center; background: var(--bb-ice); color: var(--bb-blue); font-weight: 700; }
.pagination .active .page-link { background: var(--bb-blue); color: var(--bb-white); }
.pagination .page-link:hover { background: var(--bb-yellow); color: var(--bb-blue); }

/* ---------- Botón de arrepentimiento ---------- */
.bb-regret { max-width: 760px; margin: .5rem auto 3rem; }
.bb-regret h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.05; margin: 0 0 .5rem; }
.bb-regret__intro { color: var(--bb-muted); font-size: 1.05rem; }
.bb-regret__rights { display: flex; gap: .75rem; margin: 1rem 0 1.5rem; padding: 1rem 1.15rem; border-radius: 18px; background: var(--bb-ice); line-height: 1.55; }
.bb-regret__rights i { margin-top: .2rem; color: var(--bb-blue-2); }
.bb-regret__form fieldset { margin: 0 0 1.5rem; padding: 0; border: 0; }
.bb-regret__form legend { float: none; width: auto; margin: 0 0 .75rem; font: 700 1.15rem var(--bb-font-head); color: var(--bb-ink); }
.bb-regret__form .form-label { font-size: .85rem; font-weight: 600; }
.bb-regret__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.bb-regret__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; }
.bb-regret__foot small { color: var(--bb-muted); }
.bb-regret__foot .bb-btn-pay { width: auto; margin: 0; padding-inline: 2rem; }
.bb-regret__code { display: grid; gap: .25rem; justify-items: center; margin: 1rem 0; padding: 1rem 1.25rem; border-radius: 18px; background: var(--bb-ice); }
.bb-regret__code strong { font: 800 clamp(1.4rem, 5vw, 2rem) var(--bb-font-head); letter-spacing: .06em; color: var(--bb-blue); user-select: all; }

/* ---------- Categoría: filtros por especificaciones ---------- */
.bb-cat-layout { display: grid; gap: 1rem; }
.bb-cat-main { min-width: 0; }
.has-filters .bb-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
@media (min-width: 992px) {
  .bb-cat-layout.has-filters { grid-template-columns: 280px minmax(0, 1fr); gap: 2rem; align-items: start; }
  .bb-cat-side { position: sticky; top: calc(var(--bb-header-h) + 1rem); max-height: calc(100vh - var(--bb-header-h) - 2rem); overflow-y: auto; scrollbar-width: thin; }
}
/* Celular: el panel y su barra son hijos directos de la grilla de la página, así la barra se pega mientras baja la lista. */
@media (max-width: 991.98px) { .bb-cat-side, .bb-filters { display: contents; } }

/* Barra de acciones (celular): primero filtros, después comparar; queda pegada bajo el header. */
.bb-filters__bar {
  position: sticky; top: calc(var(--bb-header-h) + .5rem); z-index: 800; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: .5rem; padding: .4rem;
  border-radius: 22px; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 2px rgba(9, 54, 77, .06), 0 14px 32px -14px rgba(9, 54, 77, .4);
}
.bb-filters__open {
  display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 52px; padding: 0 1rem; border: 0; border-radius: 16px;
  background: var(--bb-blue); color: var(--bb-white); font: 700 1rem var(--bb-font); cursor: pointer; transition: background .2s, transform .2s var(--bb-ease);
}
.bb-filters__open:hover { background: var(--bb-blue-2); }
.bb-filters__open:active { transform: scale(.98); }
.bb-filters__badge { min-width: 24px; height: 24px; padding: 0 .4rem; display: inline-grid; place-items: center; border-radius: 999px; background: var(--bb-yellow); color: var(--bb-blue); font-size: .78rem; }
.bb-filters__compare {
  display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px; padding: 0 .8rem; border-radius: 16px;
  background: var(--bb-ice); color: var(--bb-blue); font: 700 .9rem var(--bb-font); white-space: nowrap; transition: background .2s;
}
.bb-filters__compare:hover { background: var(--bb-yellow); color: var(--bb-blue); }

/* Filtros activos a la vista fuera de la hoja (celular): una fila que se desliza. */
.bb-filters__chips { list-style: none; margin: 0; padding: 0 0 .1rem; display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; }
.bb-filters__chips::-webkit-scrollbar { display: none; }
.bb-filters__chips li { flex: none; }

.bb-filters__backdrop { position: fixed; inset: 0; z-index: 1090; background: rgba(9, 54, 77, .5); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.bb-filters.is-open .bb-filters__backdrop { opacity: 1; visibility: visible; transition-delay: 0s; }

/* Celular: hoja que sube desde abajo. */
.bb-filters__sheet {
  position: fixed; inset: auto 0 0 0; z-index: 1100; max-height: 88vh; overflow-y: auto; overscroll-behavior: contain; padding: 0 1.25rem 6rem; border-radius: 28px 28px 0 0; background: var(--bb-white);
  box-shadow: 0 -20px 60px rgba(9, 54, 77, .3); transform: translateY(105%); visibility: hidden; transition: transform .45s var(--bb-ease), visibility 0s .45s;
}
.bb-filters.is-open .bb-filters__sheet { transform: none; visibility: visible; transition-delay: 0s; }
.bb-filters__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 0 .6rem; background: var(--bb-white); }
.bb-filters__head::before { content: ""; position: absolute; top: .55rem; left: 50%; width: 42px; height: 5px; margin-left: -21px; border-radius: 999px; background: rgba(9, 54, 77, .16); }
.bb-filters__head h2 { display: flex; align-items: center; gap: .6rem; margin: 0; font-size: 1.3rem; }
.bb-filters__head h2 i { font-size: 1rem; color: var(--bb-blue-2); }
.bb-filters__close { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--bb-ice); color: var(--bb-blue); cursor: pointer; }
.bb-filters__foot {
  position: fixed; inset: auto 0 0 0; z-index: 3; display: flex; align-items: center; gap: 1rem; padding: .8rem 1.25rem calc(.8rem + env(safe-area-inset-bottom));
  background: var(--bb-white); border-top: 1px solid rgba(9, 54, 77, .08);
}
.bb-filters__foot .bb-filters__clear { flex: none; }
.bb-filters__show { flex: 1; min-height: 52px; border: 0; border-radius: 999px; background: var(--bb-blue); color: var(--bb-white); font-weight: 700; cursor: pointer; }

.bb-filters__active { display: grid; gap: .6rem; padding: .25rem 0 1rem; }
.bb-filters__active ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.bb-filters__active li a, .bb-filters__chips li a { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem; border-radius: 999px; background: var(--bb-blue); color: var(--bb-white); font-size: .8rem; font-weight: 600; white-space: nowrap; transition: background .2s; }
.bb-filters__active li a:hover, .bb-filters__chips li a:hover { background: #b3261e; color: var(--bb-white); }
.bb-filters__active li i, .bb-filters__chips li i { font-size: .7rem; }
.bb-filters__clear { font-size: .85rem; font-weight: 700; color: var(--bb-blue-2); text-decoration: underline; text-underline-offset: 3px; }

/* Grupos que se pliegan; las opciones son pastillas fáciles de tocar. */
.bb-facet { margin: 0; border-top: 1px solid rgba(9, 54, 77, .08); }
.bb-facet > summary { display: flex; align-items: center; gap: .6rem; padding: 1.05rem 0; list-style: none; cursor: pointer; font: 700 .98rem var(--bb-font); color: var(--bb-ink); }
.bb-facet > summary::-webkit-details-marker { display: none; }
.bb-facet > summary i { font-size: .72rem; color: var(--bb-muted); transition: transform .25s var(--bb-ease); }
.bb-facet[open] > summary i { transform: rotate(180deg); }
.bb-facet__name { flex: 1; min-width: 0; }
.bb-facet__sel { min-width: 22px; height: 22px; padding: 0 .35rem; display: inline-grid; place-items: center; border-radius: 999px; background: var(--bb-yellow); color: var(--bb-blue); font-size: .72rem; }
.bb-facet ul { list-style: none; margin: 0; padding: 0 0 1.1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.bb-facet__opt {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 42px; padding: .35rem .95rem; border: 1.5px solid rgba(9, 54, 77, .14); border-radius: 999px;
  background: var(--bb-white); color: var(--bb-ink); font-size: .92rem; transition: background .2s, border-color .2s, color .2s;
}
.bb-facet__opt:hover { border-color: var(--bb-blue); color: var(--bb-ink); }
.bb-facet__box { display: none; font-size: .7rem; color: var(--bb-yellow); }
.bb-facet__opt.is-on { border-color: var(--bb-blue); background: var(--bb-blue); color: var(--bb-white); }
.bb-facet__opt.is-on .bb-facet__box { display: inline-block; }
.bb-facet__opt.is-on .bb-facet__label { font-weight: 700; }
.bb-facet__label { min-width: 0; }
.bb-facet__count { font-size: .76rem; color: var(--bb-muted); }
.bb-facet__opt.is-on .bb-facet__count { color: rgba(255, 255, 255, .7); }
.bb-facet__opt:focus-visible, .bb-facet > summary:focus-visible, .bb-filters__open:focus-visible, .bb-filters__compare:focus-visible, .bb-filters__show:focus-visible { outline: 3px solid var(--bb-yellow); outline-offset: 2px; }

@media (min-width: 992px) {
  .bb-filters__bar, .bb-filters__chips, .bb-filters__backdrop, .bb-filters__close, .bb-filters__foot { display: none; }
  .bb-filters__sheet {
    position: static; max-height: none; overflow: visible; padding: .35rem 1.35rem .5rem; border: 0; border-radius: 24px; background: var(--bb-white);
    box-shadow: 0 1px 2px rgba(9, 54, 77, .05), 0 24px 48px -28px rgba(9, 54, 77, .4); transform: none; visibility: visible; transition: none;
  }
  .bb-filters__head { position: static; padding: 1rem 0 .35rem; }
  .bb-filters__head::before { display: none; }
  .bb-filters__head h2 { font-size: 1.15rem; }
  .bb-filters__active { padding-top: .5rem; }
  .bb-facet:first-of-type { border-top: 0; }
}

/* ---------- Repuestos: buscador por modelo y compatibilidad ---------- */
/* Sin equipo elegido: una tarjeta clara con dos pasos (tipo de equipo, modelo) y la ayuda siempre a la vista. */
.bb-finder { margin: 0 0 1.75rem; padding: 1.5rem; border: 1px solid rgba(9, 54, 77, .1); border-radius: var(--bb-radius); background: var(--bb-white); box-shadow: 0 1px 2px rgba(9, 54, 77, .04), 0 24px 48px -32px rgba(9, 54, 77, .35); }
@media (min-width: 768px) { .bb-finder { padding: 1.9rem 2rem; } }
.bb-finder__head { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.bb-finder__icon { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--bb-yellow); color: var(--bb-blue); font-size: 1.3rem; }
.bb-finder h2 { margin: 0 0 .25rem; font-size: clamp(1.25rem, 3vw, 1.65rem); line-height: 1.15; }
.bb-finder__head p { margin: 0; color: var(--bb-muted); line-height: 1.5; }
.bb-finder__form { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; align-items: end; }
@media (min-width: 768px) { .bb-finder__form { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) auto; gap: 1rem; } }
.bb-finder__field { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: .6rem; row-gap: .35rem; align-items: center; margin: 0; }
.bb-finder__num { grid-row: 1; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--bb-blue); color: var(--bb-white); font: 700 .8rem var(--bb-font); }
.bb-finder__label { font-size: .85rem; font-weight: 700; color: var(--bb-ink); }
.bb-finder__field select { grid-column: 1 / -1; width: 100%; height: 54px; padding: 0 2.2rem 0 1rem; border: 1.5px solid rgba(9, 54, 77, .18); border-radius: 14px; background-color: var(--bb-ice); color: var(--bb-ink); font-weight: 600; transition: border-color .2s, background-color .2s; }
.bb-finder__field select:hover { border-color: var(--bb-blue); }
/* Model picker (bambi.js): a search box with a magnifier and the models that match under it. Without JavaScript the select above is used. */
.bb-combo { position: relative; grid-column: 1 / -1; }
.bb-combo__icon { position: absolute; left: 1rem; top: 27px; transform: translateY(-50%); color: var(--bb-blue); pointer-events: none; }
.bb-combo__input { width: 100%; height: 54px; padding: 0 2.9rem 0 2.8rem; border: 1.5px solid rgba(9, 54, 77, .18); border-radius: 14px; background: var(--bb-ice); color: var(--bb-ink); font: 600 1rem var(--bb-font); transition: border-color .2s, background-color .2s; }
.bb-combo__input::placeholder { color: var(--bb-muted); font-weight: 500; }
.bb-combo__input:hover { border-color: var(--bb-blue); }
.bb-combo__input:focus-visible { outline: 3px solid var(--bb-yellow); outline-offset: 2px; background: var(--bb-white); }
.bb-combo__clear { position: absolute; right: .45rem; top: 27px; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--bb-muted); cursor: pointer; }
.bb-combo__clear[hidden] { display: none; }
.bb-combo__clear:hover, .bb-combo__clear:focus-visible { background: var(--bb-yellow); color: var(--bb-blue); }
.bb-combo__list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + .4rem); margin: 0; padding: .35rem; list-style: none; max-height: min(320px, 45vh); overflow-y: auto; overscroll-behavior: contain; border: 1px solid rgba(9, 54, 77, .12); border-radius: 16px; background: var(--bb-white); box-shadow: 0 24px 50px -20px rgba(9, 54, 77, .45); }
.bb-combo__list[hidden] { display: none; }
.bb-combo.is-up .bb-combo__list { top: auto; bottom: calc(100% + .4rem); }
.bb-combo__opt { display: grid; gap: .1rem; padding: .6rem .8rem; border-radius: 12px; color: var(--bb-ink); font-weight: 600; font-size: .95rem; line-height: 1.3; cursor: pointer; }
.bb-combo__opt small { color: var(--bb-muted); font-weight: 500; font-size: .75rem; }
.bb-combo__opt:hover, .bb-combo__opt[aria-selected="true"] { background: var(--bb-ice); }
.bb-combo__opt.is-current { box-shadow: inset 3px 0 0 var(--bb-yellow); }
.bb-combo__note { padding: .7rem .8rem; color: var(--bb-muted); font-size: .85rem; line-height: 1.4; }
.bb-finder__field select:focus-visible, .bb-finder__go:focus-visible, .bb-finder__ghost:focus-visible { outline: 3px solid var(--bb-yellow); outline-offset: 2px; }
.bb-finder__go { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 54px; padding: 0 1.6rem; border: 0; border-radius: 999px; background: var(--bb-blue); color: var(--bb-white); font-weight: 700; cursor: pointer; transition: transform .25s var(--bb-ease), background .25s, box-shadow .25s; }
.bb-finder__go:hover { background: var(--bb-blue-2); transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(9, 54, 77, .6); }
.bb-finder__hint { display: flex; gap: .6rem; margin: 1.1rem 0 0; padding: .8rem 1rem; border-radius: 14px; background: #fff7dd; color: #5d4700; font-size: .85rem; line-height: 1.5; }
.bb-finder__hint i { margin-top: .15rem; color: #b8860b; }

/* Con equipo elegido: una barra delgada con el equipo y dos pestañas que dicen qué se está mostrando. */
.bb-finder--set { padding: 0; overflow: visible; background: var(--bb-ice); border-color: transparent; box-shadow: none; }
.bb-finder__bar { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.1rem; padding: 1rem 1.25rem; }
.bb-finder--set .bb-finder__icon { width: 46px; height: 46px; border-radius: 14px; background: var(--bb-blue); color: var(--bb-yellow); }
.bb-finder__equipment { flex: 1 1 220px; min-width: 0; display: grid; }
.bb-finder__equipment small { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bb-muted); }
.bb-finder__equipment strong { font: 700 1.15rem/1.2 var(--bb-font-head); color: var(--bb-ink); }
.bb-finder__equipment span { font-size: .85rem; color: var(--bb-muted); }
.bb-finder__actions { position: relative; display: flex; align-items: center; gap: .5rem; }
.bb-finder__ghost { display: inline-flex; align-items: center; min-height: 42px; padding: 0 1.1rem; border: 1.5px solid rgba(9, 54, 77, .2); border-radius: 999px; background: var(--bb-white); color: var(--bb-blue); font-size: .85rem; font-weight: 700; cursor: pointer; list-style: none; transition: border-color .2s, background .2s; }
.bb-finder__ghost::-webkit-details-marker { display: none; }
.bb-finder__ghost:hover { border-color: var(--bb-blue); color: var(--bb-blue); }
.bb-finder__ghost--quiet { border-color: transparent; background: transparent; color: var(--bb-muted); text-decoration: underline; text-underline-offset: 3px; }
.bb-finder__change[open] > summary { border-color: var(--bb-blue); background: var(--bb-blue); color: var(--bb-white); }
.bb-finder__pop { position: absolute; z-index: 20; top: calc(100% + .6rem); right: 0; width: min(420px, 90vw); padding: 1.25rem; border-radius: 20px; background: var(--bb-white); box-shadow: 0 30px 70px -20px rgba(9, 54, 77, .45); }
@media (max-width: 767.98px) { .bb-finder__actions { width: 100%; } .bb-finder__pop { position: fixed; inset: auto 0 0 0; width: auto; border-radius: 24px 24px 0 0; } }
.bb-finder__pop .bb-finder__form { grid-template-columns: minmax(0, 1fr); }
.bb-finder__tabs { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1.25rem 1rem; }
.bb-finder__tabs a { display: inline-flex; align-items: center; gap: .6rem; padding: .6rem 1.15rem; border-radius: 999px; background: var(--bb-white); color: var(--bb-muted); font-size: .88rem; font-weight: 700; transition: background .2s, color .2s; }
.bb-finder__tabs a b { min-width: 24px; height: 24px; padding: 0 .4rem; display: inline-grid; place-items: center; border-radius: 999px; background: var(--bb-ice); font-size: .75rem; }
.bb-finder__tabs a:hover { color: var(--bb-blue); }
.bb-finder__tabs a.is-on { background: var(--bb-blue); color: var(--bb-white); }
.bb-finder__tabs a.is-on b { background: var(--bb-yellow); color: var(--bb-blue); }

/* En Repuestos no hace falta comparar: queda el orden y la cantidad. Los que no sirven para tu equipo se apagan. */
.bb-toolbar--lean .bb-toolbar__compare { display: none; }
.product-thumb:has(.bb-badge-compat--no) { opacity: .6; }
.product-thumb:has(.bb-badge-compat--no):hover { opacity: 1; }

/* Aviso de compatibilidad (ficha) */
.bb-buybox__compat { margin: 0 0 1rem; }
.bb-compat { display: flex; gap: .85rem; padding: .9rem 1rem; border: 1.5px solid transparent; border-radius: 18px; }
.bb-compat__icon { flex: none; font-size: 1.35rem; line-height: 1.2; }
.bb-compat__body { min-width: 0; display: grid; gap: .2rem; }
.bb-compat__body strong { font-size: .98rem; line-height: 1.3; }
.bb-compat__body p { margin: 0; font-size: .82rem; line-height: 1.45; opacity: .85; }
.bb-compat--yes, .bb-compat--universal { background: #e7f6ec; border-color: #b9e2c6; color: #17653a; }
.bb-compat--no { background: #fdecea; border-color: #f3c0bb; color: #8a1f17; }
.bb-compat--unknown { background: var(--bb-ice); border-color: rgba(9, 54, 77, .12); color: var(--bb-ink); }
.bb-compat--unknown .bb-compat__icon { color: var(--bb-blue-2); }
.bb-compat__links { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.bb-compat__cta { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 1rem; border-radius: 999px; background: #8a1f17; color: var(--bb-white); font-size: .82rem; font-weight: 700; text-decoration: none; transition: background .2s; }
.bb-compat__cta:hover { background: #6e180f; color: var(--bb-white); opacity: 1; }
.bb-compat__link { margin-top: .15rem; font-size: .85rem; font-weight: 700; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.bb-compat__cta:hover, .bb-compat__link:hover { color: inherit; opacity: .8; }
.bb-compat__form { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; margin-top: .5rem; }
.bb-compat__form select { width: 100%; height: 46px; padding: 0 2rem 0 .9rem; border: 1px solid rgba(9, 54, 77, .2); border-radius: 12px; background-color: var(--bb-white); font-weight: 600; font-size: .9rem; }
.bb-compat__form button { min-height: 44px; border: 0; border-radius: 999px; background: var(--bb-blue); color: var(--bb-white); font-weight: 700; cursor: pointer; transition: background .2s; }
.bb-compat__form button:hover { background: var(--bb-blue-2); }
.bb-compat__models { margin-top: .35rem; font-size: .82rem; }
.bb-compat__models summary { cursor: pointer; font-weight: 700; }
.bb-compat__models ul { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .2rem; max-height: 9rem; overflow-y: auto; }
.bb-compat__models small { opacity: .75; }
/* "Hay N repuestos para este equipo": un renglón chico, no una tarjeta. */
a.bb-compat--parts { align-items: center; gap: .55rem; padding: .5rem .9rem; border-radius: 12px; background: #fff7dd; border-color: #f1dd9a; color: var(--bb-ink); font-size: .82rem; font-weight: 600; transition: background .2s, border-color .2s; }
a.bb-compat--parts:hover { background: #fdf0c4; border-color: #e5c966; color: var(--bb-ink); }
a.bb-compat--parts .bb-compat__mini { color: var(--bb-blue-2); font-size: .85rem; }
a.bb-compat--parts .bb-compat__go { font-size: .75rem; }
.bb-compat__go { margin-left: auto; }

/* Insignia en las tarjetas */
.product-thumb .image { position: relative; }
.bb-badge-compat { position: absolute; top: .65rem; left: .65rem; z-index: 2; padding: .28rem .7rem; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; box-shadow: 0 6px 16px -8px rgba(9, 54, 77, .5); }
.bb-badge-compat--yes { background: #17653a; color: var(--bb-white); }
.bb-badge-compat--universal { background: var(--bb-blue); color: var(--bb-white); }
.bb-badge-compat--no { background: #fdecea; color: #8a1f17; }

/* ---------- Buscador inteligente: sugerencias y resultados ---------- */
.bb-suggest-wrap { position: relative; min-width: 0; }
.bb-suggest-wrap > .form-control { width: 100%; }
.bb-suggest {
  position: absolute; top: calc(100% + .6rem); left: 0; right: 0; z-index: 1300; max-height: min(70vh, 520px); overflow-y: auto; overscroll-behavior: contain;
  padding: .6rem; border-radius: 22px; background: var(--bb-white); color: var(--bb-ink); box-shadow: 0 30px 70px -20px rgba(9, 54, 77, .45); animation: bb-suggest-in .25s var(--bb-ease);
}
@keyframes bb-suggest-in { from { opacity: 0; transform: translateY(-6px); } }
.bb-suggest[hidden] { display: none; }
.bb-suggest__chips { list-style: none; margin: 0; padding: .35rem .4rem .5rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.bb-suggest__chips li { padding: .25rem .7rem; border-radius: 999px; background: var(--bb-blue); color: var(--bb-white); font-size: .75rem; font-weight: 600; }
.bb-suggest__note { margin: 0; padding: .1rem .6rem .5rem; font-size: .78rem; color: #8a5a00; }
.bb-suggest__empty { margin: 0; padding: 1rem .75rem; color: var(--bb-muted); font-size: .9rem; }
.bb-suggest__list { display: grid; gap: .1rem; }
.bb-suggest__item { display: flex; align-items: center; gap: .85rem; padding: .55rem .6rem; border-radius: 14px; color: var(--bb-ink); transition: background .2s; }
.bb-suggest__item:hover, .bb-suggest__item:focus-visible, .bb-suggest__all:hover, .bb-suggest__all:focus-visible { background: var(--bb-ice); outline: 0; color: var(--bb-ink); }
.bb-suggest__item img { flex: none; width: 60px; height: 34px; object-fit: cover; border-radius: 8px; background: var(--bb-ice); }
.bb-suggest__text { flex: 1; min-width: 0; display: grid; }
.bb-suggest__text strong { font-size: .9rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bb-suggest__text small { font-size: .75rem; color: var(--bb-muted); }
.bb-suggest__price { flex: none; font: 800 .9rem var(--bb-font-head); }
.bb-suggest__all { display: block; margin-top: .35rem; padding: .7rem .75rem; border-radius: 14px; font-size: .85rem; font-weight: 700; color: var(--bb-blue-2); text-align: center; }

/* Página de resultados */
.bb-sr-head { margin: .5rem 0 1.25rem; }
.bb-sr-head h1 { margin: 0 0 1rem; font-size: clamp(1.7rem, 5vw, 2.6rem); line-height: 1.1; }
.bb-sr-form { display: flex; gap: .6rem; max-width: 760px; }
.bb-sr-form .bb-suggest-wrap { flex: 1; }
.bb-sr-form .form-control { height: 56px; padding-left: 3rem; border-radius: 999px; border: 1.5px solid rgba(9, 54, 77, .15); font-size: 1rem; }
.bb-sr-form__icon { position: absolute; left: 1.15rem; top: 50%; z-index: 2; transform: translateY(-50%); color: var(--bb-muted); }
.bb-sr-form__go { flex: none; padding: 0 1.6rem; border: 0; border-radius: 999px; background: var(--bb-blue); color: var(--bb-white); font-weight: 700; cursor: pointer; transition: background .2s; }
.bb-sr-form__go:hover { background: var(--bb-blue-2); }
@media (max-width: 575.98px) { .bb-sr-form__go { display: none; } }

/* ¿Entra en mi cocina?: las medidas del espacio, que filtran de verdad. */
.bb-fit { margin: 0 0 1.25rem; padding: 1.15rem 1.25rem; border-radius: 22px; background: var(--bb-ice); border: 1.5px solid transparent; transition: border-color .25s, background .25s; }
.bb-fit.is-on { background: #fff7dd; border-color: #f1dd9a; }
.bb-fit__head { display: flex; align-items: flex-start; gap: .9rem; margin-bottom: .9rem; }
.bb-fit__icon { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--bb-blue); color: var(--bb-yellow); font-size: 1.1rem; }
.bb-fit h2 { margin: 0 0 .15rem; font-size: 1.15rem; }
.bb-fit__head p { margin: 0; font-size: .85rem; line-height: 1.45; color: var(--bb-muted); }
.bb-fit__form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; align-items: end; }
.bb-fit__field { display: grid; gap: .35rem; margin: 0; min-width: 0; font-size: .78rem; font-weight: 700; color: var(--bb-ink); }
.bb-fit__field i { margin-right: .2rem; color: var(--bb-blue-2); }
.bb-fit__input { position: relative; display: block; }
.bb-fit__input input { width: 100%; height: 50px; padding: 0 2.6rem 0 .9rem; border: 1.5px solid rgba(9, 54, 77, .18); border-radius: 14px; background: var(--bb-white); color: var(--bb-ink); font: 700 1rem var(--bb-font); transition: border-color .2s; }
.bb-fit__input input:hover { border-color: var(--bb-blue); }
.bb-fit__input input:focus-visible { outline: 3px solid var(--bb-yellow); outline-offset: 2px; border-color: var(--bb-blue); }
.bb-fit__input input::placeholder { color: rgba(9, 54, 77, .3); font-weight: 600; }
.bb-fit__input em { position: absolute; right: .9rem; top: 50%; transform: translateY(-50%); font-style: normal; font-size: .8rem; font-weight: 600; color: var(--bb-muted); pointer-events: none; }
.bb-fit__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.1rem; }
.bb-fit__go { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 50px; padding: 0 1.6rem; border: 0; border-radius: 999px; background: var(--bb-blue); color: var(--bb-white); font-weight: 700; cursor: pointer; transition: background .2s, transform .25s var(--bb-ease); }
.bb-fit__go:hover { background: var(--bb-blue-2); transform: translateY(-2px); }
.bb-fit__go:focus-visible, .bb-fit__clear:focus-visible { outline: 3px solid var(--bb-yellow); outline-offset: 2px; }
.bb-fit__clear { font-size: .85rem; font-weight: 700; color: var(--bb-blue-2); text-decoration: underline; text-underline-offset: 3px; }
.bb-fit__error { margin: .75rem 0 0; padding: .6rem .9rem; border-radius: 12px; background: #fdecea; color: #8a1f17; font-size: .85rem; font-weight: 600; }
.bb-fit__note { margin: .8rem 0 0; font-size: .75rem; color: var(--bb-muted); }
/* En el celular se ahorra altura: la explicación y la nota quedan para pantallas más grandes. */
@media (max-width: 767.98px) { .bb-fit__head p, .bb-fit__note { display: none; } .bb-fit__head { align-items: center; margin-bottom: .75rem; } .bb-fit__field { font-size: .72rem; } }
@media (min-width: 768px) {
  .bb-fit { padding: 1.35rem 1.6rem; }
  .bb-fit__form { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
  .bb-fit__actions { grid-column: auto; flex-wrap: nowrap; }
}
.bb-sr-understood li a.is-room { background: #17653a; }
.bb-sr-understood li a.is-room i:first-child { font-size: .8rem; }

.bb-sr-understood { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin: 0 0 1rem; }
.bb-sr-understood > span { font-size: .85rem; font-weight: 600; color: var(--bb-muted); }
.bb-sr-understood ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.bb-sr-understood li a { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .9rem; border-radius: 999px; background: var(--bb-blue); color: var(--bb-white); font-size: .85rem; font-weight: 600; transition: background .2s; }
.bb-sr-understood li a:hover { background: #b3261e; color: var(--bb-white); }
.bb-sr-understood li i { font-size: .7rem; }
.bb-sr-restore { font-size: .85rem; font-weight: 700; color: var(--bb-blue-2); text-decoration: underline; text-underline-offset: 3px; }
.bb-sr-notice { margin: 0 0 .75rem; padding: .7rem 1rem; border-radius: 14px; font-size: .9rem; line-height: 1.45; }
.bb-sr-notice--info { background: var(--bb-ice); color: var(--bb-blue); }
.bb-sr-notice--warn { background: #fff7dd; color: #6b5200; }
.bb-sr-notice--muted { padding-inline: 0; color: var(--bb-muted); font-size: .8rem; }
.bb-sr-count { margin-right: auto; padding-left: .5rem; }

.bb-sr-item { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.bb-sr-item > .product-thumb { flex: 1; }
.bb-sr-why { list-style: none; margin: 0; padding: 0 .25rem; display: flex; flex-wrap: wrap; gap: .3rem; }
.bb-sr-why li { padding: .2rem .6rem; border-radius: 999px; background: var(--bb-ice); color: var(--bb-muted); font-size: .72rem; font-weight: 600; }
.bb-sr-why__tag { background: #e7f6ec !important; color: #17653a !important; }
.bb-sr-why__tag i { margin-right: .2rem; font-size: .6rem; }
.bb-sr-pages { display: flex; justify-content: center; gap: .4rem; margin: 2rem 0; }
.bb-sr-pages a { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 999px; background: var(--bb-ice); color: var(--bb-blue); font-weight: 700; }
.bb-sr-pages a.is-on, .bb-sr-pages a:hover { background: var(--bb-blue); color: var(--bb-white); }
.bb-sr-tips { max-width: 760px; margin: 1rem 0 2rem; }
.bb-sr-tips h2 { font-size: 1.4rem; }
.bb-sr-tips p { color: var(--bb-muted); }
.bb-sr-examples { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.bb-sr-examples a { display: inline-flex; align-items: center; gap: .6rem; padding: .65rem 1.1rem; border: 1.5px solid rgba(9, 54, 77, .15); border-radius: 999px; color: var(--bb-blue); font-weight: 600; font-size: .9rem; transition: border-color .2s, background .2s; }
.bb-sr-examples a:hover { border-color: var(--bb-blue); background: var(--bb-ice); }
.bb-sr-examples i { font-size: .8rem; color: var(--bb-muted); }

/* Pie de la caja de compra: favoritos, comparar, repuestos y confianza en un solo bloque chico. */
.bb-buybox__foot { display: grid; gap: .5rem; margin-top: .25rem; }
.bb-buybox__foot .bb-pdp__aux { margin: 0; gap: 0 1.25rem; }
.bb-buybox__foot .bb-link { padding: .2rem 0; }
.bb-buybox__foot .bb-trust { margin: 0; grid-auto-flow: column; justify-content: center; gap: 1.1rem; font-size: .78rem; }

/* Notebook (pantallas bajas): todo lo importante (título, precio, promo, cantidad y botón) entra sin desplazar la caja. */
@media (min-width: 992px) {
  .bb-buybox { padding: 1.25rem 1.35rem; }
  .bb-buybox .bb-chips { gap: .2rem .9rem; margin: 0 0 .4rem; font-size: .75rem; }
  .bb-buybox .bb-chips li { padding: 0; background: none; font-weight: 600; }
  .bb-buybox .bb-chips .bb-chips__stock { color: #17653a; background: none; }
  .bb-buybox .bb-chips .bb-chips__stock::before { content: ""; display: inline-block; width: .5rem; height: .5rem; margin-right: .35rem; border-radius: 50%; background: #2fa263; }
}
@media (min-width: 992px) and (max-height: 820px) {
  :root { --bb-header-h: 84px; }
  .bb-pdp__info { top: calc(var(--bb-header-h) + .75rem); max-height: calc(100vh - var(--bb-header-h) - 1.5rem); }
  .bb-buybox { padding: 1rem 1.2rem; }
  .bb-buybox h1 { font-size: 1.45rem; margin-bottom: .25rem; }
  .bb-buybox .bb-price { margin: .5rem 0 .7rem; gap: .2rem; }
  .bb-buybox .bb-price__now { font-size: 2.1rem; }
  .bb-buybox .bb-price--offer .bb-price__now { font-size: 2.3rem; }
  .bb-buybox .bb-price__was { font-size: .95rem; }
  .bb-buybox__promos { margin-bottom: .75rem; }
  .bb-buybox .bb-fin--single { padding: .55rem .8rem; }
  .bb-buybox .bb-buy { margin: .5rem 0; gap: .5rem; }
  .bb-buybox__foot { gap: .35rem; }
}
@media (min-width: 992px) and (max-height: 700px) {
  .bb-buybox .bb-trust { display: none; }
  .bb-buybox h1 { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .bb-item, .bb-step, .bb-success, .bb-success__icon { animation: none; }
  .bb-gallery__img, .bb-lb, .bb-lb__stage img, .bb-wm, .bb-wm__panel, .bb-sticky-buy { transition: none; }
  .is-loading::after { animation: none; }
  .bb-btn-pay, .bb-option, .bb-qty__btn, .bb-filters__sheet, .bb-filters__backdrop, .bb-facet__opt, .bb-facet__box { transition: none; }
}

/* ---------- Página no encontrada (404) ---------- */
.bb-404 { padding-bottom: 3rem; }
.bb-404__card { display: grid; justify-items: center; gap: 1rem; max-width: 760px; margin: 2rem auto 0; padding: clamp(1.75rem, 5vw, 3.25rem) clamp(1.25rem, 4vw, 3rem); border-radius: var(--bb-radius-lg); background: var(--bb-ice); text-align: center; }
.bb-404__code { display: flex; align-items: center; justify-content: center; gap: .6rem; margin: 0; font: 800 clamp(5rem, 16vw, 8rem)/1 var(--bb-font-head); letter-spacing: -.04em; color: var(--bb-blue); }
.bb-404__fridge { width: clamp(3.4rem, 10.5vw, 5.2rem); height: auto; transform: rotate(-6deg); filter: drop-shadow(0 14px 18px rgba(9, 54, 77, .25)); }
.bb-404 h1 { margin: 0; font-size: clamp(1.6rem, 4.5vw, 2.3rem); line-height: 1.1; }
.bb-404__text { max-width: 46ch; margin: 0; color: var(--bb-muted); font-size: 1.02rem; line-height: 1.55; }
.bb-404__search { display: flex; gap: .6rem; width: 100%; max-width: 520px; margin-top: .5rem; }
.bb-404__search .bb-suggest-wrap { flex: 1; }
.bb-404__search .form-control { min-height: 52px; padding-inline: 1.25rem; border: 1.5px solid rgba(9, 54, 77, .15); border-radius: 999px; font-size: .98rem; }
.bb-404__search .bb-btn { flex: none; display: inline-flex; align-items: center; gap: .5rem; border: 0; cursor: pointer; }
.bb-404__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: .75rem; }
.bb-404__actions .bb-btn { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; }
@media (max-width: 575.98px) { .bb-404__search { flex-direction: column; } .bb-404__search .bb-btn { justify-content: center; } }
