/********************************************************
 * SHOP PAGE — CSS COMPLETO (HEADER, HERO, GRID, FOOTER)
 * Paleta e fontes seguem o projeto (Inter / Montserrat)
 ********************************************************/

/* ---------------------- */
/* 0) TOKENS / VARIÁVEIS */
/* ---------------------- */
:root {
    --maxw: 1200px;
    --container-x: 1rem;

    --bg: #ffffff;
    --ink: #0F172A;
    /* preto do projeto */
    --ink-2: #334155;
    --muted: #6B7280;
    --line: rgba(15, 23, 42, .10);

    --brand: #2563EB;
    /* azul destaque */
    --accent: #0F172A;

    --card: #F6F7F9;
    /* fundo de thumb */
    --success: #22C55E;

    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

/* ---------------- */
/* 1) RESET BÁSICO */
/* ---------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* ----------------- */
/* 2) CONTAINER BASE */
/* ----------------- */
.container {
    width: 100%;
    max-width: var(--maxw);
    padding-left: var(--container-x);
    padding-right: var(--container-x);
    margin-inline: auto;
}

/* -------------- */
/* 3) HEADER NOVO */
/* -------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
}

.logo {
    font-weight: 800;
    letter-spacing: .2px;
    font-size: 1.3rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.main-nav a {
    font-size: .95rem;
    color: var(--ink-2);
}

.main-nav a[aria-current="page"] {
    color: var(--ink);
    font-weight: 700;
}

.main-nav a:hover {
    color: var(--brand);
}

.header-icons {
    display: flex;
    gap: 14px;
    font-size: 1.1rem;
}

.header-icons .icon {
    padding: 6px 8px;
    border-radius: 8px;
}

.header-icons .icon:hover {
    background: rgba(15, 23, 42, .05);
}

/* ----------- */
/* 4) HERO SHOP*/
/* ----------- */
.shop-hero {
    /* Troque a imagem se quiser: 'shop-hero.jpg' */
    background: #F6F7F9 url('shop-hero.jpg') center/cover no-repeat;
    border-bottom: 1px solid var(--line);
}

.shop-hero .container {
    padding-top: 48px;
    padding-bottom: 48px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: .92rem;
    margin-bottom: 6px;
}

.breadcrumb a {
    color: var(--muted);
}

.shop-hero h1 {
    font-size: 2rem;
    margin: 6px 0 4px;
}

.shop-hero-sub {
    color: #475569;
}

/* ---------------------------- */
/* 5) LAYOUT PRINCIPAL DA SHOP  */
/* ---------------------------- */
.shop-layout {
    padding: 28px 0 60px;
}

.products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.products-title {
    font-size: 1.25rem;
    font-weight: 700;
}

/* ---------------------- */
/* 6) GRID DE PRODUTOS    */
/* ---------------------- */
.products-grid.shop-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

/* Card padrão da página Shop (fones) */
.product-card.pro {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 16px;
    transition: box-shadow .2s ease, transform .2s ease;
    overflow: hidden;
}

.product-card.pro:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

/* Área visual da thumb: fundo suave + imagem */
.product-card.pro img {
    width: 100%;
    aspect-ratio: 4 / 3;
    /* mantém proporção bonita */
    object-fit: cover;
    background: var(--card);
    border-radius: var(--radius-sm);
}

/* Selo (ex.: HOT/NEW) */
.product-card.pro .badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--accent);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .5px;
    padding: 4px 8px;
    border-radius: 6px;
}

/* Info do produto */
.product-info {
    margin-top: 12px;
    color: var(--ink);
}

.stars {
    font-size: .9rem;
    color: #F59E0B;
}

/* dourado */
.product-info h3 {
    font-size: .96rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 4px 0 2px;
}

.price {
    font-weight: 700;
    font-size: 1rem;
}

.price .old {
    color: #94A3B8;
    text-decoration: line-through;
    margin-right: 6px;
}

/* Botão “Add to cart” flutuante no hover */
.add-cart-float {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 800;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease, background .2s ease;
}

.product-card.pro:hover .add-cart-float {
    opacity: 1;
    transform: translateY(0);
}

.add-cart-float:hover {
    background: var(--brand);
}

/* ---------------- */
/* 7) PAGINAÇÃO     */
/* ---------------- */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.btn-showmore {
    background: #fff;
    color: var(--ink);
    border: 1px solid rgba(15, 23, 42, .15);
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700;
}

.btn-showmore:hover {
    border-color: var(--ink);
}

/* -------------------------------- */
/* 8) NEWSLETTER + FOOTER (template)*/
/* -------------------------------- */
.newsletter {
    background: #fff;
    padding: 60px 0;
}

.newsletter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.newsletter-image img {
    max-height: 160px;
    object-fit: contain;
}

.newsletter-content {
    text-align: center;
    max-width: 520px;
    margin-inline: auto;
}

.newsletter-content h2 {
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.newsletter-content p {
    color: var(--muted);
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid #D1D5DB;
    border-radius: 10px;
}

.newsletter-form input {
    flex: 1;
    border: none;
    padding: 12px 14px;
    min-width: 0;
    /* evita estouro */
}

.newsletter-form button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-weight: 700;
}

.newsletter-form button:hover {
    background: var(--brand);
}

.site-footer {
    background: var(--ink);
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-brand .logo {
    color: #fff;
    font-weight: 900;
    font-size: 1.25rem;
}

.footer-brand span {
    color: #cbd5e1;
    margin-left: 8px;
}

.footer-nav {
    display: flex;
    gap: 20px;
}

.footer-nav a {
    color: #fff;
}

.footer-nav a:hover {
    color: #cbd5e1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #cbd5e1;
    margin-left: 16px;
}

.footer-links a:hover {
    color: #fff;
}

.footer-social a {
    margin-left: 14px;
    color: #fff;
    font-size: 1.15rem;
}

.footer-social a:hover {
    color: #cbd5e1;
}

/* ----------------------- */
/* 9) BREAKPOINTS OFICIAIS */
/* ----------------------- */

/* Tablet: 550px–1100px */
@media (max-width:1100px) {

    /* hero + toolbar */
    .shop-hero .container {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .products-title {
        font-size: 1.15rem;
    }

    /* grid de 2 colunas */
    .products-grid.shop-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* newsletter stack parcial */
    .newsletter-inner {
        flex-direction: column;
    }

    .newsletter-image img {
        max-height: 140px;
    }

    .footer-inner {
        gap: 12px;
    }
}

/* Mobile: <550px */
@media (max-width:550px) {

    /* header compacto (esconde nav, mantém ícones) */
    .main-nav {
        display: none;
    }

    .header-inner {
        padding: 12px 0;
    }

    /* hero menor */
    .shop-hero .container {
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .shop-hero h1 {
        font-size: 1.5rem;
    }

    /* grid 1 coluna */
    .products-grid.shop-grid-3 {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    /* newsletter em coluna */
    .newsletter {
        padding: 44px 0;
    }

    .newsletter-content {
        max-width: 92%;
    }

    .newsletter-form {
        flex-direction: column;
        border-radius: 12px;
    }

    .newsletter-form button {
        width: 100%;
    }

    /* footer alinhado ao centro */
    .footer-inner,
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-links a,
    .footer-social a {
        margin-left: 10px;
    }
}