/* ==========================================================================
   Carnicería Cano - Sistema de Diseño & Tipografía Homogénea (UI/UX)
   ========================================================================== */

:root {
    --cano-dark: #1A0909;
    --cano-red: #7E1414;
    --cano-red-bright: #AB1E1E;
    --cano-gold: #D4AF37;
    --cano-yellow: #FFC107;
    --cano-bg-mobile: #F7F3EE;
    --cano-card-mobile: #FFFFFF;
    --cano-text-main: #211917;
    --cano-text-muted: #665B55;
}

html {
    scrollbar-gutter: stable;
    overflow-y: scroll;
}

/* Sistema Tipográfico Homogéneo */
h1, h2, h3, h4, h5,
.font-serif,
.results-heading,
.results-heading-pro,
.hero-marketing-title,
.brand-title {
    font-family: Georgia, "Times New Roman", serif !important;
}

body, button, input, select, textarea,
.btn, .nav-link, .eyebrow-badge, .badge, .category-chip-btn, .page-link-store {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* Fondo unificado en todo el sitio (Elimina franjas naranjas desalineadas) y prevención de desborde horizontal */
html, body {
    background: #F7F3EE !important;
    color: var(--cano-text-main) !important;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden !important;
    overflow-x: clip !important;
    max-width: 100vw;
}

body.mobile-first-app {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden !important;
    overflow-x: clip !important;
}

/* Banner de Encabezado Unificado y Consistente para todas las páginas */
.page-header-banner {
    background: linear-gradient(180deg, #1A0909 0%, #3B0A0A 100%) !important;
    border-bottom: 3px solid var(--cano-gold) !important;
    padding: 1.5rem 1.75rem !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
    margin-bottom: 2rem !important;
}

.page-header-banner .eyebrow-badge {
    color: var(--cano-yellow) !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.35rem;
}

.page-header-banner h2,
.page-header-banner .results-heading {
    color: #FFFFFF !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: clamp(1.4rem, 2.5vw, 2rem) !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.page-header-banner p {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.95rem !important;
    margin-top: 0.35rem !important;
    margin-bottom: 0 !important;
}

/* Marketing Urgency Bar */
.marketing-urgency-bar {
    background: #140707 !important;
    font-size: 0.78rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    line-height: 1.4;
    padding: 0.4rem 0.75rem !important;
}

.branch-hours-carousel {
    display: inline-block;
    height: 1.2rem;
    max-width: min(70vw, 760px);
    overflow: hidden;
    vertical-align: middle;
}

.branch-hours-track {
    display: flex;
    flex-direction: column;
    animation: branch-hours-up 12s linear infinite;
}

.branch-hours-item {
    display: block;
    height: 1.2rem;
    line-height: 1.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.branch-hours-carousel:hover .branch-hours-track {
    animation-play-state: paused;
}

@keyframes branch-hours-up {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
}

@media (max-width: 575.98px) {
    .branch-hours-carousel { max-width: 58vw; }
    .delivery-radius-note { display: block; }
}

/* Header & Navbar Unificados */
.store-header {
    background: #1A0909;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.storefront-nav-mobile,
.storefront-nav {
    background: rgba(45, 12, 12, 0.95) !important;
    backdrop-filter: blur(14px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    padding: 0.6rem 0.9rem;
}

.brand-logo {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--cano-gold);
    background: #ffffff;
    flex-shrink: 0;
}

.brand-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #FFFFFF !important;
}

@media (max-width: 991.98px) {
    .brand-logo {
        width: 48px;
        height: 48px;
    }
    .brand-lockup {
        max-width: calc(100% - 50px);
    }
    .brand-title {
        font-size: 1.05rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .brand-lockup small {
        font-size: 0.75rem;
        white-space: nowrap;
    }
}

@media (max-width: 400px) {
    .brand-lockup small {
        display: none !important;
    }
}

.btn-quick-cart-header {
    background: rgba(255, 255, 255, 0.15);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* Reglas para visibilidad de texto en Menú Desplegable */
.navbar-nav .nav-link,
.navbar-nav .storefront-menu-link,
.storefront-nav-mobile .nav-link,
.storefront-nav-mobile .storefront-menu-link,
.storefront-menu-link {
    color: #FFFFFF !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    padding: 0.65rem 1rem !important;
    border-radius: 10px;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.navbar-nav .nav-link i,
.storefront-menu-link i {
    color: var(--cano-yellow) !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .storefront-menu-link:hover,
.storefront-nav-mobile .nav-link:hover,
.storefront-nav-mobile .storefront-menu-link:hover {
    color: var(--cano-yellow) !important;
    background: rgba(255, 255, 255, 0.12) !important;
}

.navbar-nav .nav-link.active,
.navbar-nav .storefront-menu-link.active,
.storefront-nav-mobile .nav-link.active,
.storefront-nav-mobile .storefront-menu-link.active {
    color: #FFFFFF !important;
    background: var(--cano-red) !important;
    box-shadow: 0 4px 12px rgba(126, 20, 20, 0.4);
}

.nav-cart-badge {
    background: var(--cano-yellow);
    color: #1A0909;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    margin-left: 0.4rem;
}

.btn-system-access {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid var(--cano-yellow) !important;
    color: #FFFFFF !important;
    padding: 0.6rem 1rem !important;
    border-radius: 10px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
    transition: all 0.2s ease;
}

.btn-system-access:hover {
    background: var(--cano-yellow) !important;
    color: #1A0909 !important;
}

/* Hero Mobile Marketing & Buscador */
.hero-mobile-marketing {
    background: radial-gradient(circle at 75% 25%, rgba(200, 35, 35, 0.4) 0%, rgba(126, 20, 20, 0.95) 55%, #2B0707 100%), linear-gradient(145deg, #7E1414 0%, #3B0A0A 100%);
    padding: 2.25rem 0 2.75rem;
    color: #FFFFFF;
    border-bottom: 3px solid var(--cano-gold);
    box-shadow: inset 0 -8px 16px rgba(0, 0, 0, 0.25);
}

.badge-marketing {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 193, 7, 0.15);
    color: var(--cano-yellow);
    border: 1px solid var(--cano-yellow);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
}

.hero-marketing-title {
    font-size: clamp(1.6rem, 5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-top: 0.5rem;
    margin-bottom: 0.6rem;
}

.hero-marketing-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Misma altura para input y botón de búsqueda */
.search-hero-box form {
    display: flex;
    align-items: stretch;
}

.search-hero-box .form-control,
.search-hero-box .btn {
    height: 52px !important;
    min-height: 52px !important;
    line-height: 1 !important;
}

.input-group .form-control,
.input-group .btn {
    min-height: 42px !important;
    height: 42px !important;
}

.marketing-trust-badges span {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.promo-card-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
}

/* Category Carousel Shell & Nav Arrows */
.category-carousel-shell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    padding: 0.25rem 0;
}

.category-horizontal-scroll-container {
    flex-grow: 1;
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.35rem 0;
}

.category-horizontal-scroll-container::-webkit-scrollbar {
    display: none;
}

.category-carousel-arrow {
    background: #FFFFFF !important;
    border: 1px solid #E2D9CD !important;
    color: var(--cano-red) !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    z-index: 5;
}

.category-carousel-arrow:hover {
    background: var(--cano-red) !important;
    color: #FFFFFF !important;
    border-color: var(--cano-red) !important;
    transform: scale(1.08);
}

.category-chip-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    background: #FFFFFF;
    border: 1px solid #E2D9CD;
    color: var(--cano-text-main);
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.category-chip-btn.active,
.category-chip-btn:hover {
    background: var(--cano-red);
    color: #FFFFFF;
    border-color: var(--cano-red);
    box-shadow: 0 4px 12px rgba(126, 20, 20, 0.3);
}

/* Mobile Quick Category Cards */
.quick-category-card {
    display: block;
    background: #FFFFFF;
    border-radius: 14px;
    padding: 1rem;
    border: 1px solid #EAE2D7;
    box-shadow: var(--cano-shadow-mobile);
}

.quick-cat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.quick-cat-title {
    font-weight: 800;
    color: var(--cano-text-main);
    font-size: 0.92rem;
}

.quick-cat-sub {
    font-size: 0.75rem;
    color: var(--cano-text-muted);
}

/* Product Card Mobile UI */
.product-card-mobile {
    background: var(--cano-card-mobile);
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card-header {
    position: relative;
}

.product-image-wrap {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
    background: #F5EEE6;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-cat-name {
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--cano-text-muted);
    letter-spacing: 0.04em;
}

.product-title-mobile {
    font-size: 0.92rem;
    font-weight: 800;
    margin: 0.15rem 0 0.4rem;
    line-height: 1.25;
}

.product-title-mobile a {
    color: var(--cano-text-main);
    text-decoration: none;
}

.product-price-row-mobile {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.price-text {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--cano-red);
}

.stock-badge {
    font-size: 0.72rem;
    font-weight: 700;
}

.quantity-touch-stepper {
    display: flex;
    align-items: center;
    border: 1px solid #DDD3C5;
    border-radius: 8px;
    overflow: hidden;
    background: #F9F6F1;
    height: 38px;
}

.btn-step-touch {
    border: none;
    background: #EBE2D5;
    color: var(--cano-red);
    width: 38px;
    height: 100%;
    font-weight: 800;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s ease;
    flex-shrink: 0;
}

.btn-step-touch:hover {
    background: #DFD3C3;
}

.btn-step-touch:active {
    background: #D3C4B0;
}

.qty-touch-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    padding: 0;
    box-shadow: none !important;
    height: 100%;
}

.btn-add-touch {
    background: var(--cano-red);
    color: #FFFFFF;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 3px 10px rgba(126, 20, 20, 0.25);
}

.btn-add-touch:active {
    transform: scale(0.98);
}

/* Paginación - Respetando CSS & Mobile-First */
.catalog-pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.35rem !important;
    margin: 2rem auto !important;
    padding: 0.5rem 0.75rem !important;
    background: #FFFFFF !important;
    border-radius: 14px !important;
    border: 1px solid #EAE2D7 !important;
    box-shadow: var(--cano-shadow-mobile) !important;
    width: fit-content !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
}

.catalog-pagination::-webkit-scrollbar {
    display: none !important;
}

.page-link-store,
.catalog-pagination a,
.catalog-pagination span.disabled {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 36px !important;
    height: 36px !important;
    padding: 0 0.5rem !important;
    border-radius: 10px !important;
    background: #F8F4EE !important;
    color: #211917 !important;
    border: 1px solid #E2D9CD !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    text-decoration: none !important;
    transition: all 0.18s ease !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}

.page-link-store.disabled,
.catalog-pagination span.disabled {
    background: transparent !important;
    border-color: transparent !important;
    color: var(--cano-text-muted) !important;
    cursor: default !important;
    min-width: 20px !important;
    padding: 0 !important;
}

.page-link-store:hover,
.catalog-pagination a:hover {
    background: var(--cano-red) !important;
    color: #FFFFFF !important;
    border-color: var(--cano-red) !important;
}

.page-link-store.active,
.catalog-pagination a.active {
    background: var(--cano-red) !important;
    color: #FFFFFF !important;
    border-color: var(--cano-red) !important;
    box-shadow: 0 4px 12px rgba(126, 20, 20, 0.3) !important;
}

/* Footer Simplificado Centrado Sin Texto */
.store-footer-centered {
    background: transparent;
    padding: 2rem 0 100px !important;
}

@media (min-width: 992px) {
    .store-footer-centered {
        padding: 2.5rem 0 3rem !important;
    }
}

.footer-logo-only {
    width: 110px;
    height: auto;
    max-height: 110px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

/* Branch Carousel / Grid (Sucursales: Grid completo en PC, Carrusel en Móviles) */
.branch-carousel-shell {
    position: relative;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0.25rem 0;
}

.branch-carousel-card {
    background: #f8f9fa;
    border-radius: 0.85rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.branch-carousel-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.09);
}

.branch-map-link:hover {
    color: var(--cano-red, #8B0000) !important;
    text-decoration: underline !important;
}

/* En PC (>= 992px): Abarca todo el frame completo en Grid responsivo */
@media (min-width: 992px) {
    .branch-carousel-shell {
        max-width: 100%;
        display: block;
    }
    .branch-horizontal-scroll-container {
        overflow: visible !important;
        width: 100%;
        padding: 0;
    }
    .branch-horizontal-wrapper {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
        gap: 1.25rem !important;
        width: 100% !important;
        justify-content: stretch !important;
    }
    .branch-carousel-card {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: 100%;
    }
    .branch-carousel-arrow {
        display: none !important;
    }
}

/* En Pantallas Pequeñas y Móviles (< 992px): Carrusel horizontal con flechas y touch */
@media (max-width: 991.98px) {
    .branch-carousel-shell {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        max-width: 100%;
    }
    .branch-horizontal-scroll-container {
        flex-grow: 1;
        overflow-x: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-snap-type: x mandatory;
        padding: 0.5rem 0.25rem;
    }
    .branch-horizontal-scroll-container::-webkit-scrollbar {
        display: none;
    }
    .branch-horizontal-wrapper {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 0.85rem !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        width: max-content !important;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
    .branch-carousel-card {
        flex: 0 0 82vw !important;
        max-width: 340px !important;
        min-width: 270px !important;
        scroll-snap-align: start;
    }
    .branch-carousel-arrow {
        background: #FFFFFF !important;
        border: 1px solid #E2D9CD !important;
        color: var(--cano-red, #8B0000) !important;
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        border-radius: 50% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        z-index: 5;
        flex-shrink: 0;
    }
    .branch-carousel-arrow:hover {
        background: var(--cano-red, #8B0000) !important;
        color: #FFFFFF !important;
        border-color: var(--cano-red, #8B0000) !important;
        transform: scale(1.08);
    }
}

/* Sticky Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(26, 9, 9, 0.96);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.4rem 0.2rem;
    z-index: 1050;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
}

.mobile-nav-item i {
    font-size: 1.25rem;
    margin-bottom: 0.1rem;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
    color: var(--cano-gold);
}

.nav-whatsapp {
    color: #25D366 !important;
}

@media (min-width: 992px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}

/* ==========================================================================
   Feedback Interactivo: Botones "Agregar" Verde, Animación Bolsa 👜 & Modal
   ========================================================================== */
.btn-add-touch {
    background: var(--cano-red);
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    padding: 0.6rem 1rem;
    font-weight: 800;
    font-size: 0.9rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-add-touch.btn-added-success {
    background: #198754 !important;
    border-color: #198754 !important;
    color: #FFFFFF !important;
    transform: scale(0.97);
    box-shadow: 0 4px 14px rgba(25, 135, 84, 0.45) !important;
}

/* Animación de "rebote / crecimiento" para la bolsa 👜 */
@keyframes cartBagBounce {
    0% { transform: scale(1); }
    30% { transform: scale(1.45) rotate(-10deg); }
    50% { transform: scale(1.2) rotate(8deg); }
    70% { transform: scale(1.3) rotate(-4deg); }
    100% { transform: scale(1); }
}

.bag-bounce-anim {
    animation: cartBagBounce 0.65s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    display: inline-block !important;
}

/* Chips de indicaciones rápidas en el Modal de Comentarios */
.comment-chip-btn {
    background: #F4EFEA;
    border: 1px solid #DFD5C8;
    color: #211917;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    display: inline-flex;
    align-items: center;
}

.comment-chip-btn:hover {
    background: #EAE0D3;
    border-color: var(--cano-gold);
}

.comment-chip-btn.active {
    background: var(--cano-red) !important;
    color: #FFFFFF !important;
    border-color: var(--cano-red) !important;
    box-shadow: 0 3px 8px rgba(126, 20, 20, 0.3) !important;
}

/* ==========================================================================
   Mapa Interactivo de Sucursales & Radio de Cobertura (5 km)
   ========================================================================== */
#storefrontMap {
    width: 100%;
    max-width: 100%;
    height: 320px;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    z-index: 1;
    border: 2px solid var(--cano-gold);
    overflow: hidden !important;
}

.map-branch-card {
    background: #FFFFFF;
    border: 1px solid #E2D9CD;
    border-radius: 12px;
    padding: 0.6rem 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.map-branch-card:hover,
.map-branch-card.active {
    border-color: var(--cano-red);
    background: #FDF9F5;
    box-shadow: 0 4px 12px rgba(126, 20, 20, 0.15);
}

.leaflet-popup-content-wrapper {
    border-radius: 12px !important;
    padding: 0.2rem !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2) !important;
}

.custom-map-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cano-red);
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    font-size: 1.1rem;
}

/* ==========================================================================
   Ficha de Producto: Galería, Carrusel y Miniaturas Interactivas
   ========================================================================== */
.product-detail-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 992px) {
    .product-detail-shell {
        grid-template-columns: 1.05fr 1fr;
        gap: 2.2rem;
        align-items: start;
    }
}

.product-detail-gallery {
    position: relative;
    width: 100%;
}

.product-detail-main-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: #F8F6F2;
    overflow: hidden;
    user-select: none;
    border: 1px solid #EAE2D7;
    cursor: zoom-in;
}

.product-detail-main-image.is-zoomed {
    cursor: crosshair;
}

.product-detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.15s ease-out, opacity 0.22s ease-in-out;
    transform-origin: center center;
    will-change: transform, transform-origin;
}

.product-detail-main-image.is-zoomed .product-detail-image {
    transform: scale(2.3);
    transition: opacity 0.22s ease-in-out;
}

/* Indicador de Lupa / Zoom al pasar el ratón */
.product-gallery-zoom-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 5;
    background: rgba(20, 10, 10, 0.78);
    backdrop-filter: blur(6px);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    pointer-events: none;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.product-detail-main-image:hover .product-gallery-zoom-badge {
    opacity: 1;
    background: rgba(126, 20, 20, 0.9);
    border-color: var(--cano-gold, #D4AF37);
}

/* Flechas de Navegación del Carrusel Principal */
.product-gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--cano-red, #7E1414);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    cursor: pointer;
    z-index: 6;
    transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-gallery-nav-btn:hover {
    background: #FFFFFF;
    color: #4A0B0B;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.product-gallery-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.product-gallery-prev {
    left: 12px;
}

.product-gallery-next {
    right: 12px;
}

.product-gallery-badge {
    z-index: 5;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    pointer-events: none;
    background: rgba(30, 20, 20, 0.75) !important;
    backdrop-filter: blur(4px);
}

.product-gallery-zoom-btn {
    z-index: 7;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    color: #333333;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    cursor: pointer;
}

.product-gallery-zoom-btn:hover {
    background: #FFFFFF;
    color: var(--cano-red, #7E1414);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

#lightboxImage {
    cursor: zoom-in;
    transition: transform 0.22s ease-out;
}

/* Carrusel de Miniaturas Inferiores */
.product-detail-thumbs-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.product-detail-thumbs-track {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 4px 2px 8px 2px;
    width: 100%;
    scrollbar-width: thin;
    scrollbar-color: #DDD3C5 transparent;
    -webkit-overflow-scrolling: touch;
}

.product-detail-thumbs-track::-webkit-scrollbar {
    height: 5px;
}

.product-detail-thumbs-track::-webkit-scrollbar-thumb {
    background: #DDD3C5;
    border-radius: 4px;
}

.product-detail-thumb {
    flex: 0 0 84px;
    width: 84px;
    height: 63px;
    aspect-ratio: 4 / 3;
    border: 2px solid #EAE2D7;
    border-radius: 10px;
    background: #F8F6F2;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s ease;
    outline: none;
}

.product-detail-thumb:hover {
    border-color: #B88B8B;
    transform: translateY(-2px);
}

.product-detail-thumb.active {
    border-color: var(--cano-red, #7E1414);
    box-shadow: 0 0 0 1px var(--cano-red, #7E1414), 0 3px 10px rgba(126, 20, 20, 0.28);
    transform: translateY(-2px);
}

.thumbs-scroll-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid #DDD3C5;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cano-red, #7E1414);
    cursor: pointer;
    z-index: 2;
    flex-shrink: 0;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.thumbs-scroll-btn:hover {
    background: #FDF9F5;
    transform: scale(1.08);
}

/* Lightbox Modal para Pantalla Completa (Zoom) */
.lightbox-modal-content {
    background: rgba(18, 14, 14, 0.96) !important;
    border: none;
    position: relative;
}

.lightbox-close-btn {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.75) !important;
    color: #FFFFFF !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.25rem !important;
    cursor: pointer !important;
    z-index: 1050 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5) !important;
    transition: all 0.2s ease !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
}

.lightbox-close-btn:hover,
.lightbox-close-btn:active {
    background: rgba(200, 30, 30, 0.95) !important;
    border-color: #FFFFFF !important;
    color: #FFFFFF !important;
    transform: scale(1.08) !important;
}

@media (max-width: 576px) {
    .lightbox-close-btn {
        top: 10px !important;
        right: 10px !important;
        width: 44px !important;
        height: 44px !important;
        font-size: 1.25rem !important;
    }
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.lightbox-nav-btn:hover {
    background: rgba(0, 0, 0, 0.88);
    border-color: #FFFFFF;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@media (max-width: 576px) {
    .product-gallery-nav-btn {
        width: 38px;
        height: 38px;
        font-size: 1.15rem;
    }
    .product-gallery-prev {
        left: 8px;
    }
    .product-gallery-next {
        right: 8px;
    }
    .product-detail-thumb {
        flex: 0 0 72px;
        width: 72px;
        height: 54px;
    }
    .lightbox-nav-btn {
        width: 42px;
        height: 42px;
        font-size: 1.3rem;
    }
    .lightbox-prev {
        left: 10px;
    }
    .lightbox-next {
        right: 10px;
    }
}
