/* ============================================
   Rapidlink - CSS Principal
   ============================================ */

/* Reset e base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cinza-aco: #64748b;
    --texto: #1f2a38;
    --texto-suave: #54657a;
    --fundo: #ffffff;
    --fundo-suave: #f4f7fb;
    --borda: #e0e6ee;
    --sombra: 0 2px 8px rgba(0,0,0,0.08);
    --sombra-media: 0 4px 16px rgba(0,0,0,0.12);
    /* --azul-primario, --azul-escuro, --azul-claro e os aliases --verde-*
       já são definidos dinamicamente pelo :root inline em templates/header.php
       com base nas cores gravadas no admin (theme_primary_color / theme_dark_color) */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Roboto, -apple-system, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--texto);
    background: var(--fundo);
}

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

a {
    color: var(--azul-primario);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--azul-escuro);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--texto);
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: #fff;
    box-shadow: var(--sombra);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.5rem;
    color: var(--azul-primario);
    font-weight: 800;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.main-nav ul a {
    color: var(--texto);
    font-weight: 500;
}

.main-nav ul a:hover {
    color: var(--azul-primario);
}

.nav-auth {
    display: flex;
    gap: 0.5rem;
}

/* ============================================
   BOTÕES
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border: 2px solid transparent;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.btn-primary {
    background: var(--azul-primario);
    color: white;
}

.btn-primary:hover {
    background: var(--azul-escuro);
    color: white;
    transform: translateY(-1px);
}

.btn-outline {
    border-color: var(--azul-primario);
    color: var(--azul-primario);
    background: transparent;
}

.btn-outline:hover {
    background: var(--azul-primario);
    color: white;
}

.btn-large {
    padding: 0.9rem 2rem;
    font-size: 1.05rem;
}

/* ============================================
   HERO (topo da página)
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--azul-primario) 0%, var(--azul-escuro) 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero .btn-primary {
    background: var(--amarelo);
    color: var(--texto);
}

.hero .btn-primary:hover {
    background: #f57f17;
}

.hero .btn-outline {
    border-color: white;
    color: white;
}

.hero .btn-outline:hover {
    background: white;
    color: var(--azul-primario);
}

/* ============================================
   SECÇÕES
   ============================================ */
.section {
    padding: 4rem 0;
}

.section-alt {
    background: var(--fundo-suave);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--texto-suave);
    font-size: 1.1rem;
}

/* ============================================
   GRELHAS
   ============================================ */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--sombra);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--azul-primario);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.card h3 {
    color: var(--azul-primario);
    margin-bottom: 0.5rem;
}

/* Card de artigo */
.article-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--sombra);
    transition: transform 0.2s;
}

.article-card:hover {
    transform: translateY(-4px);
}

.article-card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--azul-claro), var(--azul-primario));
    background-size: cover;
    background-position: center;
}

.article-card-body {
    padding: 1.5rem;
}

.article-card-meta {
    font-size: 0.85rem;
    color: var(--texto-suave);
    margin-bottom: 0.5rem;
}

.article-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.article-card h3 a {
    color: var(--texto);
}

.article-card h3 a:hover {
    color: var(--azul-primario);
}

/* ============================================
   CTA (Call to Action)
   ============================================ */
.cta {
    background: var(--azul-primario);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta h2 {
    color: white;
}

.cta p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta .btn-primary {
    background: var(--amarelo);
    color: var(--texto);
}

/* ============================================
   ESTATÍSTICAS
   ============================================ */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--azul-primario);
    display: block;
}

.stat-label {
    color: var(--texto-suave);
    font-weight: 500;
}

/* ============================================
   FORMULÁRIOS
   ============================================ */
.form-box {
    max-width: 450px;
    margin: 3rem auto;
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--sombra-media);
}

.form-box h1 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--texto);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--borda);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--azul-primario);
}

.form-box .btn {
    width: 100%;
    padding: 0.9rem;
    font-size: 1.05rem;
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--texto-suave);
}

