/* ==========================================================================
   brand.css - Identidade visual oficial Toca do Chefe Distribuidora
   Logo e mascote oficiais em assets/img/brand/ (fundo transparente).
   Paleta: vermelho #E31E24, preto e branco.
   ========================================================================== */

:root {
    --brand-red: #E31E24;
    --brand-red-bright: #FF4D4F;
    --brand-red-dark: #A50E13;
    --brand-black: #0a0a0a;
    --brand-white: #FFFFFF;
}

/* Logo no cabeçalho: imagem transparente, sem distorção */
.brand-logo-img {
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 14px rgba(227, 30, 36, 0.28)) !important;
}

/* ---------- Hero com mascote (página inicial) ---------- */
.brand-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
    position: relative;
    overflow: hidden;
    padding-bottom: 0 !important;
}

.brand-hero-text {
    align-self: center;
    padding-bottom: 18px;
    position: relative;
    z-index: 1;
}

.brand-hero-sub {
    margin-top: 10px;
    max-width: 520px;
    font-size: 14px;
    line-height: 1.5;
    color: #d4d4d4;
}

.brand-hero-mascot {
    position: relative;
    width: clamp(130px, 24vw, 250px);
    align-self: end;
}

.brand-hero-mascot::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 6%;
    width: 92%;
    aspect-ratio: 1;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(227, 30, 36, 0.45) 0%, rgba(227, 30, 36, 0.12) 55%, transparent 72%);
    z-index: 0;
}

.brand-hero-mascot img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.55));
}

/* ---------- Mascote no carrinho vazio ---------- */
.brand-mascot-empty {
    display: block;
    width: 140px;
    height: auto;
    margin: 0 auto 14px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

/* ---------- Boas-vindas com mascote (Minha Conta) ---------- */
.brand-welcome-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 16px 0;
    margin-bottom: 16px;
    border: 1px solid rgba(227, 30, 36, 0.28);
    border-radius: 16px;
    background: linear-gradient(135deg, #181818 0%, #2a0b0d 100%);
    overflow: hidden;
}

.brand-welcome-card img {
    width: 110px;
    height: auto;
    flex-shrink: 0;
    align-self: flex-end;
    display: block;
}

.brand-welcome-card .brand-welcome-text {
    padding-bottom: 16px;
}

.brand-welcome-card h2 {
    font-size: 17px;
    font-weight: 800;
    color: var(--brand-white);
    margin-bottom: 4px;
}

.brand-welcome-card p {
    font-size: 13px;
    line-height: 1.45;
    color: #c4c4c4;
}

.brand-header-logo {
    height: 34px;
    width: auto;
    object-fit: contain;
    display: block;
}

@media (max-width: 767px) {
    .brand-hero {
        gap: 4px;
    }

    .brand-hero-sub {
        font-size: 13px;
    }

    .brand-hero-mascot {
        width: 128px;
        margin-right: -8px;
    }
}

@media (max-width: 380px) {
    .brand-hero-mascot {
        width: 104px;
    }
}

/* Botão "+" de adicionar ao pedido: sinal maior e centralizado */
.btn-add-circle {
    font-size: 22px;
    line-height: 1;
}

/* Desconto por quantidade no card do produto */
.grid-price-tiers {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 0;
    padding: 0;
}

.grid-price-tiers li {
    font-size: 11.5px;
    line-height: 1.3;
    color: #f5f5f5;
    background: rgba(227, 30, 36, 0.14);
    border: 1px solid rgba(227, 30, 36, 0.35);
    border-radius: 999px;
    padding: 3px 9px;
}

.grid-price-tiers strong {
    color: var(--brand-red-bright);
    font-weight: 800;
}

/* Busca: enquanto há texto, mostra só o catálogo filtrado */
body.is-searching .banner-section,
body.is-searching #categoriasSec,
body.is-searching #ofertasSec,
body.is-searching #maisVendidosSec,
body.is-searching #destaqueSec {
    display: none !important;
}

.search-empty-state {
    display: none;
    margin-top: 8px;
    padding: 22px 18px;
    text-align: center;
    font-size: 14px;
    color: #d4d4d4;
    border: 1px dashed rgba(227, 30, 36, 0.4);
    border-radius: 16px;
    background: rgba(227, 30, 36, 0.06);
}

/* Ícones SVG da marca no cabeçalho e no menu inferior (substituem emojis coloridos) */
.btn-header-action svg,
.nav-item-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    display: block;
}

.btn-header-action {
    color: #FFFFFF;
}

.nav-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Carrinho: aviso de faixa de desconto aplicada */
.cart-tier-applied {
    display: inline-block;
    margin-top: 3px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.2px;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.12);
    border-radius: 999px;
    padding: 2px 8px;
}

/* Botão de comprovante no WhatsApp mantém o verde oficial (home.css força vermelho nos botões principais) */
.btn-primary-action.btn-whatsapp-action {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    color: #FFFFFF !important;
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.28) !important;
}

/* Produto sem estoque: visível, mas sem compra */
.is-sold-out img {
    filter: grayscale(0.85) brightness(0.7);
}

.offer-badge-tag.badge-sold-out {
    background: #3a3a3a !important;
    color: #FFFFFF !important;
}

.btn-add-circle.btn-sold-out,
.btn-add-circle.btn-sold-out:hover {
    background: #2a2a2a !important;
    color: #8a8a8a !important;
    box-shadow: none !important;
    cursor: not-allowed;
}

/* Pedido mínimo / frete grátis no carrinho */
.cart-delivery-hint { margin: 8px 0 4px; padding: 8px 12px; border-radius: 10px; font-size: 12.5px; font-weight: 600; color: #fbbf24; background: rgba(245, 158, 11, .1); border: 1px solid rgba(245, 158, 11, .35); }
.cart-delivery-hint[hidden] { display: none; }
