/* ================= BANNER DO CATÁLOGO ================= */
.catalog-hero {
    background: linear-gradient(135deg, #071324 0%, #0d223d 60%, #0a1b30 100%);
    padding: 46px 0;
    color: #ffffff;
    border-bottom: 3px solid var(--celeste);
}

.catalog-hero-inner {
    text-align: center;
    max-width: 760px;
}

.catalog-kicker {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--celeste-light);
    background: rgba(0, 180, 216, 0.14);
    border: 1px solid rgba(0, 180, 216, 0.35);
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.catalog-hero h1 {
    font-size: 34px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: -0.4px;
}

.catalog-hero p {
    font-size: 15px;
    color: #cbd5e1;
    line-height: 1.6;
}

/* ================= ESTRUTURA PRINCIPAL ================= */
.catalog-section {
    background-color: var(--bg-gray);
    padding: 36px 0 60px;
    min-height: 65vh;
}

/* ================= BARRA DE BUSCA E TÍTULO ================= */
.catalog-toolbar {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: 0 2px 8px rgba(7, 19, 36, 0.03);
}

.catalog-toolbar-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.catalog-toolbar-title h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--navy-dark);
}

.catalog-total-badge {
    font-size: 12px;
    font-weight: 700;
    color: var(--celeste-dark);
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.catalog-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 4px 4px 4px 12px;
    flex: 1;
    max-width: 420px;
    min-width: 240px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.catalog-search-form:focus-within {
    border-color: var(--celeste);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.14);
}

.catalog-search-form input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    color: var(--text-dark);
    width: 100%;
    padding: 7px 4px;
}

.btn-catalog-search {
    background: var(--celeste);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.btn-catalog-search:hover {
    background: var(--celeste-dark);
}

/* ================= PILLS DE CATEGORIA ================= */
.cat-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    background: #ffffff;
    color: var(--text-dark);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.cat-pill:hover {
    border-color: var(--celeste);
    color: var(--celeste-dark);
    background: #f0f9ff;
    transform: translateY(-1px);
}

.cat-pill.active {
    background: var(--navy-dark);
    color: #ffffff;
    border-color: var(--navy-dark);
    box-shadow: 0 4px 10px rgba(7, 19, 36, 0.14);
}

.cat-pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 19px;
    padding: 0 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    background: #f1f5f9;
    color: #475569;
}

.cat-pill.active .cat-pill-count {
    background: var(--celeste);
    color: #ffffff;
}

/* ================= BARRA DE RESULTADO DE BUSCA ================= */
.search-results-bar {
    background: #ffffff;
    border: 1px solid #bae6fd;
    border-left: 4px solid var(--celeste);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.search-results-bar strong {
    color: var(--navy-dark);
}

.btn-clear-search {
    color: var(--celeste-dark);
    font-weight: 700;
    font-size: 12px;
    padding: 6px 12px;
    background: #f0f9ff;
    border-radius: 6px;
    white-space: nowrap;
    transition: background 0.2s;
}

.btn-clear-search:hover {
    background: #e0f2fe;
}

/* ================= BLOCOS DE CATEGORIA ================= */
.cat-section-block {
    margin-bottom: 34px;
}

.cat-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    margin-bottom: 18px;
    border-bottom: 2px solid var(--border);
}

.cat-section-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--navy-dark);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-left: 4px solid var(--celeste);
    padding-left: 10px;
}

.cat-section-count {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}

/* ================= GRID E CARDS DE PRODUTO ================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.product-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    border-color: #cbd5e1;
    box-shadow: 0 12px 24px rgba(7, 19, 36, 0.08);
}

/* Área da foto */
.prod-media {
    position: relative;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    padding: 12px 12px 10px;
}

.prod-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: var(--celeste);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 4px 9px;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0, 180, 216, 0.25);
}

.prod-img-wrap {
    height: 185px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.prod-img-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.prod-main-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.product-card:hover .prod-main-img {
    transform: scale(1.03);
}

/* Mini galeria de até 6 fotos */
.prod-thumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
}

.prod-thumb-btn {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    padding: 2px;
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.prod-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
    pointer-events: none;
    display: block;
}

.prod-thumb-btn:hover {
    border-color: var(--celeste);
    transform: translateY(-1px);
}

.prod-thumb-btn.active {
    border-color: var(--celeste);
    box-shadow: 0 0 0 2px rgba(0, 180, 216, 0.2);
}

