﻿:root {
    --chocolate-dark: #1a0d08;
    --chocolate-deep: #2d1810;
    --chocolate-medium: #4a2c17;
    --chocolate-light: #6b3a1f;
    --chocolate-milk: #8b5a2b;
    --chocolate-caramel: #d4a574;
    --chocolate-cream: #f5e6d3;
    --chocolate-white: #faf6f1;
    --gold: #c9a868;
    --gold-light: #e8d5a3;
    --accent: #c41e3a;
    --whatsapp: #25d366;
    --shadow-sm: 0 2px 10px rgba(26, 13, 8, 0.1);
    --shadow-md: 0 5px 30px rgba(26, 13, 8, 0.15);
    --shadow-lg: 0 10px 50px rgba(26, 13, 8, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--chocolate-white);
    color: var(--chocolate-dark);
    padding-bottom: 100px;
}

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

.cursive {
    font-family: 'Great Vibes', cursive;
    color: var(--gold);
}

/* Header */
.menu-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--chocolate-deep);
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.menu-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-logo-img {
    height: 45px;
    width: auto;
    filter: brightness(0) saturate(100%) invert(56%) sepia(50%) saturate(500%) hue-rotate(5deg) brightness(100%);
}

.menu-header-title {
    text-align: center;
}

.menu-header-title h1 {
    font-family: 'Playfair Display', serif;
    color: var(--chocolate-cream);
    font-size: 1.3rem;
}

.menu-header-title p {
    color: var(--chocolate-caramel);
    font-size: 0.75rem;
}

.cart-btn {
    position: relative;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.cart-btn:hover {
    transform: scale(1.1);
}

.cart-btn i {
    font-size: 1.3rem;
    color: var(--chocolate-dark);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--chocolate-deep);
}

/* Hero */
.menu-hero {
    margin-top: 70px;
    height: 180px;
    background: linear-gradient(135deg, var(--chocolate-deep) 0%, var(--chocolate-medium) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.menu-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(201, 168, 104, 0.15) 0%, transparent 60%);
}

.menu-hero-content {
    text-align: center;
    z-index: 2;
}

.menu-hero-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--chocolate-cream);
    margin-bottom: 8px;
}

.menu-hero-content p {
    color: var(--chocolate-caramel);
    font-size: 0.95rem;
}

/* Categories */
.categories-section {
    padding: 25px 0;
    background: white;
    position: sticky;
    top: 70px;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.categories-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0;
    scrollbar-width: none;
    justify-content: center;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.category-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border: 2px solid var(--chocolate-cream);
    background: white;
    border-radius: 15px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
    width: 80px;
    height: 70px;
    flex-shrink: 0;
    overflow: hidden;
}

.category-btn i {
    font-size: 1.2rem;
    color: var(--chocolate-milk);
}

.category-btn span {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--chocolate-light);
    text-align: center;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.category-btn:hover,
.category-btn.active {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.category-btn:hover i,
.category-btn.active i,
.category-btn:hover span,
.category-btn.active span {
    color: var(--chocolate-dark);
}

/* Products Grid */
.menu-main {
    padding: 30px 0;
}

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

/* Product Card */
.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.product-card.in-cart {
    border: 2px solid var(--gold);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--chocolate-medium) 0%, var(--chocolate-deep) 100%);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--chocolate-medium) 0%, var(--chocolate-light) 100%);
}

.product-placeholder i {
    font-size: 3rem;
    color: var(--chocolate-caramel);
    opacity: 0.5;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-info {
    padding: 18px;
}

.product-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: var(--chocolate-dark);
    margin-bottom: 6px;
}

.product-info p {
    color: var(--chocolate-light);
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--gold);
    font-weight: 600;
}

.add-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--chocolate-dark);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
}

.add-btn:hover {
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 4px 15px rgba(201, 168, 104, 0.4);
}

/* Quantity Control */
.quantity-control {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(201, 168, 104, 0.1) 0%, rgba(201, 168, 104, 0.05) 100%);
    border-top: 1px solid var(--chocolate-cream);
}

