/* ==========================================================================
 * Daynex B2B r12 — Global Theme, Contrast & Layout Stylesheet
 * Works across:
 *   1. /admin/b2b Site Yönetimi preview (.site-mini-store, .shop-site)
 *   2. /bayi/magaza (r12 storefront, product detail, account, modals)
 *   3. /bayi (r12 dealer login gateway)
 *   4. /bayi/reklamlar (r12 login advert editor)
 *   5. /b2b-cart-frame.html (r12 cart & checkout iframe)
 * ========================================================================== */

:root {
  --b2b-primary: #8c2b43;
  --b2b-secondary: #38212e;
  --b2b-bg: #ffffff;
  --b2b-text: #38212e;
  --b2b-heading: #38212e;
  --b2b-muted: #5e4b56;
  --b2b-link: #8c2b43;
  --b2b-surface: #fcf7f8;
  --b2b-surface-text: #38212e;
  --b2b-surface-heading: #38212e;
  --b2b-surface-muted: #5e4b56;
  --b2b-surface-link: #8c2b43;
  --b2b-card-bg: #ffffff;
  --b2b-card-text: #38212e;
  --b2b-card-heading: #38212e;
  --b2b-card-muted: #5e4b56;
  --b2b-photo-bg: #f8fafc;
  --b2b-border: #e8dfe4;
  --b2b-btn-bg: #8c2b43;
  --b2b-btn-text: #ffffff;
  --b2b-btn-hover-bg: #712035;
  --b2b-btn-hover-text: #ffffff;
  --b2b-sec-btn-bg: #fcf7f8;
  --b2b-sec-btn-text: #38212e;
  --b2b-header-bg: #ffffff;
  --b2b-header-text: #38212e;
  --b2b-footer-bg: #fcf7f8;
  --b2b-footer-text: #38212e;
  --b2b-input-bg: #ffffff;
  --b2b-input-text: #1e293b;
  --b2b-input-border: #cbd5e1;
  --b2b-focus-ring: #2563eb;
  /* Semantic status tokens — never overwritten by brand palette */
  --b2b-status-success-bg: #ecfdf5;
  --b2b-status-success-text: #065f46;
  --b2b-status-success-border: #10b981;
  --b2b-status-warning-bg: #fffbeb;
  --b2b-status-warning-text: #92400e;
  --b2b-status-warning-border: #f59e0b;
  --b2b-status-error-bg: #fef2f2;
  --b2b-status-error-text: #991b1b;
  --b2b-status-error-border: #ef4444;
}

/* 1. Palette Dialog HEX Validation UI (B2B-KABUL-006) */
#dnx-b2b-palette-container input[data-hex-key].is-invalid,
.dnx-palette-color-item input[data-hex-key][aria-invalid="true"] {
  border-color: #dc2626 !important;
  background-color: #fef2f2 !important;
  color: #991b1b !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2) !important;
}

.dnx-palette-hex-error-banner {
  margin: 0 0 12px 0;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #ef4444;
  background: #fef2f2;
  color: #991b1b;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
}

/* 2. Admin Site Yönetimi Preview (.site-mini-store & .shop-site) Surface & Contrast Rules (B2B-KABUL-007) */
.site-mini-store,
.shop-site {
  background-color: var(--b2b-bg) !important;
  color: var(--b2b-text) !important;
}

.site-mini-store > main,
.shop-site > main {
  background-color: var(--b2b-bg) !important;
  color: var(--b2b-text) !important;
}

.site-mini-store > header,
.shop-site .shop-header {
  background-color: var(--b2b-header-bg) !important;
  color: var(--b2b-header-text) !important;
  border-bottom-color: var(--b2b-border) !important;
}

.site-mini-store > header *,
.shop-site .shop-header .shop-brand span,
.shop-site .shop-header .shop-brand b,
.shop-site .shop-header .shop-brand small {
  color: var(--b2b-header-text) !important;
}

.site-mini-store .site-mini-search,
.site-mini-store .site-mini-cart,
.shop-site .shop-header .shop-account,
.shop-site .shop-header .shop-cart-button {
  background-color: var(--b2b-sec-btn-bg) !important;
  color: var(--b2b-sec-btn-text) !important;
  border: 1px solid var(--b2b-border) !important;
}

.site-mini-store .site-mini-search *,
.site-mini-store .site-mini-cart * {
  color: var(--b2b-sec-btn-text) !important;
}

.site-mini-store > nav,
.shop-site .shop-main-nav {
  background-color: var(--b2b-surface) !important;
  color: var(--b2b-surface-text) !important;
  border-bottom: 1px solid var(--b2b-border) !important;
}

.site-mini-store > nav > b,
.site-mini-store > nav > span,
.shop-site .shop-main-nav > button {
  color: var(--b2b-surface-heading) !important;
}

/* Section headings in Site Yönetimi preview */
.site-mini-store .site-store-section-title h3,
.site-mini-store .site-store-content h3,
.site-mini-store .workshop-wholesale-heading h3,
.site-mini-store h1,
.site-mini-store h2,
.site-mini-store h3,
.site-mini-store h4,
.shop-site h1,
.shop-site h2,
.shop-site h3,
.shop-site h4 {
  color: var(--b2b-heading) !important;
}

.site-mini-store .site-store-section-title small,
.site-mini-store .site-store-content small,
.site-mini-store .workshop-wholesale-heading small,
.site-mini-store .workshop-wholesale-heading p {
  color: var(--b2b-muted) !important;
}

/* Product Cards in Site Yönetimi Preview — separate photo frame from info surface (B2B-KABUL-007) */
.site-mini-store .site-store-products article,
.shop-site .site-store-products article,
.site-mini-store .workshop-wholesale-grid article,
.shop-site .workshop-wholesale-grid article {
  background-color: var(--b2b-card-bg) !important;
  color: var(--b2b-card-text) !important;
  border: 1px solid var(--b2b-border) !important;
}

.site-mini-store .site-store-products article > div,
.shop-site .site-store-products article > div,
.site-mini-store .workshop-wholesale-copy,
.shop-site .workshop-wholesale-copy {
  background-color: var(--b2b-card-bg) !important;
  color: var(--b2b-card-text) !important;
}

.site-mini-store .site-store-products article b,
.site-mini-store .site-store-products article span,
.site-mini-store .site-store-products article strong,
.shop-site .site-store-products article b,
.shop-site .site-store-products article span,
.shop-site .site-store-products article strong,
.site-mini-store .workshop-wholesale-copy h4,
.site-mini-store .workshop-wholesale-copy strong {
  color: var(--b2b-card-heading) !important;
}

.site-mini-store .site-store-products article small,
.site-mini-store .site-store-products article em,
.shop-site .site-store-products article small,
.shop-site .site-store-products article em,
.site-mini-store .workshop-wholesale-copy p,
.site-mini-store .workshop-wholesale-copy small {
  color: var(--b2b-card-muted) !important;
}

/* Product photo studio frame stays clean light neutral so cutout images never clash */
.site-mini-store .site-store-products .site-store-product-image,
.shop-site .site-store-products .site-store-product-image,
.site-mini-store .workshop-wholesale-image,
.shop-site .workshop-wholesale-image,
.site-mini-store .store-media-stage,
.shop-site .store-media-stage {
  background-color: var(--b2b-photo-bg) !important;
  color: #0f172a !important;
}

/* Product card "İncele" button and CTA buttons (B2B-KABUL-007 & B2B-KABUL-008) */
.site-mini-store .site-store-product-add,
.shop-site .site-store-product-add,
.site-mini-store .site-store-cta,
.shop-site .site-store-cta,
.site-mini-store .workshop-wholesale-copy > button,
.shop-site .workshop-wholesale-copy > button {
  background-color: var(--b2b-btn-bg) !important;
  color: var(--b2b-btn-text) !important;
  border: 1px solid var(--b2b-btn-bg) !important;
}

.site-mini-store .site-store-product-add *,
.shop-site .site-store-product-add *,
.site-mini-store .site-store-cta *,
.shop-site .site-store-cta * {
  color: var(--b2b-btn-text) !important;
}

