/* ================================================================
   style.css — Estilos globais da ByteBox
   Arquivo principal: define variáveis, reset, layout e componentes
   reutilizados em todas as páginas.
================================================================ */


/* ── RESET GLOBAL ── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* ── VARIÁVEIS CSS ── */
/* Paleta de cores e medidas globais do projeto */
:root {
    --bg:         #080d1a;   /* fundo principal */
    --bg2:        #0a1020;   /* fundo secundário (sidebar, cards) */
    --bg3:        #0f172a;   /* fundo terciário (hover, destaques) */
    --border:     #1e293b;   /* cor das bordas */
    --sky:        #38bdf8;   /* azul principal (ações, links) */
    --indigo:     #6366f1;   /* roxo de apoio */
    --text:       #f1f5f9;   /* texto principal */
    --muted:      #64748b;   /* texto secundário / placeholder */
    --card-bg:    #0d1526;   /* fundo dos cards de produto */
    --sidebar-w:  220px;     /* largura padrão das sidebars */
}


/* ── BASE ── */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Garante que imagens e vídeos não excedam o container */
img,
video {
    max-width: 100%;
    height: auto;
}


/* ================================================================
   OVERLAY (fundo escuro ao abrir o menu lateral)
================================================================ */
.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 98;
}

.overlay.active {
    display: block;
}


/* ================================================================
   SIDEBAR NAV (menu lateral deslizante)
================================================================ */
nav#menu {
    position: fixed;
    top: 0;
    left: -270px;          /* escondido fora da tela por padrão */
    width: 270px;
    height: 100%;
    background-color: var(--bg2);
    z-index: 99;
    display: flex;
    flex-direction: column;
    padding-top: 16px;
    transition: left 0.3s ease;
    border-right: 1px solid var(--border);
}

/* Exibe o menu quando a classe .active é adicionada via JS */
nav#menu.active {
    left: 0;
}

nav#menu a {
    color: #cbd5e1;
    padding: 16px 28px;
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    font-weight: 500;
    transition: 0.2s;
}

nav#menu a:hover {
    background: var(--bg3);
    color: var(--sky);
    padding-left: 36px;
}

/* Botão de fechar o menu lateral */
.fechar {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 22px;
    text-align: right;
    padding: 0 20px 16px;
    cursor: pointer;
    align-self: flex-end;
}


/* ================================================================
   CART BUTTON (ícone do carrinho no header)
================================================================ */
.cart-btn {
    text-decoration: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    margin-left: 15px;
}

.cart-btn:hover {
    border-color: var(--sky);
    background: rgba(56, 189, 248, 0.15);
    transform: translateY(-2px);
}

.cart-icon {
    font-size: 20px;
}

/* Badge de quantidade sobre o ícone do carrinho */
.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(90deg, var(--sky), var(--indigo));
    color: white;
    font-size: 11px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--bg);
}


/* ================================================================
   AUTH WRAPPER (botões de login/logout no header)
================================================================ */
.auth-wrapper {
    margin-left: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'DM Sans', sans-serif;
}

.login-btn {
    background: var(--sky);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-name {
    font-weight: 500;
    font-size: 14px;
}

.logout-btn {
    background: transparent;
    border: 1px solid #ff4d4d;
    color: #ff4d4d;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    transition: 0.3s;
}

.logout-btn:hover {
    background: #ff4d4d;
    color: #fff;
}


/* ================================================================
   BARRA DE ANÚNCIO (topo da página)
================================================================ */
.barra-anuncio {
    background: linear-gradient(90deg, #0369a1, var(--indigo));
    color: white;
    text-align: center;
    padding: 9px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
}


/* ================================================================
   HEADER PRINCIPAL
================================================================ */
header {
    display: flex;
    align-items: center;
    justify-content: border-box;
    padding: 10px 5%;
    position: relative;
    min-height: 70px;
}

/* Logo empurrado para a esquerda */
header h1 {
    margin-right: auto;
    z-index: 5;
}

/* Grupo de elementos à direita (carrinho, login, etc.) */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 11;
}

/* Ícone de hamburguer para abrir o menu */
.menu-toggle {
    font-size: 26px;
    cursor: pointer;
    color: white;
    user-select: none;
    margin-right: 30px;
    margin-left: -30px;
}


/* ================================================================
   SEARCH BAR (centralizada no header)
================================================================ */
.search-wrap {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);  /* centraliza no eixo X */
    width: 40%;
    display: flex;
    z-index: 10;
}

