/* ============================================================
   NEXO X MARKET — Design System (estilo marketplace/e-commerce)
   Paleta: laranja vibrante sobre fundo claro, no espírito de
   grandes marketplaces asiáticos (preço em destaque, tags de
   desconto, grade densa de produtos, alto contraste de ação).
   Tipografia: Poppins (display, bem encorpada) + Inter (corpo).
   Assinatura visual: tag de desconto no canto do card de produto
   com pontinha triangular — o "selo de oferta".
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Cor */
    --bg:          #f5f5f5;   /* fundo geral, cinza claríssimo */
    --surface:     #ffffff;   /* cards e painéis */
    --surface-alt: #fafafa;
    --border:      #ececec;
    --border-strong: #e0e0e0;

    --primary:      #ee4d2d;  /* laranja principal */
    --primary-deep: #d7391c;
    --primary-soft: #fff1ee;
    --accent:       #ffce3d;  /* amarelo de "oferta relâmpago" */
    --accent-deep:  #f5a623;

    --text-hi:  #222222;
    --text-mid: #6b6b6b;
    --text-low: #9e9e9e;
    --success:  #26aa99;
    --danger:   #e02020;

    /* Compat: nomes antigos usados em alguns componentes */
    --void: var(--bg);
    --panel: var(--surface);
    --panel-glass: var(--surface);
    --border-glass: var(--border);
    --gold: var(--primary);
    --gold-bright: var(--primary);
    --neon: var(--primary-deep);
    --neon-deep: var(--primary-deep);

    /* Tipografia */
    --font-display: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --radius: 6px;
    --radius-sm: 4px;
    --max-w: 1360px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text-hi);
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
    font-family: var(--font-display);
    letter-spacing: -0.01em;
    margin: 0;
    font-weight: 700;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ---------- Faixa de assinatura (linha fina laranja) ---------- */
.circuit-seam {
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--primary-deep), var(--primary) 40%, var(--accent) 100%);
}
.circuit-seam::after { content: none; }

/* ---------- Cabeçalho ---------- */
.topbar {
    position: sticky; top: 0; z-index: 50;
    background: linear-gradient(135deg, var(--primary-deep), var(--primary));
    border-bottom: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.topbar-inner {
    max-width: var(--max-w); margin: 0 auto; padding: 14px 24px;
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.logo {
    font-family: var(--font-display); font-weight: 800; font-size: 22px;
    display: flex; align-items: baseline; gap: 2px; white-space: nowrap;
    color: #ffffff;
}
.logo .x { color: #ffffff; }
.logo .market { color: var(--accent); font-size: 13px; letter-spacing: 0.1em; font-weight: 700; margin-left: 6px; }

.search-bar {
    flex: 1; min-width: 220px;
    display: flex; align-items: center; gap: 10px;
    background: #ffffff;
    border: 2px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 9px 16px;
    transition: box-shadow .2s;
}
.search-bar:focus-within {
    box-shadow: 0 0 0 3px rgba(255, 206, 61, 0.35);
}
.search-bar input {
    flex: 1; background: transparent; border: none; color: var(--text-hi);
    font-size: 14px; outline: none;
}
.search-bar input::placeholder { color: var(--text-low); }
.search-bar span { color: var(--primary); }

.topbar-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
    position: relative;
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.3);
    color: #ffffff; transition: background .2s;
}
.icon-btn:hover { background: rgba(255,255,255,0.28); }
.icon-btn .badge {
    position: absolute; top: -4px; right: -4px;
    background: var(--accent); color: #3a2400;
    font-size: 10px; font-weight: 800; line-height: 1;
    padding: 3px 5px; border-radius: 999px;
}

/* ---------- Botões ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px; border-radius: var(--radius-sm); border: 1px solid transparent;
    font-weight: 700; font-size: 14px; transition: transform .12s, box-shadow .15s, border-color .15s, background .15s;
}
.btn:active { transform: scale(0.97); }

.btn-gold {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(238, 77, 45, 0.35);
}
.btn-gold:hover { background: var(--primary-deep); }

.btn-neon {
    background: #ffffff; color: var(--primary); border: 1.5px solid var(--primary);
}
.btn-neon:hover { background: var(--primary-soft); }

.btn-ghost {
    background: #ffffff; color: var(--text-hi); border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- Categorias (nav) ---------- */
.categories-nav {
    display: flex; gap: 22px; overflow-x: auto; padding: 10px 24px;
    max-width: var(--max-w); margin: 0 auto;
    scrollbar-width: none;
    background: rgba(0,0,0,0.06);
}
.categories-nav::-webkit-scrollbar { display: none; }
.categories-nav a {
    font-size: 13.5px; color: #ffffff; opacity: 0.9; white-space: nowrap;
    padding-bottom: 4px; border-bottom: 2px solid transparent; transition: opacity .2s, border-color .2s;
}
.categories-nav a:hover { opacity: 1; border-color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
    padding: 0; width: 100%; margin: 0 0 32px;
    background: linear-gradient(120deg, var(--primary-deep), var(--primary) 65%, var(--accent-deep));
    color: #ffffff; overflow: hidden;
}
.hero-inner {
    max-width: var(--max-w); margin: 0 auto;
    display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0; align-items: stretch;
}
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } }

.hero-inner > div:first-child { padding: 56px 40px; }
.hero-eyebrow {
    font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--accent); font-weight: 700; margin-bottom: 14px;
}
.hero h1 {
    font-size: clamp(30px, 4.6vw, 46px); line-height: 1.12;
    color: #ffffff;
}
.hero p { color: rgba(255,255,255,0.88); font-size: 16px; margin-top: 18px; max-width: 46ch; }
.hero-city-filter {
    display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; max-width: 440px;
}
.hero-city-filter select {
    flex: 1; min-width: 180px; padding: 12px 14px; border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.35); background: rgba(255,255,255,0.12);
    color: #ffffff; font-size: 14px; appearance: none;
}
.hero-city-filter select option { color: #1a1a1a; }
.hero-city-filter .btn-gold { background: #ffffff; color: var(--primary-deep); box-shadow: none; white-space: nowrap; }
.hero-city-filter .btn-gold:hover { background: var(--accent); color: #3a2400; }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-cta .btn-gold { background: #ffffff; color: var(--primary-deep); box-shadow: none; }
.hero-cta .btn-gold:hover { background: var(--accent); color: #3a2400; }
.hero-cta .btn-neon { background: transparent; color: #ffffff; border-color: rgba(255,255,255,0.7); }
.hero-cta .btn-neon:hover { background: rgba(255,255,255,0.15); }

.hero-visual {
    position: relative; aspect-ratio: auto; min-height: 260px;
    background: rgba(255,255,255,0.08);
    border: none;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.hero-visual::before { content: none; }
.hero-orb {
    width: 58%; aspect-ratio: 1/1; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff3d6, var(--accent) 45%, var(--primary-deep) 100%);
    box-shadow: 0 0 0 14px rgba(255,255,255,0.08);
    animation: orb-float 6s ease-in-out infinite;
}
@keyframes orb-float { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-14px);} }
@media (prefers-reduced-motion: reduce) { .hero-orb { animation: none; } }

.hero-banner-slide {
    display: block; width: 100%; height: 100%; min-height: 260px;
}
.hero-banner-slide img {
    width: 100%; height: 100%; min-height: 260px;
    object-fit: cover; display: block;
}
.hero-banner-slide video {
    width: 100%; height: 100%; min-height: 260px;
    object-fit: contain; object-position: center; display: block;
    background: linear-gradient(120deg, var(--primary-deep), var(--primary) 65%, var(--accent-deep));
}
.hero-video-sound {
    position: absolute; bottom: 14px; right: 14px; z-index: 2;
    width: 38px; height: 38px; border-radius: 50%; border: none;
    background: rgba(20,20,20,0.55); color: #ffffff; font-size: 16px;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.hero-video-sound:hover { background: rgba(20,20,20,0.8); }

/* ---------- Seções ---------- */
.section { padding: 28px 24px; max-width: var(--max-w); margin: 0 auto; }
.section-head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
    margin-bottom: 16px; flex-wrap: wrap;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
}
.section-head h2 { font-size: 19px; color: var(--text-hi); }
.section-head .see-all { font-size: 13px; color: var(--primary); font-weight: 600; }

/* ---------- Grid de produtos ---------- */
.product-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px;
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .15s, box-shadow .15s;
    position: relative;
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.product-card .thumb {
    aspect-ratio: 1/1; background: var(--surface-alt);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-low); font-size: 12px; position: relative;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .fav-btn {
    position: absolute; top: 8px; right: 8px;
    width: 30px; height: 30px; border-radius: 50%;
    background: rgba(255,255,255,0.92); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center; color: var(--text-mid);
}
.product-card .fav-btn.active { color: var(--primary); border-color: var(--primary); }
.badge-promo {
    position: absolute; top: 0; left: 0;
    background: var(--primary); color: #ffffff; font-size: 11px; font-weight: 800;
    padding: 4px 10px 4px 8px; border-radius: 0 0 6px 0;
}
.badge-promo::after {
    content: ''; position: absolute; left: 0; top: 100%;
    border-width: 4px 4px 0 0; border-style: solid;
    border-color: var(--primary-deep) transparent transparent transparent;
}
.product-card .info { padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.product-card .store { font-size: 11px; color: var(--text-low); }
.product-card .name {
    font-size: 13.5px; font-weight: 500; color: var(--text-hi);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 36px;
}
.product-card .price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.product-card .price { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--primary); }
.product-card .price-old { font-size: 12px; color: var(--text-low); text-decoration: line-through; }
.product-card .meta { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-low); margin-top: 2px; }

/* ---------- Cards de loja em destaque ---------- */
.store-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 18px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
    transition: box-shadow .15s, transform .15s;
}
.store-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.store-card .avatar {
    width: 64px; height: 64px; border-radius: 50%; background: var(--primary-soft);
    border: 2px solid var(--primary); display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 700; color: var(--primary);
}
.store-card .name { font-weight: 600; font-size: 14px; }
.store-card .meta { font-size: 12px; color: var(--text-low); }

/* ---------- Formulários / painéis ---------- */
.card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12.5px; color: var(--text-mid); font-weight: 600; }
.field input, .field select, .field textarea {
    background: #ffffff; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    padding: 11px 13px; color: var(--text-hi); font-size: 14px; font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(238,77,45,0.12);
}
.field textarea { resize: vertical; min-height: 90px; }

