﻿:root {
    --b2b-blue: #2652b8;
    --b2b-green: #35b86f;
    --b2b-border: #e4e8ee;
    --b2b-soft: #f7f9fc;
    --b2b-text: #1f2937;
    --b2b-muted: #667085;
    --b2b-head: #dff3ff;
}

.b2b-rfq-top,
.b2b-add-cart {
    border: 0;
    border-radius: 6px;
    background: var(--b2b-green);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.b2b-catalog-page,
.b2b-listing {
    max-width: 1180px;
    margin: 0 auto 42px;
    color: var(--b2b-text);
}

body.b2b-catalog-template main.wp-block-group {
    padding-top: 0;
}

body.b2b-catalog-template .wp-site-blocks > main {
    min-height: calc(100vh - 190px);
    margin-block-start: 24px !important;
}

body.b2b-catalog-template .wp-block-post-title {
    max-width: 1180px;
    margin: 18px auto 16px;
    font-size: 30px;
    line-height: 1.2;
}

body.b2b-catalog-template .entry-content,
body.b2b-catalog-template .wp-block-post-content {
    margin-top: 0;
}

body.b2b-product-template .woocommerce {
    max-width: 1180px;
    margin: 0 auto 48px;
}

.b2b-breadcrumbs {
    display: flex;
    gap: 9px;
    align-items: center;
    margin: 4px 0 20px;
    color: var(--b2b-muted);
    font-size: 13px;
}

.b2b-breadcrumbs a {
    color: var(--b2b-muted);
    text-decoration: none;
}

.b2b-catalog-layout,
.b2b-listing-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.b2b-side-panel {
    max-height: 78vh;
    overflow-y: auto;
    padding: 16px 20px;
    border: 1px solid var(--b2b-border);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 3px 14px rgba(16, 24, 40, 0.07);
}

.b2b-side-panel h3 {
    margin: 0 0 16px;
    font-size: 17px;
}

.b2b-category-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.b2b-category-nav li a {
    display: block;
    margin: 0 -20px;
    padding: 9px 20px;
    color: var(--b2b-text);
    text-decoration: none;
    line-height: 1.2;
}

.b2b-category-nav li.is-active a {
    background: #dff1ff;
}

.b2b-page-title,
.b2b-listing-header h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.25;
}

.b2b-catalog-page--l2 .b2b-page-title {
    margin-bottom: 18px;
}

.b2b-selected-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    min-height: 42px;
    margin: -8px 0 18px;
    padding: 10px 0;
    border-top: 1px solid var(--b2b-border);
    border-bottom: 1px solid var(--b2b-border);
    color: var(--b2b-muted);
    font-size: 12px;
}

.b2b-clear-filters {
    color: #2b9fe8;
    text-decoration: none;
}

.b2b-selected-separator {
    width: 1px;
    height: 18px;
    background: var(--b2b-border);
}

.b2b-selected-label {
    color: var(--b2b-muted);
}

.b2b-selected-chip {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    border: 1px solid var(--b2b-border);
    border-radius: 14px;
    background: #fff;
    color: var(--b2b-text);
    text-decoration: none;
}

.b2b-selected-chip span {
    color: var(--b2b-muted);
    font-size: 14px;
    line-height: 1;
}

.b2b-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.b2b-category-card {
    display: grid;
    min-height: 154px;
    align-content: center;
    justify-items: center;
    padding: 16px 18px;
    border: 1px solid var(--b2b-border);
    border-radius: 7px;
    background: #fff;
    color: var(--b2b-text);
    text-align: center;
    text-decoration: none;
}

.b2b-category-card:hover {
    border-color: #9fc6dc;
    box-shadow: 0 6px 22px rgba(16, 24, 40, 0.08);
}

.b2b-card-image {
    display: grid;
    width: 118px;
    height: 76px;
    place-items: center;
    margin-bottom: 10px;
}

.b2b-card-image img {
    max-width: 118px;
    max-height: 76px;
    object-fit: contain;
}

.b2b-card-image span {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    border-radius: 50%;
    background: var(--b2b-head);
    color: var(--b2b-blue);
    font-size: 32px;
    font-weight: 800;
}

.b2b-category-name {
    display: block;
    font-size: 15px;
    line-height: 1.25;
}

.b2b-category-note {
    display: block;
    margin-top: 4px;
    color: var(--b2b-muted);
    font-size: 12px;
    line-height: 1.35;
}

.b2b-explore-more {
    margin-top: 32px;
}

.b2b-explore-more h2 {
    margin: 0 0 16px;
    font-size: 18px;
}

.b2b-explore-more div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 72px;
}

.b2b-explore-more a {
    color: var(--b2b-muted);
    font-size: 15px;
    text-decoration: none;
}

.b2b-listing-header {
    display: grid;
    grid-template-columns: 1fr max-content max-content;
    gap: 18px;
    align-items: center;
    justify-items: center;
    margin: 0 0 30px 304px;
}

.b2b-result-count {
    color: var(--b2b-muted);
    font-size: 14px;
}

.b2b-rfq-top {
    padding: 11px 24px;
    box-shadow: 0 3px 12px rgba(53, 184, 111, 0.35);
}

.b2b-filter-group {
    margin: 0 0 18px;
    padding: 0 0 18px;
    border: 0;
    border-bottom: 1px dashed #cfd6df;
}

.b2b-filter-group legend {
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 800;
}

.b2b-filter-option {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 7px 0;
    color: #344054;
    font-size: 13px;
}

.b2b-filter-option input,
.b2b-faux-checkbox {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    accent-color: var(--b2b-green);
}

