.b2b-shoes-site-logo {
    display: block;
    max-height: 48px;
    max-width: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
}

html {
    overflow-x: clip;
}

.storefront-main {
    overflow-x: clip;
}

/* Üst bar: dil menüsü sticky header altında kalmasın */
.b2b-shoes-topbar,
.storefront-topbar {
    position: relative;
    z-index: 1050;
    overflow: visible;
}

.b2b-shoes-topbar .storefront-lang-dropdown .dropdown-menu,
.storefront-topbar .storefront-lang-dropdown .dropdown-menu {
    z-index: 1060;
}

/* Header + mega menu */
.b2b-shoes-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    overflow-x: clip;
}

.b2b-shoes-navbar {
    position: relative;
}

.b2b-shoes-navbar nav {
    position: relative;
    z-index: 2;
    background: #fff;
}

.b2b-shoes-navbar .main-menu {
    flex-wrap: wrap;
    row-gap: 0.15rem;
}

.b2b-megamenu-trigger {
    position: relative;
}

.b2b-megamenu-trigger > .b2b-megamenu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    width: max-content;
    min-width: 11rem;
    max-width: min(18rem, calc(100dvw - 2rem));
    max-width: min(18rem, calc(100vw - 2rem));
    overflow-x: hidden;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 0.35rem 0.35rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    z-index: 1050;
    padding: 0.35rem 0;
}

.b2b-megamenu-trigger:hover > .b2b-megamenu,
.b2b-megamenu-trigger:focus-within > .b2b-megamenu,
.b2b-megamenu-trigger > .b2b-megamenu:hover {
    display: block;
}

.b2b-megamenu__grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
}

.b2b-megamenu__column {
    min-width: 0;
    max-width: none;
    border-bottom: 1px solid #e5e7eb;
}

.b2b-megamenu__column:last-child {
    border-bottom: none;
}

.b2b-megamenu__title {
    display: block;
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #111;
    text-decoration: none;
    margin: 0;
    padding: 0.65rem 1.25rem;
    line-height: 1.35;
    white-space: normal;
}

.b2b-megamenu__title:hover {
    color: #111;
    text-decoration: underline;
}

.b2b-megamenu__list {
    list-style: none;
    margin: 0;
    padding: 0 0 0.35rem;
}

.b2b-megamenu__list li {
    display: block;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #f3f4f6;
}

.b2b-megamenu__list li:last-child {
    border-bottom: none;
}

.b2b-megamenu__list a {
    display: block;
    padding: 0.5rem 1.25rem 0.5rem 1.75rem;
    font-size: 0.8125rem;
    font-weight: 400;
    text-transform: uppercase;
    color: #374151;
    text-decoration: none;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
}

.b2b-megamenu__list a:hover {
    color: #000;
    text-decoration: underline;
}

@media (max-width: 991.98px) {
    .b2b-megamenu-trigger > .b2b-megamenu {
        left: 0;
        max-width: calc(100vw - 1rem);
        padding: 0.35rem 0;
    }
}

/* Ürün detay — renk / beden matrisi */
.b2b-pdp__shell {
    padding-bottom: 2rem;
}

@media (min-width: 992px) {
    .b2b-pdp__layout {
        --bs-gutter-x: 0.65rem;
    }

    .b2b-pdp__gallery-col {
        flex: 0 0 auto;
        width: 14.5rem;
        max-width: 14.5rem;
        padding-right: 0.35rem;
    }

    .b2b-pdp__info-col {
        flex: 1 1 0;
        min-width: 0;
        padding-left: 0.25rem;
    }

    .b2b-pdp__gallery {
        position: sticky;
        top: 5.5rem;
        max-width: 13.5rem;
        margin-left: 0;
        margin-right: 0;
    }

    .b2b-pdp__gallery .main-image {
        max-height: 13.5rem;
    }
}

.b2b-pdp__gallery {
    max-width: 13.5rem;
    margin-left: 0;
    margin-right: 0;
}

.b2b-pdp__gallery .main-image {
    aspect-ratio: 1 / 1;
    max-height: 13.5rem;
    overflow: hidden;
}

.b2b-pdp__gallery .main-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
}

.b2b-pdp__gallery .thumbs button {
    width: 2.75rem;
    height: 3.25rem;
    overflow: hidden;
}

.b2b-pdp__gallery .thumbs img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
}

.b2b-pdp__matrix-slot {
    margin-top: 0;
    min-width: 0;
}

.b2b-pdp__matrix-toolbar {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.b2b-pdp__shell.b2b-matrix--stacked-ui .b2b-pdp__matrix-toolbar-row.b2b-quickview__price-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem 1rem;
    margin-bottom: 0.25rem;
}

.b2b-pdp__shell.b2b-matrix--stacked-ui .b2b-pdp__matrix-toolbar .b2b-quickview__summary-line {
    margin-bottom: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.b2b-pdp__matrix-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem 1rem;
    flex-shrink: 0;
}

.b2b-pdp__shell.b2b-matrix--stacked-ui .b2b-quickview__add-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.45rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.b2b-pdp__shell.b2b-matrix--stacked-ui .b2b-quickview__matrix-error {
    margin-bottom: 0.35rem;
}

.b2b-pdp__easy-qty {
    padding-left: 2.5rem;
    min-height: auto;
}

.b2b-pdp__easy-qty .form-check-input,
.b2b-pdp__easy-qty .form-check-label {
    cursor: pointer;
    user-select: none;
}