/* ---------- Tabelas de painel (admin/vendedor) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { color: var(--text-mid); font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: 0.05em; background: var(--surface-alt); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--primary-soft); }

.pill { display: inline-flex; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.pill-pendente { background: #fff4de; color: var(--accent-deep); }
.pill-aprovado, .pill-ativo, .pill-ativa { background: #e3f7f4; color: var(--success); }
.pill-bloqueado, .pill-reprovado, .pill-suspensa { background: #fdeaea; color: var(--danger); }
.pill-pausado { background: var(--surface-alt); color: var(--text-mid); }
.pill-vendido { background: #eef1ff; color: #4b4bd6; }

/* Modal simples (usado em "Marcar vendido" etc.) */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    z-index: 999; padding: 16px;
}
.modal-box {
    background: var(--surface); border-radius: var(--radius); padding: 22px;
    width: 100%; max-width: 380px; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.modal-box h3 { margin: 0 0 14px; font-family: var(--font-display); font-size: 18px; }
.modal-option {
    display: block; width: 100%; text-align: left; padding: 12px 14px;
    border: 1px solid var(--border-strong); border-radius: var(--radius);
    background: var(--surface); margin-bottom: 10px; cursor: pointer; font-family: var(--font-body);
}
.modal-option:hover { border-color: var(--primary); background: var(--primary-soft); }
.modal-option strong { display: block; font-size: 14px; color: var(--text-hi); }
.modal-option span { font-size: 12.5px; color: var(--text-mid); }
.modal-qty {
    display: flex; align-items: center; gap: 10px; margin: 4px 0 16px;
}
.modal-qty input {
    width: 80px; padding: 8px 10px; border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm); font-size: 14px;
}
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* ---------- Dashboard layout (admin/vendedor/cliente) ---------- */
.dash {
    display: grid; grid-template-columns: 240px 1fr; min-height: 100vh;
    background: var(--bg);
}
@media (max-width: 860px) {
    .dash { grid-template-columns: 1fr; }
    .dash-side {
        flex-direction: row; overflow-x: auto; gap: 6px;
        padding: 10px 12px; border-right: none; border-bottom: 1px solid var(--border);
        scrollbar-width: none;
    }
    .dash-side::-webkit-scrollbar { display: none; }
    .dash-side a { white-space: nowrap; }
}
.dash-side {
    background: var(--surface); border-right: 1px solid var(--border);
    padding: 24px 16px; display: flex; flex-direction: column; gap: 4px;
}
.dash-side a {
    padding: 11px 14px; border-radius: var(--radius-sm); font-size: 14px; color: var(--text-mid);
    display: flex; align-items: center; gap: 10px; transition: background .15s, color .15s;
}
.dash-side a:hover, .dash-side a.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.dash-main { padding: 32px; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.kpi-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; border-top: 3px solid var(--primary); }
.kpi-card .num { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--primary); }
.kpi-card .label { font-size: 12px; color: var(--text-mid); margin-top: 4px; }

