/* =============================================================================
   Catálogo público — design system (grafite + azul)
   Servido pelo layout resources/views/layouts/catalogo.blade.php
   ============================================================================= */

:root {
    --bg:        #f1f5f9; /* slate-100 */
    --surface:   #ffffff;
    --ink:       #0f172a; /* slate-900 */
    --ink-2:     #334155; /* slate-700 */
    --muted:     #64748b; /* slate-500 */
    --line:      #e2e8f0; /* slate-200 */
    --line-2:    #eef2f6;
    --brand:     #0284c7; /* sky-600  */
    --brand-600: #0369a1; /* sky-700  */
    --brand-050: #e0f2fe; /* sky-100  */
    --accent:    #f97316; /* orange-500 */
    --dark:      #0f172a; /* header/footer */
    --dark-2:    #1e293b; /* slate-800 */
    --radius:    12px;
    --radius-sm: 9px;
    --shadow:    0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.10);
    --shadow-lg: 0 12px 28px rgba(15,23,42,.14);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container-app { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 20px; }

main.page { flex: 1 0 auto; padding-bottom: 8px; }

.ico { width: 18px; height: 18px; flex: 0 0 auto; stroke-width: 2; }
.ico-sm { width: 15px; height: 15px; }
.muted { color: var(--muted); }

/* -------------------------------- Topbar -------------------------------- */
.topbar {
    background: var(--dark);
    color: rgba(255,255,255,.65);
    font-size: 12.5px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 38px; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 7px; }
