:root {
    --bg-color: #000000;
    --surface-color: #ADD8E6;
    --logo-color: #565856;
    --text-primary: #000000;
    --text-secondary: #d60000;
    --text-dark: #0f172a;
    --text-muted-dark: #334155;
    
    /* Header Palette */
    --header-cyan: #7ae1e9;
    --header-silver: #b0b0b0;
    
    /* Cohesive Brand Accent System based on Header Palette */
    --accent-cyan: #7ae1e9;
    --accent-cyan-dark: #228175;     /* Deep Cyan Slate for high contrast (7.5:1 ratio) on light blue surfaces */
    --accent-cyan-hover: #54d5e2;
    --accent-cyan-light: #e6f9fb;
    --silver-accent: #b0b0b0;
    --slate-accent: #565856;
    --accent-color: #e5e5e5;
    --neon-accent: #E4FF30;
    
    --border-color: rgba(255, 255, 255, 0.1);
    --border-dark: rgba(15, 76, 86, 0.18);
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: linear-gradient(#7ae1e9 50%, #b0b0b0 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
}

.menu-btn, .cart-btn {
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, transform 0.2s ease;
}

.menu-btn:hover, .cart-btn:hover {
    color: var(--accent-cyan-dark);
    transform: scale(1.1);
}

.logo h1 {
    font-weight: 800;
    letter-spacing: 4px;
    font-size: 1.5rem;
    text-transform: uppercase;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--text-dark);
    color: var(--header-cyan);
    font-size: 0.75rem;
    font-weight: 800;
    height: 18px;
    min-width: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Sidebars Base */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    z-index: 150;
    transition: opacity 0.4s var(--transition);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-menu, .sidebar-cart {
    position: fixed;
    top: 0;
    height: 100%;
    width: 380px;
    max-width: 85vw;
    background-color: var(--surface-color);
    z-index: 200;
    display: flex;
    flex-direction: column;
    transition: transform 0.5s var(--transition);
    border: 1px solid var(--border-color);
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

.sidebar-menu {
    left: 0;
    transform: translateX(-100%);
    border-right: 1px solid var(--border-color);
}

.sidebar-cart {
    right: 0;
    transform: translateX(100%);
    border-left: 1px solid var(--border-color);
}

.sidebar-menu.active, .sidebar-cart.active {
    transform: translateX(0);
}

.sidebar-header {
    color: var(--text-dark);
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-dark);
}

.sidebar-header h2 {
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 1.25rem;
    color: var(--text-dark);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted-dark);
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
}

.close-btn:hover {
    color: #39787c;
    transform: scale(1.1);
}

/* Menu Nav */
.sidebar-nav {
    padding: 2rem;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav ul li {
    margin-bottom: 1.5rem;
}

.sidebar-nav ul li a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 400;
    transition: color 0.2s, padding-left 0.3s var(--transition);
    display: inline-block;
}

.sidebar-nav ul li a:hover {
    color: #39787c;
    padding-left: 10px;
}

.sidebar-nav ul li a.active-brand {
    color: #39787c;
    font-weight: 700;
    padding-left: 10px;
}

/* Cart Items */
.sidebar-cart {
    display: flex;
    flex-direction: column;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.empty-cart-msg {
    text-align: center;
    color: var(--text-muted-dark);
    margin-top: 2rem;
    font-weight: 400;
}

.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.55);
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border-dark);
}

.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: #1a1a1a;
    border-radius: 6px;
}

.cart-item-details {
    color: var(--text-dark);
    flex: 1;
    margin-left: 1rem;
}

.cart-item-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.cart-item-price {
    font-size: 0.85rem;
    color: var(--accent-cyan-dark);
    margin-top: 0.25rem;
    font-weight: 600;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}

.cart-item-controls button {
    background: none;
    border: 1px solid var(--accent-cyan-dark);
    color: var(--accent-cyan-dark);
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.2s;
}

.cart-item-controls button:hover {
    background: var(--accent-cyan-dark);
    color: #ffffff;
}

.cart-item-qty {
    margin: 0 0.75rem;
    font-size: 0.85rem;
}

.remove-item-btn {
    background: none;
    border: none;
    color: #e11d48;
    cursor: pointer;
    margin-left: 0.5rem;
    padding: 0.5rem;
    transition: color 0.2s;
}

.remove-item-btn:hover {
    color: #9f1239;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-dark);
    background: var(--surface-color);
}

.cart-total {
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    background: var(--text-dark);
    color: var(--accent-cyan);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    background: var(--accent-cyan-dark);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(15, 76, 86, 0.35);
}

.checkout-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
    background: #333;
    color: #888;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(5,5,5,0.7) 0%, rgba(5,5,5,0.3) 50%, rgba(5,5,5,1) 100%);
}

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

.hero-content {
    max-width: 800px;
    margin-top: 4rem;
    animation: fadeUp 1s var(--transition);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: 300;
    color: var(--accent-color);
    margin-bottom: 2.5rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid rgba(122, 225, 233, 0.5);
    border-radius: 30px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.4s var(--transition);
    background: rgba(122, 225, 233, 0.1);
    backdrop-filter: blur(10px);
}

