/* ---------- HERO OTIMIZADO PARA MOBILE ---------- */
.menu-hero {
    background: url('https://images.unsplash.com/photo-1574085733277-851d9d856a3a?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&q=80&w=2076');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 300px;
    text-align: center;
    align-items: center;
    display: flex;
    padding: 1rem;
}

.menu-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.menu-subtitle {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    font-size: 1rem;
    margin-top: 10px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* ---------- FILTROS OTIMIZADOS PARA MOBILE ---------- */
.filters-section {
    background: #fffaf5;
    border-bottom: 1px solid #f0e0d0;
    padding: 1rem 0;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
    margin-bottom: 1rem;
}

.search-input {
    border: 2px solid #8B4513;
    border-radius: 50px;
    padding: 12px 45px 12px 20px;
    font-size: 1rem;
    color: #4b2e14;
    background: #fff;
    width: 100%;
    min-height: 44px;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(139, 69, 19, 0.2);
    border-color: #A0522D;
}

.search-icon {
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg fill='none' stroke='%238B4513' stroke-width='2.2' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='16.5' y1='16.5' x2='21' y2='21'/%3E%3C/svg%3E") no-repeat center/contain;
    opacity: 0.7;
    pointer-events: none;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 0 1rem;
}

.filter-btn {
    background: #fff;
    color: #6b4226;
    border: 1.8px solid #8B4513;
    border-radius: 30px;
    padding: 10px 18px;
    transition: 0.3s;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.filter-btn:active {
    transform: scale(0.98);
}

.filter-btn:hover {
    background: #fff1e0;
}

.filter-btn.active {
    background: #8B4513;
    color: #fff;
    border-color: #8B4513;
}

/* ---------- PRODUTOS - OTIMIZADO PARA MOBILE ---------- */
.products-grid-section {
    padding: 2rem 0;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.35s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.product-card:active {
    transform: scale(0.98);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.product-badge {
    position: absolute;
    background: #8B4513;
    color: #fff;
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 0 0 12px 0;
    font-weight: 600;
    z-index: 2;
    letter-spacing: 0.3px;
}

.product-img {
    background-size: cover;
    background-position: center;
    height: 200px;
    transition: transform 0.5s ease;
    flex-shrink: 0;
}

.product-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-content h3 {
    color: #8B4513;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-family: 'Cormorant Garamond', serif;
}

.rating {
    margin-bottom: 0.5rem;
}

.rating .stars {
    color: #ffb400;
    font-size: 0.95rem;
}

.rating-count {
    color: #999;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.product-content p {
    font-size: 0.85rem;
    color: #666;
    margin: 0.5rem 0;
    line-height: 1.5;
    flex-grow: 1;
}

.product-price {
    margin: 0.75rem 0;
}

.product-price .price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #8B4513;
    font-family: 'Cormorant Garamond', serif;
}

.product-price .price-note {
    display: block;
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.25rem;
}

.product-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.product-actions .btn {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 8px;
    min-height: 44px;
}

.product-actions .btn:active {
    transform: scale(0.98);
}

.btn-primary-custom {
    background: #8B4513;
    color: white;
    border: none;
    font-weight: 600;
}

.btn-primary-custom:hover {
    background: #A0522D;
    box-shadow: 0 6px 16px rgba(139, 69, 19, 0.35);
}

/* ---------- SEM RESULTADOS ---------- */
.no-results {
    text-align: center;
    color: #9b7a59;
    padding: 3rem 1rem;
    font-size: 1rem;
}

/* ---------- RESPONSIVIDADE ---------- */
@media (min-width: 576px) {
    .product-img {
        height: 220px;
    }
    
    .search-box {
        max-width: 400px;
        margin: 0 auto 1rem;
    }
}

@media (min-width: 768px) {
    .menu-hero {
        height: 350px;
    }
    
    .menu-title {
        font-size: 2.8rem;
    }
    
    .menu-subtitle {
        font-size: 1.1rem;
    }
    
    .filters-section {
        padding: 1.5rem 0;
    }
    
    .search-box {
        margin-bottom: 0;
    }
    
    .product-img {
        height: 240px;
    }
    
    .products-grid-section {
        padding: 3rem 0;
    }
}

@media (min-width: 992px) {
    .menu-hero {
        height: 400px;
    }
    
    .menu-title {
        font-size: 3.2rem;
    }
    
    .product-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 12px 32px rgba(0,0,0,0.15);
    }
    
    .product-card:hover .product-img {
        transform: scale(1.05);
    }
}

/* === MELHORIAS PWA === */
@media (display-mode: standalone) {
    .filters-section {
        padding-top: calc(1rem + env(safe-area-inset-top));
    }
}

/* Melhorias de performance para animações */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ---------- MODAL ADICIONAR AO CARRINHO ---------- */
.modal-content {
    border-radius: 16px;
    border: none;
}

.modal-header {
    background: #fffaf5;
    border-bottom: 2px solid #f0e0d0;
    border-radius: 16px 16px 0 0;
}

.modal-title {
    color: #8B4513;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
}

.product-modal-info h6 {
    color: #8B4513;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 700;
}

.input-group .btn {
    border-color: #8B4513;
    color: #8B4513;
    font-weight: 600;
    min-width: 44px;
}

.input-group .btn:hover {
    background: #8B4513;
    color: white;
}

.input-group .form-control {
    border-color: #8B4513;
    font-weight: 600;
}

.form-label {
    color: #6b4226;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

.form-control:focus {
    border-color: #A0522D;
    box-shadow: 0 0 0 0.25rem rgba(139, 69, 19, 0.15);
}

/* ---------- MODAL CARRINHO ---------- */
.cart-item {
    background: #fffaf5;
    transition: all 0.3s ease;
}

.cart-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cart-item img {
    object-fit: cover;
    height: 80px;
}

.cart-item h6 {
    color: #8B4513;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
}

.cart-item .btn-danger {
    background: #dc3545;
    border: none;
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
}

.cart-item .btn-danger:hover {
    background: #c82333;
}

#emptyCart {
    color: #9b7a59;
    font-size: 1.1rem;
}

#cartTotal {
    color: #8B4513;
    font-size: 1.3rem;
}

/* ---------- TOAST NOTIFICATION ---------- */
.toast {
    min-width: 250px;
}

.toast-body {
    padding: 1rem;
    font-weight: 500;
}

/* ---------- BADGE CARRINHO ---------- */
.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-icon:hover {
    transform: scale(1.1);
}

/* ---------- RESPONSIVIDADE MODAL ---------- */
@media (max-width: 576px) {
    .cart-item img {
        height: 60px;
    }
    
    .cart-item h6 {
        font-size: 0.95rem;
    }
    
    .cart-item .btn-danger {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 1rem;
    }
    
    .modal-footer > div {
        width: 100%;
        text-align: center;
    }
}
