/* =====================================================================
   11-mobile.css — Versión mobile de la tienda
   Se carga ÚLTIMO y todas las reglas están dentro de media queries
   (≤ 991 px tablet/celular, ≤ 575 px celular), así el escritorio no cambia.
   Complemento: js/mobile.js (contador del carrito, fallback de imágenes).
   ===================================================================== */

/* Elementos que sólo existen en mobile: ocultos en escritorio */
.bm-cart-count,
.bm-whatsapp { display: none; }

/* ---------------------------------------------------------------------
   TABLET Y CELULAR (≤ 991 px)
   --------------------------------------------------------------------- */
@media (max-width: 991.98px) {

    :root {
        --bm-accent: #a83c34;
        --bm-text: #1d1d1f;
        --bm-muted: #6e6e73;
        --bm-line: #ececec;
        --bm-radius: 14px;
        --bm-gutter: 14px;
    }

    html, body { overflow-x: clip; }
    body { -webkit-tap-highlight-color: transparent; }

    /* Evita que iOS haga zoom al tocar un campo (necesita 16px) */
    input, select, textarea, .form-control { font-size: 16px !important; }

    /* ---------- Header ---------- */
    /* Sin backdrop-filter: haría que el menú lateral (que está dentro del header) quede recortado */
    #header {
        background: #fff;
        box-shadow: 0 1px 0 var(--bm-line);
    }
    #contacto_link { padding-top: 4px !important; padding-bottom: 4px !important; font-size: 13px; }
    #header-nav { padding: 6px 0; }
    #header-nav .container-lg { padding-left: var(--bm-gutter); padding-right: var(--bm-gutter); }
    #contenedor-logo img, #header-nav .navbar-brand .logo { width: 44px !important; height: auto; }
    .nombre-container { display: none; }
    .user-items { padding-left: 0 !important; }
    .user-items ul { gap: 4px; }
    .user-items li { padding: 0 !important; }
    .user-items a, #header-nav .navbar-toggler {
        position: relative;
        width: 42px; height: 42px;
        display: inline-flex !important; align-items: center; justify-content: center;
        border-radius: 50%;
    }
    .user-items a:active, #header-nav .navbar-toggler:active { background: #f2f2f2; }
    .user-items svg, #header-nav .navbar-icon { width: 23px; height: 23px; }
    #header-nav .navbar-toggler { margin-left: 2px !important; box-shadow: none !important; }

    /* Contador del carrito (lo completa js/mobile.js) */
    .bm-cart-count {
        position: absolute; top: 3px; right: 1px;
        min-width: 18px; height: 18px; padding: 0 5px;
        border-radius: 9px; background: var(--bm-accent); color: #fff;
        font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
    }
    .bm-cart-count.show { display: inline-block; }

    /* Menú lateral */
    #bdNavbar.offcanvas-end { --bs-offcanvas-width: min(84vw, 340px); width: min(84vw, 340px) !important; }
    #bdNavbar .offcanvas-header { padding: 18px 20px 6px !important; }
    #bdNavbar .offcanvas-header .navbar-brand { padding-left: 0 !important; }
    #bdNavbar .btn-close { padding: 14px !important; }
    #bdNavbar #navbar { align-items: stretch !important; }
    #bdNavbar .nav-link {
        margin: 0 !important; padding: 15px 4px !important;
        font-size: 17px; border-bottom: 1px solid var(--bm-line) !important;
    }
    #bdNavbar .dropdown-menu {
        position: static !important; transform: none !important;
        border: 0; box-shadow: none; padding: 4px 0 8px; margin: 0;
    }
    #bdNavbar .dropdown-item { padding: 11px 14px; font-size: 15px; font-weight: 500; border-radius: 8px; white-space: normal; }

    /* Buscador */
    #buscar_contenedor .search-input { font-size: 18px !important; }
    #search-results .custom-li { width: 100% !important; border-radius: 0; padding: 14px 16px; }

    /* ---------- Portada (carrusel principal) ---------- */
    /* Alto fijo del contenedor: al cambiar de foto la página no se mueve */
    #carouselExample_fotosmain .carousel-inner { aspect-ratio: auto; max-height: none; height: clamp(340px, 56vh, 500px); }
    #carouselExample_fotosmain .carousel-item img,
    #carouselExample_fotosmain .imagen_slide {
        height: 100% !important; max-height: none !important; min-height: 0;
        object-fit: cover;
    }
    #carouselExample_fotosmain .carousel-control-prev,
    #carouselExample_fotosmain .carousel-control-next { width: 14%; }
    #carouselExample_fotosmain .carousel-control-prev-icon,
    #carouselExample_fotosmain .carousel-control-next-icon { width: 34px; height: 34px; background-size: 45%; }
    #main-carousel { margin-bottom: 0; }

    /* ---------- Categorías: fila deslizable ---------- */
    #categorias_imagenes {
        display: flex !important; flex-wrap: nowrap !important;
        overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
        scroll-padding-inline: var(--bm-gutter);
        gap: 12px; margin: 0 calc(-1 * var(--bm-gutter)) !important;
        padding: 4px var(--bm-gutter) 10px !important;
        scrollbar-width: none;
    }
    #categorias_imagenes::-webkit-scrollbar { display: none; }
    #categorias_imagenes > * {
        flex: 0 0 42%; max-width: 42%; width: auto !important;
        padding: 0 !important; margin: 0 !important;
        scroll-snap-align: start; cursor: pointer;
    }
    #categorias_imagenes .category-card {
        position: relative; margin: 0 !important; height: auto !important;
        display: flex; flex-direction: column; gap: 8px; overflow: visible; background: none;
    }
    #categorias_imagenes .category-card img {
        width: 100% !important; aspect-ratio: 4 / 5; height: auto !important; object-fit: cover; display: block;
        border-radius: 8px; background: #f4f2f0;
    }
    #categorias_imagenes .category-text {
        position: static !important; transform: none !important;
        background: none !important; padding: 0 !important; width: auto !important;
        color: var(--bm-text) !important; text-align: center !important; text-shadow: none !important;
        font-size: 15px !important; font-weight: 700; line-height: 1.2; letter-spacing: .01em;
    }
    #categorias_imagenes .category-card.bm-no-img img { display: none; }
    #categorias_imagenes .category-card.bm-no-img {
        aspect-ratio: 4 / 5; justify-content: center; border-radius: 8px; background: #f4f2f0;
    }
    .container.py-5:has(#categorias_imagenes) { padding-top: 22px !important; padding-bottom: 6px !important; }

    /* ---------- Títulos de sección ---------- */
    #featured-products .display-header { padding: 0 2px; margin-bottom: 6px; }
    #featured-products .section-title { font-size: 17px !important; letter-spacing: .14em; margin: 18px 0 6px; }
    #featured-products .container-md { padding-left: var(--bm-gutter); padding-right: var(--bm-gutter); }
    #contenedor_productos { padding-top: 6px !important; padding-bottom: 0 !important; }

    /* ---------- Grilla de productos ---------- */
    #contenedor_productos .row {
        --bs-gutter-x: 12px; --bs-gutter-y: 0;
        margin-left: -6px; margin-right: -6px;
    }
    #contenedor_productos .row > .col { padding-left: 6px; padding-right: 6px; margin-bottom: 20px !important; }

    #contenedor_productos .product-card {
        width: 100% !important; height: 100%;
        display: flex; flex-direction: column;
        margin: 0 !important;
    }
    #contenedor_productos .card-img {
        position: relative; width: 100% !important; height: auto !important;
        aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: #f4f2f0;
    }
    #contenedor_productos .card-img .carousel,
    #contenedor_productos .card-img .carousel-inner,
    #contenedor_productos .card-img .carousel-item { height: 100% !important; }
    #contenedor_productos .card-img img,
    #contenedor_productos .product-card img {
        width: 100% !important; height: 100% !important; max-width: none;
        object-fit: cover; display: block;
    }
    /* Se desliza con el dedo: las flechas sólo estorban */
    #contenedor_productos .card-img .carousel-control-prev,
    #contenedor_productos .card-img .carousel-control-next { display: none !important; }

    /* Etiquetas Preventa / Agotado / descuento: apiladas, nunca encimadas */
    .bm-badges { top: 8px; right: auto; left: 8px; align-items: flex-start; gap: 4px; }
    .bm-badge {
        font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
        padding: 4px 8px; border-radius: 6px;
    }

    /* Botones Ver / Agregar: siempre visibles en pantallas táctiles (no hay "hover") */
    .product-content .product-card .cart-concern,
    .product-content .product-card:hover .cart-concern {
        opacity: 1 !important;
        left: auto !important; right: 8px !important; bottom: 8px !important; top: auto !important;
        z-index: 12; transition: none;
    }
    .product-content .product-card .cart-button { gap: 6px !important; }
    .product-content .product-card .cart-button .btn {
        width: 38px; height: 38px; padding: 0 !important; border-radius: 50% !important;
        display: inline-flex; align-items: center; justify-content: center;
        background: rgba(255, 255, 255, .94) !important; border: 0 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .14);
    }
    .product-content .product-card .cart-button .btn:hover { transform: none !important; }
    .product-content .product-card .cart-button .btn:active { transform: scale(.92) !important; }
    .product-content .product-card .cart-button .btn:disabled { opacity: .45; }
    .product-content .product-card .cart-button svg { width: 18px; height: 18px; }

    /* Nombre y precio alineados */
    #contenedor_productos .card-detail {
        margin-top: 10px !important; padding: 0 2px;
        text-align: left !important; display: block !important;
    }
    #contenedor_productos .card-title { font-size: 13.5px !important; line-height: 1.3; margin-bottom: 4px !important; }
    #contenedor_productos .card-title a {
        color: var(--bm-text); font-weight: 600;
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }
    #contenedor_productos .card-price { font-size: 15px; font-weight: 700; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
    #contenedor_productos .card-price .fw-normal { font-weight: 700 !important; }
    #contenedor_productos .card-price .text-decoration-line-through { font-size: 12.5px; font-weight: 400 !important; order: 2; }

    /* ---------- Paginación ---------- */
    #paginacion { gap: 10px; margin: 6px 0 28px !important; }
    #paginacion .btn {
        flex: 1; max-width: 170px; margin: 0 !important;
        height: 46px; border-radius: 999px;
        background: #fff !important; color: var(--bm-text) !important;
        border: 1.5px solid #d9d9d9 !important; font-weight: 600; font-size: 15px;
    }
    #paginacion .btn:not(:disabled):active { background: #f3f3f3 !important; }
    #paginacion .btn:disabled { opacity: .4; }

    /* ---------- Preguntas frecuentes ---------- */
    .container:has(> #accordionExample) { margin-top: 18px !important; margin-bottom: 26px !important; padding-left: var(--bm-gutter); padding-right: var(--bm-gutter); }
    .container:has(> #accordionExample) > h4 { font-size: 19px; margin-bottom: 10px; }
    #accordionExample .accordion-item { border-left: 0; border-right: 0; }
    #accordionExample .accordion-button { padding: 16px 2px; font-size: 15px; font-weight: 500; }
    #accordionExample .accordion-body { padding: 4px 2px 18px; font-size: 14.5px; line-height: 1.6; color: #444; }

    /* ---------- Footer ---------- */
    #footer { padding: 24px 0 calc(28px + env(safe-area-inset-bottom)) !important; background: #faf9f8; }
    #footer .row { flex-direction: column-reverse; }
    #footer .col-md-6 { text-align: center !important; }
    #footer .col-md-6:last-child { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
    #footer .col-md-6:last-child p { margin: 0; }
    #footer .col-md-6:last-child p:empty { display: none; }
    #footer .whatsapp-link, #footer .gmail-link, #footer .instagram-link {
        display: inline-flex; align-items: center; gap: 6px;
        padding: 9px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--bm-line);
        text-decoration: none !important; font-size: 14px; font-weight: 600;
    }
    #footer p { font-size: 13px; color: var(--bm-muted); margin: 0; }

    /* Botón flotante de WhatsApp */
    .bm-whatsapp {
        display: flex; align-items: center; justify-content: center;
        position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 1040;
        width: 54px; height: 54px; border-radius: 50%;
        background: #25d366; color: #fff !important; font-size: 28px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, .22); text-decoration: none !important;
    }
    .bm-whatsapp:active { transform: scale(.94); }
    body.modal-open .bm-whatsapp, body:has(.offcanvas.show) .bm-whatsapp { display: none; }

    /* ---------- Modales como "hoja" a pantalla completa ---------- */
    #modaltoggle .modal-dialog, #modallong .modal-dialog, #myModal .modal-dialog {
        margin: 0; max-width: none; width: 100%; min-height: 100%;
        display: flex; align-items: flex-end;
    }
    #modaltoggle .modal-content, #modallong .modal-content, #myModal .modal-content {
        border: 0; border-radius: 18px 18px 0 0;
        max-height: 94vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
        padding: 0 !important;
        padding-bottom: env(safe-area-inset-bottom) !important;
    }
    .modal.fade .modal-dialog { transform: translateY(40px); }
    .modal.show .modal-dialog { transform: none; }
    #modallong .modal-header, #myModal .modal-header {
        position: sticky; top: 0; z-index: 3; background: #fff;
        padding: 16px 18px; border-bottom: 1px solid var(--bm-line);
    }
    #modallong .modal-header::before, #myModal .modal-header::before, #modaltoggle .modal-body::before {
        content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
        width: 38px; height: 4px; border-radius: 2px; background: #d6d6d6;
    }
    #modaltoggle .modal-body { position: relative; }
    #modallong .modal-body, #myModal .modal-body { padding: 16px 18px !important; max-height: none !important; }
    #modallong .modal-title, #myModal .modal-title { font-size: 18px !important; font-weight: 700; }

    /* Vista rápida de producto */
    #modaltoggle #carouselProducto { border-radius: 12px; overflow: hidden; }
    #modaltoggle #carousel-inner-images { height: auto !important; aspect-ratio: 1 / 1; }
    #modaltoggle #carousel-inner-images .carousel-item,
    #modaltoggle #carousel-inner-images img { height: 100% !important; object-fit: cover; }
    #modaltoggle .modal-body { padding: 0; }
    #modaltoggle .modal-body::before { z-index: 21; top: 8px; background: rgba(255,255,255,.85); }
    #modaltoggle #carouselProducto { border-radius: 0; }
    .bq-close { top: 14px; right: 12px; width: 34px; height: 34px; }
    .bq-thumbs { padding: 10px 14px; }
    .bq-thumb { flex-basis: 54px; height: 54px; }
    .bq-info { padding: 18px 18px 20px; }
    .bq-title { font-size: 20px; margin-right: 0; }
    .bq-price { font-size: 22px; }
    .bq-price-old { font-size: 15px; }
    .bq-desc { font-size: 14.5px; line-height: 1.6; margin-bottom: 16px; }
    .bq-buy {
        position: sticky; bottom: 0; z-index: 5; background: #fff;
        margin: 0 -18px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--bm-line);
    }
    .bq-qty .qty-number { width: 40px; }
    .bq-qty input { width: 40px; height: 50px; }
    .bq-add { height: 50px; font-size: 12.5px !important; }
    .bq-perks { margin-top: 14px; }

    /* Carrito */
    #modallong #content_cart { max-height: 52vh !important; }
    #modallong .mini-cart-item { align-items: center; gap: 12px; padding: 12px 0 !important; margin: 0 !important; }
    #modallong .mini-cart-item > div:first-child { flex: 0 0 72px; max-width: 72px; margin: 0 !important; padding: 0; }
    #modallong .mini-cart-item > div:first-child img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
    #modallong .mini-cart-item > div:last-child { flex: 1; min-width: 0; max-width: none; padding: 0; }
    #modallong .mini-cart-item .product-header { margin-bottom: 8px !important; gap: 8px; }
    #modallong .mini-cart-item .product-title { margin: 0 !important; font-size: 14px !important; line-height: 1.3; }
    #modallong .mini-cart-item .remove svg { width: 18px; height: 18px; }
    #modallong .product-qty { width: auto; flex-wrap: nowrap; }
    #modallong .product-qty .btn { width: 34px; height: 34px; }
    #modallong .product-qty input { width: 44px !important; height: 34px; }
    #modallong .mini-cart-total { padding: 14px 0 !important; border-top: 1px solid var(--bm-line); font-weight: 700; }
    #modallong .mini-cart-total .fs-6 { font-size: 17px !important; }
    #modallong .modal-footer {
        position: sticky; bottom: 0; background: #fff; z-index: 2;
        margin: 0 -18px !important; padding: 12px 18px 16px; border-top: 1px solid var(--bm-line);
        flex-direction: column; gap: 8px;
    }
    #modallong .icono-mercado-pago { height: 26px; width: auto; margin: 0; }
    #modallong .btn_c, #myModal form [type=submit] {
        width: 100%; height: 52px; margin: 0 !important;
        border-radius: 12px; font-size: 16px !important; font-weight: 700; padding: 0 !important;
    }

    /* Formulario de datos (checkout) */
    #myModal .form-group, #myModal .mb-3 { margin-bottom: 14px !important; }
    #myModal label { font-size: 14px; font-weight: 600; margin-bottom: 5px; }
    #myModal .form-control, #myModal select { height: 48px; border-radius: 10px; }
    #myModal textarea.form-control { height: 90px; }
    #myModal .form-check { display: flex; align-items: center; gap: 8px; padding-left: 0; }
    #myModal .form-check-input { width: 22px; height: 22px; margin: 0; float: none; }
    #myModal form [type=submit] { margin-top: 6px !important; }
    /* "Cerrar" queda discreto: la acción principal es "Finalizar compra" */
    #myModal .modal-footer { border-top: 0; padding: 0 18px calc(14px + env(safe-area-inset-bottom)); justify-content: center; }
    #myModal .modal-footer .btn {
        background: none !important; border: 0 !important; color: var(--bm-muted) !important;
        font-size: 15px; font-weight: 600; padding: 10px 16px;
    }

    /* Avisos tipo toast centrados abajo */
    .toast-container-custom { left: 12px !important; right: 12px !important; bottom: 16px !important; top: auto !important; transform: none !important; }
    .toast-custom { width: 100% !important; max-width: none !important; }
    .carrito-mensaje { left: 12px !important; right: 12px !important; width: auto !important; transform: none !important; }
}