.b2b-matrix--easy-qty .b2b-qty-stepper {
    display: inline-flex;
    align-items: stretch;
    vertical-align: middle;
    max-width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 0.4rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.b2b-matrix--easy-qty .b2b-qty-stepper:focus-within {
    border-color: #bfdbfe;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.12);
}

.b2b-matrix--easy-qty .b2b-qty-stepper__btn {
    flex: 0 0 auto;
    width: 1.55rem;
    min-width: 1.55rem;
    padding: 0;
    border: 0;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.b2b-matrix--easy-qty .b2b-qty-stepper__btn:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: -2px;
    z-index: 1;
}

.b2b-matrix--easy-qty .b2b-qty-stepper__btn--minus {
    border-right: 1px solid #f3f4f6;
    background: linear-gradient(180deg, #fafafa 0%, #fff1f2 100%);
    color: #a8787e;
}

.b2b-matrix--easy-qty .b2b-qty-stepper__btn--minus:hover {
    background: #fff1f2;
    color: #9f6b72;
}

.b2b-matrix--easy-qty .b2b-qty-stepper__btn--minus:active {
    background: #ffe4e6;
    color: #8f6269;
}

.b2b-matrix--easy-qty .b2b-qty-stepper__btn--plus {
    border-left: 1px solid #f3f4f6;
    background: linear-gradient(180deg, #fafafa 0%, #f0fdf4 100%);
    color: #7a9480;
}

.b2b-matrix--easy-qty .b2b-qty-stepper__btn--plus:hover {
    background: #f0fdf4;
    color: #6b8572;
}

.b2b-matrix--easy-qty .b2b-qty-stepper__btn--plus:active {
    background: #ecfdf5;
    color: #5f7566;
}

.b2b-matrix--easy-qty .b2b-qty-stepper [data-matrix-qty] {
    flex: 1 1 auto;
    min-width: 1.65rem;
    width: 1.85rem;
    max-width: 2.1rem;
    border: 0;
    border-radius: 0;
    padding-left: 0.05rem;
    padding-right: 0.05rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.8125rem;
    color: #111827;
    background: #fff;
    box-shadow: none;
}

.b2b-pdp__shell.b2b-matrix--stacked-ui.b2b-matrix--easy-qty .b2b-variant-matrix--inline .b2b-variant-matrix__size-head,
.b2b-pdp__shell.b2b-matrix--stacked-ui.b2b-matrix--easy-qty .b2b-variant-matrix--inline .b2b-variant-matrix__cell {
    min-width: 4.85rem;
    width: 4.85rem;
    max-width: 4.85rem;
}

.b2b-pdp__shell.b2b-matrix--stacked-ui.b2b-matrix--easy-qty .b2b-variant-matrix--inline .b2b-variant-matrix__qty {
    width: 1.85rem;
    max-width: 2.1rem;
    min-width: 1.65rem;
}

/* PDP — diğer kalite / gruplama (matris üstü) */
.b2b-pdp .product-grouping-variations {
    margin-bottom: 0.65rem;
}

.b2b-pdp .product-grouping-variations .group-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280;
}

.b2b-pdp .product-grouping-variations__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: flex-start;
}

/* PDP — stacked varyant matrisi (kolay adet kapalı: dar sütunlar; açık: yukarıdaki easy-qty kuralları) */
.b2b-pdp__shell.b2b-matrix--stacked-ui .b2b-variant-matrix-section--stacked {
    border-top: none;
    padding-top: 0;
    margin-top: 0 !important;
}

.b2b-pdp__shell.b2b-matrix--stacked-ui .b2b-color-stack {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    align-items: stretch;
    width: 100%;
}

.b2b-pdp__shell.b2b-matrix--stacked-ui .b2b-color-block {
    width: 100%;
    max-width: 100%;
    border: 1px solid #e5e7eb;
    border-left-width: 3px;
    border-left-color: #e5e7eb;
    border-radius: 0.35rem;
    padding: 0;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.b2b-pdp__shell.b2b-matrix--stacked-ui .b2b-color-block.is-selected {
    border-color: #dbeafe;
    border-left-color: #2563eb;
    background: #f8fbff;
}

.b2b-pdp__shell.b2b-matrix--stacked-ui .b2b-color-block.is-selected .b2b-variant-matrix__row {
    background: transparent;
}

.b2b-pdp__shell.b2b-matrix--stacked-ui .b2b-color-block:hover:not(.is-selected) {
    border-left-color: #9ca3af;
    background: #fafafa;
}

/* Stacked matris — sol görsel + sağda başlık + beden tablosu (flex, rowspan etkisi) */
.b2b-color-block__layout {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 0;
}

.b2b-color-block__media {
    flex: 0 0 6.5rem;
    width: 6.5rem;
    max-width: 6.5rem;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    background: #fff;
    border-right: 1px solid #e5e7eb;
}

.b2b-color-block__media .b2b-variant-matrix__thumb-btn {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
    max-height: 100%;
    height: auto;
    padding: 0.3rem 0.35rem;
    border: 0;
    background: transparent;
    overflow: hidden;
    box-sizing: border-box;
}

.b2b-color-block__media .b2b-variant-matrix__thumb--rowspan {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    min-height: 0;
    border-radius: 0.2rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    box-sizing: border-box;
}

.b2b-color-block__media .b2b-variant-matrix__thumb--rowspan img,
.b2b-color-block__media .b2b-variant-matrix__thumb--rowspan .b2b-variant-matrix__swatch {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    min-height: 0;
    object-fit: contain;
    object-position: center center;
}

.b2b-color-block__aside {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.b2b-color-block__head {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.5rem;
    padding: 0.3rem 0.5rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.8125rem;
    line-height: 1.25;
    min-height: 2rem;
}

.b2b-color-block__head .b2b-color-block__code {
    flex: 0 0 auto;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #6b7280;
    min-width: 2.75rem;
}

.b2b-variant-matrix--stacked {
    width: max-content;
    max-width: 100%;
    table-layout: fixed;
    font-size: 0.75rem;
    border: 0;
    border-radius: 0;
    margin: 0;
}

.b2b-color-block__aside .b2b-variant-matrix--stacked thead th {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    background: #f3f4f6;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #374151;
    border-color: #e5e7eb;
    line-height: 1.25;
}

.b2b-pdp__shell.b2b-matrix--stacked-ui .b2b-color-block__matrix {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    width: 100%;
    max-width: 100%;
}

.b2b-pdp__shell.b2b-matrix--stacked-ui .b2b-color-block__code {
    flex: 0 0 auto;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #6b7280;
    min-width: 2.75rem;
}

.b2b-pdp__shell.b2b-matrix--stacked-ui .b2b-color-block__matrix.table-responsive {
    display: block;
    overflow-x: auto;
}

.b2b-pdp__shell.b2b-matrix--stacked-ui .b2b-variant-matrix {
    min-width: 0;
}

.b2b-pdp__shell.b2b-matrix--stacked-ui .b2b-variant-matrix--inline {
    min-width: 0;
    width: max-content;
    max-width: 100%;
    table-layout: fixed;
    font-size: 0.75rem;
}

.b2b-pdp__shell.b2b-matrix--stacked-ui:not(.b2b-matrix--easy-qty) .b2b-variant-matrix--inline .b2b-variant-matrix__size-head,
.b2b-pdp__shell.b2b-matrix--stacked-ui:not(.b2b-matrix--easy-qty) .b2b-variant-matrix--inline .b2b-variant-matrix__cell {
    min-width: 2.15rem;
    width: 2.15rem;
    max-width: 2.15rem;
    padding-left: 0.05rem;
    padding-right: 0.05rem;
    box-sizing: border-box;
}

.b2b-pdp__shell.b2b-matrix--stacked-ui:not(.b2b-matrix--easy-qty) .b2b-variant-matrix--inline .b2b-variant-matrix__qty {
    width: 2.05rem;
    max-width: 2.05rem;
    min-width: 2.05rem;
    height: 2rem;
    padding: 0.08rem 0.1rem;
    font-size: 0.8125rem;
}

.b2b-pdp__shell.b2b-matrix--stacked-ui .b2b-variant-matrix--inline .b2b-variant-matrix__total-head,
.b2b-pdp__shell.b2b-matrix--stacked-ui .b2b-variant-matrix--inline .b2b-variant-matrix__row-total {
    min-width: 2.95rem;
    width: 2.95rem;
    max-width: 2.95rem;
    padding-left: 0.1rem;
    padding-right: 0.1rem;
    border-right: 1px solid #e5e7eb;
    border-left: 1px solid #d1d5db;
    box-sizing: border-box;
}

.b2b-pdp__shell.b2b-matrix--stacked-ui .b2b-variant-matrix--inline .b2b-variant-matrix__total-head {
    font-size: 0.625rem;
    letter-spacing: 0;
    line-height: 1.15;
    white-space: normal;
}

.b2b-pdp__shell.b2b-matrix--stacked-ui .b2b-variant-matrix--inline thead th {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
}

.b2b-pdp__shell.b2b-matrix--stacked-ui .b2b-color-block__matrix .b2b-variant-matrix--inline.b2b-variant-matrix--stacked {
    border: 0;
    border-radius: 0;
    overflow: visible;
}

.b2b-pdp__shell.b2b-matrix--stacked-ui .b2b-color-block__matrix .b2b-variant-matrix--inline:not(.b2b-variant-matrix--stacked) {
    border: 1px solid #e5e7eb;
    border-radius: 0.25rem;
    overflow: hidden;
}

.b2b-pdp__shell.b2b-matrix--stacked-ui .b2b-variant-matrix--inline .b2b-variant-matrix__code-head,
.b2b-pdp__shell.b2b-matrix--stacked-ui .b2b-variant-matrix--inline .b2b-variant-matrix__name-head,
.b2b-pdp__shell.b2b-matrix--stacked-ui .b2b-variant-matrix--inline .b2b-variant-matrix__code-cell,
.b2b-pdp__shell.b2b-matrix--stacked-ui .b2b-variant-matrix--inline .b2b-variant-matrix__name-cell {
    display: none;
}

.b2b-pdp__shell.b2b-matrix--stacked-ui .b2b-color-block__media .b2b-variant-matrix__thumb--rowspan,
.b2b-color-block__media .b2b-variant-matrix__thumb--rowspan {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    min-height: 0;
}

.b2b-variant-matrix__thumb--rowspan {
    flex: 0 0 6.5rem;
    width: 6.5rem;
    height: 6.5rem;
}

.b2b-pdp__shell.b2b-matrix--stacked-ui .b2b-variant-matrix__thumb {
    flex-basis: 2.25rem;
    width: 2.25rem;
    height: 2.25rem;
}

@media (min-width: 992px) {
    .b2b-pdp__shell.b2b-matrix--stacked-ui .b2b-pdp__gallery-col {
        flex: 0 0 auto;
        width: min(29rem, 100%);
        max-width: min(29rem, 100%);
        padding-right: 0.35rem;
        transition: width 0.28s ease, max-width 0.28s ease;
    }

    .b2b-pdp__shell.b2b-matrix--stacked-ui.b2b-matrix--easy-qty .b2b-pdp__gallery-col {
        width: min(20.3rem, 100%);
        max-width: min(20.3rem, 100%);
        padding-right: 0.2rem;
    }

    .b2b-pdp__shell.b2b-matrix--stacked-ui .b2b-pdp__gallery {
        position: sticky;
        top: 5.5rem;
        max-width: min(27rem, 100%);
        transition: max-width 0.28s ease, transform 0.28s ease;
    }

    .b2b-pdp__shell.b2b-matrix--stacked-ui.b2b-matrix--easy-qty .b2b-pdp__gallery {
        max-width: min(18.9rem, 100%);
        transform: translateX(-0.35rem);
    }

    .b2b-pdp__shell.b2b-matrix--stacked-ui .b2b-pdp__gallery .main-image {
        max-height: min(27rem, 100%);
        transition: max-height 0.28s ease;
    }

    .b2b-pdp__shell.b2b-matrix--stacked-ui.b2b-matrix--easy-qty .b2b-pdp__gallery .main-image {
        max-height: 18.9rem;
    }

    .b2b-pdp__shell.b2b-matrix--stacked-ui .b2b-pdp__gallery .thumbs button {
        width: 5.5rem;
        height: 6.5rem;
        transition: width 0.28s ease, height 0.28s ease;
    }

    .b2b-pdp__shell.b2b-matrix--stacked-ui.b2b-matrix--easy-qty .b2b-pdp__gallery .thumbs button {
        width: 3.85rem;
        height: 4.55rem;
    }
}

.b2b-pdp .product-grouping-variations {
    margin-bottom: 0.75rem;
}

.b2b-pdp .product-grouping-variations .group-label {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.b2b-pdp .product-grouping-variations__item {
    width: 92px;
}

.b2b-pdp .product-grouping-variations__item img,
.b2b-pdp .product-grouping-variations__fallback {
    width: 84px;
    height: 105px;
    max-width: 100%;
    max-height: 105px;
    object-fit: contain;
    object-position: center center;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 0.35rem;
    background: #fff;
    box-sizing: border-box;
}

.b2b-pdp .product-grouping-variations__item.is-current img,
.b2b-pdp .product-grouping-variations__item.is-current .product-grouping-variations__fallback {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

.b2b-pdp .product-grouping-variations__label {
    font-size: 0.7rem;
    max-width: 92px;
}

.b2b-pdp__info-col .h3 {
    font-size: 1.35rem;
}

.b2b-pdp__matrix-slot .b2b-variant-matrix-section {
    border-top: none;
    padding-top: 0;
    margin-top: 0 !important;
}

.b2b-variant-matrix-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 1.5rem;
}

.b2b-pdp__matrix-slot .b2b-variant-matrix__top-bar {
    margin-bottom: 0.35rem;
}

.b2b-variant-matrix-wrap {
    border: 1px solid #d1d5db;
    border-radius: 0.35rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.b2b-variant-matrix {
    margin-bottom: 0;
    min-width: 720px;
    font-size: 0.8125rem;
    table-layout: auto;
    border-collapse: separate;
    border-spacing: 0;
}

.b2b-variant-matrix td,
.b2b-variant-matrix th {
    border-bottom: 1px solid #e5e7eb;
}

.b2b-variant-matrix thead th,
.b2b-variant-matrix tfoot th {
    background: #f3f4f6;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #374151;
    border-color: #e5e7eb;
    white-space: nowrap;
    padding: 0.4rem 0.25rem;
}

.b2b-variant-matrix__code-head,
.b2b-variant-matrix__code-cell {
    min-width: 4.5rem;
    max-width: 5.5rem;
    position: sticky;
    left: 0;
    z-index: 3;
    background: inherit;
    border-right: 1px solid #e5e7eb;
}

.b2b-variant-matrix thead .b2b-variant-matrix__code-head {
    background: #f3f4f6;
    z-index: 4;
}

.b2b-variant-matrix__name-head,
.b2b-variant-matrix__name-cell {
    min-width: 9rem;
    max-width: 12rem;
    position: sticky;
    left: 5rem;
    z-index: 2;
    background: inherit;
    border-right: 1px solid #e5e7eb;
}

.b2b-variant-matrix thead .b2b-variant-matrix__name-head {
    background: #f3f4f6;
    z-index: 4;
}

.b2b-variant-matrix__size-head {
    min-width: 2.6rem;
    width: 2.6rem;
    max-width: 2.6rem;
    padding-left: 0.12rem;
    padding-right: 0.12rem;
    border-right: 1px solid #e5e7eb;
}

.b2b-variant-matrix__total-head,
.b2b-variant-matrix__row-total,
.b2b-variant-matrix__grand-total {
    min-width: 2.75rem;
    width: 2.75rem;
    font-weight: 700;
    background: #fafafa;
    padding-left: 0.15rem;
    padding-right: 0.15rem;
    border-left: 1px solid #d1d5db;
}

.b2b-variant-matrix__row.is-selected {
    background: #eff6ff;
}

.b2b-variant-matrix__row.is-selected .b2b-variant-matrix__code-cell,
.b2b-variant-matrix__row.is-selected .b2b-variant-matrix__name-cell {
    background: #eff6ff;
}

.b2b-variant-matrix__code-cell {
    font-weight: 600;
    color: #111827;
    vertical-align: middle;
    padding: 0.35rem 0.5rem;
    background: #fff;
}

.b2b-variant-matrix__name-cell {
    vertical-align: middle;
    padding: 0.25rem 0.35rem;
    background: #fff;
}

.b2b-variant-matrix__color-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.b2b-variant-matrix__name-cell .b2b-variant-matrix__color-row {
    justify-content: space-between;
}

.b2b-variant-matrix__name-cell .b2b-variant-matrix__thumb-btn,
.b2b-variant-matrix__name-cell .b2b-variant-matrix__thumb--static {
    margin-left: 0.35rem;
    flex-shrink: 0;
}

.b2b-variant-matrix__thumb-btn {
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    line-height: 0;
}

.b2b-variant-matrix__thumb-btn:hover .b2b-variant-matrix__thumb {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.b2b-variant-matrix__thumb--static {
    flex: 0 0 auto;
}

.b2b-variant-matrix__color-btn {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    padding: 0.25rem 0.15rem;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.b2b-variant-matrix__color-btn:hover .b2b-variant-matrix__color-name {
    text-decoration: underline;
}

.b2b-variant-matrix__thumb {
    flex: 0 0 1.75rem;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.2rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.b2b-variant-matrix__thumb img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
}

.b2b-variant-matrix__swatch {
    display: block;
    width: 100%;
    height: 100%;
}

.b2b-variant-matrix__color-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.25;
}

.b2b-variant-matrix__cell {
    padding: 0.15rem 0.08rem;
    vertical-align: middle;
    width: 2.6rem;
    max-width: 2.6rem;
    border-right: 1px solid #e5e7eb;
}

.b2b-variant-matrix__qty {
    width: 2.4rem;
    max-width: 2.4rem;
    min-width: 2.4rem;
    height: 2rem;
    padding: 0.1rem 0.15rem;
    font-size: 0.8125rem;
    border-radius: 0.2rem;
    border: 1px solid #d1d5db;
    margin: 0;
    -moz-appearance: textfield;
    appearance: textfield;
}

.b2b-variant-matrix__qty::-webkit-outer-spin-button,
.b2b-variant-matrix__qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.b2b-variant-matrix__qty:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.b2b-variant-matrix__empty {
    font-size: 0.8125rem;
    color: #9ca3af;
}

.b2b-variant-matrix__sum-row th {
    background: #f9fafb;
    font-size: 0.75rem;
    padding: 0.45rem 0.35rem;
}

.b2b-variant-matrix__sum-label {
    text-align: left;
}

.b2b-variant-matrix__col-total {
    width: 2.6rem;
    max-width: 2.6rem;
    padding-left: 0.1rem;
    padding-right: 0.1rem;
    border-right: 1px solid #e5e7eb;
}

.b2b-variant-matrix__col-total,
.b2b-variant-matrix__row-total,
.b2b-variant-matrix__grand-total {
    font-variant-numeric: tabular-nums;
}

.b2b-variant-matrix-summary strong {
    color: #111827;
    font-weight: 700;
}

.b2b-variant-matrix-actions .btn-success {
    min-width: 12rem;
}

@media (max-width: 767.98px) {
    .b2b-variant-matrix {
        min-width: 560px;
    }

    .b2b-variant-matrix__name-head,
    .b2b-variant-matrix__name-cell {
        left: 4.5rem;
        min-width: 7rem;
    }
}

/* Hızlı bakış modalı */
#productQuickViewModal .product-quickview--b2b .b2b-quickview__toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    margin: -0.15rem 0 0.85rem;
}

#productQuickViewModal .product-quickview--b2b .product-quickview__close {
    position: static;
    flex-shrink: 0;
    opacity: 0.55;
}

#productQuickViewModal .product-quickview--b2b .product-quickview__close:hover {
    opacity: 1;
}

#productQuickViewModal .product-quickview--b2b .b2b-quickview__detail-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #374151;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

#productQuickViewModal .product-quickview--b2b .b2b-quickview__detail-link:hover {
    color: #111827;
    border-color: #d1d5db;
    background: #f9fafb;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

#productQuickViewModal .product-quickview--b2b .b2b-quickview__detail-link .bi {
    font-size: 0.875rem;
    opacity: 0.75;
}

#productQuickViewModal .product-quickview--b2b .b2b-quickview__price-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem 1rem;
    margin-bottom: 0.35rem;
}

#productQuickViewModal .product-quickview--b2b .b2b-quickview__price-row .price-block {
    margin-bottom: 0;
}

