/*
 * Modelo Vitrine — catálogo de varejo moderno.
 * Busca é a primeira coisa do topo; categorias ficam sempre à mão numa barra própria.
 * Produto é o protagonista: foto quadrada sobre fundo claro, segunda foto ao passar o mouse,
 * preço grande e botão "Orçar" que aparece sobre a foto.
 * Títulos em Bricolage Grotesque (amigável e firme), texto em Instrument Sans.
 */
:root {
    --font-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
    --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --paper: #ffffff;
    --surface: #f3f4f6;
    --line: #e5e7eb;
    --muted: #5f6672;
    --wrap: 1320px;
    --space: clamp(48px, 6vw, 88px);
    --radius: 12px;
    --radius-media: 18px;
    --radius-lg: 28px;
}
body { font-size: 1rem; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.025em; }

/* ---------- Topo ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: #fff; transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 8px 24px -14px rgba(17, 24, 39, .25); }
.shop-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(16px, 3vw, 40px); min-height: 78px; }
.brand-name { font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; }
.shop-search { position: relative; display: flex; align-items: center; max-width: 640px; width: 100%; justify-self: center; }
.shop-search .icon { position: absolute; left: 16px; width: 19px; height: 19px; color: var(--muted); pointer-events: none; }
.shop-search input { width: 100%; min-height: 48px; padding: 0 56px 0 46px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 1rem; color: var(--ink); transition: border-color .2s, background-color .2s, box-shadow .2s; }
.shop-search input:focus { outline: none; background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.shop-search-go { position: absolute; right: 5px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--brand); color: var(--on-brand); cursor: pointer; }
.shop-search-go .icon { position: static; width: 17px; height: 17px; color: currentColor; }
.shop-actions { display: flex; align-items: center; gap: 6px; }
.shop-help { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; line-height: 1.15; }
.shop-help .icon { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: #e7f6ec; color: #1a8a4a; }
.shop-help small { display: block; font-size: .72rem; font-weight: 500; color: var(--muted); }
.shop-help:hover { background: var(--surface); }
.header-actions > a.icon-button[href^="/busca"] { display: none; }
.cart-button { min-height: 46px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; }
.cart-button:hover { background: var(--brand-deep); }
.cart-count { background: #fff; color: var(--ink); }

.shop-nav { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.shop-nav-row { display: flex; align-items: center; gap: 20px; min-height: 52px; }
.shop-cats { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.shop-cats::-webkit-scrollbar { display: none; }
.shop-cats a { flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; white-space: nowrap; }
.shop-cats a:hover { background: var(--surface); }
.shop-cats a[aria-current="page"] { background: var(--ink); color: #fff; }
.shop-cats a:first-child { font-weight: 700; }
.main-nav { margin-left: auto; }
.nav-link { min-height: 40px; padding: 0 10px; font-size: .9rem; color: var(--muted); }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--ink); }
/* Produtos já estão na barra de categorias: no menu de páginas, some no computador */
@media (min-width: 981px) { .main-nav .nav-item.has-children:has(.nav-toggle) { } }

@media (max-width: 980px) {
    .shop-top { grid-template-columns: minmax(0, 1fr) auto; row-gap: 10px; padding-block: 10px; }
    .shop-search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
    .shop-help { display: none; }
    .shop-nav-row { min-height: 48px; }
    .cart-button { min-height: 42px; padding: 0 12px; }
}

/* ---------- Abertura com busca ---------- */
.catalog-hero { background: var(--brand-deep); color: #fff; margin-top: 16px; }
.catalog-hero::before { content: ""; position: absolute; z-index: -1; right: -12%; top: -50%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 55%, transparent), transparent); opacity: .7; }
.catalog-hero-title { color: #fff; font-size: clamp(2.4rem, 5.6vw, 4.6rem); max-width: 16ch; }
.catalog-hero-text { color: rgba(255, 255, 255, .8); }
.catalog-hero-search { border-radius: 999px; padding: 6px; }
.catalog-hero-search .btn { border-radius: 999px; padding-inline: 1.6em; }
.catalog-hero-cats a { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .2); }

/* ---------- Seções ---------- */
.section-head { margin-bottom: 28px; align-items: flex-end; }
.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-more { border-radius: 999px; }

/* Categorias em círculos: o elemento marcante do modelo */
.category-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 22px 16px; }
.category-card { justify-items: center; text-align: center; }
.category-media { width: 100%; max-width: 150px; border-radius: 50%; margin-bottom: 10px; outline: 2px solid transparent; outline-offset: 4px; transition: outline-color .25s; background: var(--surface); }
.category-card:hover .category-media { outline-color: var(--brand); }
.category-name { font-family: var(--font-display); font-size: 1.05rem; }