.site-mini-store .site-store-product-add:hover,
.shop-site .site-store-product-add:hover,
.site-mini-store .site-store-cta:hover,
.shop-site .site-store-cta:hover {
  background-color: var(--b2b-btn-hover-bg) !important;
  color: var(--b2b-btn-hover-text) !important;
  border-color: var(--b2b-btn-hover-bg) !important;
}

/* Category buttons & side category menu in Site Yönetimi preview (B2B-KABUL-007) */
.site-mini-store .site-store-categories button,
.shop-site .site-store-categories button {
  background-color: var(--b2b-sec-btn-bg) !important;
  color: var(--b2b-sec-btn-text) !important;
  border: 1px solid var(--b2b-border) !important;
}

.site-mini-store .site-store-categories button b,
.site-mini-store .site-store-categories button span,
.shop-site .site-store-categories button b,
.shop-site .site-store-categories button span {
  color: var(--b2b-sec-btn-text) !important;
}

.site-mini-store .site-slider-categories,
.shop-site .site-slider-categories,
.site-mini-store .site-category-flyout,
.shop-site .site-category-flyout {
  background-color: var(--b2b-card-bg) !important;
  color: var(--b2b-card-text) !important;
  border-color: var(--b2b-border) !important;
}

.site-mini-store .site-slider-categories > b,
.site-mini-store .site-category-entry > button,
.site-mini-store .site-all-categories,
.shop-site .site-slider-categories > b,
.shop-site .site-category-entry > button,
.shop-site .site-all-categories {
  background-color: var(--b2b-card-bg) !important;
  color: var(--b2b-card-heading) !important;
  border-color: var(--b2b-border) !important;
}

.site-mini-store .site-category-entry > button span,
.site-mini-store .site-all-categories span {
  color: var(--b2b-card-muted) !important;
}

/* Campaigns, Benefits, Wholesale & Footer in Site Yönetimi preview */
.site-mini-store .site-store-campaigns > div,
.shop-site .site-store-campaigns > div,
.site-mini-store .site-store-content,
.shop-site .site-store-content,
.site-mini-store .site-store-benefits,
.shop-site .site-store-benefits,
.site-mini-store .site-store-benefits > div,
.shop-site .site-store-benefits > div,
.site-mini-store .workshop-wholesale-showcase,
.shop-site .workshop-wholesale-showcase,
.site-mini-store .site-customer-center,
.shop-site .site-customer-center,
.site-mini-store .site-customer-orders article,
.site-mini-store .site-customer-metrics button,
.site-mini-store .site-customer-nav,
.site-mini-store .site-detail-base,
.site-mini-store .store-product-tabs {
  background-color: var(--b2b-surface) !important;
  color: var(--b2b-surface-text) !important;
  border-color: var(--b2b-border) !important;
}

.site-mini-store .site-store-benefits > div span,
.site-mini-store .site-store-campaigns > div h4,
.site-mini-store .site-store-campaigns > div p {
  color: var(--b2b-surface-heading) !important;
}

.site-mini-store .site-store-footer,
.shop-site .site-store-footer {
  background-color: var(--b2b-footer-bg) !important;
  color: var(--b2b-footer-text) !important;
  border-top: 1px solid var(--b2b-border) !important;
}

.site-mini-store .site-store-footer h3,
.site-mini-store .site-store-footer h4,
.site-mini-store .site-store-footer p,
.site-mini-store .site-store-footer span,
.site-mini-store .site-store-footer button,
.shop-site .site-store-footer h3,
.shop-site .site-store-footer h4,
.shop-site .site-store-footer p,
.shop-site .site-store-footer span,
.shop-site .site-store-footer button {
  color: var(--b2b-footer-text) !important;
}

/* 3. Live r12 Storefront (/bayi/magaza, /bayi, /bayi/reklamlar, /b2b-cart-frame.html) */
html[data-b2b-r12-themed="true"] {
  --blue: var(--b2b-primary);
  --deep: var(--b2b-heading);
  --pale: var(--b2b-surface);
  --ink: var(--b2b-text);
  --muted: var(--b2b-muted);
  --line: var(--b2b-border);
}

html[data-b2b-r12-themed="true"] body.b2b-boot,
html[data-b2b-r12-themed="true"][data-b2b-theme-tone="dark"] body {
  background-color: var(--b2b-bg) !important;
  color: var(--b2b-text) !important;
}

/* Header & Topline */
html[data-b2b-r12-themed="true"] .topline {
  background-color: var(--b2b-primary) !important;
  color: var(--b2b-btn-text) !important;
}

html[data-b2b-r12-themed="true"] .topline a,
html[data-b2b-r12-themed="true"] .topline span,
html[data-b2b-r12-themed="true"] .topline select {
  color: var(--b2b-btn-text) !important;
}

html[data-b2b-r12-themed="true"] #b2b-toolbar {
  background-color: var(--b2b-surface) !important;
  color: var(--b2b-surface-text) !important;
  border-bottom: 1px solid var(--b2b-border) !important;
}

html[data-b2b-r12-themed="true"] #b2b-toolbar .b2b-identity,
html[data-b2b-r12-themed="true"] #b2b-toolbar nav a,
html[data-b2b-r12-themed="true"] #b2b-toolbar nav button {
  color: var(--b2b-surface-heading) !important;
}

html[data-b2b-r12-themed="true"] header.header,
html[data-b2b-r12-themed="true"] header.site-head,
html[data-b2b-r12-themed="true"] header.editor-head {
  background-color: var(--b2b-header-bg) !important;
  color: var(--b2b-header-text) !important;
  border-bottom-color: var(--b2b-border) !important;
}

html[data-b2b-r12-themed="true"] header.header .header-action,
html[data-b2b-r12-themed="true"] header.header .header-action span,
html[data-b2b-r12-themed="true"] header.header .header-action strong,
html[data-b2b-r12-themed="true"] header.header .main-nav > a,
html[data-b2b-r12-themed="true"] header.site-head button,
html[data-b2b-r12-themed="true"] header.site-head select,
html[data-b2b-r12-themed="true"] header.editor-head h1,
html[data-b2b-r12-themed="true"] header.editor-head p,
html[data-b2b-r12-themed="true"] header.editor-head a,
html[data-b2b-r12-themed="true"] header.editor-head button {
  color: var(--b2b-header-text) !important;
}

html[data-b2b-r12-themed="true"] header.header .nav-border {
  border-top-color: var(--b2b-border) !important;
  background-color: var(--b2b-header-bg) !important;
}

html[data-b2b-r12-themed="true"] header.header .search {
  background-color: var(--b2b-input-bg) !important;
  color: var(--b2b-input-text) !important;
  border-color: var(--b2b-input-border) !important;
}

html[data-b2b-r12-themed="true"] header.header .search input {
  color: var(--b2b-input-text) !important;
}