.search-wrap:focus-within {
    border-color: var(--sky);
}

.search-wrap input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    padding: 9px 14px;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
}

.search-wrap input::placeholder {
    color: var(--muted);
}

.search-wrap button {
    background: linear-gradient(90deg, var(--sky), var(--indigo));
    border: none;
    padding: 9px 14px;
    cursor: pointer;
    color: #000;
    font-size: 15px;
    transition: 0.2s;
    font-weight: 700;
}

.search-wrap button:hover {
    opacity: 0.85;
}


/* ================================================================
   BANNER SLIDER (carrossel principal)
================================================================ */
.banner-slider {
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

.slide {
    display: none;
    position: relative;
    padding: 72px 40px;
    overflow: hidden;
    animation: fadeSlide 0.5s ease;
}

.slide.active {
    display: block;
}

@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Variações de fundo por slide */
.slide-1 { background: linear-gradient(135deg, #080d1a 0%, #0c1a3a 40%, #0e2542 70%, #080d1a 100%); }
.slide-2 { background: linear-gradient(135deg, #0d0a1a 0%, #1a0c3a 40%, #250e42 70%, #0d0a1a 100%); }
.slide-3 { background: linear-gradient(135deg, #0a1a0d 0%, #0c3a1a 40%, #0e4225 70%, #0a1a0d 100%); }

/* Efeito de luz no canto superior direito */
.slide::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

/* Efeito de luz no canto inferior esquerdo */
.slide::after {
    content: '';
    position: absolute;
    bottom: -120px;
    left: 8%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.banner-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
    text-align: center;
    margin: 0 auto;
}

.banner-tag {
    display: inline-block;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--sky);
    font-size: 13px;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.banner-content h2 {
    font-family: 'Syne', sans-serif;
    font-size: 52px;
    font-weight: 800;
    line-height: 1.05;
    color: #f1f5f9;
    margin-bottom: 14px;
}

/* Texto em gradiente no título do banner */
.banner-content h2 span {
    background: linear-gradient(90deg, var(--sky), var(--indigo));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.banner-content p {
    font-size: 16px;
    color: #94a3b8;
    margin-bottom: 28px;
}

.banner-badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #a5b4fc;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
}

.banner-btn {
    display: inline-block;
    padding: 13px 30px;
    background: linear-gradient(90deg, var(--sky), var(--indigo));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    transition: 0.2s;
    border: none;
    cursor: pointer;
}

.banner-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

/* Indicadores de slide (bolinhas) */
.slide-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: 0.3s;
    border: none;
}

.dot.active {
    background: var(--sky);
    transform: scale(1.3);
}

/* Setas de navegação do slider */
.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(8, 13, 26, 0.7);
    border: 1px solid var(--border);
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.slide-nav:hover {
    background: var(--sky);
    color: #000;
    border-color: var(--sky);
}

.slide-nav.prev { left: 16px; }
.slide-nav.next { right: 16px; }


/* ================================================================
   BANNER SECUNDÁRIO (dois cards abaixo do slider principal)
================================================================ */
.banner-secondary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 0 20px 32px;
    margin-top: -8px;
}

.mini-banner {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 28px;
    position: relative;
    overflow: hidden;
    transition: 0.2s;
    cursor: pointer;
}

.mini-banner:hover {
    border-color: var(--sky);
    transform: translateY(-2px);
}

/* Efeito de brilho no canto do mini-banner */
.mini-banner::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
}

.mini-banner h4 {
    font-family: 'Syne', sans-serif;
    font-size: 16px;
    margin-bottom: 6px;
}

.mini-banner p {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 12px;
}

.mini-banner .tag {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--sky), var(--indigo));
    color: #000;
}


/* ================================================================
   MARCAS (logos de fabricantes parceiros)
================================================================ */
.marcas {
    text-align: center;
    padding: 36px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg2);
}

.marcas p {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.marcas-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.marcas-grid span {
    color: #334155;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 10px 22px;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: 0.2s;
    cursor: default;
    font-family: 'Syne', sans-serif;
}

.marcas-grid span:hover {
    color: var(--sky);
    border-color: var(--sky);
}


/* ================================================================
   LAYOUT PRINCIPAL (sidebar esquerda + conteúdo + sidebar direita)
================================================================ */
.main-layout {
    display: grid;
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--sidebar-w);
    gap: 24px;
    padding: 28px;
    max-width: 1920px;
    margin: 0 auto;
}


/* ================================================================
   SIDEBAR ESQUERDA (categorias, filtros, produtos populares)
================================================================ */
.sidebar-left {
    position: sticky;
    top: 80px;
}

.sidebar-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 18px;
}