#productQuickViewModal .product-quickview--b2b .b2b-quickview__add-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.45rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

#productQuickViewModal .product-quickview--b2b .b2b-quickview__summary-line {
    margin-bottom: 0.65rem;
}

#productQuickViewModal .product-quickview--b2b .b2b-quickview__matrix-error {
    margin-bottom: 0.5rem;
}

#productQuickViewModal .product-quickview--b2b .b2b-quickview__layout {
    align-items: flex-start;
}

#productQuickViewModal .product-quickview--b2b .b2b-quickview__gallery-col {
    flex: 0 0 auto;
    max-width: 20rem;
}

#productQuickViewModal .product-quickview--b2b .b2b-quickview__main-col {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

#productQuickViewModal .product-quickview--b2b .b2b-variant-matrix-section--stacked {
    border-top: none;
    padding-top: 0;
    margin-top: 0 !important;
}

#productQuickViewModal .product-quickview--b2b .b2b-color-stack {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    padding-right: 0.15rem;
}

#productQuickViewModal .product-quickview--b2b .b2b-color-block {
    border: 1px solid #e5e7eb;
    border-left-width: 3px;
    border-left-color: #e5e7eb;
    border-radius: 0.35rem;
    padding: 0;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

#productQuickViewModal .product-quickview--b2b .b2b-color-block.is-selected {
    border-color: #dbeafe;
    border-left-color: #2563eb;
    background: #f8fbff;
}

