/*
 * main.css — Componentes e layout do tema Referência Child
 * Importa tokens.css como dependência (carregado via wp_enqueue antes deste).
 * Inclui reset seletivo do Storefront.
 */

/* ══════════════════════════════════════════════════════
   RESET SELETIVO DO STOREFRONT
   Esconde elementos que substituímos com nossos templates
   ══════════════════════════════════════════════════════ */

/* Header e footer do Storefront — substituídos por header.php e footer.php */
.storefront-primary-navigation,
.site-header,
.site-footer,
.storefront-handheld-footer-bar {
    display: none !important;
}

/* ══════════════════════════════════════════════════════
   BASE
   ══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
}

/* ══════════════════════════════════════════════════════
   ANIMAÇÕES
   ══════════════════════════════════════════════════════ */
@keyframes float    { 0%,100%{ transform: translateY(0) rotate(-1deg) } 50%{ transform: translateY(-14px) rotate(1deg) } }
@keyframes wiggle   { 0%,100%{ transform: rotate(0) } 25%{ transform: rotate(-7deg) } 75%{ transform: rotate(7deg) } }
@keyframes fadeUp   { from{ opacity:0; transform: translateY(20px) } to{ opacity:1; transform: translateY(0) } }
@keyframes leafSway { 0%,100%{ transform: rotate(-6deg) translateY(0) } 50%{ transform: rotate(6deg) translateY(-8px) } }
@keyframes sparkle  { 0%,100%{ opacity:1; transform: scale(1) rotate(0deg) } 50%{ opacity:.6; transform: scale(.7) rotate(20deg) } }

.float    { animation: float 5s ease-in-out infinite; }
.wiggle   { animation: wiggle 2.5s ease-in-out infinite; }
.fade-up  { animation: fadeUp .55s ease both; }
.fade-up-1{ animation: fadeUp .55s .12s ease both; }
.fade-up-2{ animation: fadeUp .55s .24s ease both; }
.fade-up-3{ animation: fadeUp .55s .38s ease both; }

/* ══════════════════════════════════════════════════════
   ELEMENTOS DECORATIVOS
   ══════════════════════════════════════════════════════ */
.deco { position: absolute; pointer-events: none; }
.leaf-deco { animation: leafSway 6s ease-in-out infinite; transform-origin: bottom center; }

/* ══════════════════════════════════════════════════════
   NAVBAR — resets do Storefront + estilos próprios
   ══════════════════════════════════════════════════════ */

/*
 * O Storefront aplica margin: auto e text-align: center em .custom-logo-link
 * e padding/alinhamentos no .site-header. Zeramos tudo aqui antes de
 * definir nossos próprios estilos.
 */
.navbar .custom-logo-link {
    display: flex !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}
.navbar .custom-logo-link img,
.navbar .custom-logo {
    height: 42px !important;
    width: auto !important;
    display: block !important;
    margin: 0 !important;
}

/* A <ul> gerada pelo wp_nav_menu — remove list-style e margin do browser/Storefront */
.nav-links-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    gap: 2rem;
    align-items: center;
}
.nav-links-list li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.navbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 2px solid var(--surface-low);
    margin: 0 !important;
    padding: 0 !important;
}
.navbar-inner {
    max-width: 1280px; margin: 0 auto;
    padding: 14px 2rem; /* padding vertical explícito — não depende de height */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 70px;
}

/*
 * O Storefront e o tema padrão do WordPress adicionam margin-top no <body>
 * quando a barra de admin está visível, e padding-top em .site/.hfeed.
 * Zeramos esses valores para a nossa navbar não ficar colada ao topo.
 */
.site, .hfeed { padding-top: 0 !important; margin-top: 0 !important; }
html body.admin-bar .navbar { top: 32px; } /* respeita a barra de admin */
@media screen and (max-width: 782px) {
    html body.admin-bar .navbar { top: 46px; }
}

/* Logo — alinhada à esquerda no desktop */
.nav-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    line-height: 1;
}
.nav-logo--text {
    font-family: 'Nunito', sans-serif;
    font-weight: 900; font-size: 1.2rem;
    color: var(--blue); text-decoration: none;
}