/* ---------- Chat (mensagens) ---------- */
.chat-wrap { display: grid; grid-template-columns: 300px 1fr; height: calc(100vh - 0px); background: var(--surface); }
@media (max-width: 720px) { .chat-wrap { grid-template-columns: 1fr; } .chat-wrap.conversa-aberta .chat-lista { display: none; } .chat-wrap:not(.conversa-aberta) .chat-painel { display: none; } }
.chat-lista { border-right: 1px solid var(--border); overflow-y: auto; background: var(--surface); }
.chat-lista-item {
    display: flex; gap: 10px; align-items: center; padding: 14px 16px; cursor: pointer;
    border-bottom: 1px solid var(--border); transition: background .15s;
}
.chat-lista-item:hover, .chat-lista-item.active { background: var(--primary-soft); }
.chat-avatar {
    width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
    background: var(--primary); color: #ffffff;
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-display);
}
.chat-lista-info { flex: 1; min-width: 0; }
.chat-lista-nome { font-size: 14px; font-weight: 600; color: var(--text-hi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-lista-preview { font-size: 12.5px; color: var(--text-low); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.chat-lista-badge {
    background: var(--primary); color: #ffffff; font-size: 11px; font-weight: 700;
    border-radius: 999px; min-width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; padding: 0 5px;
}
.chat-painel { display: flex; flex-direction: column; height: 100%; background: var(--bg); }
.chat-topo { padding: 14px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; background: var(--surface); }
.chat-mensagens { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.chat-bolha { max-width: 70%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.4; }
.chat-bolha.mine { align-self: flex-end; background: var(--primary); color: #ffffff; border-bottom-right-radius: 4px; }
.chat-bolha.theirs { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); color: var(--text-hi); border-bottom-left-radius: 4px; }
.chat-bolha img { max-width: 220px; border-radius: 10px; display: block; margin-top: 4px; cursor: pointer; }
.chat-bolha .hora { font-size: 10.5px; opacity: 0.65; margin-top: 4px; display: block; }
.chat-input-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); position: relative; background: var(--surface); }
.chat-input-bar input[type=text] {
    flex: 1; background: var(--bg); border: 1px solid var(--border-strong); border-radius: 999px;
    padding: 11px 16px; color: var(--text-hi); font-size: 14px; font-family: inherit;
}
.chat-icon-btn {
    width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface);
    color: var(--text-mid); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 17px; flex-shrink: 0;
}
.chat-icon-btn:hover { border-color: var(--primary); color: var(--primary); }
.emoji-picker {
    position: absolute; bottom: 58px; left: 16px; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 10px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18); z-index: 20; max-width: 320px;
}
.emoji-picker button { font-size: 20px; background: none; border: none; cursor: pointer; padding: 4px; border-radius: 6px; }
.emoji-picker button:hover { background: var(--primary-soft); }
footer { padding: 40px 24px; text-align: center; color: var(--text-low); font-size: 12.5px; }