/* ---------------------------------------------------------------------
   CELULAR (≤ 575 px)
   --------------------------------------------------------------------- */
@media (max-width: 575.98px) {
    :root { --bm-gutter: 14px; }
    #categorias_imagenes > * { flex-basis: 40%; max-width: 40%; }
    /* Portada más baja en celular: se ve el inicio de la tienda sin tanto scroll */
    #carouselExample_fotosmain .carousel-inner { height: clamp(300px, 48vh, 400px); }
    #contacto_link { display: none; }
}

/* Tablets en horizontal: 3 categorías visibles */
@media (min-width: 576px) and (max-width: 991.98px) {
    #categorias_imagenes > * { flex-basis: 28%; max-width: 28%; }
}

/* =====================================================================
   NOVIEMBRE (b) — celular / tablet
   ===================================================================== */
@media (max-width: 991.98px) {
    /* Categorías de la portada: una debajo de la otra, de borde a borde */
    .container.py-5:has(#categorias_imagenes) { padding: 0 !important; max-width: none; }
    #categorias_imagenes {
        display: flex !important; flex-direction: column; flex-wrap: nowrap; gap: 3px !important;
        overflow: visible !important; margin: 0 !important; padding: 0 !important; scroll-snap-type: none;
    }
    #categorias_imagenes > * { flex: none !important; max-width: none !important; width: 100% !important; padding: 0 !important; margin: 0 !important; }
    #categorias_imagenes .category-card { position: relative; display: block; gap: 0; border-radius: 0; overflow: hidden; }
    #categorias_imagenes .category-card img {
        width: 100% !important; aspect-ratio: 5 / 2; height: auto !important; border-radius: 0 !important; display: block;
        transition: transform .6s ease;
        object-position: var(--cat-fx, 50%) var(--cat-fy, 50%);   /* encuadre elegido en el panel */
    }
    #categorias_imagenes .category-card:active img { transform: scale(1.02); }
    #categorias_imagenes .category-card::after {
        content: ""; position: absolute; inset: 0; pointer-events: none;
        background: rgba(0, 0, 0, .28);
    }
    #categorias_imagenes .category-text {
        position: absolute !important; left: 0; right: 0; top: 50%; bottom: auto; transform: translateY(-50%) !important; z-index: 2;
        color: #fff !important; text-shadow: 0 2px 10px rgba(0, 0, 0, .45) !important;
        font-size: 17px !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-align: center !important;
    }
    #categorias_imagenes .category-text::after {
        content: "Ver productos"; display: block; margin-top: 4px; font-size: 10px; font-weight: 600; letter-spacing: .2em; opacity: .9;
    }
    #categorias_imagenes .category-card.bm-no-img { aspect-ratio: 5 / 2; background: #2b2826; }
    #categorias_imagenes .category-card.bm-no-img::after { display: none; }

    /* Barra del listado */
    .bx-toolbar { flex-wrap: wrap; }
    .bx-cat { flex: 1 1 100%; }
    .bx-cat-btn { flex: 1; justify-content: center; height: 42px; }
    .bx-cat-panel { left: 0; right: 0; width: auto; }
    .bx-cat-panel .bx-chips { margin: 0; padding: 0; }
    .bx-tools { margin-left: 0; }

    /* Menú lateral */
    #bdNavbar #navbar { display: none !important; }
    #bdNavbar .offcanvas-body { padding: 8px 20px 24px; display: flex; flex-direction: column; }
    .bm-side { display: flex; flex-direction: column; flex: 1; }
    .bm-side-search {
        height: 46px; border-radius: 999px; border: 1px solid var(--bm-line, #e8e2db); background: #f6f3ef; color: #8a847d;
        font-size: 14px; display: flex; align-items: center; gap: 10px; padding: 0 18px; margin: 6px 0 18px; text-align: left;
    }
    .bm-side-label { margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #8a847d; }
    .bm-side-cats, .bm-side-links { list-style: none; margin: 0; padding: 0; }
    .bm-side-cats li + li { border-top: 1px solid #efebe6; }
    .bm-side-cats button {
        width: 100%; border: 0; background: none; padding: 10px 2px; display: flex; align-items: center; gap: 14px;
        font-size: 15.5px; font-weight: 600; color: #1b1a19; text-align: left;
    }
    .bm-side-cats button > span:nth-child(2) { flex: 1; }
    .bm-side-cats button > .fa-chevron-right, .bm-side-cats button > svg:last-child { font-size: 12px; color: #b5aea7; width: 12px; }
    .bm-side-ico {
        width: 44px; height: 44px; flex: 0 0 44px; border-radius: 10px; overflow: hidden; background: #f6f3ef;
        display: flex; align-items: center; justify-content: center; color: #8a847d; font-size: 16px;
    }
    .bm-side-ico img { width: 100%; height: 100%; object-fit: cover; }
    .bm-side-links { margin-top: 18px; padding-top: 14px; border-top: 1px solid #e8e2db; }
    .bm-side-links a { display: flex; align-items: center; gap: 12px; padding: 10px 2px; font-size: 15px; font-weight: 500; color: #34312e; text-decoration: none; }
    .bm-side-links a svg, .bm-side-links a i { width: 18px; color: #8a847d; }
    .bm-side-foot { margin-top: auto; padding-top: 22px; }
    .bm-side-wa {
        display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px; border-radius: 10px;
        background: #1b1a19; color: #fff !important; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-decoration: none;
    }
    .bm-side-foot p { margin: 12px 0 4px; font-size: 13px; color: #8a847d; display: flex; gap: 8px; align-items: center; }
    .bm-side-ig { font-size: 13px; color: #1b1a19 !important; text-decoration: none; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }

    /* Carrito: continuar comprando */
    #modallong .modal-footer .bc-seguir { order: 3; width: 100%; justify-content: center; }

    /* Preguntas frecuentes más compactas */
    .container:has(> #accordionExample) { margin-top: 10px !important; margin-bottom: 18px !important; }
    .container:has(> #accordionExample) > h4 { font-size: 13px !important; margin-bottom: 6px !important; }
    #accordionExample .accordion-button { padding: 12px 2px; font-size: 14px; }
    #accordionExample .accordion-body { padding: 0 2px 12px; font-size: 13.5px; }
}

/* =====================================================================
   NOVIEMBRE (c) — listado en celular: 2 columnas, fotos altas de borde a borde
   ===================================================================== */
@media (max-width: 991.98px) {
    #contenedor_productos .row {
        --bs-gutter-x: 3px;
        margin-left: calc(-1 * var(--bm-gutter) - 1.5px); margin-right: calc(-1 * var(--bm-gutter) - 1.5px);
    }
    #contenedor_productos .row > .col { padding-left: 1.5px; padding-right: 1.5px; margin-bottom: 18px !important; }
    #contenedor_productos .card-img { aspect-ratio: 3 / 4; border-radius: 0; }
    #contenedor_productos .card-detail { margin-top: 8px !important; padding: 0 10px; }
    #contenedor_productos .card-title { font-size: 12px !important; margin-bottom: 2px !important; }
    #contenedor_productos .card-title a { font-weight: 500; letter-spacing: .02em; -webkit-line-clamp: 1; }
    #contenedor_productos .card-price { font-size: 13px; font-weight: 600; }
    #contenedor_productos .card-price .fw-normal { font-weight: 600 !important; }
    #contenedor_productos .card-price .text-decoration-line-through { font-size: 11.5px; }
    .product-content .product-card .cart-button .btn { width: 32px; height: 32px; }
    .product-content .product-card .cart-button svg { width: 15px; height: 15px; }
    .bm-badge { font-size: 9.5px; padding: 3px 6px; border-radius: 3px; }
}
