:root {
    --b2b-green: #038C65;
    --b2b-orange: #F27B13;
    --b2b-orange-dark: #D95204;
    --b2b-red-dark: #730909;
    --b2b-light: #F2F2F2;
    --b2b-white: #ffffff;
    --b2b-text: #1f2933;
    --b2b-muted: #667085;
    --b2b-border: #e4e7ec;
    --b2b-shadow: 0 18px 45px rgba(3, 140, 101, 0.12);
}

.b2b-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(242, 123, 19, 0.10), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, var(--b2b-light) 100%);
    color: var(--b2b-text);
}

/* Hero */
.b2b-hero {
    padding: 34px 0 22px;
}

.b2b-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 22px;
    align-items: stretch;
    overflow: hidden;
    padding: 34px;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(3, 140, 101, 0.98), rgba(3, 140, 101, 0.86)),
        linear-gradient(45deg, var(--b2b-green), var(--b2b-orange));
    box-shadow: var(--b2b-shadow);
}

.b2b-hero-inner::before {
    content: "";
    position: absolute;
    inset: auto -80px -140px auto;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: rgba(242, 123, 19, 0.32);
}

.b2b-hero-inner::after {
    content: "";
    position: absolute;
    inset: -120px auto auto -100px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
}

.b2b-hero-content,
.b2b-hero-panel {
    position: relative;
    z-index: 1;
}

.b2b-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 280px;
}

.b2b-hero-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 14px;
    padding: 7px 13px;
    border-radius: 8px;
    background: rgba(115, 9, 9, 0.88);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.b2b-hero h1 {
    max-width: 780px;
    margin: 0 0 14px;
    color: #fff;
    font-size: 34px;
    font-weight: 950;
    line-height: 1.6;
    letter-spacing: 0;
}

.b2b-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    line-height: 2.1;
}

.b2b-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.b2b-hero-btn {
    min-width: 158px;
    min-height: 44px;
    border-radius: 8px;
    font-weight: 900;
}

.b2b-hero .btn-danger,
.b2b-filter .btn-danger {
    border-color: var(--b2b-orange);
    background: var(--b2b-orange);
    color: #fff;
}

.b2b-hero .btn-danger:hover,
.b2b-filter .btn-danger:hover {
    border-color: var(--b2b-orange-dark);
    background: var(--b2b-orange-dark);
}

.b2b-hero .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.72);
    color: #fff;
}

.b2b-hero .btn-outline-light:hover {
    background: #fff;
    color: var(--b2b-green);
}

.b2b-hero-status {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 8px;
    background: rgba(115, 9, 9, 0.28);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 14px;
    font-weight: 900;
}

.b2b-hero-status.is-approved {
    background: rgba(255, 255, 255, 0.18);
}

/* Hero side card */
.b2b-hero-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.12);
}

.b2b-panel-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid #edf0f2;
    font-size: 14px;
}

.b2b-panel-row:last-child {
    border-bottom: 0;
}

.b2b-panel-row span {
    color: var(--b2b-muted);
    font-weight: 700;
}

.b2b-panel-row strong {
    color: var(--b2b-text);
    font-weight: 950;
}

.b2b-panel-row .text-success {
    color: var(--b2b-green) !important;
}

.b2b-panel-row .text-danger {
    color: var(--b2b-red-dark) !important;
}

/* Shop layout */
.b2b-shop-section {
    padding: 18px 0 54px;
}

/* Filter */
.b2b-filter {
    position: sticky;
    top: 88px;
    padding: 18px;
    border: 1px solid var(--b2b-border);
    border-radius: 8px;
    background: var(--b2b-white);
    box-shadow: 0 14px 34px rgba(31, 41, 51, 0.06);
}

.b2b-filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #edf0f2;
}

.b2b-filter-head h2 {
    margin: 0;
    color: var(--b2b-text);
    font-size: 17px;
    font-weight: 950;
}

.b2b-clear-filter {
    color: var(--b2b-orange-dark);
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
}

.b2b-clear-filter:hover {
    color: var(--b2b-red-dark);
}

.b2b-field {
    margin-bottom: 15px;
}

.b2b-field label,
.b2b-sort label {
    display: block;
    margin-bottom: 7px;
    color: #344054;
    font-size: 13px;
    font-weight: 850;
}

.b2b-field .form-control,
.b2b-field .form-select,
.b2b-sort .form-select {
    min-height: 42px;
    border-radius: 8px;
    border-color: #d8dde3;
    color: var(--b2b-text);
    font-size: 14px;
    box-shadow: none;
}

.b2b-field .form-control:focus,
.b2b-field .form-select:focus,
.b2b-sort .form-select:focus {
    border-color: var(--b2b-green);
    box-shadow: 0 0 0 4px rgba(3, 140, 101, 0.12);
}

/* Toolbar */
.b2b-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid var(--b2b-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(31, 41, 51, 0.06);
}

.b2b-toolbar h2 {
    margin: 0;
    color: var(--b2b-text);
    font-size: 19px;
    font-weight: 950;
}

.b2b-toolbar p {
    margin: 6px 0 0;
    color: var(--b2b-muted);
    font-size: 13px;
}

.b2b-toolbar p strong {
    color: var(--b2b-orange-dark);
    font-weight: 950;
}

.b2b-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.b2b-sort .form-select {
    min-width: 166px;
}

/* Product card */
.b2b-product {
    position: relative;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--b2b-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(31, 41, 51, 0.055);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.b2b-product:hover {
    transform: translateY(-5px);
    border-color: rgba(3, 140, 101, 0.42);
    box-shadow: 0 20px 42px rgba(3, 140, 101, 0.13);
}

.b2b-product::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--b2b-green), var(--b2b-orange));
}

