/*
|--------------------------------------------------------------------------
| ARQUIVO: store.css
| MÓDULO: Loja Pública / Ofertas
| OBJETIVO:
| Estilizar a loja pública da PDX Pro Ofertas com foco em conversão,
| responsividade, SEO visual, usabilidade e layout premium.
|
| AJUSTE ATUAL:
| - Redução do espaço entre filtros, produtos em destaque e categorias.
| - Manutenção da responsividade para mobile, tablet e PC.
|--------------------------------------------------------------------------
*/

/* =========================
   RESET
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:Arial, sans-serif;
    background:#F4F8FD;
    color:#04101F;
    line-height:1.6;
}

/* =========================
   CONTAINER
========================= */

.container{
    width:90%;
    max-width:1300px;
    margin:auto;
}

/* =========================
   HEADER
========================= */

.store-header{
    background:rgba(4,16,31,.96);
    padding:18px 0;
    position:sticky;
    top:0;
    z-index:999;
    box-shadow:0 5px 25px rgba(0,0,0,.15);
    backdrop-filter:blur(12px);
}

.header-content{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:30px;
}

.logo{
    height:48px;
    width:auto;
    object-fit:contain;
}

.store-nav{
    display:flex;
    gap:25px;
}

.store-nav a{
    color:#fff;
    text-decoration:none;
    font-weight:600;
    font-size:15px;
    transition:.3s;
}

.store-nav a:hover,
.store-nav a.active{
    color:#1EA7FF;
}

.btn-whatsapp{
    background:#25D366;
    color:#fff;
    padding:12px 22px;
    border-radius:10px;
    text-decoration:none;
    font-weight:bold;
    transition:.3s;
}

.btn-whatsapp:hover{
    background:#1fb65a;
    transform:translateY(-2px);
}

/* =========================
   HERO
========================= */

.hero{
    background:
        linear-gradient(rgba(4,16,31,.84), rgba(4,16,31,.84)),
        url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?q=80&w=1600&auto=format&fit=crop');
    background-size:cover;
    background-position:center;
    padding:110px 20px;
    text-align:center;
    color:#fff;
}

.hero-badge{
    display:inline-block;
    background:rgba(255,255,255,.12);
    border:1px solid rgba(255,255,255,.16);
    padding:10px 18px;
    border-radius:50px;
    margin-bottom:22px;
    font-weight:700;
}

.hero h1{
    font-size:54px;
    margin-bottom:18px;
    line-height:1.1;
}

.hero p{
    max-width:760px;
    margin:auto;
    font-size:20px;
    color:rgba(255,255,255,.88);
}

/* =========================
   FILTROS
   Bloco mantido logo abaixo do hero.
========================= */

.filters-section{
    padding:26px 0 6px;
}

.filters-box{
    background:#fff;
    padding:24px;
    border-radius:22px;
    box-shadow:0 14px 40px rgba(0,0,0,.08);
    display:grid;
    grid-template-columns:1.2fr 1.8fr;
    gap:20px;
    align-items:center;
}

.search-area input,
.filter-area select{
    width:100%;
    height:52px;
    border:1px solid #E1E7EF;
    border-radius:14px;
    padding:0 18px;
    font-size:15px;
    outline:none;
    background:#fff;
    color:#04101F;
}

.search-area input:focus,
.filter-area select:focus{
    border-color:#1EA7FF;
    box-shadow:0 0 0 4px rgba(30,167,255,.12);
}

.filter-area{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:14px;
}

/* =========================
   TÍTULOS DAS SEÇÕES
========================= */

.section-heading{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:25px;
    margin-bottom:20px;
}

.section-heading span{
    color:#0E5EB7;
    font-weight:800;
}

.section-heading h2{
    font-size:38px;
    color:#04101F;
    margin-top:6px;
}

/* =========================
   PRODUTOS EM DESTAQUE
   Espaçamento reduzido para evitar distância excessiva.
========================= */