/* Primary Buttons in Live r12 */
html[data-b2b-r12-themed="true"] .btn:not(.light),
html[data-b2b-r12-themed="true"] .all-categories:not(#category-toggle),
html[data-b2b-r12-themed="true"] .add-mini,
html[data-b2b-r12-themed="true"] .market-buy > button,
html[data-b2b-r12-themed="true"] button.primary {
  background-color: var(--b2b-btn-bg) !important;
  border-color: var(--b2b-btn-bg) !important;
  color: var(--b2b-btn-text) !important;
}

html[data-b2b-r12-themed="true"] .btn:not(.light) *,
html[data-b2b-r12-themed="true"] .all-categories:not(#category-toggle) *,
html[data-b2b-r12-themed="true"] .add-mini *,
html[data-b2b-r12-themed="true"] .market-buy > button * {
  color: var(--b2b-btn-text) !important;
}

html[data-b2b-r12-themed="true"] .btn:not(.light):hover,
html[data-b2b-r12-themed="true"] .all-categories:not(#category-toggle):hover,
html[data-b2b-r12-themed="true"] .add-mini:hover,
html[data-b2b-r12-themed="true"] .market-buy > button:hover,
html[data-b2b-r12-themed="true"] button.primary:hover {
  background-color: var(--b2b-btn-hover-bg) !important;
  border-color: var(--b2b-btn-hover-bg) !important;
  color: var(--b2b-btn-hover-text) !important;
}

/* Secondary / Surface Buttons, Category Tiles, Chips, Variant Buttons */
html[data-b2b-r12-themed="true"] .btn.light,
html[data-b2b-r12-themed="true"] .chip:not(.active),
html[data-b2b-r12-themed="true"] .category-tile,
html[data-b2b-r12-themed="true"] .product-sizes button:not(.active),
html[data-b2b-r12-themed="true"] .quantity-inline,
html[data-b2b-r12-themed="true"] .quantity-inline button,
html[data-b2b-r12-themed="true"] .compare-product,
html[data-b2b-r12-themed="true"] .campaign-filter button:not(.active),
html[data-b2b-r12-themed="true"] .b2b-methods button:not(.active),
html[data-b2b-r12-themed="true"] .auth-tabs button:not(.active),
html[data-b2b-r12-themed="true"] .editor-nav button:not(.active) {
  background-color: var(--b2b-sec-btn-bg) !important;
  color: var(--b2b-sec-btn-text) !important;
  border-color: var(--b2b-border) !important;
}

html[data-b2b-r12-themed="true"] .chip.active,
html[data-b2b-r12-themed="true"] .product-sizes button.active,
html[data-b2b-r12-themed="true"] .campaign-filter button.active,
html[data-b2b-r12-themed="true"] .b2b-methods button.active,
html[data-b2b-r12-themed="true"] .auth-tabs button.active,
html[data-b2b-r12-themed="true"] .editor-nav button.active {
  background-color: var(--b2b-btn-bg) !important;
  color: var(--b2b-btn-text) !important;
  border-color: var(--b2b-btn-bg) !important;
}

/* Product Cards in Live r12 — Photo Frame vs Card Surface Separation (B2B-KABUL-007) */
html[data-b2b-r12-themed="true"] .product-card {
  background-color: var(--b2b-card-bg) !important;
  color: var(--b2b-card-text) !important;
  border-color: var(--b2b-border) !important;
}

html[data-b2b-r12-themed="true"] .product-card .product-image,
html[data-b2b-r12-themed="true"] .detail-gallery {
  background-color: var(--b2b-photo-bg) !important;
  color: #0f172a !important;
}

html[data-b2b-r12-themed="true"] .product-card .favorite {
  background-color: var(--b2b-sec-btn-bg) !important;
  color: var(--b2b-sec-btn-text) !important;
  border: 1px solid var(--b2b-border) !important;
}

html[data-b2b-r12-themed="true"] .product-card .product-info {
  background-color: var(--b2b-card-bg) !important;
  color: var(--b2b-card-text) !important;
}

html[data-b2b-r12-themed="true"] .product-card h3,
html[data-b2b-r12-themed="true"] .product-card h3 a,
html[data-b2b-r12-themed="true"] .product-card .product-price {
  color: var(--b2b-card-heading) !important;
}

html[data-b2b-r12-themed="true"] .product-card .product-type,
html[data-b2b-r12-themed="true"] .product-card .pack-description,
html[data-b2b-r12-themed="true"] .product-card small,
html[data-b2b-r12-themed="true"] .product-card .product-old-price {
  color: var(--b2b-card-muted) !important;
}

/* Cards, Panels, Dropdowns, Modals, Account & Login & Advert Editor Surfaces */
html[data-b2b-r12-themed="true"] .category-dropdown,
html[data-b2b-r12-themed="true"] .category-flyout,
html[data-b2b-r12-themed="true"] .account-panel,
html[data-b2b-r12-themed="true"] .b2b-finance-cards article:not(.accent),
html[data-b2b-r12-themed="true"] .b2b-payment-summary,
html[data-b2b-r12-themed="true"] .b2b-shortcuts a,
html[data-b2b-r12-themed="true"] .b2b-table-wrap,
html[data-b2b-r12-themed="true"] dialog#modal,
html[data-b2b-r12-themed="true"] dialog#gateway-modal,
html[data-b2b-r12-themed="true"] .auth-panel,
html[data-b2b-r12-themed="true"] .editor-form,
html[data-b2b-r12-themed="true"] .checkout-shell .panel,
html[data-b2b-r12-themed="true"] .checkout-shell .summary,
html[data-b2b-r12-themed="true"] .detail-tabs,
html[data-b2b-r12-themed="true"] .unit-explainer,
html[data-b2b-r12-themed="true"] .delivery-box,
html[data-b2b-r12-themed="true"] .bottom-banner {
  background-color: var(--b2b-card-bg) !important;
  color: var(--b2b-card-text) !important;
  border-color: var(--b2b-border) !important;
}

html[data-b2b-r12-themed="true"] .b2b-finance-cards article.accent {
  background-color: var(--b2b-btn-bg) !important;
  color: var(--b2b-btn-text) !important;
}

html[data-b2b-r12-themed="true"] .b2b-finance-cards article.accent * {
  color: var(--b2b-btn-text) !important;
}

/* Headings & Links on Live r12 */
html[data-b2b-r12-themed="true"] .section-heading h2,
html[data-b2b-r12-themed="true"] .detail-copy h1,
html[data-b2b-r12-themed="true"] .detail-price,
html[data-b2b-r12-themed="true"] .account-section-title h1,
html[data-b2b-r12-themed="true"] .auth-panel h1,
html[data-b2b-r12-themed="true"] .modal-title {
  color: var(--b2b-heading) !important;
}

html[data-b2b-r12-themed="true"] .text-link,
html[data-b2b-r12-themed="true"] .section-eyebrow,
html[data-b2b-r12-themed="true"] .eyebrow {
  color: var(--b2b-link) !important;
}

/* Form inputs in dark/custom themes */
html[data-b2b-r12-themed="true"][data-b2b-theme-tone="dark"] input:not([type="color"]):not([type="checkbox"]):not([type="radio"]),
html[data-b2b-r12-themed="true"][data-b2b-theme-tone="dark"] select,
html[data-b2b-r12-themed="true"][data-b2b-theme-tone="dark"] textarea {
  background-color: var(--b2b-input-bg) !important;
  color: var(--b2b-input-text) !important;
  border-color: var(--b2b-input-border) !important;
}

/* Footer in Live r12 */
html[data-b2b-r12-themed="true"] footer,
html[data-b2b-r12-themed="true"] .bottom-strip {
  background-color: var(--b2b-footer-bg) !important;
  color: var(--b2b-footer-text) !important;
  border-top-color: var(--b2b-border) !important;
}

html[data-b2b-r12-themed="true"] footer h3,
html[data-b2b-r12-themed="true"] footer a,
html[data-b2b-r12-themed="true"] footer p,
html[data-b2b-r12-themed="true"] footer span,
html[data-b2b-r12-themed="true"] footer button,
html[data-b2b-r12-themed="true"] .bottom-strip span,
html[data-b2b-r12-themed="true"] .bottom-strip button {
  color: var(--b2b-footer-text) !important;
}

/* Interaction States: Focus, Disabled, Semantic Alerts */
html[data-b2b-r12-themed="true"] :focus-visible,
.site-mini-store :focus-visible {
  outline: 2px solid var(--b2b-focus-ring) !important;
  outline-offset: 2px !important;
}

html[data-b2b-r12-themed="true"] button:disabled,
html[data-b2b-r12-themed="true"] input:disabled,
.site-mini-store button:disabled {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
}

/* 4. Live r12 Hero / Slider Layout Modes (B2B-KABUL-005) */
.hero-layout.r12-layout-single {
  grid-template-columns: 1fr !important;
}

.hero-layout.r12-layout-single > .video-story,
.hero-layout.r12-layout-single > .lifestyle-story {
  display: none !important;
}

.hero-layout.r12-layout-reverse > .video-story,
.hero-layout.r12-layout-reverse > .lifestyle-story {
  order: -1 !important;
}

.hero-layout.r12-with-cat-side {
  grid-template-columns: 240px minmax(0, 1fr) 275px !important;
}

.hero-layout.r12-with-cat-side.r12-layout-single {
  grid-template-columns: 240px minmax(0, 1fr) !important;
}

.r12-hero-cat-side {
  background: var(--b2b-card-bg);
  color: var(--b2b-card-text);
  border: 1px solid var(--b2b-border);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.r12-hero-cat-side strong {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--b2b-card-heading);
  padding: 4px 8px 8px;
  border-bottom: 1px solid var(--b2b-border);
}

.r12-hero-cat-side a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--b2b-card-text);
  text-decoration: none;
}

.r12-hero-cat-side a:hover {
  background: var(--b2b-sec-btn-bg);
  color: var(--b2b-sec-btn-text);
}

/* 5. r12 Multi-Screen Comparison Bar in Admin Site Yönetimi (B2B-KABUL-005) */
.r12-preview-screen-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 12px;
  margin-bottom: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.r12-preview-screen-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.r12-preview-screen-tabs button {
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.r12-preview-screen-tabs button[aria-pressed="true"] {
  background: #8c2b43;
  color: #ffffff;
  border-color: #8c2b43;
}

/* ============================================================================
 * 6. B2B-KABUL-007 (Follow-Up): High-Specificity Global Theme Inheritance for
 *    #category-toggle.all-categories, #b2b-toolbar, #quick-rail, Campaign
 *    Panels, and b2b-cart-frame.html Nested Payment/Delivery/Package Surfaces
 * ============================================================================ */

/* 6.1 Main Category Toggle Button (matches b2b-portal.css in default r12 & adapts to custom palettes) */
html[data-b2b-r12-themed="true"] body .main-nav #category-toggle.all-categories,
html[data-b2b-r12-themed="true"] #category-toggle.all-categories {
  background: var(--b2b-card-bg) !important;
  color: var(--b2b-card-text) !important;
  border-color: var(--b2b-border) !important;
}

html[data-b2b-r12-themed="true"] body .main-nav #category-toggle.all-categories:hover,
html[data-b2b-r12-themed="true"] body .main-nav #category-toggle.all-categories[aria-expanded="true"],
html[data-b2b-r12-themed="true"] #category-toggle.all-categories:hover,
html[data-b2b-r12-themed="true"] #category-toggle.all-categories[aria-expanded="true"] {
  background: var(--b2b-sec-btn-bg) !important;
  color: var(--b2b-sec-btn-text) !important;
  border-color: var(--b2b-border) !important;
}

