/* Fuente Inter. Se carga aquí porque el subcomponente 'style css > fuentes y letras' no se encuentra en producción.
   @import debe ir antes que cualquier otra regla. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* =====================================================================
   TEMA LA FARMA — amarillo y negro
   Archivo NUEVO: lafarma.css (se carga al final, después de variable.css)

   1. Para ajustar los colores de la marca, edita SOLO el bloque "MARCA".
   2. Regla de legibilidad: el amarillo nunca se usa como color de TEXTO sobre fondo blanco
      (no se lee). Va como fondo (con texto negro) o como texto sobre negro.
   ===================================================================== */

:root {
    /* ---------- MARCA (cambia aquí) ---------- */
    --lf-yellow: #FEFE01;         /* amarillo La Farma */
    --lf-yellow-dark: #E5E500;    /* hover sobre amarillo */
    --lf-yellow-soft: #FFFFCC;    /* fondos suaves */
    --lf-black: #111111;          /* cabecera, footer, textos fuertes */
    --lf-black-2: #1C1C1C;        /* barra de categorías */
    --lf-black-line: #2C2C2C;     /* líneas sobre negro */

    /* ---------- neutros ---------- */
    --lf-ink: #111111;
    --lf-text: #3D3D3D;
    --lf-muted: #707070;
    --lf-line: #E6E6E6;
    --lf-surface: #F5F5F5;
    --lf-white: #FFFFFF;
    --lf-ok: #1E8A5B;
    --lf-warn: #9A6A00;
    --lf-danger: #C62828;

    --lf-radius: 12px;
    --lf-radius-sm: 8px;
    --lf-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 4px 16px rgba(0, 0, 0, .06);
    --lf-shadow-hover: 0 2px 4px rgba(0, 0, 0, .08), 0 12px 28px rgba(0, 0, 0, .12);
    --lf-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    /* ---------- variables de la plantilla Bsale (se reasignan al tema) ---------- */
    --font-body-family: var(--lf-font);
    --font-title-family: var(--lf-font);
    --font-bold: 700;
    --font-regular: 400;
    --font-light: 400;
    --body-txt-default-color: var(--lf-text);
    --body-txt-light: var(--lf-muted);
    --body-bg: var(--lf-white);
    --element-bg: var(--lf-white);

    --highlight-color: var(--lf-black);
    --highlight-contrast: var(--lf-yellow);
    --primary-color: var(--lf-black);
    --primary-contrast: var(--lf-yellow);
    --primary-hover-color: var(--lf-yellow);
    --primary-hover-contrast: var(--lf-black);
    --secondary-color: var(--lf-black);
    --secondary-contrast: #fff;
    --secondary-hover-color: var(--lf-yellow);
    --secondary-hover-contrast: var(--lf-black);
    --danger-color: var(--lf-danger);
    --discount-bg-color: var(--lf-black);
    --discount-txt-color: var(--lf-yellow);

    --default-border-radius: var(--lf-radius);
    --product-collection-border-radius: var(--lf-radius);
    --btn-border-radius: var(--lf-radius-sm);
    --btn-border: 1px solid;

    --breadcrumb-bg-color: transparent;
    --header-bg: var(--lf-black);
    --header-bg-home: var(--lf-black);
    --header-search-bg: #fff;
    --header-search-border: #fff;
    --icon-header-color: #fff;
    --icon-header-bg: transparent;
    --icon-header-hover-bg: var(--lf-black-2);
    --icon-header-hover-color: var(--lf-yellow);
    --lv1-hover-color: var(--lf-black);
    --lv1-hover-bg: var(--lf-yellow-soft);
    --lv2-hover-color: var(--lf-black);
    --lv2-hover-bg: var(--lf-yellow-soft);
    --lv3-hover-txt-color: var(--lf-black);
    --home-title-color: var(--lf-ink);
    --title-transform: none;
    --collection-brand-color: var(--lf-muted);
    --footer-txt-color: #BDBDBD;
    --footer-link-txt-color: #BDBDBD;
    --footer-link-hover-txt-color: var(--lf-yellow);
}

/* =====================================================================
   BASE
   ===================================================================== */
body {
    font-family: var(--lf-font);
    color: var(--lf-text);
    background: var(--lf-white);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--lf-font);
    color: var(--lf-ink);
    letter-spacing: -.01em;
}
a { color: var(--lf-ink); }
a:hover { color: var(--lf-ink); }
:focus-visible { outline: 2px solid var(--lf-black); outline-offset: 2px; }
.bs-main.bs-main { padding-bottom: 4rem; }