.cta-button:hover {
    background: var(--accent-cyan);
    color: #000000;
    border-color: var(--accent-cyan);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(122, 225, 233, 0.5);
}

/* Products Section */
.products-section {
    background-color: #918a8a;
    color: #ffffff;
    padding: 8rem 2rem;
    width: 100%;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 3rem;
}

.product-card {
    background: #fdfdfd;
    border-radius: 14px;
    padding: 2rem;
    text-align: center;
    border: 1px solid #b0b0b0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: all 0.4s var(--transition);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-cyan);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(122, 225, 233, 0.4);
}

.product-image-wrap {
    margin-bottom: 1.5rem;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.2s ease, transform 0.5s var(--transition);
    will-change: opacity, transform;
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

/* Flavor Bubbles Container */
.product-flavors {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

/* Individual Flavor Bubble */
.flavor-bubble {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    position: relative;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.flavor-bubble:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

/* Active State: concentric border ring matching the user's uploaded image */
.flavor-bubble.active {
    transform: scale(1.1);
    box-shadow: 
        0 0 0 3px #ffffff, 
        0 0 0 4.5px var(--accent-cyan-dark);
}

/* Flavor Text */
.product-flavor-text {
    font-size: 0.85rem;
    color: #3d4a5c;
    margin-bottom: 0.75rem;
    font-weight: 400;
}

.product-flavor-text strong {
    color: #228175;
    font-weight: 700;
}

.product-brand {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-title {
    color: #0f172a;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.1rem;
    color: var(--accent-cyan-dark);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.add-to-cart-btn {
    background: #ffffff;
    border: 1.5px solid var(--accent-cyan-dark);
    color: var(--accent-cyan-dark);
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.add-to-cart-btn:hover {
    background: var(--accent-cyan-dark);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 76, 86, 0.25);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-dark);
    padding: 4rem 2rem;
    text-align: center;
    background: var(--surface-color);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    color: var(--slate-accent);
}

.footer-text {
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.footer-socials a {
    display: inline-block;
    color: var(--text-dark);
    margin: 0 1rem;
    transition: color 0.3s;
}

.footer-socials a:hover {
    color: var(--accent-cyan-dark);
}

.footer-credit {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-dark);
    opacity: 0.85;
}

.footer-credit strong {
    color: var(--accent-cyan-dark);
    font-weight: 700;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .products-grid {
        gap: 2rem;
    }
    .hero-title {
        font-size: 3rem;
    }
    .sidebar-menu, .sidebar-cart {
        width: 100%;
    }
}

/* Age Verification Modal */
.age-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--transition);
}

.age-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.age-modal-content {
    background: var(--surface-color);
    padding: 3rem 2rem;
    border-radius: 12px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    transform: translateY(30px);
    transition: transform 0.4s var(--transition);
    color: var(--text-dark);
}

.age-modal-overlay.active .age-modal-content {
    transform: translateY(0);
}

.warning-icon {
    width: 48px;
    height: 48px;
    color: #eab308;
    margin-bottom: 1.5rem;
}

.age-modal-content h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
}

.age-modal-content p {
    color: var(--text-muted-dark);
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.age-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-age {
    width: 100%;
    padding: 1rem;
    border-radius: 6px;
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-yes {
    background: var(--text-dark);
    color: var(--accent-cyan);
    border: none;
}

.btn-yes:hover {
    background: var(--accent-cyan-dark);
    color: #ffffff;
}

.btn-no {
    background: transparent;
    color: var(--text-muted-dark);
    border: 1px solid var(--border-dark);
}

.btn-no:hover {
    border-color: #ff4d4d;
    color: #ff4d4d;
}

/* Footer Additions */
.footer-warning {
    border: 1.5px solid var(--accent-cyan-dark);
    padding: 1rem;
    margin-bottom: 3rem;
    font-size: 0.85rem;
    color: var(--text-dark);
    background: rgba(255,255,255,0.4);
    border-radius: 6px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.footer-warning strong {
    color: var(--text-dark);
}

.footer-links {
    color: var(--text-dark);
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-cyan-dark);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25D366;
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.3s var(--transition), box-shadow 0.3s var(--transition), background-color 0.3s var(--transition), opacity 0.3s var(--transition), visibility 0.3s var(--transition);
    cursor: pointer;
    text-decoration: none;
    animation: whatsapp-pulse 2s infinite;
}

/* Ocultar el botón flotante de WhatsApp al abrir el carrito */
.sidebar-cart.active ~ .whatsapp-float,
body:has(.sidebar-cart.active) .whatsapp-float {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0);
    animation: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    background-color: #22c05b;
}

.whatsapp-float:active {
    transform: scale(0.95);
}

.whatsapp-icon-svg {
    width: 32px;
    height: 32px;
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 52px;
        height: 52px;
    }
    .whatsapp-icon-svg {
        width: 28px;
        height: 28px;
    }
}

/* ==========================================================================
   PRODUCT DETAIL MODAL & CAROUSEL STYLING
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--transition), visibility 0.35s var(--transition);
    padding: 1.5rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.product-modal {
    background-color: #ffffff;
    color: var(--text-dark);
    width: 100%;
    max-width: 920px;
    max-height: 90vh;
    border-radius: 16px;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s var(--transition);

    /* Ocultar barra de desplazamiento manteniendo el scroll si fuera necesario */
    -ms-overflow-style: none;  /* IE y Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Ocultar scrollbar en Chrome, Safari y Opera */
.product-modal::-webkit-scrollbar {
    display: none;
}

.modal-overlay.active .product-modal {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-dark);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: var(--accent-cyan-dark);
    color: #ffffff;
    transform: rotate(90deg);
}

