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

:root {
    --primary-color: #8B4513;
    --primary-color-80: #8B4513CC;
    --primary-color-32: #8B451352;
    --primary-color-12: #8B45131F;
    --secondary-color: #A0522D;
    --header-color: #602d19;
    --text-color: #000000;
    --text-color-80: #000000CC;
    --text-color-50: #00000080;
    --bg-color: #FFFFFF;
    --bg-color-96: #FFFFFFF5;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, #602d19 0%, #7a3a22 50%, #602d19 100%);
    color: var(--text-color);
    padding: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 
                0 4px 16px rgba(96, 45, 25, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-bottom: 2px solid rgba(139, 69, 19, 0.3);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(139, 69, 19, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(139, 69, 19, 0.5) 50%, 
        transparent 100%);
    pointer-events: none;
}

.header-banner {
    width: 100%;
    overflow: hidden;
    margin-bottom: 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80px;
    max-height: 150px;
    padding: 10px 20px;
    z-index: 1;
}

.header-logo {
    max-width: 450px;
    max-height: 320px;
    width: auto;
    height: auto;
    z-index: 10;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4)) 
            drop-shadow(0 2px 6px rgba(139, 69, 19, 0.3));
    transition: transform 0.3s ease, filter 0.3s ease;
    position: relative;
}

.header-logo:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5)) 
            drop-shadow(0 3px 8px rgba(139, 69, 19, 0.4));
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Poppins', sans-serif;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease;
}

.logo::before {
    content: '🍰';
    font-size: 2.2rem;
    display: inline-block;
    filter: drop-shadow(0 2px 4px rgba(139, 69, 19, 0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

.logo:hover {
    transform: scale(1.02);
}

.header-info {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 20px;
    background: rgba(139, 69, 19, 0.05);
    border-radius: 12px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.header-info:hover {
    background: rgba(139, 69, 19, 0.1);
    transform: translateX(-3px);
}

.address, .city {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-color-80);
    line-height: 1.5;
    font-weight: 400;
}

.address {
    font-weight: 500;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.address::before {
    content: '📍';
    font-size: 1rem;
}

.city {
    font-size: 0.85rem;
    color: var(--text-color-50);
}

/* Main Content */
.main {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

/* Search Section */
.search-section {
    margin-bottom: 30px;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

/* Categories */
.categories-section {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 10px 20px;
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--text-color);
}

.category-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.category-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    font-weight: 600;
}

/* Products Grid */
.products-grid {
    display: block;
}

/* Category Sections */
.category-section {
    margin-bottom: 50px;
}

.category-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-products-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 25px;
    width: 100%;
    justify-content: center;
}

.category-products-grid .product-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: auto !important;
    flex: 1 1 auto !important;
}

@media (max-width: 768px) {
    .category-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }
    
    .category-products-grid .product-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: auto !important;
        flex: 1 1 auto !important;
    }
}

@media (max-width: 480px) {
    .category-products-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .category-products-grid .product-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: auto !important;
        flex: 1 1 100% !important;
    }
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: default;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

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

.product-image-container {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
}

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

/* Carrossel de Imagens */
.product-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--primary-color);
    font-weight: bold;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:active {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.dot.active {
    background: rgba(255, 255, 255, 1);
    width: 24px;
    border-radius: 4px;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    word-wrap: break-word;
}

.product-image-placeholder span {
    max-width: 100%;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.product-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
    display: block;
}

.product-description:empty,
.product-description[style*="display:none"] {
    display: none !important;
    margin-bottom: 0;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-category {
    display: inline-block;
    padding: 5px 12px;
    background: var(--bg-color);
    border-radius: 15px;
    font-size: 0.75rem;
    color: var(--secondary-color);
    margin-top: 10px;
    margin-bottom: 15px;
}

.add-to-cart-btn {
    width: 100%;
    padding: 14px 20px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 10;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.add-to-cart-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

.add-to-cart-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(139, 69, 19, 0.2);
}

/* Carrinho Flutuante */
.cart-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-button:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Sidebar do Carrinho */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 100%;
    height: 100vh;
    max-height: 100vh;
    background: var(--white);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
}

.cart-sidebar.active {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.cart-sidebar.active ~ .cart-overlay {
    display: block;
}

.cart-header {
    padding: 20px;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-color);
    color: var(--white);
    flex-shrink: 0;
}

.cart-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close-cart {
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    z-index: 100;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.3);
}

.close-cart:hover {
    background: rgba(255, 255, 255, 0.2);
}

.close-cart:active {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0.95);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
    max-height: 100%;
}

.cart-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 15px;
    align-items: flex-start;
}

.cart-item-top {
    display: flex;
    gap: 15px;
    width: 100%;
    align-items: flex-start;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
}