.b2b-product-image {
    display: block;
    aspect-ratio: 1 / 1;
    background:
        linear-gradient(180deg, #ffffff, #f7f8f9);
    border-bottom: 1px solid #edf0f2;
}

.b2b-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform 0.22s ease;
}

.b2b-product:hover .b2b-product-image img {
    transform: scale(1.04);
}

.b2b-product-body {
    padding: 13px;
}

.b2b-product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 9px;
}

.b2b-product-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 8px;
    background: var(--b2b-green);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

.b2b-product-tags .is-soft {
    background: rgba(242, 123, 19, 0.12);
    color: var(--b2b-orange-dark);
}

.b2b-product h3 {
    height: 48px;
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--b2b-text);
    font-size: 14px;
    font-weight: 950;
    line-height: 1.7;
}

.b2b-product h3 a {
    color: inherit;
    text-decoration: none;
}

.b2b-product h3 a:hover {
    color: var(--b2b-green);
}

.b2b-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 22px;
    margin-bottom: 12px;
    color: var(--b2b-muted);
    font-size: 12px;
}

.b2b-product-meta span + span::before {
    content: "/";
    margin-left: 6px;
    color: #c8ced6;
}

/* Price */
.b2b-price {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 42px;
    margin-bottom: 12px;
    text-align: left;
}

.b2b-price strong {
    color: var(--b2b-red-dark);
    font-size: 18px;
    font-weight: 950;
}

.b2b-price small {
    margin-right: 5px;
    color: var(--b2b-muted);
    font-size: 12px;
    font-weight: 700;
}

.b2b-locked-price,
.b2b-inquiry {
    width: 100%;
    min-height: 40px;
    padding: 10px;
    border-radius: 8px;
    background: linear-gradient(180deg, #fff, #fafafa);
    color: var(--b2b-red-dark);
    border: 1px dashed rgba(115, 9, 9, 0.35);
    text-align: center;
    font-size: 13px;
    font-weight: 900;
}

.b2b-inquiry {
    color: var(--b2b-orange-dark);
    border-color: rgba(242, 123, 19, 0.42);
}

/* Buttons */
.b2b-product .btn {
    min-height: 38px;
    border-radius: 8px;
    font-weight: 900;
}

.b2b-product .btn-success {
    border-color: var(--b2b-green);
    background: var(--b2b-green);
}

.b2b-product .btn-success:hover {
    border-color: #027957;
    background: #027957;
}

.b2b-product .btn-outline-success {
    border-color: var(--b2b-green);
    color: var(--b2b-green);
}

.b2b-product .btn-outline-success:hover {
    background: var(--b2b-green);
    color: #fff;
}

.b2b-product .btn-outline-secondary {
    border-color: rgba(115, 9, 9, 0.28);
    color: var(--b2b-red-dark);
    background: rgba(115, 9, 9, 0.04);
}

/* Empty */
.b2b-empty {
    padding: 46px 20px;
    border: 1px solid var(--b2b-border);
    border-radius: 8px;
    background: #fff;
    text-align: center;
    box-shadow: 0 14px 34px rgba(31, 41, 51, 0.06);
}

.b2b-empty h2 {
    margin-bottom: 8px;
    color: var(--b2b-text);
    font-size: 21px;
    font-weight: 950;
}

.b2b-empty p {
    margin-bottom: 18px;
    color: var(--b2b-muted);
}

.b2b-empty .btn-outline-danger {
    border-color: var(--b2b-orange-dark);
    color: var(--b2b-orange-dark);
}

.b2b-empty .btn-outline-danger:hover {
    background: var(--b2b-orange-dark);
    color: #fff;
}

/* Pagination */
.b2b-pagination {
    margin-top: 28px;
}

.b2b-pagination .page-link {
    min-width: 38px;
    border-radius: 8px;
    border-color: #d8dde3;
    color: var(--b2b-green);
    text-align: center;
    font-weight: 900;
}

.b2b-pagination .page-link:hover {
    background: rgba(3, 140, 101, 0.08);
    color: var(--b2b-green);
}

.b2b-pagination .active .page-link {
    background: var(--b2b-orange);
    border-color: var(--b2b-orange);
    color: #fff;
}

/* Responsive */
@media (max-width: 991.98px) {
    .b2b-hero-inner {
        grid-template-columns: 1fr;
        padding: 26px;
    }

    .b2b-hero-content {
        min-height: auto;
    }

    .b2b-filter {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .b2b-hero {
        padding-top: 18px;
    }

    .b2b-hero-inner {
        padding: 22px;
    }

    .b2b-hero h1 {
        font-size: 24px;
        line-height: 1.75;
    }

    .b2b-hero p {
        font-size: 14px;
    }

    .b2b-hero-actions {
        flex-direction: column;
    }

    .b2b-hero-btn {
        width: 100%;
    }

    .b2b-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .b2b-sort {
        align-items: stretch;
        flex-direction: column;
    }

    .b2b-sort .form-select {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 575.98px) {
    .b2b-hero-inner {
        border-radius: 8px;
    }

    .b2b-hero h1 {
        font-size: 21px;
    }

    .b2b-hero-panel {
        padding: 18px;
    }

    .b2b-product-body {
        padding: 10px;
    }

    .b2b-product h3 {
        height: 45px;
        font-size: 13px;
    }

    .b2b-price strong {
        font-size: 15px;
    }

    .b2b-locked-price,
    .b2b-inquiry {
        font-size: 12px;
    }
}
