.catalogo-page {
    background: #f4f7f9;
}

.catalogo-page .header {
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.catalogo-page .header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3px 5%;
}

.catalogo-page .logo img {
    display: block;
    width: auto;
    height: 90px;
    max-width: 120px;
    object-fit: contain;
    border-radius: 60px;
}

.catalogo-page .search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 50%;
    min-width: 280px;
    border-radius: 40px;
    padding: 5px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.08);
}

.catalogo-page .search-box input {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 12px 16px;
    outline: 0;
}

.catalogo-page .search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 10px 18px;
    border-radius: 30px;
    background: transparent;
}

.catalogo-page .search-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.catalogo-page .nav-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 5%;
    border-top: 1px solid #dddddd;
}

.catalogo-page .menu {
    display: flex;
    gap: 24px;
}

.catalogo-shell {
    width: min(1320px, 94%);
    margin: 24px auto 0;
    padding-top: 0;
}

.catalogo-breadcrumb {
    margin-bottom: 18px;
}

.catalogo-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 24px;
    align-items: end;
    padding: 26px;
    background: #ffffff;
    border: 1px solid #e4e9ee;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(16, 44, 61, 0.08);
}

.catalogo-kicker {
    display: inline-flex;
    color: #2f7fa1;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0;
    margin-bottom: 8px;
}

.catalogo-toolbar h1 {
    font-size: 34px;
    line-height: 1.1;
    margin-bottom: 8px;
}

.catalogo-toolbar p {
    color: #51606d;
    margin: 0;
}

.catalogo-search {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 54px;
    padding: 0 12px 0 18px;
    background: #f8fafc;
    border: 1px solid #d7e0e7;
    border-radius: 8px;
}

.catalogo-search input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    min-width: 0;
}

.catalogo-search button,
.view-toggle button,
.catalogo-pagination button {
    border: 1px solid #d7e0e7;
    background: #fff;
    color: #263642;
    border-radius: 8px;
    min-width: 40px;
    height: 40px;
}

.catalogo-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 18px 0;
}

.catalogo-stats div {
    background: #ffffff;
    border: 1px solid #e4e9ee;
    border-radius: 8px;
    padding: 16px;
}

.catalogo-stats strong {
    display: block;
    font-size: 24px;
    color: #18384b;
}

.catalogo-stats span {
    color: #60707d;
    font-size: 14px;
}

.catalogo-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.catalogo-filters,
.catalogo-results {
    background: #ffffff;
    border: 1px solid #e4e9ee;
    border-radius: 8px;
}

.catalogo-filters {
    position: sticky;
    top: 132px;
    padding: 18px;
}

.filter-head,
.result-actions,
.catalogo-card-meta,
.catalogo-card-actions,
.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-head {
    justify-content: space-between;
    margin-bottom: 12px;
}

.filter-head h2 {
    font-size: 20px;
}

.filter-head button,
.catalogo-export {
    border: 0;
    background: #eaf5f9;
    color: #225a76;
    border-radius: 8px;
    padding: 9px 12px;
    font-weight: 700;
}

.filter-label {
    display: block;
    margin: 18px 0 8px;
    font-size: 13px;
    font-weight: 800;
    color: #263642;
    text-transform: uppercase;
}

.catalogo-control,
.result-actions .form-select {
    border-radius: 8px;
}

.check-list {
    display: grid;
    gap: 8px;
    max-height: 210px;
    overflow: auto;
    padding-right: 4px;
}

.check-list.compact {
    max-height: 155px;
}

.check-list label,
.radio-row {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #33424d;
    font-size: 14px;
}

.check-list label small {
    margin-left: auto;
    color: #72818e;
    background: #f0f4f7;
    border-radius: 999px;
    padding: 2px 7px;
}

.check-list input,
.radio-row input {
    accent-color: #2f7fa1;
}

#priceRange {
    width: 100%;
    accent-color: #2f7fa1;
}

.price-inputs {
    margin-top: 10px;
}

.price-summary {
    margin: 8px 0 0;
    color: #60707d;
    font-size: 13px;
    font-weight: 700;
}

.catalogo-results {
    padding: 18px;
}

.catalogo-alert {
    margin-bottom: 16px;
    border: 1px solid #f0c36d;
    background: #fff8e5;
    color: #74500f;
    border-radius: 8px;
    padding: 12px 14px;
    font-weight: 700;
}

.result-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.view-toggle {
    display: inline-flex;
    gap: 6px;
    margin-right: auto;
}

.view-toggle button.active {
    background: #2f7fa1;
    color: #fff;
    border-color: #2f7fa1;
}

.result-actions .form-select {
    width: auto;
    min-width: 132px;
}

.catalogo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
    gap: 18px;
}

.catalogo-grid.list {
    grid-template-columns: 1fr;
}

.catalogo-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 100%;
    border: 1px solid #e1e8ee;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(16, 44, 61, 0.07);
}

.catalogo-grid.list .catalogo-card {
    display: grid;
    grid-template-columns: 190px 1fr auto;
    min-height: 190px;
}

.catalogo-card-image {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    background: #f1f5f8;
}

.catalogo-grid.list .catalogo-card-image {
    aspect-ratio: auto;
    height: 100%;
}

