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

:root {
    --azul-escuro: #03426b;
    --azul-medio: #065a91;
    --azul-claro: #e8f4fd;
    --verde: #25d366;
    --verde-escuro: #128c7e;
    --cinza-bg: #f5f7fa;
    --cinza-borda: #e0e4e8;
    --cinza-texto: #6c757d;
    --branco: #ffffff;
    --preto: #1a1a2e;
    --sombra: 0 2px 12px rgba(0,0,0,0.08);
    --sombra-hover: 0 6px 24px rgba(0,0,0,0.12);
    --radius: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background: var(--cinza-bg);
    color: #333;
    font-size: 15px;
    line-height: 1.6;
}

a { color: var(--azul-escuro); text-decoration: none; }
a:hover { color: var(--azul-medio); }
img { max-width: 100%; height: auto; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.header {
    background: var(--azul-escuro);
    color: var(--branco);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 20px;
}

.logo a {
    color: var(--branco);
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo a:hover { color: var(--branco); opacity: 0.9; }

.logo i { font-size: 26px; }

/* Search bar */
.search-bar {
    flex: 1;
    max-width: 500px;
}

.search-bar form {
    display: flex;
    background: var(--branco);
    border-radius: 50px;
    overflow: hidden;
}

.search-bar input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #333;
    outline: none;
}

.search-bar button {
    padding: 12px 20px;
    background: var(--verde);
    border: none;
    color: var(--branco);
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

.search-bar button:hover { background: var(--verde-escuro); }

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-actions a {
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.header-actions a:hover { color: var(--branco); }

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--branco);
    font-size: 24px;
    cursor: pointer;
}

/* Nav bar */
.nav-bar {
    background: rgba(255,255,255,0.1);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.nav-bar ul {
    list-style: none;
    display: flex;
    gap: 0;
    overflow-x: auto;
}

.nav-bar ul li a {
    display: block;
    padding: 12px 18px;
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-bar ul li a:hover,
.nav-bar ul li a.active {
    background: rgba(255,255,255,0.15);
    color: var(--branco);
}

/* ===== HERO BANNER ===== */
.hero {
    background: linear-gradient(135deg, var(--azul-escuro) 0%, var(--azul-medio) 100%);
    color: var(--branco);
    padding: 60px 0;
    text-align: center;
}

.hero h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.hero p {
    font-size: 16px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 25px;
}

.hero .btn {
    font-size: 16px;
    padding: 14px 32px;
}

/* ===== SEÇÕES ===== */
.section {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 35px;
}

.section-title h2 {
    font-size: 24px;
    color: var(--azul-escuro);
    margin-bottom: 8px;
}

.section-title p {
    color: var(--cinza-texto);
    font-size: 14px;
}

/* ===== GRID DE MARCAS ===== */
.marcas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.marca-card {
    background: var(--branco);
    border-radius: var(--radius);
    box-shadow: var(--sombra);
    text-align: center;
    padding: 25px 15px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.marca-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sombra-hover);
}

.marca-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
}

.marca-card .marca-placeholder {
    width: 80px;
    height: 80px;
    background: var(--azul-claro);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--azul-escuro);
    font-weight: 700;
}

.marca-card h3 {
    font-size: 14px;
    color: var(--preto);
}

.marca-card span {
    font-size: 12px;
    color: var(--cinza-texto);
}

/* ===== GRID DE PRODUTOS ===== */
.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 22px;
}

.produto-card {
    background: var(--branco);
    border-radius: var(--radius);
    box-shadow: var(--sombra);
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.produto-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sombra-hover);
}

.produto-card .produto-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: var(--cinza-bg);
}

.produto-card .produto-img-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: var(--azul-claro);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--azul-escuro);
}

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

.produto-card .produto-marca {
    font-size: 11px;
    color: var(--cinza-texto);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.produto-card .produto-titulo {
    font-size: 14px;
    font-weight: 600;
    color: var(--preto);
    margin-bottom: 10px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.produto-card .produto-preco {
    font-size: 20px;
    font-weight: 700;
    color: var(--azul-escuro);
    margin-bottom: 12px;
}

.produto-card .produto-preco small {
    font-size: 13px;
    font-weight: 400;
    color: var(--cinza-texto);
}

/* ===== PÁGINA DO PRODUTO ===== */
.produto-detalhe {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px 0;
}

.produto-galeria {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.produto-galeria .img-principal {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius);
    background: var(--branco);
    box-shadow: var(--sombra);
}

.produto-galeria .img-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.produto-galeria .img-thumbs img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.produto-galeria .img-thumbs img:hover,
.produto-galeria .img-thumbs img.active {
    border-color: var(--azul-escuro);
}

.produto-info-detalhe h1 {
    font-size: 24px;
    color: var(--preto);
    margin-bottom: 15px;
    line-height: 1.3;
}

.produto-info-detalhe .meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--cinza-texto);
}

