body {
    background: #f8fafc;
    font-family: Arial, Helvetica, sans-serif;
    color: #1f2937;
}

.topo-loja {
    background: #10233f;
    color: #fff;
    padding: 18px 0;
}

.topo-loja-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    min-width: 0;
}

.logo-loja,
.img-responsiva {
    max-height: 74px;
    max-width: min(360px, 62vw);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.menu-loja {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 0 0 auto;
}

.loja-oficial {
    align-items: center;
    gap: 6px;
    color: #fff;
    font-weight: 700;
}

.atalho-carrinho {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    padding: 10px 14px;
}

.atalho-carrinho:hover {
    color: #fff;
    background: rgba(255,255,255,.14);
}

.carrinho-badge {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #f28c28;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
}

/* BANNER */
.hero {
    position: relative;
    background-color: #10233f;
    color: #fff;
    min-height: clamp(260px, 36vw, 460px);
    padding: clamp(50px, 8vw, 110px) 0;
    margin-bottom: 30px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.hero.com-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(16, 35, 63, .62);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-weight: 800;
    font-size: clamp(28px, 4vw, 46px);
}

.hero p {
    color: #dbeafe;
    font-size: clamp(16px, 2vw, 20px);
}

/* CATEGORIAS */
.categorias-wrap {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.categoria-link {
    display: inline-flex;
    align-items: center;
    padding: 9px 15px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #10233f;
    text-decoration: none;
    font-weight: 700;
    margin: 0 6px 10px 0;
    cursor: pointer;
}

button.categoria-link {
    appearance: none;
}

.categoria-link.active,
.categoria-link:hover {
    background: #f28c28;
    border-color: #f28c28;
    color: #fff;
}

/* CARD DA LOJA */
.produto-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
    transition: .2s;
    display: flex;
    flex-direction: column;
}

.produto-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .10);
}

.produto-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    background: #f1f5f9;
    display: block;
}

.produto-img-placeholder {
    min-height: 230px;
}

.produto-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.produto-categoria {
    color: #f28c28;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.produto-nome {
    font-size: 20px;
    font-weight: 800;
    color: #10233f;
    margin-bottom: 8px;
    line-height: 1.25;
}

.produto-desc {
    color: #64748b;
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 14px;
}

.preco-area {
    margin-top: auto;
    padding-top: 12px;
}

.preco {
    font-size: 22px;
    font-weight: 800;
    color: #10233f;
}

.preco-antigo {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 14px;
}

.estoque {
    font-size: 13px;
    color: #64748b;
    margin-top: 6px;
}

/* BOTÕES */
.btn-comprar,
.btn-ver-produto {
    background: #f28c28;
    color: #fff;
    padding: 13px;
    border: none;
    border-radius: 12px;
    width: 100%;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    display: block;
    margin-top: 14px;
    line-height: 1.2;
}

.btn-comprar:hover,
.btn-ver-produto:hover {
    background: #d87312;
    color: #fff;
}

.btn-comprar:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

/* DETALHE DO PRODUTO */
.produto-box {
    background: #fff;
    padding: clamp(20px, 3vw, 28px);
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
}

.produto-img-detalhe {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 620px;
    object-fit: contain;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    background: #f1f5f9;
    display: block;
}

.variacao-btn {
    border: 1px solid #cbd5e1;
    background: #fff;
    padding: 9px 14px;
    border-radius: 10px;
    cursor: pointer;
    margin: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    min-width: 48px;
}

.variacao-btn.active {
    background: #f28c28;
    color: #fff;
    border-color: #f28c28;
}

.vazio {
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    padding: 40px;
    text-align: center;
    color: #64748b;
}

/* CARRINHO */
.carrinho-box {
    overflow: hidden;
}

.carrinho-titulo {
    color: #10233f;
    font-weight: 900;
    margin-bottom: 24px;
}

.carrinho-lista {
    width: 100%;
}