/* ============================================================
   Responsivo — cobre celulares (~6.1" a 7.1"), tablets (~10.1")
   e notebooks/monitores (~15.1" em diante). Os breakpoints usam
   a largura da viewport (não a polegada física da tela, que o
   CSS não enxerga), mas cobrem as faixas mais comuns de cada
   categoria de aparelho.
   ============================================================ */

/* Tablets ~10.1" (retrato) e notebooks pequenos */
@media (max-width: 1024px) {
    .topbar-inner { padding: 12px 18px; gap: 14px; }
    .kpi-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
    .dash-main { padding: 24px 18px; }
}

/* Celulares grandes (~6.7"–7.1", ~480px de largura) até tablets pequenos */
@media (max-width: 768px) {
    .container, .section { padding-left: 16px; padding-right: 16px; }
    .topbar-inner { padding: 10px 16px; gap: 10px; }
    .logo { font-size: 19px; }
    .search-bar { order: 3; flex-basis: 100%; width: 100%; }
    .topbar-actions { margin-left: auto; }
    .topbar-actions .btn.btn-sm { padding: 8px 12px; font-size: 12.5px; }
    .categories-nav { padding: 8px 16px; gap: 16px; }

    .hero-inner > div:first-child { padding: 36px 20px; }
    .hero h1 { font-size: clamp(24px, 6vw, 34px); }
    .hero p { font-size: 14.5px; }
    .hero-visual, .hero-banner-slide, .hero-banner-slide img, .hero-banner-slide video {
        min-height: 200px;
    }

    .section { padding: 20px 16px; }
    .section-head h2 { font-size: 17px; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
    .product-card .name { font-size: 12.5px; min-height: 32px; }
    .product-card .price { font-size: 14.5px; }

    .dash-main { padding: 18px 14px; }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* Celulares (~6.1"–6.8", até ~430px de largura) */
@media (max-width: 480px) {
    .logo { font-size: 17px; }
    .logo .market { font-size: 11px; }
    .topbar-actions { gap: 6px; }
    .icon-btn { width: 34px; height: 34px; }

    .hero-eyebrow { font-size: 11px; margin-bottom: 10px; }
    .hero-inner > div:first-child { padding: 28px 16px; }
    .hero h1 { font-size: clamp(22px, 7vw, 28px); }
    .hero-city-filter { flex-direction: column; max-width: 100%; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { width: 100%; }

    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .kpi-grid { grid-template-columns: 1fr 1fr; }
    footer { padding: 28px 16px; }
}

/* Notebooks/monitores ~15.1" e maiores: dá mais respiro ao conteúdo */
@media (min-width: 1440px) {
    :root { --max-w: 1440px; }
}

/* ---------- Utilidades ---------- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-low); }
.toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    background: var(--text-hi); border: none; color: #ffffff;
    padding: 12px 20px; border-radius: 999px; font-size: 13.5px; z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
