/* ============================================
   DELIVERY LANCHONETE - DESIGN MODERNO & VIBRANTE
   Material Design 3 + Apple HIG + iFood/Rappi Pattern
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@600;700;800&display=swap');

:root {
    /* Cores - Material Design 3 Vibrante */
    --primary: #FF5722;
    --primary-light: #FFB3A0;
    --primary-dark: #D84315;
    --secondary: #FF9800;
    --accent: #FFD54F;
    --success: #4CAF50;
    --danger: #F44336;
    --warning: #FF9800;
    --info: #2196F3;
    
    /* Neutros */
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --text-light: #999999;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F5F5F5;
    --bg-tertiary: #EFEFEF;
    --border-color: #E0E0E0;
    
    /* Sombras - Material Design 3 */
    --shadow-1: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-2: 0 3px 6px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.12);
    --shadow-3: 0 10px 20px rgba(0, 0, 0, 0.15), 0 3px 6px rgba(0, 0, 0, 0.10);
    --shadow-4: 0 15px 25px rgba(0, 0, 0, 0.15), 0 5px 10px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.2);
    
    /* Tipografia */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Poppins', sans-serif;
    
    /* Transições */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ===== HEADER STICKY ===== */
.header-sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow-2);
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.logo-badge {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow-1);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.restaurant-info h1 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

.restaurant-info small {
    display: block;
    font-size: 0.75rem;
    opacity: 0.9;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-right: 8px;
    flex-shrink: 0;
}

.btn-header {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    position: relative;
    overflow: visible;
}

.btn-header:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--danger);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    border: 2px solid white;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 280px;
    overflow: visible;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: flex-end;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 2.5rem 1.5rem 1.5rem;
    color: white;
}

.hero-info {
    animation: slideUp 0.6s ease-out;
}

.hero-loja-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 14px;
}

.hero-logo-wrap {
    flex-shrink: 0;
    width: 76px;
    height: 76px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 2.5px solid rgba(255,255,255,0.45);
    box-shadow: 0 6px 20px rgba(0,0,0,0.28);
}

.hero-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-loja-info {
    flex: 1;
    min-width: 0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    word-break: break-word;
}

.hero-subtitle {
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: 0;
    font-weight: 400;
    word-break: break-word;
}

.hero-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 50px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255,255,255,0.25);
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform .18s, box-shadow .18s, background .18s;
}

.meta-item-btn {
    border: none;
    cursor: pointer;
    font-size: 0.82rem;
    font-family: inherit;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
    padding: 8px 14px;
}
.meta-item-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
.meta-item-btn:active {
    transform: translateY(0);
}
.meta-horario-detail {
    font-size: .7rem;
    opacity: .85;
    font-weight: 500;
    display: block;
    line-height: 1.2;
}
.meta-item-link {
    text-decoration: none;
    color: inherit;
}
.meta-item-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    color: inherit;
}
.meta-item-link:active {
    transform: translateY(0);
}

/* ===== SEARCH SECTION ===== */
.page-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 48px);
}

.search-section {
    background: var(--bg-primary);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 70px;
    z-index: 90;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    transition: var(--transition-fast);
}

.search-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
}

.search-wrapper i {
    color: var(--text-light);
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    outline: none;
    color: var(--text-primary);
}

.search-input::placeholder {
    color: var(--text-light);
}

/* ===== CATEGORIAS SCROLL ===== */
.categories-section {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    margin-top: 0;
}

.categories-scroll {
    display: flex;
    gap: 6px;
    padding: 10px 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    align-items: center;
}
.categories-scroll::-webkit-scrollbar { display: none; }

/* fade nos cantos para indicar scroll */
.categories-section::before,
.categories-section::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 48px;
    z-index: 2;
    pointer-events: none;
}
.categories-section::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-primary) 40%, transparent);
}
.categories-section::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-primary) 40%, transparent);
}

/* Setas de navegação das categorias */
.cat-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid var(--border-color);
    background: var(--bg-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    color: var(--text-primary);
    font-size: .8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, border-color .15s, opacity .2s, transform .15s;
    opacity: 1;
    flex-shrink: 0;
}
.cat-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-50%) scale(1.08);
}
.cat-arrow-left  { left: 0; }
.cat-arrow-right { right: 0; }
.cat-arrow.hidden { opacity: 0; pointer-events: none; }

/* Garante que o page-inner tenha position:relative */
.categories-section .page-inner { position: relative; }

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: transparent;
    border: 1.5px solid var(--border-color);
    border-radius: 99px;
    cursor: pointer;
    font-weight: 600;
    font-size: .82rem;
    white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
    color: var(--text-secondary);
    line-height: 1;
    flex-shrink: 0;
}

.category-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--bg-secondary);
}

.category-chip.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    padding: 2rem 0;
    min-height: calc(100vh - 400px);
}


/* ===== CATEGORY SECTION ===== */
.category-section {
    margin-bottom: 3rem;
    animation: fadeIn 0.5s ease-in;
}

/* ── Linha topo da categoria: título + botão ver todos ── */
.category-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 12px;
}
.category-header-row .category-header {
    margin-bottom: 0;
}

