@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary: #f43f5e;
    --accent: #10b981;
    --dark: #0f172a;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --light: #f8fafc;
    --surface: #ffffff;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --border: #f1f5f9;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-full: 9999px;
    --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.02), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

.hidden {
    display: none !important;
}

.flex-center {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #fdfdfd;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 100px;
}

/* Premium Glass Header */
.header {
    position: sticky;
    top: 0;
    z-index: 2000; /* Aumentado para ficar acima dos preços (1000) */
    background-color: var(--glass);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease, transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.45s ease;
}

.header.modal-open {
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
}

body.modal-open .highlight-container,
body.modal-open .categories-nav,
body.modal-open #menu-container,
body.modal-open .bottom-categories-nav,
body.modal-open #menu-footer {
    display: none !important;
}

.header-socials {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: var(--slate-800);
    border: 1px solid var(--border);
    transition: all 0.30s ease;
    font-size: 1.25rem;
    box-shadow: var(--shadow-soft);
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-2px);
    background: var(--dark);
    color: white !important;
}

.social-icon.whatsapp { color: #25D366; }
.social-icon.instagram { color: #E4405F; }
.social-icon.facebook { color: #1877F2; }
.social-icon.tiktok { color: #000000; }
.social-icon.reservas { color: #6366f1; }

.logo-box {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-box img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: none !important;
}

/* Featured Carousel Refinement */
.highlight-container {
    padding: 0; /* Remove margem superior - cola no cabeçalho */
    margin: 0;
}

.highlight-slide {
    height: 60vh; /* Dobrado para desktop conforme solicitado */
    border-radius: 0; /* Full width - sem arredondamento lateral */
    box-shadow: none;
    border: none; /* Sem borda branca lateral */
    overflow: hidden;
    position: relative;
    width: 100%;
}

/* Ken Burns: slow zoom + lateral pan */
@keyframes kenBurns {
    0%   { transform: scale(1)    translateX(0);     }
    50%  { transform: scale(1.08) translateX(-2%);   }
    100% { transform: scale(1.04) translateX(1%);    }
}

@keyframes kenBurnsAlt {
    0%   { transform: scale(1.04) translateX(1%);    }
    50%  { transform: scale(1.1)  translateX(-1%);   }
    100% { transform: scale(1)    translateX(0);     }
}

.highlight-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1);
    animation: kenBurns 10s ease-in-out infinite alternate;
    will-change: transform;
}

.highlight-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.highlight-cta {
    display: inline-block;
    margin-top: 0.75rem;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    letter-spacing: 0.05em;
    pointer-events: none;
}

.highlight-slide:hover img {
    animation-play-state: paused;
}

/* Fotos dos cards de produto */
.product-img {
    object-fit: cover;
}

/* Floating Navigation */
.categories-nav {
    position: sticky;
    top: 130px; /* Ajustado para bater com a altura do header no modo loja */
    z-index: 1900;
    background: rgba(253, 253, 253, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch;
    display: flex;
    gap: 0.75rem;
    padding-left: 1.5rem;
    scrollbar-width: none;
}

.categories-nav::-webkit-scrollbar {
    display: none;
}

.category-pill {
    white-space: nowrap;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-full);
    background: white;
    border: 1px solid #edf2f7;
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.category-pill.active {
    background: var(--dark);
    color: white;
    border-color: var(--dark);
    transform: scale(1.05);
    box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.3);
}

/* Products Layout */
.menu-section {
    padding: 1.5rem 1.5rem 0;
}

.section-title {
    font-size: 1.35rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--slate-800);
    letter-spacing: -0.03em;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

/* Premium Product Cards */
.products-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.product-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    gap: 1.25rem;
    border: 1px solid #f8fafc;
    box-shadow: var(--shadow-premium);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.product-card:active {
    transform: scale(0.97);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #f1f5f9;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

/* Container da imagem do card — padrão (row): largura fixa */
.product-img-wrapper {
    min-width: 140px;
    width: 140px;
    height: 110px;
    flex-shrink: 0;
}

/* Modo loja (column): imagem ocupa 100% do card sem margens */
.mode-loja .product-img-wrapper {
    width: 100% !important;
    height: 200px !important;
    border-radius: 0 !important;
    min-width: unset !important;
    margin: 0 !important;
}

/* Padding apenas na área de info no modo loja — Limpo e abaixo da foto */
.mode-loja .product-card .product-info {
    padding: 1.25rem 1.5rem 1.5rem !important;
    margin-top: 0 !important;
    position: relative !important;
    z-index: 1 !important;
    background: #f4f3f2 !important; /* Cor sólida do card, sem gradiente */
}

.mode-loja .product-name {
    margin-top: 0 !important;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.25rem;
}

.product-name {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.product-price {
    font-weight: 900;
    color: var(--primary);
    background: #f5f3ff;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.95rem;
}

.product-desc {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #94a3b8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
}

.tag-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 11px;
}

.tag-vegan {
    background: #dcfce7;
    color: #166534;
}

.tag-vegetarian {
    background: #ecfdf5;
    color: #059669;
}

.tag-spicy {
    background: #fee2e2;
    color: #b91c1c;
}

.tag-cold {
    background: #e0f2fe;
    color: #0369a1;
}

.tag-hot {
    background: #fff7ed;
    color: #c2410c;
}

.tag-combo {
    background: var(--dark);
    color: white;
}

.tag-alcoholic {
    background: #f3e8ff;
    color: #6b21a8;
}

.tag-carnivoro {
    background: #fff1f2;
    color: #e11d48;
}

/* Modal Upgrade */
/* Adjusted Photo Banner */
.product-swiper {
    height: 20vh !important;
    /* Always 20% of screen height */
    width: 100%;
    position: relative !important;
}

.product-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: flex-end;
}

.modal-content {
    background: #ffffff;
    width: 100%;
    height: 95vh;
    max-height: 95vh;
    border-radius: 48px 48px 0 0;
    overflow-y: auto;
    padding: 0;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    overscroll-behavior: contain;
}

.modal-content.show {
    transform: translateY(0);
}

.modal-close {
    position: relative;
    width: 42px;
    height: 42px;
    background: white;
    border-radius: 50%;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.modal-close:active {
    transform: scale(0.9);
}

/* Step Groups & Visual Selection */
.step-group {
    padding: 1.5rem 0 0;
    border-top: 1px solid var(--border);
    margin-bottom: 2rem;
}

.step-group:first-of-type {
    border-top: none;
}

/* Elegant Cascading Grid (3 columns Mobile) */
.step-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 16px;
    border: 1.5px solid transparent;
}

.step-card:active {
    transform: scale(0.98);
}

/* Custom Checkbox/Radio behavior via has() */
label:has(input:checked) {
    border-color: var(--primary) !important;
    background-color: white !important;
    box-shadow: 0 15px 30px -10px rgba(99, 102, 241, 0.15);
    transform: translateY(-4px) scale(1.02);
}

label:has(input:checked) .check-overlay {
    opacity: 1;
}

label:has(input:checked) .check-circle {
    transform: scale(1);
    opacity: 1;
}

.check-circle {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: var(--primary);
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    transform: scale(0);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

/* Horizontal Selection List (List-Card Layout) */
.selection-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.selection-card {
    background: #f8fafc;
    border-radius: 20px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1.5px solid transparent;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.selection-card:active {
    transform: scale(0.98);
}

.selection-thumb {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
}

.selection-info {
    flex: 1;
    min-width: 0;
}

.selection-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--dark);
    margin-bottom: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.selection-price {
    font-weight: 800;
    font-size: 0.75rem;
    color: var(--primary);
}

.selection-indicator {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

label:has(input:checked) .selection-card {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.1);
}

label:has(input:checked) .selection-indicator {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.selection-card.selected {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.1);
}

.selection-card.selected .selection-indicator {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.selection-card.active-selection,
.selection-card.selected {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.1);
}

.selection-card.selected .selection-indicator {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

/* Quantity Selector for Combo Items */
.selection-qty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f1f5f9;
    padding: 0.25rem;
    border-radius: 99px;
    border: 1px solid #e2e8f0;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    background: white;
    color: #64748b;
    border: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    cursor: pointer;
}

.qty-btn:active {
    transform: scale(0.9);
}

.qty-btn.plus {
    background: var(--dark);
    color: white;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.2);
}

.qty-val {
    font-weight: 800;
    font-size: 0.8rem;
    color: var(--dark);
    min-width: 14px;
    text-align: center;
}

/* Modal Content Background Refinement */
.modal-body {
    background: #f1f5f9;
    padding-top: 2rem;
}

.modal-section-card {
    background: white;
    border-radius: 32px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Progress / Steps Header */
.step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.step-badge {
    background: #f0f9ff;
    color: #0369a1;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 0.3rem 0.7rem;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Modal Price Display */
.modal-price-display {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--dark);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.price-photo-overlay {
    color: white !important;
    font-weight: 900 !important;
    text-shadow: 
        2px 2px 0 #000, 
       -1px -1px 0 #000, 
        1px -1px 0 #000, 
       -1px 1px 0 #000,
        1px 1px 0 #000,
        0 4px 12px rgba(0,0,0,0.8);
    position: absolute;
    z-index: 1000; /* Garantir que fique acima da foto mas abaixo do fechar se necessário */
    pointer-events: none;
    line-height: 1;
    background: none !important;
}

@keyframes pulse-price {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
        color: var(--primary-light);
    }

    100% {
        transform: scale(1);
    }
}

.price-updated {
    animation: pulse-price 0.35s ease-out;
}

/* Animations */
@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-premium {
    animation: fadeInSlide 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Closed Overlay Premium */
.closed-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem;
}

.closed-overlay.show {
    display: flex;
}

.closed-icon {
    font-size: 5rem;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
    filter: drop-shadow(0 10px 15px rgba(99, 102, 241, 0.2));
}

.closed-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 0.75rem;
    letter-spacing: -0.04em;
}

.closed-text {
    color: #94a3b8;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Floating Action Bar */
.floating-bar {
    position: fixed;
    bottom: 24px;
    left: 20px;
    right: 20px;
    background: var(--dark);
    border-radius: 28px;
    padding: 0.85rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1001;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-summary {
    display: flex;
    flex-direction: column;
}

.cart-label {
    text-transform: uppercase;
    font-size: 0.65rem;
    font-weight: 900;
    color: #64748b;
    letter-spacing: 0.1em;
}

.cart-value {
    color: white;
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: -0.03em;
}

.btn-checkout {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 0.85rem 1.6rem;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.btn-checkout:active {
    transform: scale(0.95);
}

/* Premium Wizard Buttons - Redesigned for STUNNING look */
.pf-btn-primary {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 1.15rem 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    /* Absolute Pill */
    box-shadow: 0 15px 30px -10px rgba(15, 23, 42, 0.5), 0 0 20px rgba(99, 102, 241, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.15em;
    font-weight: 900;
    font-size: 0.9rem;
    cursor: pointer;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.pf-btn-primary:active {
    transform: scale(0.95) translateY(2px);
    box-shadow: 0 5px 15px -3px rgba(15, 23, 42, 0.6);
}

.pf-btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--slate-800);
    padding: 1.15rem 2.5rem;
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    border-radius: 999px;
    /* Absolute Pill */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    letter-spacing: 0.12em;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
}

.pf-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.8);
}

.pf-btn-secondary:active {
    transform: scale(0.95);
}

/* Stunning Final Button */
.pf-btn-finish {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 0.9rem 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    box-shadow: 0 15px 30px -10px rgba(15, 23, 42, 0.5), 0 0 20px rgba(99, 102, 241, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.1em;
    font-weight: 900;
    font-size: 0.85rem;
    text-transform: uppercase;
    animation: btn-pulse 2s infinite;
    cursor: pointer;
}

@keyframes btn-pulse {
    0% {
        box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.6), 0 0 30px rgba(99, 102, 241, 0.3);
    }

    50% {
        box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.6), 0 0 50px rgba(99, 102, 241, 0.5);
    }

    100% {
        box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.6), 0 0 30px rgba(99, 102, 241, 0.3);
    }
}

.pf-btn-finish:active {
    transform: scale(0.94) translateY(4px);
}

.pf-btn-finish .modal-price-display {
    color: white !important;
}

/* Premium Quantity Control (Main) */
.premium-qty-control {
    background: #f8fafc;
    padding: 0.5rem;
    border-radius: 99px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.qty-btn-premium {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.qty-btn-premium.minus {
    background: white;
    color: #64748b;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.qty-btn-premium.plus {
    background: var(--dark);
    color: white;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
}

.qty-btn-premium:active {
    transform: scale(0.9);
}

/* Step Transitions */
.step-exit {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

.step-enter {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

/* Summary Styles */
.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.summary-item:last-child {
    border-bottom: none;
}

/* Selection Card */
.selection-card {
    background: white;
    border-radius: 24px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

.selection-card:hover {
    border-color: #e2e8f0;
}

.selection-card.selected {
    border-color: var(--primary);
    box-shadow: 0 4px 12px -2px rgba(99, 102, 241, 0.2);
}

/* Step Animations */
@keyframes fade-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cart Modal Styles */
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cart-item {
    background: #f8fafc;
    border-radius: 20px;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #f1f5f9;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 800;
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.cart-item-options {
    font-size: 0.7rem;
    color: #64748b;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.cart-item-total {
    font-weight: 900;
    color: var(--dark);
    font-size: 0.9rem;
}

.btn-remove-item {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fee2e2;
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-remove-item:active {
    transform: scale(0.9);
}

.modal-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-clear-cart {
    background: #f1f5f9;
    color: #64748b;
    padding: 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
}

/* Bottom Category Navigation Styles */
.bottom-categories-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 0.75rem 0.5rem calc(0.75rem + env(safe-area-inset-bottom));
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.05);
}

.bottom-categories-nav.hidden {
    display: none;
}

.bottom-categories-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    overflow-x: auto;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.5rem;
    padding: 0 1rem;
}

.bottom-categories-wrapper::-webkit-scrollbar {
    display: none;
}

.bottom-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #64748b;
    border: none;
    background: none;
    padding: 0.5rem;
    min-width: 64px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

.bottom-cat-item i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.bottom-cat-item span {
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.bottom-cat-item.active {
    color: var(--primary);
}

.bottom-cat-item.active i {
    transform: translateY(-2px);
}

.bottom-cat-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    width: 20px;
    height: 3px;
    background: var(--primary);
    border-radius: 10px;
}

/* Adjust floating bar when bottom nav is active */
body.has-bottom-nav {
    padding-bottom: calc(180px + env(safe-area-inset-bottom));
}

body.has-bottom-nav .floating-bar {
    bottom: calc(100px + env(safe-area-inset-bottom));
}

body.has-bottom-nav .categories-nav {
    display: none;
}

/* Adjust Product Modal Footer when bottom nav is active */
body.has-bottom-nav #final-actions,
body.has-bottom-nav #wizard-navigation {
    bottom: calc(85px + env(safe-area-inset-bottom)) !important;
}

body.has-bottom-nav .modal-content {
    padding-bottom: calc(150px + env(safe-area-inset-bottom));
}

/* Hide floating bar and bottom nav when product modal is open to avoid overlap */
body:has(#modal-overlay:not(.hidden)) .floating-bar,
body:has(#modal-overlay:not(.hidden)) .bottom-categories-nav {
    display: none !important;
}
/* UI Fixes: Modal Padding and Floating Bar Visibility */
#cart-modal-view,
#product-modal-view {
    padding: 3rem 1.5rem 2rem !important;
}

body.modal-open .floating-bar,
body.modal-open .bottom-categories-nav {
    display: none !important;
}



.hidden {
    display: none !important;
}

/* --- MODERN CURATOR DESIGN (MODE LOJA) --- */
.mode-loja {
    --primary: #1A1A1A !important;
    --surface: #faf9f7 !important;
    --on-surface-variant: #5f5e5e !important;
    --secondary-stitch: #775a19;
}

body.mode-loja {
    background-color: var(--surface) !important;
    font-family: 'Manrope', sans-serif !important;
}

.mode-loja .header {
    background-color: var(--surface);
    border-bottom: 1px solid #f3f4f1;
    height: 130px; /* Ampliado para caber o logo de 100px */
    padding: 0 1.5rem !important;
    display: flex !important;
    align-items: center !important;
}

.mode-loja .logo-text {
    display: none !important;
}

.mode-loja .logo-box {
    display: flex !important;
    background: transparent !important;
    align-items: center !important;
}

.mode-loja .logo-box img {
    height: 100px !important; /* Aumentado significativamente */
    width: auto !important;
    max-width: 250px !important;
}

.mode-loja .category-pill {
    background: transparent !important;
    border: none !important;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    color: #afb3b0;
    padding: 0.5rem 1rem !important;
    border-radius: 0 !important;
}

.mode-loja .category-pill.active {
    color: #5f5e5e !important;
    border-bottom: 2px solid #5f5e5e !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Editorial Product Cards — Core styles */
.mode-loja .product-card,
.mode-loja .product-img-wrapper,
.mode-loja .product-img {
    border-radius: 0 !important; /* Sem arredondamento */
}

.mode-loja .product-card {
    background: #f4f3f2 !important;
    padding: 0 !important;
    flex-direction: column !important;
    gap: 0 !important;
    border: none !important;
    box-shadow: none !important;
    overflow: hidden !important; 
    min-height: auto !important;
    transition: transform 0.3s ease !important;
}

.mode-loja .product-card:hover {
    transform: translateY(-4px) !important;
}

/* Mobile: Full-Bleed Layout */
@media (max-width: 768px) {
    .mode-loja .product-card {
        margin-left: -1.5rem !important;
        margin-right: -1.5rem !important;
        width: calc(100% + 3rem) !important;
        margin-bottom: 2rem;
    }
}

/* Desktop: Multi-column Grid with Spacing */
@media (min-width: 769px) {
    .mode-loja .products-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
        gap: 2rem !important;
        padding-bottom: 2rem;
    }
}

.mode-loja .product-card:hover {
    transform: translateY(-4px) !important;
}

/* Botão de Fechar Global Fixo */
#global-modal-close {
    position: fixed !important;
    top: calc(130px + 1rem + 2.5cm); /* Logo abaixo do cabeçalho, dentro da imagem */
    right: 1.5rem;
    z-index: 10001 !important; /* Acima de tudo */
    width: 56px;
    height: 56px;
    background: #000 !important;
    color: #fff !important;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6) !important;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.2) !important;
}

#global-modal-close span {
    font-size: 32px !important;
}

#global-modal-close.hidden {
    display: none !important;
}

/* Grid Desktop: 3 ou 4 colunas */
@media (min-width: 1024px) {
    .mode-loja .products-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important; /* Forçado 3 - se quiser 4 mude para 4 */
        gap: 2rem !important;
    }
    
    .mode-loja .product-card {
        margin-bottom: 0 !important;
    }
}

@media (min-width: 1440px) {
    .mode-loja .products-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

.mode-loja .product-img {
    width: 100% !important;
    height: 240px !important;
    border-radius: 0 !important; /* CORRIGIDO: Era 12px */
    object-fit: cover !important;
}

.mode-loja .product-name {
    font-family: 'Manrope', sans-serif;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    color: var(--primary) !important;
}

.mode-loja .product-desc {
    font-family: 'Manrope', sans-serif;
    font-size: 0.95rem !important;
    color: var(--on-surface-variant) !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
}

.mode-loja .product-price {
    font-family: 'Manrope', sans-serif;
    font-size: 1.25rem !important;
    background: transparent !important;
    padding: 0 !important;
    color: var(--primary) !important;
    margin-top: 0.5rem;
}

/* Modern Modal (Hero Style) */
.mode-loja .modal-content {
    border-radius: 0 !important;
    background: var(--surface) !important;
}

.mode-loja #product-modal-view {
    padding: 0 !important; /* Full width for hero image */
}

.mode-loja .product-swiper {
    height: 35dvh !important;
    border-radius: 0 !important;
    position: relative !important;
}

.mode-loja .modal-body {
    background: var(--surface) !important;
    padding: 2rem 1.5rem !important;
}

.mode-loja .modal-section-card {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border: none !important;
}

.mode-loja .step-badge {
    background: #eee0d2 !important;
    color: #775a19 !important;
}

.mode-loja .pf-btn-primary {
    display: none !important; /* Esconde botões no modo visual */
}

/* Highlights Modern Style */
.mode-loja .highlight-container {
    padding: 0 !important;
    margin: 0 !important;
}

.mode-loja .highlight-slide {
    position: relative !important;
    height: 500px !important; /* Mobile Default */
    border-radius: 0 !important; /* Full width - sem arredondamento */
    overflow: hidden !important;
    width: 100% !important;
}

.mode-loja .highlight-slide img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    z-index: 1 !important;
    animation: kenBurns 12s ease-in-out infinite alternate !important;
    will-change: transform !important;
    filter: brightness(0.9) contrast(1.1) saturate(1.1) !important;
}