.produto-info-detalhe .meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.produto-info-detalhe .preco-box {
    background: var(--azul-claro);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 25px;
}

.produto-info-detalhe .preco-box .preco-valor {
    font-size: 32px;
    font-weight: 700;
    color: var(--azul-escuro);
}

.produto-info-detalhe .preco-box small {
    display: block;
    color: var(--cinza-texto);
    font-size: 13px;
    margin-top: 4px;
}

.produto-info-detalhe .btn-whatsapp {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.produto-info-detalhe .descricao {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--cinza-borda);
}

.produto-info-detalhe .descricao h3 {
    font-size: 16px;
    color: var(--azul-escuro);
    margin-bottom: 12px;
}

.produto-info-detalhe .descricao p {
    color: #555;
    line-height: 1.8;
    white-space: pre-line;
}

/* ===== CATÁLOGO COM SIDEBAR ===== */
.catalogo-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    padding: 30px 0;
}

.catalogo-sidebar {
    background: var(--branco);
    border-radius: var(--radius);
    box-shadow: var(--sombra);
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 130px;
}

.catalogo-sidebar h3 {
    font-size: 15px;
    color: var(--azul-escuro);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--azul-claro);
}

.catalogo-sidebar ul {
    list-style: none;
}

.catalogo-sidebar ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: #555;
    transition: all 0.2s;
}

.catalogo-sidebar ul li a:hover,
.catalogo-sidebar ul li a.active {
    background: var(--azul-claro);
    color: var(--azul-escuro);
    font-weight: 500;
}

.catalogo-sidebar ul li a .count {
    background: var(--cinza-bg);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    color: var(--cinza-texto);
}

.catalogo-main .toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--branco);
    padding: 12px 18px;
    border-radius: var(--radius);
    box-shadow: var(--sombra);
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 10px;
}

.catalogo-main .toolbar .resultado-info {
    font-size: 13px;
    color: var(--cinza-texto);
}

.catalogo-main .toolbar select {
    padding: 8px 12px;
    border: 1px solid var(--cinza-borda);
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    cursor: pointer;
    outline: none;
}

/* ===== BADGES DE CONFIANÇA ===== */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 40px 0;
}

.trust-badge {
    text-align: center;
    padding: 25px 15px;
}

.trust-badge i {
    font-size: 36px;
    color: var(--azul-escuro);
    margin-bottom: 12px;
}

.trust-badge h4 {
    font-size: 14px;
    color: var(--preto);
    margin-bottom: 5px;
}

.trust-badge p {
    font-size: 12px;
    color: var(--cinza-texto);
}

/* ===== BOTÕES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: var(--azul-escuro);
    color: var(--branco);
}
.btn-primary:hover {
    background: var(--azul-medio);
    color: var(--branco);
}

.btn-whatsapp {
    background: var(--verde);
    color: var(--branco);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
    background: var(--verde-escuro);
    color: var(--branco);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-outline-white {
    background: transparent;
    border: 2px solid var(--branco);
    color: var(--branco);
}
.btn-outline-white:hover {
    background: var(--branco);
    color: var(--azul-escuro);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* ===== PAGINAÇÃO ===== */
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 30px;
    list-style: none;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 50px;
    border: 1px solid var(--cinza-borda);
    color: var(--cinza-texto);
    font-size: 14px;
    transition: all 0.2s;
    background: var(--branco);
}

.pagination a:hover,
.pagination .active {
    background: var(--azul-escuro);
    color: var(--branco);
    border-color: var(--azul-escuro);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--azul-escuro);
    color: var(--branco);
    padding: 50px 0 0;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 35px;
    padding-bottom: 40px;
}

.footer h4 {
    font-size: 16px;
    margin-bottom: 18px;
    font-weight: 600;
}

.footer p, .footer a {
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    line-height: 1.8;
}

.footer a:hover { color: var(--branco); }

.footer ul {
    list-style: none;
}

.footer ul li a {
    display: block;
    padding: 4px 0;
    font-size: 13px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: var(--verde);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--branco);
    font-size: 28px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: var(--branco);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

/* ===== DOWNLOAD PAGE ===== */
.download-box {
    max-width: 500px;
    margin: 60px auto;
    background: var(--branco);
    border-radius: var(--radius);
    box-shadow: var(--sombra);
    padding: 40px;
    text-align: center;
}

.download-box i {
    font-size: 48px;
    margin-bottom: 15px;
}

.download-box h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.download-box p {
    color: var(--cinza-texto);
    margin-bottom: 25px;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    padding: 15px 0;
    font-size: 13px;
    color: var(--cinza-texto);
}

