@charset "utf-8";

/* ============================================================
   Catálogo — estilos APENAS do corpo (painel + grid).
   Header, hero, rodapé e menu vêm do fox-modern.css (padrão do site),
   para que todas as páginas fiquem idênticas.
   ============================================================ */

.catalog-shell {
    --c-blue-700: #0b58ad;
    --c-blue-600: #1269c8;
    --c-blue-500: #1b7fe6;
    --c-blue-100: #e9f3ff;
    --c-text: #102033;
    --c-muted: #657487;
    --c-line: #dbe4ee;
    --c-shadow: 0 24px 70px rgba(8, 20, 35, .18);
    --c-shadow-soft: 0 10px 28px rgba(14, 38, 65, .10);
}

/* seção que abriga o painel — puxa o card por cima do hero */
.catalog-shell.section {
    padding-top: 0;
    padding-bottom: 74px;
}

.catalog-panel {
    position: relative;
    z-index: 3;
    margin-top: -46px;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: 14px;
    box-shadow: var(--c-shadow);
    padding: 22px;
}

/* ---------- Ferramentas: busca + pills ---------- */
.catalog-tools {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 28px;
    align-items: center;
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--c-line);
}
.search-wrap { position: relative; }
.search-wrap svg {
    position: absolute;
    left: 15px;
    top: 50%;
    width: 19px;
    height: 19px;
    transform: translateY(-50%);
    color: #24364d;
    pointer-events: none;
}
.search-wrap input {
    width: 100%;
    height: 44px;
    border: 1px solid #d9e1eb;
    border-radius: 8px;
    background: #fff;
    color: var(--c-text);
    padding: 0 16px 0 44px;
    font-size: 14px;
    outline: none;
    box-shadow: inset 0 1px 2px rgba(16, 32, 51, .04);
}
.search-wrap input:focus {
    border-color: var(--c-blue-500);
    box-shadow: 0 0 0 3px rgba(27, 127, 230, .12);
}
.pill-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.filter-pill {
    height: 34px;
    padding: 0 18px;
    border: 1px solid #dce4ed;
    border-radius: 8px;
    background: #fff;
    color: #182b43;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: color .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.filter-pill:hover {
    color: var(--c-blue-700);
    border-color: #b7d2ee;
}
.filter-pill.active {
    color: #fff;
    background: linear-gradient(180deg, #1c7fe7, #0756ac);
    border-color: var(--c-blue-600);
    box-shadow: 0 8px 18px rgba(18, 105, 200, .25);
}

/* ---------- Corpo: sidebar + produtos ---------- */
.catalog-body {
    display: grid;
    grid-template-columns: 288px 1fr;
    grid-template-areas: "side products" "spec products";
    grid-template-rows: auto 1fr;
    gap: 26px;
    align-items: start;
}
.catalog-body .sidebar-card { grid-area: side; }
.catalog-body .products-area { grid-area: products; }
.catalog-body .specialist-box { grid-area: spec; margin-top: 0; }

.sidebar-card {
    border: 1px solid var(--c-line);
    border-radius: 12px;
    background: #fff;
    padding: 20px 14px 16px;
    box-shadow: var(--c-shadow-soft);
}
.sidebar-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    padding: 0 4px;
    color: #132640;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.sidebar-title svg { width: 18px; height: 18px; color: #132640; }
.category-list {
    list-style: none;
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
}
.category-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #1f324b;
    font-size: 13.5px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.category-item svg { width: 18px; height: 18px; color: #56677c; flex: none; }
.category-item span:first-of-type { flex: 1; }
.category-item .count { color: #7a8899; font-weight: 700; font-size: 12px; }
.category-item:hover,
.category-item.active { background: var(--c-blue-100); color: #0a4389; }
.category-item:hover svg,
.category-item.active svg { color: var(--c-blue-600); }
.category-item.active .count { color: var(--c-blue-600); }

.specialist-box {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 14px;
    padding: 20px 18px;
    border-radius: 12px;
    background: linear-gradient(180deg, #f3f8ff 0%, #edf5ff 100%);
    border: 1px solid #dbe9fb;
}
.specialist-box > svg { width: 32px; height: 32px; color: #12263d; margin-top: 4px; }
.specialist-box strong {
    display: block;
    margin-bottom: 8px;
    color: #142842;
    font-size: 14px;
    font-weight: 800;
}
.specialist-box p {
    margin: 0 0 16px;
    color: #32445c;
    font-size: 13px;
    line-height: 1.4;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(180deg, #1d7fe7 0%, #0755aa 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(18, 105, 200, .28);
    font-size: 12.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .3px;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease;
}
.cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(18, 105, 200, .38);
}
.cta-button svg { width: 16px; height: 16px; flex: none; }

/* ---------- Grid de produtos ---------- */
.products-area { min-width: 0; }
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.product-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--c-line);
    border-radius: 12px;
    background: #fff;
    padding: 14px;
    box-shadow: 0 8px 22px rgba(10, 26, 43, .05);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.product-card:hover {
    transform: translateY(-3px);
    border-color: #b8d6f5;
    box-shadow: var(--c-shadow-soft);
}
.product-media {
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    background: #f4f7fb;
}
.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-title {
    margin: 0 0 4px;
    color: #0e2037;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.15;
}
.product-category {
    margin: 0 0 12px;
    color: #718094;
    font-size: 12px;
    font-weight: 600;
}
.details-button {
    margin-top: auto;
    width: 100%;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #74a9e5;
    border-radius: 8px;
    background: #fff;
    color: #075db8;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .3px;
    transition: background .16s ease, color .16s ease;
}
.details-button svg { width: 14px; height: 14px; }
.details-button:hover { background: var(--c-blue-600); color: #fff; border-color: var(--c-blue-600); }

.empty-state {
    display: none;
    min-height: 260px;
    align-items: center;
    justify-content: center;
    border: 1px dashed #bdd2e8;
    border-radius: 12px;
    color: var(--c-muted);
    text-align: center;
    background: #f8fbff;
    padding: 30px;
}
.empty-state.show { display: flex; }
.empty-state b { display: block; margin-bottom: 6px; color: #1f324b; font-size: 16px; }
.empty-state p { margin: 0; font-size: 13px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1200px) {
    .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
    .catalog-tools { grid-template-columns: 1fr; gap: 16px; }
    .catalog-body {
        grid-template-columns: 1fr;
        grid-template-areas: "side" "products" "spec";
        grid-template-rows: auto;
    }
    .catalog-body .specialist-box { margin-top: 4px; }
}
@media (max-width: 720px) {
    .catalog-panel { padding: 16px; margin-top: -34px; }
    .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .filter-pill { flex: 1 1 auto; }
}
@media (max-width: 440px) {
    .products-grid { grid-template-columns: 1fr; }
}