html[data-b2b-r12-themed="true"] body .main-nav #category-toggle.all-categories > svg:first-child,
html[data-b2b-r12-themed="true"] #category-toggle.all-categories > svg:first-child,
html[data-b2b-r12-themed="true"] body .main-nav #category-toggle.all-categories [data-icon="menu"],
html[data-b2b-r12-themed="true"] #category-toggle.all-categories [data-icon="menu"] {
  background: var(--b2b-sec-btn-bg) !important;
  color: var(--b2b-link) !important;
  stroke: currentColor !important;
}

html[data-b2b-r12-themed="true"] body .main-nav #category-toggle.all-categories > svg:first-child *,
html[data-b2b-r12-themed="true"] #category-toggle.all-categories > svg:first-child * {
  color: var(--b2b-link) !important;
  stroke: currentColor !important;
}

html[data-b2b-r12-themed="true"] body .main-nav #category-toggle.all-categories > svg:last-child,
html[data-b2b-r12-themed="true"] #category-toggle.all-categories > svg:last-child,
html[data-b2b-r12-themed="true"] body .main-nav #category-toggle.all-categories > svg:last-child *,
html[data-b2b-r12-themed="true"] #category-toggle.all-categories > svg:last-child * {
  color: var(--b2b-card-muted) !important;
  stroke: currentColor !important;
}

/* 6.2 Quick Access Strip (#b2b-toolbar, .topline) & Floating Quick Rail (#quick-rail) */
html[data-b2b-r12-themed="true"] body #b2b-toolbar,
html[data-b2b-r12-themed="true"] #b2b-toolbar {
  background: var(--b2b-surface) !important;
  color: var(--b2b-surface-text) !important;
  border-bottom: 1px solid var(--b2b-border) !important;
}

html[data-b2b-r12-themed="true"] body #b2b-toolbar .b2b-identity,
html[data-b2b-r12-themed="true"] body #b2b-toolbar .b2b-identity strong,
html[data-b2b-r12-themed="true"] body #b2b-toolbar .b2b-identity small,
html[data-b2b-r12-themed="true"] body #b2b-toolbar nav a,
html[data-b2b-r12-themed="true"] body #b2b-toolbar nav button {
  color: var(--b2b-surface-text) !important;
}

html[data-b2b-r12-themed="true"] body #b2b-toolbar .b2b-identity > b {
  background: var(--b2b-btn-bg) !important;
  color: var(--b2b-btn-text) !important;
}

html[data-b2b-r12-themed="true"] body .topline {
  background: var(--b2b-btn-bg) !important;
  color: var(--b2b-btn-text) !important;
}

html[data-b2b-r12-themed="true"] body .topline button,
html[data-b2b-r12-themed="true"] body .topline span,
html[data-b2b-r12-themed="true"] body .topline a {
  color: var(--b2b-btn-text) !important;
}

html[data-b2b-r12-themed="true"] body .topline .locale-controls select {
  background: var(--b2b-btn-hover-bg) !important;
  color: var(--b2b-btn-text) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
}

html[data-b2b-r12-themed="true"] body .topline .locale-controls select option {
  background: var(--b2b-card-bg) !important;
  color: var(--b2b-card-text) !important;
}

html[data-b2b-r12-themed="true"] body #quick-rail,
html[data-b2b-r12-themed="true"] body .quick-rail,
html[data-b2b-r12-themed="true"] .quick-rail {
  background: var(--b2b-card-bg) !important;
  color: var(--b2b-card-text) !important;
  border-color: var(--b2b-border) !important;
}

html[data-b2b-r12-themed="true"] body .quick-rail > button:not(.rail-whatsapp),
html[data-b2b-r12-themed="true"] body .quick-rail > a:not(.rail-whatsapp) {
  background: transparent !important;
  color: var(--b2b-card-text) !important;
}

html[data-b2b-r12-themed="true"] body .quick-rail > button:not(.rail-whatsapp):hover,
html[data-b2b-r12-themed="true"] body .quick-rail > a:not(.rail-whatsapp):hover {
  background: var(--b2b-sec-btn-bg) !important;
  color: var(--b2b-sec-btn-text) !important;
}

html[data-b2b-r12-themed="true"] body .quick-rail .rail-whatsapp,
html[data-b2b-r12-themed="true"] .quick-rail .rail-whatsapp {
  background: var(--b2b-btn-bg) !important;
  color: var(--b2b-btn-text) !important;
  border-top-color: var(--b2b-border) !important;
}

html[data-b2b-r12-themed="true"] body .quick-rail .rail-whatsapp * {
  color: var(--b2b-btn-text) !important;
}

html[data-b2b-r12-themed="true"] body .quick-rail b {
  background: var(--b2b-btn-bg) !important;
  color: var(--b2b-btn-text) !important;
}

/* 6.3 Campaign Panels, Advantages, Trust Strip, Showcases & Banners on /bayi/magaza */
html[data-b2b-r12-themed="true"] body .campaign-panels .campaign-panel,
html[data-b2b-r12-themed="true"] body .campaign-panel,
html[data-b2b-r12-themed="true"] body .campaign-panel.blue,
html[data-b2b-r12-themed="true"] body .campaign-panel.pale,
html[data-b2b-r12-themed="true"] body .campaign-panel.green {
  background-color: var(--b2b-card-bg) !important;
  color: var(--b2b-card-text) !important;
  border-color: var(--b2b-border) !important;
}

html[data-b2b-r12-themed="true"] body .campaign-panel h2,
html[data-b2b-r12-themed="true"] body .campaign-panel.pale h2,
html[data-b2b-r12-themed="true"] body .campaign-panel.green h2 {
  color: var(--b2b-card-heading) !important;
}

html[data-b2b-r12-themed="true"] body .campaign-panel > div > span,
html[data-b2b-r12-themed="true"] body .campaign-panel.green > div > span,
html[data-b2b-r12-themed="true"] body .campaign-panel small,
html[data-b2b-r12-themed="true"] body .campaign-panel.green small {
  color: var(--b2b-card-text) !important;
}

html[data-b2b-r12-themed="true"] body .advantages {
  border-color: var(--b2b-border) !important;
  background: var(--b2b-card-bg) !important;
}

html[data-b2b-r12-themed="true"] body .advantages .advantage,
html[data-b2b-r12-themed="true"] body .advantage,
html[data-b2b-r12-themed="true"] body .advantage.payment,
html[data-b2b-r12-themed="true"] body .advantage.shipping {
  background: var(--b2b-card-bg) !important;
  color: var(--b2b-card-text) !important;
  border-color: var(--b2b-border) !important;
}

