/* ==========================================================================
   MS BOUTIQUE - SISTEMA DE DISEÑO HIGH FASHION LUXURY
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800;900&family=Cormorant+Garamond:ital,wght@0,600;0,700;1,600;1,700&family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600;1,700&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* Paleta MS Luxury */
    --color-bg: #FAF8F5;
    --color-surface: #FFFFFF;
    --color-dark-bg: #0C0C0C;
    --color-dark-card: #161616;
    
    --color-gold: #C5A880;
    --color-gold-dark: #A48458;
    --color-gold-light: #F4ECE1;
    --color-gold-accent: #D4AF37;
    
    --color-gray-light: #F0EDE8;
    --color-text-dark: #121212;
    --color-text-muted: #6E6E6E;
    --color-text-light: #F0F0F0;
    
    /* Tipografía Alta Costura "Lethal Luxury" */
    --font-heading: 'Cinzel', 'Playfair Display', serif;
    --font-body: 'Outfit', 'Poppins', sans-serif;
    --font-accent: 'Cormorant Garamond', serif;
    
    /* Sombras y Radios */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-pill: 50px;
    
    --shadow-soft: 0 8px 25px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 16px 35px rgba(197, 168, 128, 0.2);
    --shadow-nav: 0 4px 25px rgba(0, 0, 0, 0.25);
}

/* --- BASE --- */
body {
    background-color: var(--color-bg);
    color: var(--color-text-dark);
    font-family: var(--font-body);
    font-size: 0.9rem;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    line-height: 1.6;
    letter-spacing: 0.2px;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text-dark);
    letter-spacing: 0.5px;
}

a {
    color: var(--color-gold-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-gold-accent);
}

/* --- CINTA ANUNCIO SUPERIOR EN MOVIMIENTO (MARQUEE) --- */
.announcement-bar {
    background: linear-gradient(90deg, var(--color-gold-dark) 0%, var(--color-gold-accent) 50%, var(--color-gold-dark) 100%);
    color: #0C0C0C;
    overflow: hidden;
    white-space: nowrap;
    padding: 8px 0;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    z-index: 1045;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    user-select: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 22s linear infinite;
}

.announcement-bar:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding-right: 3rem;
    flex-shrink: 0;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.marquee-item i {
    font-size: 1.1rem;
}

.marquee-divider {
    opacity: 0.6;
    font-weight: 400;
    margin: 0 0.2rem;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* --- ENCABEZADO Y NAVBAR OSCURO ELEGANTE --- */
.navbar {
    background: var(--color-dark-bg) !important;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-nav);
    padding: 1.1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(197, 168, 128, 0.25);
}

/* LOGO MS PROTAGONISTA */
.navbar-brand-ms {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 6px;
    text-transform: uppercase;
    line-height: 1;
    background: linear-gradient(135deg, #FFFFFF 0%, var(--color-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
    display: inline-block;
}

.navbar-brand-ms:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #FFFFFF 0%, var(--color-gold-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-logo-img {
    height: 52px;
    width: auto;
    max-height: 55px;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.brand-logo-img:hover {
    transform: scale(1.04);
}

/* ENLACES DEL MENÚ */
.nav-link-ms {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #E0E0E0 !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: var(--radius-pill);
    transition: all 0.3s ease;
}

.nav-link-ms:hover, .nav-link-ms.active {
    color: var(--color-gold) !important;
    background: rgba(197, 168, 128, 0.12);
}

/* Buscador Navbar */
.search-input-navbar {
    border: 1px solid rgba(197, 168, 128, 0.3);
    border-radius: var(--radius-pill);
    padding: 0.45rem 1.2rem;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    transition: all 0.3s ease;
}

.search-input-navbar::placeholder {
    color: #A0A0A0;
}

.search-input-navbar:focus {
    outline: none;
    border-color: var(--color-gold);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 4px rgba(197, 168, 128, 0.15);
    color: #FFFFFF;
}

/* Icono Carrito */
.cart-icon-container {
    position: relative;
    font-size: 1.3rem;
    color: var(--color-gold);
    cursor: pointer;
    padding: 9px 15px;
    border-radius: var(--radius-pill);
    background: rgba(197, 168, 128, 0.12);
    border: 1px solid rgba(197, 168, 128, 0.3);
    transition: all 0.3s ease;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cart-icon-container:hover {
    transform: translateY(-2px);
    background: rgba(197, 168, 128, 0.25);
    color: #FFFFFF;
}

.cart-counter {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--color-gold-dark);
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50%;
    width: 21px;
    height: 21px;
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid #FFFFFF;
}

/* --- HERO BANNER MODERN Y LIMPIO --- */
/* ==========================================================================
   BOTONES DE FILTRO CATEGORÍA ACTIVO - BOUTIQUE MS
   ========================================================================== */
#filtro-categorias-container .btn {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-weight: 500;
    border: 1px solid rgba(197, 168, 128, 0.35) !important;
    color: #4A4A4A !important;
    background-color: #FFFFFF !important;
}

