/* Sticky footer: içerik kısa olsa bile footer sayfanın en altında kalır */
html {
    height: 100%;
}

body:not(.login-page) {
    min-height: 100vh;
    height: auto;
    display: flex;
    flex-direction: column;
}

body:not(.login-page) > header#header,
body:not(.login-page) > footer {
    flex-shrink: 0;
}

body:not(.login-page) > main#content {
    flex: 1 0 auto;
}

body:not(.login-page) > aside {
    flex: 0 0 auto;
}

/* Cart Count Badge Styling */
.cart-count {
    position: absolute;
    top: -8px !important;
    right: -8px !important;
    width: 18px;
    height: 18px;
    font-size: 10px;
    background-color: #cd192d;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Pagination Styling */
.pagination-container {
    width: 100%;
    max-width: 100%;
    gap: 12px;
    overflow: hidden;
}

.pagination-container > div:first-child {
    flex: 0 0 auto;
    min-width: 0;
    max-width: 100%;
}

.pagination-shop {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    min-width: 0;
    gap: 4px;
}

.pagination-shop .page-item {
    margin: 0;
    flex-shrink: 0;
}

.pagination-shop .page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 4px;
    color: #333;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    text-decoration: none;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}

.pagination-shop .page-item.active .page-link {
    color: #fff;
    background-color: #cd192d;
    border-color: #cd192d;
}

.pagination-shop .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

@media (min-width: 768px) {
    .pagination-container {
        flex-wrap: nowrap;
        align-items: center;
    }

    .pagination-container > div:first-child {
        flex: 0 1 auto;
        margin-bottom: 0 !important;
    }

    .pagination-container .pagination-shop {
        flex: 1 1 auto;
        min-width: 0;
        max-width: 100%;
        justify-content: flex-end !important;
    }
}

/* Ana sayfa ürün kartı: hover footer ve fiyat düzeni */
.product-item__outer {
    width: 100%;
    overflow: hidden;
}

@media (min-width: 1200px) {
    .product-item:hover .product-item__inner:not(.remove-prodcut-hover) {
        overflow: hidden;
        left: 0;
        right: 0;
    }
}

.product-item__footer-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.product-item__footer-meta .product-item__code,
.product-item__footer-meta .product-item__oem {
    display: block;
    width: 100%;
    max-width: 100%;
    line-height: 1.35;
}

.product-item__footer-meta .product-item__oem {
    font-size: 11px;
    word-break: break-all;
    overflow-wrap: anywhere;
    white-space: normal;
}

.product-price-inline {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 10px;
}

.product-price-inline del {
    font-size: 0.75rem;
    line-height: 1.2;
}

.product-price-inline .product-price-current {
    font-size: 1rem;
    line-height: 1.2;
}

/* Page size dropdown styling */
.pagination-container select.form-control-sm {
    width: 70px;
    height: 30px;
    padding: 2px 5px;
    font-size: 12px;
    display: inline-block;
}

/* ── Ürün listesi — B2B yoğun liste görünümü (yedek_parca_b2b_portal.html) ── */
    .pr-b2b-headers {
        display: none;
        grid-template-columns: 108px minmax(200px, 2.2fr) minmax(150px, 1.1fr) minmax(240px, auto);
        gap: 8px 15px;
        align-items: center;
        padding: 10px 12px;
        min-height: 42px;
        background: rgba(226, 232, 240, 0.6);
        border: 1px solid #e2e8f0;
        border-bottom: none;
        border-radius: 12px 12px 0 0;
        font-size: 11px;
        font-weight: 800;
        color: #475569;
        letter-spacing: 0.05em;
    }

    .pr-b2b-headers > div {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        font-weight: 800;
        text-align: left;
        line-height: 1.25;
        min-width: 0;
    }

    @media (min-width: 992px) {
        .pr-b2b-headers {
            display: grid;
        }
    }

    .pr-b2b-headers > .pr-b2b-headers-col--gorsel {
        white-space: normal;
        justify-content: center;
        text-align: center;
    }

    .pr-b2b-headers-col--miktar {
        white-space: normal;
    }

    .pr-b2b-list {
        margin: 0;
        padding: 0;
        border-bottom: 1px solid #e2e8f0;
        border-radius: 0 0 12px 12px;
        overflow: visible;
    }

    .pr-b2b-list .pr-b2b-item {
        list-style: none;
        margin-bottom: 0;
        position: relative;
    }

    /* OEM tooltip satır dışına taşabilsin; product-item__outer overflow:hidden kesmesin */
    .pr-b2b-list .pr-b2b-item .product-item__outer {
        overflow: visible;
    }

    .pr-b2b-row {
        display: none;
        grid-template-columns: 108px minmax(200px, 2.2fr) minmax(150px, 1.1fr) minmax(240px, auto);
        gap: 8px 15px;
        align-items: center;
        background: #fff;
        border-left: 1px solid #e2e8f0;
        border-right: 1px solid #e2e8f0;
        border-bottom: 1px solid #e2e8f0;
        padding: 8px 12px;
        transition: background 0.2s ease, border-color 0.2s ease;
        position: relative;
        overflow: visible;
    }

    @media (min-width: 768px) {
        .pr-b2b-row {
            display: grid;
        }
    }

    .pr-b2b-item:hover {
        z-index: 100;
    }

    .pr-b2b-item:hover .pr-b2b-row {
        background: rgba(248, 250, 252, 0.5);
        border-color: rgba(239, 68, 68, 0.3);
        z-index: 100;
    }

    .pr-b2b-col {
        min-width: 0;
    }

    .pr-b2b-col-images {
        display: flex;
        align-items: center;
        gap: 6px;
        width: 108px;
        max-width: 108px;
        flex-shrink: 0;
    }

    .pr-b2b-col-details {
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: visible;
        min-width: 0;
        max-width: 100%;
        position: relative;
    }

    .pr-b2b-col-price {
        display: flex;
        flex-direction: column;
        gap: 8px;
        font-size: 12px;
        min-width: 0;
    }

    .cart-b2b-price-list {
        display: flex;
        flex-direction: column;
        gap: 4px;
        font-size: 10px;
        line-height: 1.4;
        width: 100%;
    }

    .cart-b2b-price-list .price-item {
        display: block;
        margin: 0;
        padding: 0;
        color: #64748b;
    }

    .cart-b2b-price-list .cart-price-js-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .cart-b2b-price-list .price-item.cart-price-meta .pr-b2b-price-list-row {
        margin-bottom: 0;
    }

    .cart-b2b-price-list .price-item.cart-price-meta .font-weight-semi-bold,
    .cart-b2b-price-list .price-item.cart-price-meta .pr-b2b-price-old {
        color: #94a3b8;
        font-size: 10px;
    }

    .cart-b2b-price-list .price-item.cart-price-highlight {
        margin-top: 2px;
    }

    .cart-b2b-price-list .price-item.cart-price-highlight .pr-b2b-price-net {
        color: #dc2626;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.2;
    }

    .cart-b2b-price-list .price-item.cart-price-kdv .pr-b2b-price-kdv {
        display: block;
        font-size: 9px;
        color: #94a3b8;
        line-height: 1.35;
    }

    .cart-b2b-price-list .price-item.cart-price-kdv .font-weight-semi-bold {
        color: #64748b;
        font-weight: 600;
    }

    .cart-b2b-price-list .price-item.cart-price-total {
        margin-top: 2px;
        padding-top: 4px;
        border-top: 1px solid #f1f5f9;
    }

    .cart-b2b-price-list .price-item.cart-price-total,
    .cart-b2b-price-list .price-item.cart-price-total .font-weight-semi-bold {
        color: #0f172a;
        font-size: 11px;
        font-weight: 700;
    }

    .cart-b2b-price-list .price-item.text-red .font-weight-semi-bold {
        color: #dc2626;
    }

    .pr-b2b-col-actions {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        gap: 4px;
        flex-shrink: 0;
        min-width: 0;
    }

    .pr-b2b-col-actions .pr-b2b-actions-row {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        flex-wrap: nowrap;
        width: 100%;
        flex-shrink: 0;
    }

    .pr-b2b-thumb-wrap {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .pr-b2b-thumb {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        padding: 6px;
        overflow: hidden;
        transition: background 0.2s ease;
    }

    .pr-b2b-item:hover .pr-b2b-thumb {
        background: #fff;
    }

    .pr-b2b-thumb img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    .pr-b2b-badge-row {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    .pr-b2b-badge-sku {
        font-size: 10px;
        font-weight: 800;
        color: #92400e;
        background: #fffbeb;
        border: 1px solid #fde68a;
        border-radius: 4px;
        padding: 1px 6px;
        line-height: 1.4;
    }

    .pr-b2b-badge-vehicle {
        font-size: 10px;
        font-weight: 700;
        color: #1d4ed8;
        background: #eff6ff;
        border-radius: 4px;
        padding: 1px 6px;
        line-height: 1.4;
    }

    .pr-b2b-order-badge {
        position: relative;
        display: inline-flex;
        align-items: center;
        cursor: help;
    }

    .pr-b2b-order-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #10b981;
        position: relative;
        flex-shrink: 0;
    }

    .pr-b2b-order-dot::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background: #10b981;
        animation: pr-b2b-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
    }

    @keyframes pr-b2b-ping {
        75%, 100% { transform: scale(2); opacity: 0; }
    }

    .pr-b2b-order-text {
        font-size: 10px;
        color: #047857;
        font-weight: 500;
        margin-left: 6px;
    }

    .pr-b2b-order-tooltip {
        position: absolute;
        bottom: calc(100% + 8px);
        left: 50%;
        transform: translateX(-50%);
        background: #0f172a;
        color: #fff;
        font-size: 10px;
        font-weight: 500;
        padding: 4px 10px;
        border-radius: 8px;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.2s ease;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
        z-index: 20;
    }

    .pr-b2b-order-badge:hover .pr-b2b-order-tooltip {
        opacity: 1;
        visibility: visible;
    }

    .pr-b2b-title {
        margin: 4px 0 0;
        font-size: 12px;
        font-weight: 600;
        color: #1e293b;
        line-height: 1.35;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .pr-b2b-title a {
        color: inherit;
        text-decoration: none;
    }

    .pr-b2b-title a:hover {
        color: #cf0a2c;
    }

    .pr-b2b-oem {
        position: relative;
        margin-top: 2px;
        font-size: 9px;
        color: #64748b;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .pr-b2b-oem--clickable {
        cursor: pointer;
    }

    .pr-b2b-oem--clickable:focus {
        outline: none;
    }

    .pr-b2b-oem--clickable:focus-visible .pr-b2b-oem-inner {
        box-shadow: 0 0 0 2px rgba(207, 10, 44, 0.25);
    }

    .pr-b2b-oem-inner {
        display: flex;
        align-items: center;
        gap: 4px;
        background: #f8fafc;
        border: 1px solid #f1f5f9;
        border-radius: 4px;
        padding: 1px 6px;
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
        transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
        box-sizing: border-box;
    }

    .pr-b2b-oem-text {
        flex: 1 1 0;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 9px;
        line-height: 1.35;
    }

    .pr-b2b-oem--clickable:hover .pr-b2b-oem-inner,
    .pr-b2b-oem--clickable:focus-visible .pr-b2b-oem-inner {
        background: #f1f5f9;
        border-color: #e2e8f0;
    }

    .pr-b2b-price-list-row {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    .pr-b2b-price-label {
        font-size: 10px;
        color: #94a3b8;
    }

    .pr-b2b-price-old {
        font-size: 10px;
        color: #94a3b8;
        text-decoration: line-through;
    }

    .pr-b2b-discount-badge {
        font-size: 10px;
        font-weight: 800;
        color: #dc2626;
        background: #fef2f2;
        border: 1px solid rgba(254, 202, 202, 0.6);
        border-radius: 4px;
        padding: 1px 4px;
    }

    .pr-b2b-price-net-row {
        display: flex;
        align-items: baseline;
        gap: 6px;
        flex-wrap: wrap;
    }

    .pr-b2b-price-net {
        font-size: 14px;
        font-weight: 700;
        color: #0f172a;
    }

    .pr-b2b-price-kdv {
        font-size: 9px;
        color: #94a3b8;
    }

    .pr-b2b-fx-badge {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 10px;
        color: #92400e;
        background: rgba(255, 251, 235, 0.8);
        border: 1px solid rgba(253, 230, 138, 0.6);
        border-radius: 4px;
        padding: 2px 6px;
        width: fit-content;
    }

    .pr-b2b-fx-badge strong {
        font-weight: 900;
        color: #b45309;
    }

    .pr-b2b-action-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        flex-shrink: 0;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        background: #fff;
        color: #94a3b8;
        padding: 0;
        cursor: pointer;
        transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
        text-decoration: none;
    }

    .pr-b2b-action-btn.favori {
        font-size: 15px;
        line-height: 1;
    }

    .pr-b2b-action-btn.favori::before {
        display: block;
    }

    .pr-b2b-action-btn:hover {
        color: #475569;
        background: #f8fafc;
        text-decoration: none;
    }

    .pr-b2b-action-btn.is-favorite {
        border-color: #fecaca;
        background: #fef2f2;
        color: #ef4444;
    }

    .pr-b2b-qty-box {
        display: flex;
        align-items: center;
        background: #f1f5f9;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        overflow: hidden;
        padding: 2px;
        flex-shrink: 0;
    }

    .pr-b2b-qty-box .js-plus,
    .pr-b2b-qty-box .js-minus {
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: 700;
        color: #64748b;
        background: transparent;
        border: none;
        border-radius: 6px;
        text-decoration: none;
        transition: color 0.15s ease, background 0.15s ease;
        user-select: none;
    }

    .pr-b2b-qty-box .js-plus:hover,
    .pr-b2b-qty-box .js-minus:hover {
        color: #0f172a;
        background: #fff;
        text-decoration: none;
    }

    .pr-b2b-qty-box .js-result {
        width: 32px !important;
        min-width: 32px;
        height: 24px;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        text-align: center;
        font-size: 12px;
        font-weight: 700;
        color: #1e293b;
        padding: 0 !important;
        -moz-appearance: textfield;
    }

    .pr-b2b-qty-box .js-result::-webkit-outer-spin-button,
    .pr-b2b-qty-box .js-result::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    .pr-b2b-qty-box--disabled {
        opacity: 0.65;
        pointer-events: none;
    }

    .pr-b2b-add-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        height: 32px;
        min-width: 72px;
        padding: 0 12px;
        background: #dc2626;
        color: #fff;
        border: none;
        border-radius: 8px;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.02em;
        box-shadow: 0 1px 2px rgba(220, 38, 38, 0.2);
        transition: background 0.15s ease, box-shadow 0.15s ease;
        text-decoration: none;
        cursor: pointer;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .pr-b2b-add-btn:hover {
        background: #b91c1c;
        color: #fff;
        box-shadow: 0 4px 10px rgba(220, 38, 38, 0.25);
        text-decoration: none;
    }

    .pr-b2b-add-btn .ec-add-to-cart {
        font-size: 14px;
        line-height: 1;
    }

    .pr-b2b-add-btn.pr-shop-btn-disabled {
        opacity: 0.45;
        pointer-events: none;
        cursor: not-allowed;
    }

    .pr-b2b-unit-label {
        font-size: 10px;
        color: #64748b;
        text-align: center;
        width: 100%;
        margin-top: 4px;
        line-height: 1.3;
    }

    .pr-b2b-price-ask {
        font-weight: 700;
        color: #cf0a2c;
        font-size: 12px;
    }

    .pr-b2b-compat-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        margin-top: 4px;
    }

    .pr-b2b-compat-tag {
        font-size: 10px;
        font-weight: 700;
        color: #475569;
        background: #f1f5f9;
        border: 1px solid #e2e8f0;
        border-radius: 4px;
        padding: 1px 6px;
    }

/* Kampanya sayacı + ilerleme çubuğu */
.home-campaign-timer-block {
    max-width: 100%;
}

@media (min-width: 768px) {
    .home-campaign-timer-block {
        width: auto;
        max-width: 320px;
    }
}

/* Haftanın kampanyası kartı — sayaç ve ilerleme çubuğu ortada */
.home-campaign-timer-block--deal {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
}

.home-campaign-timer-block--deal .campaign-progress-meta {
    width: 100%;
    max-width: 290px;
    text-align: center !important;
}

.home-campaign-timer-block--deal .js-campaign-progress {
    width: 100%;
    max-width: 290px;
}

.js-campaign-progress-fill {
    transition: width 0.45s ease;
}

.campaign-progress-meta strong {
    color: #334155;
}

/* OEM modal — tema renkleri (kırmızı / slate / amber) */
.b2b-oem-modal-root {
    z-index: 10060;
}

.b2b-oem-modal-root .b2b-oem-modal-dialog {
    max-width: 720px;
}

.b2b-oem-modal-root .b2b-oem-modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
}