html[data-b2b-r12-themed="true"] body .advantage:hover {
  background: var(--b2b-surface) !important;
}

html[data-b2b-r12-themed="true"] body .advantage-icon,
html[data-b2b-r12-themed="true"] body .payment .advantage-icon,
html[data-b2b-r12-themed="true"] body .shipping .advantage-icon {
  background: var(--b2b-sec-btn-bg) !important;
  color: var(--b2b-sec-btn-text) !important;
}

html[data-b2b-r12-themed="true"] body .advantage-copy > strong,
html[data-b2b-r12-themed="true"] body .payment .advantage-copy > strong,
html[data-b2b-r12-themed="true"] body .shipping .advantage-copy > strong {
  color: var(--b2b-card-heading) !important;
}

html[data-b2b-r12-themed="true"] body .advantage-copy > small,
html[data-b2b-r12-themed="true"] body .advantage-copy > span,
html[data-b2b-r12-themed="true"] body .payment .advantage-copy > small,
html[data-b2b-r12-themed="true"] body .payment .advantage-copy > span,
html[data-b2b-r12-themed="true"] body .shipping .advantage-copy > small,
html[data-b2b-r12-themed="true"] body .shipping .advantage-copy > span {
  color: var(--b2b-card-text) !important;
}

html[data-b2b-r12-themed="true"] body .trust-strip {
  border-color: var(--b2b-border) !important;
}

html[data-b2b-r12-themed="true"] body .trust-strip > div {
  border-right-color: var(--b2b-border) !important;
  color: var(--b2b-text) !important;
}

html[data-b2b-r12-themed="true"] body .trust-strip b {
  color: var(--b2b-heading) !important;
}

html[data-b2b-r12-themed="true"] body .trust-strip small {
  color: var(--b2b-text) !important;
}

html[data-b2b-r12-themed="true"] body .trust-strip svg {
  color: var(--b2b-link) !important;
}

html[data-b2b-r12-themed="true"] body .collection {
  background: var(--b2b-surface) !important;
  color: var(--b2b-surface-text) !important;
  border: 1px solid var(--b2b-border) !important;
}

html[data-b2b-r12-themed="true"] body .collection-copy .eyebrow,
html[data-b2b-r12-themed="true"] body .collection-copy p {
  color: var(--b2b-surface-text) !important;
}

html[data-b2b-r12-themed="true"] body .collection-copy h2 {
  color: var(--b2b-surface-heading) !important;
}

html[data-b2b-r12-themed="true"] body .collection .add-mini {
  background: var(--b2b-btn-bg) !important;
  color: var(--b2b-btn-text) !important;
}

html[data-b2b-r12-themed="true"] body .catalog-banner,
html[data-b2b-r12-themed="true"] body .sector-banner,
html[data-b2b-r12-themed="true"] body .sector-banner.market,
html[data-b2b-r12-themed="true"] body .sector-banner.tekstil,
html[data-b2b-r12-themed="true"] body .sector-banner.spor,
html[data-b2b-r12-themed="true"] body .sector-banner.vitamin {
  background: var(--b2b-surface) !important;
  color: var(--b2b-surface-text) !important;
  border: 1px solid var(--b2b-border) !important;
}

html[data-b2b-r12-themed="true"] body .catalog-banner h1 {
  color: var(--b2b-surface-heading) !important;
}

html[data-b2b-r12-themed="true"] body .catalog-banner p {
  color: var(--b2b-surface-text) !important;
}

html[data-b2b-r12-themed="true"] body .market-intro {
  background: var(--b2b-surface) !important;
  color: var(--b2b-surface-text) !important;
  border: 1px solid var(--b2b-border) !important;
}

html[data-b2b-r12-themed="true"] body .market-intro:after {
  background: linear-gradient(var(--b2b-surface) 0%, var(--b2b-surface) 38%, transparent 75%) !important;
}

html[data-b2b-r12-themed="true"] body .market-intro h2 {
  color: var(--b2b-surface-heading) !important;
}

html[data-b2b-r12-themed="true"] body .market-intro > div > span,
html[data-b2b-r12-themed="true"] body .market-intro p {
  color: var(--b2b-surface-text) !important;
}

html[data-b2b-r12-themed="true"] body .market-intro a {
  color: var(--b2b-link) !important;
}

html[data-b2b-r12-themed="true"] body .market-card .product-price {
  color: var(--b2b-card-heading) !important;
}

html[data-b2b-r12-themed="true"] body .market-card .product-price small {
  color: var(--b2b-card-text) !important;
}

html[data-b2b-r12-themed="true"] body .market-buy > button {
  background: var(--b2b-btn-bg) !important;
  color: var(--b2b-btn-text) !important;
}

html[data-b2b-r12-themed="true"] body .wide-campaign {
  background: var(--b2b-surface) !important;
  color: var(--b2b-surface-text) !important;
  border: 1px solid var(--b2b-border) !important;
}

html[data-b2b-r12-themed="true"][data-b2b-theme-tone="dark"] body .wide-campaign > img {
  opacity: 0.25 !important;
}

html[data-b2b-r12-themed="true"] body .wide-campaign span {
  color: var(--b2b-surface-text) !important;
}

html[data-b2b-r12-themed="true"] body .wide-campaign h2 {
  color: var(--b2b-surface-heading) !important;
}

html[data-b2b-r12-themed="true"] body .wide-campaign .btn {
  background: var(--b2b-btn-bg) !important;
  color: var(--b2b-btn-text) !important;
}

html[data-b2b-r12-themed="true"] body .bottom-banner {
  background: var(--b2b-surface) !important;
  color: var(--b2b-surface-text) !important;
  border: 1px solid var(--b2b-border) !important;
}

html[data-b2b-r12-themed="true"] body .bottom-banner h2 {
  color: var(--b2b-surface-heading) !important;
}

html[data-b2b-r12-themed="true"] body .bottom-banner p {
  color: var(--b2b-surface-text) !important;
}

html[data-b2b-r12-themed="true"] body .bottom-banner > svg {
  color: var(--b2b-link) !important;
}

html[data-b2b-r12-themed="true"] body .hero,
html[data-b2b-r12-themed="true"] body .home-sectors .hero,
html[data-b2b-r12-themed="true"] body .hero[data-theme] {
  background: var(--b2b-surface) !important;
  color: var(--b2b-surface-text) !important;
  border: 1px solid var(--b2b-border) !important;
}

html[data-b2b-r12-themed="true"][data-b2b-theme-tone="dark"] body .hero-scene {
  opacity: 0.28 !important;
}

html[data-b2b-r12-themed="true"] body .hero-readability {
  background: linear-gradient(90deg, var(--b2b-surface) 0%, var(--b2b-surface) 34%, transparent 74%) !important;
}

@media (max-width: 600px) {
  html[data-b2b-r12-themed="true"] body .hero-readability {
    background: linear-gradient(180deg, var(--b2b-surface) 0%, var(--b2b-surface) 38%, transparent 76%) !important;
  }
}

html[data-b2b-r12-themed="true"][data-b2b-theme-tone="dark"] body .hero-copy h1,
html[data-b2b-r12-themed="true"][data-b2b-theme-tone="dark"] body .hero-copy .eyebrow,
html[data-b2b-r12-themed="true"][data-b2b-theme-tone="dark"] body .hero-copy p {
  text-shadow: 0 2px 12px rgba(2, 6, 23, 0.72) !important;
}

html[data-b2b-r12-themed="true"] body .hero h1,
html[data-b2b-r12-themed="true"] body .home-sectors .hero h1 {
  color: var(--b2b-surface-heading) !important;
}

html[data-b2b-r12-themed="true"] body .hero h1 span,
html[data-b2b-r12-themed="true"] body .home-sectors .hero h1 span,
html[data-b2b-r12-themed="true"] body .home-sectors .hero[data-theme] h1 span {
  color: var(--b2b-link) !important;
}

html[data-b2b-r12-themed="true"] body .hero-copy .eyebrow,
html[data-b2b-r12-themed="true"] body .home-sectors .hero-copy .eyebrow,
html[data-b2b-r12-themed="true"] body .hero-copy p,
html[data-b2b-r12-themed="true"] body .home-sectors .hero-copy p,
html[data-b2b-r12-themed="true"] body .slide-count {
  color: var(--b2b-surface-text) !important;
}