/* Produtos */
.grid-product { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 28px 18px; }
.card-product { gap: 0; }
.card-visual { position: relative; }
.card-product .card-media { aspect-ratio: 1; border-radius: var(--radius-media); background: var(--surface); }
.card-product .card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s var(--ease), transform .8s var(--ease); }
.card-product .card-media .img-second { opacity: 0; }
.card-product:hover .card-media.has-second .img-second { opacity: 1; }
.card-product:hover .card-media.has-second .img-main { opacity: 0; }
.card-product:hover .card-media:not(.has-second) img { transform: scale(1.04); }
.card-badge { top: 12px; left: 12px; background: var(--accent); color: #fff; }
.card-product .card-add { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 16px 0 12px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; font-size: .9rem; box-shadow: 0 8px 20px -6px rgba(17, 24, 39, .35); cursor: pointer; transform: translateY(6px); opacity: 0; transition: opacity .25s, transform .25s var(--ease), background-color .2s, color .2s; }
.card-product:hover .card-add, .card-product:focus-within .card-add, .card-product .card-add.is-added { opacity: 1; transform: none; }
.card-product .card-add:hover, .card-product .card-add.is-added { background: var(--brand); color: var(--on-brand); }
.card-product .card-add .icon { width: 18px; height: 18px; }
@media (hover: none) { .card-product .card-add { opacity: 1; transform: none; } }
.card-product .card-body { padding: 14px 2px 0; gap: 4px; }
.card-product .card-kicker { font-size: .8rem; color: var(--muted); }
.card-product .card-title { font-family: var(--font-body); font-size: 1rem; font-weight: 600; letter-spacing: 0; line-height: 1.35; }
.card-product .card-price { margin-top: 4px; }
.card-product .price-now { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
@media (max-width: 640px) {
    .grid-product { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
    .card-product .card-add { min-height: 38px; padding: 0 12px 0 10px; right: 8px; bottom: 8px; }
    .card-product .card-add span { display: inline; }
    .card-product .card-add::after { content: none; }
}

/* Vantagens em faixa */
.section-highlights { padding-block: 8px; }
.highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); list-style: none; margin: 0; padding: 0; border-radius: var(--radius-lg); background: var(--surface); }
.highlights li { display: grid; gap: 2px; padding: 22px 24px; border-left: 1px solid var(--line); }
.highlights li:first-child { border-left: 0; }
.highlights strong { font-family: var(--font-display); font-size: 1.1rem; }
.highlights span { color: var(--muted); font-size: .92rem; }
.section-highlights .wrap > h2, .highlights-title { display: none; }
@media (max-width: 700px) { .highlights li { border-left: 0; border-top: 1px solid var(--line); } .highlights li:first-child { border-top: 0; } }

/* Parceiros, depoimentos, perguntas e chamada */
.section-partners .partner { background: var(--surface); border-radius: 16px; }
.section-partners .partner img { opacity: .7; }
.section-testimonials { background: var(--surface); margin-inline: clamp(8px, 1.2vw, 16px); border-radius: var(--radius-lg); }
.testimonial { border: 0; border-radius: 20px; }
.section-cta { margin: 0 clamp(8px, 1.2vw, 16px); border-radius: var(--radius-lg); background: var(--ink); color: #fff; padding-block: clamp(56px, 7vw, 96px); }
.cta-layout { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta-title { margin: 0; color: #fff; font-size: clamp(1.9rem, 3.6vw, 3rem); max-width: 20ch; }
.cta-text { margin: 10px 0 0; color: rgba(255, 255, 255, .78); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-actions .btn { border-radius: 999px; }

/* ---------- Páginas internas ---------- */
.page-hero { margin: 16px clamp(8px, 1.2vw, 16px) 0; padding-block: clamp(32px, 4.5vw, 56px); }
.page-hero::after { display: none; }
.page-title { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.kind-product .page-hero { padding-block: 28px 30px; }
.kind-product .page-intro { display: none; }
.catalog-cats a[aria-current="page"] { background: var(--ink); color: #fff; }
.catalog-search input, .catalog-order select { border-radius: 999px; }
.product-stage { border-radius: 24px; }
.buy-box { border: 0; background: var(--surface); }
.buy-box .btn { border-radius: 999px; min-height: 54px; font-size: 1.02rem; }
.product-title { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.product-price .price-now { font-family: var(--font-display); font-size: 2.2rem; }
.btn { border-radius: 999px; }
.related { background: var(--surface); }

/* ---------- Rodapé ---------- */
.site-footer { margin-top: clamp(48px, 6vw, 80px); background: var(--brand-deep); color: rgba(255, 255, 255, .75); font-size: .95rem; }
.footer-assure { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-block: 32px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-assure > div { display: flex; gap: 14px; align-items: center; }
.footer-assure .icon { width: 44px; height: 44px; padding: 11px; border-radius: 14px; background: rgba(255, 255, 255, .1); color: #fff; flex: 0 0 auto; }
.footer-assure span { display: grid; color: rgba(255, 255, 255, .7); font-size: .9rem; }
.footer-assure strong { color: #fff; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding-block: 48px; }
.footer-name { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-name .brand-mark { background: #fff; color: var(--brand-deep); }
.footer-heading { font-family: var(--font-body); font-size: .9rem; color: #fff; margin-bottom: 14px; }
.site-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-menu, .site-footer .socials { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 32px; }
.site-footer .socials { display: flex; gap: 16px; margin-top: 16px; }
.site-footer .contact-info { margin: 0; gap: 12px; }
.site-footer .contact-info .icon { color: rgba(255, 255, 255, .55); }
.site-footer .contact-info strong { color: rgba(255, 255, 255, .55); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; color: rgba(255, 255, 255, .55); }
@media (max-width: 860px) { .footer-assure, .footer-grid { grid-template-columns: 1fr; } }

.section-categories { padding-bottom: 0; }