.product-card.in-cart .quantity-control {
    display: flex;
}

.product-card.in-cart .product-footer {
    display: none;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background: white;
    color: var(--gold);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
}

.qty-btn:hover {
    background: var(--gold);
    color: var(--chocolate-dark);
}

.qty-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--chocolate-dark);
    min-width: 30px;
    text-align: center;
}

/* Cart Bar */
.cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--chocolate-deep);
    z-index: 1000;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: var(--transition);
}

.cart-bar.visible {
    transform: translateY(0);
}

.cart-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cart-items-text {
    color: var(--chocolate-caramel);
    font-size: 0.85rem;
}

.cart-total {
    color: var(--chocolate-cream);
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
}

.cart-send-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--whatsapp);
    border: none;
    border-radius: 50px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cart-send-btn:hover {
    background: #20bd5a;
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
}

.cart-send-btn i {
    font-size: 1.3rem;
}

/* Cart Modal */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 13, 8, 0.8);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.cart-modal {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: white;
    z-index: 2001;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.cart-modal.visible {
    right: 0;
}

.cart-modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: var(--chocolate-deep);
    color: var(--chocolate-cream);
}

.cart-modal-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-modal-header h2 i {
    color: var(--gold);
}

.cart-modal-close {
    background: none;
    border: none;
    color: var(--chocolate-cream);
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
}

.cart-modal-close:hover {
    color: var(--gold);
    transform: rotate(90deg);
}

.cart-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.empty-cart {
    text-align: center;
    color: var(--chocolate-light);
    padding: 40px;
    font-size: 1rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--chocolate-white);
    border-radius: 12px;
    margin-bottom: 10px;
}

.cart-item-info h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--chocolate-dark);
    margin-bottom: 4px;
}

.cart-item-info span {
    color: var(--chocolate-light);
    font-size: 0.8rem;
}

.cart-item-price {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--gold);
    font-weight: 600;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.cart-item-qty button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    background: white;
    color: var(--gold);
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
}

.cart-item-qty button:hover {
    background: var(--gold);
    color: var(--chocolate-dark);
}

.cart-item-qty span {
    font-weight: 600;
    color: var(--chocolate-dark);
    min-width: 20px;
    text-align: center;
}

.cart-modal-footer {
    padding: 20px;
    border-top: 2px solid var(--chocolate-cream);
}

.cart-modal-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cart-modal-total span:first-child {
    font-size: 1rem;
    color: var(--chocolate-light);
}

.cart-modal-total span:last-child {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--chocolate-dark);
    font-weight: 700;
}