html[data-b2b-r12-themed="true"] body .hero .btn,
html[data-b2b-r12-themed="true"] body .home-sectors .hero .btn {
  background: var(--b2b-btn-bg) !important;
  color: var(--b2b-btn-text) !important;
}

html[data-b2b-r12-themed="true"] body .slider-arrow,
html[data-b2b-r12-themed="true"] body .slider-pause {
  background: var(--b2b-sec-btn-bg) !important;
  color: var(--b2b-sec-btn-text) !important;
  border-color: var(--b2b-border) !important;
}

html[data-b2b-r12-themed="true"] body .editorial,
html[data-b2b-r12-themed="true"] body .editorial.cyan {
  background: var(--b2b-card-bg) !important;
  color: var(--b2b-card-text) !important;
  border: 1px solid var(--b2b-border) !important;
}

html[data-b2b-r12-themed="true"] body .editorial h2 {
  color: var(--b2b-card-heading) !important;
}

html[data-b2b-r12-themed="true"] body .editorial small,
html[data-b2b-r12-themed="true"] body .editorial.cyan small,
html[data-b2b-r12-themed="true"] body .editorial a {
  color: var(--b2b-card-text) !important;
}

html[data-b2b-r12-themed="true"] body .unit-explainer,
html[data-b2b-r12-themed="true"] body .delivery-box,
html[data-b2b-r12-themed="true"] body .spec-grid > div {
  background: var(--b2b-surface) !important;
  color: var(--b2b-surface-text) !important;
  border-color: var(--b2b-border) !important;
}

html[data-b2b-r12-themed="true"] body .unit-explainer b,
html[data-b2b-r12-themed="true"] body .spec-grid strong {
  color: var(--b2b-surface-heading) !important;
}

html[data-b2b-r12-themed="true"] body .unit-explainer span,
html[data-b2b-r12-themed="true"] body .delivery-box small {
  color: var(--b2b-surface-text) !important;
}

/* 6.4 Cart Iframe (b2b-cart-frame.html) & All Nested Payment/Delivery/Package/POS Surfaces */
html[data-b2b-r12-themed="true"],
html[data-b2b-r12-themed="true"] body,
html[data-b2b-r12-themed="true"] body.show-storefront,
html[data-b2b-r12-themed="true"] body.parity-storefront,
html[data-b2b-r12-themed="true"] body.show-storefront:has(.checkout-single),
html[data-b2b-r12-themed="true"] body.show-storefront:has(.checkout-single) .shop-main {
  background: var(--b2b-bg) !important;
  color: var(--b2b-text) !important;
}

html[data-b2b-r12-themed="true"] .b2b-cart-quote {
  background: var(--b2b-surface) !important;
  color: var(--b2b-surface-text) !important;
  border-color: var(--b2b-border) !important;
}

html[data-b2b-r12-themed="true"] .b2b-cart-quote strong {
  color: var(--b2b-surface-heading) !important;
}

html[data-b2b-r12-themed="true"] .b2b-cart-quote span {
  color: var(--b2b-surface-text) !important;
}

html[data-b2b-r12-themed="true"] .checkout-shell,
html[data-b2b-r12-themed="true"] .bc-checkout {
  background: var(--b2b-bg) !important;
  color: var(--b2b-text) !important;
}

html[data-b2b-r12-themed="true"] .shop-page-title h1 {
  color: var(--b2b-heading) !important;
}

html[data-b2b-r12-themed="true"] .shop-page-title h1 small,
html[data-b2b-r12-themed="true"] .shop-page-title p,
html[data-b2b-r12-themed="true"] .demo-only-note {
  color: var(--b2b-text) !important;
}

html[data-b2b-r12-themed="true"] .bc-feedback:not(:empty),
html[data-b2b-r12-themed="true"] .bc-alert,
html[data-b2b-r12-themed="true"] .parity-storefront .bc-alert {
  background: var(--b2b-surface) !important;
  color: var(--b2b-surface-text) !important;
  border: 1px solid var(--b2b-border) !important;
}

html[data-b2b-r12-themed="true"] .panel,
html[data-b2b-r12-themed="true"] .checkout-columns .panel,
html[data-b2b-r12-themed="true"] .checkout-basket-panel,
html[data-b2b-r12-themed="true"] .checkout-account-rows,
html[data-b2b-r12-themed="true"] .checkout-shipping,
html[data-b2b-r12-themed="true"] .checkout-payment,
html[data-b2b-r12-themed="true"] .checkout-gift-wrap,
html[data-b2b-r12-themed="true"] .checkout-order-note,
html[data-b2b-r12-themed="true"] .checkout-summary,
html[data-b2b-r12-themed="true"] .checkout-result .panel {
  background: var(--b2b-card-bg) !important;
  color: var(--b2b-card-text) !important;
  border-color: var(--b2b-border) !important;
}

html[data-b2b-r12-themed="true"] .panel h2,
html[data-b2b-r12-themed="true"] .panel h3,
html[data-b2b-r12-themed="true"] .checkout-summary h2,
html[data-b2b-r12-themed="true"] .checkout-bank-heading h3,
html[data-b2b-r12-themed="true"] .gift-section-heading h2 {
  color: var(--b2b-card-heading) !important;
}

html[data-b2b-r12-themed="true"] .shop-cart-line {
  border-color: var(--b2b-border) !important;
  color: var(--b2b-card-text) !important;
}

html[data-b2b-r12-themed="true"] .shop-cart-line strong,
html[data-b2b-r12-themed="true"] .shop-cart-line-total b {
  color: var(--b2b-card-heading) !important;
}

html[data-b2b-r12-themed="true"] .shop-cart-line small,
html[data-b2b-r12-themed="true"] .checkout-single .shop-cart-lines > .shop-cart-line > div:nth-child(2) > small,
html[data-b2b-r12-themed="true"] .shop-cart-remove,
html[data-b2b-r12-themed="true"] .checkout-remove-line {
  color: var(--b2b-card-text) !important;
}

html[data-b2b-r12-themed="true"] .checkout-quantity-stepper,
html[data-b2b-r12-themed="true"] .checkout-single .shop-cart-lines .shop-cart-quantity.checkout-quantity-stepper {
  background: var(--b2b-surface) !important;
  border-color: var(--b2b-border) !important;
}

html[data-b2b-r12-themed="true"] .checkout-quantity-stepper button,
html[data-b2b-r12-themed="true"] .checkout-single .checkout-quantity-stepper button,
html[data-b2b-r12-themed="true"] .checkout-quantity-stepper input,
html[data-b2b-r12-themed="true"] .checkout-single .shop-cart-lines .checkout-quantity-stepper input[data-shop-qty] {
  background: transparent !important;
  color: var(--b2b-surface-text) !important;
}

/* Shipping level progress bar inside cart */
html[data-b2b-r12-themed="true"] .cart-shipping-level,
html[data-b2b-r12-themed="true"] .cart-shipping-level.complete {
  background: var(--b2b-surface) !important;
  color: var(--b2b-surface-text) !important;
  border-color: var(--b2b-border) !important;
}

html[data-b2b-r12-themed="true"] .shipping-level-icon,
html[data-b2b-r12-themed="true"] .complete .shipping-level-icon {
  background: var(--b2b-sec-btn-bg) !important;
  color: var(--b2b-sec-btn-text) !important;
}

html[data-b2b-r12-themed="true"] .shipping-level-heading h3,
html[data-b2b-r12-themed="true"] .complete .shipping-level-heading h3,
html[data-b2b-r12-themed="true"] .shipping-level-heading h3 > b {
  color: var(--b2b-surface-heading) !important;
}

html[data-b2b-r12-themed="true"] .shipping-level-heading p,
html[data-b2b-r12-themed="true"] .shipping-level-heading > strong,
html[data-b2b-r12-themed="true"] .complete .shipping-level-heading p,
html[data-b2b-r12-themed="true"] .complete .shipping-level-heading > strong {
  color: var(--b2b-surface-text) !important;
}