.cart-item-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
    line-height: 1.3;
    width: 100%;
    display: block;
    flex-shrink: 0;
    white-space: normal;
    word-break: break-word;
    hyphens: auto;
}

.cart-item-price {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: flex-end;
    margin-top: 8px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary-color);
    background: var(--white);
    color: var(--primary-color);
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.quantity {
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.remove-btn {
    background: #e74c3c;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: #c0392b;
}

.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.cart-footer {
    padding: 20px;
    border-top: 2px solid #e0e0e0;
    background: var(--bg-color);
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.cart-summary {
    margin-bottom: 15px;
}

.cart-subtotal,
.cart-delivery-fee {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--text-color-80);
    border-bottom: 1px solid #e0e0e0;
}

.cart-delivery-fee {
    color: var(--text-color);
}

.cart-total {
    font-size: 1.3rem;
    margin-top: 10px;
    margin-bottom: 15px;
    text-align: center;
    color: var(--text-color);
    padding-top: 10px;
    border-top: 2px solid var(--primary-color);
}

.cart-total span {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.delivery-type-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.delivery-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--white);
}

.delivery-option:hover {
    border-color: var(--primary-color);
    background: rgba(139, 69, 19, 0.05);
}

.delivery-option input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.delivery-option input[type="radio"]:checked + span {
    font-weight: 600;
    color: var(--primary-color);
}

.delivery-option:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background: rgba(139, 69, 19, 0.1);
}