.featured-section{
    padding:22px 0 8px;
}

.featured-grid{
    grid-template-columns:repeat(auto-fit, minmax(300px,1fr));
}

.featured-card{
    border:2px solid rgba(14,94,183,.14);
}

/* =========================
   CATEGORIAS E SUBCATEGORIAS
   Espaçamento reduzido para aproximar do bloco de destaques.
========================= */

.categories-section{
    padding:8px 0 22px;
}

.category-chips,
.subcategory-chips{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}

.category-chip,
.subcategory-chip{
    border:none;
    background:#fff;
    color:#04101F;
    padding:12px 18px;
    border-radius:50px;
    font-weight:800;
    cursor:pointer;
    box-shadow:0 8px 25px rgba(0,0,0,.06);
    border:1px solid #E5EAF1;
    transition:.3s;
}

.category-chip:hover,
.subcategory-chip:hover,
.category-chip.active,
.subcategory-chip.active{
    background:#0E5EB7;
    color:#fff;
    border-color:#0E5EB7;
}

.subcategory-box{
    margin-top:18px;
    background:#fff;
    padding:22px;
    border-radius:22px;
    border:1px solid #E5EAF1;
    box-shadow:0 10px 30px rgba(0,0,0,.05);
}

.subcategory-box > span{
    display:block;
    font-weight:800;
    color:#0E5EB7;
    margin-bottom:14px;
}

/* =========================
   PRODUTOS
========================= */

.products-section{
    padding:34px 0 45px;
}

.products-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(280px,1fr));
    gap:30px;
}

/* =========================
   CARD DO PRODUTO
========================= */

.product-card{
    background:#fff;
    border-radius:22px;
    overflow:hidden;
    box-shadow:0 10px 35px rgba(0,0,0,.08);
    transition:.35s ease;
    display:flex;
    flex-direction:column;
    border:1px solid rgba(4,16,31,.04);
}

.product-card:hover{
    transform:translateY(-8px);
    box-shadow:0 16px 50px rgba(0,0,0,.13);
}

.product-image-box{
    position:relative;
    background:#fff;
    border-bottom:1px solid #EFF3F8;
}

.product-image{
    width:100%;
    height:240px;
    object-fit:contain;
    padding:22px;
    display:block;
    background:#fff;
    transition:.3s ease;
}

.product-card:hover .product-image{
    transform:scale(1.03);
}

/* =========================
   LINKS SEO DO PRODUTO
========================= */

.product-seo-link{
    display:block;
    text-decoration:none;
    color:inherit;
}

.product-title-link{
    color:#04101F;
    text-decoration:none;
    transition:.3s ease;
}

.product-title-link:hover{
    color:#0E5EB7;
}

.featured-badge{
    position:absolute;
    top:14px;
    left:14px;
    background:#0E5EB7;
    color:#fff;
    padding:6px 12px;
    border-radius:50px;
    font-size:12px;
    font-weight:800;
}

.product-content{
    padding:24px;
    display:flex;
    flex-direction:column;
    flex:1;
}

.product-content h3{
    font-size:18px;
    margin:16px 0 8px;
    min-height:58px;
    color:#04101F;
    line-height:1.45;
}

.product-category{
    color:#748195;
    font-size:13px;
    margin-bottom:14px;
}

/* =========================
   BADGES
========================= */

.badge{
    display:inline-block;
    padding:6px 14px;
    border-radius:50px;
    font-size:12px;
    font-weight:800;
    width:max-content;
}

.badge-ml{
    background:#FFE600;
    color:#333;
}

.badge-shopee{
    background:#EE4D2D;
    color:#fff;
}

.badge-outro{
    background:#0E5EB7;
    color:#fff;
}

/* =========================
   PREÇOS
========================= */

.price-box{
    margin-top:auto;
    margin-bottom:20px;
}

.old-price{
    display:block;
    font-size:14px;
    color:#9AA4B2;
    text-decoration:line-through;
    margin-bottom:4px;
}