/* Contact, invoice, coupon rows inside cart */
html[data-b2b-r12-themed="true"] .checkout-contact-line,
html[data-b2b-r12-themed="true"] .checkout-same-address {
  border-color: var(--b2b-border) !important;
  color: var(--b2b-card-text) !important;
}

html[data-b2b-r12-themed="true"] .checkout-invoice-line,
html[data-b2b-r12-themed="true"] .checkout-coupon-line {
  background: var(--b2b-surface) !important;
  border-color: var(--b2b-border) !important;
  color: var(--b2b-surface-text) !important;
}

html[data-b2b-r12-themed="true"] .checkout-coupon-line > span {
  background: var(--b2b-sec-btn-bg) !important;
  color: var(--b2b-sec-btn-text) !important;
}

html[data-b2b-r12-themed="true"] .checkout-contact-line b,
html[data-b2b-r12-themed="true"] .checkout-invoice-line b,
html[data-b2b-r12-themed="true"] .checkout-coupon-line b {
  color: var(--b2b-card-heading) !important;
}

html[data-b2b-r12-themed="true"] .checkout-contact-line small,
html[data-b2b-r12-themed="true"] .checkout-invoice-line p,
html[data-b2b-r12-themed="true"] .checkout-coupon-line small {
  color: var(--b2b-card-text) !important;
}

html[data-b2b-r12-themed="true"] #available-coupons,
html[data-b2b-r12-themed="true"] #bc-coupon-code,
html[data-b2b-r12-themed="true"] #bc-order-note {
  background: var(--b2b-surface) !important;
  color: var(--b2b-surface-text) !important;
  border-color: var(--b2b-border) !important;
}

/* Delivery, Payment & Gift Package Choices (.bc-choice, .gift-choice) */
html[data-b2b-r12-themed="true"] .checkout-choice,
html[data-b2b-r12-themed="true"] .bc-choice,
html[data-b2b-r12-themed="true"] .gift-choice {
  background: var(--b2b-surface) !important;
  color: var(--b2b-surface-text) !important;
  border-color: var(--b2b-border) !important;
}

html[data-b2b-r12-themed="true"] .checkout-payment-methods .bc-choice.selected,
html[data-b2b-r12-themed="true"] .checkout-delivery-options .bc-choice.selected,
html[data-b2b-r12-themed="true"] .bc-choice.selected,
html[data-b2b-r12-themed="true"] .gift-choice.selected,
html[data-b2b-r12-themed="true"] .gift-choice.premium.selected {
  background: var(--b2b-sec-btn-bg) !important;
  color: var(--b2b-sec-btn-text) !important;
  border-color: var(--b2b-btn-bg) !important;
}

html[data-b2b-r12-themed="true"] .bc-choice b,
html[data-b2b-r12-themed="true"] .gift-choice b,
html[data-b2b-r12-themed="true"] .gift-choice > strong,
html[data-b2b-r12-themed="true"] .gift-choice.premium > strong {
  color: inherit !important;
}

html[data-b2b-r12-themed="true"] .bc-choice small,
html[data-b2b-r12-themed="true"] .checkout-choice small,
html[data-b2b-r12-themed="true"] .gift-choice small {
  color: inherit !important;
  opacity: 0.9;
}

html[data-b2b-r12-themed="true"] .gift-section-heading > span,
html[data-b2b-r12-themed="true"] .gift-section-heading p,
html[data-b2b-r12-themed="true"] .gift-note-field,
html[data-b2b-r12-themed="true"] .gift-note-field > small {
  color: var(--b2b-card-text) !important;
}

html[data-b2b-r12-themed="true"] .gift-note-field textarea {
  background: var(--b2b-surface) !important;
  color: var(--b2b-surface-text) !important;
  border-color: var(--b2b-border) !important;
}

html[data-b2b-r12-themed="true"] .gift-standard-art,
html[data-b2b-r12-themed="true"] .gift-simple-icon {
  background: var(--b2b-card-bg) !important;
  color: var(--b2b-card-heading) !important;
  border: 1px solid var(--b2b-border) !important;
}

/* Card / POS Entry & BIN Installments inside Cart */
html[data-b2b-r12-themed="true"] .inline-pos,
html[data-b2b-r12-themed="true"] .inline-pos.polished-card-entry,
html[data-b2b-r12-themed="true"] .card-payment-preview,
html[data-b2b-r12-themed="true"] .installment-waiting,
html[data-b2b-r12-themed="true"] .pos-preview-note {
  background: var(--b2b-surface) !important;
  color: var(--b2b-surface-text) !important;
  border-color: var(--b2b-border) !important;
}

html[data-b2b-r12-themed="true"] .polished-card-entry header h2,
html[data-b2b-r12-themed="true"] .polished-card-entry #bin-installments h3,
html[data-b2b-r12-themed="true"] #bin-installments h3,
html[data-b2b-r12-themed="true"] .installment-waiting h3,
html[data-b2b-r12-themed="true"] .card-payment-preview > span,
html[data-b2b-r12-themed="true"] .card-payment-preview > b {
  color: var(--b2b-surface-heading) !important;
}

html[data-b2b-r12-themed="true"] .polished-card-entry header p,
html[data-b2b-r12-themed="true"] .payment-section-step,
html[data-b2b-r12-themed="true"] .polished-card-entry label,
html[data-b2b-r12-themed="true"] .bin-detection-status,
html[data-b2b-r12-themed="true"] .polished-card-entry .bin-demo-help,
html[data-b2b-r12-themed="true"] .card-preview-caption,
html[data-b2b-r12-themed="true"] .demo-card-tray > summary,
html[data-b2b-r12-themed="true"] .demo-bin-chips > small,
html[data-b2b-r12-themed="true"] .polished-card-entry .installment-head,
html[data-b2b-r12-themed="true"] .installment-head,
html[data-b2b-r12-themed="true"] .polished-card-entry .bin-footnote,
html[data-b2b-r12-themed="true"] .bin-footnote,
html[data-b2b-r12-themed="true"] .installment-waiting p,
html[data-b2b-r12-themed="true"] .sample-bin-hint,
html[data-b2b-r12-themed="true"] .card-payment-preview > small {
  color: var(--b2b-surface-text) !important;
}

html[data-b2b-r12-themed="true"] .polished-card-entry .payment-preview-badge,
html[data-b2b-r12-themed="true"] .plan-count,
html[data-b2b-r12-themed="true"] .demo-bin-chips > button,
html[data-b2b-r12-themed="true"] .sample-bin-hint code {
  background: var(--b2b-card-bg) !important;
  color: var(--b2b-card-text) !important;
  border-color: var(--b2b-border) !important;
}

html[data-b2b-r12-themed="true"] .polished-card-entry input,
html[data-b2b-r12-themed="true"] .polished-card-entry select,
html[data-b2b-r12-themed="true"] .inline-pos input,
html[data-b2b-r12-themed="true"] .inline-pos select,
html[data-b2b-r12-themed="true"] .polished-card-entry .card-number-field {
  background: var(--b2b-card-bg) !important;
  color: var(--b2b-card-text) !important;
  border-color: var(--b2b-border) !important;
}

html[data-b2b-r12-themed="true"] .polished-card-entry #card-bin-input {
  background: transparent !important;
  color: var(--b2b-card-text) !important;
}

html[data-b2b-r12-themed="true"] .polished-card-entry label.bin-plan,
html[data-b2b-r12-themed="true"] .bin-pos .bin-plan {
  background: var(--b2b-card-bg) !important;
  color: var(--b2b-card-text) !important;
  border-color: var(--b2b-border) !important;
}

html[data-b2b-r12-themed="true"] .polished-card-entry .bin-plan b,
html[data-b2b-r12-themed="true"] .polished-card-entry .bin-plan strong,
html[data-b2b-r12-themed="true"] .bin-plan b,
html[data-b2b-r12-themed="true"] .bin-plan strong {
  color: var(--b2b-card-heading) !important;
}

html[data-b2b-r12-themed="true"] .polished-card-entry .bin-plan b > small,
html[data-b2b-r12-themed="true"] .bin-plan b > small {
  color: var(--b2b-card-text) !important;
}

html[data-b2b-r12-themed="true"] .polished-card-entry .bin-plan.selected,
html[data-b2b-r12-themed="true"] .bin-plan.selected {
  background: var(--b2b-sec-btn-bg) !important;
  color: var(--b2b-sec-btn-text) !important;
  border-color: var(--b2b-btn-bg) !important;
}

