/*
 * ==========================================
 * DESIGN SYSTEM DE ELITE: PLAZA ALIMENTOS
 * Padrão Kit 2.0 - Alta Performance e UX Premium
 * Módulo: Cardápio Digital PWA - Identidade Sand-Beige Minimalista
 * ==========================================
 */

:root {
    --bg-main: #F4F2EE; /* Linen sand-beige */
    --bg-card: #FFFFFF; /* Pure white crisp card */
    --bg-modal: rgba(44, 30, 27, 0.45); /* Warm coffee translucent backdrop */
    
    /* Classy brand indicator colors */
    --spoleto: #B91C1C;
    --spoleto-glow: rgba(185, 28, 28, 0.12);
    --dominos: #006491;
    --dominos-glow: rgba(0, 100, 145, 0.12);
    --china: #EA580C;
    --china-glow: rgba(234, 88, 12, 0.12);
    
    /* Unified Theme Interface Colors */
    --color-terracotta: #8D4B32;
    --color-slate-green: #0D3B30;
    --color-grey-brown: #8B7E74;
    --border-light: #E4DFD5;
    
    --text-primary: #2C1E1B; /* Warm charcoal */
    --text-secondary: #8B7E74; /* Warm grey-brown */
    --accent: #0D3B30; /* Primary action color: Slate Green */
    --accent-glow: rgba(13, 59, 48, 0.15);
    --border-color: #E4DFD5;
    
    /* Emitters and Shadows */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow: 0 10px 30px rgba(141, 120, 100, 0.06);
    --glass: rgba(255, 255, 255, 0.85);
    --border-glass: rgba(141, 120, 100, 0.08);
}

/* Reset Geral */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.5;
    /* Soft linen gradient */
    background-image: 
        radial-gradient(circle at 50% 20%, #FAF8F5 0%, transparent 60%),
        radial-gradient(circle at 0% 100%, #FAF8F5 0%, transparent 40%),
        linear-gradient(180deg, #F4F2EE 0%, #EBE8E2 100%);
}

/* Scrollbar Customizada */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Header Premium Textured - Kit 2.0 Dynamic Design */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #B65227 url('PWAHeader.jpeg') center/cover no-repeat;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.12);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

/* Colunas do Header */
.header-left-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
}

.header-center-col {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.header-right-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-end;
}

/* Logo Centralizada Altura Total */
.header-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px; /* Ocupa a altura vertical total do header */
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    background: #FFFFFF;
    border: 2px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}
.header-logo-link:hover {
    transform: scale(1.05);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}
.header-logo-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.logo-area {
    display: flex;
    flex-direction: column;
}

.logo-badge {
    align-self: flex-start;
    background: #F7EAD9 !important;
    color: var(--color-terracotta) !important;
    font-weight: 800;
    font-size: 0.68rem;
    text-transform: uppercase;
    padding: 0.2rem 0.85rem;
    border-radius: 9999px;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(141, 75, 50, 0.15);
    text-align: center;
    display: inline-block;
}

.logo-area h1 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    color: #FFFFFF !important;
}

.accent-text {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    color: #FFFFFF !important;
}

.tagline {
    font-size: 0.8rem;
    color: #F4EFEA !important;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    opacity: 0.95;
}

.tagline i {
    color: #FFFFFF !important;
}

/* Nav Actions in Header (Outline Pill Styles) */
.back-home-link {
    color: #FFFFFF !important;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition);
    opacity: 0.9;
}
.back-home-link:hover {
    opacity: 1;
    transform: translateX(-2px);
}

.header-top-nav {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.header-buttons-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-end;
    justify-content: flex-end;
}

/* WhatsApp Button em Verde Sólido Premium Escurecido */
.whats-nav-btn {
    background: #1B8A44 !important;
    border: none !important;
    color: #FFFFFF !important;
    padding: 0.6rem 1.3rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 12px rgba(27, 138, 68, 0.25);
    transition: var(--transition);
}
.whats-nav-btn:hover {
    background: #156D35 !important;
    transform: translateY(-1.5px);
    box-shadow: 0 6px 16px rgba(27, 138, 68, 0.35);
}

