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

html, body {
    margin: 0; padding: 0; width: 100%; overflow-x: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #f5f5f5;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== HEADER / CAPA ===== */
.header {
    background: linear-gradient(135deg, #0066cc 0%, #4da6ff 100%);
    color: white;
    text-align: center;
    padding: clamp(40px, 6vh, 80px) 20px clamp(30px, 5vh, 60px);
    height: auto;
    min-height: 100vh;
    max-height: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    gap: 4px;
}

.bubbles { position: absolute; width: 100%; height: 100%; top: 0; left: 0; z-index: 0; }

.bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
}

.bubble:nth-child(1) { width: 80px; height: 80px; left: 10%; top: 10%; animation-duration: 20s; }
.bubble:nth-child(2) { width: 120px; height: 120px; left: 25%; top: 30%; animation-duration: 15s; }
.bubble:nth-child(3) { width: 60px; height: 60px; left: 70%; top: 20%; animation-duration: 12s; }
.bubble:nth-child(4) { width: 100px; height: 100px; left: 80%; top: 60%; animation-duration: 18s; }
.bubble:nth-child(5) { width: 50px; height: 50px; left: 40%; top: 70%; animation-duration: 10s; }

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-100px) translateX(50px); }
}

.header img {
    max-width: clamp(160px, 22vw, 260px);
    height: auto;
    margin-bottom: 2px;
    position: relative;
    z-index: 1;
}

.header-slogan {
    font-family: 'Water Brush', cursive;
    font-size: clamp(1.3em, 3.5vw, 2.2em);
    margin: 2px 0;
    color: white;
    position: relative;
    z-index: 1;
    line-height: 1.1;
}

.catalog-button {
    background: white;
    color: #0066cc;
    border: none;
    padding: clamp(10px, 1.6vh, 14px) clamp(26px, 5vw, 40px);
    border-radius: 30px;
    font-weight: bold;
    margin-top: clamp(6px, 1.5vh, 12px);
    cursor: pointer;
    font-size: clamp(0.9em, 1.8vw, 1.1em);
    transition: all 0.3s;
    position: relative;
    z-index: 1;
    display: inline-block;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.catalog-button:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(0,0,0,0.25); }

.informacoes {
    margin-top: clamp(2px, 0.8vh, 6px);
    font-size: clamp(0.76em, 1.6vw, 0.95em);
    position: relative;
    z-index: 1;
    line-height: 1.4;
}

.status-button {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: clamp(0.74em, 1.5vw, 0.88em);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: default;
    margin: 8px auto;
    position: relative;
    z-index: 1;
    width: fit-content;
}

.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.status-text { font-weight: bold; font-size: 0.9em; color: white; }

.footer-capa {
    position: absolute;
    bottom: 16px;
    left: 0; right: 0;
    padding: 6px;
    text-align: center;
    font-size: clamp(0.62em, 1.2vw, 0.72em);
    color: rgba(255, 255, 255, 0.6);
    z-index: 1;
    width: 100%;
}

/* ===== TOPBAR ===== */
.topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 500;
    background: white;
    display: flex;
    align-items: center;
    padding: 12px 28px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    gap: 24px;
    height: 72px;
    box-sizing: border-box;
}

.topbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.2s;
    user-select: none;
    flex-shrink: 0;
}