.b2b-oem-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 1rem 1.35rem;
    background: linear-gradient(135deg, #cf0a2c 0%, #b00925 52%, #9a0820 100%);
    border-bottom: none;
    position: relative;
}

.b2b-oem-modal-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.18);
}

.b2b-oem-modal-header-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.b2b-oem-modal-header-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 15px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.b2b-oem-modal-header-text {
    min-width: 0;
}

.b2b-oem-modal-header .modal-title {
    color: #fff;
    font-size: 1.0625rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.01em;
}

.b2b-oem-modal-subtitle {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.4;
    word-break: break-word;
}

.b2b-oem-modal-close {
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    opacity: 1;
    text-shadow: none;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.b2b-oem-modal-close:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
}

.b2b-oem-modal-close span {
    font-size: 1.35rem;
    line-height: 1;
}

.b2b-oem-modal-body {
    max-height: min(68vh, 520px);
    overflow-y: auto;
    padding: 1.1rem 1.35rem 1.25rem;
    background: #f8fafc;
}

.b2b-oem-modal-body::-webkit-scrollbar {
    width: 6px;
}

.b2b-oem-modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.b2b-oem-modal-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.b2b-oem-modal-group {
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.b2b-oem-modal-group:has(.b2b-oem-modal-brand.is-active) {
    border-color: rgba(207, 10, 44, 0.28);
    box-shadow: 0 4px 14px rgba(207, 10, 44, 0.08);
}

.b2b-oem-modal-brand {
    margin: 0 0 10px;
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid #fde68a;
    background: #fffbeb;
    color: #92400e;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.4;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.b2b-oem-modal-brand.is-active {
    color: #fff;
    background: #cf0a2c;
    border-color: #cf0a2c;
}

.b2b-oem-modal-codes {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.b2b-oem-modal-code {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
    line-height: 1.35;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.b2b-oem-modal-code:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
    color: #0f172a;
}

.b2b-oem-modal-code.is-active {
    color: #cf0a2c;
    background: #fef2f2;
    border-color: rgba(207, 10, 44, 0.35);
    box-shadow: 0 0 0 1px rgba(207, 10, 44, 0.1);
    font-weight: 700;
}

.b2b-oem-modal-empty {
    margin: 0;
    padding: 1.5rem 1rem;
    text-align: center;
    color: #64748b;
    font-size: 13px;
    background: #fff;
    border: 1px dashed #e2e8f0;
    border-radius: 12px;
}

.b2b-oem-modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 0.85rem 1.35rem;
    background: #fff;
    border-top: 1px solid #e2e8f0;
}

.b2b-oem-modal-btn-close {
    min-width: 96px;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.b2b-oem-modal-btn-close:hover,
.b2b-oem-modal-btn-close:focus {
    color: #cf0a2c;
    border-color: rgba(207, 10, 44, 0.35);
    background: #fef2f2;
    box-shadow: none;
}

    .pr-shop-btn-disabled {
        opacity: 0.45;
        pointer-events: none;
        cursor: not-allowed;
    }

    .pr-shop-qty-stack--disabled {
        opacity: 0.7;
        pointer-events: none;
    }

/* Ana sayfa — Son Görüntülenenler / Son Siparişler B2B kart */
.home-b2b-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
}

@media (min-width: 768px) {
    .home-b2b-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

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

.home-b2b-col {
    list-style: none;
    min-width: 0;
}

.home-b2b-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-b2b-card:hover {
    border-color: rgba(205, 25, 45, 0.3);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.home-b2b-visual {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.home-b2b-brand {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    max-width: 110px;
    min-height: 32px;
    text-decoration: none;
}

.home-b2b-brand img {
    display: block;
    max-width: 110px;
    max-height: 36px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.home-b2b-thumb-row {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease;
    overflow: hidden;
}

.home-b2b-card:hover .home-b2b-thumb-row {
    background: rgba(248, 250, 252, 0.8);
}

.home-b2b-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
}

.home-b2b-product-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.home-b2b-meta {
    margin-top: 12px;
    min-width: 0;
    overflow: visible;
}

.home-b2b-card .pr-b2b-oem {
    margin-top: 6px;
}

.home-b2b-date {
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 6px;
}

.home-b2b-badge-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}

.home-b2b-badge-sku {
    font-size: 10px;
    font-weight: 800;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 4px;
    padding: 1px 6px;
    line-height: 1.4;
}

.home-b2b-badge-vehicle {
    font-size: 10px;
    font-weight: 700;
    color: #1d4ed8;
    background: #eff6ff;
    border-radius: 4px;
    padding: 1px 6px;
    line-height: 1.4;
}

.home-b2b-title {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    margin: 4px 0 0;
    min-height: 32px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-b2b-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.home-b2b-card:hover .home-b2b-title a {
    color: #cd192d;
}

.home-b2b-card-footer {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.home-b2b-price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
}

.home-b2b-price-old {
    font-size: 10px;
    color: #94a3b8;
    text-decoration: line-through;
}

.home-b2b-price-current {
    font-size: 14px;
    font-weight: 800;
    color: #dc2626;
    line-height: 1.2;
}

.home-b2b-price-current--single {
    color: #0f172a;
}

.home-b2b-currency-note {
    margin-top: 4px;
    font-size: 10px;
    color: #94a3b8;
}

.home-b2b-price-ask {
    font-size: 12px;
    font-weight: 700;
    color: #cf0a2c;
}

.home-b2b-price-ask i {
    margin-right: 4px;
}

.home-b2b-footer-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    font-size: 10px;
    color: #64748b;
    overflow: hidden;
}

.home-b2b-footer-meta span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-b2b-footer-meta--single {
    justify-content: flex-start;
}

.home-b2b-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.home-b2b-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #cd192d;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.home-b2b-cart-btn:hover {
    background: #a81424;
    color: #fff;
    text-decoration: none;
}

.home-b2b-cart-btn i {
    font-size: 18px;
    line-height: 1;
}

.home-b2b-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem 1rem;
}

.pr-b2b-thumb:has(img) {
    cursor: zoom-in;
}

.pr-b2b-thumb:has(img) a {
    cursor: zoom-in;
}

body.b2b-image-preview-open {
    overflow: hidden;
}

.b2b-image-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 1060;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.b2b-image-preview-modal.is-open {
    display: flex;
}

.b2b-image-preview-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
}