#productQuickViewModal .product-quickview--b2b .b2b-color-block.is-selected .b2b-variant-matrix__row {
    background: transparent;
}

#productQuickViewModal .product-quickview--b2b .b2b-color-block:hover:not(.is-selected) {
    border-left-color: #9ca3af;
    background: #fafafa;
}

#productQuickViewModal .product-quickview--b2b .b2b-color-block__code {
    flex: 0 0 auto;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #6b7280;
    min-width: 2.75rem;
}

#productQuickViewModal .product-quickview--b2b .b2b-color-block__matrix {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

#productQuickViewModal .product-quickview--b2b .b2b-variant-matrix--inline {
    min-width: 0;
    width: max-content;
    max-width: 100%;
    table-layout: fixed;
    font-size: 0.75rem;
}

#productQuickViewModal .product-quickview--b2b .b2b-variant-matrix--inline .b2b-variant-matrix__size-head,
#productQuickViewModal .product-quickview--b2b .b2b-variant-matrix--inline .b2b-variant-matrix__cell {
    min-width: 2.15rem;
    width: 2.15rem;
    max-width: 2.15rem;
    padding-left: 0.05rem;
    padding-right: 0.05rem;
}

#productQuickViewModal .product-quickview--b2b .b2b-variant-matrix--inline .b2b-variant-matrix__qty {
    width: 2.05rem;
    max-width: 2.05rem;
    min-width: 2.05rem;
    height: 2rem;
    padding: 0.08rem 0.1rem;
    font-size: 0.8125rem;
}

