/* --- ARQUIVO styles.css COMPLETO E FINAL (AÇAÍ THEME) --- */

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

:root {
    --primary: #A78BFA; 
    --primary-dark: #8B5CF6; 
    --primary-glow: rgba(167, 139, 250, 0.4); 
    --success: #2ecc71;
    --success-dark: #27ae60;
    --secondary-highlight: #F472B6; 
    --dark: #2D2430;
    --gray: #6B7280;
    --light: #F9FAFB;
    --radius: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

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

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
html { scroll-behavior: smooth; }

.btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--primary-glow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-sm { padding: 5px 10px; font-size: 14px; }

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-outline {
    background: #fff;
    border: 2px solid var(--primary);
    color: var(--primary);
    box-shadow: none;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: #fff;
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
    background: #1ebe5a;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 99;
    padding: 15px 0;
    border-bottom: 2px solid rgba(167, 139, 250, 0.1);
}

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

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
}

header nav { display: flex; gap: 25px; }
header nav a { font-weight: 500; font-size: 16px; color: var(--dark); transition: 0.2s;}
header nav a:hover { color: var(--primary); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-cart-header {
    background-color: var(--dark);
    color: #fff;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 6px;
}

.btn-cart-header:hover {
    background-color: #333;
    transform: none;
}

.btn-cart-float, .cart-float-bar { display: none !important; }

/* HERO */
.hero-wrapper {
    background: linear-gradient(135deg, #f8f7ff 0%, #ffffff 100%);
    padding-top: 120px;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    padding-bottom: 50px;
}

.hero h1 {
    font-size: 52px;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--dark);
    font-weight: 800;
}

.hero p {
    font-size: 20px;
    color: var(--gray);
    margin-bottom: 35px;
    max-width: 480px;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 30px;
    box-shadow: 0 25px 50px -12px var(--primary-glow);
    transition: transform 0.3s ease;
}

.hero-image img:hover { transform: translateY(-10px); }

.hero-buttons { display: flex; gap: 15px; margin-bottom: 50px; }

.hero-stats { 
    display: flex; 
    gap: 40px; 
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 30px;
}

.hero-stats li { display: flex; flex-direction: column; }

.hero-stats strong {
    color: var(--primary-dark);
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
}

.hero-stats span { font-size: 14px; color: var(--gray); font-weight: 500; }

/* CARDÁPIO */
.category-filter {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 15px 5px;
    margin-bottom: 25px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-filter::-webkit-scrollbar { display: none; }

.btn-filter {
    background-color: #f3f4f6;
    color: #4b5563;
    border: 2px solid transparent;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.btn-filter:hover {
    background-color: #e5e7eb;
    transform: translateY(-2px);
}

.btn-filter.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.cardapio { 
    padding: 60px 0; 
    text-align: center; 
    background-color: #fafafa;
}

.cardapio h2 { font-size: 32px; margin-bottom: 8px; color: var(--dark); font-weight: 800; }
.cardapio p { color: var(--gray); margin-bottom: 40px; }

.menu-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 650px;
    margin: 10px auto 0;
    padding: 0 15px;
    list-style: none;
}

.product-card {
    display: flex;
    flex-direction: row; 
    background: #fff;
    border-radius: 16px;
    padding: 12px;
    gap: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid transparent;
    transition: 0.2s;
    cursor: pointer;
    text-align: left;
}

.product-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.img-container {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
}

.img-container img {
    border-radius: 12px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prod-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    min-width: 0;
}

.prod-info h3 { font-size: 17px; font-weight: 700; color: #1a1a1a; margin-bottom: 4px; }
.prod-info p {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.price-row strong { font-size: 18px; color: #2ecc71; font-weight: 700; }

.btn-add-card {
    background: var(--primary);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-add-card:hover {
    background: var(--success-dark) !important;
    transform: scale(1.1) !important;
    filter: none !important;
}

/* SOBRE */
.sobre { background-color: #fff; padding: 80px 0; }

.sobre-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 60px;
}

.sobre img { 
    max-width: 450px;
    width: 100%;
    height: auto;
    justify-self: center;
    border-radius: var(--radius);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.sobre article h2 {
    font-size: 36px;
    color: var(--dark);
    margin-bottom: 20px;
    position: relative;
}

.sobre article h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin-top: 8px;
    border-radius: 2px;
}

.sobre article p { font-size: 17px; color: var(--gray); line-height: 1.8; }

.cta {
    background: linear-gradient(135deg, #3a0066, #5b0099, #2d0050);
    text-align: center;
    padding: 60px 20px;
}

.cta h2 {
    font-size: 38px;
    color: #fff !important;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cta p {
    color: rgba(255,255,255,0.9) !important;
    font-size: 19px;
    margin-bottom: 30px;
}

/* ===================================================== */
/* ================= MODAIS =========================== */
/* ===================================================== */

.cart-modal-container {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 3000;
}

@media (min-width: 768px) {
    .cart-modal-container { align-items: center; padding: 20px; }
    .cart-modal { border-radius: 20px !important; }
}

.cart-modal {
    background: #fff;
    width: 100%;
    max-width: 500px;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    max-height: 95vh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.cart-header, 
.cart-items, 
#modal-content,
.cart-total, 
.input-group, 
.payment-container, 
.address-grid, 
.checkout-btn {
    flex-shrink: 0;
}

.cart-modal input, .cart-modal select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #f9f9f9;
    font-size: 14px;
    margin-bottom: 10px;
}

.cart-modal label:not(.option-item) {
    padding: 0 25px;
    display: block;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 5px;
    color: #444;
}

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

#close-modal-btn, #close-product-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f1f1f1;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    color: #555;
    transition: background 0.2s, color 0.2s;
    z-index: 10;
}

#close-modal-btn:hover, #close-product-modal:hover {
    background: #e2e2e2;
    color: var(--primary);
}

#modal-content, .cart-items {
    flex: none; 
    overflow-y: visible; 
    padding: 15px 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-name { font-weight: 700; font-size: 15px; }
.cart-item-desc { font-size: 12px; color: #777; margin: 2px 0; }
.cart-item-price { color: var(--primary); font-weight: 700; }

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-item-actions button {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
}

/* ===================================================== */
/* ======= ITENS DO MODAL DE PRODUTO (COMPACTO) ======== */
/* ===================================================== */

.group-section { margin-bottom: 16px; }

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.group-header h4 { font-size: 14px; font-weight: 700; }

.required-tag {
    background: #000;
    color: #fff;
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 4px;
}

.option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: #f8f8f8;
    border-radius: 8px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid transparent;
}

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

.option-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.option-info span { font-size: 13px; }

.opt-price { font-size: 12px; color: var(--gray); white-space: nowrap; }

.option-info input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.counter-wrapper { display: flex; align-items: center; gap: 10px; }

.counter-wrapper button {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: #fff;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
}

.counter-wrapper span { font-size: 13px; min-width: 16px; text-align: center; }

/* CAMPOS DE INPUT E BOTÕES */
.input-group, .payment-container, .address-input-container, #troco-field {
    padding: 0 25px;
    margin-top: 15px;
}

.cart-taxa {
    padding: 8px 25px;
    font-size: 14px;
    color: var(--gray);
    text-align: right;
}

.cart-taxa strong { color: var(--dark); }

.cart-taxa-erro {
    color: #e53935;
    font-weight: 600;
}

.cart-total {
    padding: 15px 25px;
    font-size: 20px;
    font-weight: 800;
    text-align: right;
    color: var(--dark);
    border-top: 1px dashed #eee;
    padding-top: 20px;
    margin-top: 10px;
}

.checkout-btn {
    margin: 15px 25px 25px;
    padding: 16px;
    background: #2ecc71;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
}

.address-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 10px;
    padding: 0 25px;
}

.address-full-width { grid-column: span 2; }

/* FOOTER */
footer { background: var(--dark); color: #fff; padding: 60px 0 20px; }

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-grid h3, .footer-grid h4 { color: var(--primary); margin-bottom: 15px; }

.copy { 
    text-align: center; 
    border-top: 1px solid #333; 
    padding-top: 20px; 
    margin-top: 40px; 
    font-size: 14px; 
    color: #888; 
}

/* UTILITÁRIOS */
.hidden { display: none !important; }

.toast-error {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ff4b4b;
    color: white;
    padding: 12px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 9999;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { top: -50px; opacity: 0; }
    to { top: 20px; opacity: 1; }
}

.toast-success {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2ecc71;
    color: white;
    padding: 12px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 10000;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDownIn 0.4s ease-out;
}

@keyframes slideDownIn {
    from { top: -60px; opacity: 0; }
    to { top: 20px; opacity: 1; }
}

/* MOBILE */
@media (max-width: 768px) {
    .container { padding: 0 15px; }
    
    header { padding: 10px 0; }
    .header-content { 
        flex-direction: column; 
        gap: 10px; 
        align-items: center; 
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
        padding-top: 5px;
        border-top: 1px solid #eee;
    }
    
    .hidden-mobile { 
        display: flex;
        flex-grow: 1;
        justify-content: center;
    } 

    .btn-cart-header { padding: 8px 12px; font-size: 14px; }
    
    header nav { 
        gap: 10px; 
        font-size: 14px; 
        overflow-x: auto; 
        width: 100%;
        justify-content: center;
    }

    .hero-wrapper { padding-top: 140px; text-align: center; }
    .hero { grid-template-columns: 1fr; gap: 40px; }
    .hero-image { order: -1; } 
    .hero h1 { font-size: 34px; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; gap: 20px; }
    
    .cardapio { padding: 60px 15px; }
    .cardapio h2 { font-size: 28px; }

    .sobre-content { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .sobre img { max-width: 300px; }
    .sobre article h2::after { margin: 8px auto 0; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }

    .menu-grid { 
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0;
    }

    .product-card { padding: 10px; border-radius: 12px; gap: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }

    .img-container { width: 75px; height: 75px; }
    .img-container img { border-radius: 8px; }

    .prod-info h3 { font-size: 15px; margin-bottom: 2px; }
    
    .prod-info p { 
        font-size: 12px;
        line-height: 1.3;
        margin-bottom: 5px;
        max-height: 2.6em;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;  
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: break-word;
    }

    .price-row { margin-top: auto; }
    .price-row strong { font-size: 16px; }

    .btn-add-card { width: 28px; height: 28px; }
    .btn-add-card svg, .btn-add-card i { font-size: 14px; }

    .card-long-desc .prod-info p {
        -webkit-line-clamp: 4;
        line-clamp: 4;
        max-height: 5.2em;
    }

    .card-long-desc .img-container {
        align-self: flex-start;
    }
}

@media (max-width: 380px) {
    .cart-header { padding: 15px; }
    .cart-total { padding: 10px 20px; font-size: 18px; }
    .checkout-btn { margin: 10px 20px 25px; padding: 14px; }
    
    .address-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
}

/* ==========================
   SEÇÃO PREMIAÇÕES
   ========================== */
.premiacoes {
    background: linear-gradient(135deg, #1a0533 0%, #2d1054 100%);
    padding: 80px 0;
    overflow: hidden;
}

.premiacoes h2 {
    text-align: center;
    font-size: 36px;
    color: #fff;
    margin-bottom: 8px;
    position: relative;
}

.premiacoes h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 12px auto 0;
    border-radius: 2px;
}

.premiacoes .subtitle {
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 15px;
    margin-bottom: 48px;
}

/* Carrossel */
.carousel-wrapper {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 60px;
}

.carousel-track-container {
    overflow: hidden;
    border-radius: 16px;
}

.carousel-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    padding: 0 8px;
    box-sizing: border-box;
}

.cert-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.cert-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #000;
}

.cert-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.cert-card:hover .cert-img-wrapper img {
    transform: scale(1.03);
}

.cert-info {
    padding: 20px 24px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.cert-badge {
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.cert-info h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.cert-info p {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    margin-top: 2px;
}

/* Setas */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.carousel-btn:hover { background: var(--primary); border-color: var(--primary); }
.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }

/* Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    padding: 0;
}

.carousel-dots .dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .premiacoes { padding: 60px 0; }

    /* 1. Título em uma linha só */
    .premiacoes h2 { font-size: 22px; }

    /* 2. Subtítulo centralizado */
    .premiacoes .subtitle { text-align: center; padding: 0 16px; }

    /* 3. Setas coladas na borda do card, não sobrando pra fora */
    .carousel-wrapper { padding: 0 20px; }
    .carousel-btn { width: 32px; height: 32px; font-size: 13px; }
    .carousel-btn.prev { left: -4px; }
    .carousel-btn.next { right: -4px; }

    .cert-info { padding: 14px 16px 18px; gap: 12px; }
    .cert-info h3 { font-size: 14px; }
}