/* ============================================
   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: 0.65rem 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: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    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: 0.9rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.3px;
}

.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 — DESIGN MODERNO ===== */
.hero-section {
    position: relative;
    min-height: 310px;
    overflow: visible;
    background: linear-gradient(160deg, 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.45;
}

/* Gradiente escurecedor na parte inferior para legibilidade */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0,0,0,0.12) 50%,
        rgba(0,0,0,0.52) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 0 1.75rem;
    color: white;
}

.hero-info {
    animation: slideUp 0.55s cubic-bezier(0.22,1,0.36,1);
}

/* ── Logo + info lado a lado ── */
.hero-loja-row {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    padding: 0 1.5rem;
    margin-bottom: 14px;
}

/* ── Logo CIRCULAR PERFEITA — sem cortes ── */
.hero-logo-wrap {
    flex-shrink: 0;
    width: 88px;
    height: 88px;
    border-radius: 50%;               /* círculo perfeito */
    overflow: hidden;
    background: #ffffff;              /* fundo branco limpo */
    border: 3px solid rgba(255,255,255,0.92);
    box-shadow:
        0 4px 24px rgba(0,0,0,0.42),
        0 0 0 5px rgba(255,255,255,0.14);
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* contain = sem cortes; padding = margem interna para não tocar a borda */
.hero-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    padding: 8px;
    box-sizing: border-box;
}

.hero-loja-info {
    flex: 1;
    min-width: 0;
    padding-bottom: 2px;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0);    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
    letter-spacing: -0.4px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.32);
    word-break: break-word;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0;
    font-weight: 400;
    word-break: break-word;
    text-shadow: 0 1px 4px rgba(0,0,0,0.22);
}

/* Status badge embutido no hero */
.hero-loja-info .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
    border: none;
}
.hero-loja-info .status-aberto {
    background: rgba(76,175,80,0.28);
    color: #c8f5c9;
    backdrop-filter: blur(6px);
}
.hero-loja-info .status-fechado {
    background: rgba(244,67,54,0.28);
    color: #ffd0ce;
    backdrop-filter: blur(6px);
}

/* ── Botões meta modernos ── */
.hero-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0 1.5rem;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 50px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(255,255,255,0.32);
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 12px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.18);
    transition: transform .18s, box-shadow .18s, background .18s, border-color .18s;
}

.meta-item-btn {
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: inherit;
    flex-direction: column;
    gap: 1px;
    align-items: flex-start;
    padding: 9px 16px;
}
.meta-item-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.58);
}
.meta-item-btn:active { transform: translateY(0); }

.meta-horario-detail {
    font-size: .68rem;
    opacity: .82;
    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 22px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.58);
    color: inherit;
}
.meta-item-link:active { transform: translateY(0); }

/* =====================================================
   HERO — ESTILO iFOOD / RAPPI
   ===================================================== */

/* Wrapper geral — fundo gradiente da marca */
.ifood-hero-wrap {
    background: linear-gradient(160deg, var(--navbar-cor1, var(--primary)) 0%, var(--navbar-cor2, var(--secondary)) 100%);
    padding-bottom: 0;
    position: relative;
}

/* ── Desktop: banner e card ocupam 100% da largura — sem caixa centralizada ── */
.ifood-desktop-inner {
    width: 100%;
}

/* No desktop o hero se estende pela largura toda, sem padding lateral */
.ifood-hero-wrap {
    padding: 0;
}

@media (min-width: 900px) {
    /* Banner sem bordas arredondadas no desktop — cobre toda a largura */
    .ifood-banner {
        border-radius: 0;
    }
    /* Card branco sem bordas no topo no desktop */
    .ifood-loja-card {
        border-radius: 0;
    }
}

@media (min-width: 1200px) {
    /* Sem restrição de max-width no desktop-inner — conteúdo interno usa page-inner */
    .ifood-desktop-inner {
        width: 100%;
    }
}

/* Banner foto — sem overlay, bordas inferiores arredondadas */
.ifood-banner {
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    border-radius: 0 0 20px 20px;
    position: relative;
    overflow: hidden;
}
@media (min-width: 480px)  { .ifood-banner { height: 260px; } }
@media (min-width: 768px)  { .ifood-banner { height: 300px; border-radius: 0 0 32px 32px; } }
@media (min-width: 900px)  { .ifood-banner { height: 320px; } }