.mode-loja .highlight-slide.swiper-slide-active img {
    animation-play-state: running !important;
}

.mode-loja .highlight-slide:not(.swiper-slide-active) img {
    animation-play-state: paused !important;
}

@media (max-width: 768px) {
    .highlight-slide {
        height: 40vh !important; /* +30% aprox de 30vh */
    }
    .header {
        padding: 1rem;
    }
    .social-icon {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }
}
@media (min-width: 768px) {
    .mode-loja .highlight-slide {
        height: 60vh !important;
    }
}

@media (min-width: 1200px) {
    .mode-loja .highlight-slide {
        height: 70vh !important; /* Um pouco mais alto que tablet */
    }
}

.mode-loja .highlight-content {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 100 !important; /* Garantir que está acima da imagem */
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 50%) !important; /* Suavizado para manter imagem clara */
    padding: 3rem 2rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    pointer-events: none !important;
}

.mode-loja .highlight-title {
    font-size: 2.5rem !important; /* Aumentado */
    font-weight: 800 !important;
    color: #ffffff !important;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8), 0 0 30px rgba(0,0,0,0.4); /* Reforçado para fundo claro */
    letter-spacing: -0.05em !important;
    line-height: 1.1 !important;
    margin-bottom: 0.75rem !important;
}

.mode-loja .highlight-desc {
    color: rgba(255,255,255,0.9) !important;
    font-size: 1.15rem !important;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
    font-weight: 500 !important;
    line-height: 1.5 !important;
    max-width: 500px;
}