.cart-modal-send {
    width: 100%;
    padding: 16px;
    background: var(--whatsapp);
    border: none;
    border-radius: 12px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.cart-modal-send:hover {
    background: #20bd5a;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .menu-header-title h1 {
        font-size: 1rem;
    }

    .menu-header-title p {
        display: none;
    }

    .menu-logo-img {
        height: 38px;
    }

    .menu-hero {
        height: 140px;
    }

    .menu-hero-content h2 {
        font-size: 1.6rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-image {
        height: 150px;
    }

    .product-info {
        padding: 12px;
    }

    .product-info h3 {
        font-size: 0.95rem;
    }

    .product-info p {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
    }

    .product-price {
        font-size: 1.1rem;
    }

    .add-btn {
        width: 36px;
        height: 36px;
    }

    .cart-send-btn span {
        display: none;
    }

    .cart-send-btn {
        padding: 14px;
        border-radius: 50%;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-image {
        height: 200px;
    }
}

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

.product-card {
    animation: fadeInUp 0.5s ease both;
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }
.product-card:nth-child(7) { animation-delay: 0.35s; }
.product-card:nth-child(8) { animation-delay: 0.4s; }
.product-card:nth-child(9) { animation-delay: 0.45s; }
.product-card:nth-child(10) { animation-delay: 0.5s; }
.product-card:nth-child(11) { animation-delay: 0.55s; }
.product-card:nth-child(12) { animation-delay: 0.6s; }

/* Scroll suave */
html {
    scroll-behavior: smooth;
}    
        /* Modal de Produto */
    .product-modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(26, 13, 8, 0.8);
        z-index: 2000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .product-modal-overlay.visible {
        opacity: 1;
        visibility: visible;
    }
    
.product-modal {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.9);
        max-width: 800px;
        width: 90%;
        max-height: 90vh;
        background: white;
        border-radius: 20px;
        z-index: 2001;
        transition: all 0.3s ease;
        opacity: 0;
        pointer-events: none;
        overflow: hidden;
    }
    
    .product-modal-overlay.visible ~ .product-modal {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        pointer-events: all;
    }
    
.product-modal-content {
        position: relative;
        padding: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .product-modal-close {
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--chocolate-light);
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 10;
    }
    
    .product-modal-close:hover {
        color: var(--gold);
        transform: rotate(90deg);
    }
    
    .product-modal-body {
        display: flex;
        gap: 20px;
        align-items: flex-start;
    }
    
.modal-product-image {
        flex: 1;
        min-width: 300px;
    }
    
    .modal-product-image img {
        width: 100%;
        height: auto;
        max-height: 70vh;
        object-fit: contain;
        border-radius: 15px;
        box-shadow: var(--shadow-sm);
        cursor: zoom-in;
    }

    .modal-product-image img:hover {
        transform: scale(1.02);
        transition: transform 0.3s ease;
    }
    
    .modal-product-details h3 {
        font-family: 'Playfair Display', serif;
        font-size: 1.5rem;
        color: var(--chocolate-dark);
        margin-bottom: 10px;
    }
    
    .modal-product-price {
        font-family: 'Playfair Display', serif;
        font-size: 1.3rem;
        color: var(--gold);
        font-weight: 600;
        display: block;
        margin-bottom: 15px;
    }
    
    .modal-product-description {
        color: var(--chocolate-light);
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
@media (max-width: 768px) {
        .product-modal-body {
            flex-direction: column;
        }
        
        .modal-product-image {
            min-width: 100%;
        }
        
        .product-modal {
            width: 95%;
            max-height: 85vh;
        }

        .modal-product-image img {
            max-height: 50vh;
        }
    }
        }
    }
    
    /* Animations */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
        
    /* Chocolate Options */
    .chocolate-options {
        margin: 12px 0;
        padding: 10px;
        background: var(--chocolate-cream);
        border-radius: 10px;
    }
    
    .chocolate-options label {
        display: block;
        margin-bottom: 5px;
        font-size: 0.85rem;
        color: var(--chocolate-dark);
        cursor: pointer;
    }
    
.chocolate-options input[type="radio"] {
        margin-right: 8px;
        accent-color: var(--gold);
    }

    .chocolate-question {
        font-weight: 600;
        color: var(--chocolate-dark);
        margin-bottom: 2px;
    }

.chocolate-hint {
        font-size: 0.75rem;
        color: var(--chocolate-light);
        font-style: italic;
        margin-bottom: 8px;
    }

    .product-allergen {
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--accent);
        margin-top: 8px;
        margin-bottom: 0;
    }

    .product-note {
        font-size: 0.7rem;
        color: var(--chocolate-light);
        font-style: italic;
        margin-top: 5px;
        margin-bottom: 0;
    }

    .product-features {
        font-size: 0.7rem;
        color: var(--chocolate-milk);
        margin-top: 8px;
        margin-bottom: 0;
        line-height: 1.4;
    }

/* Cart Count Badge */
.cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--gold);
    color: var(--chocolate-dark);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 8px;
    cursor: pointer;
}

/* Image Lightbox */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 5000;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
    padding: 20px;
}

.image-lightbox.visible {
    display: flex;
}

.image-lightbox img {
    max-width: 95%;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.image-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 5001;
    transition: transform 0.3s ease;
}

.image-lightbox-close:hover {
    transform: rotate(90deg);
}

/* WhatsApp Float Button - canto inferior direito */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 5px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
}

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}