/* Card branco da loja — sobrepõe levemente o banner */
.ifood-loja-card {
    background: #fff;
    border-radius: 20px 20px 0 0;
    margin-top: -20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.10);
}

/* ── Logo centralizada em cima do card ── */
.ifood-logo-center-wrap {
    display: flex;
    justify-content: center;
    /* card sobe 20px sobre o banner (margin-top:-20px no card)
       logo height=90px → half=45px
       para o CENTRO da logo ficar NA junção: margin = -(45 - 20) = -25px
       ou seja: 25px acima do topo do card = 20px abaixo do topo original do banner */
    margin-top: -16px;
    position: relative;
    z-index: 3;
    padding-top: 0;
}

/* Logo circular — renderiza via background-image, igual ao editor do admin */
.ifood-logo-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #fff;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border: 3px solid #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.22);
    flex-shrink: 0;
    /* fallback caso background-image falhe */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* img fica escondida — a logo é carregada via background-image no inline style */
.ifood-logo-img {
    display: none;
}

/* Corpo do card — tudo centralizado */
.ifood-card-body {
    padding: 8px 16px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ifood-nome {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 4px;
    line-height: 1.2;
}

.ifood-endereco {
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}
.ifood-endereco i { color: var(--primary); font-size: .78rem; flex-shrink: 0; }

/* Linha de status + pills — centralizada */
.ifood-meta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

/* Badge status Aberto/Fechado */
.ifood-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.67rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    white-space: nowrap;
}
.ifood-aberto  { color: #1a7f3c; background: #e6f7ed; }
.ifood-fechado { color: #b91c1c; background: #fef2f2; }

.ifood-horario-txt {
    font-weight: 500;
    opacity: 0.85;
    margin-left: 2px;
}

/* Pills de entrega / tempo */
.ifood-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.67rem;
    font-weight: 600;
    color: #555;
    background: #f4f4f4;
    padding: 2px 7px;
    border-radius: 20px;
    white-space: nowrap;
}
.ifood-pill i { font-size: .67rem; }
.ifood-pill-green { color: #1a7f3c; background: #e6f7ed; }

/* Botões de ação — centralizados */
.ifood-actions-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 7px;
}

.ifood-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #333;
    background: transparent;
    border: 1.5px solid #d0d0d0;
    cursor: pointer;
    text-decoration: none;
    transition: background .16s, color .16s, border-color .16s;
    font-family: inherit;
    white-space: nowrap;
}
.ifood-action-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    text-decoration: none;
}
.ifood-action-btn i { font-size: .85rem; }

/* Desktop — logo maior */
@media (min-width: 900px) {
    .ifood-logo-circle { width: 106px; height: 106px; }
    /* logo=106px, card-overlap=20px → 53-20=33px */
    .ifood-logo-center-wrap { margin-top: -33px; }
    .ifood-card-body { padding: 10px 40px 26px; }
    .ifood-nome { font-size: 1.4rem; }
}

/* Mobile pequeno */
@media (max-width: 380px) {
    .ifood-logo-circle { width: 76px; height: 76px; }
    /* logo=76px, card-overlap=20px → 38-20=18px */
    .ifood-logo-center-wrap { margin-top: -18px; }
    .ifood-nome { font-size: 1.05rem; }
    .ifood-banner { height: 180px; }
}

/* ===== SEARCH SECTION ===== */
.page-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 40px);
}

/* Desktop: search e categorias ficam alinhadas ao container do hero */
@media (min-width: 900px) {
    .search-section .page-inner,
    .categories-section .page-inner,
    .main-content .page-inner {
        max-width: 960px;
    }
}

.search-section {
    background: var(--bg-primary);
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
    position: sticky;
    top: var(--header-h, 57px);
    z-index: 600;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border-radius: 14px;
    padding: 0.6rem 1.1rem;
    border: 1.5px solid transparent;
    transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 1px 4px rgba(0,0,0,.06), inset 0 1px 0 rgba(255,255,255,.8);
}

.search-wrapper:focus-within {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255,87,34,.08), 0 4px 16px rgba(0,0,0,.08);
    border-radius: 14px;
}

.search-wrapper i {
    color: var(--text-light);
    margin-right: 0.65rem;
    font-size: 1rem;
    transition: color .2s;
}