.carrinho-cabecalho,
.carrinho-item {
    display: grid;
    grid-template-columns: 2.2fr 1fr .8fr .6fr .8fr 52px;
    gap: 14px;
    align-items: center;
}

.carrinho-cabecalho {
    font-weight: 800;
    color: #0f172a;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 8px 12px;
}

.carrinho-item {
    padding: 14px 8px;
    border-bottom: 1px solid #e5e7eb;
}

.carrinho-produto {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.carrinho-produto img,
.carrinho-img-placeholder {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    flex: 0 0 auto;
}

.carrinho-img-placeholder {
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.carrinho-produto strong {
    display: block;
    color: #0f172a;
}

.carrinho-produto small {
    display: block;
    color: #64748b;
}

.carrinho-qtd input {
    max-width: 110px;
}

.carrinho-subtotal {
    font-weight: 900;
    color: #0f172a;
}

.carrinho-remover {
    text-align: right;
}

.carrinho-resumo {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    margin-top: 26px;
    flex-wrap: wrap;
}

.carrinho-total {
    font-size: 30px;
    font-weight: 900;
    color: #10233f;
}

.btn-finalizar {
    width: auto;
    min-width: 240px;
    margin-top: 0;
}

/* RODAPÉ */
.rodape-loja {
    background: #0b1220;
    color: #fff;
    padding: 24px 0;
    margin-top: 50px;
}

.rodape-loja-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.rodape-loja span,
.desenvolvedor {
    color: #cbd5e1;
    font-size: 14px;
}

.desenvolvedor a {
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.desenvolvedor a:hover {
    color: #f28c28;
}

.whatsapp-flutuante {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0,0,0,.25);
    z-index: 999;
}

.whatsapp-flutuante:hover {
    color: #fff;
    transform: translateY(-2px);
}

/* MOBILE */
@media (max-width: 768px) {
    .topo-loja-inner {
        gap: 10px;
    }

    .logo-loja,
    .img-responsiva {
        max-width: 180px;
        max-height: 54px;
    }

    .atalho-carrinho {
        padding: 9px 11px;
    }

    .produto-body {
        padding: 16px;
    }

    .produto-nome {
        font-size: 18px;
    }

    .produto-img {
        aspect-ratio: 1 / 1;
    }

    .hero {
        min-height: 230px;
        text-align: center;
    }

    .carrinho-cabecalho {
        display: none !important;
    }

    .carrinho-item {
        display: grid;
        grid-template-columns: 1fr 1fr 56px;
        gap: 10px 12px;
        align-items: center;
        padding: 16px 0;
    }

    .carrinho-produto {
        grid-column: 1 / 2;
        align-items: flex-start;
    }

    .carrinho-produto img,
    .carrinho-img-placeholder {
        width: 58px;
        height: 58px;
    }

    .carrinho-variacao {
        grid-column: 2 / 3;
    }

    .carrinho-preco {
        grid-column: 3 / 4;
        text-align: right;
    }

    .carrinho-qtd {
        grid-column: 1 / 2;
    }

    .carrinho-qtd input {
        max-width: 100%;
    }

    .carrinho-subtotal {
        grid-column: 2 / 3;
    }

    .carrinho-remover {
        grid-column: 3 / 4;
    }

    .carrinho-info::before,
    .carrinho-qtd::before,
    .carrinho-subtotal::before {
        content: attr(data-label);
        display: block;
        font-size: 11px;
        color: #64748b;
        font-weight: 800;
        text-transform: uppercase;
        margin-bottom: 4px;
    }

    .carrinho-resumo {
        justify-content: stretch;
    }

    .carrinho-resumo > div,
    .btn-finalizar {
        width: 100%;
    }

    .rodape-loja-inner {
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .logo-loja,
    .img-responsiva {
        max-width: 150px;
    }

    .carrinho-item {
        grid-template-columns: 1fr 1fr 44px;
    }
}