.topbar .tb-item .ico { color: var(--accent); }
.topbar__group { display: flex; align-items: center; gap: 16px; min-width: 0; }
.topbar .tb-name { color: #fff; font-weight: 700; max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .tb-sep { border-left: 1px solid rgba(255,255,255,.14); padding-left: 16px; }
.topbar a.tb-link { color: inherit; text-decoration: none; transition: color .15s; }
.topbar a.tb-link:hover { color: #25d366; }
.topbar a.tb-link .ico { color: #25d366; }
@media (max-width: 767px) { .topbar { display: none; } }

/* -------------------------------- Header -------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 1030;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(15,23,42,.02);
}
.site-header__inner { display: flex; align-items: center; gap: 22px; min-height: 72px; padding: 12px 0; }

.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; color: var(--ink); }
.brand__logo { height: 42px; max-width: 210px; width: auto; object-fit: contain; display: block; }
.brand__name { font-weight: 800; font-size: 20px; letter-spacing: -.02em; line-height: 1.05; text-transform: uppercase; }
.brand__name small { display: block; font-weight: 500; font-size: 10.5px; letter-spacing: .06em; color: var(--muted); text-transform: none; }

.search { flex: 1 1 auto; max-width: 660px; position: relative; }
.search input {
    width: 100%; height: 44px; border: 1.5px solid var(--line); border-radius: 999px;
    padding: 0 50px 0 18px; font-size: 14px; color: var(--ink); background: #f8fafc;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.search input::placeholder { color: #94a3b8; }
.search input:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(2,132,199,.12); }
.search button {
    position: absolute; right: 6px; top: 6px; height: 32px; width: 34px; border: 0; cursor: pointer;
    border-radius: 999px; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.search button:hover { background: var(--brand-600); }

.header-nav, .header-account { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.header-account { margin-left: 4px; }
.header-nav a, .header-account a { color: var(--ink-2); font-weight: 600; padding: 9px 13px; border-radius: 9px; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.header-nav a:hover, .header-account a:hover { color: var(--brand-600); background: var(--brand-050); }
.header-nav a.is-active, .header-account a.is-active { color: var(--brand-600); }

/* ---- Conta / dropdown "Minha conta" (nativo via <details>) ---- */
.account-login {
    color: var(--ink-2); font-weight: 600; padding: 9px 14px; border-radius: 999px;
    white-space: nowrap; display: inline-flex; align-items: center; gap: 7px;
    border: 1.5px solid var(--line);
}
.account-login:hover { color: var(--brand-600); border-color: var(--brand); background: var(--brand-050); }

.account-menu { position: relative; }
.account-menu > summary { list-style: none; cursor: pointer; }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-menu > summary::marker { content: ""; }

.account-menu__btn {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 6px 12px 6px 6px; border-radius: 999px;
    border: 1.5px solid var(--line); background: var(--surface);
    color: var(--ink); font-weight: 600; white-space: nowrap; user-select: none;
    transition: border-color .15s, box-shadow .15s;
}
.account-menu__btn:hover { border-color: #cbd5e1; }
.account-menu[open] .account-menu__btn { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(2,132,199,.10); }
.account-menu__avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 999px;
    background: var(--brand-050); color: var(--brand-600); flex: 0 0 auto;
}
.account-menu__label { font-size: 14px; }
.account-menu__caret { color: var(--ink-2); transition: transform .18s ease; }
.account-menu[open] .account-menu__caret { transform: rotate(180deg); }

.account-menu__drop {
    position: absolute; right: 0; top: calc(100% + 10px); z-index: 60;
    min-width: 240px; padding: 6px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
    box-shadow: var(--shadow-lg);
    animation: accountDrop .14s ease;
}
@keyframes accountDrop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.account-menu__head { padding: 10px 12px 8px; }
.account-menu__company { font-weight: 700; color: var(--ink); font-size: 14px; line-height: 1.25; }
.account-menu__doc { color: var(--ink-2); font-size: 12.5px; margin-top: 2px; }
.account-menu__sep { height: 1px; background: var(--line); margin: 6px 4px; }

.account-menu__item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 9px;
    color: var(--ink-2); font-weight: 600; font-size: 14px; white-space: nowrap;
}
.account-menu__item .ico { color: var(--ink-2); }
.account-menu__item:hover { background: var(--brand-050); color: var(--brand-600); }
.account-menu__item:hover .ico { color: var(--brand-600); }
.account-menu__item--danger { color: #dc2626; }
.account-menu__item--danger .ico { color: #dc2626; }
.account-menu__item--danger:hover { background: #fef2f2; color: #b91c1c; }
.account-menu__item--danger:hover .ico { color: #b91c1c; }

/* ---- Painel do cliente (área logada) ---- */
.panel-head { padding: 6px 0 16px; }
.panel-head h1 { font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; letter-spacing: -.02em; color: var(--ink); margin: 0; }
.panel-head p { color: var(--muted); margin: 5px 0 0; font-size: 14.5px; }

.panel-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }

.panel-company { display: flex; align-items: center; gap: 14px; }
.panel-company__avatar { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-050); color: var(--brand-600); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.panel-company__name { font-weight: 700; color: var(--ink); font-size: 16px; }
.panel-company__meta { color: var(--muted); font-size: 13px; margin-top: 3px; display: flex; gap: 14px; flex-wrap: wrap; }

.panel-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-top: 18px; }
.panel-tile { display: flex; gap: 13px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.panel-tile:hover { border-color: var(--brand); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.panel-tile__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-050); color: var(--brand-600); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.panel-tile__title { font-weight: 700; }
.panel-tile__desc { color: var(--muted); font-size: 13px; margin-top: 2px; }
.panel-tile--soon { opacity: .7; }
.panel-tile--soon:hover { border-color: var(--line); box-shadow: var(--shadow); transform: none; }
.panel-tile__badge { align-self: center; margin-left: auto; font-size: 11px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }

.company-pick { max-width: 540px; margin: 26px auto; }
.company-pick__item { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 18px; box-shadow: var(--shadow); color: var(--ink); cursor: pointer; margin-bottom: 10px; transition: border-color .15s, box-shadow .15s; }
.company-pick__item:hover { border-color: var(--brand); box-shadow: var(--shadow-lg); }

.alert-soft { border-radius: var(--radius); padding: 12px 16px; font-size: 14px; margin-bottom: 14px; }
.alert-soft--error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.alert-soft--ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }

/* tabela do painel */
.panel-table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; }
.panel-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.panel-table th, .panel-table td { padding: 13px 16px; text-align: left; white-space: nowrap; }
.panel-table thead th { color: var(--muted); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; border-bottom: 1px solid var(--line); }
.panel-table tbody tr { border-top: 1px solid var(--line-2); }
.panel-table tbody tr:hover { background: #f8fafc; }
.panel-table td.num, .panel-table th.num { text-align: right; }
.panel-table a.row-link { color: var(--brand-600); font-weight: 700; }

.stat { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid transparent; }
.stat--gray  { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }
.stat--blue  { background: var(--brand-050); color: var(--brand-600); border-color: #bae6fd; }
.stat--green { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.stat--amber { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.stat--red   { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }

.panel-section { margin-top: 26px; }
.panel-section > h2 { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0 0 12px; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px 24px; }
.dl-grid dt { color: var(--muted); font-size: 12.5px; }
.dl-grid dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); }

.pedido-top { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.pedido-top__info { flex: 1 1 240px; }
.totais { flex: 0 0 auto; width: 300px; max-width: 100%; }
.totais .tl { display: flex; justify-content: space-between; gap: 24px; padding: 6px 0; font-size: 14px; }
.totais .tl dt { color: var(--muted); margin: 0; }
.totais .tl dd { margin: 0; font-weight: 600; color: var(--ink); }
.totais .tl--desc dd { color: #b91c1c; }
.totais .tl--total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 11px; }
.totais .tl--total dt { color: var(--ink); font-weight: 700; }
.totais .tl--total dd { font-weight: 800; font-size: 17px; }

/* ---- Autenticação (login / esqueci senha / reset) ---- */
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 20px; background: var(--bg); }
.auth-card { width: 100%; max-width: 410px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 34px 30px; }
.auth-brand { text-align: center; margin-bottom: 18px; }
.auth-brand img { max-height: 56px; max-width: 210px; object-fit: contain; }
.auth-title { text-align: center; font-size: 21px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); margin: 2px 0 4px; }
.auth-sub { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 22px; }

.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field input[type=email], .field input[type=password], .field input[type=text] {
    width: 100%; height: 46px; border: 1.5px solid var(--line); border-radius: 10px;
    padding: 0 14px; font-size: 14px; color: var(--ink); background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: #94a3b8; }
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(2,132,199,.12); }

/* Input de texto reutilizável fora do contexto .field (ex.: busca do painel). */
.input-text {
    height: 46px; border: 1.5px solid var(--line); border-radius: 10px;
    padding: 0 14px; font-size: 14px; color: var(--ink); background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.input-text::placeholder { color: #94a3b8; }
.input-text:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(2,132,199,.12); }

.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 20px; font-size: 13.5px; }
.auth-check { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); cursor: pointer; user-select: none; }
.auth-check input { width: 16px; height: 16px; accent-color: var(--brand); }
.auth-row a, .auth-foot a { color: var(--brand-600); font-weight: 600; }

.btn-block { width: 100%; justify-content: center; height: 46px; font-size: 15px; }
.auth-foot { text-align: center; margin-top: 20px; font-size: 13.5px; color: var(--muted); }
.auth-back { margin-top: 18px; font-size: 13.5px; }
.auth-back a { color: var(--muted); }
.auth-back a:hover { color: var(--brand-600); }

.filters-toggle { display: none; }

@media (max-width: 900px) {
    .site-header__inner { flex-wrap: wrap; row-gap: 10px; }
    .search { order: 3; flex-basis: 100%; max-width: none; }
    .header-nav { margin-left: auto; }
}

/* ------------------------------ Buttons / chips ------------------------------ */
.btn-brand { display: inline-flex; align-items: center; gap: 8px; justify-content: center;
    background: var(--brand); color: #fff; border: 0; border-radius: 10px; padding: 11px 18px; font-weight: 700; cursor: pointer; transition: background .15s; }
.btn-brand:hover { background: var(--brand-600); color: #fff; }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; justify-content: center;
    background: #fff; color: var(--ink-2); border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 15px; font-weight: 600; cursor: pointer; }
.btn-ghost:hover { border-color: #cbd5e1; color: var(--ink); }

.chip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px; border-radius: 999px;
    background: var(--brand-050); color: var(--brand-600); font-weight: 600; font-size: 12.5px; border: 1px solid #bae6fd; }
.chip a { display: inline-flex; opacity: .6; } .chip a:hover { opacity: 1; }

.badge-soft { display: inline-block; padding: 3px 9px; border-radius: 6px; background: #f1f5f9; color: var(--ink-2);
    font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* ------------------------------ Breadcrumb ------------------------------ */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding: 18px 0 6px; }
.crumbs a:hover { color: var(--brand-600); }
.crumbs .sep { color: #cbd5e1; }

/* -------------------------------- Hero -------------------------------- */
.hero { position: relative; background: linear-gradient(120deg, var(--dark) 0%, var(--dark-2) 55%, #24466b 100%); color: #fff; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -80px; top: -60px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(2,132,199,.35), transparent 70%); }
.hero__inner { position: relative; z-index: 1; padding: 46px 0 50px; max-width: 720px; }
.hero h1 { font-size: clamp(24px, 3.2vw, 38px); font-weight: 800; letter-spacing: -.02em; margin: 0 0 12px; line-height: 1.12; }
.hero p { font-size: 15.5px; color: rgba(255,255,255,.78); margin: 0 0 22px; }
.hero .hero__search { display: flex; gap: 10px; max-width: 520px; }
.hero .hero__search input { flex: 1; height: 48px; border: 0; border-radius: 10px; padding: 0 16px; font-size: 15px; color: var(--ink); }
.hero .hero__search input:focus { outline: none; box-shadow: 0 0 0 4px rgba(2,132,199,.35); }

/* ------------------------------ Section head ------------------------------ */
.section { padding: 34px 0 6px; }
.section__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 16px; }
.section__title { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; letter-spacing: -.01em; margin: 0; }
.section__title .ico { color: var(--brand); }
.section__link { color: var(--brand-600); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.section__link:hover { text-decoration: underline; }

/* ------------------------------ Catalog layout ------------------------------ */
.catalog { display: grid; grid-template-columns: 262px minmax(0, 1fr); gap: 26px; padding: 24px 0 10px; align-items: start; }
@media (max-width: 991px) { .catalog { grid-template-columns: 1fr; } }

/* ------------------------------ Filters ------------------------------ */
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; position: sticky; top: 92px; }
.filters__head { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px; border-bottom: 1px solid var(--line-2); }
.filters__head h3 { margin: 0; font-size: 14px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.filters__head h3 .ico { color: var(--brand); }
.filters__clear { font-size: 12px; font-weight: 700; color: var(--muted); }
.filters__clear:hover { color: var(--accent); }
.filters__group { border-bottom: 1px solid var(--line-2); }
.filters__group:last-child { border-bottom: 0; }
.filters__group > summary { list-style: none; cursor: pointer; padding: 13px 16px; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); display: flex; align-items: center; justify-content: space-between; }
.filters__group > summary::-webkit-details-marker { display: none; }
.filters__group > summary .chev { transition: transform .15s; color: var(--muted); }
.filters__group[open] > summary .chev { transform: rotate(180deg); }
.filters__list { list-style: none; margin: 0; padding: 0 8px 12px; max-height: 260px; overflow-y: auto; }
.filters__list li a { display: block; padding: 7px 10px; border-radius: 8px; font-size: 13px; color: var(--ink-2); }
.filters__list li a:hover { background: #f1f5f9; }
.filters__list li a.is-active { background: var(--brand-050); color: var(--brand-600); font-weight: 700; }

/* ------------------------------ Toolbar ------------------------------ */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar__count { font-size: 13.5px; color: var(--muted); }
.toolbar__count strong { color: var(--ink); font-weight: 700; }
.toolbar__right { display: flex; align-items: center; gap: 10px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

/* ------------------------------ Product grid ------------------------------ */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); gap: 16px; }
@media (max-width: 520px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* Fileiras em destaque (home): auto-fit para não deixar coluna vazia à direita */
.product-grid--featured { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.product-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; position: relative; transition: border-color .15s, box-shadow .15s, transform .15s; }
.product-card:hover { border-color: var(--brand); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.product-card__media { height: 172px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 14px; border-bottom: 1px solid var(--line-2); }
.product-card__media img { max-height: 100%; max-width: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .2s; }
.product-card:hover .product-card__media img { transform: scale(1.05); }
.product-card__body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card__meta { font-size: 11px; color: var(--muted); font-weight: 600; }
.product-card__title { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.35; margin: 0; min-height: 35px; }
.product-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 6px; }
.product-card__price { font-size: 16px; font-weight: 800; color: var(--brand-600); }
.product-card__cta { font-size: 12px; font-weight: 700; color: var(--brand-600); display: inline-flex; align-items: center; gap: 3px; }
.product-card__badge { position: absolute; top: 10px; left: 10px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .03em; padding: 4px 8px; border-radius: 6px; z-index: 2; }
.stretched { position: absolute; inset: 0; z-index: 1; }

/* ------------------------------ Empty / pagination ------------------------------ */
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 54px 20px; text-align: center; color: var(--muted); }
.empty .ico { width: 40px; height: 40px; color: #cbd5e1; margin-bottom: 12px; }
.empty h4 { color: var(--ink); font-weight: 700; margin: 0 0 4px; }

.pager { display: flex; justify-content: center; margin: 26px 0 4px; }
.pager nav > * { display: inline-flex; }
.pager .pagination { display: inline-flex; gap: 6px; list-style: none; padding: 0; margin: 0; }
.pager .page-item .page-link { border: 1px solid var(--line); border-radius: 9px !important; color: var(--ink-2); padding: 8px 13px; font-weight: 600; background: #fff; font-size: 13px; }
.pager .page-item .page-link:hover { border-color: var(--brand); color: var(--brand-600); }
.pager .page-item.active .page-link { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager .page-item.disabled .page-link { color: #cbd5e1; background: #fff; }

/* ------------------------------ Product detail ------------------------------ */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; padding: 8px 0 20px; align-items: start; }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; gap: 22px; } }

.gallery__main { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); height: 420px; display: flex; align-items: center; justify-content: center; padding: 22px; box-shadow: var(--shadow); }
.gallery__main img { max-height: 100%; max-width: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery__thumb { width: 70px; height: 70px; border: 1.5px solid var(--line); border-radius: 9px; background: #fff; padding: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: border-color .15s; }
.gallery__thumb img { max-height: 100%; max-width: 100%; object-fit: contain; }
.gallery__thumb.is-active, .gallery__thumb:hover { border-color: var(--brand); }

/* Carrossel de imagens (PDP) */
.carousel { outline: none; }
.carousel__viewport { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.carousel__track { display: flex; transition: transform .35s ease; will-change: transform; }
.carousel__slide { flex: 0 0 100%; height: 420px; display: flex; align-items: center; justify-content: center; padding: 22px; }
.carousel__slide img { max-height: 100%; max-width: 100%; object-fit: contain; mix-blend-mode: multiply; }
.carousel__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ink-2); cursor: pointer; box-shadow: var(--shadow); transition: background .15s, color .15s; }
.carousel__nav:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.carousel__nav--prev { left: 12px; }
.carousel__nav--next { right: 12px; }
.carousel__nav .ico { width: 22px; height: 22px; }
.carousel__dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; gap: 7px; justify-content: center; }
.carousel__dot { width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%; background: rgba(0,0,0,.22); cursor: pointer; transition: background .15s, transform .15s; }
.carousel__dot:hover { background: rgba(0,0,0,.4); }
.carousel__dot.is-active { background: var(--brand); transform: scale(1.25); }

.pdp-info h1 { font-size: clamp(20px, 2.4vw, 27px); font-weight: 800; letter-spacing: -.01em; line-height: 1.2; margin: 8px 0 10px; }
.pdp-code { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.pdp-code b { color: var(--ink-2); }
.pdp-price { font-size: 26px; font-weight: 800; color: var(--brand-600); margin: 0 0 20px; }
.pdp-block { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 4px; }
.pdp-block h6 { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.pdp-desc { color: var(--ink-2); white-space: pre-line; line-height: 1.65; }
.pdp-note { display: flex; align-items: center; gap: 10px; background: var(--brand-050); border: 1px solid #bae6fd; color: var(--brand-600); border-radius: 10px; padding: 12px 14px; font-weight: 600; font-size: 13px; margin-top: 20px; }

.btn-whatsapp { display: inline-flex; align-items: center; gap: 9px; margin-top: 14px; padding: 12px 22px; background: #25d366; color: #fff; font-weight: 700; font-size: 15px; border-radius: 10px; text-decoration: none; box-shadow: var(--shadow); transition: background .15s, transform .05s; }
.btn-whatsapp:hover { background: #1da851; }
.btn-whatsapp:active { transform: translateY(1px); }
.btn-whatsapp .ico { width: 20px; height: 20px; }

/* Bloco inferior: descrição + especificações | OEM */
.pdp-lower { display: grid; grid-template-columns: 1fr; gap: 26px; padding: 6px 0 8px; align-items: start; }
.pdp-lower__main { display: flex; flex-direction: column; gap: 22px; }
.pdp-lower__side { display: flex; flex-direction: column; gap: 22px; }
@media (max-width: 860px) { .pdp-lower { grid-template-columns: 1fr; gap: 22px; } }

.oem-hint { font-size: 12.5px; color: var(--muted); margin: 0 0 12px; }
.oem-list { display: flex; flex-wrap: wrap; gap: 8px; }
.oem-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; background: #f1f5f9; border: 1px solid var(--line); color: var(--ink-2); padding: 6px 10px; border-radius: 7px; }
.oem-code b { color: var(--ink); font-weight: 700; }
.mock-flag { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #b45309; background: #fef3c7; border: 1px solid #fde68a; padding: 2px 7px; border-radius: 5px; vertical-align: middle; margin-left: 8px; }
.pdp-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; }
.pdp-panel h2 { font-size: 17px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 9px; }
.pdp-panel h2 .ico { color: var(--brand); }
.prose { color: var(--ink-2); line-height: 1.7; font-size: 14px; }
.prose p { margin: 0 0 12px; }
.prose ul, .prose ol { margin: 0 0 12px; padding-left: 20px; }
.prose li { margin-bottom: 5px; }
.prose strong, .prose b { color: var(--ink); }
.prose img { max-width: 100%; height: auto; border-radius: 8px; }
.prose a { color: var(--brand-600); text-decoration: underline; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.spec-table tr { border-bottom: 1px solid var(--line-2); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table th { text-align: left; font-weight: 600; color: var(--muted); padding: 10px 10px 10px 0; width: 44%; white-space: nowrap; vertical-align: top; }
.spec-table td { padding: 10px 0; color: var(--ink); font-weight: 600; }

/* -------------------------------- Footer -------------------------------- */
.site-footer { flex-shrink: 0; background: var(--dark); color: rgba(255,255,255,.72); margin-top: 46px; }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 30px; padding: 42px 0 30px; }
.site-footer h6 { color: #fff; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 15px; }
.site-footer .brand__name { color: #fff; }
.site-footer p { margin: 0 0 9px; font-size: 13px; display: flex; gap: 10px; align-items: flex-start; }
.site-footer p .ico { color: rgba(255,255,255,.45); margin-top: 1px; }
.site-footer .tagline { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 12px; max-width: 300px; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; font-size: 12px; color: rgba(255,255,255,.5); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-footer__bottom a { color: rgba(255,255,255,.7); }
@media (max-width: 767px) { .site-footer__grid { grid-template-columns: 1fr; gap: 22px; } }

/* ------------------------------ Mobile: filtros empilham acima da grade ------------------------------ */
@media (max-width: 991px) {
    .filters { position: static; margin-bottom: 20px; }
    /* No mobile, começa com os grupos recolhidos para não empurrar a grade */
    .filters__list { max-height: 210px; }
}
