:root {
    --bg: #f6f8fb;
    --surface: #ffffff;
    --text: #18202a;
    --muted: #667085;
    --line: #e7ecf3;

    --primary: #1f6feb;
    --primary-dark: #174ea6;
    --accent: #ff7a00;
    --success: #22c55e;

    --shadow: 0 14px 40px rgba(15, 23, 42, 0.10);
    --radius: 20px;
    --radius-sm: 14px;
    --container: 1280px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.page-shell {
    padding: 28px 0 0;
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.header-top {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}

.header-top-inner {
    min-height: 96px;
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(320px, 1fr) auto;
    align-items: center;
    gap: 22px;
    padding: 16px 0;
}

.brand-area {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-logo-wrap {
    flex-shrink: 0;
}

.brand-logo,
.brand-logo-fallback {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    object-fit: cover;
    
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.28);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.08),
        0 14px 28px rgba(0,0,0,0.22);
}

.brand-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.brand-mini {
    display: block;
    font-size: 12px;
    opacity: 0.86;
    letter-spacing: 0.02em;
    font-weight: 700;
}

.brand-name {
    display: block;
    font-size: 18px;
    line-height: 1.08;
    font-weight: 900;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-subtitle {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.88);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-search {
    display: flex;
    align-items: center;
    width: 100%;
    background: #fff;
    border-radius: 999px;
    overflow: hidden;
    min-height: 56px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.header-search input {
    flex: 1;
    min-width: 0;
    border: none;
    padding: 0 20px;
    font-size: 15px;
    outline: none;
    background: transparent;
    color: #111;
}

.header-search button {
    border: none;
    background: var(--accent);
    color: #fff;
    font-weight: 900;
    padding: 0 24px;
    height: 56px;
    cursor: pointer;
    transition: transform .22s ease, filter .22s ease, box-shadow .22s ease;
}

.header-search button:hover {
    filter: brightness(1.06);
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.header-link,
.header-cart-btn,
.header-whatsapp-btn {
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease, filter .22s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.header-link:hover,
.header-cart-btn:hover,
.header-whatsapp-btn:hover {
    transform: translateY(-2px);
}

.header-link {
    color: #fff;
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(8px);
}

.header-link:hover {
    background: rgba(255,255,255,0.16);
}

.header-cart-btn {
    background: #fff;
    color: var(--primary-dark);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.header-cart-btn:hover {
    filter: brightness(1.02);
}

.header-whatsapp-btn {
    background: #22c55e;
    color: #fff;
    box-shadow: 0 10px 22px rgba(34, 197, 94, 0.24);
}

.header-whatsapp-btn:hover {
    filter: brightness(1.04);
}

.header-cart-icon,
.header-whatsapp-icon {
    font-size: 15px;
    line-height: 1;
}

.header-bottom {
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.02);
}

.header-bottom-inner {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.header-nav a {
    font-size: 14px;
    color: #344054;
    font-weight: 800;
    position: relative;
}

.header-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width .22s ease;
}

.header-nav a:hover::after {
    width: 100%;
}

.header-highlight {
    font-size: 13px;
    color: var(--muted);
    font-weight: 800;
    white-space: nowrap;
}

@media (max-width: 1180px) {
    .header-top-inner {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .header-actions {
        justify-content: flex-start;
    }

    .brand-name,
    .brand-subtitle,
    .header-highlight {
        white-space: normal;
    }
}

@media (max-width: 768px) {
    .header-search {
        min-height: 52px;
    }

    .header-search button {
        height: 52px;
        padding: 0 18px;
    }

    .brand-logo,
    .brand-logo-fallback {
        width: 60px;
        height: 60px;
        border-radius: 18px;
    }

    .brand-name {
        font-size: 17px;
    }

    .header-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 0;
    }
}

/* FOOTER */

.site-footer {
    margin-top: 60px;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.05), transparent 25%),
        linear-gradient(180deg, #0f172a, #09111f);
    color: #e5e7eb;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    padding: 46px 0 30px;
}

.footer-col h3,
.footer-col h4 {
    margin-top: 0;
    margin-bottom: 14px;
    color: #fff;
}

.footer-col p,
.footer-col a {
    color: #cbd5e1;
    line-height: 1.7;
    font-size: 14px;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom-inner {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #94a3b8;
}

/* BASE VISUAL */

.section-card,
.relacionado-card,
.checkout-formulario,
.checkout-resumo,
.carrinho-box,
.produto-detalhe,
.loja-hero-box,
.produto-info-box,
.produto-gallery-box {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.page-title {
    font-size: 36px;
    margin: 0 0 10px;
    line-height: 1.1;
}

.page-subtitle {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

/* BOTÕES GERAIS */

.btn-principal,
.btn-secundario,
.btn-ver-produto {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition:
        transform .22s ease,
        box-shadow .22s ease,
        filter .22s ease,
        background .22s ease,
        color .22s ease,
        border-color .22s ease;
}

.btn-principal {
    min-height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), #ff9a3c);
    color: #fff;
    box-shadow: 0 14px 26px rgba(255, 122, 0, 0.18);
}

.btn-principal:hover {
    transform: translateY(-2px);
}

.btn-secundario {
    min-height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    font-weight: 800;
    background: rgba(255,255,255,0.9);
    color: var(--primary-dark);
    border: 1px solid var(--line);
}

.btn-secundario:hover {
    transform: translateY(-2px);
}

/* BOTÃO ESPECÍFICO DOS CARDS */

.btn-ver-produto {
    min-height: 38px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.01em;
    background: rgba(255,255,255,0.96);
    color: var(--primary-dark);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.btn-ver-produto:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.16);
}

/* PRODUTOS - APENAS BASE */

.produtos-grid {
    display: grid;
}

.produto-card {
    background: var(--surface);
}

.produto-thumb {
    overflow: hidden;
}

.produto-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.produto-content h3 {
    margin: 0;
}

.produto-content p {
    margin: 0;
    color: var(--muted);
}

.produto-preco {
    font-weight: 800;
    color: var(--primary-dark);
}

/* WHATSAPP FLOAT */

.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 999;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #22c55e;
    color: #fff;
    border-radius: 999px;
    padding: 14px 18px;
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.35);
    font-weight: 800;
}

/* RESPONSIVO */

@media (max-width: 1180px) {
    .header-top-inner {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 30px;
    }

    .brand-name {
        white-space: normal;
    }
}

/* BOTÃO PADRÃO DOS CARDS DE PRODUTO */

.btn-ver-produto {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
    transition:
        transform .22s ease,
        box-shadow .22s ease,
        filter .22s ease,
        background .22s ease,
        color .22s ease;
}

.btn-ver-produto:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.18);
}

.btn-ver-produto:active {
    transform: translateY(0);
}

/* BOTÕES DE COMPRA */

.btn-carrinho,
.btn-ir-carrinho {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 0 16px;

    border-radius: 12px;

    font-size: 13px;
    font-weight: 800;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    color: #ffffff;

    border: none;

    cursor: pointer;

    box-shadow:
        0 10px 18px rgba(15, 23, 42, 0.14);

    transition:
        transform .18s ease,
        filter .18s ease,
        box-shadow .18s ease;

}

/* HOVER */

.btn-carrinho:hover,
.btn-ir-carrinho:hover {

    transform: translateY(-2px);

    filter: brightness(1.08);

    box-shadow:
        0 14px 24px rgba(15, 23, 42, 0.18);

}

/* CLIQUE */

.btn-carrinho:active,
.btn-ir-carrinho:active {

    transform: translateY(0);

}

/* BOTÃO COMPRAR AGORA */

.btn-comprar {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 0 18px;

    border-radius: 14px;

    font-size: 14px;
    font-weight: 900;

    background:
        linear-gradient(
            135deg,
            var(--accent),
            #ff9a3c
        );

    color: #ffffff;

    border: none;

    cursor: pointer;

    box-shadow:
        0 14px 28px rgba(255, 122, 0, 0.28);

    transition:
        transform .18s ease,
        filter .18s ease,
        box-shadow .18s ease;

}

/* HOVER COMPRAR */

.btn-comprar:hover {

    transform: translateY(-2px);

    filter: brightness(1.10);

    box-shadow:
        0 18px 32px rgba(255, 122, 0, 0.34);

}

/* CLIQUE */

.btn-comprar:active {

    transform: translateY(0);

}