/* Links de navegação — centralizados na área disponível */
.nav-links {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center; /* centraliza o menu no espaço entre logo e busca */
}
.nav-links-list a {
    font-family: 'Nunito', sans-serif;
    font-weight: 800; font-size: .95rem;
    color: var(--blue); text-decoration: none;
    letter-spacing: -.02em;
    padding: .35rem .75rem; border-radius: var(--r-pill);
    transition: background .18s, color .18s;
    display: block;
}
.nav-links-list a:hover,
.nav-links-list .current-menu-item > a {
    background: var(--surface-low);
    color: var(--blue-dark);
}

/* Resets do Storefront — apenas no input, nunca no form */
.navbar input[type="search"],
.navbar input[type="text"] {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none !important;
}
/* O form em si não recebe reset — ele é o pill visível */
.navbar form {
    margin: 0 !important;
}

/* Wrapper do form — é ele que vira o pill visível */
.search-form {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: var(--bg);
    border-radius: var(--r-pill);
    border: 2px solid var(--surface-low);
    padding: 0 1rem;
    height: 42px;
    flex-shrink: 0;
    transition: border-color .2s, box-shadow .2s;
}
.search-form:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(27,111,216,.15);
}

/* Label com ícone de lupa */
.search-form-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
}
.search-form-label .material-symbols-outlined {
    font-size: 18px;
    color: var(--ink-muted);
    line-height: 1;
}

/* Input — completamente transparente, sem bordas próprias */
.search-form-input {
    flex: 1;
    min-width: 0;
    width: 160px;
    height: 100% !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: .85rem !important;
    color: var(--ink) !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    -webkit-appearance: none !important;
}
.search-form-input::placeholder {
    color: var(--ink-muted);
    opacity: 1;
}
/* Remove o X nativo do Safari/Chrome em inputs de busca */
.search-form-input::-webkit-search-decoration,
.search-form-input::-webkit-search-cancel-button { display: none; }

.navbar-actions {
    display: flex; gap: .25rem; align-items: center; flex-shrink: 0;
}
.icon-btn {
    width: 40px; height: 40px; border-radius: var(--r-pill);
    background: transparent; border: 2px solid transparent;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: var(--blue); transition: background .18s, border-color .18s;
    position: relative; text-decoration: none;
    flex-shrink: 0;
}
.icon-btn:hover { background: var(--surface-low); }
.cart-dot {
    position: absolute; top: 5px; right: 5px;
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--yellow); border: 2px solid white;
}

/* ══════════════════════════════════════════════════════
   BOTÕES
   ══════════════════════════════════════════════════════ */
.btn {
    display: inline-flex; align-items: center; gap: .55rem;
    font-family: 'Nunito', sans-serif; font-weight: 800;
    font-size: 1rem; letter-spacing: -.02em;
    border-radius: var(--r-pill); border: none; cursor: pointer;
    padding: .85rem 1.9rem; text-decoration: none;
    position: relative; transition: transform .12s, box-shadow .12s;
    user-select: none;
}
.btn:active { transform: translateY(4px) !important; box-shadow: none !important; }
.btn-blue  { background: var(--blue);   color: white;      box-shadow: var(--shadow-btn-blue); }
.btn-yellow{ background: var(--yellow); color: var(--ink); box-shadow: var(--shadow-btn-yellow); }
.btn-ghost {
    background: transparent; color: var(--blue);
    border: 2.5px solid var(--blue); box-shadow: none;
    padding: .75rem 1.7rem;
}
.btn-blue:hover   { transform: translateY(-2px); box-shadow: 0 7px 0 var(--blue-dark); color: white; }
.btn-yellow:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--yellow-dark); }
.btn-ghost:hover  { background: var(--surface-low); transform: translateY(-2px); }
.btn .material-symbols-outlined { font-size: 18px; }