#productQuickViewModal .product-quickview--b2b .b2b-variant-matrix--inline .b2b-variant-matrix__total-head,
#productQuickViewModal .product-quickview--b2b .b2b-variant-matrix--inline .b2b-variant-matrix__row-total {
    min-width: 2.95rem;
    width: 2.95rem;
    max-width: 2.95rem;
    padding-left: 0.1rem;
    padding-right: 0.1rem;
    border-right: 1px solid #e5e7eb;
    border-left: 1px solid #d1d5db;
    box-sizing: border-box;
}

#productQuickViewModal .product-quickview--b2b .b2b-variant-matrix--inline .b2b-variant-matrix__total-head {
    font-size: 0.625rem;
    letter-spacing: 0;
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: normal;
    hyphens: none;
}

#productQuickViewModal .product-quickview--b2b .b2b-variant-matrix--inline .b2b-variant-matrix__size-head,
#productQuickViewModal .product-quickview--b2b .b2b-variant-matrix--inline .b2b-variant-matrix__cell {
    box-sizing: border-box;
}

#productQuickViewModal .product-quickview--b2b .b2b-variant-matrix--inline thead th {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
}

#productQuickViewModal .product-quickview--b2b .b2b-color-block__matrix .b2b-variant-matrix--inline {
    border: 1px solid #e5e7eb;
    border-radius: 0.25rem;
    overflow: hidden;
}

#productQuickViewModal .product-quickview--b2b .b2b-variant-matrix--inline .b2b-variant-matrix__code-head,
#productQuickViewModal .product-quickview--b2b .b2b-variant-matrix--inline .b2b-variant-matrix__name-head,
#productQuickViewModal .product-quickview--b2b .b2b-variant-matrix--inline .b2b-variant-matrix__code-cell,
#productQuickViewModal .product-quickview--b2b .b2b-variant-matrix--inline .b2b-variant-matrix__name-cell {
    display: none;
}

#productQuickViewModal .product-quickview--b2b .b2b-variant-matrix-section--compact {
    border-top: none;
    padding-top: 0;
}

#productQuickViewModal .product-quickview--b2b .b2b-variant-matrix {
    min-width: 0;
}

#productQuickViewModal .product-quickview--b2b .b2b-variant-matrix__thumb {
    flex-basis: 2.25rem;
    width: 2.25rem;
    height: 2.25rem;
}

#productQuickViewModal .product-quickview--b2b .b2b-pdp__gallery--qv-vertical {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.5rem;
    max-width: 100%;
}

#productQuickViewModal .product-quickview--b2b .b2b-pdp__gallery--qv-vertical .thumbs {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.35rem;
    margin-top: 0;
    flex: 0 0 auto;
}

#productQuickViewModal .product-quickview--b2b .b2b-pdp__gallery--qv-vertical .thumbs button {
    width: 3rem;
    height: 3.5rem;
    flex-shrink: 0;
}

#productQuickViewModal .product-quickview--b2b .b2b-pdp__gallery--qv-vertical .main-image {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 260px;
    max-height: none;
    aspect-ratio: 1 / 1;
}