/* ============================================
   ALERTAS / FLASH
   ============================================ */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.alert-success {
    background: var(--azul-suave, #e7f0fa);
    color: var(--azul-escuro, #0e2f56);
    border-color: var(--azul-primario, #1b4e8a);
}

.alert-error {
    background: #ffebee;
    color: #b71c1c;
    border-color: #f44336;
}

.alert-warning {
    background: #fff8e1;
    color: #e65100;
    border-color: #ff9800;
}

.alert-info {
    background: #e3f2fd;
    color: #0d47a1;
    border-color: #2196f3;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #0c1b2e;
    color: #b3bfd0;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.site-footer h3,
.site-footer h4 {
    color: white;
    margin-bottom: 1rem;
}

.site-footer ul {
    list-style: none;
}

.site-footer ul li {
    margin-bottom: 0.5rem;
}

.site-footer a {
    color: #b3bfd0;
}

.site-footer a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #1d3a5c;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVO
   ============================================ */
@media (max-width: 768px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .site-header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .main-nav ul {
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* ============================================
   NAVBAR Bootstrap personalizada
   ============================================ */

.site-navbar {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    padding: 0.75rem 0;
    transition: box-shadow 0.2s, padding 0.2s;
}

.site-navbar.scrolled {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
}

/* Logo */
.navbar-brand {
    color: var(--azul-primario) !important;
    font-size: 1.4rem;
    transition: color 0.2s;
}

.navbar-brand:hover {
    color: var(--azul-escuro) !important;
}

.navbar-logo {
    max-height: 42px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Itens do menu */
.navbar .nav-link {
    color: #1f2a38 !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    transition: all 0.2s;
    position: relative;
}

.navbar .nav-link:hover {
    color: var(--azul-primario) !important;
    background: rgba(27, 78, 138, 0.06);
}

.navbar .nav-link.active {
    color: var(--azul-primario) !important;
    font-weight: 600;
}

/* Indicador da página activa */
.navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--azul-primario);
    border-radius: 2px;
}

@media (max-width: 991px) {
    .navbar .nav-link.active::after {
        display: none;
    }
    .navbar .nav-link.active {
        background: rgba(27, 78, 138, 0.08);
    }
}

/* Dropdowns */
.dropdown-menu {
    border: 1px solid #e0e6ee;
    border-radius: 8px;
    padding: 0.5rem;
    margin-top: 0.5rem !important;
    min-width: 220px;
}

.dropdown-item {
    border-radius: 5px;
    padding: 0.55rem 0.85rem;
    font-size: 0.92rem;
    transition: all 0.15s;
}

.dropdown-item:hover {
    background: rgba(27, 78, 138, 0.08);
    color: var(--azul-escuro);
}

.dropdown-item:active,
.dropdown-item.active {
    background: var(--azul-primario);
    color: white;
}

/* Pesquisa desktop */
.search-form {
    min-width: 220px;
}

.search-form .form-control {
    border-color: #e0e6ee;
}

.search-form .form-control:focus {
    border-color: var(--azul-primario);
    box-shadow: 0 0 0 0.2rem rgba(27, 78, 138, 0.15);
}

.search-form .btn-outline-success {
    border-color: var(--azul-primario);
    color: var(--azul-primario);
}

.search-form .btn-outline-success:hover {
    background: var(--azul-primario);
    color: white;
}

/* Avatar do utilizador */
.user-avatar {
    width: 30px;
    height: 30px;
    background: var(--azul-primario);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.user-dropdown .btn {
    border: 1px solid #e0e6ee;
    background: #fafbfc;
    font-weight: 500;
}

.user-dropdown .btn:hover,
.user-dropdown .btn:focus {
    background: #eef2f7;
    border-color: #d0d8e2;
}

/* Botões "success" do Bootstrap → azul corporativo (override) */
.btn-success {
    background: var(--azul-primario);
    border-color: var(--azul-primario);
}

.btn-success:hover,
.btn-success:focus {
    background: var(--azul-escuro);
    border-color: var(--azul-escuro);
}

.btn-outline-success {
    color: var(--azul-primario);
    border-color: var(--azul-primario);
}

.btn-outline-success:hover {
    background: var(--azul-primario);
    border-color: var(--azul-primario);
}

/* Links text-success do Bootstrap → azul corporativo (override) */
.text-success {
    color: var(--azul-primario) !important;
}

/* Toggler hamburger */
.navbar-toggler {
    border: 1px solid #e0e6ee;
    padding: 0.4rem 0.6rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(27, 78, 138, 0.2);
}

/* ============================================
   MOBILE
   ============================================ */
@media (max-width: 991px) {
    .site-navbar {
        padding: 0.6rem 0;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-collapse {
        padding-top: 1rem;
        margin-top: 0.5rem;
        border-top: 1px solid #e8ecf2;
    }
    
    .navbar .nav-link {
        padding: 0.7rem 0.5rem !important;
        border-radius: 6px;
    }
    
    .navbar .nav-link i {
        width: 22px;
        text-align: center;
        color: #64748b;
    }
    
    .navbar-nav {
        margin-bottom: 0.75rem !important;
    }
    
    .dropdown-menu {
        border: none;
        background: #fafbfc;
        margin: 0.25rem 0 0.5rem 1.5rem !important;
        padding: 0.25rem;
        box-shadow: none;
    }
    
    .user-dropdown {
        width: 100%;
    }
}
/* ============================================
   LOJA DE TECNOLOGIA
   ============================================ */
:root { --loja-radius: 14px; --destaque: var(--amarelo, #ff6a00); }
.btn-primary { background: var(--azul-primario); border-color: var(--azul-primario); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background: var(--azul-escuro); border-color: var(--azul-escuro); color: #fff; }
.btn-outline-primary { color: var(--azul-primario); border-color: var(--azul-primario); }
.btn-outline-primary:hover { background: var(--azul-primario); border-color: var(--azul-primario); color: #fff; }

.cart-badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
    background: var(--destaque); color: #fff; font-size: .72rem; font-weight: 700; line-height: 20px; text-align: center; }

/* Hero */
.shop-hero { background: linear-gradient(135deg, var(--azul-escuro), var(--azul-primario)); color: #fff; padding: 3rem 0; }
.shop-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
.shop-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.15; margin-bottom: 1rem; color: #fff; }
.shop-hero p { font-size: 1.1rem; color: rgba(255,255,255,.85); max-width: 560px; margin-bottom: 1.5rem; }
.shop-hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.shop-hero-img img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.shop-hero-pay { display: flex; gap: .5rem; margin-top: 1.25rem; flex-wrap: wrap; }
.pay-badge { display: inline-block; padding: .25rem .7rem; border-radius: 6px; font-weight: 800; font-size: .8rem; color: #fff; letter-spacing: .2px; }
.pay-mpesa { background: #e4002b; }
.pay-emola { background: #f7a600; color: #1b1b1b; }
.pay-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

/* Barra de confiança */
.trust-strip { background: #fff; border-bottom: 1px solid var(--borda); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.1rem 20px; }
.trust-grid > div { display: flex; gap: .7rem; align-items: center; }
.trust-grid i { font-size: 1.6rem; color: var(--azul-primario); }
.trust-grid span { font-size: .82rem; color: var(--texto-suave); line-height: 1.3; }
.trust-grid strong { display: block; color: var(--texto); font-size: .9rem; }

/* Secções */
.shop-section { padding: 2.5rem 0; }
.shop-section-alt { background: var(--fundo-suave); }
.shop-section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.25rem; }
.shop-section-head h2 { font-size: 1.45rem; font-weight: 800; }
.shop-section-head a { font-weight: 600; font-size: .9rem; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .9rem; }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1.1rem .5rem; background: #fff;
    border: 1px solid var(--borda); border-radius: var(--loja-radius); color: var(--texto); font-weight: 600; font-size: .9rem; text-align: center; transition: .2s; }
.cat-tile i { font-size: 1.9rem; color: var(--azul-primario); }
.cat-tile img { width: 64px; height: 64px; object-fit: contain; }
.cat-tile:hover { border-color: var(--azul-primario); transform: translateY(-2px); box-shadow: var(--sombra); color: var(--texto); }

/* Cartão de produto */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.product-card { background: #fff; border: 1px solid var(--borda); border-radius: var(--loja-radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.product-card:hover { box-shadow: var(--sombra-media); transform: translateY(-2px); }
.product-card-img { position: relative; display: block; background: #f8fafc; aspect-ratio: 1; }
.product-card-img img { width: 100%; height: 100%; object-fit: contain; padding: .75rem; }
.tag { position: absolute; top: .6rem; left: .6rem; padding: .15rem .5rem; border-radius: 6px; font-size: .72rem; font-weight: 800; color: #fff; }
.tag-sale { background: var(--destaque, #dc2626); }
.tag-out { background: #475569; left: auto; right: .6rem; }
.tag-cond { background: #0f766e; left: auto; right: .6rem; }
.product-card-body { padding: .8rem .9rem 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.product-card-brand { font-size: .72rem; text-transform: uppercase; letter-spacing: .5px; color: var(--cinza-aco); font-weight: 700; }
.product-card-title { font-size: .95rem; font-weight: 600; line-height: 1.35; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.product-card-title a { color: var(--texto); }
.product-card-price strong { font-size: 1.1rem; color: var(--texto); }
.product-card-price del { font-size: .82rem; color: var(--cinza-aco); margin-left: .4rem; }
.product-card-form { margin-top: auto; }
.btn-cart { display: block; width: 100%; text-align: center; padding: .5rem; border-radius: 8px; border: 0; background: var(--azul-primario); color: #fff; font-weight: 600; font-size: .9rem; cursor: pointer; }
.btn-cart:hover { background: var(--azul-escuro); }
.btn-cart.disabled { background: #e2e8f0; color: #64748b; cursor: default; margin-top: auto; }

/* Catálogo */
.shop-page { padding-top: 1.25rem; padding-bottom: 2rem; }
.crumbs { font-size: .85rem; color: var(--cinza-aco); margin-bottom: 1rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.crumbs a { color: var(--cinza-aco); }
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 1.5rem; align-items: start; }
.shop-filters { background: #fff; border: 1px solid var(--borda); border-radius: var(--loja-radius); padding: 1.1rem; position: sticky; top: 80px; }
.filter-block { margin-bottom: 1.1rem; }
.filter-block h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; color: var(--cinza-aco); margin-bottom: .5rem; }
.filter-cats { list-style: none; }
.filter-cats a { display: block; padding: .3rem .5rem; border-radius: 6px; color: var(--texto); font-size: .92rem; }
.filter-cats a.active, .filter-cats a:hover { background: var(--fundo-suave); color: var(--azul-primario); font-weight: 600; }
.filter-cats small { color: var(--cinza-aco); }
.shop-results-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.shop-results-head h1 { font-size: 1.5rem; font-weight: 800; margin: 0; }
.cat-intro { background: var(--fundo-suave); padding: 1rem 1.25rem; border-radius: var(--loja-radius); margin-bottom: 1rem; color: var(--texto-suave); }
.empty-state { text-align: center; padding: 3rem 1rem; background: #fff; border: 1px dashed var(--borda); border-radius: var(--loja-radius); }
.empty-state i { font-size: 2.5rem; color: var(--cinza-aco); display: block; margin-bottom: .5rem; }
.empty-state p { margin-bottom: 1rem; }
.pager { display: flex; gap: .4rem; justify-content: center; margin-top: 2rem; }
.pager a, .pager span { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--borda); background: #fff; color: var(--texto); }
.pager .current { background: var(--azul-primario); border-color: var(--azul-primario); color: #fff; font-weight: 700; }

/* Produto */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.pdp-main { position: relative; background: #fff; border: 1px solid var(--borda); border-radius: var(--loja-radius); aspect-ratio: 1; }
.pdp-main img { width: 100%; height: 100%; object-fit: contain; padding: 1.5rem; }
.pdp-thumbs { display: flex; gap: .5rem; margin-top: .75rem; flex-wrap: wrap; }
.pdp-thumbs button { width: 72px; height: 72px; padding: 4px; border: 2px solid var(--borda); border-radius: 10px; background: #fff; cursor: pointer; }
.pdp-thumbs button.active { border-color: var(--azul-primario); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp-brand { text-transform: uppercase; font-weight: 700; font-size: .8rem; letter-spacing: .5px; color: var(--cinza-aco); }
.pdp-info h1 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; line-height: 1.2; margin: .25rem 0 .6rem; }
.pdp-meta { display: flex; gap: .9rem; flex-wrap: wrap; font-size: .85rem; color: var(--texto-suave); margin-bottom: 1rem; }
.pdp-price { display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; margin-bottom: .75rem; }
.pdp-price strong { font-size: 2rem; font-weight: 800; color: var(--texto); }
.pdp-price del { color: var(--cinza-aco); }
.pdp-price .save { background: rgba(var(--destaque-rgb, 220, 38, 38), .14); color: var(--destaque, #b91c1c); font-weight: 700; font-size: .8rem; padding: .15rem .5rem; border-radius: 6px; }
.pdp-short { color: var(--texto-suave); margin-bottom: 1rem; }
.pdp-stock { font-weight: 600; margin-bottom: 1rem; }
.pdp-stock.in { color: #15803d; }
.pdp-stock.out { color: #b91c1c; }
.pdp-buy { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.qty-box input { width: 80px; height: 100%; text-align: center; }
.pdp-perks { list-style: none; border-top: 1px solid var(--borda); padding-top: 1rem; display: grid; gap: .5rem; font-size: .92rem; }
.pdp-perks i { color: var(--azul-primario); margin-right: .4rem; }
.btn-whats { display: inline-flex; gap: .5rem; align-items: center; margin-top: 1rem; padding: .55rem 1rem; border-radius: 8px; background: #25d366; color: #fff; font-weight: 600; }
.btn-whats:hover { color: #fff; filter: brightness(.95); }
.pdp-details { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; margin-top: 2.5rem; }
.pdp-details h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: 1rem; }
.pdp-desc p, .pdp-desc ul, .pdp-desc ol { margin-bottom: 1rem; }
.pdp-desc ul, .pdp-desc ol { padding-left: 1.25rem; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.spec-table th, .spec-table td { padding: .6rem .75rem; border-bottom: 1px solid var(--borda); text-align: left; vertical-align: top; }
.spec-table th { width: 42%; color: var(--texto-suave); font-weight: 600; background: var(--fundo-suave); }

/* Carrinho e checkout */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 1.5rem; align-items: start; }
.cart-row { display: grid; grid-template-columns: 80px 1fr 80px 120px 40px; gap: .9rem; align-items: center; padding: .9rem; background: #fff; border: 1px solid var(--borda); border-radius: var(--loja-radius); margin-bottom: .6rem; }
.cart-img img { width: 80px; height: 80px; object-fit: contain; }
.cart-name a { color: var(--texto); font-weight: 600; display: block; }
.cart-name small { color: var(--cinza-aco); }
.cart-line { text-align: right; }
.cart-rm { border: 0; background: none; color: #b91c1c; font-size: 1.1rem; cursor: pointer; }
.cart-summary { background: #fff; border: 1px solid var(--borda); border-radius: var(--loja-radius); padding: 1.25rem; position: sticky; top: 80px; }
.cart-summary h2 { font-size: 1.1rem; font-weight: 800; margin-bottom: 1rem; }
.sum-row { display: flex; justify-content: space-between; padding: .45rem 0; }
.sum-row.total { border-top: 1px solid var(--borda); margin: .5rem 0 1rem; padding-top: .8rem; font-size: 1.15rem; }
.sum-item { display: grid; grid-template-columns: 48px 1fr auto; gap: .6rem; align-items: center; font-size: .88rem; padding-bottom: .6rem; margin-bottom: .6rem; border-bottom: 1px dashed var(--borda); }
.sum-item img { width: 48px; height: 48px; object-fit: contain; }
.free-hint { background: #ecfdf5; color: #047857; font-size: .85rem; padding: .5rem .75rem; border-radius: 8px; margin: .25rem 0; }
.co-box { background: #fff; border: 1px solid var(--borda); border-radius: var(--loja-radius); padding: 1.25rem; margin-bottom: 1rem; }
.co-box h2 { font-size: 1.1rem; font-weight: 800; margin-bottom: 1rem; display: flex; align-items: center; gap: .6rem; }
.co-box h2 span { width: 28px; height: 28px; border-radius: 50%; background: var(--azul-primario); color: #fff; font-size: .9rem; display: inline-flex; align-items: center; justify-content: center; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .6rem; }
.choice { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem; border: 2px solid var(--borda); border-radius: 12px; cursor: pointer; background: #fff; }
.choice:has(input:checked) { border-color: var(--azul-primario); background: var(--fundo-suave); }
.choice input { margin-top: .3rem; accent-color: var(--azul-primario); }
.choice strong { display: block; }
.choice small { color: var(--texto-suave); }
.checkout-login { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; background: var(--fundo-suave); border-radius: 12px; padding: .8rem 1rem; margin-bottom: 1rem; }

/* Pagamento / encomenda */
.order-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.order-head h1 { font-size: 1.6rem; font-weight: 800; margin: 0; }
.st { display: inline-block; padding: .25rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.st-success { background: #dcfce7; color: #166534; }
.st-warning { background: #fef3c7; color: #92400e; }
.st-info { background: var(--azul-suave, #dbeafe); color: var(--azul-escuro, #1e40af); }
.st-danger { background: #fee2e2; color: #991b1b; }
.st-default { background: #e2e8f0; color: #334155; }
.pay-panel { display: flex; gap: 1rem; align-items: center; padding: 1.25rem; border-radius: var(--loja-radius); margin-bottom: 1.25rem; }
.pay-panel > i { font-size: 2.2rem; }
.pay-panel h2 { font-size: 1.15rem; font-weight: 800; margin-bottom: .25rem; }
.pay-panel p { margin: 0; }
.pay-ok { background: #ecfdf5; color: #065f46; }
.pay-wait { background: var(--azul-suave, #eff6ff); color: var(--azul-escuro, #1e3a8a); }
.pay-fail { background: #fef2f2; color: #991b1b; }
.manual-list { list-style: none; display: grid; gap: .4rem; margin-bottom: .75rem; }

/* Login Google */
.btn-google { display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; padding: .7rem 1rem; border: 1px solid #dadce0;
    border-radius: 8px; background: #fff; color: #3c4043; font-weight: 600; transition: background .2s; }
.btn-google:hover { background: #f8f9fa; color: #202124; }
.btn-google-sm { width: auto; padding: .35rem .8rem; font-size: .85rem; }
.btn-google-sm::before { content: 'G'; font-weight: 800; color: #4285f4; }
.form-divider { display: flex; align-items: center; gap: .75rem; color: var(--cinza-aco); font-size: .85rem; margin: 1.1rem 0; }
.form-divider::before, .form-divider::after { content: ''; flex: 1; height: 1px; background: var(--borda); }

/* Blog e FAQ na home */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.blog-card { background: #fff; border: 1px solid var(--borda); border-radius: var(--loja-radius); overflow: hidden; color: var(--texto); }
.blog-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.blog-card div { padding: .9rem 1rem; }
.blog-card small { color: var(--cinza-aco); }
.blog-card h3 { font-size: 1rem; font-weight: 700; margin-top: .25rem; }
.faq-list { display: grid; gap: .6rem; }
.faq-item { background: #fff; border: 1px solid var(--borda); border-radius: 12px; padding: .9rem 1.1rem; }
.faq-item summary { font-weight: 700; cursor: pointer; }
.faq-item p { margin-top: .6rem; color: var(--texto-suave); }

/* Rodapé */
.footer-payments { display: flex; gap: .5rem; align-items: center; justify-content: center; flex-wrap: wrap; font-size: .85rem; margin-top: 1rem; }

/* Toast do carrinho */
.cart-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: #0f172a; color: #fff; padding: .7rem 1.1rem;
    border-radius: 10px; font-size: .9rem; opacity: 0; pointer-events: none; transition: .25s; z-index: 10000; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.cart-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.cart-toast a { color: var(--azul-claro, #93c5fd); margin-left: .5rem; font-weight: 600; }

@media (max-width: 991px) {
    .shop-hero-grid, .pdp, .pdp-details, .cart-layout { grid-template-columns: 1fr; }
    .shop-hero-img { display: none; }
    .shop-layout { grid-template-columns: 1fr; }
    .shop-filters { position: static; order: 2; }
    .cart-summary { position: static; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
    .product-card-body { padding: .6rem; }
    .product-card-title { font-size: .85rem; }
    .cart-row { grid-template-columns: 64px 1fr 64px; }
    .cart-line { grid-column: 2; text-align: left; }
    .cart-rm { grid-column: 3; }
    .pdp-buy .btn { flex: 1; }
}