/* ══════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════ */
.hero {
    position: relative; overflow: hidden;
    background: linear-gradient(160deg, #deeafc 0%, #c8daf8 45%, #e8f5ee 100%);
    min-height: 500px;
}
.hero-inner {
    position: relative; z-index: 2;
    max-width: 1280px; margin: 0 auto;
    padding: 4rem 2rem 2.5rem;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 2rem; align-items: center;
}
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    background: white; color: var(--blue);
    font-family: 'Nunito', sans-serif; font-weight: 800;
    font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
    padding: .35rem 1rem; border-radius: var(--r-pill);
    border: 2px solid var(--surface-low);
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 0 var(--surface-low);
}
.hero-eyebrow-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--green);
    animation: sparkle 2s ease-in-out infinite;
}
.hero h1 {
    font-family: 'Nunito', sans-serif;
    font-weight: 900; font-size: clamp(2rem, 3.8vw, 3.2rem);
    color: var(--ink); line-height: 1.1;
    letter-spacing: -.03em; margin-bottom: 1.1rem;
}
.hero h1 span {
    color: var(--blue); position: relative; display: inline-block;
}
.hero h1 span::after {
    content: ''; position: absolute; left: 0; bottom: 2px; right: 0;
    height: 6px; border-radius: 9999px;
    background: var(--yellow); opacity: .55; z-index: -1;
}
.hero-sub {
    font-size: 1.05rem; color: var(--ink-muted);
    font-weight: 500; line-height: 1.7; margin-bottom: 2.25rem;
    max-width: 440px;
}
.hero-ctas { display: flex; gap: .875rem; flex-wrap: wrap; align-items: center; }

/* Coluna da mascote */
.hero-mascot {
    display: flex; justify-content: center; align-items: flex-end;
    position: relative;
}
.hero-mascot-wrap {
    position: relative; display: inline-flex;
    flex-direction: column; align-items: center;
}
.hero-mascot-wrap img {
    position: relative; z-index: 2;
    width: 320px; max-width: 86%;
    filter: drop-shadow(0 20px 32px rgba(27,111,216,.22));
}

/* Badge flutuante "A Bagy te ajuda!" sobre a mascote */
.hero-bagy-badge {
    display: inline-flex; align-items: center; gap: .35rem;
    background: white; color: var(--ink);
    font-family: 'Nunito', sans-serif; font-weight: 800;
    font-size: .75rem; letter-spacing: -.01em;
    padding: .35rem .9rem; border-radius: var(--r-pill);
    box-shadow: 0 3px 0 var(--surface-low), 0 4px 16px rgba(27,111,216,.12);
    position: absolute; top: .5rem; right: -1rem; z-index: 3;
    white-space: nowrap;
    animation: popIn .5s .4s ease both;
}

/* ══════════════════════════════════════════════════════
   VANTAGENS (PERKS)
   ══════════════════════════════════════════════════════ */
.perks-section { background: white; padding: 3rem 2rem; }
.perks-grid {
    display: flex; gap: 1rem; justify-content: center;
    flex-wrap: nowrap; max-width: 680px; margin: 0 auto;
    align-items: flex-start; /* impede que flex estique os filhos verticalmente */
}
.perk-card {
    /* Largura fluida com clamp — o aspect-ratio garante o quadrado */
    width: clamp(100px, 18vw, 124px);
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    border-radius: var(--r-perk);
    padding: clamp(.5rem, 1.5vw, .875rem);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center;
    overflow: hidden; /* garante que texto longo não quebre o quadrado */
    transition: transform .2s;
}
.perk-card:hover { transform: translateY(-4px); }
.perk-icon {
    width: clamp(32px, 5vw, 44px); height: clamp(32px, 5vw, 44px);
    border-radius: 50%; background: rgba(255,255,255,.75);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    margin-bottom: .5rem;
}
.perk-icon .material-symbols-outlined { font-size: clamp(16px, 2.5vw, 20px); }
.perk-title {
    font-family: 'Nunito', sans-serif; font-weight: 800;
    font-size: clamp(.6rem, 1.2vw, .78rem);
    color: var(--ink); letter-spacing: -.01em; line-height: 1.2;
    margin-bottom: .15rem;
}
.perk-sub {
    font-size: clamp(.5rem, 1vw, .65rem);
    color: var(--ink-muted); font-weight: 500; line-height: 1.3;
}

/* ══════════════════════════════════════════════════════
   SEÇÃO DE PRODUTOS
   ══════════════════════════════════════════════════════ */
.products-section {
    padding: 5rem 2rem 4rem; background: var(--bg); position: relative;
}
.products-grid-wrapper {
    max-width: 1280px; margin: 0 auto;
}
.section-header {
    max-width: 1280px; margin: 0 auto 2.5rem;
    display: flex; justify-content: space-between; align-items: flex-end;
    gap: 1rem; flex-wrap: wrap;
}
.section-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 900; font-size: 2rem;
    color: var(--ink); letter-spacing: -.03em; line-height: 1.1;
}
.section-title span { color: var(--blue); }
.section-sub { font-size: .9rem; color: var(--ink-muted); font-weight: 500; margin-top: .3rem; }
.see-all {
    display: inline-flex; align-items: center; gap: .3rem;
    font-family: 'Nunito', sans-serif; font-weight: 800; font-size: .9rem;
    color: var(--blue); text-decoration: none;
    padding: .45rem 1rem; border-radius: var(--r-pill);
    border: 2px solid var(--blue);
    transition: background .18s, transform .18s;
    white-space: nowrap; letter-spacing: -.01em;
}
.see-all:hover { background: var(--surface-low); transform: translateY(-2px); }