/* Corpo do card */
.prod-body {
    padding: 14px 16px 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.prod-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.prod-category {
    font-size: 10px;
    font-weight: 800;
    color: var(--celeste-dark);
    background: #e0f2fe;
    padding: 3px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.prod-code {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prod-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--navy-dark);
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prod-title a:hover {
    color: var(--celeste-dark);
}

.prod-brand {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.prod-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Rodapé do card sempre alinhado na base */
.prod-footer {
    padding: 12px 16px 15px;
    margin-top: auto;
    border-top: 1px solid #f1f5f9;
    background: #ffffff;
}

.prod-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--navy-dark);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.prod-actions {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 10px;
}

.qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: #f8fafc;
    overflow: hidden;
    flex-shrink: 0;
}

.qty-control button {
    width: 28px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 700;
    color: var(--navy-dark);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.qty-control button:hover {
    background: #e2e8f0;
}

.qty-control input {
    width: 28px;
    height: 36px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    outline: none;
}

.btn-add-quote {
    flex: 1;
    background: var(--celeste);
    color: #ffffff;
    border: none;
    border-radius: 7px;
    padding: 0 12px;
    height: 36px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}

.btn-add-quote:hover {
    background: var(--celeste-dark);
}

.btn-add-quote:active {
    transform: scale(0.98);
}

.prod-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 7px 10px;
    border-radius: 7px;
    border: 1px solid var(--border);
    background: #f8fafc;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    transition: all 0.2s;
}

.prod-details:hover {
    border-color: var(--celeste);
    color: var(--celeste-dark);
    background: #f0f9ff;
}

.icon-eye-svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* ================= ESTADO VAZIO ================= */
.empty-catalog-box {
    text-align: center;
    padding: 56px 24px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 24px;
}

.empty-catalog-icon {
    width: 42px;
    height: 42px;
    opacity: 0.28;
    margin-bottom: 14px;
}

.empty-catalog-box h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--navy-dark);
    margin-bottom: 8px;
}

.empty-catalog-box p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.btn-reset-catalog {
    display: inline-block;
    background: var(--celeste);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.2s;
}

.btn-reset-catalog:hover {
    background: var(--celeste-dark);
}

/* ================= PAGINAÇÃO ================= */
.pagination-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 28px 0 8px;
}

.pagination-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.page-link {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 7px;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.page-link:hover:not(.disabled):not(.active) {
    border-color: var(--celeste);
    color: var(--celeste-dark);
    background: #f0f9ff;
}

.page-link.active {
    background: var(--celeste);
    color: #ffffff;
    border-color: var(--celeste);
}

.page-link.disabled {
    opacity: 0.45;
    pointer-events: none;
    background: #f8fafc;
}

.page-dots {
    padding: 0 6px;
    color: var(--text-muted);
    font-weight: 700;
}

.pagination-info {
    font-size: 12px;
    color: var(--text-muted);
}

/* ================= BANNER ENVÍOS Y ADUANAS ================= */
.customs-banner {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-top: 36px;
    background: #ffffff;
}

.customs-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    z-index: 0;
}

.customs-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.9) 28%, rgba(255, 255, 255, 0.97) 48%, #ffffff 100%);
    z-index: 1;
}

.customs-content {
    position: relative;
    z-index: 2;
    padding: 24px 28px 24px 32%;
}

.customs-content h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--navy-dark);
    margin-bottom: 6px;
}

.customs-content p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.customs-steps {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--celeste);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-text {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.25;
}

.step-arrow {
    color: var(--celeste);
    font-weight: 800;
}

.btn-customs-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--celeste);
    color: #ffffff;
    padding: 9px 18px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    transition: background 0.2s;
}

.btn-customs-cta:hover {
    background: var(--celeste-dark);
}

/* ================= RESPONSIVIDADE ================= */
@media (max-width: 1180px) {
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .customs-content {
        padding: 24px;
    }

    .customs-overlay {
        background: rgba(255, 255, 255, 0.92);
    }
}

@media (max-width: 600px) {
    .catalog-hero {
        padding: 32px 0;
    }

    .catalog-hero h1 {
        font-size: 26px;
    }

    .catalog-toolbar {
        padding: 14px;
    }

    .catalog-search-form {
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .prod-img-wrap {
        height: 200px;
    }

    .search-results-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .step-arrow {
        display: none;
    }
}