/* contenedor de imágenes cuadradas (respaldo por si bsale5.css no lo define) */
.bs-img-square { position: relative; display: block; overflow: hidden; }
.bs-img-square::after { content: ""; display: block; }
.bs-img-square > picture,
.bs-img-square > img { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.bs-img-square picture img { width: 100%; height: 100%; object-fit: contain; }

/* botones: principal amarillo con texto negro; al pasar el mouse se invierte a negro */
.btn { font-family: var(--lf-font); font-weight: 700; border-radius: var(--lf-radius-sm); }
.btn-primary, .lf-btn.btn-primary {
    background: var(--lf-yellow); border: 1px solid var(--lf-yellow); color: var(--lf-black);
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active,
.lf-btn.btn-primary:hover {
    background: var(--lf-black) !important; border-color: var(--lf-black) !important; color: var(--lf-yellow) !important;
}
.btn-secondary {
    background: #fff; border: 1px solid var(--lf-black); color: var(--lf-black);
}
.btn-secondary:hover { background: var(--lf-black); border-color: var(--lf-black); color: var(--lf-yellow); }
.lf-btn { display: inline-flex; align-items: center; justify-content: center; gap: .25rem; padding: .55rem 1rem; font-size: .9rem; }
.lf-btn--lg { padding: .8rem 1.25rem; font-size: 1rem; }
.lf-btn--outline { background: #fff; border: 1px solid var(--lf-black); color: var(--lf-black); }
.lf-btn--outline:hover { background: var(--lf-black); color: var(--lf-yellow); }
.lf-btn--disabled, .lf-btn--disabled:hover { background: var(--lf-surface); border: 1px solid var(--lf-line); color: var(--lf-muted); cursor: not-allowed; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* =====================================================================
   BARRA SUPERIOR (amarilla)
   ===================================================================== */
.lf-topbar { background: var(--lf-yellow); color: var(--lf-black); font-size: .8rem; font-weight: 600; }
.lf-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 34px; }
.lf-topbar__list { display: flex; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.lf-topbar__list li { display: flex; align-items: center; gap: .45rem; }
.lf-topbar__list i { font-size: .8rem; }
.lf-topbar__phone { color: var(--lf-black); font-weight: 700; display: flex; align-items: center; gap: .4rem; }
.lf-topbar__phone:hover { color: var(--lf-black); text-decoration: underline; }

/* =====================================================================
   CABECERA (negra)
   ===================================================================== */
.bs-header.lf-header {
    position: sticky; top: 0; z-index: 1030;
    background: var(--lf-black); border: 0;
    margin: 0; padding: 0; border-radius: 0; box-shadow: 0 2px 10px rgba(0,0,0,.18);
    left: auto; transform: none; width: 100%;
}
.lf-header :focus-visible { outline-color: var(--lf-yellow); }
.lf-header__inner {
    display: grid; align-items: center; gap: .75rem 1.25rem;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "menu logo actions" "search search search";
    padding-top: .7rem; padding-bottom: .8rem;
}
.lf-header__menu { grid-area: menu; }
.lf-header__logo { grid-area: logo; display: flex; align-items: center; }
/* el fondo negro del logo se funde con la cabecera aunque no sea exactamente el mismo negro */
.lf-header__logo img, .lf-footer .bs-footer__logo img { mix-blend-mode: lighten; }
.lf-header__logo img { height: 40px; width: auto; max-width: 190px; object-fit: contain; object-position: left center; }
.lf-search { grid-area: search; }
.lf-header__actions { grid-area: actions; display: flex; align-items: center; gap: .25rem; justify-self: end; }

.lf-header .lf-header__menu.navbar-toggler {
    width: 44px; height: 44px; min-width: 44px; padding: 0; border: 0; border-radius: 10px;
    color: #fff; background: transparent; display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
}
.lf-header .lf-header__menu.navbar-toggler:hover { background: var(--lf-black-2); color: var(--lf-yellow); }

.lf-header__action {
    display: flex; align-items: center; gap: .5rem; padding: .5rem .7rem; border-radius: 10px;
    color: #fff; background: transparent; border: 0; font-weight: 600; font-size: .88rem;
}
.lf-header__action:hover, .lf-header__action:focus { background: var(--lf-black-2); color: var(--lf-yellow); text-decoration: none; }
.lf-header__action > i, .lf-header__icon > i { font-size: 1.25rem; }
.lf-header__icon { position: relative; display: inline-flex; }
.lf-header__label { display: none; }
.lf-header .lf-cart-count.cart-items {
    position: absolute; top: -8px; right: -10px; min-width: 19px; height: 19px; padding: 0 5px;
    border-radius: 10px; border: 2px solid var(--lf-black); background: var(--lf-yellow); color: var(--lf-black);
    font-size: .68rem; font-weight: 700; line-height: 15px; text-align: center;
}
.lf-header .lf-cart-count:empty { display: none; }
.lf-dropdown { border: 1px solid var(--lf-line); border-radius: var(--lf-radius-sm); box-shadow: var(--lf-shadow); }

/* buscador: blanco sobre negro, botón amarillo */
.lf-search { position: relative; display: flex; }
.lf-search__input {
    width: 100%; height: 46px; padding: 0 3.25rem 0 1.1rem;
    border: 2px solid transparent; border-radius: 999px; background: #fff;
    color: var(--lf-ink); font-size: .95rem; transition: border-color .15s, box-shadow .15s;
}
.lf-search__input::placeholder { color: var(--lf-muted); }
.lf-search__input:focus { outline: none; border-color: var(--lf-yellow); box-shadow: 0 0 0 3px rgba(254, 254, 1, .3); }
.lf-search__btn {
    position: absolute; right: 4px; top: 4px; width: 38px; height: 38px; border: 0; border-radius: 50%;
    background: var(--lf-yellow); color: var(--lf-black); display: flex; align-items: center; justify-content: center;
}
.lf-search__btn:hover { background: var(--lf-yellow-dark); }

@media (min-width: 992px) {
    .lf-header__inner {
        grid-template-columns: auto 1fr auto;
        grid-template-areas: "logo search actions";
        padding-top: .9rem; padding-bottom: .9rem; column-gap: 2rem;
    }
    .lf-header .lf-header__menu.navbar-toggler { display: none; }
    .lf-header__logo img { height: 48px; max-width: 250px; }
    .lf-search { max-width: 640px; width: 100%; justify-self: center; }
    .lf-header__label { display: inline; }
}

/* barra de categorías */
.lf-catbar { display: none; background: var(--lf-black-2); border-top: 1px solid var(--lf-black-line); }
@media (min-width: 992px) { .lf-catbar { display: block; } }
.lf-catbar__list { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.lf-catbar__item { position: relative; }
.lf-catbar__link {
    display: flex; align-items: center; gap: .35rem; padding: .75rem 1rem; color: #fff;
    font-weight: 600; font-size: .9rem; border-bottom: 3px solid transparent;
}
.lf-catbar__item:first-child .lf-catbar__link { padding-left: 0; }
.lf-catbar__link i { font-size: .65rem; color: #9A9A9A; transition: transform .15s; }
.lf-catbar__link:hover, .lf-catbar__item:hover > .lf-catbar__link, .lf-catbar__item:focus-within > .lf-catbar__link {
    color: var(--lf-yellow); text-decoration: none; border-bottom-color: var(--lf-yellow);
}
.lf-catbar__item:hover > .lf-catbar__link i { transform: rotate(180deg); color: var(--lf-yellow); }
.lf-mega {
    position: absolute; left: 0; top: 100%; z-index: 1040; min-width: 280px;
    background: #fff; border: 1px solid var(--lf-line); border-top: 3px solid var(--lf-yellow);
    border-radius: 0 0 var(--lf-radius) var(--lf-radius);
    box-shadow: var(--lf-shadow-hover); padding: 1rem 1.25rem 1.1rem;
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.lf-catbar__item:hover > .lf-mega, .lf-catbar__item:focus-within > .lf-mega { opacity: 1; visibility: visible; transform: none; }
.lf-mega__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .6rem; padding-bottom: .6rem; border-bottom: 1px solid var(--lf-line); }
.lf-mega__title { font-weight: 700; color: var(--lf-ink); }
.lf-mega__all { font-size: .8rem; font-weight: 700; white-space: nowrap; color: var(--lf-ink); }
.lf-mega__all:hover { text-decoration: underline; text-decoration-color: var(--lf-yellow); text-decoration-thickness: 3px; }
.lf-mega__list { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 2rem; }
.lf-mega__list li { break-inside: avoid; }
.lf-mega__list a { display: block; padding: .35rem .5rem; margin: 0 -.5rem; border-radius: 6px; color: var(--lf-text); font-size: .9rem; white-space: nowrap; }
.lf-mega__list a:hover { color: var(--lf-ink); background: var(--lf-yellow-soft); text-decoration: none; }

/* menú lateral (#menuPrincipal) */
#menuPrincipal .scroll-menu, #menuPrincipal .navbar__menu-mobile, #menuPrincipal .navbar__menu-desktop { background: #fff; color: var(--lf-ink); }
#menuPrincipal .navbar__close { background: var(--lf-yellow); color: var(--lf-black); font-weight: 700; }
#menuPrincipal .bs-menu__lv1, #menuPrincipal .bs-menu__lv2, #menuPrincipal .bs-menu__lv3 { color: var(--lf-ink); background: transparent; }
#menuPrincipal .bs-menu__lv1:hover, #menuPrincipal .bs-menu__lv2:hover, #menuPrincipal .bs-menu__lv3:hover { color: var(--lf-ink); background: var(--lf-yellow-soft); }
#menuPrincipal .bs-search__bar .form-control { border-radius: 999px; background: var(--lf-surface); }

/* =====================================================================
   PORTADA
   ===================================================================== */
.lf-hero { margin-top: 1.25rem; }
.lf-hero .owl-carousel, .lf-hero .item, .lf-hero .item-img { border-radius: var(--lf-radius); overflow: hidden; }
.lf-hero .item-img { object-fit: cover; }
/* en móvil el banner se muestra completo (sube en Bsale una imagen móvil, ideal 800x800) */
@media (max-width: 767px) { .lf-hero .item-img { height: auto; } .lf-hero { margin-top: .75rem; } }

.lf-trust {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem;
    margin: 1.25rem 0 0; padding: 0; list-style: none;
}
@media (min-width: 768px) { .lf-trust { gap: 1rem; } }
.lf-trust__item {
    display: flex; align-items: center; gap: .85rem; padding: .9rem 1rem;
    background: var(--lf-surface); border-radius: var(--lf-radius);
}
.lf-trust__item strong { display: block; color: var(--lf-ink); font-size: .9rem; line-height: 1.25; }
.lf-trust__item small { display: block; color: var(--lf-muted); font-size: .78rem; }
.lf-trust__icon {
    flex: 0 0 40px; height: 40px; border-radius: 50%; background: var(--lf-black); color: var(--lf-yellow);
    display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
@media (max-width: 767px) {
    .lf-trust__item { flex-direction: column; text-align: center; gap: .45rem; padding: .75rem .4rem; }
    .lf-trust__item strong { font-size: .74rem; }
    .lf-trust__item small { display: none; }
    .lf-trust .lf-trust__icon { flex-basis: auto; width: 34px; height: 34px; font-size: .85rem; }
}

.lf-section-title {
    position: relative; margin: 0; padding-bottom: .55rem;
    font-size: 1.35rem; font-weight: 700; color: var(--lf-ink); text-transform: none; letter-spacing: -.015em;
}
.lf-section-title::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 4px; border-radius: 2px; background: var(--lf-yellow);
}
@media (min-width: 768px) { .lf-section-title { font-size: 1.6rem; } }
section > .lf-section-title { margin: 3rem 0 1.25rem; }

.lf-shelf { margin-top: 3rem; }
.lf-shelf__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.lf-shelf__more { font-weight: 700; font-size: .9rem; white-space: nowrap; color: var(--lf-ink); padding-bottom: .55rem; }
.lf-shelf__more i { font-size: .75rem; margin-left: .2rem; transition: transform .15s; }
.lf-shelf__more:hover { color: var(--lf-ink); text-decoration: underline; text-decoration-color: var(--lf-yellow); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.lf-shelf__more:hover i { transform: translateX(3px); }

/* grilla de productos */
.bs-collection.lf-grid { --gap: .75rem; --cols: 2; --cols-sm: 2; --cols-md: 3; --cols-lg: 4; --cols-xl: 5; --aspect-ratio: 1; }
.bs-collection.lf-grid--page { --cols-lg: 3; --cols-xl: 4; }
@media (min-width: 768px) { .bs-collection.lf-grid { --gap: 1.25rem; } }

/* tarjeta de producto */
.lf-card.bs-collection__product {
    position: relative; display: flex; flex-direction: column; height: 100%;
    background: #fff; border: 1px solid var(--lf-line); border-radius: var(--lf-radius);
    transition: box-shadow .2s, border-color .2s, transform .2s; overflow: hidden;
}
.lf-card.bs-collection__product:hover { box-shadow: var(--lf-shadow-hover); border-color: transparent; transform: translateY(-2px); }
.lf-card__media { display: block; padding: .9rem .9rem 0; }
.lf-card .bs-collection__product__img { border-radius: var(--lf-radius-sm); background: #fff; }
.lf-card .bs-img-square::after { padding-bottom: 100%; }
.lf-card .bs-img-square picture img { transition: transform .3s; }
.lf-card:hover .bs-img-square picture img { transform: scale(1.04); }
.lf-card__body { display: flex; flex-direction: column; flex: 1; padding: .75rem .9rem .9rem; }
.lf-card__brand.bs-collection__product-brand {
    display: block; padding: 0; margin-bottom: .2rem; background: none; border-radius: 0;
    color: var(--lf-muted); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; min-height: 0;
}
.lf-card__title-link:hover { text-decoration: none; }
.lf-card__title.bs-collection__product-title {
    margin: 0; color: var(--lf-ink); font-size: .9rem; font-weight: 400; line-height: 1.35; text-transform: none;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em;
}
.lf-card__title-link:hover .lf-card__title { text-decoration: underline; }
.lf-card__price { margin-top: .6rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .5rem; }
.lf-card__final.bs-collection__product-final-price {
    display: inline; font-size: 1.2rem; line-height: 1.2; font-weight: 700; color: var(--lf-ink);
}
.lf-card__old.bs-collection__old-price { order: 2; color: var(--lf-muted); font-size: .82rem; }
.lf-card__price .bs-collection__discount-condition { flex-basis: 100%; height: auto; color: var(--lf-muted); }
.lf-card__cta.bs-collection__addToCart { opacity: 1; margin-top: auto; padding: .8rem 0 0; }
.lf-card__cta .btn { width: 100%; }
.lf-card__cta .btn:disabled, .lf-card__cta .btn:disabled:hover { border: 1px solid var(--lf-line); border-radius: var(--lf-radius-sm); }

.lf-badge {
    position: absolute; z-index: 20; top: .5rem; left: .5rem; padding: .2rem .5rem; border-radius: 6px;
    font-size: .72rem; font-weight: 700; line-height: 1.3;
}
.lf-badge--sale { background: var(--lf-black); color: var(--lf-yellow); }
.lf-badge--out { top: auto; bottom: .5rem; left: 50%; transform: translateX(-50%); background: rgba(17,17,17,.85); color: #fff; text-transform: uppercase; letter-spacing: .04em; }
.lf-card.outStock .bs-collection__product__img img { filter: grayscale(1); opacity: .65; }

/* información de salud (solo si se activa en Inicio) */
.lf-info { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .lf-info { grid-template-columns: repeat(3, 1fr); } }
.lf-info__card { padding: 1.4rem; border: 1px solid var(--lf-line); border-radius: var(--lf-radius); background: #fff; }
.lf-info__card h3 { margin: .9rem 0 .35rem; font-size: 1.05rem; font-weight: 700; }
.lf-info__card p { margin: 0 0 .9rem; color: var(--lf-muted); font-size: .88rem; }
.lf-info__icon {
    width: 42px; height: 42px; border-radius: 10px; background: var(--lf-black); color: var(--lf-yellow);
    display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
.lf-info__phone { font-size: 1.15rem; font-weight: 700; color: var(--lf-ink); }
.lf-info__links { display: flex; flex-direction: column; gap: .35rem; font-weight: 700; font-size: .9rem; }

/* =====================================================================
   MIGAS DE PAN Y PÁGINA DE COLECCIÓN
   ===================================================================== */
.bs-breadcrumb { background: transparent; border-bottom: 1px solid var(--lf-line); margin-bottom: 1.5rem !important; }
.bs-breadcrumb .breadcrumb { background: transparent; padding: .75rem 0; margin: 0; font-size: .82rem; }
.bs-breadcrumb .breadcrumb-item a { color: var(--lf-muted) !important; }
.bs-breadcrumb .breadcrumb-item a:hover { color: var(--lf-ink) !important; }
.bs-breadcrumb .breadcrumb-item.active { color: var(--lf-ink) !important; }
.bs-breadcrumb .icon { fill: currentColor; }

.bs-collection__title { color: var(--lf-ink) !important; font-weight: 700; text-transform: none; font-size: 1.8rem; letter-spacing: -.02em; }
.bs-collection__subtitle { color: var(--lf-muted); font-size: .95rem; font-weight: 400; }
.bs-collection-filter { background: #fff; border: 1px solid var(--lf-line); border-radius: var(--lf-radius); }
.bs-collection .row.pb-3 { background: #fff; border: 1px solid var(--lf-line); border-radius: var(--lf-radius); }
.page-item .page-link.page-link { border-radius: var(--lf-radius-sm); background: var(--lf-white); color: var(--lf-ink); border-color: var(--lf-line); font-weight: 600; }
.page-item.disabled .page-link.page-link { background: var(--lf-white); color: var(--lf-muted); opacity: .6; }
.page-item .page-link.page-link:hover { background: var(--lf-yellow-soft); color: var(--lf-ink); }
.page-item.active .page-link.page-link { background: var(--lf-black); border-color: var(--lf-black); color: var(--lf-yellow); }
.noUi-connect { background: var(--lf-black); }

/* Panel de filtros (colección, búsqueda, marca) */
.bs-collection-filter { padding: 1rem 1rem .75rem; }
.bs-collection-filter .h3 { font-size: 1.1rem; font-weight: 700; color: var(--lf-ink); }
.bs-collection-filter .bs-filter-btn { padding: .6rem .15rem; border: 0; border-bottom: 1px solid var(--lf-line); border-radius: 0; background: transparent; color: var(--lf-ink); font-size: .92rem; font-weight: 600; box-shadow: none; }
.bs-collection-filter .bs-filter-btn i { transition: transform .2s; }
.bs-collection-filter .bs-filter-btn:not(.collapsed) i { transform: rotate(180deg); }
.bs-collection-filter .list-group-item { border: 0; background: transparent; padding: .3rem .15rem !important; }
.bs-collection-filter .custom-control-label { font-size: .88rem; color: var(--lf-ink); cursor: pointer; }
.bs-collection-filter .custom-control-input:checked ~ .custom-control-label::before { background-color: var(--lf-black); border-color: var(--lf-black); }
.bs-collection-filter .custom-control-input:focus ~ .custom-control-label::before { box-shadow: 0 0 0 .2rem rgba(254, 254, 1, .7); }
.bs-collection-filter .noUi-horizontal { height: 6px; margin: .9rem .6rem .5rem; border: 0; border-radius: 3px; background: var(--lf-line); box-shadow: none; }
.bs-collection-filter .noUi-horizontal .noUi-handle { width: 20px; height: 20px; top: -7px; right: -10px; border: 2px solid var(--lf-black); border-radius: 50%; background: var(--lf-yellow); box-shadow: none; cursor: grab; }
.bs-collection-filter .noUi-handle::before,
.bs-collection-filter .noUi-handle::after { display: none; }
.bs-collection-filter [data-bs="filter.range.size"] { display: flex; justify-content: space-between; font-size: .82rem; color: var(--lf-muted); }

/* =====================================================================
   FICHA DE PRODUCTO
   ===================================================================== */
.bs-product { padding-top: .5rem; }
.bs-product #bs-product-slider .bs-img-square,
.bs-product .bs-horizontal-slider .bs-img-square { border: 1px solid var(--lf-line); border-radius: var(--lf-radius); background: #fff; }
.bs-product #bs-product-slider .bs-img-square::after { padding-bottom: 100%; }
.bs-product [data-bs="product.discount"].bs-discount {
    position: absolute; top: 12px; left: 27px; z-index: 30; width: auto; margin: 0;
    padding: .25rem .6rem; border-radius: 6px; background: var(--lf-black); color: var(--lf-yellow); font-size: .85rem; line-height: 1.3;
}

.lf-pdp { padding-top: .25rem; }
@media (min-width: 576px) { .lf-pdp { padding-left: 1rem; } }
.lf-pdp__brand {
    display: inline-block; margin-bottom: .35rem; padding: .15rem .5rem; border-radius: 4px;
    background: var(--lf-yellow); color: var(--lf-black);
    font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
a.lf-pdp__brand:hover { color: var(--lf-black); text-decoration: none; background: var(--lf-yellow-dark); }
.lf-pdp__title.bs-product__title { margin: 0 0 .4rem; font-size: 1.55rem; font-weight: 700; line-height: 1.25; color: var(--lf-ink); }
@media (min-width: 992px) { .lf-pdp__title.bs-product__title { font-size: 1.9rem; } }
.lf-pdp__notice { color: var(--lf-muted); margin: 0 0 .4rem; }
.lf-pdp__meta { color: var(--lf-muted); font-size: .8rem; margin-bottom: 1.1rem; }
.lf-pdp__meta .bs-product__sku { display: inline; color: var(--lf-text); }

.lf-pdp__buybox { padding: 1.25rem; border: 1px solid var(--lf-line); border-radius: var(--lf-radius); background: #fff; }
.lf-pdp__price .bs-product__final-price { display: inline-block; font-size: 2rem; font-weight: 700; color: var(--lf-ink); line-height: 1.1; }
.lf-pdp__price .bs-product__original-price { color: var(--lf-muted); font-size: .9rem; }
.lf-pdp__stock { margin: .6rem 0 1rem; }
.lf-pdp__stock .badge { font-size: .78rem; font-weight: 600; padding: .35em .7em; border-radius: 999px; }
.lf-pdp__stock .badge-success { background: #E3F4EC; color: var(--lf-ok); }
.lf-pdp__stock .badge-warning { background: #FCF1DE; color: var(--lf-warn); }
.lf-pdp__stock .badge-danger { background: #FDECEE; color: var(--lf-danger); }
.lf-pdp__label.bs-product__label { font-size: .8rem; font-weight: 600; color: var(--lf-ink); text-transform: none; margin-bottom: .35rem; }
.lf-qty { height: 48px; flex-wrap: nowrap; border: 1px solid var(--lf-line); border-radius: var(--lf-radius-sm); overflow: hidden; }
.lf-qty .btn { height: 100%; width: 44px; background: var(--lf-surface); border: 0; border-radius: 0; color: var(--lf-ink); }
.lf-qty .btn:hover { background: var(--lf-yellow); color: var(--lf-black); }
.lf-qty .form-control { height: 100%; border: 0; border-radius: 0; font-weight: 700; background: #fff; }
#bs-product-form .lf-btn--lg { height: 48px; }
.lf-pdp__perks {
    display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: .25rem 0 0; padding: .9rem 0 0;
    list-style: none; border-top: 1px solid var(--lf-line); color: var(--lf-text); font-size: .82rem;
}
.lf-pdp__perks i { color: var(--lf-black); margin-right: .35rem; }

.lf-ficha { margin-top: 1.25rem; }
.lf-ficha__title { font-size: 1rem; font-weight: 700; margin: 0 0 .6rem; }
.lf-ficha__table { width: 100%; border-collapse: collapse; font-size: .88rem; border: 1px solid var(--lf-line); border-radius: var(--lf-radius-sm); overflow: hidden; }
.lf-ficha__table th, .lf-ficha__table td { padding: .6rem .8rem; border-bottom: 1px solid var(--lf-line); vertical-align: top; }
.lf-ficha__table tr:last-child th, .lf-ficha__table tr:last-child td { border-bottom: 0; }
.lf-ficha__table th { width: 42%; background: var(--lf-surface); color: var(--lf-muted); font-weight: 600; }
.lf-ficha__table td { color: var(--lf-ink); }
.lf-pdp__desc { margin-top: 1rem; color: var(--lf-text); }

/* pestañas de descripción */
.lf-tabs { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: 2.5rem; border-bottom: 1px solid var(--lf-line); }
.lf-tabs__btn {
    order: 0; padding: .7rem 1rem; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px;
    background: transparent; color: var(--lf-muted); font-weight: 700; font-size: .92rem; border-radius: 0;
}
.lf-tabs__btn:hover { color: var(--lf-ink); }
.lf-tabs__btn.active, .lf-tabs__btn[aria-expanded="true"] { color: var(--lf-ink); border-bottom-color: var(--lf-yellow); }
.lf-tabs__btn:focus { outline: none; box-shadow: none; }
.lf-tabs__panel { order: 1; flex: 0 0 100%; padding: 1.25rem 0 .5rem; color: var(--lf-text); line-height: 1.65; }
.lf-tabs__panel > * { max-width: 860px; }
.bs-product__section-title { font-size: 1.35rem; font-weight: 700; color: var(--lf-ink); text-transform: none; }

/* =====================================================================
   PIE DE PÁGINA (negro)
   ===================================================================== */
.bs-footer.lf-footer { background: var(--lf-black); color: #BDBDBD; margin-top: 4rem; padding: 0; border-top: 4px solid var(--lf-yellow); }
.lf-footer__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; padding-top: 3rem; padding-bottom: 2.5rem; }
@media (min-width: 768px) { .lf-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .lf-footer__grid { grid-template-columns: 1.3fr 1fr 1.3fr 1fr; } }
.lf-footer__col { margin: 0; font-style: normal; }
.lf-footer__title { color: #fff; font-size: .95rem; font-weight: 700; margin: 0 0 1rem; }
.lf-footer .bs-footer__link { display: flex; align-items: flex-start; gap: .55rem; padding: .25rem 0; font-size: .88rem; color: #BDBDBD; }
.lf-footer .bs-footer__link a, .lf-footer .bs-footer__link a:visited { color: #BDBDBD !important; }
.lf-footer .bs-footer__link a:hover { color: var(--lf-yellow) !important; text-decoration: none; }
.lf-footer .bs-footer__link__icon { color: var(--lf-yellow); margin-top: .25rem; font-size: .8rem; }
.lf-footer__hours .bs-footer__link strong { color: #fff; font-weight: 600; min-width: 112px; }
.lf-footer__tagline { margin: 1rem 0 0; font-size: .88rem; max-width: 280px; }
.lf-footer .bs-footer__logo { display: inline-flex; }
.lf-footer .bs-footer__logo img { height: 44px; width: auto; max-width: 230px; object-fit: contain; }
.lf-footer .bs-footer__social { display: flex; gap: .5rem; margin-top: 1rem; justify-content: flex-start; }
.lf-footer .btn-social {
    width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--lf-black-2); color: #fff; border: 1px solid var(--lf-black-line);
}
.lf-footer .btn-social:hover { background: var(--lf-yellow); color: var(--lf-black); border-color: var(--lf-yellow); }
.lf-footer__pay { border-top: 1px solid var(--lf-black-line); padding: 1.25rem 0; }
.lf-footer__pay:has(.container-xxl > aside:empty) { display: none; }
.lf-footer__pay .bs-pay-method { opacity: 1; background: #fff; border-radius: 6px; padding: 4px 8px; max-height: 40px; width: auto; }
.lf-footer__bottom { background: #000; padding: 1rem 0; font-size: .8rem; color: #8A8A8A; text-align: center; }
.bs-copyright { display: none; }

/* menú inferior flotante (móvil) */
.floating-menu { background: var(--lf-black) !important; border-top: 3px solid var(--lf-yellow); }
.floating-menu__item { color: #fff !important; }
.floating-menu__item:hover { color: var(--lf-yellow) !important; }
.floating-menu__cart .cart-items { background: var(--lf-yellow) !important; color: var(--lf-black) !important; }

/* =====================================================================
   VENTA SOLO EN FARMACIA (Texto destacado "Venta solo en farmacia")
   ===================================================================== */
.lf-badge--farmacia { left: auto; right: .5rem; background: var(--lf-yellow); color: var(--lf-black); display: inline-flex; align-items: center; gap: .3rem; }
.lf-oculto { display: none !important; }
.lf-presencial {
    display: flex; gap: .9rem; align-items: flex-start; margin: .25rem 0 .9rem; padding: 1rem;
    background: var(--lf-yellow-soft); border: 1px solid var(--lf-yellow-dark); border-radius: var(--lf-radius-sm);
}
.lf-presencial__icon {
    flex: 0 0 38px; height: 38px; border-radius: 50%; background: var(--lf-black); color: var(--lf-yellow);
    display: flex; align-items: center; justify-content: center;
}
.lf-presencial strong { display: block; color: var(--lf-ink); font-size: 1rem; margin-bottom: .2rem; }
.lf-presencial p { margin: 0 0 .4rem; color: var(--lf-text); font-size: .88rem; }
.lf-presencial a { font-weight: 700; font-size: .88rem; color: var(--lf-ink); text-decoration: underline; }

/* =====================================================================
   CARRUSEL DE VITRINAS (portada)
   ===================================================================== */
.lf-shelf__tools { display: flex; align-items: center; gap: .4rem; }
.lf-shelf__tools .lf-shelf__more { margin-right: .4rem; }
.lf-shelf__arrow {
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--lf-line); background: #fff; color: var(--lf-ink);
    display: none; align-items: center; justify-content: center; font-size: .8rem; margin-bottom: .55rem;
}
.lf-shelf__arrow:hover { background: var(--lf-yellow); border-color: var(--lf-yellow); color: var(--lf-black); }
@media (min-width: 768px) { .lf-shelf__arrow { display: inline-flex; } }
.bs-collection.lf-carrusel {
    display: grid; grid-auto-flow: column; gap: .75rem;
    grid-auto-columns: calc((100% - .75rem) / 2.15);          /* móvil: 2 tarjetas y se asoma la tercera */
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    padding: 4px 2px 10px; scrollbar-width: none; --aspect-ratio: 1;
}
.bs-collection.lf-carrusel::-webkit-scrollbar { display: none; }
.bs-collection.lf-carrusel > .grid__item { scroll-snap-align: start; min-width: 0; }
@media (min-width: 768px) { .bs-collection.lf-carrusel { gap: 1.25rem; grid-auto-columns: calc((100% - 2 * 1.25rem) / 3); } }
@media (min-width: 992px) { .bs-collection.lf-carrusel { grid-auto-columns: calc((100% - 3 * 1.25rem) / 4); } }
@media (min-width: 1200px) { .bs-collection.lf-carrusel { grid-auto-columns: calc((100% - 4 * 1.25rem) / 5); } }
.lf-shelf + .lf-shelf { margin-top: 2.5rem; }

/* =====================================================================
   INFORMACIÓN DE SALUD (portada) + ventana de infografías
   ===================================================================== */
.lf-salud { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.25rem; }
@media (min-width: 768px) { .lf-salud { grid-template-columns: 1fr 1fr; } .lf-salud__card--contacto { grid-column: 1 / -1; } }
@media (min-width: 1200px) { .lf-salud { grid-template-columns: 1.3fr 1fr 1fr; } .lf-salud__card--contacto { grid-column: auto; } }
.lf-salud__card {
    position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    min-height: 124px; padding: 1.25rem 1.4rem; background: var(--lf-surface); border-radius: 20px;
}
.lf-salud__card:not(.lf-salud__card--contacto)::after {
    content: ""; position: absolute; right: -46px; top: 50%; width: 176px; height: 176px; transform: translateY(-50%);
    border-radius: 50%; background: var(--lf-yellow-soft);
}
.lf-salud__card--contacto { flex-direction: column; align-items: flex-start; justify-content: center; }
.lf-salud__texto { position: relative; z-index: 1; }
.lf-salud__title { margin: 0 0 .8rem; font-size: 1.05rem; font-weight: 700; line-height: 1.3; color: var(--lf-ink); }
.lf-salud__texto .lf-btn { padding: .5rem 1.1rem; }
.lf-salud__fonos { display: grid; grid-template-columns: auto auto; justify-content: start; }
@media (max-width: 400px) { .lf-salud__fono a { font-size: .95rem; } .lf-salud__fono { padding-right: .9rem; } .lf-salud__fono + .lf-salud__fono { padding-left: .9rem; } }
.lf-salud__fono { display: flex; flex-direction: column; gap: .15rem; padding-right: 1.25rem; }
.lf-salud__fono + .lf-salud__fono { padding-left: 1.25rem; border-left: 3px solid var(--lf-yellow); }
.lf-salud__label { font-size: .78rem; color: var(--lf-muted); }
.lf-salud__fono a { font-size: 1.05rem; font-weight: 700; color: var(--lf-ink); white-space: nowrap; }
.lf-salud__fono a:hover { text-decoration: underline; text-decoration-color: var(--lf-yellow); text-decoration-thickness: 3px; }
.lf-salud__icono {
    position: relative; z-index: 1; flex: 0 0 72px; height: 72px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; background: var(--lf-black); color: var(--lf-yellow);
}
.lf-salud__icono svg { width: 38px; height: 38px; }
.lf-modal-infografia .modal-content { border: 0; border-radius: var(--lf-radius); }
.lf-modal-infografia .modal-header { border-bottom: 1px solid var(--lf-line); }
.lf-modal-infografia .modal-title { font-weight: 700; font-size: 1.05rem; }
.lf-modal-infografia .close { opacity: 1; font-size: 1rem; color: var(--lf-ink); }
.lf-modal-infografia .modal-body img { display: block; width: 100%; height: auto; border-radius: var(--lf-radius-sm); }
.lf-modal-infografia .modal-footer { border-top: 0; padding-top: 0; }
.lf-modal-infografia .modal-footer a { font-weight: 700; font-size: .88rem; color: var(--lf-ink); text-decoration: underline; }

/* =====================================================================
   ALTERNATIVAS BIOEQUIVALENTES (componente lf-bioequivalentes)
   ===================================================================== */
.lf-bioeq { margin: 2rem 0 1rem; padding: 1.25rem 1.4rem; border: 1px solid var(--lf-line); border-radius: var(--lf-radius); background: var(--lf-white); }
.lf-bioeq[hidden] { display: none; }
.lf-bioeq__titulo { margin: 0 0 .35rem; font-size: 1.2rem; font-weight: 700; color: var(--lf-ink); letter-spacing: -.01em; }
.lf-bioeq__texto { margin: 0 0 1rem; max-width: 62ch; font-size: .88rem; line-height: 1.5; color: var(--lf-muted); }
.lf-bioeq__lista { margin: 0; padding: 0; list-style: none; }
.lf-bioeq__item + .lf-bioeq__item { border-top: 1px solid var(--lf-line); }
.lf-bioeq__enlace {
    display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; align-items: center; gap: 1rem;
    padding: .75rem .25rem; color: var(--lf-ink); text-decoration: none; border-radius: var(--lf-radius-sm);
}
.lf-bioeq__enlace:hover { background: var(--lf-surface); color: var(--lf-ink); text-decoration: none; }
.lf-bioeq__enlace:focus-visible { outline: 3px solid var(--lf-black); outline-offset: 2px; }
.lf-bioeq__img { width: 64px; height: 64px; border: 1px solid var(--lf-line); border-radius: var(--lf-radius-sm); background: var(--lf-white); overflow: hidden; }
.lf-bioeq__img img { width: 100%; height: 100%; object-fit: contain; }
.lf-bioeq__info { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; min-width: 0; }
.lf-bioeq__marca { font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--lf-muted); }
.lf-bioeq__nombre { font-size: .92rem; font-weight: 600; line-height: 1.3; }
.lf-bioeq__badge { display: inline-block; padding: .1rem .5rem; border-radius: 999px; background: var(--lf-black); color: var(--lf-yellow); font-size: .7rem; font-weight: 700; }
.lf-bioeq__precio { font-size: 1.05rem; font-weight: 700; white-space: nowrap; }
.lf-bioeq__ver { padding: .4rem .9rem; border: 1px solid var(--lf-black); border-radius: var(--lf-radius-sm); font-size: .82rem; font-weight: 600; }
.lf-bioeq__enlace:hover .lf-bioeq__ver { background: var(--lf-yellow); }
@media (max-width: 575.98px) {
    .lf-bioeq { padding: 1rem; }
    .lf-bioeq__enlace { grid-template-columns: 56px minmax(0, 1fr) auto; gap: .75rem; }
    .lf-bioeq__img { width: 56px; height: 56px; }
    .lf-bioeq__ver { display: none; }
}