/* Empresas e Grupos Button em Azul Marinho Sólido Premium 3D */
.group-nav-btn {
    background: linear-gradient(180deg, #1C3D5A, #0A223E) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #FFFFFF !important;
    padding: 0.6rem 1.3rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(10, 34, 62, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}
.group-nav-btn:hover {
    background: linear-gradient(180deg, #244C6F, #0E2E52) !important;
    transform: translateY(-1.5px);
    box-shadow: 0 6px 18px rgba(10, 34, 62, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.group-nav-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(10, 34, 62, 0.3);
}

/* Telefone do Plaza */
.header-phone-row {
    color: #FFFFFF !important;
    font-size: 0.9rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    opacity: 0.95;
    margin-top: 0.15rem;
}

.header-badges {
    display: flex;
    gap: 0.5rem;
}

.brand-badge-logo {
    background: #FFFFFF;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 35px;
    width: 70px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.brand-badge-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Responsividade de Elite do Header */
@media (max-width: 991px) {
    .header-container {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        text-align: center;
    }
    
    .header-left-col {
        align-items: center;
        text-align: center;
    }
    
    .logo-badge {
        align-self: center;
    }
    
    .header-badges {
        justify-content: center;
    }
    
    .header-center-col {
        order: -1; /* Coloca a logo circular no topo absoluto no mobile */
        margin-bottom: 0.25rem;
    }
    
    .header-logo-link {
        width: 120px;
        height: 120px;
    }
    
    .header-right-col {
        align-items: center;
        text-align: center;
    }
    
    .header-top-nav, .header-buttons-row {
        justify-content: center;
    }
}

.brand-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border-glass);
}

.spoleto-color { background-color: rgba(185, 28, 28, 0.06); color: #B91C1C; border-color: rgba(185, 28, 28, 0.18); }
.dominos-color { background-color: rgba(0, 100, 145, 0.06); color: #006491; border-color: rgba(0, 100, 145, 0.18); }
.china-color { background-color: rgba(234, 88, 12, 0.06); color: #EA580C; border-color: rgba(234, 88, 12, 0.18); }

/* Hero Banner "Tem Tudo no Plaza" */
.hero-banner {
    max-width: 1200px;
    margin: 1.5rem auto;
    padding: 0 1rem;
}

.hero-content {
    /* Rich Warm Coffee/Chocolate Overlay for high-end contrast - Image is set inline */
    background-color: #1c1412;
    background-blend-mode: overlay;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    color: #FFFFFF !important;
}

.hero-tag {
    background: linear-gradient(135deg, var(--color-terracotta), #A35A3D) !important;
    color: #FFFFFF !important;
    font-weight: 700;
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.hero-content h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.hero-content .highlight {
    background: linear-gradient(to right, #F59E0B, #EA580C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    color: #E4DFD5 !important; /* Soft sand white text */
    font-size: 0.95rem;
    max-width: 700px;
}

/* Filtros de Categorias */
.filter-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.filter-tabs {
    display: flex;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
}

.filter-btn {
    background-color: #FFFFFF;
    border: 1.5px solid var(--color-terracotta);
    color: var(--color-terracotta);
    padding: 0.65rem 1.25rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(141, 120, 100, 0.02);
}

.filter-btn:hover {
    border-color: var(--color-slate-green);
    background-color: rgba(141, 75, 50, 0.04);
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: var(--color-slate-green) !important;
    color: #FFFFFF !important;
    border-color: var(--color-slate-green) !important;
    box-shadow: 0 4px 12px rgba(13, 59, 48, 0.15);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.spoleto-bg { background-color: var(--spoleto); }
.dominos-bg { background-color: var(--dominos); }
.china-bg { background-color: var(--china); }

.filter-btn.brand-promos {
    background-color: #B91C1C !important;
    color: #FFD700 !important;
    border-color: #FFD700 !important;
    font-weight: 800 !important;
    box-shadow: 0 3px 10px rgba(185, 28, 28, 0.25) !important;
}
.filter-btn.brand-promos:hover {
    background-color: #9E1616 !important;
    border-color: #FFEA70 !important;
    color: #FFEA70 !important;
    transform: translateY(-2px);
}
.filter-btn.brand-promos.active {
    background-color: #9E1616 !important;
    color: #FFF550 !important;
    border-color: #FFF550 !important;
    box-shadow: 0 5px 15px rgba(185, 28, 28, 0.45) !important;
}

/* Marca Logos Incorporados e Aba Bebidas */
.brand-btn-logo {
    height: 20px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
    pointer-events: none;
    display: block;
}

/* Categorias Aninhadas (Sub-filtros) */
.sub-category-bar {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 0.25rem 0.25rem 0.25rem;
    margin-top: 0.75rem;
    overflow-x: auto;
    border-top: 1px dashed var(--border-light);
    animation: slideDown 0.3s ease-out;
}
.sub-category-bar.hidden {
    display: none !important;
}
.sub-category-btn {
    background-color: #FFFFFF;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 0.45rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}
.sub-category-btn:hover {
    background-color: rgba(141, 75, 50, 0.03);
    border-color: var(--color-terracotta);
    color: var(--color-terracotta);
}
.sub-category-btn.active {
    background-color: var(--color-terracotta) !important;
    border-color: var(--color-terracotta) !important;
    color: #FFFFFF !important;
    box-shadow: 0 3px 8px rgba(141, 75, 50, 0.12);
}

/* Pizzas Segmented Sizes */
.pizza-sizer-container {
    display: flex;
    background: rgba(141, 126, 116, 0.08);
    border-radius: 10px;
    padding: 0.2rem;
    margin: 0.5rem 0;
    width: 100%;
    border: 1px solid var(--border-light);
}
.pizza-sizer-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
    text-align: center;
}
.pizza-sizer-btn.active {
    background-color: #FFFFFF;
    color: var(--color-slate-green);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Operação Fechada Banner & Notices */
.closed-notice-banner {
    background: linear-gradient(135deg, #B91C1C, #9E1616);
    color: #FFFFFF;
    width: 100%;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    box-shadow: 0 4px 15px rgba(185, 28, 28, 0.15);
    animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.closed-notice-banner.hidden {
    display: none !important;
}
.banner-closed-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}
.banner-closed-content i {
    font-size: 1.1rem;
    color: #FFEA70;
}
.closed-scheduling-notice {
    background-color: rgba(185, 28, 28, 0.06);
    border: 1.5px dashed rgba(185, 28, 28, 0.3);
    padding: 0.75rem;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #B91C1C;
    font-weight: 600;
    margin-bottom: 1.25rem;
}
.closed-scheduling-notice.hidden {
    display: none !important;
}
.closed-scheduling-notice i {
    margin-top: 0.15rem;
    font-size: 0.9rem;
}

@keyframes slideDown {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Grid de Produtos */
.products-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem 8rem 1rem; /* Extra margin at bottom for the cart dock */
}

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

/* Cartões de Produtos */
.product-card {
    background-color: var(--bg-card);
    border: 1.5px solid var(--border-light);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-terracotta);
    box-shadow: 0 12px 25px rgba(141, 120, 100, 0.08);
}

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

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

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

.product-brand-tag {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(0,0,0,0.18);
    color: #FFFFFF !important;
    z-index: 2;
    opacity: 1 !important;
}

/* Force solid, opaque brand colors on product image tags */
.product-brand-tag.spoleto-color {
    background-color: var(--spoleto) !important;
    border: none !important;
}
.product-brand-tag.dominos-color {
    background-color: var(--dominos) !important;
    border: none !important;
}
.product-brand-tag.china-color {
    background-color: var(--china) !important;
    border: none !important;
}

.product-promo-tag {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(0,0,0,0.18);
    background: linear-gradient(135deg, #EA580C, #C2410C) !important;
    color: #FFFFFF !important;
    z-index: 2;
}

.navbar-logo-link img {
    transition: transform 0.3s ease;
}

.navbar-logo-link:hover img {
    transform: scale(1.1) !important;
}

.product-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.product-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.25;
    color: var(--text-primary);
}

.product-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
}

.btn-add-cart {
    background-color: var(--color-slate-green);
    border: none;
    color: #FFFFFF;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.05rem;
    transition: var(--transition);
}

.btn-add-cart:hover {
    background-color: var(--color-terracotta);
    color: #FFFFFF;
    transform: scale(1.1);
}

/* Loading & Empty State */
.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-secondary);
}

.loading-state i {
    font-size: 2.5rem;
    color: var(--color-slate-green);
    margin-bottom: 1rem;
}

/* Barra Flutuante do Carrinho (Cart Dock) */
.cart-dock {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.85); /* Premium glass white background */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(141, 120, 100, 0.12);
    z-index: 90;
    transition: var(--transition);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-dock.hidden {
    bottom: -100px;
    opacity: 0;
    pointer-events: none;
}

.cart-dock-info {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    cursor: pointer;
}

.cart-icon-container {
    position: relative;
    background-color: #FAF9F6;
    border: 1px solid var(--border-light);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--color-slate-green);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--color-terracotta);
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-title {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.cart-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.btn-checkout {
    background-color: var(--color-slate-green);
    color: #FFFFFF;
    border: none;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.65rem 1.2rem;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-checkout:hover {
    background-color: var(--color-terracotta);
    transform: translateY(-2px);
}

/* Modais Translucent */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-modal);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: var(--transition);
}

.modal-backdrop.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-card {
    background-color: var(--bg-card);
    border: 1.5px solid var(--border-light);
    width: 100%;
    max-width: 480px;
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(44, 30, 27, 0.15);
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--color-terracotta);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex-grow: 1;
}

.modal-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 0.75rem;
}

/* Lista de Itens no Carrinho */
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
}

.cart-item-details {
    flex-grow: 1;
    padding-right: 1rem;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-primary);
}

.cart-item-brand {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 800;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    color: #FFFFFF;
}

/* Dynamic colors for item tags in cart */
.cart-item-brand[data-brand="spoleto"] { background-color: var(--spoleto); }
.cart-item-brand[data-brand="dominos"] { background-color: var(--dominos); }
.cart-item-brand[data-brand="china"] { background-color: var(--china); }

.cart-item-price {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #FAF9F6;
    border: 1px solid var(--border-light);
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
}

.qty-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.85rem;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.qty-btn:hover {
    color: var(--color-terracotta);
}

.qty-val {
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 15px;
    text-align: center;
}

/* Sumário do Carrinho */
.cart-summary {
    background-color: #FAF9F6;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1rem;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.highlight-line {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 800;
    border-top: 1px dashed var(--border-light);
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
}

.shipping-info-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(13, 59, 48, 0.05);
    color: var(--color-slate-green);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(13, 59, 48, 0.15);
}

/* Botões Form */
.btn-primary {
    background-color: var(--color-slate-green);
    color: #FFFFFF;
    border: none;
    font-weight: 700;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    cursor: pointer;
    flex-grow: 1;
    transition: var(--transition);
}
.btn-primary:hover { 
    background-color: var(--color-terracotta); 
}

.btn-outline {
    background: none;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}
.btn-outline:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

/* Formulário de Checkout */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.form-group input, .form-group select {
    width: 100%;
    background-color: #FAF9F6;
    border: 1.5px solid var(--border-light);
    color: var(--text-dark);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--color-slate-green);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

.delivery-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.option-card {
    background-color: #FAF9F6;
    border: 1.5px solid var(--border-light);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
}

.option-card i {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.option-card span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.option-card.active {
    border-color: var(--color-slate-green);
    background-color: rgba(13, 59, 48, 0.05);
}

.option-card.active i {
    color: var(--color-slate-green);
}

.total-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #FAF9F6;
    border: 1px solid var(--border-light);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.total-bar span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.total-bar strong {
    font-size: 1.35rem;
    color: var(--color-terracotta);
    font-weight: 800;
}

.btn-submit-order {
    width: 100%;
    background: linear-gradient(135deg, var(--color-slate-green), #115344);
    color: #FFFFFF;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(13, 59, 48, 0.15);
}

.btn-submit-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 59, 48, 0.25);
    background: linear-gradient(135deg, var(--color-terracotta), #96533c);
}

/* Tela de Sucesso */
.success-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-main);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.success-screen.hidden {
    display: none;
}

.success-card {
    background-color: var(--bg-card);
    border: 1.5px solid var(--border-light);
    width: 100%;
    max-width: 480px;
    border-radius: 24px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    animation: scaleUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.success-icon {
    width: 72px;
    height: 72px;
    background-color: rgba(13, 59, 48, 0.08);
    color: var(--color-slate-green);
    font-size: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.success-card h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.success-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.success-details {
    background-color: #FAF9F6;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: left;
    font-size: 0.9rem;
    border: 1px solid var(--border-light);
}

.success-details p {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.success-details p:last-child {
    margin-bottom: 0;
}

.success-action-txt {
    font-size: 0.85rem !important;
    margin-bottom: 0.75rem !important;
}

.btn-whatsapp-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #25D366;
    color: #FFFFFF;
    text-decoration: none;
    padding: 0.85rem;
    border-radius: 12px;
    font-weight: 700;
    margin-bottom: 1rem;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp-action:hover {
    background-color: #22C35E;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3);
}

.btn-back-menu {
    width: 100%;
    background: none;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 0.75rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-back-menu:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

/* Animações */
@keyframes slideUp {
    from { transform: translate(-50%, 100px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

@keyframes scaleUp {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Responsividade Mídia Fina */
@media (max-width: 600px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .header-badges {
        width: 100%;
        justify-content: flex-start;
    }
    .hero-content {
        padding: 1.5rem;
    }
    .hero-content h2 {
        font-size: 1.5rem;
    }
    .modal-card {
        max-height: 95vh;
    }
}

/* ========================================================
   ESTILOS PREMIUM DE PEDIDO COLETIVO (GRUPO)
   ======================================================== */

.btn-group-init {
    background: linear-gradient(135deg, var(--color-terracotta), #A35A3D);
    border: none;
    color: #FFFFFF;
    padding: 0.65rem 1.25rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(141, 75, 50, 0.15);
}

.btn-group-init:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--color-slate-green), #115344);
    box-shadow: 0 6px 20px rgba(13, 59, 48, 0.2);
}

.group-banner-premium {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0 1rem;
    animation: fadeIn 0.4s ease-out;
}

/* Dynamic styling overrides for Group Active banners (injected dynamically via JS) */
.group-banner-content {
    background: #FFFFFF !important;
    border: 1.5px solid var(--border-light) !important;
    border-radius: 16px;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: var(--shadow) !important;
}

.group-banner-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--color-slate-green) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.group-banner-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary) !important;
    margin-top: 0.15rem;
}

.group-banner-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-share-group {
    background-color: #25D366 !important;
    color: #FFFFFF !important;
    text-decoration: none;
    padding: 0.6rem 1.1rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.15);
    transition: var(--transition);
}

.btn-share-group:hover {
    background-color: #22C35E !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.25);
}

.btn-exit-group {
    background: rgba(239, 68, 68, 0.06) !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    color: #EF4444 !important;
    padding: 0.6rem 1.1rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-exit-group:hover {
    background-color: rgba(239, 68, 68, 0.1) !important;
    border-color: #EF4444 !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .group-banner-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }
    .group-banner-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Nav Actions Adjustments */
.group-nav-btn {
    transition: var(--transition);
}
.group-nav-btn:hover {
    background-color: var(--color-terracotta) !important;
    color: #FFFFFF !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(141, 75, 50, 0.12);
}
.whats-nav-btn:hover {
    background: rgba(37, 211, 102, 0.22) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.15);
}
.back-home-link:hover {
    color: var(--color-terracotta) !important;
}

/* ========================================================
 * CARROSSEL HERO DINÂMICO SPRINT 4
 * ========================================================
 */
.hero-slider {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background-color: var(--text-primary);
}

.hero-slide {
    display: none;
    width: 100%;
    animation: fadeEffect 0.8s ease-in-out;
}

.hero-slide.active {
    display: block;
}

.hero-content-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    transition: var(--transition);
}

.hero-content-link:hover {
    filter: brightness(1.05);
}

@keyframes fadeEffect {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.dot-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-light);
    cursor: pointer;
    transition: var(--transition);
}

.dot-indicator:hover {
    background-color: var(--text-secondary);
}

.dot-indicator.active {
    background-color: var(--color-terracotta) !important;
    width: 24px;
    border-radius: 5px;
}

/* Responsive improvements for circular full-height logo */
@media (max-width: 576px) {
    .header-container {
        flex-wrap: wrap !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 0.75rem !important;
    }
    .header-logo-column {
        margin: 0 auto !important;
    }
    .header-content-column {
        width: 100% !important;
        align-items: center !important;
    }
    .header-top-bar {
        justify-content: center !important;
        gap: 0.5rem !important;
    }
    .logo-area {
        align-items: center !important;
    }
    .logo-badge {
        align-self: center !important;
    }
    .header-badges {
        justify-content: center !important;
    }
}

/* Utilitário de Invisibilidade Global (Kit 2.0) */
.hidden {
    display: none !important;
}

/* ==========================================================================
   Search Tab and Fallback Styles (Sprint 9.8)
   ========================================================================== */

.search-tab-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.search-tab-input {
    background-color: #FFFFFF;
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.65rem 2.5rem 0.65rem 2.25rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9rem;
    width: 220px;
    outline: none;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(141, 120, 100, 0.02);
}

.search-tab-input::placeholder {
    color: var(--text-secondary);
    font-weight: 500;
}

.search-tab-input:hover {
    border-color: var(--color-terracotta);
}

.search-tab-input:focus {
    border-color: var(--color-slate-green);
    box-shadow: 0 4px 12px var(--accent-glow);
    width: 260px; /* Elegant slight expansion on focus! */
}

.search-tab-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    pointer-events: none;
    transition: var(--transition);
}

.search-tab-input:focus ~ .search-tab-icon {
    color: var(--color-slate-green);
}

.search-clear-btn {
    position: absolute;
    right: 0.85rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    padding: 0;
}

.search-clear-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

.search-clear-btn:hover {
    color: var(--color-terracotta);
    transform: scale(1.1);
}

/* Beautiful glassmorphic fallback for search empty-state */
.no-results-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 1.5rem;
    text-align: center;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px dashed var(--border-light);
    box-shadow: var(--shadow);
    margin: 1.5rem 0;
    transition: var(--transition);
}

.no-results-icon {
    font-size: 3.5rem;
    color: var(--color-terracotta);
    margin-bottom: 1.25rem;
    filter: drop-shadow(0 4px 6px rgba(141, 75, 50, 0.15));
}

.no-results-state h3 {
    font-size: 1.35rem;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.no-results-state p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
    max-width: 440px;
    line-height: 1.5;
}

.clear-search-btn-inner {
    background-color: var(--color-slate-green);
    color: #FFFFFF;
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px var(--accent-glow);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.clear-search-btn-inner:hover {
    background-color: var(--color-terracotta);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(141, 75, 50, 0.25);
}

/* ========================================================
   BANDEJA DE UPSELL DINÂMICO (SPRINT 3 - P2)
   ======================================================== */
.cart-upsell-container {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1.5px dashed var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.upsell-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.upsell-title i {
    color: var(--color-terracotta);
}

.upsell-carousel {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border-light) transparent;
    -webkit-overflow-scrolling: touch;
}

.upsell-carousel::-webkit-scrollbar {
    height: 4px;
}

.upsell-carousel::-webkit-scrollbar-track {
    background: transparent;
}

.upsell-carousel::-webkit-scrollbar-thumb {
    background-color: var(--border-light);
    border-radius: 4px;
}

.upsell-item {
    flex: 0 0 170px;
    background-color: #FBFBFA;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.75rem;
    transition: var(--transition);
}

.upsell-item:hover {
    transform: translateY(-2px);
    border-color: var(--color-terracotta);
    box-shadow: 0 4px 12px rgba(141, 75, 50, 0.06);
}

.upsell-item-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.upsell-item-brand {
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    align-self: flex-start;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    border: 1px solid transparent;
}

.upsell-item-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.1rem; /* Assure uniform card heights */
}

.upsell-item-price {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--color-terracotta);
}

.btn-upsell-add {
    background-color: #FFFFFF;
    border: 1px solid var(--color-slate-green);
    color: var(--color-slate-green);
    border-radius: 8px;
    padding: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: 100%;
}

.btn-upsell-add:hover {
    background-color: var(--color-slate-green);
    color: #FFFFFF;
    box-shadow: 0 2px 6px rgba(13, 59, 48, 0.12);
}