.product-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

/* Left: Carousel */
.modal-carousel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.modal-carousel-stage {
    position: relative;
    width: 100%;
    height: 320px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border: 1px solid var(--border-dark);
    overflow: hidden;
}

.carousel-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-carousel-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    color: var(--text-dark);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}

.carousel-nav:hover {
    background: var(--accent-cyan-dark);
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 10px;
}

.carousel-nav.next {
    right: 10px;
}

.modal-thumbnails {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
    overflow-x: auto;
    padding: 0.25rem 0;
    max-width: 100%;
}

.modal-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid transparent;
    padding: 4px;
    cursor: pointer;
    object-fit: contain;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.modal-thumb:hover {
    border-color: var(--accent-cyan-dark);
    transform: translateY(-2px);
}

.modal-thumb.active {
    border-color: var(--accent-cyan-dark);
    box-shadow: 0 0 0 2px rgba(15, 76, 86, 0.35);
    background: #ffffff;
}

/* Right: Product Info & Specs */
.modal-info-container {
    display: flex;
    flex-direction: column;
}

.modal-brand {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted-dark);
    font-weight: 600;
}

.modal-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-cyan-dark);
    margin: 0.25rem 0 0.5rem 0;
    line-height: 1.2;
}

.modal-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
}

.modal-section {
    margin-bottom: 1.25rem;
}

.modal-section-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color:#0c0c0c;
    margin-bottom: 0.5rem;
}

.modal-section-label span {
    color: #39787c;
}

.modal-flavors-list {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

/* Specs Section */
.specs-title {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding-bottom: 0.4rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.spec-card {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.spec-icon {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background: var(--accent-cyan-dark);
    color: #030303;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.spec-icon svg {
    width: 18px;
    height: 18px;
}

.spec-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.spec-label {
    font-size: 0.75rem;
    color: var(--text-muted-dark);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.spec-value {
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Actions & Quantity */
.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    align-items: center;
}

.modal-qty-selector {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    padding: 0.25rem;
}

.modal-qty-selector button {
    background: none;
    border: none;
    color: var(--accent-cyan-dark);
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
}

.modal-qty-selector button:hover {
    background: var(--accent-cyan-dark);
    color: #070707;
}

#modal-qty-val {
    font-weight: 700;
    padding: 0 0.8rem;
    font-size: 1rem;
    min-width: 30px;
    text-align: center;
    color: #0a0a0a;
}

.modal-add-btn {
    flex: 1;
    background: var(--accent-cyan-dark);
    color: #0a0a0a;
    border: none;
    padding: 0.85rem 1.25rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(15, 76, 86, 0.3);
}

.modal-add-btn:hover {
    background: #7ae1e9;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px #256266;
}

.modal-add-btn svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   OUT OF STOCK (AGOTADO) STYLING
   ========================================================================== */

.product-card.out-of-stock {
    opacity: 0.78;
    position: relative;
    border-color: rgba(220, 53, 69, 0.25);
}

.product-card.out-of-stock .product-image {
    filter: grayscale(40%);
}

.out-of-stock-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #dc3545 0%, #a71d2a 100%);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 3px 8px rgba(220, 53, 69, 0.4);
    z-index: 5;
}

.out-of-stock-badge.flavor-badge {
    background: linear-gradient(135deg, #d9534f 0%, #c9302c 100%);
    font-size: 0.7rem;
    letter-spacing: 1px;
}

.flavor-bubble.out-of-stock {
    opacity: 0.6;
    position: relative;
    overflow: hidden;
}

.flavor-bubble.out-of-stock::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -20%;
    width: 140%;
    height: 2px;
    background: #dc3545;
    transform: translateY(-50%) rotate(-45deg);
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
}

.flavor-out-tag {
    color: #dc3545;
    font-size: 0.8rem;
    font-weight: 700;
    margin-left: 4px;
}

.add-to-cart-btn.disabled {
    background: #e0e0e0 !important;
    color: #888888 !important;
    border-color: #cccccc !important;
    cursor: not-allowed !important;
    opacity: 0.7;
    pointer-events: none;
    box-shadow: none !important;
}

.modal-add-btn.disabled {
    background: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed !important;
    pointer-events: none;
    box-shadow: none !important;
    transform: none !important;
}

/* Responsive Modal Adjustments */
@media (max-width: 768px) {
    .product-modal-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .modal-carousel-stage {
        height: 250px;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    .modal-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .modal-qty-selector {
        justify-content: center;
    }
}