.price{
    font-size:30px;
    font-weight:900;
    color:#198754;
}

.consult-price{
    font-size:24px;
    color:#0E5EB7;
}

/* =========================
   BOTÃO COMPRAR
========================= */

.btn-buy{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    min-height:50px;
    background:#04101F;
    color:#fff;
    text-decoration:none;
    padding:13px 18px;
    border-radius:14px;
    font-weight:800;
    transition:.3s ease;
}

.btn-buy:hover{
    background:#0E5EB7;
    transform:translateY(-2px);
}

/* =========================
   EMPTY STATES
========================= */

.empty-products,
.empty-filter{
    background:#fff;
    padding:45px;
    text-align:center;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,.06);
    color:#637083;
}

.empty-products{
    grid-column:1/-1;
}

.empty-filter{
    display:none;
    margin-top:30px;
}

/* =========================
   ÁREA DE ANÚNCIOS
========================= */

.ads-section{
    padding:30px 0 70px;
}

.ad-box{
    background:
        linear-gradient(135deg, #04101F, #0B1F36);
    border-radius:24px;
    padding:45px 30px;
    text-align:center;
    color:#fff;
    border:1px solid rgba(255,255,255,.08);
}

.ad-box span{
    display:inline-block;
    background:rgba(255,255,255,.10);
    padding:8px 16px;
    border-radius:50px;
    margin-bottom:15px;
    font-weight:800;
    color:#1EA7FF;
}

.ad-box p{
    color:#DCE7F5;
}

/* =========================
   FOOTER
========================= */

.store-footer{
    background:#04101F;
    color:#fff;
    text-align:center;
    padding:35px 20px;
}

/* =========================
   BACK TO TOP
========================= */

.back-to-top{
    position:fixed;
    right:24px;
    bottom:24px;
    width:54px;
    height:54px;
    border:none;
    border-radius:50%;
    background:#0E5EB7;
    color:#fff;
    font-size:22px;
    cursor:pointer;
    opacity:0;
    visibility:hidden;
    transform:translateY(18px);
    transition:.3s ease;
    z-index:999;
    box-shadow:0 12px 30px rgba(0,0,0,.20);
}

.back-to-top.show{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

.back-to-top:hover{
    background:#1EA7FF;
}

/* =========================
   RESPONSIVO TABLET
========================= */

@media(max-width:992px){

    .header-content{
        flex-direction:column;
        text-align:center;
    }

    .store-nav{
        flex-wrap:wrap;
        justify-content:center;
    }

    .filters-box{
        grid-template-columns:1fr;
    }

    .filter-area{
        grid-template-columns:1fr;
    }

    .hero h1{
        font-size:42px;
    }

    .hero p{
        font-size:18px;
    }

    .section-heading{
        flex-direction:column;
        align-items:flex-start;
        gap:10px;
    }

}

/* =========================
   RESPONSIVO MOBILE
========================= */

@media(max-width:768px){

    .products-grid,
    .featured-grid{
        grid-template-columns:1fr;
    }

    .hero{
        padding:85px 20px;
    }

    .hero h1{
        font-size:34px;
    }

    .filters-section{
        padding:22px 0 6px;
    }

    .featured-section{
        padding:18px 0 6px;
    }

    .categories-section{
        padding:6px 0 20px;
    }

    .subcategory-box{
        margin-top:16px;
        padding:20px;
    }

    .product-image{
        height:220px;
        padding:18px;
    }

    .section-heading h2{
        font-size:30px;
    }

    .btn-whatsapp{
        width:100%;
        max-width:260px;
        text-align:center;
    }

}

/*
|--------------------------------------------------------------------------
| OCULTAR BLOCO VISUAL DE CATEGORIAS E SUBCATEGORIAS
| Mantém os filtros internos funcionando, mas remove a área visual
| da loja pública para deixar o layout mais limpo.
|--------------------------------------------------------------------------
*/

.categories-section {
    display: none !important;
}