/*
 * Modelo Atacado — catálogo técnico para vendas entre empresas.
 * Densidade e clareza acima de tudo: código do produto sempre visível, grade compacta
 * na página inicial e lista em linhas no catálogo, para comparar rápido.
 * Uma família só (Public Sans) em pesos fortes, números tabulares, cantos de 6 px e bordas firmes.
 * A cor da marca vive na barra de categorias; o destaque, no botão de adicionar à lista.
 */
:root {
    --font-display: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --paper: #ffffff;
    --surface: #f4f5f7;
    --line: #dfe3e8;
    --muted: #5b6573;
    --wrap: 1360px;
    --space: clamp(44px, 5vw, 72px);
    --radius: 6px;
    --radius-media: 6px;
    --radius-lg: 10px;
}
body { font-size: .98rem; font-variant-numeric: tabular-nums; background: var(--paper); }
h1, h2, h3 { font-weight: 800; letter-spacing: -.02em; }
.btn { border-radius: var(--radius); font-weight: 700; }
.btn-primary { box-shadow: none; }

/* ---------- Topo ---------- */
.trade-strip { background: var(--ink); color: rgba(255, 255, 255, .75); font-size: .82rem; }
.trade-strip-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; }
.trade-contacts { display: flex; gap: 18px; }
.trade-contacts a { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; font-weight: 600; }
.trade-contacts .icon { width: 14px; height: 14px; opacity: .7; }
@media (max-width: 760px) { .trade-strip-row > span:first-child, .trade-contacts .trade-mail { display: none; } .trade-strip-row { justify-content: center; } }
.trade-contacts a { white-space: nowrap; }
.site-header { position: sticky; top: 0; z-index: 40; background: #fff; }
.site-header.is-scrolled { box-shadow: 0 6px 18px -10px rgba(16, 24, 40, .3); }
.trade-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(16px, 3vw, 40px); align-items: center; min-height: 80px; }
.brand-name { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { border-radius: 6px; }
.trade-search { display: flex; max-width: 720px; width: 100%; justify-self: center; border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.trade-search input { flex: 1; min-width: 0; min-height: 46px; padding: 0 14px; border: 0; font-size: 1rem; color: var(--ink); }
.trade-search input:focus { outline: none; background: color-mix(in srgb, var(--brand) 4%, #fff); }
.trade-search .btn { min-height: 46px; border-radius: 0; padding: 0 20px; }
.trade-search .btn .icon { width: 18px; height: 18px; }
.header-actions > a.icon-button[href^="/busca"] { display: none; }
.cart-button { min-height: 48px; padding: 0 18px; border: 0; border-radius: var(--radius); background: var(--accent); color: #fff; font-weight: 800; }
.cart-button:hover { filter: brightness(.94); }
.cart-count { background: #fff; color: var(--ink); }
.trade-nav { background: var(--brand); color: var(--on-brand); }
.trade-nav-row { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.trade-cats { display: flex; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.trade-cats::-webkit-scrollbar { display: none; }
.trade-cats a { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; padding: 0 16px; min-height: 48px; color: inherit; text-decoration: none; font-weight: 600; font-size: .93rem; white-space: nowrap; border-right: 1px solid color-mix(in srgb, var(--on-brand) 18%, transparent); }
.trade-cats a:hover { background: rgba(0, 0, 0, .12); }
.trade-cats a[aria-current="page"] { background: var(--brand-deep); color: #fff; box-shadow: inset 0 -3px 0 var(--accent); }
.trade-all { background: rgba(0, 0, 0, .14); font-weight: 800 !important; }
.trade-all .icon { width: 16px; height: 16px; }
.trade-nav .main-nav { margin-left: auto; }
.trade-nav .nav-link { color: inherit; min-height: 48px; font-size: .9rem; opacity: .9; }
.trade-nav .nav-link:hover { opacity: 1; }
.trade-nav .menu-button { color: var(--on-brand); }
@media (max-width: 980px) {
    .trade-top { grid-template-columns: minmax(0, 1fr) auto; padding-block: 10px; row-gap: 10px; }
    .trade-search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
    .trade-search .btn span { display: none; }
    .trade-nav .nav-link { color: var(--ink); }
}

/* ---------- Abertura com busca ---------- */
.catalog-hero { margin: 0; border-radius: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding-block: clamp(40px, 6vw, 72px); }
.catalog-hero-inner { grid-template-columns: minmax(0, 1fr); }
.catalog-hero-title { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; max-width: 22ch; }
.catalog-hero-search { border-radius: var(--radius); border: 2px solid var(--ink); box-shadow: none; padding: 0; overflow: hidden; }
.catalog-hero-search .btn { border-radius: 0; min-height: 56px; }
.catalog-hero-search input { min-height: 56px; }
.catalog-hero-cats a { border-radius: var(--radius); background: #fff; border: 1px solid var(--line); font-weight: 600; }
.catalog-hero-cats a:hover { border-color: var(--ink); }

/* ---------- Seções ---------- */
.section-head { margin-bottom: 22px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); align-items: flex-end; }
.section-title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.section-text { font-size: 1rem; }
.section-more { border-radius: var(--radius); }

/* Categorias em fichas horizontais */
.category-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.category-card { grid-template-columns: 72px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color .2s, box-shadow .2s; }
.category-card:hover { border-color: var(--ink); box-shadow: 0 4px 0 var(--ink); }
.category-media { grid-row: 1 / 3; width: 72px; aspect-ratio: 1; margin: 0; border-radius: var(--radius); }
.category-name { align-self: end; font-weight: 800; }
.category-count { align-self: start; }

/* Produtos em grade compacta */
.grid-product { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.card-product { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; transition: border-color .2s; }
.card-product:hover { border-color: var(--ink); }
.card-product .card-media { aspect-ratio: 1; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: #fff; border-bottom: 1px solid var(--line); }
.card-product .card-media img { object-fit: contain; padding: 6%; mix-blend-mode: multiply; }
.card-product:hover .card-media img { transform: none; }
.card-badge { top: 10px; left: 10px; border-radius: 4px; background: var(--accent); }
.card-product .card-body { padding: 12px 14px 4px; gap: 4px; flex: 1; }
.card-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .78rem; }
.card-sku { font-weight: 700; color: var(--ink); background: var(--surface); padding: 1px 6px; border-radius: 4px; }
.card-product .card-kicker { font-size: .78rem; }
.card-product .card-title { font-family: var(--font-body); font-size: .98rem; font-weight: 700; letter-spacing: 0; line-height: 1.3; }
.card-product .card-text { font-size: .86rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-buy { display: grid; gap: 8px; padding: 6px 14px 14px; }
.card-product .card-price { margin: 0; }
.card-product .price-now { font-size: 1.15rem; font-weight: 800; }
.card-product .card-add { width: 100%; justify-content: center; min-height: 40px; border: 0; background: var(--ink); color: #fff; }
.card-product .card-add:hover, .card-product .card-add.is-added { background: var(--accent); color: #fff; }
@media (max-width: 640px) { .grid-product { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .card-product .card-text { display: none; } .card-add span { display: inline; } .card-add::after { content: none; } }

/* Catálogo em linhas para comparar (computador) */
@media (min-width: 900px) {
    .catalog .grid-product { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
    .catalog .card-product { display: grid; grid-template-columns: 112px minmax(0, 1fr) 260px; align-items: center; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
    .catalog .card-product:last-child { border-bottom: 0; }
    .catalog .card-product:hover { background: var(--surface); }
    .catalog .card-product .card-media { border: 0; border-right: 1px solid var(--line); border-radius: 0; height: 112px; }
    .catalog .card-product .card-body { padding: 12px 20px; }
    .catalog .card-product .card-title { font-size: 1.05rem; }
    .catalog .card-buy { grid-template-columns: 1fr; padding: 12px 20px; justify-items: end; text-align: right; }
    .catalog .card-product .card-add { width: auto; padding: 0 16px; }
}

/* Vantagens */
.highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0; list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.highlights li { display: grid; gap: 2px; padding: 18px 20px; border-left: 1px solid var(--line); }
.highlights li:first-child { border-left: 0; }
.highlights strong { font-weight: 800; }
.highlights span { color: var(--muted); font-size: .9rem; }
.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, chamada */
.section-partners .partner { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.section-testimonials { background: var(--surface); }
.testimonial { border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: none; }
.faq-item { border-radius: var(--radius-lg); }
.section-cta { background: var(--ink); color: #fff; padding-block: clamp(44px, 6vw, 72px); }
.section-cta.has-image .cta-bg::after { background: linear-gradient(90deg, rgba(10, 12, 16, .9), rgba(10, 12, 16, .6)); }
.cta-layout { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-title { margin: 0; color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.cta-text { margin: 8px 0 0; color: rgba(255, 255, 255, .78); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Páginas internas ---------- */
.page-hero { margin: 0; border-radius: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding-block: 28px 30px; }
.page-hero::before, .page-hero::after { display: none; }
.page-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
.page-intro { font-size: 1rem; }
.kind-product .page-intro { display: none; }
.catalog-side { top: 150px; }
.catalog-cats a { border-radius: var(--radius); }
.catalog-cats a[aria-current="page"] { background: var(--brand); color: var(--on-brand); }
.catalog-search input, .catalog-order select { border-radius: var(--radius); border-color: #c7cdd5; box-shadow: none; }
.product-stage { border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.product-stage img { object-fit: contain; padding: 4%; }
.product-thumbs button { border-radius: var(--radius); }
.buy-box { border-radius: var(--radius-lg); border: 2px solid var(--ink); background: #fff; }
.product-title { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.product-info .meta { font-weight: 700; color: var(--ink); }
.related { background: var(--surface); }
.prose blockquote { border-radius: var(--radius-lg); }

/* ---------- Rodapé ---------- */
.site-footer { margin-top: clamp(40px, 5vw, 72px); background: var(--ink); color: rgba(255, 255, 255, .72); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1fr; gap: 36px; padding-block: 48px; }
.footer-name { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-name .brand-mark { background: #fff; color: var(--ink); }
.footer-heading { font-size: .8rem; font-weight: 800; color: #fff; margin-bottom: 14px; letter-spacing: .02em; }
.site-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-menu, .site-footer .socials { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.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, .5); }
.site-footer .contact-info strong { color: rgba(255, 255, 255, .5); }
.footer-quote ol { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-block: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; color: rgba(255, 255, 255, .5); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

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