.b2b-image-preview-dialog {
    position: relative;
    z-index: 1;
    width: min(90vw, 760px);
    max-height: 90vh;
    background: #fff;
    border-radius: 12px;
    padding: 20px 20px 16px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.b2b-image-preview-body {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-height: calc(90vh - 88px);
}

.b2b-image-preview-img {
    display: block;
    max-width: 100%;
    max-height: calc(90vh - 88px);
    width: auto;
    height: auto;
    object-fit: contain;
}

.b2b-image-preview-caption {
    margin: 12px 0 0;
    width: 100%;
    text-align: center;
    font-size: 13px;
    color: #475569;
    line-height: 1.4;
}

.b2b-image-preview-close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.b2b-image-preview-close:hover {
    background: #fee2e2;
    color: #cd192d;
}

/* ── Arama Popup Kapatma Butonu ──────────────────────────────────────────── */
.u-header .search-popup-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 6px;
    background: #f8fafc;
    color: #334155;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease;
}

.u-header .search-popup-close:hover {
    background: #fee2e2;
    color: #cd192d;
}

/* Popup görünürlüğü + genel kutu tasarımı */
.u-header .popup.is-open {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
    padding: 0;
    overflow: hidden;
}

.u-header .popup .search-message {
    margin: 10px 16px;
    padding: 8px 12px;
    font-size: 12px;
    color: #64748b;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #cd192d;
}