#productQuickViewModal .product-quickview--b2b .product-gallery .main-image {
    min-height: 260px;
}

/* Ürün sekmeleri — matris + özellikler */
.b2b-product-tabs__nav {
    border-bottom: 1px solid #e5e7eb;
    gap: 0.15rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
}

.b2b-product-tabs__nav .nav-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6b7280;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 0.55rem 0.9rem;
    white-space: nowrap;
    background: transparent;
}

.b2b-product-tabs__nav .nav-link:hover {
    color: #374151;
    border-bottom-color: #d1d5db;
}

.b2b-product-tabs__nav .nav-link.active {
    color: #111827;
    border-bottom-color: #111827;
    background: transparent;
}

.b2b-product-tabs__content {
    padding-top: 0.75rem;
}

.b2b-product-tabs .b2b-variant-matrix-section {
    border-top: none;
    padding-top: 0;
    margin-top: 0 !important;
}

.b2b-product-attributes__name {
    width: 38%;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6b7280;
    vertical-align: top;
    padding-right: 0.75rem;
}

.b2b-product-attributes__value {
    font-size: 0.875rem;
    color: #111827;
}

#productQuickViewModal .product-quickview--b2b .b2b-product-tabs__nav .nav-link {
    font-size: 0.75rem;
    padding: 0.45rem 0.7rem;
}

#productQuickViewModal .product-quickview--b2b {
    --b2b-qv-tabs-height: min(52vh, 34rem);
}

#productQuickViewModal .product-quickview--b2b .b2b-product-tabs {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
}

#productQuickViewModal .product-quickview--b2b .b2b-product-tabs__content {
    position: relative;
    height: var(--b2b-qv-tabs-height);
    min-height: var(--b2b-qv-tabs-height);
    max-height: var(--b2b-qv-tabs-height);
    flex: 0 0 auto;
    overflow: hidden;
}

#productQuickViewModal .product-quickview--b2b .b2b-product-tabs__content > .tab-pane {
    position: absolute;
    inset: 0;
    overflow-x: hidden;
    overflow-y: auto;
    display: none;
}

#productQuickViewModal .product-quickview--b2b .b2b-product-tabs__content > .tab-pane.active.show {
    display: flex;
    flex-direction: column;
}

#productQuickViewModal .product-quickview--b2b .b2b-product-tabs__content > .tab-pane[id$="-matrix-pane"].active.show .b2b-variant-matrix-section {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
}

#productQuickViewModal .product-quickview--b2b .b2b-variant-matrix-section--stacked .b2b-variant-matrix-summary,
#productQuickViewModal .product-quickview--b2b .b2b-variant-matrix-section--stacked .b2b-variant-matrix-actions {
    flex-shrink: 0;
}

#productQuickViewModal .product-quickview--b2b .b2b-variant-matrix-section--stacked:not(:has(.b2b-variant-matrix-summary)) .b2b-color-stack {
    margin-bottom: 0;
}

#b2bCartMatrixModal {
    --b2b-cart-tabs-height: min(52vh, 34rem);
}

#b2bCartMatrixModal .b2b-product-tabs__content {
    position: relative;
    height: var(--b2b-cart-tabs-height);
    min-height: var(--b2b-cart-tabs-height);
    max-height: var(--b2b-cart-tabs-height);
    overflow: hidden;
}

#b2bCartMatrixModal .b2b-product-tabs__content > .tab-pane {
    position: absolute;
    inset: 0;
    overflow-x: hidden;
    overflow-y: auto;
    display: none;
}

#b2bCartMatrixModal .b2b-product-tabs__content > .tab-pane.active.show {
    display: block;
}

#b2bCartMatrixModal .b2b-product-tabs__nav .nav-link {
    font-size: 0.8125rem;
}

/* Renk görseli lightbox */
body.b2b-color-lightbox-open {
    overflow: hidden;
}

.b2b-color-lightbox[hidden] {
    display: none !important;
}

.b2b-color-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1080;
}

.b2b-color-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.82);
}

.b2b-color-lightbox__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 1.25rem 1.5rem;
    pointer-events: none;
}

.b2b-color-lightbox__img {
    max-width: min(96vw, 72rem);
    max-height: 94vh;
    object-fit: contain;
    background: #fff;
    border-radius: 0.35rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    pointer-events: auto;
}

.b2b-color-lightbox__close,
.b2b-color-lightbox__nav {
    position: fixed;
    z-index: 2;
    border: 0;
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
    cursor: pointer;
    pointer-events: auto;
}

.b2b-color-lightbox__close {
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    font-size: 1.5rem;
    line-height: 1;
}

.b2b-color-lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 3rem;
    font-size: 1.75rem;
    line-height: 1;
    border-radius: 0.35rem;
}

.b2b-color-lightbox__nav--prev {
    left: 1rem;
}

.b2b-color-lightbox__nav--next {
    right: 1rem;
}

.b2b-color-lightbox__nav[hidden] {
    display: none !important;
}

/* Sepet — model satırları + modal matris */
.b2b-cart-models {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.b2b-cart-models__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 6.75rem 7.5rem 2rem;
    gap: 0.75rem 1rem;
    padding: 0 1rem 0.35rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280;
}

.b2b-cart-model__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 6.75rem 7.5rem 2rem;
    gap: 0.75rem 1rem;
    align-items: center;
    padding: 0.85rem 1rem;
}

.b2b-cart-model__qty-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.b2b-cart-model__info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.b2b-cart-model__img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 0.35rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    flex-shrink: 0;
}

.b2b-cart-model__name {
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.35;
    display: block;
}

.b2b-cart-model__qty-value {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.1;
}

.b2b-cart-model__qty-label {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
}

.b2b-cart-model__unit-price strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    color: #374151;
    font-variant-numeric: tabular-nums;
}

.b2b-cart-model__total strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.b2b-cart-model__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
}

.b2b-cart-model__matrix-btn {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.b2b-cart-model__matrix-btn i {
    font-size: 1.1rem;
}

.b2b-cart-model__matrix-placeholder {
    display: none;
}

.b2b-cart-matrix-source {
    display: none !important;
}

#b2bCartMatrixModal .b2b-variant-matrix {
    min-width: 560px;
}

.b2b-cart-summary {
    position: sticky;
    top: 5.5rem;
}

