:root {
    --brand-orange: #ff5e2b;
    --brand-orange-dark: #e85222;
    --brand-navy: #25324a;
    --ink: #202631;
    --muted: #707784;
    --surface: #ffffff;
    --surface-soft: #f7f8fa;
    --border: #e4e7eb;
    --border-strong: #d7dbe1;
    --radius: 12px;
    --content: 1380px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--surface-soft);
    color: var(--ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.catalog-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.catalog-header-inner {
    width: min(calc(100% - 48px), var(--content));
    min-height: 116px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 220px 1fr auto;
    gap: 34px;
    align-items: center;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
}

.catalog-heading h1 {
    margin: 0 0 6px;
    color: var(--brand-navy);
    font-size: clamp(25px, 2vw, 34px);
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -0.018em;
}

.catalog-heading p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.print-meta { display: none; }

.site-link {
    color: var(--brand-navy);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.site-link:hover { color: var(--brand-orange); }

.catalog-main {
    width: min(calc(100% - 48px), var(--content));
    margin: 0 auto;
    padding: 30px 0 56px;
}

.catalog-controls {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.filter-block {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.control-label {
    display: block;
    margin-bottom: 11px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.category-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 5px;
    scrollbar-width: thin;
    scrollbar-color: #cfd3d8 transparent;
    -webkit-overflow-scrolling: touch;
}

.category-filters::-webkit-scrollbar { height: 5px; }
.category-filters::-webkit-scrollbar-track { background: transparent; }
.category-filters::-webkit-scrollbar-thumb {
    background: #cfd3d8;
    border-radius: 999px;
}

.filter-chip {
    appearance: none;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: var(--surface);
    color: #505762;
    padding: 8px 13px;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    flex: 0 0 auto;
    transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.filter-chip:hover {
    border-color: #bbc0c8;
    color: var(--ink);
}

.filter-chip.is-active {
    border-color: var(--brand-orange);
    background: var(--brand-orange);
    color: #fff;
}

.catalog-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 0 0 auto;
}


.action-button {
    appearance: none;
    border: 1px solid var(--brand-navy);
    border-radius: 8px;
    background: var(--brand-navy);
    color: #fff;
    padding: 10px 15px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease;
}

.action-button:hover {
    border-color: #172338;
    background: #172338;
}

.catalog-summary {
    display: flex;
    align-items: baseline;
    gap: 5px;
    padding: 18px 2px 2px;
    color: var(--muted);
    font-size: 13px;
}

.catalog-summary strong {
    color: var(--ink);
    font-size: 15px;
}

.category-section {
    padding-top: 34px;
}

.category-section.is-hidden { display: none; }

.category-heading-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
    padding-bottom: 11px;
    border-bottom: 2px solid var(--brand-orange);
}

.category-heading-row h2 {
    margin: 0;
    color: var(--brand-navy);
    font-size: 22px;
    line-height: 1.25;
    font-weight: 760;
    letter-spacing: -0.018em;
}

.category-heading-row span {
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.product-card {
    min-width: 0;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    border-color: #d2d6dc;
    box-shadow: 0 8px 26px rgba(25, 33, 46, .07);
}

.product-image-link {
    display: block;
    aspect-ratio: 1 / 1;
    background: #fff;
    border-bottom: 1px solid #edf0f2;
    overflow: hidden;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 18px;
    transition: transform .24s ease;
}

.product-card:hover .product-image { transform: scale(1.025); }

.product-info {
    display: flex;
    flex-direction: column;
    min-height: 116px;
    padding: 15px 16px 16px;
}

.product-title {
    margin: 0;
    font-size: 14px;
    line-height: 1.42;
    font-weight: 680;
}

.product-title a {
    text-decoration: none;
}

.product-title a:hover { color: var(--brand-orange); }


.catalog-error,
.catalog-empty {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: #555d68;
}

.catalog-footer {
    padding: 25px 24px 35px;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
}

.catalog-footer a { text-decoration: none; }
.catalog-footer a:hover { color: var(--brand-orange); }

@media (max-width: 1200px) {
    .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
    .catalog-header-inner { grid-template-columns: 180px 1fr; }
    .site-link { display: none; }
    .catalog-controls { align-items: stretch; flex-direction: column; }
    .catalog-actions { justify-content: space-between; }
}

@media (max-width: 900px) {
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .catalog-header-inner,
    .catalog-main { width: min(calc(100% - 28px), var(--content)); }

    .catalog-header-inner {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 24px 0;
    }

    .brand-logo { width: 190px; }
    .catalog-heading h1 { font-size: 27px; }
    .catalog-main { padding-top: 18px; }
    .catalog-controls { padding: 16px; }
    .catalog-actions { align-items: flex-start; flex-direction: column; gap: 14px; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .product-image { padding: 12px; }
    .product-info { min-height: 112px; padding: 13px; }
    .category-heading-row h2 { font-size: 20px; }
}

@media (max-width: 430px) {
    .product-grid { grid-template-columns: 1fr; }
    .product-image-link { aspect-ratio: 4 / 3; }
    .product-info { min-height: 0; }
}

@page {
    size: A4 portrait;
    margin: 11mm;
}

@media print {
    :root { --ink: #111; --brand-navy: #111; }

    body {
        background: #fff;
        color: #111;
        font-size: 9pt;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .screen-only { display: none !important; }
    .print-meta {
        display: block;
        margin-top: 1.5mm !important;
        color: #555 !important;
        font-size: 7.5pt !important;
    }

    .catalog-header {
        border-bottom: 1px solid #bbb;
        padding-bottom: 5mm;
    }

    .catalog-header-inner {
        width: 100%;
        min-height: auto;
        display: grid;
        grid-template-columns: 42mm 1fr;
        gap: 7mm;
        padding: 0;
    }

    .brand-logo { width: 46mm; }

    .catalog-heading h1 {
        margin-bottom: 1mm;
        font-size: 18pt;
    }

    .catalog-heading p {
        font-size: 8.5pt;
        line-height: 1.35;
    }

    .catalog-main {
        width: 100%;
        padding: 0;
    }

    .category-section {
        padding-top: 7mm;
        break-before: auto;
        page-break-before: auto;
    }
    .category-section.is-hidden { display: none !important; }

    .category-heading-row {
        margin-bottom: 4mm;
        padding-bottom: 2mm;
        border-bottom: 1.5pt solid #ff5e2b;
        break-after: avoid;
        page-break-after: avoid;
    }

    .category-heading-row h2 { font-size: 15pt; }
    .category-heading-row span { font-size: 8pt; }

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4mm;
    }

    .product-card {
        border: .6pt solid #ccc;
        border-radius: 0;
        box-shadow: none !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .product-card:hover { transform: none; }

    .product-image-link {
        aspect-ratio: 1 / 1;
        border-bottom: .5pt solid #ddd;
    }

    .product-image { padding: 3mm; }

    .product-info {
        min-height: 28mm;
        padding: 3mm;
    }

    .product-title {
        font-size: 9pt;
        line-height: 1.3;
    }

    a { text-decoration: none !important; }

    .catalog-footer {
        padding: 7mm 0 0;
        color: #555;
        font-size: 8pt;
    }
}

/* Navegação rápida fixa em largura total — v1.0.4 */
body {
    padding-bottom: 112px;
}

.catalog-jumpbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(243, 243, 243, .985);
    border-top: 1px solid #dddddd;
    box-shadow: 0 -4px 18px rgba(25, 33, 46, .08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.jumpbar-inner {
    width: min(calc(100% - 34px), var(--content));
    margin: 0 auto;
    padding: 8px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 3px 0;
}

.jumpbar-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 9px 14px;
    border-radius: 6px;
    color: #333333;
    font-size: 15px;
    line-height: 1.15;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color .18s ease, background .18s ease;
}

.jumpbar-link::after {
    content: "";
    position: absolute;
    right: 0;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: #d8d8d8;
}

.jumpbar-link:last-child::after { display: none; }

.jumpbar-link:hover,
.jumpbar-link:focus-visible {
    color: #222222;
    background: #e7e7e7;
    outline: none;
}

.jumpbar-link.is-current {
    color: var(--brand-orange-dark);
    background: #ffffff;
    font-weight: 700;
    box-shadow: inset 0 -3px 0 var(--brand-orange);
}

.jumpbar-home {
    font-weight: 700;
}

@media (max-width: 900px) {
    body { padding-bottom: 70px; }

    .jumpbar-inner {
        width: 100%;
        padding: 8px 10px;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: thin;
        scrollbar-color: #c8c8c8 transparent;
        -webkit-overflow-scrolling: touch;
    }

    .jumpbar-inner::-webkit-scrollbar { height: 4px; }
    .jumpbar-inner::-webkit-scrollbar-track { background: transparent; }
    .jumpbar-inner::-webkit-scrollbar-thumb {
        background: #c8c8c8;
        border-radius: 999px;
    }

    .jumpbar-link {
        flex: 0 0 auto;
        min-height: 40px;
        padding: 9px 13px;
        font-size: 14px;
    }
}

@media print {
    body { padding-bottom: 0 !important; }
    .catalog-jumpbar { display: none !important; }
}

/* Ações do catálogo — v1.0.11 */
.action-button-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-color: #1fa855;
    background: #25d366;
    color: #fff;
    text-decoration: none;
}

.action-button-whatsapp:hover {
    border-color: #188a46;
    background: #1fa855;
    color: #fff;
}

/* Download em PDF — v1.0.6 */
.action-button-pdf {
    border-color: var(--brand-orange);
    background: var(--brand-orange);
}

.action-button-pdf:hover {
    border-color: var(--brand-orange-dark);
    background: var(--brand-orange-dark);
}

.action-button:disabled,
.action-button.is-loading {
    cursor: wait;
    opacity: .72;
}

@media (max-width: 760px) {
    .catalog-actions .action-button {
        width: 100%;
    }
}

/* Ícone do botão PDF — v1.0.6 */
.action-button-pdf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.action-button-icon {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
}

.action-button.is-loading .action-button-icon {
    opacity: .75;
}


/* Ajustes de navegação e filtros — v1.0.7 */
.mobile-filter-toggle,
.jumpbar-mobile-toggle {
    display: none;
}

/* Desktop: as ações ficam em uma linha própria para liberar toda a largura às categorias. */
@media (min-width: 761px) {
    .catalog-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .filter-block {
        width: 100%;
        overflow: visible;
    }

    .category-filters {
        overflow: visible;
        padding-bottom: 0;
        gap: 6px;
    }

    .category-filters::-webkit-scrollbar { display: none; }

    .filter-chip {
        flex: 1 1 0;
        min-width: 0;
        padding: 8px 8px;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.18;
        letter-spacing: .018em;
        text-align: center;
        text-transform: uppercase;
        white-space: normal;
    }

    .catalog-actions {
        width: 100%;
        justify-content: flex-end;
        gap: 12px;
        padding-top: 15px;
        border-top: 1px solid var(--border);
    }
}

/* Mobile: filtro expansível em grade, sem rolagem horizontal. */
@media (max-width: 760px) {
    .filter-block {
        overflow: visible;
    }

    .mobile-filter-toggle {
        appearance: none;
        width: 100%;
        min-height: 48px;
        display: grid;
        grid-template-columns: 1fr auto 18px;
        align-items: center;
        gap: 9px;
        padding: 11px 13px;
        border: 1px solid var(--border-strong);
        border-radius: 9px;
        background: #fff;
        color: var(--ink);
        font: inherit;
        font-size: 14px;
        font-weight: 650;
        text-align: left;
        cursor: pointer;
    }

    .mobile-filter-status {
        max-width: 135px;
        overflow: hidden;
        color: var(--brand-orange-dark);
        font-size: 12px;
        font-weight: 700;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-filter-toggle svg {
        transition: transform .18s ease;
    }

    .filter-block.is-mobile-open .mobile-filter-toggle svg {
        transform: rotate(180deg);
    }

    .category-filters {
        display: none;
        width: 100%;
        margin-top: 10px;
        padding: 10px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        overflow: visible;
        border: 1px solid var(--border);
        border-radius: 10px;
        background: #fafafa;
    }

    .filter-block.is-mobile-open .category-filters {
        display: grid;
    }

    .filter-chip {
        width: 100%;
        min-width: 0;
        min-height: 42px;
        padding: 8px 9px;
        border-radius: 7px;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.25;
        letter-spacing: .015em;
        text-align: center;
        text-transform: uppercase;
        white-space: normal;
    }

    .catalog-actions {
        width: 100%;
    }

    /* Barra fixa mobile: botão compacto + painel vertical em grade. */
    body { padding-bottom: 68px; }

    .catalog-jumpbar {
        background: #f3f3f3;
    }

    .jumpbar-mobile-toggle {
        appearance: none;
        width: 100%;
        min-height: 56px;
        display: grid;
        grid-template-columns: auto 1fr 18px;
        align-items: center;
        gap: 10px;
        padding: 10px 16px;
        border: 0;
        background: transparent;
        color: #333;
        font: inherit;
        cursor: pointer;
        text-align: left;
    }

    .jumpbar-mobile-label {
        font-size: 13px;
        font-weight: 700;
        white-space: nowrap;
    }

    .jumpbar-mobile-current {
        overflow: hidden;
        color: var(--brand-orange-dark);
        font-size: 13px;
        font-weight: 700;
        text-align: right;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .jumpbar-mobile-toggle svg {
        transition: transform .18s ease;
    }

    .catalog-jumpbar.is-mobile-open .jumpbar-mobile-toggle svg {
        transform: rotate(180deg);
    }

    .jumpbar-inner {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 100%;
        width: 100%;
        max-height: min(58vh, 470px);
        margin: 0;
        padding: 12px;
        display: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        overflow-x: hidden;
        overflow-y: auto;
        background: #f3f3f3;
        border-top: 1px solid #ddd;
        box-shadow: 0 -8px 24px rgba(25, 33, 46, .12);
        scrollbar-width: thin;
    }

    .catalog-jumpbar.is-mobile-open .jumpbar-inner {
        display: grid;
    }

    .jumpbar-link {
        width: 100%;
        min-width: 0;
        min-height: 42px;
        justify-content: center;
        padding: 9px 8px;
        border: 1px solid #dedede;
        border-radius: 7px;
        background: #fff;
        font-size: 12.5px;
        line-height: 1.2;
        text-align: center;
        white-space: normal;
    }

    .jumpbar-link::after { display: none; }

    .jumpbar-link.is-current {
        border-color: var(--brand-orange);
        box-shadow: none;
    }
}

@media (max-width: 430px) {
    .category-filters,
    .jumpbar-inner {
        grid-template-columns: 1fr;
    }
}

@media print {
    .mobile-filter-toggle,
    .jumpbar-mobile-toggle { display: none !important; }
}