.u-header .popup-content {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    padding: 0 !important;
    max-height: none;
}

.u-header .search-history {
    width: 36%;
    min-width: 0;
    padding: 12px 14px 12px 12px;
    border-right: 1px solid #eef2f6;
    background: #fafbfc;
    border-radius: 11px 0 0 11px;
}

.u-header .search-results {
    width: 64%;
    min-width: 0;
    padding: 12px 16px 12px 14px;
    background: #fff;
}

.u-header .search-results-header {
    position: relative;
    width: 100%;
    display: block;
    margin-bottom: 10px;
    padding-bottom: 8px;
    padding-right: 12px;
    border-bottom: 1px solid #e8ecf0;
    min-height: 32px;
}

.u-header .search-results-header .search-panel-title {
    margin: 0;
    padding: 0 40px 8px 0;
}

.u-header .search-results-header .search-popup-close {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    margin: 0;
}

.u-header .search-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8ecf0;
}

.u-header .search-panel-title,
.u-header .search-results-title.search-panel-title {
    margin: 0 0 10px;
    padding: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #475569;
    border-bottom: 2px solid #cd192d;
    display: inline-block;
    line-height: 1.3;
}


.u-header .search-history-clear {
    font-size: 11px;
    font-weight: 600;
    color: #cd192d;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.u-header .search-history-clear:hover {
    color: #9f1424;
    text-decoration: underline;
}