.delivery-option span {
    font-size: 0.95rem;
    user-select: none;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background: #25D366;
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.checkout-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.cart-notification {
    position: fixed;
    top: 100px;
    right: 30px;
    background: #25D366;
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s ease;
}

.cart-notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: var(--text-color);
    color: var(--white);
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-banner {
        min-height: 70px;
        padding: 8px 15px;
    }
    
    .header-logo {
        max-width: 300px;
        max-height: 220px;
    }
    
    .header {
        padding: 0;
    }
    

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

    .categories-section {
        justify-content: center;
    }

    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 28px;
        background: rgba(255, 255, 255, 0.9);
    }

    .carousel-prev {
        left: 5px;
    }

    .carousel-next {
        right: 5px;
    }

    .carousel-dots {
        bottom: 15px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    /* Ajustes do carrinho para tablet */
    .cart-sidebar {
        width: 100%;
        max-width: 100%;
        right: -100%;
        left: auto;
    }
    
    .cart-sidebar.active {
        right: 0;
        left: 0;
    }
}

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

    .logo {
        font-size: 1.5rem;
    }

    .carousel-btn {
        width: 50px;
        height: 50px;
        font-size: 30px;
    }

    .carousel-prev {
        left: 5px;
    }

    .carousel-next {
        right: 5px;
    }

    .dot {
        width: 12px;
        height: 12px;
    }

    /* Ajustes do carrinho para mobile */
    body {
        overflow-x: hidden !important;
    }
    
    /* Removido bloqueio de scroll - permitir scroll normal */
    
    /* Garantir que o scroll funcione dentro do carrinho */
    .cart-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        right: -100% !important;
        left: auto !important;
        box-sizing: border-box;
        overflow: visible !important;
        height: 100vh !important;
        max-height: 100vh !important;
        display: flex !important;
        flex-direction: column;
        position: fixed !important;
        top: 0 !important;
        z-index: 1001 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .cart-sidebar.active {
        right: 0 !important;
        left: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
        display: flex !important;
    }
    
    /* Garantir que o container do carrinho permita scroll */
    .cart-sidebar.active {
        overflow: hidden !important;
    }
    
    .cart-sidebar.active .cart-items {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        flex: 1 !important;
        min-height: 0 !important;
        height: 100% !important;
        max-height: calc(100vh - 180px) !important;
        touch-action: pan-y !important;
        -ms-overflow-style: -ms-autohiding-scrollbar;
        position: relative !important;
    }
    
    /* Garantir que o footer seja sempre visível */
    .cart-sidebar.active .cart-footer {
        position: relative !important;
        bottom: auto !important;
        margin-top: 0 !important;
    }
    
    .cart-header {
        padding: 15px;
        box-sizing: border-box;
        flex-shrink: 0;
        position: relative;
        z-index: 100;
    }

    .cart-header h2 {
        font-size: 1.2rem;
    }
    
    .close-cart {
        z-index: 101;
        min-width: 44px;
        min-height: 44px;
        font-size: 2.5rem;
    }
    
    .cart-items {
        -webkit-overflow-scrolling: touch !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        flex: 1 !important;
        min-height: 0 !important;
        padding: 15px;
        padding-bottom: 20px;
        box-sizing: border-box;
        touch-action: pan-y !important;
        height: auto !important;
        max-height: calc(100vh - 180px) !important;
        position: relative !important;
    }
    
    .cart-footer {
        flex-shrink: 0 !important;
        padding: 15px !important;
        box-sizing: border-box;
    }
    
    .delivery-type-selector {
        flex-direction: column;
        gap: 8px;
    }
    
    .delivery-option {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .cart-summary {
        font-size: 0.9rem;
    }
    
    .cart-subtotal,
    .cart-delivery-fee {
        font-size: 0.85rem;
        padding: 6px 0;
    }
    
    .cart-total {
        font-size: 1.1rem;
        margin-top: 8px;
    }
    
    .cart-total span {
        font-size: 1.3rem;
        background: var(--bg-color) !important;
        border-top: 2px solid #e0e0e0;
        position: relative !important;
        z-index: 10 !important;
        width: 100% !important;
        margin-top: auto !important;
        display: block !important;
        visibility: visible !important;
    }
    
    .checkout-btn {
        width: 100%;
        padding: 16px;
        font-size: 1.1rem;
        min-height: 50px;
        touch-action: manipulation;
        position: relative;
        z-index: 10;
    }

    .cart-item {
        flex-wrap: wrap;
        align-items: flex-start;
        position: relative;
        padding: 12px;
    }

    .cart-item-image {
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .cart-item-info {
        flex: 1;
        min-width: 0;
        margin-bottom: 10px;
    }

    .cart-item-name {
        width: 100%;
        display: block;
        margin-bottom: 10px;
        font-size: 0.95rem;
        word-wrap: break-word;
        word-break: break-word;
    }

    .cart-item-controls {
        width: 100%;
        justify-content: flex-end;
        margin-top: 10px;
        position: relative;
        z-index: 10;
        pointer-events: auto;
    }

    .quantity-btn,
    .remove-btn {
        position: relative;
        z-index: 11;
        pointer-events: auto;
        touch-action: manipulation;
        min-width: 40px;
        min-height: 40px;
    }

    /* Melhorias para botão de adicionar ao carrinho no mobile */
    .add-to-cart-btn {
        padding: 16px 20px;
        font-size: 1.1rem;
        min-height: 50px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(139, 69, 19, 0.3);
        z-index: 20;
        position: relative;
    }

    .product-card {
        cursor: default;
    }

    .product-info {
        position: relative;
        z-index: 1;
    }
}

/* Modal de Seleção de Sabores */
.flavor-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.flavor-modal {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.flavor-modal-header {
    padding: 20px 25px;
    border-bottom: 2px solid var(--primary-color-12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #A0522D 100%);
    color: white;
}

.flavor-modal-header h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

.flavor-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 28px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.flavor-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.flavor-modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

.flavor-instruction {
    font-size: 1rem;
    color: var(--text-color-80);
    margin-bottom: 20px;
    text-align: center;
    padding: 12px;
    background: var(--primary-color-12);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.flavor-selection-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
}

.flavor-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.flavor-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.flavor-item:hover {
    border-color: var(--primary-color-32);
    background: #fff;
}

.flavor-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    flex: 1;
    gap: 10px;
}

.flavor-checkbox-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.flavor-name {
    font-size: 0.95rem;
    color: var(--text-color);
    user-select: none;
}

.flavor-quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.flavor-qty-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.flavor-qty-btn:hover {
    background: #A0522D;
    transform: scale(1.1);
}

.flavor-qty-btn:active {
    transform: scale(0.95);
}

.flavor-qty-input {
    width: 50px;
    height: 32px;
    text-align: center;
    border: 2px solid var(--primary-color-32);
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
}

.flavor-qty-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-color-12);
}

.flavor-summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid var(--primary-color-12);
    position: sticky;
    top: 0;
    max-height: 400px;
}

.flavor-total {
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    text-align: center;
    border: 2px solid var(--primary-color-32);
}

.flavor-total strong {
    color: var(--text-color);
}

#flavorTotal {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.selected-flavors-list {
    margin-top: 15px;
}

.selected-flavors-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color-80);
    margin-bottom: 10px;
}