html[data-b2b-r12-themed="true"] .polished-card-entry .bin-plan.selected span,
html[data-b2b-r12-themed="true"] .polished-card-entry .bin-plan.selected b,
html[data-b2b-r12-themed="true"] .polished-card-entry .bin-plan.selected strong,
html[data-b2b-r12-themed="true"] .bin-plan.selected span,
html[data-b2b-r12-themed="true"] .bin-plan.selected b,
html[data-b2b-r12-themed="true"] .bin-plan.selected strong {
  color: var(--b2b-sec-btn-text) !important;
}

/* Bank Transfer Rows (.bc-bank) & Order Summary */
html[data-b2b-r12-themed="true"] .checkout-transfer,
html[data-b2b-r12-themed="true"] .checkout-card-area,
html[data-b2b-r12-themed="true"] .checkout-summary .checkout-contract,
html[data-b2b-r12-themed="true"] [data-demo-shipping-tier],
html[data-b2b-r12-themed="true"] .checkout-line-offer,
html[data-b2b-r12-themed="true"] .checkout-single .checkout-line-offer,
html[data-b2b-r12-themed="true"] .checkout-fx-summary {
  background: var(--b2b-surface) !important;
  color: var(--b2b-surface-text) !important;
  border-color: var(--b2b-border) !important;
}

html[data-b2b-r12-themed="true"] .checkout-fx-summary select {
  background: var(--b2b-card-bg) !important;
  color: var(--b2b-card-text) !important;
  border-color: var(--b2b-border) !important;
}

html[data-b2b-r12-themed="true"] .checkout-fx-summary header b,
html[data-b2b-r12-themed="true"] .checkout-fx-summary b,
html[data-b2b-r12-themed="true"] .checkout-fx-summary strong {
  color: var(--b2b-surface-heading) !important;
}

html[data-b2b-r12-themed="true"] .checkout-fx-summary header small,
html[data-b2b-r12-themed="true"] .checkout-fx-summary > div > span,
html[data-b2b-r12-themed="true"] .checkout-fx-summary p,
html[data-b2b-r12-themed="true"] .line-fx-price,
html[data-b2b-r12-themed="true"] .checkout-line-offer .checkout-offer-label,
html[data-b2b-r12-themed="true"] .checkout-single .checkout-offer-label {
  color: var(--b2b-surface-text) !important;
}

html[data-b2b-r12-themed="true"] .bc-bank {
  border-color: var(--b2b-border) !important;
  color: var(--b2b-card-text) !important;
}

html[data-b2b-r12-themed="true"] .bc-bank strong {
  color: var(--b2b-card-heading) !important;
}

html[data-b2b-r12-themed="true"] .bc-bank span,
html[data-b2b-r12-themed="true"] .bc-bank code,
html[data-b2b-r12-themed="true"] .checkout-order-note label,
html[data-b2b-r12-themed="true"] .checkout-order-note small {
  color: var(--b2b-card-text) !important;
}

html[data-b2b-r12-themed="true"] .bc-bank button,
html[data-b2b-r12-themed="true"] .bc-text-button,
html[data-b2b-r12-themed="true"] .linklike,
html[data-b2b-r12-themed="true"] .checkout-contract a {
  color: var(--b2b-link) !important;
}

html[data-b2b-r12-themed="true"] .checkout-summary > div,
html[data-b2b-r12-themed="true"] .checkout-summary span,
html[data-b2b-r12-themed="true"] .checkout-tax-note,
html[data-b2b-r12-themed="true"] .checkout-contract span,
html[data-b2b-r12-themed="true"] .hint {
  color: var(--b2b-card-text) !important;
}

html[data-b2b-r12-themed="true"] .checkout-summary b,
html[data-b2b-r12-themed="true"] .checkout-summary strong,
html[data-b2b-r12-themed="true"] .checkout-grand span,
html[data-b2b-r12-themed="true"] .checkout-grand b,
html[data-b2b-r12-themed="true"] .transfer-price,
html[data-b2b-r12-themed="true"] .checkout-bank-summary,
html[data-b2b-r12-themed="true"] .checkout-gift-summary,
html[data-b2b-r12-themed="true"] .checkout-gift-summary b {
  color: var(--b2b-card-heading) !important;
}

html[data-b2b-r12-themed="true"] .bank-discount-badge {
  background: var(--b2b-sec-btn-bg) !important;
  color: var(--b2b-sec-btn-text) !important;
}

/* Complementary / Recommended Products inside Cart */
html[data-b2b-r12-themed="true"] .checkout-recommendations {
  border-top-color: var(--b2b-border) !important;
}

html[data-b2b-r12-themed="true"] .checkout-recommendations h3 {
  color: var(--b2b-card-heading) !important;
}

html[data-b2b-r12-themed="true"] .checkout-recommendations article {
  background: var(--b2b-surface) !important;
  color: var(--b2b-surface-text) !important;
  border-color: var(--b2b-border) !important;
}

html[data-b2b-r12-themed="true"] .checkout-recommendations article b {
  color: var(--b2b-surface-heading) !important;
}

html[data-b2b-r12-themed="true"] .checkout-recommendations article small {
  color: var(--b2b-surface-text) !important;
}

html[data-b2b-r12-themed="true"] .checkout-recommendations button {
  background: var(--b2b-btn-bg) !important;
  color: var(--b2b-btn-text) !important;
  border-color: var(--b2b-btn-bg) !important;
}

/* Address Drawer inside Cart */
html[data-b2b-r12-themed="true"] .bc-address-drawer,
html[data-b2b-r12-themed="true"] .parity-storefront .bc-address-drawer,
html[data-b2b-r12-themed="true"] #bc-address-drawer {
  background: var(--b2b-card-bg) !important;
  color: var(--b2b-card-text) !important;
  border-left: 1px solid var(--b2b-border) !important;
}

html[data-b2b-r12-themed="true"] .bc-drawer-head,
html[data-b2b-r12-themed="true"] .bc-drawer-foot {
  border-color: var(--b2b-border) !important;
}

html[data-b2b-r12-themed="true"] .bc-drawer-head h2,
html[data-b2b-r12-themed="true"] .bc-address-option strong {
  color: var(--b2b-card-heading) !important;
}

html[data-b2b-r12-themed="true"] .bc-drawer-head small,
html[data-b2b-r12-themed="true"] .bc-drawer-head button,
html[data-b2b-r12-themed="true"] .bc-muted,
html[data-b2b-r12-themed="true"] .bc-address-option small,
html[data-b2b-r12-themed="true"] .bc-consent {
  color: var(--b2b-card-text) !important;
}

html[data-b2b-r12-themed="true"] .bc-address-option {
  background: var(--b2b-surface) !important;
  border-color: var(--b2b-border) !important;
}

html[data-b2b-r12-themed="true"] .bc-drawer-foot button,
html[data-b2b-r12-themed="true"] .bc-primary,
html[data-b2b-r12-themed="true"] #bc-pay {
  background: var(--b2b-btn-bg) !important;
  color: var(--b2b-btn-text) !important;
}

/* VA-05 B2B Design Language, Touch Targets (>=44px), Focus-Visible & 360px Overflow Guard */
html, body {
  max-width: 100%;
  overflow-x: clip;
}
#b2b-toolbar nav a,
#b2b-toolbar nav button,
.guest-cta-actions a,
.guest-cta-actions button,
.header-actions .header-action,
.all-categories,
.main-nav a,
#search-form button,
.buy-row .btn,
.buy-row .icon-button,
.quantity-inline button,
.product-card .add-mini {
  min-height: 44px;
  min-width: 44px;
}
.guest-cta-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #8c2b43 !important;
  outline-offset: 2px !important;
}
@media (max-width: 480px) {
  #b2b-toolbar .wrap {
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  #b2b-toolbar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
  }
  .header-main {
    flex-wrap: wrap;
    gap: 10px;
  }
  .header-actions {
    flex-wrap: wrap;
    gap: 6px;
  }
  .main-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
  .ssr-product-grid {
    grid-template-columns: 1fr !important;
  }
  .b2b-table-wrap {
    max-width: 100%;
    overflow-x: auto;
  }
}