.search-wrapper:focus-within i {
    color: var(--primary);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.88rem;
    font-weight: 500;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-primary);
    letter-spacing: -0.01em;
}

.search-input::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

/* ===== CATEGORIAS SCROLL ===== */
.categories-section {
    position: sticky;
    top: var(--header-search-h, 109px); /* JS atualiza --header-search-h dinamicamente */
    z-index: 500;
    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: 9px 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 */
.categories-section::before,
.categories-section::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 40px;
    z-index: 2;
    pointer-events: none;
}
.categories-section::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-primary) 60%, transparent);
}
.categories-section::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-primary) 60%, transparent);
}

/* Setas de navegação */
.cat-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--bg-primary);
    box-shadow: 0 2px 10px rgba(0,0,0,.14);
    color: var(--text-secondary);
    font-size: .72rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .18s;
    flex-shrink: 0;
}
.cat-arrow:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(255,87,34,.3);
    transform: translateY(-50%) scale(1.1);
}
.cat-arrow-left  { left: 0; }
.cat-arrow-right { right: 0; }
.cat-arrow.hidden { opacity: 0; pointer-events: none; }

.categories-section .page-inner { position: relative; }

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: var(--bg-secondary);
    border: 1.5px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: .78rem;
    white-space: nowrap;
    transition: all .18s cubic-bezier(0.4,0,0.2,1);
    color: var(--text-secondary);
    line-height: 1;
    flex-shrink: 0;
    letter-spacing: -0.01em;
}

.category-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(255,87,34,.05);
    transform: translateY(-1px);
}

.category-chip.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    border-color: transparent;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(255,87,34,.32);
    transform: translateY(-1px);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    padding: 1.75rem 0 3rem;
    min-height: calc(100vh - 400px);
    background: var(--bg-secondary);
}


/* ===== CATEGORY SECTION ===== */
.category-section {
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.45s cubic-bezier(0.22,1,0.36,1) both;
}

.category-section:nth-child(1) { animation-delay: 0ms; }
.category-section:nth-child(2) { animation-delay: 60ms; }
.category-section:nth-child(3) { animation-delay: 120ms; }
.category-section:nth-child(4) { animation-delay: 180ms; }
.category-section:nth-child(n+5) { animation-delay: 220ms; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── 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.2rem;
    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: 6px 14px;
    background: rgba(255,87,34,.07);
    border: 1.5px solid rgba(255,87,34,.2);
    color: var(--primary);
    border-radius: 10px;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
    transition: all .18s;
    letter-spacing: -0.01em;
}
.btn-ver-todos:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,87,34,.28);
}
.btn-ver-todos i { font-size: .72rem; }

.category-header {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 0;
    padding-left: 0;
    position: relative;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Ícone decorativo antes do título */
.category-header::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 18px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ===== PRODUCTS ROW — scroll horizontal ===== */
.products-grid {
    display: flex;
    flex-direction: row;
    gap: 0.65rem;
    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 145px;
    scroll-snap-align: start;
}
@media (min-width: 400px)  { .prod-wrap { flex-basis: 158px; } }
@media (min-width: 576px)  { .prod-wrap { flex-basis: 172px; } }
@media (min-width: 768px)  { .prod-wrap { flex-basis: 188px; } }
@media (min-width: 1024px) { .prod-wrap { flex-basis: 210px; } }

/* Card "Ver todos" fantasma no fim do scroll */
.prod-wrap-mais {
    cursor: pointer;
}
.card-ver-mais {
    height: 100%;
    min-height: 220px;
    border-radius: 16px;
    border: 1.5px dashed rgba(255,87,34,.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-secondary);
    background: rgba(255,87,34,.03);
    transition: all .22s cubic-bezier(0.4,0,0.2,1);
    padding: 16px;
    text-align: center;
    text-decoration: none;
}
.prod-wrap-mais:hover .card-ver-mais {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(255,87,34,.06);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(255,87,34,.12);
}
.card-ver-mais i    { font-size: 1.8rem; opacity: .7; }
.card-ver-mais span { font-size: .84rem; font-weight: 700; letter-spacing: -0.01em; }
.card-ver-mais small{ font-size: .72rem; opacity: .6; }

.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
    transition: transform .22s cubic-bezier(0.34,1.56,0.64,1), box-shadow .22s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,.06);
    position: relative;
    height: 100%;
    width: 100%;
}