.selected-flavor-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.flavor-qty-badge {
    background: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.flavor-modal-footer {
    padding: 20px 25px;
    border-top: 2px solid var(--primary-color-12);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: #f8f9fa;
}

.flavor-btn-cancel,
.flavor-btn-add {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.flavor-btn-cancel {
    background: #e0e0e0;
    color: var(--text-color);
}

.flavor-btn-cancel:hover {
    background: #d0d0d0;
}

.flavor-btn-add {
    background: var(--primary-color);
    color: white;
}

.flavor-btn-add:hover:not(.disabled) {
    background: #A0522D;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.4);
}

.flavor-btn-add.disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.cart-item-flavors,
.cart-item-size {
    margin-top: 2px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cart-item-filling {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.flavor-tag,
.size-tag,
.filling-tag {
    display: inline-block;
    background: var(--primary-color-12);
    color: var(--text-color);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    border: 1px solid var(--primary-color-32);
}

/* Responsive para modal de sabores */
@media (max-width: 768px) {
    .flavor-modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .flavor-selection-container {
        grid-template-columns: 1fr;
    }
    
    .flavor-summary {
        position: relative;
        max-height: none;
    }
    
    .flavor-list {
        grid-template-columns: 1fr;
        max-height: 300px;
    }
    
    .flavor-modal-header h2 {
        font-size: 1.2rem;
    }
}

/* Size Selection Modal */
.size-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.size-modal {
    background-color: var(--bg-color);
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    width: 90%;
    max-width: 600px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
}

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

.size-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background-color: var(--primary-color-12);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.size-modal-header h2 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--text-color);
}

.size-modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-color-50);
    transition: color 0.2s ease;
}

.size-modal-close:hover {
    color: var(--text-color);
}

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

.size-instruction {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 5px;
    text-align: center;
    font-weight: 600;
}

.size-subinstruction {
    font-size: 0.9rem;
    color: var(--text-color-80);
    margin-bottom: 20px;
    text-align: center;
}

.size-selection-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.size-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.size-item {
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #fdfdfd;
    transition: all 0.2s ease;
}

.size-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.1);
}

.size-radio {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    cursor: pointer;
    width: 100%;
}

.size-radio-input {
    margin-right: 15px;
    transform: scale(1.3);
    accent-color: var(--primary-color);
    cursor: pointer;
}

.size-radio-input:checked ~ .size-info,
.size-radio-input:checked ~ .size-price {
    color: var(--primary-color);
    font-weight: 600;
}

.size-item:has(.size-radio-input:checked) {
    border-color: var(--primary-color);
    background-color: var(--primary-color-12);
}

.size-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.size-name {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 500;
}

.size-description {
    font-size: 0.9rem;
    color: var(--text-color-80);
    margin-top: 3px;
}

.size-price {
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 600;
}

.size-summary {
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #eee;
}

.size-total {
    font-size: 1.2rem;
    text-align: center;
    color: #333;
}

.size-total strong {
    color: var(--primary-color);
}

.size-modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 15px 20px;
    border-top: 1px solid #eee;
    gap: 10px;
    background-color: #f8f8f8;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.size-btn-cancel {
    background-color: #ccc;
    color: #333;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.size-btn-cancel:hover {
    background-color: #bbb;
}

.size-btn-add {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.size-btn-add:hover:not(:disabled) {
    background-color: #e67e22;
}

.size-btn-add:disabled, .size-btn-add.disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Responsive adjustments for size modal */
@media (max-width: 600px) {
    .size-modal {
        width: 95%;
        margin: 10px;
    }

    .size-modal-header h2 {
        font-size: 1.2rem;
    }

    .size-modal-footer {
        flex-direction: column;
        padding: 10px 15px;
    }

    .size-btn-cancel, .size-btn-add {
        width: 100%;
        padding: 12px;
    }
}

/* Modal de Seleção de Recheio */
.filling-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.filling-modal {
    background-color: var(--bg-color);
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

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

.filling-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.filling-modal-header h2 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--text-color);
}

.filling-modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-color-50);
    transition: color 0.3s ease;
}

.filling-modal-close:hover {
    color: var(--text-color);
}

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

.filling-instruction {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
    text-align: center;
}

.filling-subinstruction {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
}

.filling-selection-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.filling-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filling-item {
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    background: #fff;
}

.filling-item:hover {
    border-color: var(--primary-color-32);
    background: #fff;
}

.filling-radio {
    display: flex;
    align-items: center;
    cursor: pointer;
    flex: 1;
    gap: 10px;
}

.filling-radio-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.filling-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 5px;
}

.filling-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1rem;
}

.filling-description {
    font-size: 0.85rem;
    color: #666;
}

.filling-modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 15px 20px;
    border-top: 1px solid #eee;
    gap: 10px;
}

.filling-btn-cancel {
    padding: 12px 24px;
    background: #f5f5f5;
    color: var(--text-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filling-btn-cancel:hover {
    background: #e0e0e0;
}

.filling-btn-add {
    padding: 12px 24px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filling-btn-add:hover:not(.disabled) {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.filling-btn-add.disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .filling-modal {
        width: 95%;
        margin: 10px;
    }

    .filling-modal-header h2 {
        font-size: 1.2rem;
    }

    .filling-modal-footer {
        flex-direction: column;
        padding: 10px 15px;
    }

    .filling-btn-cancel, .filling-btn-add {
        width: 100%;
        padding: 12px;
    }
}