/* --- V14.0 Utilities (Supports Modal Layout) --- */
.p-6 { padding: 1.5rem !important; }
.px-8 { padding-left: 2rem !important; padding-right: 2rem !important; }
.py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-6 { margin-bottom: 1.5rem !important; }
.mb-8 { margin-bottom: 2rem !important; }
.mb-10 { margin-bottom: 2.5rem !important; }
.mb-12 { margin-bottom: 3rem !important; }
.mt-auto { margin-top: auto !important; }
.ml-auto { margin-left: auto !important; }
.mr-auto { margin-right: auto !important; }

.text-4xl { font-size: 2.25rem !important; }
.text-2xl { font-size: 1.5rem !important; }
.text-xl { font-size: 1.25rem !important; }
.text-lg { font-size: 1.125rem !important; }
.text-9px { font-size: 9px !important; }
.text-10px { font-size: 10px !important; }

.font-black { font-weight: 900 !important; }
.font-medium { font-weight: 500 !important; }
.tracking-tighter { letter-spacing: -0.05em !important; }
.tracking-widest { letter-spacing: 0.1em !important; }
.leading-none { line-height: 1 !important; }
.leading-relaxed { line-height: 1.625 !important; }

.w-full { width: 100% !important; }
.h-full { height: 100% !important; }
.object-cover { object-fit: cover !important; }
.rounded-full { border-radius: 9999px !important; }
.border-t { border-top: 1px solid #f1f5f9 !important; }
.pt-10 { padding-top: 2.5rem !important; }
.space-y-12 > * + * { margin-top: 3rem !important; }
.bg-slate-100 { background-color: #f1f5f9 !important; }
.text-slate-900 { color: #0f172a !important; }
.text-slate-500 { color: #64748b !important; }
.text-slate-400 { color: #94a3b8 !important; }

/* --- V16.0 Layout Utilities --- */
.flex { display: flex !important; }
.flex-col { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.items-center { align-items: center !important; }
.items-start { align-items: flex-start !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 0.75rem !important; }
.gap-4 { gap: 1rem !important; }
.gap-6 { gap: 1.5rem !important; }
.static { position: static !important; }
.relative { position: relative !important; }
.absolute { position: absolute !important; }
.z-10 { z-index: 10 !important; }
.z-20 { z-index: 20 !important; }
.bottom-0 { bottom: 0 !important; }
.right-0 { right: 0 !important; }
.text-sm { font-size: 0.875rem !important; }
.text-xs { font-size: 0.75rem !important; }
.uppercase { text-transform: uppercase !important; }
.tracking-tight { letter-spacing: -0.025em !important; }
.leading-tight { line-height: 1.25 !important; }
.transition-all { transition-property: all !important; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important; transition-duration: 150ms !important; }
.hover\:scale-105:hover { transform: scale(1.05) !important; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important; }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.min-w-20px { min-width: 20px !important; }
.max-w-340px { max-width: 340px !important; }

/* DIGITAL MENU FOOTER */
.footer {
    padding: 4rem 2rem 6rem;
    text-align: center;
    background-color: var(--surface);
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-address {
    font-size: 0.85rem;
    color: var(--on-surface-variant);
    font-weight: 500;
    max-width: 400px;
    line-height: 1.6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-brand {
    font-size: 0.75rem;
    color: #afb3b0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-top: 1rem;
}

/* GLOBAL BORDER-RADIUS RESET FOR PRODUCTS (MODE LOJA) */
.mode-loja .product-card,
.mode-loja .product-img-wrapper,
.mode-loja .product-img,
.mode-loja .animate-premium,
.mode-loja [class*="rounded-"] {
    border-radius: 0 !important;
}

/* VARIACAO BUTTON STYLES */
.variacao-btn {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.variacao-btn:hover {
    border-color: #818cf8 !important;
    background-color: #f5f3ff !important;
    transform: translateY(-2px);
}

.variacao-btn.selected {
    border-color: #4f46e5 !important;
    background-color: #e0e7ff !important;
    font-weight: 700;
    box-shadow: 0 8px 16px -2px rgba(79, 70, 229, 0.15) !important;
}

.variacao-btn.selected::before {
    content: '✓ ';
    color: #4f46e5;
    font-weight: 900;
    margin-right: 4px;
}