.catalogo-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px;
}

.catalogo-card-image span {
    position: absolute;
    left: 10px;
    top: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.stock-ok {
    background: #1f8a5b;
}

.stock-out {
    background: #c0392b;
}

.catalogo-card-body {
    padding: 14px;
    flex: 1;
}

.catalogo-card-meta {
    justify-content: space-between;
    color: #647582;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.catalogo-card h3 {
    font-size: 17px;
    line-height: 1.3;
    margin: 10px 0 8px;
    min-height: 44px;
}

.catalogo-card p {
    color: #5a6975;
    font-size: 14px;
    min-height: 42px;
}

.catalogo-card-company {
    color: #2f7fa1;
    font-size: 13px;
    font-weight: 800;
}

.catalogo-card-company span,
.catalogo-card-stock span {
    display: block;
    margin-bottom: 2px;
    color: #6b7c88;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.catalogo-card-stock {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    background: #f4f8fa;
    border: 1px solid #dce8ee;
}

.catalogo-card-stock strong {
    color: #1f8a5b;
    font-size: 13px;
    text-align: right;
}

.catalogo-card-stock.is-empty strong {
    color: #c0392b;
}

.catalogo-card-price {
    margin-top: 10px;
    color: #142f41;
    font-size: 22px;
    font-weight: 900;
}

.catalogo-card-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0 14px 14px;
}

.catalogo-grid.list .catalogo-card-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 14px;
    min-width: 190px;
}

.catalogo-qty {
    display: grid;
    gap: 4px;
    margin: 0;
    color: #5a6975;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.catalogo-qty-input {
    width: 100%;
    min-height: 40px;
    border: 1px solid #d7e0e7;
    border-radius: 0;
    padding: 0 10px;
    color: #142f41;
    font-weight: 800;
    text-align: center;
}

.catalogo-qty-control {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
}

.catalogo-qty-btn {
    min-height: 40px;
    border: 1px solid #d7e0e7;
    background: #f4f8fa;
    color: #244354;
    font-weight: 900;
    cursor: pointer;
}

.catalogo-qty-btn:first-child {
    border-radius: 8px 0 0 8px;
}

.catalogo-qty-btn:last-child {
    border-radius: 0 8px 8px 0;
}

.catalogo-qty-btn:hover,
.catalogo-qty-btn:focus-visible {
    background: #e4f0f5;
}

.catalogo-card-actions a,
.catalogo-card-actions button {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 8px;
    padding: 10px;
    border: 1px solid #d7e0e7;
    font-weight: 800;
    color: #244354;
    text-decoration: none;
}

.catalogo-card-actions a:last-child,
.catalogo-cart-btn {
    background: #2f7fa1;
    color: #fff;
    border-color: #2f7fa1;
    cursor: pointer;
}

.catalogo-cart-btn:hover,
.catalogo-cart-btn:focus-visible {
    background: #255f7a;
    color: #ffffff;
}

.catalogo-quote-btn {
    background: #25d366;
    border-color: #1fb457;
    color: #063b24;
}

.catalogo-quote-btn:hover,
.catalogo-quote-btn:focus-visible {
    background: #1ebe5d;
    border-color: #159947;
    color: #052e1a;
}

.catalogo-cart-btn:disabled {
    background: #9aa9b2;
    border-color: #9aa9b2;
    cursor: not-allowed;
    opacity: 0.78;
}

.catalogo-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 24px 0 8px;
    flex-wrap: wrap;
}

.catalogo-pagination button {
    padding: 0 14px;
}

.catalogo-pagination button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.catalogo-total {
    text-align: center;
    color: #60707d;
    font-size: 14px;
}

.catalogo-skeleton {
    min-height: 360px;
    border-radius: 8px;
    background: linear-gradient(90deg, #edf2f6 0%, #f8fafc 50%, #edf2f6 100%);
    background-size: 200% 100%;
    animation: catalogoShimmer 1.1s linear infinite;
}

@keyframes catalogoShimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

@media (max-width: 980px) {
    .catalogo-shell {
        margin-top: 18px;
    }

    .catalogo-toolbar,
    .catalogo-layout {
        grid-template-columns: 1fr;
    }

    .catalogo-filters {
        position: static;
    }
}

@media (max-width: 640px) {
    .catalogo-page .header-top {
        flex-wrap: wrap;
        justify-content: center;
    }

    .catalogo-page .logo img {
        height: 72px;
    }

    .catalogo-page .search-box {
        width: 100%;
        min-width: 0;
    }

    .catalogo-page .nav-bar {
        display: none;
    }

    .catalogo-shell {
        width: 94%;
        margin-top: 12px;
    }

    .catalogo-toolbar {
        padding: 18px;
    }

    .catalogo-toolbar h1 {
        font-size: 26px;
    }

    .catalogo-stats {
        grid-template-columns: 1fr;
    }

    .result-actions {
        justify-content: stretch;
    }

    .result-actions .form-select,
    .catalogo-export {
        width: 100%;
    }

    .view-toggle {
        width: 100%;
    }

    .view-toggle button {
        flex: 1;
    }

    .catalogo-grid.list .catalogo-card {
        display: flex;
    }
}