/* ══════════════════════════════════════════════════════
   CARDS DE PRODUTO
   ══════════════════════════════════════════════════════ */
.products-grid,
.woocommerce ul.products {
    width: 100%; margin: 0 auto;
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 1.25rem; align-items: start;
    list-style: none; padding: 0;
}

/*
 * O woocommerce.css define ::before e ::after com display:table para clearfix
 * de float. Com display:grid esses pseudo-elementos viram células fantasmas:
 * ::before ocupa a coluna 1 (empurra os produtos para colunas 2-6)
 * ::after  ocupa uma célula extra (quebra o último produto para a linha 2)
 * Solução: display:none elimina ambas as células.
 */
.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
}

/* Stagger visual: 2º e 4º cards levemente deslocados */
.woocommerce ul.products li.product:nth-child(2),
.woocommerce ul.products li.product:nth-child(4) {
    margin-top: 1.5rem;
}

.product-card,
.woocommerce ul.products li.product {
    background: var(--card);
    border-radius: var(--r-card-tl) var(--r-card) var(--r-card) var(--r-card);
    padding: 1rem;
    display: flex; flex-direction: column;
    box-shadow: var(--shadow-card);
    transition: transform .22s, box-shadow .22s;
    position: relative;
    /* Reset estilos do WooCommerce/Storefront */
    float: none !important; width: auto !important; margin-left: 0 !important;
}
.product-card:hover,
.woocommerce ul.products li.product:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