@media (max-width: 767.98px) {
    .b2b-cart-model__row {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "info actions"
            "qtygroup qtygroup"
            "unitprice total";
    }

    .b2b-cart-model__info { grid-area: info; }
    .b2b-cart-model__qty-group { grid-area: qtygroup; justify-content: flex-start; }
    .b2b-cart-model__unit-price {
        grid-area: unitprice;
        text-align: left !important;
    }
    .b2b-cart-model__unit-price::before {
        content: "Birim: ";
        font-size: 0.75rem;
        font-weight: 500;
        color: #6b7280;
    }
    .b2b-cart-model__total {
        grid-area: total;
    }
    .b2b-cart-model__total::before {
        content: "Toplam: ";
        font-size: 0.75rem;
        font-weight: 500;
        color: #6b7280;
        display: block;
    }
    .b2b-cart-model__actions { grid-area: actions; }
}

/* Kategori listesi — drawer filtre + tam genişlik grid */
.b2b-listing-page {
    padding-bottom: 2.5rem;
    overflow-x: clip;
}

.b2b-listing-form {
    overflow-x: clip;
}

.b2b-listing-heading {
    margin-bottom: 1rem;
}

.b2b-listing-heading__title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.2rem;
}

.b2b-listing-heading__count {
    color: #6b7280;
    font-size: 0.875rem;
}

.b2b-listing-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    padding: 0.75rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.b2b-listing-filter-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    appearance: none;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 0.35rem;
    color: #111827;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    cursor: pointer;
    line-height: 1.2;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.b2b-listing-filter-trigger:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.b2b-listing-filter-trigger.has-filters {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

.b2b-listing-filter-trigger.has-filters:hover {
    background: #1f2937;
    border-color: #1f2937;
    color: #fff;
}

.b2b-listing-toolbar__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1.25rem;
    margin-left: auto;
    min-width: 0;
    max-width: 100%;
}

.b2b-listing-toolbar .listing-toolbar__item {
    min-width: 0;
}

.b2b-listing-toolbar .form-select {
    min-width: 0;
    width: auto;
    max-width: 11rem;
}

.b2b-listing-toolbar__views {
    flex: 1 1 auto;
    min-width: 0;
}

.b2b-listing-toolbar__icon-groups {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem 0.75rem;
}

.b2b-listing-toolbar__divider {
    width: 1px;
    height: 1.25rem;
    background: #e5e7eb;
    flex-shrink: 0;
}

.b2b-listing-sort-switch,
.b2b-listing-layout-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    flex-wrap: wrap;
}

.b2b-listing-sort-btn,
.b2b-listing-layout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0.35rem;
    cursor: pointer;
    line-height: 0;
    border-radius: 0.25rem;
    color: #d1d5db;
    transition: background 0.15s ease, color 0.2s ease;
}

.b2b-listing-sort-btn .bi {
    font-size: 1rem;
    line-height: 1;
}

.b2b-listing-sort-btn:hover,
.b2b-listing-layout-btn:hover {
    background: #f3f4f6;
}

.b2b-listing-sort-btn:hover,
.b2b-listing-sort-btn.is-active,
.b2b-listing-layout-btn:hover,
.b2b-listing-layout-btn.is-active {
    color: #111827;
}

.b2b-listing-sort-btn.is-active {
    color: #111827;
}