.breadcrumb a { color: var(--azul-escuro); }
.breadcrumb span { margin: 0 6px; }

/* ===== EMPTY ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--cinza-texto);
}

.empty-state i { font-size: 48px; margin-bottom: 15px; display: block; }

/* ===== AUTH (LOGIN/REGISTRO) ===== */
.auth-box {
    max-width: 450px;
    margin: 50px auto;
    background: var(--branco);
    border-radius: var(--radius);
    box-shadow: var(--sombra);
    padding: 40px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header i {
    font-size: 48px;
    color: var(--azul-escuro);
    margin-bottom: 10px;
}

.auth-header h2 {
    font-size: 22px;
    color: var(--preto);
    margin-bottom: 6px;
}

.auth-header p {
    color: var(--cinza-texto);
    font-size: 14px;
}

.auth-field {
    margin-bottom: 18px;
}

.auth-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 13px;
    color: #333;
}

.auth-field input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--cinza-borda);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: border-color 0.2s;
}

.auth-field input:focus {
    outline: none;
    border-color: var(--azul-escuro);
    box-shadow: 0 0 0 3px rgba(3, 66, 107, 0.1);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--cinza-borda);
    font-size: 14px;
}

.auth-footer a {
    font-weight: 600;
    color: var(--azul-escuro);
}

/* ===== CONTA (MEUS DOWNLOADS) ===== */
.conta-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    padding: 30px 0;
}

.conta-sidebar {
    background: var(--branco);
    border-radius: var(--radius);
    box-shadow: var(--sombra);
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 130px;
}

.conta-user {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--cinza-borda);
}

.conta-avatar i {
    font-size: 48px;
    color: var(--azul-escuro);
}

.conta-user h3 {
    font-size: 15px;
    margin-top: 8px;
    color: var(--preto);
}

.conta-sidebar ul {
    list-style: none;
}

.conta-sidebar ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    color: #555;
    transition: all 0.2s;
}

.conta-sidebar ul li a:hover,
.conta-sidebar ul li a.active {
    background: var(--azul-claro);
    color: var(--azul-escuro);
    font-weight: 500;
}

.conta-content h2 {
    font-size: 20px;
    color: var(--azul-escuro);
    margin-bottom: 25px;
}

/* Pedido card na área do cliente */
.pedidos-lista {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pedido-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--branco);
    border-radius: var(--radius);
    box-shadow: var(--sombra);
    padding: 20px;
    transition: box-shadow 0.2s;
}

.pedido-card:hover {
    box-shadow: var(--sombra-hover);
}

.pedido-img {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.pedido-img img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.pedido-img-placeholder {
    width: 80px;
    height: 80px;
    background: var(--azul-claro);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--azul-escuro);
}

.pedido-info {
    flex: 1;
}

.pedido-info h3 {
    font-size: 15px;
    color: var(--preto);
    margin-bottom: 6px;
}

.pedido-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--cinza-texto);
    flex-wrap: wrap;
}

.pedido-valor {
    font-weight: 600;
    color: var(--azul-escuro);
}

.pedido-status {
    text-align: center;
    flex-shrink: 0;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-aprovado {
    background: #d4edda;
    color: #155724;
}

.status-pendente {
    background: #fff3cd;
    color: #856404;
}

.status-recusado {
    background: #f8d7da;
    color: #721c24;
}

.status-reembolsado {
    background: #e2e3e5;
    color: #383d41;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
    .header-top { flex-wrap: wrap; }

    .search-bar {
        order: 3;
        max-width: 100%;
        width: 100%;
    }

    .menu-toggle { display: block; }

    .nav-bar { display: none; }
    .nav-bar.open { display: block; }
    .nav-bar ul { flex-direction: column; }

    .hero h1 { font-size: 24px; }
    .hero { padding: 40px 0; }

    .catalogo-layout {
        grid-template-columns: 1fr;
    }

    .catalogo-sidebar {
        position: static;
    }

    .produto-detalhe {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 25px 0;
    }

    .produto-info-detalhe .preco-box .preco-valor {
        font-size: 26px;
    }

    .produtos-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }

    .marcas-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .conta-layout {
        grid-template-columns: 1fr;
    }

    .conta-sidebar {
        position: static;
    }

    .pedido-card {
        flex-direction: column;
        text-align: center;
    }

    .pedido-meta {
        justify-content: center;
    }

    .auth-box {
        margin: 25px 15px;
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .produtos-grid {
        grid-template-columns: 1fr 1fr;
    }

    .produto-card .produto-info { padding: 12px; }
    .produto-card .produto-preco { font-size: 17px; }

    .trust-badges { grid-template-columns: 1fr 1fr; }
}