/* ── Wrapper do scroll com setas ── */
.scroll-row-wrap {
    position: relative;
}
.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-primary);
    box-shadow: 0 2px 12px rgba(0,0,0,.18);
    color: var(--text-primary);
    font-size: .9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, box-shadow .15s, opacity .2s;
}
.scroll-arrow:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,.22);
}
.scroll-arrow-left  { left: -14px; }
.scroll-arrow-right { right: -14px; }
.seta-oculta { opacity: 0; pointer-events: none; }

/* Em mobile as setas somem — swipe é suficiente */
@media (max-width: 640px) {
    .scroll-arrow { display: none; }
}

.btn-ver-todos {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 16px;
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    border-radius: 99px;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.btn-ver-todos:hover {
    background: var(--primary);
    color: #fff;
    text-decoration: none;
}
.btn-ver-todos i { font-size: .75rem; }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-header {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    padding-left: 0.75rem;
    position: relative;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.category-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 3px;
}

/* ===== PRODUCTS ROW — scroll horizontal ===== */
.products-grid {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
    /* esconde scrollbar mas mantém funcional */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.products-grid::-webkit-scrollbar { display: none; }

/* padding lateral para não cortar sombra no início/fim */
.products-grid::before,
.products-grid::after {
    content: '';
    flex-shrink: 0;
    width: 4px;
}

@media (min-width: 576px) {
    .products-grid { gap: 1.1rem; }
}
@media (min-width: 768px) {
    .products-grid { gap: 1.2rem; }
}

/* ===== PRODUCT CARD ===== */
.prod-wrap {
    flex: 0 0 160px;
    scroll-snap-align: start;
}
@media (min-width: 400px)  { .prod-wrap { flex-basis: 172px; } }
@media (min-width: 576px)  { .prod-wrap { flex-basis: 188px; } }
@media (min-width: 768px)  { .prod-wrap { flex-basis: 200px; } }
@media (min-width: 1024px) { .prod-wrap { flex-basis: 215px; } }

/* Card "Ver todos" fantasma no fim do scroll */
.prod-wrap-mais {
    cursor: pointer;
}
.card-ver-mais {
    height: 100%;
    min-height: 200px;
    border-radius: 16px;
    border: 2px dashed var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    transition: border-color .2s, color .2s, background .2s;
    padding: 16px;
    text-align: center;
}
.prod-wrap-mais:hover .card-ver-mais {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--bg-primary);
}
.card-ver-mais i    { font-size: 1.6rem; }
.card-ver-mais span { font-size: .88rem; font-weight: 700; }
.card-ver-mais small{ font-size: .76rem; opacity: .7; }

.product-card {
    background: var(--bg-primary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-1);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    position: relative;
    height: 100%;
    width: 100%;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-3);
    border-color: var(--primary);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center center;
    transition: var(--transition);
    display: block;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-2);
}

.discount-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--danger);
    color: white;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: var(--shadow-2);
}

.most-sold-badge {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    background: var(--success);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #aab;
    font-size: 2.5rem;
}

/* Variantes de badge por tipo */
.badge-destaque {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}
.badge-vendido {
    background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
}
.badge-desconto {
    top: 0.75rem;
    left: 0.75rem;
    right: auto;
    background: var(--danger, #e11d48);
}

/* Badge +18 */
.product-age-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(225,29,72,.1);
    color: #e11d48;
    border: 1px solid rgba(225,29,72,.25);
    border-radius: 6px;
    padding: 2px 7px;
    font-size: 0.68rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    width: fit-content;
}

.product-content {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.product-price {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}

.product-points-badge {
    font-size: 0.67rem;
    color: #b84d00;
    font-weight: 700;
    margin-top: 1px;
    line-height: 1.2;
}

.price-current {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-display);
}

.price-original {
    font-size: 0.75rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.btn-add-cart {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-2);
}

.btn-add-cart:hover {
    transform: scale(1.15);
    box-shadow: var(--shadow-3);
}

.btn-add-cart:active {
    transform: scale(0.95);
}

/* ===== FLOATING CART BUTTON ===== */
.floating-cart-btn {
    position: fixed;
    bottom: 2rem;
    right: 1.5rem;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    z-index: 500;
    font-size: 1.6rem;
    transition: var(--transition-fast);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: var(--shadow-lg);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(255, 87, 34, 0.2);
    }
}

.floating-cart-btn:hover {
    transform: scale(1.15);
}

.floating-cart-btn:active {
    transform: scale(0.95);
}

.floating-cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    border: 3px solid white;
    box-shadow: var(--shadow-2);
}

/* ===== OFFCANVAS CARRINHO ===== */
.offcanvas {
    width: 100% !important;
}

@media (min-width: 576px) {
    .offcanvas {
        width: 420px !important;
    }
}

.offcanvas-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-bottom: none;
    padding: 1.5rem;
}

.offcanvas-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
}

.btn-close-white {
    filter: brightness(0) invert(1);
}