.b2b-listing-results.is-loading {
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.b2b-listing-infinite-sentinel {
    min-height: 1px;
    padding: 1.5rem 0 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.b2b-listing-load-more {
    min-width: 10rem;
}

.b2b-listing-infinite-sentinel__loader {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.b2b-listing-layout-btn svg {
    display: block;
    fill: currentColor;
}

.b2b-listing-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

    .b2b-listing-grid--cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .b2b-listing-grid--cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.b2b-listing-grid--list {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
}

.b2b-listing-grid--list .product-card {
    flex-direction: row;
    height: auto;
    align-items: stretch;
}

.b2b-listing-grid--list .product-card:hover {
    transform: none;
}

.b2b-listing-grid--list .product-card .product-image {
    width: 7.5rem;
    min-width: 7.5rem;
    aspect-ratio: 3 / 4;
    flex-shrink: 0;
}

.b2b-listing-grid--list .product-card .product-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.b2b-listing-grid--list .product-card .product-name {
    min-height: 0;
}

.b2b-listing-grid__item {
    min-width: 0;
}

.b2b-listing-grid__item .product-card {
    max-width: 100%;
}

.b2b-listing-grid__item .product-name {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.b2b-listing-filter-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1090;
    background: rgba(15, 23, 42, 0.45);
    border: 0;
    padding: 0;
    cursor: pointer;
}

.b2b-listing-filter-backdrop[hidden] {
    display: none !important;
}

.b2b-listing-filter-drawer {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1095;
    width: min(360px, 92vw);
    height: 100%;
    max-height: 100dvh;
    max-height: 100vh;
    background: #fff;
    box-shadow: 4px 0 24px rgba(15, 23, 42, 0.15);
    transform: translate3d(-100%, 0, 0);
    transition: transform 0.28s ease, visibility 0s linear 0.28s;
    visibility: hidden;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.b2b-listing-filter-drawer.is-open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.28s ease, visibility 0s;
}

.b2b-listing-filter-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.b2b-listing-filter-drawer__title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.b2b-listing-filter-drawer__close {
    appearance: none;
    background: transparent;
    border: 0;
    font-size: 1.75rem;
    line-height: 1;
    color: #374151;
    cursor: pointer;
    padding: 0 0.15rem;
}

.b2b-listing-filter-drawer__body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0 1.15rem 2rem;
}

.b2b-listing-filter-drawer__body .filter-group.pt-0 {
    padding-top: 0.85rem;
}

.b2b-listing-filter-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    padding: 0.55rem 0.85rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.35rem;
    background: #f9fafb;
    color: #374151;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.b2b-listing-filter-clear .bi {
    font-size: 0.9rem;
    opacity: 0.75;
}

.b2b-listing-filter-clear:hover {
    background: #fff;
    border-color: #d1d5db;
    color: #111827;
}

.b2b-listing-filter-clear:focus-visible {
    outline: 2px solid #111827;
    outline-offset: 2px;
}

.b2b-listing-filter-scroll {
    max-height: 220px;
    overflow-y: auto;
}

.b2b-listing-size-chip.is-active {
    background: #111827;
    color: #fff;
    border-color: #111827 !important;
}

.b2b-listing-color-swatch span.is-selected {
    outline: 2px solid #111827;
    outline-offset: 2px;
}

body.b2b-listing-filter-open {
    overflow: hidden;
}

.b2b-listing-restart-btn {
    position: fixed;
    right: 1rem;
    bottom: 1.25rem;
    z-index: 1085;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1rem;
    border: 1px solid #111827;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s ease;
}

.b2b-listing-restart-btn[hidden] {
    display: none !important;
}

.b2b-listing-restart-btn:hover:not(:disabled) {
    background: #000;
}

.b2b-listing-restart-btn:disabled {
    opacity: 0.55;
    cursor: wait;
}

.b2b-listing-restart-btn .bi {
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .b2b-listing-restart-btn {
        right: 1.5rem;
        bottom: 1.5rem;
    }
}

/* PDP lazy-load skeleton */
.b2b-pdp-lazy--loading .b2b-pdp-lazy__skeleton {
    display: block;
}

.b2b-pdp-lazy__skeleton {
    display: none;
}

.b2b-pdp-lazy__skeleton--matrix {
    min-height: 12rem;
    padding: 0.75rem 0;
}

.b2b-pdp-lazy__skeleton--description,
.b2b-pdp-lazy__skeleton--related {
    min-height: 8rem;
}

.b2b-pdp-lazy__card {
    display: block;
    height: 220px;
    border-radius: 0.375rem;
}

.b2b-pdp-lazy--error {
    padding: 0.5rem 0;
}

/* Kategori liste skeleton */
.b2b-listing-skeleton__card {
    display: block;
}

.b2b-listing-skeleton__image {
    display: block;
    height: 220px;
    border-radius: 0.375rem;
}

.b2b-listing-facets-skeleton {
    min-height: 12rem;
}

/* Auth sayfaları */
.auth-page-body {
    background: linear-gradient(160deg, #f8fafc 0%, #eef2f7 55%, #e5e7eb 100%) !important;
}

.auth-page-body .auth-card {
    border-radius: 0.75rem;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12) !important;
}

.auth-page-body .auth-card .btn-dark {
    background: #111827;
    border-color: #111827;
    font-weight: 600;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.auth-page-body .auth-card .btn-dark:hover,
.auth-page-body .auth-card .btn-dark:focus {
    background: #000;
    border-color: #000;
}

.auth-page-body .auth-page-brand img {
    max-height: 56px;
}

/* Hesabım */
.b2b-account {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.b2b-account-alert {
    border: 0;
    border-radius: 0.625rem;
    margin-bottom: 1.25rem;
}

.b2b-account-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.75rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.875rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.b2b-account-nav__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.875rem;
    border-radius: 0.625rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}

.b2b-account-nav__link .bi {
    width: 1.125rem;
    font-size: 1rem;
    color: #6b7280;
    transition: color 0.15s ease;
}

.b2b-account-nav__link:hover {
    background: #f9fafb;
    color: #111827;
}

.b2b-account-nav__link:hover .bi {
    color: #111827;
}

.b2b-account-nav__link.is-active {
    background: #f3f4f6;
    color: #111827;
    box-shadow: inset 3px 0 0 #111827;
}

.b2b-account-nav__link.is-active .bi {
    color: #111827;
}

.b2b-account-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.875rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.b2b-account-welcome {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
    padding: 1.75rem 1.75rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.b2b-account-welcome__lead {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    flex: 1 1 16rem;
    min-width: 0;
}

.b2b-account-welcome__rep {
    flex: 0 1 auto;
    margin-left: auto;
    padding: 0.25rem 0;
}

.b2b-account-welcome__rep .account-sales-person {
    text-align: right;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
}

.b2b-account .b2b-account-page-head .account-sales-person {
    text-align: right;
}

.b2b-account-welcome__avatar {
    flex: 0 0 auto;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.b2b-account-welcome__eyebrow {
    margin: 0 0 0.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9ca3af;
}

.b2b-account-welcome__name {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    color: #111827;
}

.b2b-account-welcome__email {
    margin: 0.35rem 0 0;
    font-size: 0.9375rem;
    color: #6b7280;
}

.b2b-account-welcome__hint {
    margin: 0.75rem 0 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #6b7280;
    max-width: 36rem;
}

.b2b-account-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.875rem;
    padding: 1.25rem 1.75rem 1.75rem;
}

.b2b-account-tile-form {
    margin: 0;
}

.b2b-account-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    width: 100%;
    min-height: 100%;
    padding: 1rem 1.125rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #fff;
    color: inherit;
    text-decoration: none;
    text-align: left;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

button.b2b-account-tile {
    cursor: pointer;
}

.b2b-account-tile:hover {
    border-color: #d1d5db;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
    color: inherit;
}

.b2b-account-tile__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.625rem;
    background: #f3f4f6;
    color: #111827;
    margin-bottom: 0.15rem;
}

.b2b-account-tile__icon .bi {
    font-size: 1.05rem;
}

.b2b-account-tile__label {
    font-size: 0.975rem;
    font-weight: 600;
    color: #111827;
}

.b2b-account-tile__hint {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #9ca3af;
}

.b2b-account-tile--logout .b2b-account-tile__icon {
    background: #fef2f2;
    color: #b91c1c;
}

.b2b-account-tile--logout .b2b-account-tile__label {
    color: #991b1b;
}

.b2b-account-tile--logout:hover {
    border-color: #fecaca;
}

.b2b-account .b2b-account-page-head {
    margin-bottom: 1.5rem;
}

.b2b-account .b2b-account-page-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.b2b-account .card {
    border-color: #e5e7eb;
    border-radius: 0.875rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.b2b-account .nav-tabs {
    border-bottom-color: #e5e7eb;
    gap: 0.25rem;
}

.b2b-account .nav-tabs .nav-link {
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: #6b7280;
    font-weight: 500;
    padding: 0.65rem 0.25rem;
    margin-right: 1rem;
}

.b2b-account .nav-tabs .nav-link:hover {
    color: #111827;
    border-bottom-color: #d1d5db;
}

.b2b-account .nav-tabs .nav-link.active {
    color: #111827;
    background: transparent;
    border-bottom-color: #111827;
}

@media (max-width: 767.98px) {
    .b2b-account-welcome {
        flex-direction: column;
        padding: 1.25rem;
    }

    .b2b-account-welcome__lead {
        flex-direction: column;
    }

    .b2b-account-welcome__rep {
        margin-left: 0;
        width: 100%;
    }

    .b2b-account-welcome__rep .account-sales-person {
        text-align: left;
    }

    .b2b-account-tiles {
        grid-template-columns: 1fr;
        padding: 1rem 1.25rem 1.25rem;
    }
}

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

    .b2b-account-tile-form {
        grid-column: span 1;
    }
}