.sidebar-title {
    font-family: 'Syne', sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: var(--sky);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Lista de categorias */
.cat-list {
    list-style: none;
}

.cat-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 10px;
    border-radius: 7px;
    transition: 0.2s;
    cursor: pointer;
}

.cat-list li a:hover,
.cat-list li a.active {
    color: var(--sky);
    background: rgba(56, 189, 248, 0.08);
}

.cat-list li a span.count {
    background: var(--bg3);
    color: var(--muted);
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 999px;
}

/* Filtro de preço (range slider) */
.filter-group {
    margin-bottom: 14px;
}

.filter-group label {
    font-size: 12px;
    color: var(--muted);
    display: block;
    margin-bottom: 6px;
}

.filter-range {
    width: 100%;
    accent-color: var(--sky);
    cursor: pointer;
}

.filter-price-display {
    font-size: 13px;
    color: var(--sky);
    font-weight: 600;
    margin-top: 4px;
}

/* Item de produto popular na sidebar */
.pop-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.pop-item:last-child {
    border-bottom: none;
}

.pop-item img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
}

.pop-item-info {
    flex: 1;
    min-width: 0;
}

.pop-item-info h5 {
    font-size: 12px;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pop-item-info span {
    font-size: 12px;
    color: var(--sky);
    font-weight: 700;
}


/* ================================================================
   SIDEBAR DIREITA (flash sale, recomendados)
================================================================ */
.sidebar-right {
    position: sticky;
    top: 80px;
}

/* Item de produto em promoção relâmpago */
.flash-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.flash-item:last-child {
    border-bottom: none;
}

.flash-item img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
}

.flash-info {
    flex: 1;
    min-width: 0;
}

.flash-info h5 {
    font-size: 12px;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Preços: antigo riscado + novo em destaque verde */
.flash-price {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 2px;
}

.flash-price .old {
    font-size: 11px;
    color: var(--muted);
    text-decoration: line-through;
}

.flash-price .new {
    font-size: 13px;
    color: #4ade80;
    font-weight: 700;
}

/* Contador regressivo da promoção relâmpago */
.flash-timer {
    text-align: center;
    padding: 12px;
    background: var(--bg3);
    border-radius: 8px;
    margin-bottom: 14px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.flash-timer p {
    font-size: 11px;
    color: #f87171;
    margin-bottom: 6px;
    font-weight: 600;
}

.flash-timer .time {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #f87171;
}

/* Item de produto recomendado */
.rec-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 10px;
    align-items: center;
}

.rec-item:last-child {
    border-bottom: none;
}

.rec-badge {
    background: linear-gradient(90deg, var(--indigo), #8b5cf6);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.rec-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
}

.rec-info h5 {
    font-size: 12px;
    color: #e2e8f0;
}

.rec-info span {
    font-size: 12px;
    color: var(--sky);
    font-weight: 700;
}


/* ================================================================
   CONTEÚDO CENTRAL
================================================================ */
.main-content {}

/* Barra de controles (ordenação, total de resultados) */
.content-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
    flex-wrap: wrap;
}

.results-info {
    font-size: 13px;
    color: var(--muted);
}

.sort-select {
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 12px;
    border-radius: 7px;
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    outline: none;
}

.sort-select:focus {
    border-color: var(--sky);
}


/* ================================================================
   SEÇÕES CARROSSEL (horizontal scroll)
================================================================ */
.secao {
    padding: 0 0 32px;
}

.secao-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.secao-titulo {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.carousel-wrap {
    position: relative;
}

.carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 14px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

/* Scrollbar customizada para o carrossel */
.carousel::-webkit-scrollbar         { height: 4px; }
.carousel::-webkit-scrollbar-track   { background: transparent; }
.carousel::-webkit-scrollbar-thumb   { background: var(--border); border-radius: 4px; }

/* Botões de navegação do carrossel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    background: rgba(8, 13, 26, 0.9);
    border: 1px solid var(--border);
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    backdrop-filter: blur(8px);
}

.carousel-btn:hover {
    background: var(--sky);
    border-color: var(--sky);
    color: #000;
}

.carousel-btn.prev { left: -16px; }
.carousel-btn.next { right: -16px; }


/* ================================================================
   GRADE DE PRODUTOS (grid principal)
================================================================ */
.produtos-secao {
    padding: 0 0 32px;
}

.produtos-secao .secao-header {
    margin-bottom: 20px;
}

.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
}

/* Cards dentro do grid não devem ter width fixo */
.produtos-grid .card {
    width: 100%;
    flex: unset;
    flex-shrink: unset;
}


/* ================================================================
   CARD DE PRODUTO
================================================================ */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 420px;
    border-radius: 12px;
    max-width: 100%;
    min-width: 0;
    width: 200px;
    flex: 0 0 auto;
    overflow: hidden;
    padding: 14px;
    flex-shrink: 0;
    position: relative;
    transition: 0.25s;
    cursor: pointer;
    box-sizing: border-box;
}