.offcanvas-body {
    padding: 0;
    background: var(--bg-secondary);
    overflow-y: auto;
    overflow-x: hidden;
    /* altura total menos o header do offcanvas (~57px) */
    height: calc(100% - 57px);
    display: flex;
    flex-direction: column;
}

.cart-items-container {
    padding: 1rem;
    flex: 1 1 auto;
    overflow-y: visible;
}

.empty-cart-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 250px;
    color: var(--text-light);
    text-align: center;
}

.empty-cart-message i {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    align-items: flex-start;
    border: 1px solid var(--border-color);
}

.cart-item-image {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.cart-item-controls button {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    font-weight: 700;
}

.cart-item-controls button:hover {
    color: var(--primary);
}

.cart-item-qty {
    min-width: 24px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.cart-item-remove {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.cart-item-remove:hover {
    transform: scale(1.2);
}

/* ===== CART SUMMARY ===== */
.cart-summary {
    background: var(--bg-primary);
    padding: 1rem 1.5rem 1.5rem;
    border-top: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: .75rem;
    flex-shrink: 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.summary-row.total {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    font-family: var(--font-display);
}

.btn-checkout {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    padding: 1.1rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-2);
}

.btn-checkout:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: var(--shadow-3);
}

.btn-checkout:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-continue {
    background: var(--bg-secondary);
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.9rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-continue:hover {
    background: rgba(255, 87, 34, 0.05);
}

/* ===== TOAST NOTIFICAÇÃO ===== */
.toast {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-3);
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.toast-body {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    font-weight: 600;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #111;
    color: rgba(255,255,255,.8);
    border-top: 3px solid var(--primary);
    margin-top: 3rem;
    font-family: var(--font-body);
}

.sf-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.2rem 1.5rem 1.6rem;
    max-width: 960px;
    margin: 0 auto;
    flex-wrap: wrap;
}

/* ── Brand ── */
.sf-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.sf-avatar {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(255,87,34,.3);
}
.sf-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.sf-inicial {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.sf-brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sf-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}
.sf-desc {
    font-size: .78rem;
    color: rgba(255,255,255,.4);
    line-height: 1.3;
}

/* ── Contacts ── */
.sf-contacts {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.sf-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: rgba(255,255,255,.65);
    font-size: .83rem;
    font-weight: 500;
    transition: color .18s, transform .15s;
    line-height: 1.2;
}
.sf-contact:hover {
    color: #fff;
    transform: translateX(3px);
}
.sf-contact-nd {
    cursor: default;
}
.sf-contact-nd:hover {
    color: rgba(255,255,255,.65);
    transform: none;
}

.sf-ci {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,.07);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .88rem;
    flex-shrink: 0;
    transition: background .18s;
}
.sf-contact:hover .sf-ci {
    background: rgba(255,255,255,.13);
}
.sf-wpp { color: rgba(255,255,255,.8); }
.sf-wpp .sf-ci {
    background: rgba(37,211,102,.18);
    color: #25d366;
}
.sf-wpp:hover .sf-ci {
    background: rgba(37,211,102,.3);
}

/* ── Bottom bar ── */
.sf-bottom {
    max-width: 960px;
    margin: 0 auto;
    padding: .85rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: .74rem;
    color: rgba(255,255,255,.28);
    flex-wrap: wrap;
}
.sf-heart {
    display: flex;
    align-items: center;
    gap: 4px;
}
.sf-heart .bi-heart-fill {
    color: #ff5252;
    font-size: .68rem;
}

@media (max-width: 640px) {
    .sf-inner {
        flex-direction: column;
        gap: 1.6rem;
        padding: 1.6rem 1.1rem 1.2rem;
    }
    .sf-bottom {
        flex-direction: column;
        text-align: center;
        gap: 3px;
        padding: .75rem 1.1rem;
    }
}

/* ===== RESPONSIVIDADE ===== */

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-meta {
        gap: 0.4rem;
    }

    .meta-item {
        font-size: 0.78rem;
        padding: 0.35rem 0.6rem;
    }

    .category-header {
        font-size: 1.3rem;
    }

    .floating-cart-btn {
        width: 56px;
        height: 56px;
        font-size: 1.3rem;
    }

    .main-content {
        padding: 1.5rem 0;
    }
}

@media (max-width: 480px) {
    .header-sticky {
        padding: 0.75rem 0;
    }

    .restaurant-info h1 {
        font-size: 0.95rem;
    }

    .hero-section {
        min-height: 220px;
    }

    .hero-title {
        font-size: 1.35rem;
    }

    .category-header {
        font-size: 1.2rem;
    }

    .product-name {
        font-size: 0.9rem;
    }

    .price-current {
        font-size: 1rem;
    }
}

/* ===== ACESSIBILIDADE ===== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ===== SCROLLBAR CUSTOMIZADO ===== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* ===== UTILITÁRIOS ===== */

.fw-700 {
    font-weight: 700;
}

.fw-800 {
    font-weight: 800;
}

.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
}

.rounded-lg {
    border-radius: 16px !important;
}

.shadow-md {
    box-shadow: var(--shadow-2) !important;
}