/* Chip de categoria */
.card-chip {
    position: absolute; top: 1.1rem; left: 1.1rem; z-index: 3;
    font-family: 'Nunito', sans-serif; font-weight: 700; font-size: .68rem;
    padding: .22rem .65rem; border-radius: var(--r-pill);
    letter-spacing: .02em; text-transform: uppercase;
    text-decoration: none;
}
.chip-uniform { background: #D6F0E4; color: #1A6B40; }
.chip-baby    { background: #DDEEFF; color: #0A4A9F; }
.chip-kit     { background: #FFF3CC; color: #7A5000; }
.chip-escola  { background: var(--surface-low); color: var(--blue-dark); }

/* Imagem */
.product-img {
    border-radius: var(--r-img); overflow: hidden;
    background: var(--green-light);
    aspect-ratio: 1; margin-bottom: 1rem;
}
.product-img img, .woocommerce ul.products li.product img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s ease;
    border: none; /* reset WooCommerce */
}
.product-card:hover .product-img img,
.woocommerce ul.products li.product:hover img {
    transform: scale(1.06);
}

/* Textos */
.product-name, .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800; font-size: .9rem;
    color: var(--ink); margin-bottom: .2rem; letter-spacing: -.01em;
    padding: 0; /* reset WooCommerce */
}
.product-desc { font-size: .75rem; color: var(--ink-muted); font-weight: 500; margin-bottom: .875rem; line-height: 1.4; }
.product-price, .woocommerce ul.products li.product .price {
    font-family: 'Nunito', sans-serif; font-weight: 900;
    font-size: 1.2rem; color: var(--blue);
    margin-bottom: .75rem; letter-spacing: -.02em;
}

/* Botão comprar */
.btn-buy,
.woocommerce ul.products li.product .button {
    width: 100%; padding: .6rem;
    background: var(--blue); color: white;
    border: none; cursor: pointer;
    border-radius: var(--r-pill);
    font-family: 'Nunito', sans-serif; font-weight: 800; font-size: .82rem;
    display: flex; align-items: center; justify-content: center; gap: .4rem;
    box-shadow: 0 4px 0 var(--blue-dark);
    transition: transform .12s, box-shadow .12s;
    letter-spacing: -.01em; text-decoration: none;
}
.btn-buy:hover,
.woocommerce ul.products li.product .button:hover {
    transform: translateY(-2px); box-shadow: 0 6px 0 var(--blue-dark); color: white;
}
.btn-buy:active,
.woocommerce ul.products li.product .button:active {
    transform: translateY(3px); box-shadow: none;
}

/* ══════════════════════════════════════════════════════
   FAQ
   ══════════════════════════════════════════════════════ */
.faq-section {
    background: white; padding: 3rem 2rem;
    position: relative; overflow: hidden;
}
.faq-inner { max-width: 760px; margin: 0 auto; }
.faq-title {
    font-family: 'Nunito', sans-serif; font-weight: 900;
    font-size: 1.9rem; color: var(--ink);
    letter-spacing: -.03em; text-align: center;
    margin-bottom: 2.5rem;
}
.faq-title span { color: var(--blue); }
details.faq {
    background: var(--bg); border-radius: var(--r-faq);
    margin-bottom: .75rem;
    box-shadow: var(--shadow-faq);
    transition: box-shadow .2s;
    overflow: hidden;
}
details.faq[open] { box-shadow: var(--shadow-faq-open); background: white; }
details.faq summary {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.1rem 1.5rem; cursor: pointer; list-style: none; gap: 1rem;
}
details.faq summary::-webkit-details-marker { display: none; }
.faq-q {
    font-family: 'Nunito', sans-serif; font-weight: 800;
    font-size: .95rem; color: var(--blue); letter-spacing: -.01em;
}
.faq-chevron {
    color: var(--blue-dark); flex-shrink: 0; font-size: 22px;
    transition: transform .28s ease;
}
details[open] .faq-chevron { transform: rotate(180deg); }
.faq-a {
    padding: 0 1.5rem 1.25rem;
    font-size: .9rem; color: var(--ink-muted);
    font-weight: 500; line-height: 1.75;
}
/* Conteúdo HTML vindo do editor do CPT */
.faq-a p { margin-bottom: .75rem; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a a { color: var(--blue); text-decoration: underline; }
.faq-a a:hover { color: var(--blue-dark); }
.faq-a strong { font-weight: 700; color: var(--ink); }

/* ══════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════ */
.site-footer-referencia {
    background: var(--ink); color: rgba(255,255,255,.8);
    padding: 4rem 2rem 2rem;
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-grid {
    display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 3rem; margin-bottom: 3rem;
}
.footer-logo { height: 40px; margin-bottom: 1.5rem; display: block; }
.footer-h {
    font-family: 'Nunito', sans-serif; font-weight: 800;
    font-size: .72rem; color: var(--yellow);
    text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem;
}

/* Menus do rodapé — gerados por wp_nav_menu() */
.footer-links {
    list-style: none;
    display: flex; flex-direction: column; gap: .25rem;
    margin: 0 !important;
    padding: 0 !important;
}
.footer-links li { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.footer-links a {
    text-decoration: none; color: rgba(255,255,255,.65);
    font-size: .875rem; font-weight: 500; transition: color .18s;
    padding: 0;
}
.footer-links a:hover { color: var(--yellow); }
/* Título que vem depois de uma lista — adiciona espaço superior */
.footer-links + .footer-h { margin-top: 1.25rem !important; }

/* Atendimento */
.footer-contact {
    display: flex; align-items: center; gap: .5rem;
    color: rgba(255,255,255,.7); font-size: .875rem; font-weight: 500;
    margin-bottom: .5rem; text-decoration: none;
    transition: color .18s;
}
.footer-contact:hover { color: rgba(255,255,255,.95); }
.footer-contact .material-symbols-outlined {
    color: var(--yellow); font-size: 17px;
    font-variation-settings: 'FILL' 1; flex-shrink: 0;
}
/* Ícone SVG inline (ex: WhatsApp) dentro de footer-contact */
.footer-contact-svg {
    width: 17px; height: 17px; flex-shrink: 0; display: block;
}
.footer-address {
    font-size: .875rem; color: rgba(255,255,255,.65);
    line-height: 1.65; font-weight: 500;
    text-decoration: none; display: block;
    transition: color .18s;
}
.footer-address:hover { color: rgba(255,255,255,.9); }
.footer-address strong { color: rgba(255,255,255,.88); font-weight: 700; }
.footer-address-maps {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: .75rem; color: var(--yellow);
    margin-top: .25rem;
}

/* Segurança */
.secure-box {
    display: flex; align-items: center; gap: .6rem;
    background: rgba(255,255,255,.07);
    padding: .75rem 1rem; border-radius: 1rem; margin-bottom: .875rem;
}
.secure-box .material-symbols-outlined { color: var(--green); font-variation-settings: 'FILL' 1; }
.secure-box-title { display: block; font-size: .8rem; font-weight: 700; color: white; }
.secure-box-sub   { font-size: .68rem; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .06em; }

/*
 * Bandeiras de pagamento — badges de tamanho uniforme (44×28px).
 * object-fit:contain respeita a proporção de cada logo sem corte.
 */
.pay-badges { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; margin-top: .5rem; }
.pay-badge {
    background: white; border-radius: 6px;
    width: 44px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; overflow: hidden; padding: 3px 5px;
}
.pay-badge svg { display: block; width: 100%; height: 100%; }
.pay-badge img { display: block; width: 100%; height: 100%; object-fit: contain; }

.footer-gateway {
    font-size: .7rem; color: rgba(255,255,255,.35); margin-top: .75rem;
}
.footer-legal-info {
    font-size: .68rem; color: rgba(255,255,255,.3);
    margin-top: .875rem; line-height: 1.7;
}

/* Rodapé inferior */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 1.5rem; text-align: center;
}
.footer-bottom p {
    font-size: .72rem; color: rgba(255,255,255,.28);
    letter-spacing: .12em; text-transform: uppercase;
}
.footer-lideraweb {
    color: rgba(255,255,255,.45); text-decoration: none; transition: color .2s;
}
.footer-lideraweb:hover { color: var(--yellow); }

/* ══════════════════════════════════════════════════════
   MOBILE NAV (bottom bar)
   ══════════════════════════════════════════════════════ */
.mobile-nav {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1.5px solid var(--surface-low);
    padding-bottom: env(safe-area-inset-bottom);
}
.mobile-nav-inner {
    display: flex; justify-content: space-around; align-items: center;
    padding: .5rem 1rem;
}
.mnav-item {
    display: flex; flex-direction: column; align-items: center; gap: .2rem;
    text-decoration: none; color: var(--ink-muted);
    font-family: 'Nunito', sans-serif; font-weight: 700; font-size: .6rem;
    letter-spacing: .04em; padding: .4rem .75rem; border-radius: .75rem;
    transition: background .18s, color .18s;
}
.mnav-item .material-symbols-outlined { font-size: 22px; }
.mnav-item.active { background: var(--yellow); color: var(--ink); }

/* ══════════════════════════════════════════════════════
   BREADCRUMB
   ══════════════════════════════════════════════════════ */
.referencia-breadcrumb {
    max-width: 1280px; margin: 1rem auto 0; padding: 0 2rem;
    font-size: .8rem; color: var(--ink-muted); font-weight: 500;
}
.breadcrumb-sep { opacity: .5; }
.referencia-breadcrumb a { color: var(--blue); text-decoration: none; }
.referencia-breadcrumb a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════
   RESPONSIVO
   ══════════════════════════════════════════════════════ */

@media ( max-width: 1024px ) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-mascot { display: none; }
    .hero-ctas { justify-content: center; }
    .hero-sub { max-width: 100%; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media ( max-width: 640px ) {
    /* Navbar mobile */
    .navbar-inner {
        padding: 0 1rem;
        justify-content: center;
        position: relative;
    }
    .nav-logo { flex: 1; justify-content: center; }
    .nav-links, .search-form { display: none; }
    .navbar-actions {
        position: absolute; right: 1rem;
        top: 50%; transform: translateY(-50%);
    }

    .mobile-nav { display: block; }
    body { padding-bottom: 70px; }

    /* Força 2 colunas mínimas em mobile mesmo em telas muito pequenas */
    .products-grid,
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    /* Remove stagger em mobile */
    .products-grid .product-card:nth-child(2),
    .products-grid .product-card:nth-child(4),
    .woocommerce ul.products li.product:nth-child(2),
    .woocommerce ul.products li.product:nth-child(4) {
        margin-top: 0;
    }

    .section-header { flex-direction: column; align-items: center; text-align: center; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media ( max-width: 560px ) {
    .perks-grid { flex-wrap: wrap; max-width: 280px; gap: .75rem; }
    .perk-card { width: calc(50% - .375rem); flex-shrink: 0; }
    .perk-card:last-child:nth-child(odd) { margin: 0 auto; }
}