.b2b-filter-link {
    text-decoration: none;
}

.b2b-filter-link:hover {
    color: var(--b2b-blue);
}

.b2b-faux-checkbox {
    display: inline-block;
    border: 1px solid #cbd5e1;
    border-radius: 3px;
    background: #fff;
}

.b2b-filter-link:hover .b2b-faux-checkbox {
    border-color: var(--b2b-blue);
}

.b2b-filter-link.is-selected .b2b-faux-checkbox {
    display: grid;
    place-items: center;
    border-color: #4e73df;
    background: #4e73df;
}

.b2b-filter-link.is-selected .b2b-faux-checkbox::after {
    content: "";
    width: 8px;
    height: 5px;
    margin-top: -1px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}

.b2b-filter-actions {
    position: sticky;
    bottom: 0;
    display: flex;
    gap: 10px;
    padding-top: 12px;
    background: #fff;
}

.b2b-filter-actions button,
.b2b-filter-actions a {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 4px;
    border: 1px solid var(--b2b-green);
    font-size: 14px;
    text-decoration: none;
}

.b2b-filter-actions button {
    background: var(--b2b-green);
    color: #fff;
}

.b2b-filter-actions a {
    background: #fff;
    color: var(--b2b-green);
}

.b2b-series-block {
    margin-bottom: 34px;
}

.b2b-series-head {
    display: grid;
    grid-template-columns: 1fr 160px;
    gap: 20px;
    align-items: end;
    margin-bottom: 16px;
}

.b2b-brand {
    display: block;
    color: var(--b2b-muted);
    font-size: 13px;
    letter-spacing: 0;
}

.b2b-series-head h2 {
    margin: 4px 0 0;
    font-size: 18px;
}

.b2b-series-image img {
    max-width: 150px;
    max-height: 90px;
    object-fit: contain;
}

.b2b-product-table-wrap {
    overflow-x: auto;
    background: #fff;
}

.b2b-product-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
    margin: 0;
    border: 1px solid var(--b2b-border);
    font-size: 13px;
}

.b2b-product-table th,
.b2b-product-table td,
.b2b-spec-table th,
.b2b-spec-table td {
    padding: 11px 13px;
    border-bottom: 1px solid var(--b2b-border);
    text-align: center;
    vertical-align: middle;
}

.b2b-product-table th {
    background: var(--b2b-head);
    color: var(--b2b-text);
    font-weight: 800;
}

.b2b-product-table td:nth-child(7),
.b2b-product-table td:nth-child(8) {
    font-weight: 700;
}

.b2b-product-table a {
    color: #19895a;
    text-decoration: none;
}

.b2b-price-link::after {
    content: ">";
    margin-left: 5px;
}

.b2b-detail-brand {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-bottom: 16px;
    color: var(--b2b-muted);
}

.b2b-detail-brand a {
    color: var(--b2b-blue);
    font-weight: 800;
    text-decoration: none;
}

.b2b-detail-brand button {
    width: 36px;
    height: 36px;
    margin-left: auto;
    border: 1px solid var(--b2b-border);
    border-radius: 50%;
    background: #fff;
}

.single-product .product .summary .product_title {
    font-size: 27px;
    line-height: 1.25;
}

.b2b-purchase-panel {
    margin: 14px 0 18px;
    padding: 0;
}

.b2b-model-line {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--b2b-muted);
    font-size: 13px;
}

.b2b-stock-line {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 14px;
}

.b2b-stock-line strong {
    padding: 3px 9px;
    border-radius: 12px;
    background: #4276e8;
    color: #fff;
    font-size: 13px;
}

.b2b-price-row {
    display: flex;
    gap: 8px;
    align-items: baseline;
    margin-top: 20px;
}

.b2b-price-row strong {
    font-size: 27px;
}

.b2b-price-label,
.b2b-price-row span:last-child {
    color: var(--b2b-muted);
}

.b2b-buy-row {
    display: grid;
    grid-template-columns: max-content 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
}

.b2b-qty {
    display: flex;
    align-items: center;
    gap: 12px;
}

.b2b-qty button {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 4px;
    background: #d7dce4;
    font-weight: 800;
}

.b2b-add-cart,
.b2b-request-quote {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    text-decoration: none;
    font-weight: 800;
}

.b2b-request-quote {
    border: 1px solid var(--b2b-green);
    color: #19895a;
}

.b2b-free-ship {
    margin-top: 15px;
    color: var(--b2b-blue);
    font-weight: 800;
}

.b2b-quick-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 34px;
    margin: 18px 0;
}

.b2b-quick-specs div {
    display: grid;
    grid-template-columns: 42% 1fr;
    border-bottom: 1px solid var(--b2b-border);
}

.b2b-quick-specs dt,
.b2b-quick-specs dd {
    margin: 0;
    padding: 11px 13px;
}

.b2b-quick-specs dt {
    background: #f1f3f6;
    font-weight: 800;
}

.b2b-spec-table {
    width: 100%;
    border-collapse: collapse;
}

.b2b-spec-table th {
    width: 42%;
    background: #f1f3f6;
    font-weight: 800;
}

.b2b-spec-table th,
.b2b-spec-table td {
    text-align: left;
}

@media (max-width: 900px) {
    .b2b-catalog-layout,
    .b2b-listing-layout,
    .b2b-listing-header,
    .b2b-series-head,
    .b2b-buy-row {
        grid-template-columns: 1fr;
    }

    .b2b-listing-header {
        margin-left: 0;
        justify-items: start;
    }

    .b2b-category-grid {
        grid-template-columns: 1fr;
    }

    .b2b-side-panel {
        max-height: none;
    }
}