.card:hover {
    transform: translateY(-4px);
    border-color: #334155;
    box-shadow: 0 8px 32px rgba(56, 189, 248, 0.08);
}

/* Badge de oferta/status sobre o card */
.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(90deg, #dc2626, #f97316);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 5px;
    letter-spacing: 0.3px;
    z-index: 1;
}

.badge.novo { background: linear-gradient(90deg, var(--indigo), #8b5cf6); }
.badge.top  { background: linear-gradient(90deg, #f59e0b, #f97316); }

.card img {
    width: 100%;
    height: 130px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px;
}

.card h3 {
    margin-top: 10px;
    width: 100%;
    font-size: 12.5px;
    font-weight: 600;
    color: #e2e8f0;
    line-height: 1.4;
    height: 40px;
    min-height: 34px;
    display: -webkit-box;
    -webkit-line-clamp: 2;      /* limita a 2 linhas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: break-word;
}

/* Categoria do produto */
.card-cat {
    font-size: 11px;
    color: var(--indigo);
    font-weight: 600;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Descrição curta */
.card-desc {
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
    line-height: 1.3;
    min-height: 26px;
}

/* Área de preço (fixada no rodapé do card) */
.card-preco {
    margin-top: auto;
    padding-top: 15px;
}

.preco-antigo {
    font-size: 11px;
    color: var(--muted);
    text-decoration: line-through;
}

.preco-atual {
    font-size: 16px;
    font-weight: 700;
    color: var(--sky);
}

.preco-parcela {
    font-size: 11px;
    color: #64748b;
    margin-top: 1px;
}

/* Botão "Adicionar ao Carrinho" */
.card-btn {
    margin-top: 10px;
    padding: 9px;
    width: 100%;
    border: none;
    background: linear-gradient(90deg, var(--sky), green);
    color: #000;
    cursor: pointer;
    border-radius: 7px;
    font-weight: 700;
    font-size: 13px;
    transition: 0.2s;
    font-family: 'DM Sans', sans-serif;
}

.card-btn:hover {
    opacity: 0.85;
}


/* ================================================================
   BANNER INTERMEDIÁRIO (entre seções de produtos)
================================================================ */
.mid-banner {
    background: linear-gradient(90deg, #0c1a3a, #1a0c3a);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 32px;
    margin: 28px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

/* Efeito de brilho no canto */
.mid-banner::before {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
}

.mid-banner-text h3 {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    margin-bottom: 6px;
}

.mid-banner-text p {
    font-size: 14px;
    color: var(--muted);
}

.mid-banner-text .discount {
    color: #4ade80;
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
}

.mid-banner button {
    background: linear-gradient(90deg, var(--indigo), #8b5cf6);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.2s;
}

.mid-banner button:hover {
    opacity: 0.85;
    transform: scale(1.03);
}


/* ================================================================
   RODAPÉ
================================================================ */
.site-footer {
    background: #0a0f1a;
    border-top: 1px solid var(--border);
    padding: 56px 20px 0;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    max-width: 1600px;
    margin: 0 auto;
    padding-bottom: 40px;
}

/* Coluna do logo/sobre */
.footer-logo {
    font-family: 'Syne', sans-serif;
    font-size: 24px;
    color: var(--text);
    margin: 0 0 12px;
    background: linear-gradient(90deg, var(--sky), var(--indigo));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-desc {
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Ícones de redes sociais */
.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-links a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: #64748b;
    font-size: 17px;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.social-links a:hover {
    color: var(--sky);
    border-color: var(--sky);
    background: rgba(56, 189, 248, 0.07);
}

/* Colunas de links do rodapé */
.footer-col h4 {
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 16px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #64748b;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--sky);
}

/* Coluna de atendimento */
.footer-col p {
    color: #64748b;
    font-size: 13px;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.footer-col p i {
    color: var(--sky);
    font-size: 13px;
}

/* Ícones de formas de pagamento */
.payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.payment-icons span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 11px;
    color: #94a3b8;
    background: #0f172a;
}

.payment-icons i {
    color: var(--sky);
    font-size: 14px;
}

/* Linha de copyright */
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    text-align: center;
    max-width: 1600px;
    margin: 0 auto;
}

.footer-bottom p {
    color: #475569;
    font-size: 12px;
    margin: 4px 0;
}

.footer-bottom strong {
    color: #94a3b8;
}


/* ================================================================
   SEM RESULTADOS
================================================================ */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px;
    color: var(--muted);
    font-size: 15px;
}


/* ================================================================
   BOTÃO DE FAVORITAR (coração nos cards)
================================================================ */
.card {
    position: relative;
}

.fav-heart {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 1.2rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, color 0.2s, background 0.2s;
    z-index: 2;
    line-height: 1;
}

.fav-heart:hover {
    transform: scale(1.2);
    color: #ff4d6d;
    background: rgba(255, 77, 109, 0.15);
}

/* Estado ativo (produto favoritado) */
.fav-heart.ativo {
    color: #ff4d6d;
    background: rgba(255, 77, 109, 0.18);
    border-color: rgba(255, 77, 109, 0.4);
}

/* Animação de pulsação ao favoritar */
@keyframes pulsar {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.4); }
}

.fav-heart.pulsar {
    animation: pulsar 0.35s ease;
}


/* ================================================================
   BOTÃO DE FAVORITOS NO HEADER
================================================================ */
.fav-btn {
    position: relative;
}

.fav-btn .cart-icon {
    font-size: 1.3rem;
    color: #ff4d6d;
}

.fav-btn .cart-count {
    background: #ff4d6d;
}


/* ================================================================
   RESPONSIVIDADE
================================================================ */

/* Monitores muito grandes (2K / ultrawide) */
@media (min-width: 1920px) {
    :root { --sidebar-w: 260px; }

    .main-layout {
        padding: 32px 48px;
        gap: 32px;
    }

    .produtos-grid {
        grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
        gap: 20px;
    }

    .banner-secondary { padding: 0 48px 32px; }
    .marcas { padding: 40px 48px; }
}

/* Monitores grandes (1440px – 1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
    :root { --sidebar-w: 240px; }

    .main-layout {
        padding: 28px 36px;
        gap: 28px;
    }

    .produtos-grid {
        grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
        gap: 18px;
    }
}

/* Telas médias (tablets landscape) */
@media (max-width: 1100px) {
    :root { --sidebar-w: 180px; }
}

/* Telas menores (tablets portrait) */
@media (max-width: 900px) {
    .main-layout {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 16px;
    }

    .sidebar-left,
    .sidebar-right {
        position: static;
    }

    .banner-secondary {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .produtos-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

/* Telas pequenas (mobile) */
@media (max-width: 600px) {

    /* ── Bloqueia overflow horizontal na raiz ── */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
        width: 100%;
    }

    /* Garante que todo elemento filho respeite a largura da tela */
    *, *::before, *::after {
        max-width: 100vw;
        box-sizing: border-box;
    }

    /* Pseudo-elementos com posição absoluta não devem vazar */
    .slide::before,
    .slide::after {
        display: none;
    }

    /* ── Header ── */
    header {
        padding: 10px 14px;
        min-height: 60px;
        width: 100%;
        overflow: hidden;
    }

    header h1 {
        position: static;
        transform: none;
        font-size: 20px;
    }

    .menu-toggle {
        margin-right: 10px;
        margin-left: 0;
        font-size: 22px;
    }

    /* Search bar some no mobile (evita overflow por posição absoluta) */
    .search-wrap {
        display: none;
    }

    .header-right {
        gap: 8px;
    }

    .cart-btn {
        padding: 8px;
        margin-left: 0;
    }

    .auth-wrapper {
        margin-left: 0;
    }

    .login-btn {
        font-size: 12px;
        padding: 6px 10px;
    }

    /* ── Barra de anúncio ── */
    .barra-anuncio {
        font-size: 11px;
        padding: 7px 10px;
        line-height: 1.7;
        white-space: normal;
    }

    /* ── Banner slider ── */
    .banner-slider {
        width: 100%;
        overflow: hidden;
    }

    .slide {
        padding: 36px 16px 52px;
        width: 100%;
        overflow: hidden;
    }

    .banner-content h2 { font-size: 22px; }
    .banner-content p  { font-size: 13px; }

    /* ── Carrossel — scroll lateral sem vazar a página ── */
    .secao {
        width: 100%;
        overflow: visible;
    }

    .carousel-wrap {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        overflow-x: clip;
    }

    .carousel {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        max-width: 100%;
        width: 100%;
    }

    /* Cards do carrossel: largura menor com scroll funcionando */
    .carousel .card {
        scroll-snap-align: start;
        width: 150px;
        min-width: 150px;
        max-width: 150px;
        flex: 0 0 150px;
        min-height: 300px;
    }

    .carousel .card img { height: 95px; }

    /* ── Banner secundário ── */
    .banner-secondary {
        grid-template-columns: 1fr;
        padding: 0 14px 16px;
        gap: 10px;
        margin-top: 0;
        width: 100%;
    }

    .mini-banner {
        padding: 16px 18px;
        width: 100%;
        overflow: hidden;
    }

    /* ── Marcas ── */
    .marcas {
        padding: 20px 14px;
        width: 100%;
        overflow: hidden;
    }
    .marcas-grid { gap: 8px; }
    .marcas-grid span { font-size: 12px; padding: 6px 12px; }

    /* ── Layout principal ── */
    .main-layout {
        padding: 12px;
        gap: 12px;
        width: 100%;
        overflow: visible;
    }

    /* Reordena os filhos do grid em mobile:
       1. sidebar-left  (categorias / populares)
       2. sidebar-right (oferta relâmpago) ← sobe aqui
       3. main-content  (mais vendidos, grid de produtos) */
    .sidebar-left  { order: 1; }
    .sidebar-right { order: 2; }
    .main-content  { order: 3; }

    /* Sidebar direita: aparece como bloco full-width */
    .sidebar-right {
        display: block;
        width: 100%;
        position: static;
    }

    .sidebar-right .sidebar-box {
        width: 100%;
    }

    .flash-timer .time {
        font-size: 26px;
    }

    /* ── Categorias viram chips com scroll horizontal ── */
    .cat-list {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 6px;
        padding-bottom: 6px;
        scrollbar-width: none;
        max-width: 100%;
    }
    .cat-list::-webkit-scrollbar { display: none; }
    .cat-list li { flex-shrink: 0; }
    .cat-list li a {
        white-space: nowrap;
        padding: 5px 12px;
        border-radius: 999px;
        border: 1px solid var(--border);
        background: var(--bg3);
        font-size: 12px;
        justify-content: center;
    }
    .cat-list li a span.count { display: none; }

    /* ── Grid de produtos — 2 colunas ── */
    .produtos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        width: 100%;
    }

    /* Cards no grid: sem width fixo, ocupam a coluna inteira */
    .produtos-grid .card {
        width: 100%;
        max-width: 100%;
        flex: unset;
        flex-shrink: unset;
        min-height: unset;
        padding: 10px;
    }

    .produtos-grid .card img  { height: 90px; }
    .produtos-grid .card h3   { font-size: 11px; height: 32px; }
    .produtos-grid .preco-atual   { font-size: 13px; }
    .produtos-grid .preco-parcela { font-size: 10px; }
    .produtos-grid .card-btn  { font-size: 11px; padding: 7px; }

    /* ── Mid banner ── */
    .mid-banner {
        flex-direction: column;
        text-align: center;
        padding: 18px 14px;
        width: 100%;
        overflow: hidden;
    }

    /* ── Seção título ── */
    .secao-titulo { font-size: 15px; }

    /* ── Rodapé ── */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 0 24px;
    }
    .site-footer {
        padding: 28px 16px 0;
        width: 100%;
        overflow: hidden;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 14px 0;
    }
    .footer-bottom p { font-size: 11px; }

    /* ── Botões de navegação do carrossel (some em mobile) ── */
    .carousel-btn {
        display: none;
    }
}