.product-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 8px 32px rgba(0,0,0,.12), 0 2px 8px rgba(255,87,34,.08);
    border-color: rgba(255,87,34,.2);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
}

/* fundo sutil que dá profundidade à imagem */
.product-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.04) 100%);
    pointer-events: none;
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center center;
    transition: transform .35s cubic-bezier(0.34,1.56,0.64,1);
    display: block;
    position: relative;
    z-index: 1;
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    box-shadow: 0 2px 8px rgba(255,87,34,.35);
    z-index: 2;
}

.discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ef4444;
    color: white;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(239,68,68,.35);
    z-index: 2;
}

.most-sold-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: var(--success);
    color: white;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 3px;
    z-index: 2;
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f2f5 0%, #e4e8ed 100%);
    color: #c0c8d0;
    font-size: 2.2rem;
}

/* 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: 8px;
    left: 8px;
    right: auto;
    background: #ef4444;
}

/* Badge +18 */
.product-age-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(225,29,72,.07);
    color: #e11d48;
    border: 1px solid rgba(225,29,72,.18);
    border-radius: 5px;
    padding: 2px 6px;
    font-size: 0.65rem;
    font-weight: 700;
    margin-bottom: 4px;
    width: fit-content;
}

.product-content {
    padding: 10px 11px 11px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.product-name {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 3px;
    color: var(--text-primary);
    line-height: 1.25;
    letter-spacing: -0.02em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    font-weight: 400;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    padding-top: 8px;
    margin-top: 8px;
    border-top: 1px solid rgba(0,0,0,.05);
}

.product-price {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
}

.product-points-badge {
    font-size: 0.62rem;
    color: #b84d00;
    font-weight: 700;
    margin-top: 1px;
    line-height: 1.2;
}

.price-current {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-display);
    letter-spacing: -0.03em;
    line-height: 1;
}

.price-original {
    font-size: 0.62rem;
    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: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .2s cubic-bezier(0.34,1.56,0.64,1), box-shadow .2s;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(255,87,34,.3);
    position: relative;
    overflow: hidden;
}

.btn-add-cart::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background .18s;
    border-radius: 10px;
}

.btn-add-cart:hover {
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 6px 20px rgba(255,87,34,.4);
}
.btn-add-cart:hover::after {
    background: rgba(255,255,255,0.15);
}

.btn-add-cart:active {
    transform: scale(0.9);
}

/* ===== 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: 0.75rem 1rem;
}

.offcanvas-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
}

.btn-close-white {
    filter: brightness(0) invert(1);
    transform: scale(0.85);
}

.offcanvas-body {
    padding: 0;
    background: var(--bg-secondary);
    overflow-y: auto;
    overflow-x: hidden;
    height: calc(100% - 48px);
    display: flex;
    flex-direction: column;
}

.cart-items-container {
    padding: 0.6rem 0.75rem;
    flex: 1 1 auto;
    overflow-y: visible;
}

.empty-cart-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 180px;
    color: var(--text-light);
    text-align: center;
}

.empty-cart-message i {
    font-size: 2.2rem;
    margin-bottom: 0.6rem;
    opacity: 0.45;
}

.empty-cart-message p {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 2px;
}

.empty-cart-message small {
    font-size: 0.75rem;
}

.cart-item {
    display: flex;
    gap: 0.6rem;
    padding: 0.6rem;
    background: var(--bg-primary);
    border-radius: 10px;
    margin-bottom: 0.5rem;
    align-items: center;
    border: 1px solid var(--border-color);
}

.cart-item-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: contain;
    object-position: center;
    background: #fff;
    padding: 3px;
    box-sizing: border-box;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.cart-item-image-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-light);
    font-size: 1.1rem;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 700;
    font-size: 0.78rem;
    margin-bottom: 0.15rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.78rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg-secondary);
    border-radius: 7px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.cart-item-controls button {
    background: none;
    border: none;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    font-weight: 700;
    font-size: 0.9rem;
}

.cart-item-controls button:hover {
    color: var(--primary);
}

.cart-item-qty {
    min-width: 20px;
    text-align: center;
    font-weight: 700;
    font-size: 0.78rem;
}

.cart-item-remove {
    margin-left: 2px;
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition-fast);
    flex-shrink: 0;
    padding: 4px;
}

.cart-item-remove:hover {
    transform: scale(1.2);
}

/* ===== CART SUMMARY ===== */
.cart-summary {
    background: var(--bg-primary);
    padding: 0.65rem 0.9rem 0.9rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex-shrink: 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.summary-row.total {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-primary);
    padding-top: 0.5rem;
    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: 0.7rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-2);
}