#filtro-categorias-container .btn:hover {
    border-color: var(--color-gold) !important;
    background-color: #FAF7F2 !important;
    color: #121212 !important;
}

#filtro-categorias-container .btn.active,
#filtro-categorias-container .btn-boutique-primary {
    background: linear-gradient(135deg, #121212 0%, #222222 100%) !important;
    color: var(--color-gold) !important;
    border-color: var(--color-gold) !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(18, 18, 18, 0.25) !important;
}

.btn-boutique-primary {
    background: linear-gradient(135deg, #121212 0%, #262626 100%) !important;
    color: var(--color-gold) !important;
    border: 1px solid var(--color-gold) !important;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-boutique-primary:hover {
    background: var(--color-gold) !important;
    color: #121212 !important;
    box-shadow: 0 6px 20px rgba(197, 168, 128, 0.35) !important;
}

.hero-section {
    position: relative;
    padding: 6rem 0 5rem;
    background: linear-gradient(135deg, #FAF7F2 0%, #F2E9DE 100%);
    overflow: hidden;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.15;
    color: #121212;
    margin-bottom: 1.4rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-title span {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 700;
    text-transform: capitalize;
    background: linear-gradient(135deg, #121212 0%, var(--color-gold-dark) 50%, var(--color-gold-accent) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: goldShimmerText 5s linear infinite;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 2.2rem;
    max-width: 520px;
    font-weight: 300;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(197, 168, 128, 0.3);
}

.hero-logo-showcase {
    background: linear-gradient(145deg, #121212 0%, #1C1C1C 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(197, 168, 128, 0.35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    min-height: 420px;
    position: relative;
    overflow: hidden;
}

.hero-logo-showcase::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(197, 168, 128, 0.15) 0%, transparent 65%);
    pointer-events: none;
}

.hero-logo-main {
    animation: floatHero 6s ease-in-out infinite;
    transition: transform 0.5s ease;
}

.hero-logo-showcase:hover .hero-logo-main {
    transform: scale(1.05);
}

/* BOTÓN COMPRAR AHORA COMPACTO */
.btn-boutique-primary {
    background: #121212;
    color: #FFFFFF !important;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0.85rem 2.2rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--color-gold);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.35s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-boutique-primary:hover {
    background: var(--color-gold-dark);
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(197, 168, 128, 0.4);
}

.btn-boutique-outline {
    background-color: transparent;
    color: #121212 !important;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-pill);
    border: 1px solid #121212;
    transition: all 0.3s ease;
}

.btn-boutique-outline:hover {
    background-color: #121212;
    color: var(--color-gold) !important;
    transform: translateY(-2px);
}

/* --- BARRA DE BENEFICIOS --- */
.benefits-section {
    background: var(--color-surface);
    padding: 2.2rem 1.2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(197, 168, 128, 0.2);
    margin-top: -2.5rem;
    position: relative;
    z-index: 10;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0.4rem;
}

.benefit-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: var(--color-gold-light);
    color: var(--color-gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    border: 1px solid rgba(197, 168, 128, 0.3);
    flex-shrink: 0;
}

.benefit-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.benefit-desc {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* --- TARJETAS DE CATEGORÍAS --- */
.category-card {
    position: relative;
    height: 300px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(197, 168, 128, 0.2);
    transition: all 0.4s ease;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.category-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12, 12, 12, 0.85) 0%, rgba(12, 12, 12, 0.05) 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.2rem;
    color: #FFFFFF;
    transition: all 0.3s ease;
}

.category-card-overlay h3 {
    font-size: clamp(0.95rem, 2.8vw, 1.2rem) !important;
    line-height: 1.15;
    margin-bottom: 3px;
}

.category-card:hover img {
    transform: scale(1.08);
}

.category-card:hover .category-card-overlay {
    background: linear-gradient(to top, rgba(197, 168, 128, 0.9) 0%, rgba(12, 12, 12, 0.15) 80%);
}

/* ==========================================================================
   TARJETAS DE PRODUCTO COMPACTAS
   ========================================================================== */
.product-card-premium {
    background: var(--color-surface);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(197, 168, 128, 0.22);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(197, 168, 128, 0.2);
    border-color: var(--color-gold);
}

.product-img-box {
    position: relative;
    height: 170px;
    min-height: 170px;
    max-height: 170px;
    overflow: hidden;
    background-color: var(--color-gray-light);
}

.product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card-premium:hover .product-img-box img {
    transform: scale(1.05);
}

.badge-boutique {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 2;
}

.badge-nuevo {
    background-color: #121212;
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
}

.badge-mas-vendido {
    background-color: var(--color-gold-dark);
    color: #FFFFFF;
}

.product-body-content {
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.product-category-tag {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-gold-dark);
    letter-spacing: 1.2px;
    margin-bottom: 2px;
    height: 14px;
    line-height: 14px;
    overflow: hidden;
}

.product-title-text {
    font-family: var(--font-heading);
    font-size: clamp(0.78rem, 2.5vw, 0.88rem);
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 4px;
    line-height: 1.25;
    min-height: 2.5em;
    max-height: 2.5em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.product-price-tag {
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 700;
    color: #121212;
    margin-bottom: 8px;
    height: 22px;
    line-height: 22px;
}

.product-controls-row {
    height: 30px;
    min-height: 30px;
    max-height: 30px;
}

.size-select-box {
    border: 1px solid rgba(197, 168, 128, 0.35);
    border-radius: 6px;
    font-size: 0.78rem;
    padding: 2px 6px;
    height: 30px;
    background-color: var(--color-bg);
    font-family: var(--font-body);
}

.size-select-box:focus {
    border-color: var(--color-gold-dark);
    outline: none;
}

.btn-agregar-card {
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   CARRITO OFFCANVAS Y CONTENEDOR ESTRICTO DE IMÁGENES
   ========================================================================== */
.offcanvas-cart {
    width: 440px !important;
    border-top-left-radius: var(--radius-lg);
    border-bottom-left-radius: var(--radius-lg);
}

.cart-item-card {
    background: var(--color-surface);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(197, 168, 128, 0.25);
    overflow: hidden;
}

.cart-item-img-box {
    width: 70px;
    height: 70px;
    min-width: 70px;
    min-height: 70px;
    max-width: 70px;
    max-height: 70px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background-color: var(--color-gray-light);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-img {
    width: 70px !important;
    height: 70px !important;
    max-width: 70px !important;
    max-height: 70px !important;
    object-fit: cover !important;
}

/* --- WHATSAPP FLOATING BUTTON --- */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFF !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 14px 35px rgba(37, 211, 102, 0.6);
}

/* --- FOOTER BOUTIQUE MS OSCURO ELEGANTE --- */
footer {
    background-color: #0C0C0C;
    color: #CCCCCC;
    padding: 4.5rem 0 2rem;
    margin-top: 5rem;
    border-top: 1px solid rgba(197, 168, 128, 0.3);
}

footer h5 {
    color: var(--color-gold);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 1.3rem;
    letter-spacing: 1px;
}

footer a {
    color: #A0A0A0;
}

footer a:hover {
    color: var(--color-gold);
}

.footer-social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(197, 168, 128, 0.1);
    border: 1px solid rgba(197, 168, 128, 0.3);
    color: var(--color-gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.footer-social-icons a:hover {
    background: var(--color-gold-dark);
    color: #FFFFFF;
    border-color: var(--color-gold-dark);
}

/* --- OFFCANVAS CARRITO (ESTILO VANGUARDISTA DE LA IMAGEN EN PALETA MS LUXURY) --- */
.offcanvas-cart {
    background-color: #0C0C0C !important;
    color: #FFFFFF;
    width: 420px !important;
    max-width: 90vw;
    border-left: 1px solid rgba(197, 168, 128, 0.25) !important;
}

.offcanvas-cart .offcanvas-header {
    background-color: #080808;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.bg-gold {
    background-color: var(--color-gold) !important;
}

.text-gold {
    color: var(--color-gold) !important;
}

.cart-item-row {
    background-color: #141414;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.cart-item-row:hover {
    border-color: rgba(197, 168, 128, 0.3) !important;
}

.cart-item-img-container {
    width: 75px;
    height: 75px;
    min-width: 75px;
    min-height: 75px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #1A1A1A;
    flex-shrink: 0;
}

.cart-item-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.88rem;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.cart-item-subtitle {
    font-size: 0.78rem;
    color: #999999;
    font-weight: 400;
}

.cart-item-price {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    color: #FFFFFF;
}

.cart-delete-btn {
    color: #777777 !important;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.cart-delete-btn:hover {
    color: #FF5252 !important;
}

.cart-qty-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 3px 12px;
    gap: 12px;
}

.cart-qty-pill button {
    background: none;
    border: none;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.cart-qty-pill button:hover {
    color: var(--color-gold);
}

.cart-qty-pill span {
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.85rem;
    min-width: 16px;
    text-align: center;
    font-family: monospace;
}

.offcanvas-cart .offcanvas-footer {
    background-color: #080808;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.cart-subtotal-label {
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 1.5px;
    font-size: 0.82rem;
    color: #AAAAAA;
    text-transform: uppercase;
}

.cart-subtotal-amount {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    color: #FFFFFF;
}

.letter-spacing-1 {
    letter-spacing: 1.5px;
}

/* ==========================================================================
   VISOR DE IMÁGENES / LIGHTBOX HIGH-FASHION
   ========================================================================== */
.visor-imagen-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 8, 8, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.visor-imagen-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.visor-imagen-container {
    position: relative;
    max-width: 92vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.visor-btn-cerrar {
    position: absolute;
    top: -45px;
    right: 0;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    font-size: 1.8rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    line-height: 1;
}

.visor-btn-cerrar:hover {
    background: var(--color-gold);
    color: #121212;
    transform: scale(1.1);
}

.visor-img-wrapper {
    overflow: auto;
    max-width: 100%;
    max-height: 80vh;
    border-radius: 16px;
    border: 1px solid rgba(197, 168, 128, 0.4);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    touch-action: manipulation;
}

.visor-img-wrapper img {
    max-width: 90vw;
    max-height: 78vh;
    object-fit: contain;
    display: block;
    border-radius: 14px;
    transition: transform 0.3s ease;
}

.visor-caption-text {
    margin-top: 14px;
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.img-zoom-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(18, 18, 18, 0.75);
    backdrop-filter: blur(4px);
    color: var(--color-gold);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    border: 1px solid rgba(197, 168, 128, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-img-box:hover .img-zoom-badge {
    opacity: 1;
    transform: scale(1.1);
}

.text-gold-light {
    color: #F4ECE1 !important;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

/* TARJETA DE FILTROS RESPONSIVA MS */
.filter-sidebar-card {
    border: 1px solid rgba(197, 168, 128, 0.22) !important;
}

@media (min-width: 992px) {
    .filter-sidebar-card {
        position: sticky !important;
        top: 100px !important;
    }
}

@media (max-width: 991.98px) {
    .filter-sidebar-card {
        position: relative !important;
        top: 0 !important;
        margin-bottom: 2.5rem !important;
    }
}