.u-header .scroll-container-1,
.u-header .scroll-container-2 {
    max-height: 280px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.u-header .scroll-container-1::-webkit-scrollbar,
.u-header .scroll-container-2::-webkit-scrollbar {
    width: 5px;
}

.u-header .scroll-container-1::-webkit-scrollbar-thumb,
.u-header .scroll-container-2::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.u-header .search-item {
    width: 100%;
    padding: 7px 10px;
    margin-bottom: 4px;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.u-header .search-item:hover {
    background: #fff;
}

.u-header .search-history li {
    width: auto;
    padding: 0;
    flex: 1;
    min-width: 0;
}

.u-header .search-history .search-item a {
    display: block;
    color: #1a1a1a !important;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.u-header .search-history .search-item a:hover {
    color: #cd192d !important;
}

.u-header .search-history .search-item i.trash {
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.15s ease;
}

.u-header .search-history .search-item:hover i.trash {
    opacity: 1;
}

.u-header .result-item {
    gap: 12px;
    padding: 8px 10px;
    margin-bottom: 6px;
    border: 1px solid transparent;
    border-radius: 10px;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

.u-header .result-item:hover {
    background: #f8fafc;
    border-color: #e8ecf0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.u-header .result-item img {
    width: 48px;
    height: 48px;
    min-width: 48px;
    margin-right: 0;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #e8ecf0;
    background: #fff;
}

.u-header .search-product-detail {
    flex: 1;
    min-width: 0;
}

.u-header .search-product-name {
    margin-bottom: 2px;
    line-height: 1.35;
}

.u-header .search-product-name a.search-product-link,
.u-header .search-product-name a {
    color: #1a1a1a !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.u-header .search-product-name a.search-product-link:hover,
.u-header .search-product-name a:hover {
    color: #000 !important;
    text-decoration: none;
}

.u-header .search-product-no {
    color: #cd192d;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.u-header .search-product-oem-row {
    margin: 4px 0 0;
    line-height: 1.4;
}

.u-header .search-product-oem-tag {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 800;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 4px;
    padding: 1px 6px;
    line-height: 1.4;
    max-width: 100%;
}

.u-header .search-product-no .search-highlight,
.u-header .search-highlight {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 4px;
    padding: 1px 6px;
    line-height: 1.4;
    font-style: normal;
}

.u-header .search-results-btn {
    margin-top: 10px;
    height: 36px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 8px;
    background: #cd192d;
    transition: background 0.15s ease, transform 0.15s ease;
}

.u-header .search-results-btn:hover {
    background: #a81425;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* ── Arama Terimi Vurgulama (Search Highlighting) ────────────────────────── */
/* pr-b2b-badge-sku ile aynı görünüm — .search-highlight yukarıda tanımlı */