.btn-checkout:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-3);
}

.btn-checkout:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-continue {
    background: var(--bg-secondary);
    color: var(--primary);
    border: 1.5px solid var(--primary);
    padding: 0.6rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.78rem;
    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;
}
/* ── Bloco de Pontos no Rodapé ── */
.sf-pontos {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    padding: 18px 20px;
    min-width: 210px;
    max-width: 260px;
    flex-shrink: 0;
}
.sf-pts-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}
.sf-pts-icone {
    font-size: 1.2rem;
    line-height: 1;
}
.sf-pts-titulo {
    font-family: var(--font-display);
    font-size: .88rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}
.sf-pts-desc {
    font-size: .8rem;
    color: rgba(255,255,255,.65);
    line-height: 1.45;
    margin: 0;
}
.sf-pts-preview {
    display: block;
    margin-top: 4px;
    font-size: .76rem;
    color: var(--secondary, #FF9800);
    font-weight: 600;
    min-height: 1em;
}
.sf-pts-saldo-wrap {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 4px 0 2px;
}
.sf-pts-saldo {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    color: var(--secondary, #FF9800);
    line-height: 1;
    transition: opacity .2s;
}
.sf-pts-saldo-lbl {
    font-size: .8rem;
    color: rgba(255,255,255,.55);
    font-weight: 500;
}
.sf-pts-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 9px 16px;
    border-radius: 50px;
    border: none;
    font-size: .82rem;
    font-weight: 700;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, opacity .15s;
    background: linear-gradient(135deg, var(--primary, #FF5722) 0%, var(--secondary, #FF9800) 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(255,87,34,.35);
}
.sf-pts-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,87,34,.45);
}
.sf-pts-btn:active {
    transform: translateY(0);
    opacity: .9;
}
.sf-pts-btn i {
    font-size: .9rem;
}
@media (max-width: 640px) {
    .sf-pontos {
        max-width: 100%;
        min-width: unset;
        width: 100%;
    }
}

/* ============================================
   REDESIGN MODERNO — MELHORIAS EXTRAS
   ============================================ */

/* Fundo levemente texturizado no body */
body {
    background-color: var(--bg-secondary) !important;
}

/* ── Products grid: padding lateral para respirar ── */
.products-grid {
    padding-left: 2px;
    padding-right: 2px;
    padding-bottom: 14px;
}

/* ── Scroll arrows maiores e mais elegantes ── */
.scroll-arrow {
    width: 38px !important;
    height: 38px !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 16px rgba(0,0,0,.12) !important;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0,0,0,.06) !important;
}
.scroll-arrow:hover {
    background: var(--primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 18px rgba(255,87,34,.3) !important;
}
.scroll-arrow-left  { left: -16px !important; }
.scroll-arrow-right { right: -16px !important; }

/* ── Page inner: mais padding no desktop ── */
@media (min-width: 768px) {
    .main-content .page-inner {
        padding-left: clamp(20px, 3vw, 48px);
        padding-right: clamp(20px, 3vw, 48px);
    }
}

/* ── Separador sutil entre categorias ── */
.category-section + .category-section {
    padding-top: 0.5rem;
    border-top: 1px solid rgba(0,0,0,.04);
}

/* ── Search icon animado ── */
.search-wrapper .bi-search {
    transition: transform .2s cubic-bezier(0.34,1.56,0.64,1), color .2s;
}
.search-wrapper:focus-within .bi-search {
    transform: scale(1.15);
}

/* ── Chip ativo: ícone de grid com gradiente ── */
.category-chip.active .bi-grid-3x3-gap {
    opacity: .9;
}

/* ── Floating cart button: mais moderno ── */
.floating-cart-btn {
    border-radius: 20px !important;
    width: 58px !important;
    height: 58px !important;
    box-shadow: 0 8px 28px rgba(255,87,34,.4), 0 2px 8px rgba(0,0,0,.15) !important;
}

/* ── Produto card: fundo branco puro garante contraste ── */
.product-image-wrapper {
    background: #fff !important;
}