.topbar-logo:hover { transform: scale(1.02); }
.topbar-logo i { font-size: 1.5em; color: #0066cc; }

.topbar-logo-nome {
    font-weight: 700;
    color: #0066cc;
    font-size: 1.15em;
    line-height: 1;
}

.topbar-logo-cidade {
    font-weight: 600;
    color: #64748b;
    font-size: 0.75em;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1;
    padding-left: 8px;
    border-left: 1px solid #e2e8f0;
    margin-left: 2px;
}

.topbar-busca {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 520px;
    background: #f1f5f9;
    border: 2px solid transparent;
    border-radius: 26px;
    transition: all 0.2s;
    min-width: 0;
    margin: 0 auto;
}

.topbar-busca:focus-within {
    border-color: #0066cc;
    background: white;
    box-shadow: 0 0 0 4px rgba(0,102,204,0.08);
}

.topbar-busca > i.fa-search {
    position: absolute;
    left: 18px;
    color: #94a3b8;
    font-size: 0.95em;
    pointer-events: none;
    transition: color 0.2s;
}

.topbar-busca:focus-within > i.fa-search { color: #0066cc; }

#buscaProduto {
    width: 100%;
    padding: 12px 46px 12px 44px;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9em;
    color: #1e293b;
    border-radius: 26px;
    min-width: 0;
}

#buscaProduto::placeholder { color: #94a3b8; }

.topbar-busca-clear {
    position: absolute;
    right: 14px;
    background: #cbd5e1;
    color: white;
    border: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7em;
    transition: all 0.15s;
}

.topbar-busca-clear:hover { background: #dc2626; }

.busca-resultado {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    background: white;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid #e2e8f0;
    max-height: 440px;
    overflow-y: auto;
    z-index: 600;
    padding: 8px;
}

.busca-titulo {
    padding: 8px 12px;
    font-size: 0.72em;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.busca-titulo i { color: #0066cc; }
.busca-lista { display: flex; flex-direction: column; gap: 4px; }

.busca-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s;
    background: white;
}

.busca-item:hover { background: #f0f7ff; }

.busca-item img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 8px;
    background: #f8fafc;
    padding: 4px;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
}

.busca-item-info { flex: 1 1 auto; min-width: 0; }

.busca-item-nome {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.86em;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.busca-item-cat { font-size: 0.7em; color: #94a3b8; font-weight: 500; }
.busca-item-preco { font-weight: 700; color: #16a34a; font-size: 0.88em; flex-shrink: 0; }

.busca-vazio {
    padding: 26px 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-direction: column;
}

.busca-vazio i { font-size: 1.4em; color: #cbd5e1; margin-bottom: 4px; }
.busca-vazio strong { color: #64748b; }

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.topbar-btn-acao {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #374151;
    border: none;
    padding: 8px 14px;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88em;
    font-weight: 600;
    transition: all 0.2s;
    position: relative;
    white-space: nowrap;
}

.topbar-btn-acao:hover { background: #f0f7ff; color: #0066cc; }
.topbar-btn-acao i { font-size: 1.15em; }

.topbar-btn-acao.logado {
    background: transparent;
    color: #0066cc;
    font-weight: 700;
}

.topbar-btn-acao.logado:hover {
    background: #f0f7ff;
    color: #0066cc;
}

#loginBtn {
    min-width: 100px;
    height: 40px;
    box-sizing: border-box;
    justify-content: center;
}

#cartCount {
    position: absolute;
    top: 0px;
    right: 4px;
    background: #dc3545;
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    transition: all 0.3s;
}

#cartCount.pulsar { animation: cartPulse 0.5s ease-out; }

@keyframes cartPulse {
    0%   { transform: scale(1);   background: #dc3545; }
    40%  { transform: scale(1.5); background: #22c55e; }
    100% { transform: scale(1);   background: #dc3545; }
}

/* ===== FAIXA DE CATEGORIAS ===== */
.topbar-categorias-faixa {
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    z-index: 480;
    background: white;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 28px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    height: 56px;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

.topbar-categorias-faixa::-webkit-scrollbar { display: none; }

.categoria-faixa-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    padding: 10px 18px;
    border-radius: 0;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88em;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
    position: relative;
    height: 100%;
    border-bottom: 3px solid transparent;
}

.categoria-faixa-item:hover { color: #0066cc; }

.categoria-faixa-item i {
    font-size: 1.05em;
    color: #0066cc;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.categoria-faixa-item:hover i { opacity: 1; }

.faixa-nav-wrap {
    margin-left: auto;
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    padding-left: 20px;
    background: linear-gradient(90deg, transparent 0%, white 12%, white 100%);
    position: sticky;
    right: 0;
    height: 100%;
    align-items: center;
}

.faixa-nav-btn {
    background: white;
    color: #64748b;
    border: 1.5px solid #e2e8f0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    transition: all 0.2s;
    flex-shrink: 0;
}

.faixa-nav-btn:hover {
    background: #0066cc;
    color: white;
    border-color: #0066cc;
    transform: translateY(-1px);
}

/* ===== MENU MOBILE ===== */
.topbar-mobile-menu {
    display: none;
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    color: #0066cc;
    font-size: 1.3em;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.topbar-mobile-menu:hover { background: #f0f7ff; }

.menu-categorias-mobile {
    position: fixed;
    top: 72px;
    left: 12px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid #e2e8f0;
    min-width: 220px;
    z-index: 600;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: all 0.2s ease;
    overflow: hidden;
}

.menu-categorias-mobile.aberto {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.menu-categoria-mobile-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 13px 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9em;
    font-weight: 600;
    color: #374151;
    text-align: left;
    transition: all 0.15s;
    border-bottom: 1px solid #f1f5f9;
}

.menu-categoria-mobile-item:last-child { border-bottom: none; }

.menu-categoria-mobile-item i {
    width: 20px;
    text-align: center;
    color: #0066cc;
    font-size: 1.05em;
    flex-shrink: 0;
}

.menu-categoria-mobile-item:hover { background: #f0f7ff; color: #0066cc; }

.topbar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 400;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.topbar-overlay.ativo { opacity: 1; pointer-events: auto; }

/* ===== PÁGINA INÍCIO ===== */
.inicio {
    background: #f0f4f8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 128px;
}

.categoria-header {
    padding: 20px 15px 10px 15px;
    border-bottom: 2px solid #0066cc;
    margin-bottom: 20px;
}

.categoria-header h1 { color: #0066cc; margin: 0 0 15px 0; font-size: 1.8em; }

/* ===== CARROSSEL ===== */
.carrossel-wrap {
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
    padding: 15px;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
}

.carrossel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 12px;
    padding-bottom: 8px;
    scrollbar-width: none;
    width: 100%;
    box-sizing: border-box;
}
.carrossel::-webkit-scrollbar { display: none; }

.carrossel-slide {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    scroll-snap-align: center;
    border-radius: 14px;
    padding: 24px 75px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    box-sizing: border-box;
    overflow: hidden;
    white-space: normal !important;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 260px;
    max-height: 260px;
    min-height: 260px;
}

.carrossel-slide.clicavel { cursor: pointer; }
.carrossel-slide.clicavel:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }

.carrossel-slide .slide-icon {
    font-size: 3em;
    flex-shrink: 0;
}

.carrossel-slide .slide-content {
    flex: 1;
    text-align: left;
    min-width: 0;
    max-width: 100%;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
}

.carrossel-slide .slide-titulo {
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}

.carrossel-slide .slide-msg {
    font-size: 1.15em;
    opacity: 0.95;
    line-height: 1.45;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto;
}

.carrossel-slide .slide-img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.15);
    display: block;
}

.carrossel-slide .slide-link-arrow {
    display: none !important;
}

.slide-info    { background: linear-gradient(135deg, #0066cc, #4da6ff); }
.slide-oferta  { background: linear-gradient(135deg, #16a34a, #22c55e); }
.slide-urgente { background: linear-gradient(135deg, #dc2626, #f97316); }
.slide-aviso   { background: linear-gradient(135deg, #7c3aed, #a855f7); }

.carrossel-slide.banner {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0;
    height: 260px;
    max-height: 260px;
    min-height: 260px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    color: white;
}

.carrossel-slide.banner .banner-overlay {
    width: 100%;
    padding: 24px 75px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0) 100%);
    border-radius: 0 0 14px 14px;
    text-align: left;
}

.carrossel-slide.banner .slide-titulo {
    color: white;
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.25;
    text-shadow: 0 2px 6px rgba(0,0,0,0.7);
}

.carrossel-slide.banner .slide-msg {
    color: rgba(255,255,255,0.98);
    font-size: 1em;
    line-height: 1.4;
    text-shadow: 0 2px 6px rgba(0,0,0,0.7);
}

.carrossel-nav {
    position: absolute;
    top: 15px;
    bottom: 51px;
    margin: auto 0;
    background: rgba(255,255,255,0.95);
    color: #0066cc;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s, transform 0.2s;
    font-size: 0.9em;
}
.carrossel-nav:hover { background: white; transform: scale(1.1); }
.carrossel-nav.prev { left: 20px; }
.carrossel-nav.next { right: 20px; }

.carrossel-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.carrossel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    padding: 0;
}
.carrossel-dot.ativo { background: #0066cc; width: 20px; border-radius: 4px; }

/* ===== PRODUTOS ===== */
.destaque { flex: 1; background: #f0f4f8; padding: 15px 15px 0 15px; min-height: 300px; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 15px;
    background: #f0f4f8;
}

.produto {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.produto:hover { transform: translateY(-4px); box-shadow: 0 6px 18px rgba(0,0,0,0.13); }
.produto img { width: 100%; height: 200px; object-fit: contain; background: #f8f8f8; padding: 15px; }
.produto-content { padding: 15px; flex: 1; display: flex; flex-direction: column; }
.produto h3 { margin: 0 0 8px; color: #0066cc; font-size: 1.05em; font-weight: 600; }
.produto p { margin: 0 0 12px; font-size: 0.82em; color: #666; line-height: 1.4; }
.produto-price { font-weight: bold; color: #28a745; font-size: 1.2em; margin-bottom: 12px; }

.produto button {
    background: #0066cc;
    color: white;
    border: none;
    padding: 9px 12px;
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: auto;
}

.produto button:hover { background: #004d99; }

.produto.indisponivel { opacity: 0.72; position: relative; }

.produto.indisponivel::after {
    content: 'Indisponível';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4444;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: bold;
}

.avise-me-btn { background: #ff9800 !important; }
.avise-me-btn:hover { background: #e68900 !important; }

/* ===== RODAPÉ ===== */
.footer-inicio {
    background: linear-gradient(135deg, #003d7a 0%, #0055aa 100%);
    color: white;
    padding: 28px 28px 16px;
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
}

.footer-inicio-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 30px;
    align-items: flex-start;
}

.footer-col { display: flex; flex-direction: column; gap: 10px; }

.footer-col-titulo {
    font-size: 0.78em;
    font-weight: 700;
    color: #7dd3fc;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85em;
    color: rgba(255,255,255,0.92);
    line-height: 1.5;
    margin: 0;
}

.footer-item i {
    color: #7dd3fc;
    width: 18px;
    text-align: center;
    font-size: 1em;
    flex-shrink: 0;
}

.footer-link {
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border-bottom: 1px dashed rgba(255,255,255,0.3);
    padding-bottom: 1px;
}

.footer-link:hover { color: #7dd3fc; border-bottom-color: #7dd3fc; }

.footer-pg-lista { display: flex; gap: 16px; flex-wrap: wrap; }

.footer-pg-lista span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85em;
    color: rgba(255,255,255,0.92);
    font-weight: 500;
}

.footer-pg-lista span i { color: #7dd3fc; font-size: 1em; }

.footer-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.12);
    margin: 22px auto 12px;
    max-width: 1100px;
}

.footer-credits-wrap { max-width: 1100px; margin: 0 auto; text-align: center; }

.footer-credits {
    font-size: 0.75em;
    color: rgba(255,255,255,0.6);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-link-termos {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color 0.2s;
    border-bottom: 1px dashed rgba(255,255,255,0.2);
}

.footer-link-termos:hover { color: #7dd3fc; border-bottom-color: #7dd3fc; }
.footer-sep { opacity: 0.4; }

/* ===== NOTIFICAÇÃO ===== */
.custom-notification {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: rgba(30, 41, 59, 0.92);
    color: white;
    padding: 9px 16px;
    border-radius: 10px;
    font-size: 0.82em;
    font-weight: 600;
    z-index: 9999999;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    animation: notifSlide 0.25s ease-out;
    pointer-events: none;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-notification i { color: #4ade80; font-size: 0.95em; flex-shrink: 0; }

@keyframes notifSlide {
    from { transform: translateX(-30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ===== CARRINHO ===== */
.cart-page {
    padding: 20px;
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
}

.cart-header {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eee;
    gap: 12px;
}

.cart-header h1 { margin: 0 auto; color: #0066cc; font-size: 1.4em; }

.back-button {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.back-button:hover { background: #e2e8f0; color: #0066cc; }

.cart-content { display: flex; flex-wrap: wrap; gap: 28px; }
.cart-items-container { flex: 1; min-width: 280px; }

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 15px;
    border: 1px solid #eef0f4;
    border-radius: 10px;
    margin-bottom: 12px;
    transition: all 0.2s;
    box-sizing: border-box;
    gap: 10px;
}

.cart-item:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.item-info { flex: 1; min-width: 0; }

.item-name {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.92em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-price { color: #0066cc; font-weight: bold; font-size: 0.88em; }
.item-quantity { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.quantity-btn {
    background: #f0f4f8;
    border: 1px solid #e2e8f0;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: bold;
    color: #475569;
    transition: all 0.15s;
}

.quantity-btn:hover { background: #0066cc; color: white; border-color: #0066cc; }

.remove-item {
    color: #f87171;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    transition: all 0.15s;
    flex-shrink: 0;
}

.remove-item:hover { background: #fee2e2; color: #dc2626; }

.order-summary {
    width: 320px;
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    align-self: flex-start;
    flex-shrink: 0;
}

.order-summary h3 {
    margin-top: 0;
    color: #0066cc;
    font-size: 1em;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.summary-row { display: flex; justify-content: space-between; align-items: center; margin: 12px 0; font-size: 0.9em; }

.summary-row.total {
    font-weight: bold;
    font-size: 1.05em;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 2px solid #e2e8f0;
    color: #1e293b;
}

.summary-row.desconto { color: #16a34a; font-weight: 600; }
.summary-row.desconto span:last-child { color: #16a34a; }

.coupon-section {
    margin: 16px 0;
    padding: 14px;
    background: #fff;
    border-radius: 10px;
    border: 1px dashed #cbd5e1;
}

#couponApplied { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 0.85em; }

.remove-coupon {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    padding: 4px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.78em;
    font-weight: 600;
    transition: all 0.2s;
}

.remove-coupon:hover { background: #fecaca; }

#couponInputSection { display: flex; gap: 8px; }

#couponInputSection input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    font-size: 0.85em;
    font-family: 'Montserrat', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

#couponInputSection input:focus { border-color: #0066cc; }

#couponInputSection button {
    background: #0066cc;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 0.82em;
    font-weight: 600;
    transition: all 0.2s;
}

#couponInputSection button:hover { background: #004d99; }
#couponInputSection button:disabled { opacity: 0.6; cursor: wait; }

.checkout-button {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #0066cc, #0080ff);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.95em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.3px;
    margin-top: 6px;
    box-shadow: 0 4px 12px rgba(0,102,204,0.3);
}

.checkout-button:hover {
    background: linear-gradient(135deg, #004d99, #0066cc);
    box-shadow: 0 6px 16px rgba(0,102,204,0.4);
    transform: translateY(-1px);
}

/* ===== CHECKOUT ===== */
.checkout-page {
    padding: 20px;
    max-width: 860px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
}

.checkout-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eee;
}

.checkout-header h1 { margin: 0; color: #0066cc; font-size: 1.3em; text-align: center; }
.checkout-header .back-button { display: none !important; }

.checkout-steps { display: flex; justify-content: center; gap: 12px; margin: 24px 0; position: relative; }

.checkout-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%; right: 10%;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
    transform: translateY(-50%);
}

.step {
    position: relative;
    z-index: 2;
    background: #f1f5f9;
    padding: 7px 18px;
    border-radius: 20px;
    font-size: 0.82em;
    color: #94a3b8;
    font-weight: 600;
    white-space: nowrap;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.step.active {
    background: #0066cc;
    color: white;
    border-color: #0066cc;
    box-shadow: 0 3px 10px rgba(0,102,204,0.3);
}

.checkout-section { display: none; }
.form-group { margin-bottom: 18px; }

.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.88em; color: #374151; }

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9em;
    box-sizing: border-box;
    transition: border-color 0.2s;
    outline: none;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: #0066cc; }

.form-group textarea { min-height: 75px; resize: vertical; }

.form-row-endereco {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.form-row-endereco .form-group {
    flex: 1;
    margin-bottom: 0;
    min-width: 150px;
}

.form-row-endereco label {
    font-size: 0.78em;
    margin-bottom: 4px;
}

.form-row-endereco input {
    padding: 9px 12px;
    font-size: 0.85em;
}

.delivery-options { display: flex; flex-direction: row; gap: 12px; margin: 16px 0; }

.delivery-option {
    flex: 1;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.delivery-option:hover { border-color: #0066cc; background: #f8faff; }
.delivery-option input { display: none; }

.delivery-option label {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.88em;
    font-weight: 600;
    color: #374151;
}

.delivery-option i { font-size: 1.2em; color: #0066cc; }
.delivery-option.selected { border-color: #0066cc; background: #eff6ff; }

.payment-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; }

.payment-option {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-option:hover { border-color: #0066cc; background: #f8faff; }
.payment-option input { display: none; }

.payment-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    font-size: 0.82em;
    font-weight: 600;
    color: #374151;
}

.payment-option i { font-size: 1.4em; color: #0066cc; }
.payment-option.selected { border-color: #0066cc; background: #eff6ff; }

.cash-change-section {
    margin: 20px 0;
    padding: 18px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.change-options { display: flex; flex-direction: row; gap: 10px; margin: 12px 0; }

.change-option {
    flex: 1;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.change-option:hover { border-color: #0066cc; }
.change-option input { display: none; }

.change-option label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.88em;
    font-weight: 600;
    color: #374151;
}

.change-option.selected { border-color: #0066cc; background: #eff6ff; }

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    gap: 12px;
}

.next-button {
    background: #0066cc;
    color: white;
    border: none;
    padding: 11px 28px;
    border-radius: 9px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9em;
    transition: all 0.2s;
    box-shadow: 0 3px 10px rgba(0,102,204,0.3);
    letter-spacing: 0.2px;
}

.next-button:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(0,102,204,0.4); }

.confirm-button {
    background: #28a745;
    color: white;
    border: none;
    padding: 11px 28px;
    border-radius: 9px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9em;
    transition: all 0.2s;
    box-shadow: 0 3px 10px rgba(22,163,74,0.3);
    letter-spacing: 0.2px;
    margin-top: 0;
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.confirm-button:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(22,163,74,0.4); }
.confirm-button svg { width: 16px; height: 16px; fill: white; }

.checkout-page .back-button,
#checkoutPage .back-button {
    background: #6c757d !important;
    border: none !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex: none !important;
    width: auto !important;
    min-width: 100px !important;
}

.checkout-page .back-button:hover,
#checkoutPage .back-button:hover { background: #5a6268 !important; }

.order-review { background: #f8fafc; padding: 20px; border-radius: 10px; border: 1px solid #e2e8f0; }

.review-section { margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid #e2e8f0; }
.review-section:last-of-type { border-bottom: none; }
.review-section h3 { color: #0066cc; margin-top: 0; font-size: 0.95em; margin-bottom: 10px; }
.review-section p { margin: 5px 0; font-size: 0.88em; color: #374151; line-height: 1.5; }

.review-item { display: flex; justify-content: space-between; margin: 8px 0; font-size: 0.88em; color: #374151; }

.review-total { font-weight: bold; font-size: 1.05em; text-align: right; margin-top: 12px; color: #0066cc; }

.review-desconto {
    color: #16a34a;
    text-align: right;
    font-size: 0.92em;
    font-weight: 600;
    margin-top: 6px;
}

#scheduleError { color: #ef4444; font-size: 0.8em; margin-top: 5px; display: none; }

.radio-group { display: flex; gap: 10px; flex-wrap: nowrap; margin: 14px 0; }

.btn-opcao {
    flex: 1;
    min-width: 90px;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85em;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    color: #374151;
}

.btn-opcao:hover { border-color: #0066cc; background: #f8faff; }
.btn-opcao.selecionado { border-color: #0066cc; background: #0066cc; color: white; }

/* ===== ASSISTENTE VIRTUAL ===== */
.assistente {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 250px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.18);
    z-index: 1000;
    display: none;
    animation: surgir 0.3s ease-out;
    border: 2px solid #0066cc;
}

.assistente-conteudo {
    position: relative;
    padding: 15px;
    background: linear-gradient(to bottom, #f0f8ff, white);
    border-radius: 15px;
}

.avatar {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    top: -32px;
    left: 15px;
    border: 3px solid #0066cc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.balao-chat {
    margin-left: 78px;
    padding: 10px;
    background: #f8f8f8;
    border-radius: 10px;
    font-size: 0.85em;
    border: 1px solid #e2e8f0;
}

.whatsapp-btn {
    display: block;
    background: #25D366;
    color: white;
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85em;
    margin-top: 10px;
    transition: all 0.3s;
}

.whatsapp-btn:hover { background: #128C7E; }

.fechar-assistente {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    font-size: 1.3em;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.2s;
}

.fechar-assistente:hover { color: #374151; }

.btn-abrir-assistente {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #0066cc;
    border: none;
    cursor: pointer;
    z-index: 99999;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    transition: all 0.3s;
    overflow: hidden;
    padding: 0;
    display: none;
}

.btn-abrir-assistente:hover { transform: scale(1.08); }

.btn-abrir-assistente img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

@keyframes surgir {
    from { transform: translateY(80px) scale(0.9); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

#inicio .btn-abrir-assistente { display: block !important; }

/* ===== MODAL ===== */
.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999999;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

/* ===== SWAL FIXES ===== */
.swal2-popup {
    max-height: 95vh !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.swal2-html-container {
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 10px 5px !important;
    margin: 10px 0 !important;
    flex: 1 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.swal2-container { overflow: hidden !important; }
body.swal2-shown { overflow: hidden !important; padding-right: 0 !important; }

.lista-enderecos-scroll,
.lista-historico-scroll {
    max-height: 250px;
    overflow-x: hidden !important;
    overflow-y: auto;
    margin-bottom: 15px;
    padding-right: 5px;
    border-bottom: 1px solid #eee;
    width: 100%;
    box-sizing: border-box;
}

.endereco-option { width: 100%; box-sizing: border-box; }

.swal2-html-container::-webkit-scrollbar,
.lista-historico-scroll::-webkit-scrollbar { width: 5px; }
.swal2-html-container::-webkit-scrollbar-track,
.lista-historico-scroll::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
.swal2-html-container::-webkit-scrollbar-thumb,
.lista-historico-scroll::-webkit-scrollbar-thumb { background: #0066cc; border-radius: 10px; }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .header { padding: 16px 16px 60px; gap: 4px; }
    .header img { max-width: clamp(150px, 40vw, 200px); }
    .header-slogan { font-size: clamp(1.4em, 6vw, 1.9em); }
    .catalog-button { padding: 11px 32px; font-size: 1em; margin-top: 8px; }

    .topbar {
        padding: 10px 12px;
        height: 62px;
        gap: 8px;
    }

    .topbar-logo-nome,
    .topbar-logo-cidade { display: none; }
    .topbar-logo i { font-size: 1.5em; }

    .topbar-mobile-menu { display: flex; }

    .topbar-btn-acao span:not(#cartCount) { display: none; }
    .topbar-btn-acao {
        padding: 8px;
        width: 40px;
        height: 40px;
        justify-content: center;
        border-radius: 50%;
        background: #f1f5f9;
        color: #374151;
    }

    .topbar-btn-acao:hover { background: #0066cc; color: white; }
    .topbar-btn-acao i { font-size: 1.05em; }

    .topbar-btn-acao.logado {
        background: #f1f5f9;
        color: #0066cc;
    }

    #loginBtn {
        min-width: 40px;
        width: 40px;
        height: 40px;
        padding: 8px;
    }

    .menu-categorias-mobile { top: 62px; left: 10px; right: auto; min-width: 220px; }
    .menu-categoria-mobile-item { padding: 12px 16px; font-size: 0.87em; }

    .topbar-categorias-faixa { display: none; }

    .topbar-busca { max-width: none; flex: 1; }
    #buscaProduto { padding: 10px 36px 10px 38px; font-size: 0.85em; }
    .topbar-busca > i.fa-search { left: 14px; font-size: 0.9em; }
    .topbar-busca-clear { right: 8px; width: 22px; height: 22px; font-size: 0.7em; }

    .inicio { padding-top: 62px; }

    .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 10px; }
    .produto img { height: 130px; padding: 8px; }
    .produto-content { padding: 9px; }

    .produto h3 {
        font-size: 0.85em;
        margin-bottom: 4px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.3;
    }

    .produto p {
        font-size: 0.72em;
        margin-bottom: 7px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .produto-price { font-size: 0.95em; margin-bottom: 7px; }
    .produto button { padding: 7px 8px; font-size: 0.76em; gap: 5px; }

    .footer-inicio { padding: 20px 18px 14px; }
    .footer-inicio-inner { grid-template-columns: 1fr; gap: 18px; }
    .footer-col-titulo { font-size: 0.72em; margin-bottom: 2px; }
    .footer-item { font-size: 0.8em; gap: 8px; }
    .footer-item i { font-size: 0.95em; width: 16px; }
    .footer-pg-lista { gap: 14px; }
    .footer-pg-lista span { font-size: 0.8em; }
    .footer-divider { margin: 18px auto 10px; }
    .footer-credits { font-size: 0.7em; gap: 6px; flex-direction: column; }
    .footer-sep { display: none; }

    .cart-page { padding: 12px; }
    .cart-header h1 { font-size: 1.1em; }
    .cart-content { flex-direction: column; gap: 16px; }
    .cart-items-container { width: 100%; }
    .cart-item { padding: 11px 12px; gap: 8px; }
    .item-name { font-size: 0.86em; }
    .order-summary { width: 100%; box-sizing: border-box; padding: 14px; }

    .checkout-page { padding: 12px; }
    .checkout-header h1 { font-size: 1.05em; }
    .checkout-steps { gap: 6px; margin: 16px 0; }
    .step { font-size: 0.74em; padding: 5px 12px; }

    .delivery-options { flex-direction: row; gap: 10px; }
    .delivery-option { padding: 12px 8px; }
    .delivery-option label { font-size: 0.8em; gap: 6px; }

    .payment-options { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .payment-option { padding: 12px 6px; }
    .payment-option label { font-size: 0.76em; gap: 5px; }
    .payment-option i { font-size: 1.2em; }

    .change-options { flex-direction: row; gap: 8px; }
    .change-option { padding: 9px 6px; }
    .change-option label { font-size: 0.82em; }

    /* ✅ BOTÕES VOLTAR/CONTINUAR IGUAIS */
    .next-button,
    .confirm-button,
    .checkout-page .back-button,
    #checkoutPage .back-button {
        padding: 11px 16px !important;
        font-size: 0.85em !important;
        flex: 1 1 0 !important;
        min-width: 0 !important;
        width: auto !important;
        min-height: 44px !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        align-items: center !important;
    }

    .radio-group { flex-wrap: nowrap; gap: 7px; }
    .btn-opcao { font-size: 0.78em; padding: 9px 6px; min-width: 0; }

    .form-row-endereco {
        flex-direction: column;
        gap: 12px;
    }

    .form-row-endereco .form-group {
        flex: 1;
        min-width: 0;
    }

    .btn-abrir-assistente { width: 48px; height: 48px; bottom: 16px; right: 14px; }
    .assistente { width: 240px; bottom: 75px; right: 10px; max-width: 88vw; }
    .balao-chat { font-size: 0.8em; }

    .swal2-popup { width: 94% !important; margin: 0 auto !important; }

    .custom-notification {
        font-size: 0.78em;
        padding: 8px 14px;
        bottom: 16px;
        left: 16px;
        max-width: 200px;
    }

    .carrossel-wrap { padding: 10px; margin: 14px 0; }

    .carrossel-slide {
        padding: 18px 50px;
        gap: 14px;
        border-radius: 12px;
        height: 200px;
        max-height: 200px;
        min-height: 200px;
        align-items: center;
    }
    .carrossel-slide .slide-icon { font-size: 1.5em; }
    .carrossel-slide .slide-titulo { font-size: 1.3em; margin-bottom: 5px; line-height: 1.2; }
    .carrossel-slide .slide-msg { font-size: 1em; line-height: 1.4; }
    .carrossel-slide .slide-img { width: 55px; height: 55px; border-radius: 8px; }

    .carrossel-slide.banner {
        height: 200px;
        max-height: 200px;
        min-height: 200px;
        padding: 0;
    }
    .carrossel-slide.banner .banner-overlay { padding: 16px 50px; }
    .carrossel-slide.banner .slide-titulo { font-size: 1.1em; margin-bottom: 3px; }
    .carrossel-slide.banner .slide-msg { font-size: 0.85em; }

    .carrossel-nav {
        width: 28px;
        height: 28px;
        font-size: 0.65em;
        top: 10px;
        bottom: 41px;
        margin: auto 0;
    }
    .carrossel-nav.prev { left: 12px; }
    .carrossel-nav.next { right: 12px; }

    .carrossel-dots { margin-top: 8px; }
    .carrossel-dot { width: 7px; height: 7px; }
    .carrossel-dot.ativo { width: 16px; }

    /* ✅ BUSCA MOBILE: nome completo do produto */
    .busca-item { padding: 12px 10px; gap: 8px; align-items: flex-start; display: flex;}
    .busca-item img { width: 42px; height: 42px; padding: 3px; flex-shrink: 0;}
    .busca-item-info { flex: 1 1 auto !important; min-width: 0 !important; overflow: hidden; }
    .busca-item-nome {
        font-size: 0.82em;
        font-weight: 600;;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        line-height: 1.3;
        display: block !important;
        word-break: break-word;
        margin-bottom: 3px;
    }
    .busca-item-cat { font-size: 0.68em; color: #94a3b8;}
    .busca-item-preco {
        flex: 0 0 auto !important;
        font-size: 0.78em;
        align-self: flex-start !important;
        margin-left: 4px;
        padding-top: 2px;
        white-space: nowrap;
    }

    .footer-capa {
        bottom: 12px;
        font-size: 0.6em;
    }
}

@media (max-width: 480px) {
    .grid { grid-template-columns: 1fr; gap: 10px; }
    .produto img { height: 160px; padding: 12px; }
    .produto h3 { font-size: 1em; }
    .payment-options { grid-template-columns: repeat(3, 1fr); }
    .checkout-steps .step { font-size: 0.68em; padding: 4px 9px; }
    .navigation-buttons { flex-direction: row; }

    .carrossel-slide {
        padding: 16px 45px;
        gap: 12px;
        height: 180px;
        max-height: 180px;
        min-height: 180px;
    }
    .carrossel-slide .slide-icon { font-size: 1.3em; }
    .carrossel-slide .slide-titulo { font-size: 0.95em; }
    .carrossel-slide .slide-msg { font-size: 0.76em; line-height: 1.35; }
    .carrossel-slide .slide-img { width: 48px; height: 48px; }

    .carrossel-slide.banner {
        height: 180px;
        max-height: 180px;
        min-height: 180px;
    }
    .carrossel-slide.banner .banner-overlay { padding: 14px 45px; }
    .carrossel-slide.banner .slide-titulo { font-size: 1em; }
    .carrossel-slide.banner .slide-msg { font-size: 0.78em; }

    .carrossel-nav { width: 28px; height: 28px; font-size: 0.65em; }
    .carrossel-nav.prev { left: 10px; }
    .carrossel-nav.next { right: 10px; }
}

@media (min-width: 481px) and (max-width: 768px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== REGRAS AVATAR POR CONTEXTO ===== */
#header #btnAbrirAssistente, #header #assistente { display: none !important; }
#cartPage #btnAbrirAssistente, #cartPage #assistente { display: none !important; }
#checkoutPage #btnAbrirAssistente, #checkoutPage #assistente { display: none !important; }
#orderConfirmation #btnAbrirAssistente, #orderConfirmation #assistente { display: none !important; }

/* ===== Padronizar inputs/selects dentro dos Swals ===== */
.swal2-popup .swal2-input,
.swal2-popup .swal2-select {
    height: 42px !important;
    padding: 10px 12px !important;
    font-size: 13px !important;
    font-family: 'Montserrat', sans-serif !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    width: 100% !important;
    background: white !important;
}

.swal2-popup .swal2-input:focus,
.swal2-popup .swal2-select:focus {
    border-color: #0066cc !important;
    box-shadow: 0 0 0 3px rgba(0,102,204,0.08) !important;
}