/*
Theme Name: Smart Enginiering
Theme URI: https://example.com/
Author: Valery Balashov
Author URI: https://example.com/
Description: WooCommerce theme for B2B store with invoice-based ordering
Version: 78.3.40.44
Text Domain: b2b-invoice-theme
*/

:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-alt: #eef0f3;
  --surface-dark: #20232a;
  --text: #1f2937;
  --text-soft: #5f6b7a;
  --line: #dde2e8;
  --red: #c61f2a;
  --red-dark: #a31721;
  --red-soft: #fff1f2;
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 20px 48px rgba(15, 23, 42, 0.12);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --container: 1240px;
  --font-main: Inter, Arial, Helvetica, sans-serif;
  --fs-12: 12px;
  --fs-14: 14px;
  --fs-15: 15px;
  --fs-16: 16px;
  --fs-18: 18px;
  --fs-20: 20px;
  --fs-24: 24px;
  --fs-32: 32px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { margin: 0; padding: 0; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(198,31,42,0.06), transparent 22%),
    linear-gradient(180deg, #fafbfc 0%, #f3f5f7 100%);
  line-height: 1.6;
  font-size: var(--fs-16);
}

body.admin-bar .site-header { top: 32px; }

img { max-width: 100%; height: auto; display: block; }
svg { display: block; }

a {
  color: var(--red);
  text-decoration: none;
  transition: color .2s ease, opacity .2s ease;
}
a:hover { color: var(--red-dark); }

p, li, td, th, label, input, textarea, select, button {
  font-family: var(--font-main);
  font-size: var(--fs-16);
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  font-family: var(--font-main);
  color: var(--text);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.site-container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.site-main {
  padding: 28px 0 72px;
}

.section { padding: 72px 0; }
.section:first-child { padding-top: 40px; }

.section-title {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.section-subtitle {
  margin: 0;
  max-width: 760px;
  color: var(--text-soft);
  font-size: var(--fs-18);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 14px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red);
  font-size: var(--fs-12);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.btn,
.button,
.wp-element-button,
input[type="submit"],
button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid #b91f2a;
  border-radius: 14px;
  background: #c61f2a;
  color: #fff !important;
  box-shadow: none;
  cursor: pointer;
  font-weight: 700;
  font-size: var(--fs-15);
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.btn:hover,
.button:hover,
.wp-element-button:hover,
input[type="submit"]:hover,
button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
  transform: none;
  background: #b11b25;
  border-color: #a51821;
  box-shadow: none;
}

.btn--secondary,
.woocommerce a.button.added_to_cart {
  background: rgba(255,255,255,.84) !important;
  color: var(--text) !important;
  border-color: var(--line) !important;
  box-shadow: none !important;
}

.btn--secondary:hover,
.woocommerce a.button.added_to_cart:hover {
  background: #fff !important;
  border-color: #cfd6de !important;
  color: var(--text) !important;
}

.header-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  font-weight: 500;
  line-height: 1;
}

.header-cart__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  line-height: 1;
}

.header-cart__icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.header-cart.is-empty {
  color: #7a8591 !important;
}

.header-cart.is-empty:hover {
  color: #5f6b78 !important;
}

.header-cart.is-filled {
  color: #c81f2e !important;
}

.header-cart.is-filled:hover {
  color: #b11b25 !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px 0 0;
}

.site-header__inner {
  position: relative;
  overflow: visible;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 80px;
  padding: 14px 20px;
  border: 1px solid rgba(221,226,232,0.92);
  border-radius: 22px;
  background: rgba(255,255,255,0.86);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.site-logo img { width: auto; max-height: 54px; }

.site-title {
  margin: 0;
  font-size: var(--fs-24);
  font-weight: 900;
}

.site-title a { color: var(--text); }

.site-description {
  margin: 3px 0 0;
  color: var(--text-soft);
  font-size: var(--fs-12);
}

.main-navigation { justify-self: center; }

.main-navigation ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--text);
  font-size: var(--fs-15);
  font-weight: 700;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  background: var(--surface-alt);
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.76);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 800;
  white-space: nowrap;
}

.hero { padding: 36px 0 28px; }

.hero__shell {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(221,226,232,0.95);
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(198,31,42,0.14), transparent 24%),
    linear-gradient(135deg, #ffffff 0%, #f6f7f9 58%, #eef1f5 100%);
  box-shadow: var(--shadow-md);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 34px;
  align-items: stretch;
}

.hero__title {
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 66px);
  line-height: .98;
  letter-spacing: -0.05em;
  max-width: 760px;
}

.hero__text {
  margin: 0 0 26px;
  max-width: 700px;
  color: var(--text-soft);
  font-size: clamp(17px, 2.4vw, 20px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
  max-width: 760px;
}

.metric {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.76);
}

.metric strong {
  display: block;
  margin-bottom: 6px;
  font-size: 28px;
  line-height: 1;
}

.metric span {
  color: var(--text-soft);
  font-size: var(--fs-14);
  font-weight: 600;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(221,226,232,.95);
  border-radius: 28px;
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow-sm);
}

.hero-panel__title {
  margin: 0;
  font-size: var(--fs-24);
}

.hero-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-list li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--text);
  font-weight: 600;
}

.hero-list li::before {
  content: "";
  width: 14px;
  height: 14px;
  margin-top: 5px;
  border-radius: 50%;
  background: linear-gradient(180deg, #d92835 0%, #b91520 100%);
  box-shadow: 0 0 0 6px rgba(198,31,42,0.12);
}

.hero-panel__note {
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface-alt);
  color: var(--text-soft);
  font-size: var(--fs-14);
}

.grid-4,
.grid-3 {
  display: grid;
  gap: 20px;
}

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

.card {
  height: 100%;
  padding: 24px;
  border: 1px solid rgba(221,226,232,0.95);
  border-radius: 24px;
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow-sm);
}

.card--accent {
  background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,241,242,0.9) 100%);
  border-color: rgba(198,31,42,0.18);
}

.card__title {
  margin: 0 0 12px;
  font-size: var(--fs-20);
}

.card__text {
  margin: 0;
  color: var(--text-soft);
}

.card__meta {
  display: inline-flex;
  margin-top: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--text);
  font-size: var(--fs-12);
  font-weight: 800;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 20px;
  counter-reset: steps;
}

.step {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(221,226,232,0.95);
  border-radius: 26px;
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow-sm);
}

.step::before {
  counter-increment: steps;
  content: "0" counter(steps);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 54px;
  margin-bottom: 18px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red);
  font-size: var(--fs-18);
  font-weight: 900;
}

.site-footer { padding: 0 0 26px; }

.site-footer__inner {
  padding: 34px 28px 22px;
  border-radius: 30px;
  background: linear-gradient(180deg, #23262c 0%, #181b20 100%);
  box-shadow: var(--shadow-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr .9fr .9fr;
  gap: 26px;
}

.footer-title {
  margin: 0 0 12px;
  color: #fff;
  font-size: var(--fs-18);
}

.footer-text,
.footer-list {
  margin: 0;
  color: rgba(255,255,255,0.72);
  font-size: var(--fs-15);
}

.footer-list { list-style: none; padding: 0; }
.footer-list li + li { margin-top: 10px; }
.site-footer a { color: #fff; }

.footer-bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.58);
  font-size: var(--fs-14);
}

.archive-header,
.page-shell {
  padding: 28px;
  border: 1px solid rgba(221,226,232,0.95);
  border-radius: 28px;
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow-sm);
}

.archive-title {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
}

.products.columns-4,
ul.products,
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}

ul.products li.product,
.woocommerce ul.products li.product {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 18px;
  border: 1px solid rgba(221,226,232,0.95);
  border-radius: 24px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-sm);
}

.woocommerce ul.products li.product a img {
  margin: 0 0 16px !important;
  border-radius: 18px;
  background: #fff;
}

ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  margin: 0 0 10px;
  padding: 0;
  color: var(--text);
  font-size: var(--fs-20);
  line-height: 1.2;
}

.price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--red);
  font-weight: 900;
}

.single-product .product,
.woocommerce.single-product div.product {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(360px,.9fr);
  gap: 26px;
  padding: 26px;
  border: 1px solid rgba(221,226,232,0.95);
  border-radius: 30px;
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow-sm);
}

.woocommerce div.product div.images img {
  border-radius: 24px;
  border: 1px solid rgba(221,226,232,0.95);
  background: #fff;
}

.woocommerce-product-gallery,
.woocommerce div.product div.images,
.single-product .summary {
  width: 100% !important;
  float: none !important;
}

.single-product .summary { padding: 4px 0; }

.woocommerce div.product .product_title {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.04;
}

.woocommerce-product-details__short-description,
.product_meta,
.woocommerce-tabs {
  margin-top: 20px;
}

.woocommerce-tabs ul.tabs {
  padding: 0 !important;
}

.woocommerce-tabs ul.tabs::before,
.woocommerce-tabs ul.tabs li::before,
.woocommerce-tabs ul.tabs li::after {
  display: none !important;
}

.woocommerce-tabs ul.tabs li {
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--surface-alt) !important;
  margin: 0 10px 10px 0 !important;
}

.woocommerce-tabs ul.tabs li a {
  color: var(--text) !important;
  font-weight: 800 !important;
}

.woocommerce-tabs .panel {
  padding: 22px;
  border: 1px solid rgba(221,226,232,0.95);
  border-radius: 24px;
  background: rgba(255,255,255,.74);
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border: 1px solid rgba(221,226,232,0.95);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  background: rgba(255,255,255,.9);
}

.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-additional-fields,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review,
.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce-cart-form {
  padding: 24px;
  border: 1px solid rgba(221,226,232,0.95);
  border-radius: 24px;
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow-sm);
}

.woocommerce-checkout #customer_details {
  display: grid;
  gap: 20px;
}

form .form-row input.input-text,
form .form-row textarea,
form .form-row select,
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid #d7dde5;
  border-radius: 16px;
  background: #fff;
  font-size: var(--fs-15);
  transition: border-color .16s ease, box-shadow .16s ease;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(198,31,42,.45);
  box-shadow: 0 0 0 4px rgba(198,31,42,.10);
}

.woocommerce form .form-row label {
  margin-bottom: 7px;
  font-size: var(--fs-14);
  font-weight: 700;
  color: var(--text);
}

.woocommerce table.shop_table,
.shop_table {
  width: 100%;
  border: 1px solid rgba(221,226,232,0.95) !important;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,.9);
  border-collapse: separate;
  border-spacing: 0;
}

.shop_table th {
  background: var(--surface-alt);
  color: var(--text);
  font-size: var(--fs-12);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.b2b-note {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(198,31,42,0.16);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(255,241,242,0.92) 100%);
  color: var(--text);
}

.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }

.widget { margin-bottom: 24px; }

@media (max-width: 1180px) {
  .site-header__inner { grid-template-columns: 1fr; justify-items: start; }
  .main-navigation { justify-self: start; }
  .header-actions { width: 100%; justify-content: space-between; }
  .grid-4,
  .products.columns-4,
  ul.products,
  .woocommerce ul.products,
  .steps,
  .hero-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 960px) {
  .hero__grid,
  .single-product .product,
  .woocommerce.single-product div.product,
  .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}

@media (max-width: 768px) {
  body.admin-bar .site-header { top: 46px; }
  .site-main { padding: 24px 0 54px; }
  .site-container { width: min(100% - 20px, var(--container)); }
  .site-header { padding-top: 10px; }
  .site-header__inner { padding: 14px; border-radius: 20px; gap: 14px; }
  .main-navigation ul { gap: 6px; }
  .main-navigation a { min-height: 38px; padding: 8px 12px; font-size: var(--fs-14); }
  .header-actions { flex-direction: column; align-items: stretch; }
  .header-phone, .header-cart, .btn, .btn--secondary { width: 100%; }
  .hero__shell { padding: 22px; border-radius: 26px; }
  .hero__title { font-size: 38px; }
  .hero__actions { flex-direction: column; }
  .hero-metrics,
  .grid-4,
  .grid-3,
  .steps,
  .footer-grid,
  .products.columns-4,
  ul.products,
  .woocommerce ul.products { grid-template-columns: 1fr; }
  .archive-header,
  .page-shell,
  .single-product .product,
  .woocommerce.single-product div.product,
  .woocommerce-checkout .woocommerce-billing-fields,
  .woocommerce-checkout .woocommerce-additional-fields,
  .woocommerce-checkout #order_review_heading,
  .woocommerce-checkout #order_review,
  .woocommerce-cart .cart-collaterals .cart_totals,
  .woocommerce-cart-form { padding: 18px; border-radius: 22px; }
}

/* SHOP PAGE B2B LAYOUT */
.b2b-shop-page {
    padding: 0 0 40px;
}

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

.b2b-shop-sidebar {
    position: sticky;
    top: 150px;
    align-self: start;
}

.b2b-shop-box {
    background: #fff;
    border: 1px solid #d7d7d7;
    border-radius: 14px;
    padding: 20px;
}

.b2b-shop-box .section-title {
    margin: 6px 0 0;
    font-size: 22px;
    line-height: 1.2;
    color: #1d3557;
}

.b2b-shop-box .eyebrow,
.b2b-shop-header .eyebrow {
    font-size: 12px;
    padding: 6px 12px;
}

.b2b-shop-searchbar {
    margin-bottom: 18px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #d7d7d7;
    border-radius: 14px;
}

.b2b-shop-searchbar form {
    display: flex;
    gap: 10px;
    width: 100%;
}

.b2b-shop-searchbar input[type="search"] {
    flex: 1;
    min-width: 0;
    height: 46px;
    border: 1px solid #cfcfcf;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 15px;
    background: #fff;
}

.b2b-shop-searchbar button {
    height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 10px;
    background: #9f1d20;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.b2b-shop-cats {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
}

.b2b-shop-cat-item + .b2b-shop-cat-item {
    margin-top: 10px;
}


.b2b-shop-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    background: #f7f7f7;
    color: #2c2c2c;
    text-decoration: none;
    font-weight: 500;
    transition: .2s ease;
}

.b2b-shop-cat-link:hover {
    background: #fff5f5;
    border-color: #b11f24;
    color: #b11f24;
}

.b2b-shop-cat-link strong,
.b2b-shop-cats strong {
    color: #b11f24;
    font-size: 13px;
    font-weight: 700;
}

.b2b-shop-cat-toggle {
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    background: #f7f7f7;
    color: #b11f24;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}

.b2b-shop-cat-toggle:hover {
    background: #fff5f5;
    border-color: #b11f24;
}

.b2b-shop-cat-toggle span {
    display: inline-block;
    line-height: 1;
    transform: translateY(-1px);
}

.b2b-shop-cat-item.is-open .b2b-shop-cat-toggle span {
    transform: rotate(45deg);
}

.b2b-shop-subcats {
    display: none;
    list-style: none;
    margin: 8px 0 0;
    padding: 0 0 0 14px;
    border-left: 2px solid #e4e4e4;
}

.b2b-shop-cat-item.is-open > .b2b-shop-subcats {
    display: block;
}

.b2b-shop-subcats li + li {
    margin-top: 8px;
}

.b2b-shop-subcats a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fbfbfb;
    color: #4a4a4a;
    text-decoration: none;
    border: 1px solid #ececec;
    font-size: 14px;
    transition: .2s ease;
}

.b2b-shop-subcats a:hover {
    background: #fff5f5;
    border-color: #d9b1b3;
    color: #b11f24;
}

.b2b-shop-subcats strong {
    color: #b11f24;
    font-size: 12px;
}

.b2b-shop-header {
    margin-bottom: 18px;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid #d7d7d7;
    border-radius: 14px;
}

.b2b-shop-header .archive-title,
.b2b-shop-header h1 {
    margin: 6px 0 0;
    font-size: 30px;
    line-height: 1.15;
    color: #1d3557;
}

.b2b-shop-content .woocommerce-result-count {
    margin: 0 0 14px;
    color: #374151;
}

.b2b-shop-content .woocommerce-ordering {
    margin: 0 0 22px;
}

.b2b-shop-content .woocommerce-ordering select {
    min-height: 46px;
    border: 1px solid #d4d4d4;
    border-radius: 10px;
    padding: 0 14px;
    background: #fff;
}

.b2b-shop-content ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 0 !important;
}

.b2b-shop-content ul.products::before,
.b2b-shop-content ul.products::after {
    display: none !important;
}

.b2b-shop-content ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
}

@media (max-width: 1100px) {
    .b2b-shop-layout {
        grid-template-columns: 1fr;
    }

    .b2b-shop-sidebar {
        position: static;
    }

    .b2b-shop-content ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .b2b-shop-header .archive-title,
    .b2b-shop-header h1 {
        font-size: 24px;
    }

    .b2b-shop-box .section-title {
        font-size: 18px;
    }

    .b2b-shop-searchbar form {
        flex-direction: column;
    }

    .b2b-shop-content ul.products {
        grid-template-columns: 1fr;
    }
}
/* SHOP LAYOUT */
.b2b-shop-page {
    padding: 0 0 40px;
}

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

.b2b-shop-sidebar {
    position: sticky;
    top: 150px;
    align-self: start;
}

.b2b-shop-searchbar {
    margin-bottom: 18px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #d7d7d7;
    border-radius: 14px;
}

.b2b-shop-searchbar form {
    display: flex;
    gap: 10px;
    width: 100%;
}

.b2b-shop-searchbar input[type="search"] {
    flex: 1;
    min-width: 0;
    height: 46px;
    border: 1px solid #cfcfcf;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 15px;
    background: #fff;
}

.b2b-shop-searchbar button {
    height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 10px;
    background: #9f1d20;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.b2b-shop-box {
    background: #fff;
    border: 1px solid #d7d7d7;
    border-radius: 14px;
    padding: 20px;
}

.b2b-shop-cats {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
}

.b2b-shop-header {
    margin-bottom: 18px;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid #d7d7d7;
    border-radius: 14px;
}

.b2b-shop-header .archive-title,
.b2b-shop-header h1 {
    margin: 6px 0 0;
    font-size: 30px;
    line-height: 1.15;
    color: #1d3557;
}

.b2b-shop-box .section-title {
    margin: 6px 0 0;
    font-size: 22px;
    line-height: 1.2;
    color: #1d3557;
}

.b2b-shop-box .eyebrow,
.b2b-shop-header .eyebrow {
    font-size: 12px;
    padding: 6px 12px;
}

.b2b-shop-content .woocommerce-result-count {
    margin: 0 0 14px;
    color: #374151;
}

.b2b-shop-content .woocommerce-ordering {
    margin: 0 0 22px;
}

.b2b-shop-content .woocommerce-ordering select {
    min-height: 46px;
    border: 1px solid #d4d4d4;
    border-radius: 10px;
    padding: 0 14px;
    background: #fff;
}

.b2b-shop-content ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 0 !important;
}

.b2b-shop-content ul.products::before,
.b2b-shop-content ul.products::after {
    display: none !important;
}

.b2b-shop-content ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
}

.b2b-shop-cat-item + .b2b-shop-cat-item {
    margin-top: 10px;
}



.b2b-shop-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    background: #f7f7f7;
    color: #2c2c2c;
    text-decoration: none;
    font-weight: 500;
    transition: .2s ease;
}

.b2b-shop-cat-link:hover {
    background: #fff5f5;
    border-color: #b11f24;
    color: #b11f24;
}

.b2b-shop-cat-toggle {
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    background: #f7f7f7;
    color: #b11f24;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}

.b2b-shop-cat-toggle:hover {
    background: #fff5f5;
    border-color: #b11f24;
}

.b2b-shop-cat-toggle span {
    display: inline-block;
    line-height: 1;
    transform: translateY(-1px);
}

.b2b-shop-cat-item.is-open .b2b-shop-cat-toggle span {
    transform: rotate(45deg);
}

.b2b-shop-subcats {
    display: none;
    list-style: none;
    margin: 8px 0 0;
    padding: 0 0 0 14px;
    border-left: 2px solid #e4e4e4;
}

.b2b-shop-cat-item.is-open > .b2b-shop-subcats {
    display: block;
}

.b2b-shop-subcats li + li {
    margin-top: 8px;
}

.b2b-shop-subcats a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fbfbfb;
    color: #4a4a4a;
    text-decoration: none;
    border: 1px solid #ececec;
    font-size: 14px;
    transition: .2s ease;
}

.b2b-shop-subcats a:hover {
    background: #fff5f5;
    border-color: #d9b1b3;
    color: #b11f24;
}

.b2b-shop-subcats strong,
.b2b-shop-cat-link strong {
    color: #b11f24;
    font-size: 12px;
}

@media (max-width: 1100px) {
    .b2b-shop-layout {
        grid-template-columns: 1fr;
    }

    .b2b-shop-sidebar {
        position: static;
    }

    .b2b-shop-content ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .b2b-shop-searchbar form {
        flex-direction: column;
    }

    .b2b-shop-header .archive-title,
    .b2b-shop-header h1 {
        font-size: 24px;
    }

    .b2b-shop-box .section-title {
        font-size: 18px;
    }

    .b2b-shop-content ul.products {
        grid-template-columns: 1fr;
    }
}
.b2b-shop-cat-item + .b2b-shop-cat-item {
    margin-top: 10px;
}

.b2b-shop-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    background: #f7f7f7;
    color: #2c2c2c;
    text-decoration: none;
    font-weight: 500;
    transition: .2s ease;
}

a.b2b-shop-cat-link:hover,
button.b2b-shop-cat-link:hover {
    background: #fff5f5;
    border-color: #b11f24;
    color: #b11f24;
}

button.b2b-shop-cat-link {
    appearance: none;
    cursor: pointer;
    text-align: left;
}

.b2b-shop-cat-item.is-open > .b2b-shop-cat-link {
    background: #fff5f5;
    border-color: #b11f24;
    color: #b11f24;
}


.b2b-shop-subcats {
    display: none;
    list-style: none;
    margin: 8px 0 0;
    padding: 0 0 0 14px;
    border-left: 2px solid #e4e4e4;
}

.b2b-shop-cat-item.is-open > .b2b-shop-subcats {
    display: block;
}

.b2b-shop-subcats li + li {
    margin-top: 8px;
}

.b2b-shop-subcats a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fbfbfb;
    color: #4a4a4a;
    text-decoration: none;
    border: 1px solid #ececec;
    font-size: 14px;
    transition: .2s ease;
}

.b2b-shop-subcats a:hover {
    background: #fff5f5;
    border-color: #d9b1b3;
    color: #b11f24;
}

.b2b-shop-subcats strong,
.b2b-shop-cat-link strong {
    color: #b11f24;
    font-size: 12px;
}

.b2b-shop-subcats-all a {
    background: #f3f3f3;
    font-weight: 600;
}
/* fix button color for category items with children */
button.b2b-shop-cat-link {
    color: #2c2c2c !important;
    background: #f7f7f7 !important;
    border: 1px solid #e1e1e1 !important;
    box-shadow: none !important;
    justify-content: space-between;
}

button.b2b-shop-cat-link:hover {
    color: #b11f24 !important;
    background: #fff5f5 !important;
    border-color: #b11f24 !important;
}

.b2b-shop-cat-item.is-open > button.b2b-shop-cat-link,
.b2b-shop-cat-item.is-active-branch.is-open > button.b2b-shop-cat-link {
    color: #b11f24 !important;
    background: #fff5f5 !important;
    border-color: #b11f24 !important;
}

.b2b-shop-cat-link.is-current,
.b2b-shop-subcats li.is-current > a,
.b2b-shop-subcats-all.is-current > a {
    background: #fff5f5;
    border-color: #b11f24;
    color: #b11f24;
    font-weight: 700;
}
/* product cards: keep price and button at the bottom */
.b2b-shop-content ul.products li.product {
    display: flex !important;
    flex-direction: column;
}



.b2b-shop-content ul.products li.product .price {
    margin-top: auto !important;
}

.b2b-shop-content ul.products li.product .button,
.b2b-shop-content ul.products li.product a.button,
.b2b-shop-content ul.products li.product button.button,
.b2b-shop-content ul.products li.product .added_to_cart {
    margin-top: 12px !important;
    
}
/* arrow before category name */
.b2b-shop-cat-item.has-children > .b2b-shop-cat-link {
    position: relative;
    padding-left: 34px;
    padding-right: 14px;
}

.b2b-shop-cat-item.has-children > .b2b-shop-cat-link::after {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    width: 0;
    height: 0;
    margin-top: -5px;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid #b11f24;
    transition: transform .2s ease;
}

.b2b-shop-cat-item.is-open.has-children > .b2b-shop-cat-link::after,
.b2b-shop-cat-item.is-active-branch.has-children > .b2b-shop-cat-link::after {
    transform: rotate(90deg);
}

.b2b-shop-cat-link span {
    flex: 1 1 auto;
    min-width: 0;
}

.b2b-shop-cat-link strong {
    flex: 0 0 auto;
}

.b2b-shop-content ul.products li.product .price {
    margin-top: auto !important;
    flex: 0 0 auto !important;
}
.b2b-shop-content ul.products li.product .button,
.b2b-shop-content ul.products li.product a.button {
    min-height: 0 !important;
    height: 54px !important;
    line-height: 54px !important;
    padding: 0 18px !important;
}
/* карточка: цена и кнопка всегда снизу, кнопка не растягивается */
.b2b-shop-content ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
}

.b2b-shop-content ul.products li.product .woocommerce-loop-product__link,
.b2b-shop-content ul.products li.product > a:first-child {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
}

.b2b-shop-content ul.products li.product .price {
    margin-top: auto !important;
    margin-bottom: 12px !important;
    flex: 0 0 auto !important;
}

.b2b-shop-content ul.products li.product .button,
.b2b-shop-content ul.products li.product a.button,
.b2b-shop-content ul.products li.product button.button,
.b2b-shop-content ul.products li.product .added_to_cart {
    flex: 0 0 auto !important;
    align-self: stretch !important;
    width: 100% !important;
    height: 48px !important;
    line-height: 48px !important;
    min-height: 48px !important;
    padding: 0 16px !important;
    margin-top: 0 !important;
}
/* single product: required order and one-line purchase row */

.single-product .b2b-product-short {
    margin-bottom: 18px;
}

.single-product .b2b-product-config-title {
    margin: 0 0 14px;
    color: #1d3557;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.single-product .b2b-product-price-wrap {
    margin-bottom: 16px;
}

.single-product .b2b-product-order-total {
    display: none !important;
}

/* variations area */
.single-product .b2b-product-purchase .variations {
    margin-bottom: 14px;
}

.single-product .b2b-product-purchase .variations td,
.single-product .b2b-product-purchase .variations th {
    padding-bottom: 10px;
}

.single-product .b2b-product-purchase .single_variation_wrap {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
}

/* hide duplicate variation price above qty if WooCommerce shows it */
.single-product .b2b-product-purchase .single_variation .price {
    display: none !important;
}

.single-product .b2b-product-purchase .woocommerce-variation-price {
    display: none !important;
}

/* qty + cart + total in one row */
.single-product .b2b-product-purchase .woocommerce-variation-add-to-cart,
.single-product .b2b-product-purchase .variations_button,
.single-product .b2b-product-purchase form.cart,
.single-product .b2b-product-purchase .cart {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
}

.single-product .b2b-product-purchase .quantity {
    flex: 0 0 auto;
}

.single-product .b2b-product-purchase .quantity .qty {
    height: 52px;
    min-width: 92px;
    border: 1px solid #cfcfcf;
    border-radius: 12px;
    background: #fff;
    font-size: 16px;
    text-align: center;
}

.single-product .b2b-product-purchase .single_add_to_cart_button,
.single-product .b2b-product-purchase button.single_add_to_cart_button,
.single-product .b2b-product-purchase a.single_add_to_cart_button {
    flex: 0 0 auto;
    height: 48px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 12px;
}

/* inline total */
.single-product .b2b-product-purchase .b2b-product-order-total,
.single-product .b2b-product-purchase .b2b-product-order-total-inline {
    display: inline-flex !important;
    align-items: center;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid #ececec;
    border-radius: 12px;
    background: #f7f7f7;
}

.single-product .b2b-product-purchase .b2b-product-order-total__label {
    margin-right: 8px;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

.single-product .b2b-product-purchase .b2b-product-order-total__value {
    color: #b11f24;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

@media (max-width: 680px) {
    .single-product .b2b-product-purchase .single_variation_wrap,
    .single-product .b2b-product-purchase .woocommerce-variation-add-to-cart,
    .single-product .b2b-product-purchase .variations_button,
    .single-product .b2b-product-purchase form.cart,
    .single-product .b2b-product-purchase .cart {
        flex-direction: column;
        align-items: stretch;
    }

    .single-product .b2b-product-purchase .single_add_to_cart_button,
    .single-product .b2b-product-purchase button.single_add_to_cart_button,
    .single-product .b2b-product-purchase a.single_add_to_cart_button,
    .single-product .b2b-product-purchase .b2b-product-order-total,
    .single-product .b2b-product-purchase .b2b-product-order-total-inline {
        width: 100%;
    }
}
.single-product .b2b-product-order-total {
    display: none !important;
}

.single-product .b2b-product-purchase {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.single-product .b2b-product-purchase .variations {
    margin-bottom: 12px;
}

.single-product .b2b-product-purchase .single_variation .price,
.single-product .b2b-product-purchase .woocommerce-variation-price {
    display: none !important;
}

.single-product .b2b-product-purchase .woocommerce-variation-add-to-cart,
.single-product .b2b-product-purchase .variations_button,
.single-product .b2b-product-purchase form.cart,
.single-product .b2b-product-purchase .cart {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
}

.single-product .b2b-product-purchase .quantity {
    flex: 0 0 auto;
}

.single-product .b2b-product-purchase .quantity .qty {
    height: 52px;
    min-width: 92px;
    border: 1px solid #cfcfcf;
    border-radius: 12px;
    background: #fff;
    font-size: 16px;
    text-align: center;
}

.single-product .b2b-product-purchase .single_add_to_cart_button,
.single-product .b2b-product-purchase button.single_add_to_cart_button,
.single-product .b2b-product-purchase a.single_add_to_cart_button {
    flex: 0 0 auto;
    height: 48px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 12px;
}

.single-product .b2b-product-order-total-inline {
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid #ececec;
    border-radius: 12px;
    background: #f7f7f7;
    white-space: nowrap;
}

.single-product .b2b-product-order-total__label {
    margin-right: 8px;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

.single-product .b2b-product-order-total__value {
    color: #b11f24;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

@media (max-width: 680px) {
    .single-product .b2b-product-purchase .woocommerce-variation-add-to-cart,
    .single-product .b2b-product-purchase .variations_button,
    .single-product .b2b-product-purchase form.cart,
    .single-product .b2b-product-purchase .cart {
        flex-direction: column;
        align-items: stretch;
    }

    .single-product .b2b-product-purchase .single_add_to_cart_button,
    .single-product .b2b-product-purchase button.single_add_to_cart_button,
    .single-product .b2b-product-purchase a.single_add_to_cart_button,
    .single-product .b2b-product-order-total-inline {
        width: 100%;
    }
}


.single-product .b2b-product-purchase .variations tr {
    vertical-align: middle;
}

.single-product .b2b-product-purchase .variations td,
.single-product .b2b-product-purchase .variations th {
    vertical-align: middle;
}

.single-product .b2b-product-purchase .variations th.label {
    padding-right: 18px;
}

.single-product .b2b-product-purchase .variations th.label label,
.single-product .b2b-product-purchase .variations td.label label,
.single-product .b2b-product-purchase .variations .label label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 46px;
    margin: 0;
    width: 100%;
    line-height: 1.25;
}

/* My account: invoice button spacing and centering */
.woocommerce-account .woocommerce-orders-table__cell-order-actions,
.woocommerce-account table.my_account_orders td.woocommerce-orders-table__cell-order-actions,
.woocommerce-account table.shop_table_responsive.my_account_orders td.order-actions {
    text-align: center;
    vertical-align: middle;
}

.woocommerce-account .woocommerce-orders-table__cell-order-actions .button,
.woocommerce-account .woocommerce-orders-table__cell-order-actions .woocommerce-button,
.woocommerce-account table.my_account_orders td.woocommerce-orders-table__cell-order-actions a,
.woocommerce-account table.shop_table_responsive.my_account_orders td.order-actions .button,
.woocommerce-account table.shop_table_responsive.my_account_orders td.order-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 6px 8px;
}

/* single product add-to-cart notice: same width as content panels, centered, no overflow */
.single-product .woocommerce-notices-wrapper {
  width: min(100%, 1120px);
  margin: 0 auto 24px;
}

.single-product .woocommerce-notices-wrapper .woocommerce-message,
.single-product .woocommerce-notices-wrapper .woocommerce-info,
.single-product .woocommerce-notices-wrapper .woocommerce-error {
  width: 100%;
  max-width: 100%;
  margin: 0 auto 24px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
}

.single-product .woocommerce-notices-wrapper .woocommerce-message::before,
.single-product .woocommerce-notices-wrapper .woocommerce-info::before,
.single-product .woocommerce-notices-wrapper .woocommerce-error::before {
  display: none;
}

.single-product .woocommerce-notices-wrapper .woocommerce-message,
.single-product .woocommerce-notices-wrapper .woocommerce-info,
.single-product .woocommerce-notices-wrapper .woocommerce-error {
  padding-left: 20px;
}

.single-product .woocommerce-notices-wrapper .woocommerce-message .button,
.single-product .woocommerce-notices-wrapper .woocommerce-message a.button,
.single-product .woocommerce-notices-wrapper .woocommerce-message .wc-forward,
.single-product .woocommerce-notices-wrapper .woocommerce-info .button,
.single-product .woocommerce-notices-wrapper .woocommerce-info a.button,
.single-product .woocommerce-notices-wrapper .woocommerce-info .wc-forward,
.single-product .woocommerce-notices-wrapper .woocommerce-error .button,
.single-product .woocommerce-notices-wrapper .woocommerce-error a.button,
.single-product .woocommerce-notices-wrapper .woocommerce-error .wc-forward {
  float: none !important;
  order: 2;
  margin: 0 !important;
  flex: 0 0 auto;
}

@media (max-width: 680px) {
  .single-product .woocommerce-notices-wrapper {
    width: 100%;
    margin-bottom: 20px;
  }

  .single-product .woocommerce-notices-wrapper .woocommerce-message,
  .single-product .woocommerce-notices-wrapper .woocommerce-info,
  .single-product .woocommerce-notices-wrapper .woocommerce-error {
    padding: 12px 14px;
    gap: 10px;
  }
}


/* v26: keep reset link below the variation selects and preserve equal select widths */
.b2b-product-purchase table.variations td.value {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 8px !important;
  min-width: 0 !important;
}

.b2b-product-purchase table.variations td.value select {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  flex: 0 0 auto !important;
}

.b2b-product-purchase table.variations td.value .reset_variations {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: right !important;
  white-space: nowrap !important;
  align-self: stretch !important;
}


.single-product .b2b-product-price-wrap {
    min-height: 108px;
}

.single-product .b2b-product-top-price {
    min-height: 48px;
}

.single-product .b2b-product-top-price .price {
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: 0.18em;
    white-space: nowrap;
}


/* fixed29 main shop layout cleanup: remove header panel, move sorting to sidebar */
.b2b-shop-content .woocommerce-ordering {
  display: none;
}

.b2b-shop-sort-box {
  margin-top: 20px;
}

.b2b-shop-sort-box__title {
  margin: 0 0 12px;
  color: var(--text);
  font-size: var(--fs-18);
  font-weight: 800;
  line-height: 1.2;
}

.b2b-shop-sort-box .woocommerce-ordering {
  display: block;
  float: none;
  margin: 0;
  width: 100%;
}

.b2b-shop-sort-box .woocommerce-ordering select {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid #cfd6de;
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  box-shadow: none;
}

.b2b-shop-content .woocommerce-result-count {
  margin: 0 0 14px;
}

@media (max-width: 980px) {
  .b2b-shop-sort-box {
    margin-top: 16px;
  }
}


/* fixed29 catalog view toggle with saved choice */
.b2b-shop-view-box {
  margin-top: 16px;
}

.b2b-view-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.b2b-view-toggle__btn {
  min-height: 52px;
  padding: 0 16px !important;
  border: 1px solid #d2d7df !important;
  border-radius: 16px !important;
  background: #fff !important;
  color: #9aa3af !important;
  box-shadow: none !important;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.b2b-view-toggle__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.b2b-view-toggle__icon svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: currentColor;
}

.b2b-view-toggle__btn:hover {
  border-color: #c8ced8 !important;
  background: #f8fafc !important;
  color: #7f8895 !important;
}

.b2b-view-toggle__btn.is-active {
  background: #fff5f6 !important;
  border-color: #cf2e2e !important;
  color: #cf2e2e !important;
  box-shadow: none !important;
}

/* compact list mode */
.b2b-shop-content.b2b-shop-view-list ul.products {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.b2b-shop-content.b2b-shop-view-list ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  padding: 10px 14px !important;
  display: grid !important;
  grid-template-columns: 84px minmax(0, 1fr) auto !important;
  grid-template-rows: auto auto auto !important;
  column-gap: 14px !important;
  row-gap: 4px !important;
  align-items: center !important;
  border-radius: 18px;
  min-height: 110px !important;
}

.b2b-shop-content.b2b-shop-view-list ul.products li.product > a:first-child,
.b2b-shop-content.b2b-shop-view-list ul.products li.product .woocommerce-loop-product__link {
  display: contents !important;
}

.b2b-shop-content.b2b-shop-view-list ul.products li.product a img {
  grid-column: 1 !important;
  grid-row: 1 / span 3 !important;
  width: 84px !important;
  max-width: 84px !important;
  height: 84px !important;
  object-fit: contain;
  margin: 0 !important;
  border-radius: 12px;
  background: #fff;
  align-self: center !important;
}

.b2b-shop-content.b2b-shop-view-list ul.products li.product .woocommerce-loop-product__title {
  grid-column: 2 !important;
  grid-row: 1 !important;
  margin: 0 !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  min-width: 0 !important;
}

.b2b-shop-content.b2b-shop-view-list ul.products li.product .card__text {
  grid-column: 2 !important;
  grid-row: 2 !important;
  margin: 0 !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  color: var(--muted);
}

.b2b-shop-content.b2b-shop-view-list ul.products li.product .price {
  grid-column: 2 !important;
  grid-row: 3 !important;
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.15 !important;
}

.b2b-shop-content.b2b-shop-view-list ul.products li.product .price,
.b2b-shop-content.b2b-shop-view-list ul.products li.product .price * {
  color: #c81622 !important;
  font-weight: 800 !important;
}

.b2b-shop-content.b2b-shop-view-list ul.products li.product .b2b-note {
  display: none !important;
}

.b2b-shop-content.b2b-shop-view-list ul.products li.product .button,
.b2b-shop-content.b2b-shop-view-list ul.products li.product .added_to_cart,
.b2b-shop-content.b2b-shop-view-list ul.products li.product .product_type_variable,
.b2b-shop-content.b2b-shop-view-list ul.products li.product .add_to_cart_button {
  grid-column: 3 !important;
  grid-row: 1 / span 3 !important;
  justify-self: end !important;
  align-self: center !important;
  min-width: 170px;
  min-height: 46px;
  padding: 0 18px !important;
  margin: 0 !important;
  border-radius: 16px !important;
}

.b2b-shop-content.b2b-shop-view-list ul.products li.product .button + .added_to_cart,
.b2b-shop-content.b2b-shop-view-list ul.products li.product a.button + .added_to_cart {
  margin-left: 10px !important;
}

@media (max-width: 980px) {
  .b2b-shop-content.b2b-shop-view-list ul.products li.product {
    grid-template-columns: 72px minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto auto !important;
    column-gap: 12px !important;
    row-gap: 4px !important;
    padding: 10px 12px !important;
    min-height: 96px !important;
  }

  .b2b-shop-content.b2b-shop-view-list ul.products li.product a img {
    width: 72px !important;
    max-width: 72px !important;
    height: 72px !important;
  }

  .b2b-shop-content.b2b-shop-view-list ul.products li.product .woocommerce-loop-product__title {
    font-size: 15px !important;
  }

  .b2b-shop-content.b2b-shop-view-list ul.products li.product .card__text {
    font-size: 11px !important;
  }

  .b2b-shop-content.b2b-shop-view-list ul.products li.product .price {
    font-size: 14px !important;
  }

  .b2b-shop-content.b2b-shop-view-list ul.products li.product .button,
  .b2b-shop-content.b2b-shop-view-list ul.products li.product .added_to_cart,
  .b2b-shop-content.b2b-shop-view-list ul.products li.product .product_type_variable,
  .b2b-shop-content.b2b-shop-view-list ul.products li.product .add_to_cart_button {
    grid-column: 2 !important;
    grid-row: 4 !important;
    justify-self: start !important;
    min-width: 0 !important;
    width: auto !important;
    min-height: 42px !important;
    margin-top: 2px !important;
  }
}



/* fixed29: separate search and view panels */
.b2b-shop-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: stretch;
    margin-bottom: 18px;
}

.b2b-shop-searchbar {
    margin-bottom: 0;
}

.b2b-shop-searchform {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 760px;
}

.b2b-shop-searchbar form.b2b-shop-searchform input[type="search"] {
    flex: 1 1 auto;
}

.b2b-shop-viewpanel {
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #d7d7d7;
    border-radius: 14px;
    display: flex;
    align-items: center;
}

.b2b-view-toggle--inline {
    flex: 0 0 auto;
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-width: 132px;
}

.b2b-view-toggle--inline .b2b-view-toggle__btn {
    min-width: 60px;
    padding: 0 10px !important;
}

@media (max-width: 1180px) {
    .b2b-shop-toolbar {
        grid-template-columns: 1fr;
    }

    .b2b-shop-searchform {
        max-width: 100%;
    }

    .b2b-shop-viewpanel {
        justify-content: flex-start;
    }
}

@media (max-width: 980px) {
    .b2b-shop-viewpanel {
        padding: 16px;
    }

    .b2b-view-toggle--inline {
        width: 100%;
        min-width: 0;
    }
}

/* v35: tighten gap under header on single product pages */
.single-product .site-main {
  padding-top: 20px !important;
}

/* My account: fix password visibility toggle buttons on account details form */
.woocommerce-account .woocommerce-EditAccountForm .password-input,
.woocommerce-account form.edit-account .password-input {
  position: relative;
  display: block;
  width: 100%;
}

.woocommerce-account .woocommerce-EditAccountForm .password-input input,
.woocommerce-account form.edit-account .password-input input {
  width: 100%;
  padding-right: 56px;
}

.woocommerce-account .woocommerce-EditAccountForm .show-password-input,
.woocommerce-account .woocommerce-EditAccountForm button.show-password-input,
.woocommerce-account form.edit-account .show-password-input,
.woocommerce-account form.edit-account button.show-password-input {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: #6b7280 !important;
}

.woocommerce-account .woocommerce-EditAccountForm .show-password-input:hover,
.woocommerce-account .woocommerce-EditAccountForm button.show-password-input:hover,
.woocommerce-account form.edit-account .show-password-input:hover,
.woocommerce-account form.edit-account button.show-password-input:hover {
  transform: translateY(-50%);
  background: transparent !important;
  box-shadow: none !important;
  color: #1f2937 !important;
}

.woocommerce-account .woocommerce-EditAccountForm .show-password-input::after,
.woocommerce-account .woocommerce-EditAccountForm button.show-password-input::after,
.woocommerce-account form.edit-account .show-password-input::after,
.woocommerce-account form.edit-account button.show-password-input::after {
  font-size: 18px;
  line-height: 1;
}


/* v42: header cart as text link + no overlay view-cart link in list mode */
.b2b-shop-content ul.products li.product .added_to_cart {
  display: none !important;
}

.b2b-shop-content ul.products li.product .add_to_cart_button.b2b-view-cart-ready,
.b2b-shop-content ul.products li.product .button.b2b-view-cart-ready,
.b2b-shop-content ul.products li.product a.button.b2b-view-cart-ready {
  background: #b11b25 !important;
  border-color: #a51821 !important;
  color: #fff !important;
}


/* v44: B2B товары под заказ */
.woocommerce .stock.available-on-backorder,
.woocommerce p.stock.available-on-backorder,
.single-product .stock.available-on-backorder,
.b2b-shop-content .stock.available-on-backorder {
    color: #c62828 !important;
    font-weight: 800 !important;
}

.b2b-order-stock-notice {
    margin: 0 0 22px;
    padding: 18px 20px;
    border: 1px solid rgba(198, 40, 40, .35);
    border-left: 5px solid #c62828;
    border-radius: 14px;
    background: rgba(198, 40, 40, .07);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .05);
}

.b2b-order-stock-notice__title {
    margin-bottom: 6px;
    color: #c62828;
    font-size: 18px;
    font-weight: 800;
}

.b2b-order-stock-notice__text {
    line-height: 1.55;
}

.b2b-order-stock-notice__items {
    margin: 12px 0 0 20px;
    padding: 0;
}

.b2b-order-stock-notice__items li + li {
    margin-top: 6px;
}

.woocommerce .b2b-backorder-label,
.woocommerce .backorder_notification.b2b-backorder-label {
    margin: 8px 0 0;
    color: #c62828;
    font-weight: 700;
    line-height: 1.4;
}

@media (max-width: 640px) {
    .b2b-order-stock-notice {
        padding: 15px 16px;
        border-radius: 12px;
    }
    .b2b-order-stock-notice__title {
        font-size: 16px;
    }
}


/* v45: усиление красного акцента для заказных товаров */
.woocommerce .b2b-order-stock-notice .b2b-order-stock-notice__title,
.woocommerce-cart .b2b-order-stock-notice .b2b-order-stock-notice__title,
.woocommerce-checkout .b2b-order-stock-notice .b2b-order-stock-notice__title {
    color: #c62828 !important;
}

.woocommerce div.product p.stock.available-on-backorder,
.woocommerce div.product .summary p.stock.available-on-backorder,
.single-product div.product p.stock.available-on-backorder,
.single-product .summary p.stock.available-on-backorder,
.single-product .summary .stock.available-on-backorder,
.woocommerce ul.products li.product .stock.available-on-backorder,
.b2b-shop-content .stock.available-on-backorder {
    color: #c62828 !important;
    font-weight: 800 !important;
}


/* v9: собственный статус наличия на карточке товара */
.single-product .b2b-product-purchase form.cart .stock,
.single-product .b2b-product-purchase form.cart p.stock,
.single-product .b2b-product-main-card form.cart .stock {
    display: none !important;
}

.b2b-product-live-stock {
    margin: 12px 0 18px;
    font-weight: 700;
    line-height: 1.4;
  min-height: 1.4em;
}

.b2b-product-live-stock.is-in-stock {
    color: inherit;
}

.b2b-product-live-stock.is-orderable {
    color: #c62828 !important;
}


/* v10: строка покупки — наличие слева, количество и кнопка справа */
.single-product .b2b-product-purchase .b2b-purchase-action-row {
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: 100%;
    gap: 12px;
}

.single-product .b2b-product-purchase .b2b-purchase-action-row .b2b-product-live-stock {
    flex: 0 1 auto;
    margin: 0 !important;
    white-space: nowrap;
}

.single-product .b2b-product-purchase .b2b-purchase-action-row .b2b-product-qty-label {
    flex: 0 0 auto;
    margin-left: auto;
    margin-bottom: 0;
    white-space: nowrap;
}

.single-product .b2b-product-purchase .b2b-purchase-action-row .quantity,
.single-product .b2b-product-purchase .b2b-purchase-action-row .single_add_to_cart_button {
    flex: 0 0 auto;
}

@media (max-width: 680px) {
    .single-product .b2b-product-purchase .b2b-purchase-action-row {
        flex-wrap: wrap !important;
        align-items: center !important;
    }

    .single-product .b2b-product-purchase .b2b-purchase-action-row .b2b-product-live-stock {
        flex: 0 0 100%;
        width: 100%;
    }

    .single-product .b2b-product-purchase .b2b-purchase-action-row .b2b-product-qty-label {
        margin-left: 0;
    }

    .single-product .b2b-product-purchase .b2b-purchase-action-row .single_add_to_cart_button {
        width: auto !important;
    }
}


/* v11: прижать блок количества и кнопки к правому краю */
.single-product .b2b-product-purchase,
.single-product .b2b-product-purchase form.cart,
.single-product .b2b-product-purchase .cart,
.single-product .b2b-product-purchase .woocommerce-variation-add-to-cart,
.single-product .b2b-product-purchase .variations_button,
.single-product .b2b-product-purchase .b2b-purchase-action-row {
    width: 100% !important;
}

.single-product .b2b-product-purchase .b2b-purchase-action-row {
    justify-content: flex-start !important;
}

.single-product .b2b-product-purchase .b2b-purchase-action-row .b2b-product-qty-label {
    margin-left: auto !important;
    padding-left: 12px;
}

@media (max-width: 680px) {
    .single-product .b2b-product-purchase .b2b-purchase-action-row {
        justify-content: flex-start !important;
    }

    .single-product .b2b-product-purchase .b2b-purchase-action-row .b2b-product-qty-label {
        margin-left: 0 !important;
        padding-left: 0;
    }
}


/* v12: реальное выравнивание строки покупки по краям карточки */
.single-product .b2b-product-purchase form.variations_form,
.single-product .b2b-product-purchase .variations_form,
.single-product .b2b-product-purchase .single_variation_wrap,
.single-product .b2b-product-purchase .woocommerce-variation-add-to-cart,
.single-product .b2b-product-purchase .variations_button,
.single-product .b2b-product-purchase form.cart,
.single-product .b2b-product-purchase .b2b-purchase-action-row {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
}

.single-product .b2b-product-purchase .single_variation_wrap {
    align-self: stretch !important;
}

.single-product .b2b-product-purchase .b2b-purchase-action-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

.single-product .b2b-product-purchase .b2b-purchase-action-row .b2b-product-live-stock {
    margin: 0 auto 0 0 !important;
    flex: 0 0 auto !important;
}

.single-product .b2b-product-purchase .b2b-purchase-action-row .b2b-product-qty-label {
    margin-left: 0 !important;
    padding-left: 0 !important;
    flex: 0 0 auto !important;
}

@media (max-width: 680px) {
    .single-product .b2b-product-purchase .b2b-purchase-action-row {
        flex-wrap: wrap !important;
    }

    .single-product .b2b-product-purchase .b2b-purchase-action-row .b2b-product-live-stock {
        flex: 0 0 100% !important;
        width: 100% !important;
        margin: 0 0 8px 0 !important;
    }
}


/* v13: единый фон для всей строки заголовка корзины */
.woocommerce-cart table.shop_table.cart thead th,
.woocommerce table.shop_table.cart thead th,
.woocommerce-page table.shop_table.cart thead th,
.woocommerce-cart-form__contents thead th {
    background: #e3e6ea !important;
}


/* v14: сплошной фон шапки таблицы корзины, включая пустые ячейки */
.woocommerce-cart .woocommerce-cart-form table.shop_table.cart thead,
.woocommerce-cart .woocommerce-cart-form table.shop_table.cart thead tr,
.woocommerce-cart .woocommerce-cart-form table.shop_table.cart thead th,
.woocommerce-cart table.shop_table.cart thead,
.woocommerce-cart table.shop_table.cart thead tr,
.woocommerce-cart table.shop_table.cart thead th {
    background-color: #e3e6ea !important;
    background-image: none !important;
}


/* v26: white cart table header */
.woocommerce-cart table.shop_table.cart thead,
.woocommerce-cart table.shop_table.cart thead tr,
.woocommerce-cart table.shop_table.cart thead th,
.woocommerce-cart-form__contents thead th {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
}


/* v35: simple products — hide WooCommerce duplicate stock text; keep custom B2B status */
.single-product .product-type-simple .b2b-product-purchase > p.stock,
.single-product .product-type-simple .b2b-product-purchase > .stock,
.single-product .product-type-simple .b2b-product-purchase .cart + p.stock {
    display: none !important;
}


/* v36: recursive product-category sidebar */
.b2b-shop-cat-item.is-open > .b2b-shop-subcats {
    display: block;
}

/* A closed nested branch must remain closed even when one of its ancestors is open. */
.b2b-shop-cat-item:not(.is-open) > .b2b-shop-subcats {
    display: none !important;
}

/* Nested category buttons use the compact subcategory appearance. */
.b2b-shop-subcats > .b2b-shop-cat-item > .b2b-shop-cat-link {
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 8px;
    font-size: 14px;
}

.b2b-shop-subcats > .b2b-shop-cat-item.has-children > .b2b-shop-cat-link {
    padding-left: 32px;
}

/* Each deeper level is visually indented but keeps the same interaction. */
.b2b-shop-subcats .b2b-shop-subcats {
    margin-top: 8px;
    margin-left: 6px;
    padding-left: 12px;
    border-left-width: 1px;
}

.b2b-shop-subcats .b2b-shop-cat-item + .b2b-shop-cat-item {
    margin-top: 8px;
}


/* v37: icons for top-level shop categories */
.b2b-shop-cat-link > .b2b-shop-cat-label {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
    flex: 1 1 auto;
}

.b2b-shop-cat-link .b2b-shop-cat-name {
    min-width: 0;
}

.b2b-shop-cat-item[data-depth="0"] > .b2b-shop-cat-link .b2b-shop-cat-icon {
    display: block;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 6px;
}

/* Nested categories intentionally remain text-only. */
.b2b-shop-cat-item:not([data-depth="0"]) .b2b-shop-cat-icon {
    display: none !important;
}
\n\n/* v38: sidebar product-tag filter used as \"Тип датчика\" */\n.b2b-shop-sensor-box {\n  margin-top: 20px;\n}\n\n.b2b-shop-sensor-box__title {\n  margin: 0 0 12px;\n  color: var(--text);\n  font-size: var(--fs-18);\n  font-weight: 800;\n  line-height: 1.2;\n}\n\n.b2b-shop-sensor-tags {\n  display: flex;\n  flex-direction: column;\n  gap: 8px;\n}\n\n.b2b-shop-sensor-tag {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  gap: 12px;\n  width: 100%;\n  min-height: 42px;\n  padding: 9px 12px;\n  border: 1px solid #e1e1e1;\n  border-radius: 10px;\n  background: #f7f7f7;\n  color: #2c2c2c;\n  text-decoration: none;\n  font-size: 14px;\n  line-height: 1.25;\n  transition: .18s ease;\n}\n\n.b2b-shop-sensor-tag:hover {\n  border-color: #d75a60;\n  background: #fff7f7;\n  color: #b11f24;\n}\n\n.b2b-shop-sensor-tag strong {\n  flex: 0 0 auto;\n  color: #b11f24;\n  font-size: 12px;\n  font-weight: 800;\n}\n\n.b2b-shop-sensor-tag.is-active {\n  border-color: #d62d36;\n  background: #fff3f3;\n  color: #b11f24;\n  font-weight: 700;\n}\n\n@media (max-width: 980px) {\n  .b2b-shop-sensor-box {\n    margin-top: 16px;\n  }\n}\n

/* v39: move sensor-tag filter inside category submenu and style it like menu items */
.b2b-shop-sensor-box {
  display: none !important;
}

.b2b-shop-sensor-inline {
  list-style: none;
}

.b2b-shop-sensor-inline__title {
  margin: 2px 0 8px;
  padding: 0 2px;
  color: #17315f;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.b2b-shop-sensor-inline__tags {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.b2b-shop-sensor-inline__tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fbfbfb;
  color: #4a4a4a;
  text-decoration: none;
  border: 1px solid #ececec;
  font-size: 14px;
  line-height: 1.25;
  transition: .2s ease;
}

.b2b-shop-sensor-inline__tag:hover {
  background: #fff5f5;
  border-color: #d9b1b3;
  color: #b11f24;
}

.b2b-shop-sensor-inline__tag strong {
  color: #b11f24;
  font-size: 12px;
  font-weight: 800;
  flex: 0 0 auto;
}

.b2b-shop-sensor-inline__tag.is-active {
  background: #fff5f5;
  border-color: #b11f24;
  color: #b11f24;
  font-weight: 700;
}

.b2b-shop-sensor-inline__tag span {
  flex: 1 1 auto;
  min-width: 0;
}


/* v40: top toolbar filter button with dropdown list of sensor tags */
.b2b-shop-toolbar-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.b2b-shop-filter-dropdown {
    position: relative;
    flex: 0 0 auto;
}

.b2b-shop-filter-toggle {
    position: relative;
    min-width: 60px;
}

.b2b-shop-filter-toggle__badge {
    position: absolute;
    top: 7px;
    right: 7px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #d62d36;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
}

.b2b-shop-toolbar .b2b-shop-searchbar {
    width: 100%;
}

.b2b-shop-toolbar .b2b-shop-searchform {
    max-width: 640px;
}

.b2b-shop-filter-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 40;
    width: 320px;
    max-width: min(86vw, 320px);
    padding: 16px;
    border: 1px solid #d7d7d7;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 28px rgba(19, 33, 61, .12);
}

.b2b-shop-filter-panel__title {
    margin: 0 0 12px;
    color: #17315f;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.b2b-shop-filter-panel__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 380px;
    overflow: auto;
}

.b2b-shop-filter-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #ececec;
    border-radius: 10px;
    background: #f7f7f7;
    color: #2c2c2c;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.25;
    transition: .18s ease;
}

.b2b-shop-filter-option:hover {
    background: #fff5f5;
    border-color: #d9b1b3;
    color: #b11f24;
}

.b2b-shop-filter-option.is-active {
    background: #fff5f5;
    border-color: #b11f24;
    color: #b11f24;
    font-weight: 700;
}

.b2b-shop-filter-option strong {
    color: #b11f24;
    font-size: 12px;
    font-weight: 800;
    flex: 0 0 auto;
}

.b2b-shop-filter-option span {
    flex: 1 1 auto;
    min-width: 0;
}

@media (max-width: 1180px) {
    .b2b-shop-toolbar-main {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .b2b-shop-toolbar .b2b-shop-searchform {
        max-width: 100%;
    }
}

@media (max-width: 720px) {
    .b2b-shop-toolbar-main {
        grid-template-columns: 1fr;
    }

    .b2b-shop-filter-panel {
        left: 0;
        right: auto;
        width: min(100%, 340px);
    }
}


/* v41: filter panel matches right view-switch panel; apply/reset workflow */
.b2b-shop-filter-buttonpanel {
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #d7d7d7;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.b2b-shop-filter-buttonpanel .b2b-shop-filter-toggle {
    min-width: 60px;
    width: 60px;
    height: 54px;
    padding: 0 10px !important;
}

.b2b-shop-filter-option {
    width: 100%;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.b2b-shop-filter-option__check {
    position: relative;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    border: 1px solid #cfd6df;
    border-radius: 5px;
    background: #fff;
}

.b2b-shop-filter-option.is-active .b2b-shop-filter-option__check {
    border-color: #c61f2a;
    background: #c61f2a;
}

.b2b-shop-filter-option.is-active .b2b-shop-filter-option__check::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.b2b-shop-filter-option__name {
    flex: 1 1 auto;
    min-width: 0;
}

.b2b-shop-filter-panel__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e6e9ee;
}

.b2b-shop-filter-panel__actions button {
    min-height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: .18s ease;
}

.b2b-shop-filter-reset {
    border: 1px solid #d7dde5;
    background: #fff;
    color: #526071;
}

.b2b-shop-filter-reset:hover {
    border-color: #b9c2cd;
    background: #f5f7f9;
    color: #273444;
}

.b2b-shop-filter-apply {
    border: 1px solid #c61f2a;
    background: #c61f2a;
    color: #fff;
}

.b2b-shop-filter-apply:hover {
    border-color: #a91922;
    background: #a91922;
}

@media (max-width: 1180px) {
    .b2b-shop-filter-buttonpanel {
        padding: 16px;
    }
}


/* v42: align filter panel height with toolbar and fix dropdown option layout */
.b2b-shop-filter-buttonpanel,
.b2b-shop-viewpanel {
    min-height: 90px;
    box-sizing: border-box;
}

.b2b-shop-filter-buttonpanel {
    padding: 17px 20px;
}

.b2b-shop-filter-buttonpanel .b2b-shop-filter-toggle {
    width: 52px;
    min-width: 52px;
    height: 52px;
    min-height: 52px;
    border-radius: 16px !important;
}

.b2b-shop-filter-panel {
    width: 360px;
    max-width: min(88vw, 360px);
}

.b2b-shop-filter-panel__list {
    gap: 10px;
}

.b2b-shop-filter-option {
    justify-content: flex-start !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 11px 12px !important;
    color: #273444 !important;
}

.b2b-shop-filter-option:hover {
    color: #b11f24 !important;
}

.b2b-shop-filter-option.is-active {
    color: #b11f24 !important;
}

.b2b-shop-filter-option__check {
    flex: 0 0 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    width: 18px !important;
    height: 18px !important;
    margin-top: 1px;
}

.b2b-shop-filter-option__name {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    color: inherit !important;
    line-height: 1.3;
}

.b2b-shop-filter-option strong {
    margin-left: auto;
    flex: 0 0 auto;
    padding-left: 8px;
}

.b2b-shop-filter-panel__actions {
    grid-template-columns: 1fr 1fr;
}

.b2b-shop-filter-panel__actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.b2b-shop-filter-reset {
    color: #526071 !important;
}

.b2b-shop-filter-apply {
    color: #fff !important;
}

@media (max-width: 720px) {
    .b2b-shop-filter-buttonpanel,
    .b2b-shop-viewpanel {
        min-height: auto;
    }

    .b2b-shop-filter-panel {
        width: min(92vw, 360px);
    }
}


/* v43: exact equal height for filter, search and view toolbar panels */
.b2b-shop-toolbar-main {
    align-items: stretch !important;
}

.b2b-shop-filter-buttonpanel,
.b2b-shop-toolbar .b2b-shop-searchbar,
.b2b-shop-viewpanel {
    height: 90px !important;
    min-height: 90px !important;
    box-sizing: border-box !important;
}

.b2b-shop-toolbar .b2b-shop-searchbar {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 0 !important;
}

.b2b-shop-toolbar .b2b-shop-searchform {
    width: 100% !important;
    align-items: center !important;
}

@media (max-width: 720px) {
    .b2b-shop-filter-buttonpanel,
    .b2b-shop-toolbar .b2b-shop-searchbar,
    .b2b-shop-viewpanel {
        height: auto !important;
        min-height: 0 !important;
    }
}


/* v44: sensor filter only in Relay branch; restore old search width when hidden */
.b2b-shop-toolbar-main.no-filter {
    grid-template-columns: minmax(0, 1fr) !important;
}

.b2b-shop-toolbar-main.no-filter .b2b-shop-searchform {
    max-width: 760px !important;
}

.b2b-shop-toolbar-main.has-filter .b2b-shop-searchform {
    max-width: 640px !important;
}

@media (max-width: 1180px) {
    .b2b-shop-toolbar-main.no-filter .b2b-shop-searchform,
    .b2b-shop-toolbar-main.has-filter .b2b-shop-searchform {
        max-width: 100% !important;
    }
}


/* v45: smart live counts in sensor filter */
.b2b-shop-filter-panel.is-loading-counts .b2b-shop-filter-option strong[data-count],
.b2b-shop-filter-panel.is-loading-counts .b2b-shop-filter-apply {
    opacity: .55;
}

.b2b-shop-filter-option strong[data-count],
.b2b-shop-filter-apply {
    transition: opacity .15s ease;
}


/* v49: styled breadcrumbs on single product page */
.single-product .b2b-product-breadcrumbs-wrap {
  margin: 0 0 18px;
  padding: 14px 18px;
  border: 1px solid #e6ebf1;
  border-radius: 14px;
  background: #f7f9fc;
}

.single-product .b2b-product-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: #6c7a90;
  font-size: 14px;
  line-height: 1.45;
}

.single-product .b2b-product-breadcrumbs a {
  color: #22314a;
  text-decoration: none;
  transition: color .18s ease;
}

.single-product .b2b-product-breadcrumbs a:hover {
  color: #c9212b;
}

.single-product .b2b-product-breadcrumbs .b2b-breadcrumb-sep {
  color: #a5adb8;
  font-weight: 600;
}

.single-product .b2b-product-breadcrumbs .b2b-breadcrumb-item:last-child {
  color: #c9212b;
  font-weight: 700;
}

@media (max-width: 767px) {
  .single-product .b2b-product-breadcrumbs-wrap {
    margin-bottom: 14px;
    padding: 12px 14px;
  }

  .single-product .b2b-product-breadcrumbs {
    font-size: 13px;
    gap: 4px;
  }
}


/* v50: center sensor filter as modal with dark overlay */
body.b2b-filter-modal-open {
  overflow: hidden;
}

.b2b-shop-filter-overlay {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(17, 25, 39, .42);
  backdrop-filter: blur(1px);
}

.b2b-shop-filter-panel {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%);
  z-index: 999 !important;
  width: min(420px, calc(100vw - 32px)) !important;
  max-width: calc(100vw - 32px) !important;
  max-height: min(78vh, 640px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.b2b-shop-filter-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.b2b-shop-filter-panel__title {
  margin: 0 !important;
}

.b2b-shop-filter-panel__close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid #d7dde5;
  border-radius: 10px;
  background: #fff;
  color: #516071;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: .18s ease;
}

.b2b-shop-filter-panel__close:hover {
  border-color: #c61f2a;
  color: #c61f2a;
  background: #fff5f5;
}

.b2b-shop-filter-panel__list {
  flex: 1 1 auto;
  overflow: auto;
  padding-right: 2px;
}

@media (max-width: 720px) {
  .b2b-shop-filter-panel {
    width: min(420px, calc(100vw - 20px)) !important;
    max-width: calc(100vw - 20px) !important;
    max-height: 84vh;
    padding: 14px;
  }
}


/* v51: modal visibility hard-fix + visible close button */
.b2b-shop-filter-panel[hidden],
.b2b-shop-filter-overlay[hidden] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.b2b-shop-filter-dropdown.is-open .b2b-shop-filter-overlay:not([hidden]) {
  display: block !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.b2b-shop-filter-dropdown.is-open .b2b-shop-filter-panel:not([hidden]) {
  display: flex !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.b2b-shop-filter-panel__close {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #c61f2a !important;
  background: #fff5f5 !important;
  border: 1px solid #c61f2a !important;
}

.b2b-shop-filter-panel__close svg {
  display: block;
  width: 18px;
  height: 18px;
}

.b2b-shop-filter-panel__close:hover {
  color: #fff !important;
  background: #c61f2a !important;
  border-color: #c61f2a !important;
}


/* v52: guaranteed visible close symbol in filter modal */
.b2b-shop-filter-panel__close {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  background: #c61f2a !important;
  border: 1px solid #c61f2a !important;
  color: #fff !important;
  border-radius: 10px !important;
  font-size: 0 !important;
}

.b2b-shop-filter-panel__close span {
  display: block !important;
  color: #fff !important;
  font-size: 30px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  transform: translateY(-1px);
}

.b2b-shop-filter-panel__close:hover {
  background: #a91922 !important;
  border-color: #a91922 !important;
  color: #fff !important;
}


/* v53: toolbar styled like provided mockup with filter icon asset */
.b2b-shop-toolbar-main {
  align-items: stretch !important;
}

.b2b-shop-filter-buttonpanel,
.b2b-shop-toolbar .b2b-shop-searchbar,
.b2b-shop-viewpanel {
  height: 106px !important;
  min-height: 106px !important;
  border-radius: 16px !important;
}

.b2b-shop-filter-buttonpanel,
.b2b-shop-viewpanel {
  padding: 10px 14px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 8px;
}

.b2b-shop-filter-buttonpanel__title,
.b2b-shop-viewpanel__title {
  width: 100%;
  margin: 0;
  color: #2f2f36;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
}

.b2b-shop-filter-buttonpanel {
  min-width: 116px;
}

.b2b-shop-filter-dropdown {
  width: 100%;
  display: flex;
  justify-content: center;
}

.b2b-shop-filter-buttonpanel .b2b-shop-filter-toggle,
.b2b-shop-viewpanel .b2b-view-toggle__btn {
  width: 52px !important;
  min-width: 52px !important;
  height: 52px !important;
  min-height: 52px !important;
  border-radius: 16px !important;
}

.b2b-shop-filter-toggle__iconimg {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.b2b-shop-filter-toggle__iconimg img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: grayscale(1) brightness(0.55);
}

.b2b-shop-filter-toggle.is-active .b2b-shop-filter-toggle__iconimg img,
.b2b-shop-filter-toggle:hover .b2b-shop-filter-toggle__iconimg img {
  filter: none;
}

.b2b-shop-toolbar .b2b-shop-searchbar {
  padding: 18px 18px !important;
}

.b2b-shop-toolbar .b2b-shop-searchform {
  position: relative;
  max-width: none !important;
  width: 100% !important;
  gap: 14px;
}

.b2b-shop-searchform__icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  color: #1a1a1a;
  pointer-events: none;
  z-index: 2;
}

.b2b-shop-searchform__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.b2b-shop-searchbar form.b2b-shop-searchform input[type="search"] {
  padding-left: 52px !important;
  border-radius: 14px !important;
}

.b2b-shop-viewpanel {
  align-items: center !important;
}

.b2b-shop-viewpanel .b2b-view-toggle--inline {
  min-width: 116px;
}

.b2b-shop-viewpanel .b2b-view-toggle__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 720px) {
  .b2b-shop-filter-buttonpanel,
  .b2b-shop-toolbar .b2b-shop-searchbar,
  .b2b-shop-viewpanel {
    height: auto !important;
    min-height: 0 !important;
  }

  .b2b-shop-filter-buttonpanel,
  .b2b-shop-viewpanel {
    align-items: center;
  }
}


/* v54: configurable icon support and perfectly equal toolbar control heights */
:root {
  --b2b-toolbar-panel-height: 106px;
  --b2b-toolbar-control-height: 52px;
  --b2b-toolbar-radius-lg: 16px;
  --b2b-toolbar-radius-md: 14px;
}

.b2b-shop-filter-buttonpanel,
.b2b-shop-toolbar .b2b-shop-searchbar,
.b2b-shop-viewpanel {
  height: var(--b2b-toolbar-panel-height) !important;
  min-height: var(--b2b-toolbar-panel-height) !important;
  border-radius: var(--b2b-toolbar-radius-lg) !important;
}

.b2b-shop-filter-buttonpanel .b2b-shop-filter-toggle,
.b2b-shop-viewpanel .b2b-view-toggle__btn,
.b2b-shop-searchbar form.b2b-shop-searchform input[type="search"],
.b2b-shop-searchbar form.b2b-shop-searchform button[type="submit"] {
  height: var(--b2b-toolbar-control-height) !important;
  min-height: var(--b2b-toolbar-control-height) !important;
  box-sizing: border-box !important;
}

.b2b-shop-filter-buttonpanel .b2b-shop-filter-toggle,
.b2b-shop-viewpanel .b2b-view-toggle__btn {
  width: var(--b2b-toolbar-control-height) !important;
  min-width: var(--b2b-toolbar-control-height) !important;
}

.b2b-shop-searchbar form.b2b-shop-searchform input[type="search"] {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-radius: var(--b2b-toolbar-radius-md) !important;
}

.b2b-shop-searchbar form.b2b-shop-searchform button[type="submit"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-radius: var(--b2b-toolbar-radius-md) !important;
  white-space: nowrap;
}

.b2b-shop-filter-buttonpanel .b2b-shop-filter-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.b2b-shop-toolbar .b2b-shop-searchform {
  align-items: center !important;
}

@media (max-width: 720px) {
  :root {
    --b2b-toolbar-panel-height: auto;
  }
}


/* v55: add search title and align search row controls on one baseline */
.b2b-shop-toolbar .b2b-shop-searchbar {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 10px;
}

.b2b-shop-searchbar__title {
  width: 100%;
  margin: 0;
  color: #2f2f36;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
}

.b2b-shop-toolbar .b2b-shop-searchform {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center !important;
  column-gap: 14px;
  row-gap: 0;
  margin: 0;
}

.b2b-shop-searchbar form.b2b-shop-searchform input[type="search"],
.b2b-shop-searchbar form.b2b-shop-searchform button[type="submit"] {
  align-self: center !important;
  margin: 0 !important;
}

.b2b-shop-searchbar form.b2b-shop-searchform button[type="submit"] {
  min-width: 102px;
}

@media (max-width: 720px) {
  .b2b-shop-toolbar .b2b-shop-searchform {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 10px;
  }

  .b2b-shop-searchbar form.b2b-shop-searchform button[type="submit"] {
    width: 100%;
  }
}


/* v57: force search row to occupy full width of middle panel */
.b2b-shop-toolbar .b2b-shop-searchbar {
  width: 100% !important;
}

.b2b-shop-toolbar .b2b-shop-searchform {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  justify-self: stretch !important;
  align-self: center !important;
  grid-template-columns: minmax(0, 1fr) 102px !important;
}

.b2b-shop-searchbar form.b2b-shop-searchform input[type="search"] {
  width: 100% !important;
  min-width: 0 !important;
}

.b2b-shop-searchbar form.b2b-shop-searchform button[type="submit"] {
  width: 102px !important;
  min-width: 102px !important;
}

@media (max-width: 720px) {
  .b2b-shop-toolbar .b2b-shop-searchform {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .b2b-shop-searchbar form.b2b-shop-searchform button[type="submit"] {
    width: 100% !important;
  }
}


/* v59: keep search card fixed; move only its inner title + form upward */
.b2b-shop-toolbar .b2b-shop-searchbar {
  transform: none !important;
}

.b2b-shop-toolbar .b2b-shop-searchbar__title,
.b2b-shop-toolbar .b2b-shop-searchform {
  transform: translateY(-5px);
}

@media (max-width: 720px) {
  .b2b-shop-toolbar .b2b-shop-searchbar__title,
  .b2b-shop-toolbar .b2b-shop-searchform {
    transform: none;
  }
}


/* v60: move only search card inner content a bit higher */
.b2b-shop-toolbar .b2b-shop-searchbar__title,
.b2b-shop-toolbar .b2b-shop-searchform {
  transform: translateY(-10px) !important;
}

@media (max-width: 720px) {
  .b2b-shop-toolbar .b2b-shop-searchbar__title,
  .b2b-shop-toolbar .b2b-shop-searchform {
    transform: none !important;
  }
}


/* v62: fix WooCommerce password visibility control on login/register/account forms */
.woocommerce-account form .password-input,
.woocommerce-account .woocommerce-form-login .password-input,
.woocommerce-account .woocommerce-form-register .password-input {
  position: relative !important;
  display: block !important;
  width: 100% !important;
}

.woocommerce-account form .password-input input[type="password"],
.woocommerce-account form .password-input input[type="text"],
.woocommerce-account .woocommerce-form-login .password-input input,
.woocommerce-account .woocommerce-form-register .password-input input {
  width: 100% !important;
  padding-right: 54px !important;
}

.woocommerce-account form .password-input .show-password-input,
.woocommerce-account form .password-input button.show-password-input,
.woocommerce-account .woocommerce-form-login .show-password-input,
.woocommerce-account .woocommerce-form-register .show-password-input {
  position: absolute !important;
  top: 50% !important;
  right: 16px !important;
  left: auto !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  display: inline-block !important;
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #697586 !important;
  cursor: pointer !important;
  font-size: 0 !important;
  line-height: 1 !important;
  z-index: 3 !important;
}

/* Eye outline */
.woocommerce-account form .password-input .show-password-input::before,
.woocommerce-account form .password-input button.show-password-input::before,
.woocommerce-account .woocommerce-form-login .show-password-input::before,
.woocommerce-account .woocommerce-form-register .show-password-input::before {
  content: "" !important;
  position: absolute !important;
  left: 4px !important;
  top: 7px !important;
  width: 20px !important;
  height: 12px !important;
  border: 2px solid currentColor !important;
  border-radius: 50% / 60% !important;
  box-sizing: border-box !important;
  background: transparent !important;
  transform: none !important;
}

/* Eye pupil */
.woocommerce-account form .password-input .show-password-input::after,
.woocommerce-account form .password-input button.show-password-input::after,
.woocommerce-account .woocommerce-form-login .show-password-input::after,
.woocommerce-account .woocommerce-form-register .show-password-input::after {
  content: "" !important;
  position: absolute !important;
  left: 11px !important;
  top: 11px !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: currentColor !important;
  border: 0 !important;
  transform: none !important;
}

.woocommerce-account form .password-input .show-password-input:hover,
.woocommerce-account form .password-input button.show-password-input:hover,
.woocommerce-account .woocommerce-form-login .show-password-input:hover,
.woocommerce-account .woocommerce-form-register .show-password-input:hover {
  color: #c9212b !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: translateY(-50%) !important;
}


/* v62: fix password visibility toggle on My Account login/register forms */
.woocommerce-account .password-input {
  position: relative !important;
  display: block !important;
  width: 100% !important;
}

.woocommerce-account .password-input > input[type="password"],
.woocommerce-account .password-input > input[type="text"] {
  width: 100% !important;
  padding-right: 54px !important;
  box-sizing: border-box !important;
}

.woocommerce-account .password-input > .show-password-input,
.woocommerce-account .password-input > button.show-password-input {
  position: absolute !important;
  top: 50% !important;
  right: 10px !important;
  transform: translateY(-50%) !important;
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  background-color: transparent !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 22px 22px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3C/svg%3E") !important;
  color: transparent !important;
  font-size: 0 !important;
  box-shadow: none !important;
  cursor: pointer !important;
  z-index: 3 !important;
}

.woocommerce-account .password-input > .show-password-input::before,
.woocommerce-account .password-input > .show-password-input::after,
.woocommerce-account .password-input > button.show-password-input::before,
.woocommerce-account .password-input > button.show-password-input::after {
  content: none !important;
  display: none !important;
}

.woocommerce-account .password-input > .show-password-input:hover,
.woocommerce-account .password-input > button.show-password-input:hover {
  transform: translateY(-50%) !important;
  background-color: #f3f5f7 !important;
  box-shadow: none !important;
}

.woocommerce-account .password-input > .show-password-input.display-password,
.woocommerce-account .password-input > button.show-password-input.display-password {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18'/%3E%3Cpath d='M10.6 6.2A11.7 11.7 0 0 1 12 6c6.5 0 10 6 10 6a17.5 17.5 0 0 1-2.1 2.8'/%3E%3Cpath d='M6.7 6.7C3.7 8.5 2 12 2 12s3.5 6 10 6c1.5 0 2.8-.3 4-.8'/%3E%3C/svg%3E") !important;
}


/* v62: fix WooCommerce login/register password visibility toggle */
.woocommerce-account form.login .password-input,
.woocommerce-account form.register .password-input,
.woocommerce-account .woocommerce-form-login .password-input,
.woocommerce-account .woocommerce-form-register .password-input {
  position: relative !important;
  display: block !important;
  width: 100% !important;
}

.woocommerce-account form.login .password-input input,
.woocommerce-account form.register .password-input input,
.woocommerce-account .woocommerce-form-login .password-input input,
.woocommerce-account .woocommerce-form-register .password-input input {
  width: 100% !important;
  padding-right: 52px !important;
  box-sizing: border-box !important;
}

.woocommerce-account form.login .show-password-input,
.woocommerce-account form.login button.show-password-input,
.woocommerce-account form.register .show-password-input,
.woocommerce-account form.register button.show-password-input,
.woocommerce-account .woocommerce-form-login .show-password-input,
.woocommerce-account .woocommerce-form-login button.show-password-input,
.woocommerce-account .woocommerce-form-register .show-password-input,
.woocommerce-account .woocommerce-form-register button.show-password-input {
  position: absolute !important;
  top: 50% !important;
  right: 16px !important;
  left: auto !important;
  transform: translateY(-50%) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  min-width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #6b7280 !important;
  font-size: 0 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  z-index: 3 !important;
}

.woocommerce-account form.login .show-password-input::before,
.woocommerce-account form.login button.show-password-input::before,
.woocommerce-account form.register .show-password-input::before,
.woocommerce-account form.register button.show-password-input::before,
.woocommerce-account .woocommerce-form-login .show-password-input::before,
.woocommerce-account .woocommerce-form-login button.show-password-input::before,
.woocommerce-account .woocommerce-form-register .show-password-input::before,
.woocommerce-account .woocommerce-form-register button.show-password-input::before {
  content: "" !important;
  display: block !important;
  width: 18px !important;
  height: 12px !important;
  border: 2px solid currentColor !important;
  border-radius: 50% / 60% !important;
  box-sizing: border-box !important;
}

.woocommerce-account form.login .show-password-input::after,
.woocommerce-account form.login button.show-password-input::after,
.woocommerce-account form.register .show-password-input::after,
.woocommerce-account form.register button.show-password-input::after,
.woocommerce-account .woocommerce-form-login .show-password-input::after,
.woocommerce-account .woocommerce-form-login button.show-password-input::after,
.woocommerce-account .woocommerce-form-register .show-password-input::after,
.woocommerce-account .woocommerce-form-register button.show-password-input::after {
  content: "" !important;
  position: absolute !important;
  width: 4px !important;
  height: 4px !important;
  border-radius: 50% !important;
  background: currentColor !important;
}

.woocommerce-account form.login .show-password-input:hover,
.woocommerce-account form.login button.show-password-input:hover,
.woocommerce-account form.register .show-password-input:hover,
.woocommerce-account form.register button.show-password-input:hover,
.woocommerce-account .woocommerce-form-login .show-password-input:hover,
.woocommerce-account .woocommerce-form-login button.show-password-input:hover,
.woocommerce-account .woocommerce-form-register .show-password-input:hover,
.woocommerce-account .woocommerce-form-register button.show-password-input:hover {
  background: transparent !important;
  color: #c61f2a !important;
  transform: translateY(-50%) !important;
  box-shadow: none !important;
}


/* v62: fix show-password button on WooCommerce login/register/lost-password forms */
.woocommerce-account .woocommerce-form-login .password-input,
.woocommerce-account .woocommerce-form-register .password-input,
.woocommerce-account .woocommerce-ResetPassword .password-input,
.woocommerce-account form.login .password-input,
.woocommerce-account form.register .password-input,
.woocommerce-account form.lost_reset_password .password-input {
  position: relative;
  display: block;
  width: 100%;
}

.woocommerce-account .woocommerce-form-login .password-input input,
.woocommerce-account .woocommerce-form-register .password-input input,
.woocommerce-account .woocommerce-ResetPassword .password-input input,
.woocommerce-account form.login .password-input input,
.woocommerce-account form.register .password-input input,
.woocommerce-account form.lost_reset_password .password-input input {
  width: 100%;
  padding-right: 56px !important;
}

.woocommerce-account .woocommerce-form-login .show-password-input,
.woocommerce-account .woocommerce-form-login button.show-password-input,
.woocommerce-account .woocommerce-form-register .show-password-input,
.woocommerce-account .woocommerce-form-register button.show-password-input,
.woocommerce-account .woocommerce-ResetPassword .show-password-input,
.woocommerce-account .woocommerce-ResetPassword button.show-password-input,
.woocommerce-account form.login .show-password-input,
.woocommerce-account form.login button.show-password-input,
.woocommerce-account form.register .show-password-input,
.woocommerce-account form.register button.show-password-input,
.woocommerce-account form.lost_reset_password .show-password-input,
.woocommerce-account form.lost_reset_password button.show-password-input {
  position: absolute !important;
  top: 50% !important;
  right: 16px !important;
  transform: translateY(-50%) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #6b7280 !important;
  line-height: 1 !important;
}

.woocommerce-account .woocommerce-form-login .show-password-input:hover,
.woocommerce-account .woocommerce-form-login button.show-password-input:hover,
.woocommerce-account .woocommerce-form-register .show-password-input:hover,
.woocommerce-account .woocommerce-form-register button.show-password-input:hover,
.woocommerce-account .woocommerce-ResetPassword .show-password-input:hover,
.woocommerce-account .woocommerce-ResetPassword button.show-password-input:hover,
.woocommerce-account form.login .show-password-input:hover,
.woocommerce-account form.login button.show-password-input:hover,
.woocommerce-account form.register .show-password-input:hover,
.woocommerce-account form.register button.show-password-input:hover,
.woocommerce-account form.lost_reset_password .show-password-input:hover,
.woocommerce-account form.lost_reset_password button.show-password-input:hover {
  background: transparent !important;
  box-shadow: none !important;
  color: #1f2937 !important;
  transform: translateY(-50%) !important;
}

.woocommerce-account .woocommerce-form-login .show-password-input::after,
.woocommerce-account .woocommerce-form-login button.show-password-input::after,
.woocommerce-account .woocommerce-form-register .show-password-input::after,
.woocommerce-account .woocommerce-form-register button.show-password-input::after,
.woocommerce-account .woocommerce-ResetPassword .show-password-input::after,
.woocommerce-account .woocommerce-ResetPassword button.show-password-input::after,
.woocommerce-account form.login .show-password-input::after,
.woocommerce-account form.login button.show-password-input::after,
.woocommerce-account form.register .show-password-input::after,
.woocommerce-account form.register button.show-password-input::after,
.woocommerce-account form.lost_reset_password .show-password-input::after,
.woocommerce-account form.lost_reset_password button.show-password-input::after {
  font-size: 18px !important;
  line-height: 1 !important;
}


/* v63: allow long sensor names to wrap cleanly inside filter modal */
.b2b-shop-filter-panel {
  width: min(520px, calc(100vw - 32px)) !important;
  max-width: calc(100vw - 32px) !important;
}

.b2b-shop-filter-option {
  min-height: 0 !important;
  height: auto !important;
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr) auto !important;
  align-items: start !important;
  column-gap: 10px !important;
  padding: 11px 12px !important;
  white-space: normal !important;
  overflow: visible !important;
}

.b2b-shop-filter-option__check {
  grid-column: 1;
  align-self: start;
  margin-top: 2px !important;
}

.b2b-shop-filter-option__name {
  grid-column: 2;
  min-width: 0 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
  line-height: 1.28 !important;
}

.b2b-shop-filter-option strong[data-count] {
  grid-column: 3;
  align-self: start;
  margin: 1px 0 0 !important;
  padding-left: 8px !important;
  white-space: nowrap !important;
}

@media (max-width: 720px) {
  .b2b-shop-filter-panel {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
  }
}


/* v64: hard-fix variable-height filter rows; never clip long names */
.b2b-shop-filter-panel__list {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

.b2b-shop-filter-panel .b2b-shop-filter-option {
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr) auto !important;
  grid-auto-rows: auto !important;
  align-items: start !important;
  align-content: start !important;
  column-gap: 10px !important;
  row-gap: 0 !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  block-size: auto !important;
  min-block-size: 0 !important;
  max-block-size: none !important;
  padding: 12px 12px !important;
  box-sizing: border-box !important;
  white-space: normal !important;
  overflow: visible !important;
  line-height: normal !important;
}

.b2b-shop-filter-panel .b2b-shop-filter-option__check {
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-self: start !important;
  margin-top: 1px !important;
}

.b2b-shop-filter-panel .b2b-shop-filter-option__name {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  line-height: 1.35 !important;
}

.b2b-shop-filter-panel .b2b-shop-filter-option strong[data-count] {
  grid-column: 3 !important;
  grid-row: 1 !important;
  align-self: start !important;
  margin: 1px 0 0 !important;
  padding-left: 8px !important;
  white-space: nowrap !important;
  line-height: 1.35 !important;
}


/* v65: prevent flex list from vertically shrinking multi-line filter rows */
.b2b-shop-filter-panel__list {
  min-height: 0 !important;
  overflow-y: auto !important;
}

.b2b-shop-filter-panel .b2b-shop-filter-option {
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  min-height: max-content !important;
  height: auto !important;
  overflow: visible !important;
}

.b2b-shop-filter-panel .b2b-shop-filter-option__name {
  flex: none !important;
  height: auto !important;
  overflow: visible !important;
}


/* v66: live AJAX product search dropdown */
.b2b-shop-searchform {
  position: relative !important;
}

.b2b-live-search[hidden] {
  display: none !important;
}

.b2b-live-search {
  position: absolute;
  z-index: 120;
  top: calc(100% + 8px);
  left: 0;
  width: calc(100% - 116px);
  min-width: 320px;
  max-height: 520px;
  overflow: hidden;
  border: 1px solid #d8dee7;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(25, 36, 56, .16);
}

.b2b-live-search__list {
  max-height: 520px;
  overflow-y: auto;
  padding: 7px;
}

.b2b-live-search__item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 70px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #1d2b44;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}

.b2b-live-search__item + .b2b-live-search__item {
  border-top: 1px solid #edf0f4;
}

.b2b-live-search__item:hover,
.b2b-live-search__item.is-active {
  background: #fff5f5;
}

.b2b-live-search__image {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.b2b-live-search__image--empty {
  border: 1px solid #edf0f4;
}

.b2b-live-search__main {
  min-width: 0;
}

.b2b-live-search__title {
  display: block;
  color: #1d2b44;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 700;
}

.b2b-live-search__sku {
  margin-top: 4px;
  color: #7a8798;
  font-size: 12px;
  line-height: 1.25;
}

.b2b-live-search__price,
.b2b-live-search__price * {
  color: #c9212b !important;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.b2b-live-search__loading,
.b2b-live-search__empty {
  padding: 16px;
  color: #697789;
  font-size: 14px;
  text-align: center;
}

@media (max-width: 720px) {
  .b2b-live-search {
    width: 100%;
    min-width: 0;
  }

  .b2b-live-search__item {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .b2b-live-search__image {
    width: 46px;
    height: 46px;
  }

  .b2b-live-search__price {
    grid-column: 2;
    justify-self: start;
  }
}


/* v67: product-tag icons over product image */
.b2b-shop-content ul.products li.product .b2b-product-card-media {
  position: relative;
  width: 100%;
}

.b2b-shop-content ul.products li.product .b2b-product-card-media > img,
.b2b-shop-content ul.products li.product .b2b-product-card-media > a > img {
  width: 100%;
}

.b2b-product-tag-icons {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 20px);
  pointer-events: none;
}

.b2b-product-tag-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 4px;
  border: 1px solid rgba(215, 221, 229, .95);
  border-radius: 9px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 2px 8px rgba(19,33,61,.10);
  box-sizing: border-box;
}

.b2b-product-tag-icon img {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  background: transparent !important;
}

/* Keep icon overlay compact in list view too. */
.b2b-shop-content.b2b-shop-view-list .b2b-product-tag-icons {
  top: 5px;
  left: 5px;
  gap: 4px;
}

.b2b-shop-content.b2b-shop-view-list .b2b-product-tag-icon {
  width: 26px;
  height: 26px;
  padding: 3px;
  border-radius: 7px;
}


/* v68: keep product tag icons safely inside the image/card top edge */
.b2b-product-tag-icons {
  top: 18px !important;
  left: 12px !important;
}

.b2b-shop-content.b2b-shop-view-list .b2b-product-tag-icons {
  top: 8px !important;
  left: 8px !important;
}


/* v69: lift tag icon row closer to card edge and center icon image inside its tile */
.b2b-product-tag-icons {
  top: 8px !important;
  left: 12px !important;
}

.b2b-product-tag-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.b2b-product-tag-icon img {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  margin: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
}

.b2b-shop-content.b2b-shop-view-list .b2b-product-tag-icons {
  top: 4px !important;
  left: 6px !important;
}

.b2b-shop-content.b2b-shop-view-list .b2b-product-tag-icon img {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
}


/* v70: move tag icon row closer to main card edge and hard-center icon inside tile */
.b2b-product-tag-icons {
  top: 4px !important;
  left: 8px !important;
}

.b2b-product-tag-icon {
  position: relative;
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  overflow: hidden;
}

.b2b-product-tag-icon img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  margin: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
}

.b2b-shop-content.b2b-shop-view-list .b2b-product-tag-icons {
  top: 3px !important;
  left: 6px !important;
}

.b2b-shop-content.b2b-shop-view-list .b2b-product-tag-icon {
  width: 28px !important;
  height: 28px !important;
}

.b2b-shop-content.b2b-shop-view-list .b2b-product-tag-icon img {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
}


/* v71: custom tooltip with product tag name on icon hover */
.b2b-product-tag-icons {
  pointer-events: auto !important;
}

.b2b-product-tag-icon {
  overflow: visible !important;
  cursor: help;
}

.b2b-product-tag-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translate(-50%, 4px);
  z-index: 50;
  max-width: 240px;
  width: max-content;
  padding: 7px 10px;
  border-radius: 8px;
  background: #1f2937;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  box-shadow: 0 6px 18px rgba(17,24,39,.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}

.b2b-product-tag-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 3px);
  transform: translateX(-50%);
  z-index: 51;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #1f2937;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .15s ease, visibility .15s ease;
}

.b2b-product-tag-icon:hover::after,
.b2b-product-tag-icon:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.b2b-product-tag-icon:hover::before,
.b2b-product-tag-icon:focus-visible::before {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 720px) {
  .b2b-product-tag-icon::after,
  .b2b-product-tag-icon::before {
    display: none;
  }
}


/* v72: show tag icons inside filter options */
.b2b-shop-filter-panel .b2b-shop-filter-option.has-icon {
  grid-template-columns: 18px 28px minmax(0, 1fr) auto !important;
  column-gap: 10px !important;
}

.b2b-shop-filter-panel .b2b-shop-filter-option.no-icon {
  grid-template-columns: 18px minmax(0, 1fr) auto !important;
}

.b2b-shop-filter-panel .b2b-shop-filter-option__icon {
  grid-column: 2 !important;
  grid-row: 1 !important;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid #e5eaf1;
  background: #ffffff;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: start !important;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.b2b-shop-filter-panel .b2b-shop-filter-option__icon img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
  object-position: center;
  margin: 0;
}

.b2b-shop-filter-panel .b2b-shop-filter-option.has-icon .b2b-shop-filter-option__name {
  grid-column: 3 !important;
}

.b2b-shop-filter-panel .b2b-shop-filter-option.has-icon strong[data-count] {
  grid-column: 4 !important;
}

.b2b-shop-filter-panel .b2b-shop-filter-option.no-icon .b2b-shop-filter-option__name {
  grid-column: 2 !important;
}

.b2b-shop-filter-panel .b2b-shop-filter-option.no-icon strong[data-count] {
  grid-column: 3 !important;
}


/* v73: keep live search dropdown above product cards */
.b2b-shop-toolbar {
  position: relative !important;
  z-index: 300 !important;
}

.b2b-shop-toolbar-main,
.b2b-shop-toolbar .b2b-shop-searchbar,
.b2b-shop-toolbar .b2b-shop-searchform {
  position: relative !important;
  z-index: 310 !important;
  overflow: visible !important;
}

.b2b-live-search {
  z-index: 900 !important;
}

.b2b-shop-content ul.products,
.b2b-shop-content ul.products li.product {
  position: relative;
  z-index: 1;
}


/* v76: fixed PCB side decoration without touching page/header layout */
@media (min-width: 1460px) {
  body::before,
  body::after {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    width: clamp(90px, calc((100vw - var(--container)) / 2 - 18px), 260px);
    pointer-events: none;
    opacity: .68;
    background-repeat: repeat-y;
    background-size: 260px 1100px;
  }

  body::before {
    left: 0;
    background-image: url('assets/pcb-side-left.svg');
    background-position: left top;
  }

  body::after {
    right: 0;
    background-image: url('assets/pcb-side-right.svg');
    background-position: right top;
  }
}

@media (min-width: 1900px) {
  body::before,
  body::after {
    opacity: .74;
  }
}


/* v78.3.21 compatibility: current header account element on old visual base */
.header-account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  font-weight: 500;
  line-height: 1;
  color: #66727f !important;
}
.header-account:hover { color: #4b5763 !important; }
.header-account__icon { display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;line-height:1; }
.header-account__icon svg { width:16px;height:16px;display:block; }


/* v77: keep header always above live search and place tag icons on single-product gallery side */
.site-header {
  z-index: 2200 !important;
}

.site-header__inner {
  position: relative;
  z-index: 2201;
}

.b2b-shop-toolbar,
.b2b-shop-toolbar-main,
.b2b-shop-toolbar .b2b-shop-searchbar,
.b2b-shop-toolbar .b2b-shop-searchform,
.b2b-live-search {
  z-index: auto;
}

.b2b-live-search {
  z-index: 1200 !important;
}

.single-product .b2b-product-gallery {
  position: relative;
  overflow: visible;
}

.single-product .b2b-product-gallery-side-icons {
  position: absolute;
  top: 0;
  left: -62px;
  z-index: 7;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: auto;
}

.single-product .b2b-product-gallery-side-icons .b2b-product-tag-icon {
  width: 44px !important;
  height: 44px !important;
  border-radius: 10px;
  border: 1px solid rgba(220, 59, 59, .55);
  background: rgba(255,255,255,.96);
  box-shadow: 0 4px 14px rgba(19,33,61,.10);
  overflow: visible !important;
}

.single-product .b2b-product-gallery-side-icons .b2b-product-tag-icon img {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
}

@media (max-width: 1200px) {
  .single-product .b2b-product-gallery-side-icons {
    left: 10px;
    top: 10px;
    flex-direction: row;
    flex-wrap: wrap;
  }
}


/* v78: modal filter must cover sticky header while header still stays above live search normally */
.b2b-shop-filter-overlay {
  z-index: 3000 !important;
}

.b2b-shop-filter-panel {
  z-index: 3001 !important;
}


/* v78.1: keep fullscreen product image viewer above sticky header */
.pswp,
.pswp--open {
  z-index: 99999 !important;
}


/* v78.2: when filter modal is open, lift its stacking context above sticky header */
body.b2b-filter-modal-open .b2b-shop-toolbar {
  position: relative !important;
  z-index: 5000 !important;
}

body.b2b-filter-modal-open .b2b-shop-filter-dropdown {
  position: relative !important;
  z-index: 5001 !important;
}

body.b2b-filter-modal-open .b2b-shop-filter-overlay {
  z-index: 5002 !important;
}

body.b2b-filter-modal-open .b2b-shop-filter-panel {
  z-index: 5003 !important;
}


/* v78.3: light/dark theme switch */
.theme-toggle {
  width: 46px;
  min-width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0 !important;
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.9) !important;
  color: var(--text) !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}
.theme-toggle span { display:inline-flex; width:20px; height:20px; align-items:center; justify-content:center; }
.theme-toggle svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.theme-toggle__sun { display:none !important; }
.theme-toggle__moon { display:inline-flex !important; }
html[data-theme="dark"] .theme-toggle__sun { display:inline-flex !important; }
html[data-theme="dark"] .theme-toggle__moon { display:none !important; }

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07111b;
  --surface: #0b1722;
  --surface-alt: #101d29;
  --surface-dark: #050b12;
  --text: #f2f5f8;
  --text-soft: #94a4b7;
  --line: #263646;
  --red: #ef2436;
  --red-dark: #c91d2d;
  --red-soft: rgba(239,36,54,.12);
  --shadow-sm: 0 10px 28px rgba(0,0,0,.28);
  --shadow-md: 0 22px 54px rgba(0,0,0,.42);
}

html[data-theme="dark"] body {
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(239,36,54,.08), transparent 22%),
    linear-gradient(180deg, #07111b 0%, #050c13 100%) !important;
}

html[data-theme="dark"] body::before,
html[data-theme="dark"] body::after { opacity:.38 !important; filter: brightness(.75) saturate(.9); }

html[data-theme="dark"] .site-header__inner,
html[data-theme="dark"] .card,
html[data-theme="dark"] .b2b-shop-box,
html[data-theme="dark"] .b2b-shop-filter-buttonpanel,
html[data-theme="dark"] .b2b-shop-searchbar,
html[data-theme="dark"] .b2b-shop-viewpanel,
html[data-theme="dark"] .b2b-shop-sort-box,
html[data-theme="dark"] .woocommerce-cart-form,
html[data-theme="dark"] .cart-collaterals .cart_totals,
html[data-theme="dark"] .woocommerce-checkout #order_review,
html[data-theme="dark"] .woocommerce-checkout .woocommerce-billing-fields,
html[data-theme="dark"] .woocommerce-checkout .woocommerce-additional-fields,
html[data-theme="dark"] .woocommerce-account .woocommerce,
html[data-theme="dark"] .woocommerce-tabs .panel {
  background: rgba(11,23,34,.94) !important;
  border-color: var(--line) !important;
  box-shadow: var(--shadow-sm) !important;
}

html[data-theme="dark"] .site-header__inner { backdrop-filter: blur(16px); }
html[data-theme="dark"] .site-logo img { filter: brightness(0) invert(1); }

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,
html[data-theme="dark"] .section-title,
html[data-theme="dark"] .card__title,
html[data-theme="dark"] .woocommerce-loop-product__title,
html[data-theme="dark"] .b2b-product-title,
html[data-theme="dark"] .b2b-shop-sort-box__title,
html[data-theme="dark"] .b2b-shop-filter-panel__title,
html[data-theme="dark"] .b2b-shop-filter-buttonpanel__title,
html[data-theme="dark"] .b2b-shop-searchbar__title,
html[data-theme="dark"] .b2b-shop-viewpanel__title { color:#f5f7fa !important; }

html[data-theme="dark"] .site-description,
html[data-theme="dark"] .card__text,
html[data-theme="dark"] .product_meta,
html[data-theme="dark"] .b2b-product-price-note,
html[data-theme="dark"] .woocommerce-result-count,
html[data-theme="dark"] .section-subtitle { color:var(--text-soft) !important; }

html[data-theme="dark"] .primary-menu a,
html[data-theme="dark"] .header-account,
html[data-theme="dark"] .header-cart,
html[data-theme="dark"] .header-phone,
html[data-theme="dark"] .woocommerce-breadcrumb,
html[data-theme="dark"] .b2b-product-breadcrumbs a { color:#dce4ec !important; }

html[data-theme="dark"] .header-phone,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .b2b-view-toggle__btn,
html[data-theme="dark"] .b2b-shop-filter-toggle {
  background:#0d1924 !important;
  border-color:#314252 !important;
  color:#dce4ec !important;
}
html[data-theme="dark"] .b2b-view-toggle__btn.is-active,
html[data-theme="dark"] .b2b-shop-filter-toggle.is-active { border-color:var(--red) !important; color:var(--red) !important; }

html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] input[type="tel"],
html[data-theme="dark"] input[type="password"],
html[data-theme="dark"] input[type="search"],
html[data-theme="dark"] input[type="number"],
html[data-theme="dark"] textarea,
html[data-theme="dark"] select,
html[data-theme="dark"] .b2b-shop-searchbar input[type="search"] {
  background:#08131d !important;
  border-color:#314252 !important;
  color:#f3f6f9 !important;
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color:#74869a !important; }

html[data-theme="dark"] .b2b-shop-cat-link,
html[data-theme="dark"] .b2b-shop-subcats a,
html[data-theme="dark"] .b2b-shop-filter-option,
html[data-theme="dark"] .b2b-shop-sensor-inline__tag,
html[data-theme="dark"] .woocommerce table.shop_table td,
html[data-theme="dark"] .woocommerce table.shop_table th {
  background:#0c1823 !important;
  border-color:#223444 !important;
  color:#dce5ed !important;
}
html[data-theme="dark"] .b2b-shop-cat-item.is-current > .b2b-shop-cat-link,
html[data-theme="dark"] .b2b-shop-subcats-all.is-current > a,
html[data-theme="dark"] .b2b-shop-filter-option.is-active {
  background:rgba(239,36,54,.13) !important;
  border-color:var(--red) !important;
  color:#fff !important;
}

html[data-theme="dark"] .b2b-shop-content ul.products li.product,
html[data-theme="dark"] .woocommerce ul.products li.product,
html[data-theme="dark"] .b2b-product-main-card,
html[data-theme="dark"] .b2b-product-gallery,
html[data-theme="dark"] .b2b-product-section,
html[data-theme="dark"] .b2b-product-b2b-card {
  background:#0a1621 !important;
  border-color:#243545 !important;
  box-shadow:0 12px 32px rgba(0,0,0,.25) !important;
}
html[data-theme="dark"] .b2b-product-card-media,
html[data-theme="dark"] .woocommerce div.product div.images img { background:#0d1924 !important; border-color:#263746 !important; }

html[data-theme="dark"] .b2b-product-tag-icon,
html[data-theme="dark"] .b2b-shop-filter-option__icon {
  background:#101d29 !important;
  border-color:#314252 !important;
}

html[data-theme="dark"] .b2b-live-search,
html[data-theme="dark"] .b2b-shop-filter-panel {
  background:#09151f !important;
  border-color:#2b3c4c !important;
  color:#f2f5f8 !important;
}
html[data-theme="dark"] .b2b-live-search__item,
html[data-theme="dark"] .b2b-live-search a { background:#0b1722 !important; border-color:#223444 !important; color:#f2f5f8 !important; }
html[data-theme="dark"] .b2b-live-search__item:hover,
html[data-theme="dark"] .b2b-live-search a:hover { background:#101f2d !important; }

html[data-theme="dark"] .b2b-product-breadcrumbs-wrap { background:#0b1722 !important; border-color:#243545 !important; }
html[data-theme="dark"] .b2b-product-breadcrumbs .b2b-breadcrumb-item:last-child { color:#ff4050 !important; }

html[data-theme="dark"] .woocommerce-message,
html[data-theme="dark"] .woocommerce-info,
html[data-theme="dark"] .woocommerce-error { background:#0c1823 !important; border-color:#2a3b4a !important; color:#e7edf3 !important; }

html[data-theme="dark"] .b2b-product-price-wrap,
html[data-theme="dark"] .b2b-product-order-total-inline { background:rgba(239,36,54,.06) !important; border-color:rgba(239,36,54,.35) !important; }

html[data-theme="dark"] .b2b-shop-filter-overlay { background:rgba(1,6,10,.72) !important; backdrop-filter:blur(2px); }

html[data-theme="dark"] .b2b-shop-filter-panel__close,
html[data-theme="dark"] .b2b-shop-filter-apply { background:var(--red) !important; border-color:var(--red) !important; }
html[data-theme="dark"] .b2b-shop-filter-reset { background:#0c1823 !important; border-color:#314252 !important; color:#dce5ed !important; }

@media (max-width: 760px) {
  .theme-toggle { width:42px; min-width:42px; height:42px; min-height:42px; }
}


/* v78.3.2: compact header phone, matching the experimental header style */
.rsmart-compact-phone.header-phone {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 5px 4px;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 750;
  gap: 6px;
}

.rsmart-compact-phone.header-phone:hover {
  color: var(--red);
}

.rsmart-compact-phone__icon,
.rsmart-compact-phone__icon svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.rsmart-compact-phone__icon svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html[data-theme="dark"] .rsmart-compact-phone.header-phone {
  background: transparent !important;
  border-color: transparent !important;
  color: var(--text-soft) !important;
}

html[data-theme="dark"] .rsmart-compact-phone.header-phone:hover {
  color: var(--red) !important;
}

@media (max-width: 768px) {
  .rsmart-compact-phone.header-phone {
    width: auto;
  }
}


/* v78.3.5: keep account/cart in place; move only navigation and contacts left */
@media (min-width: 1181px) {
  .main-navigation {
    transform: translateX(-70px);
  }

  .rsmart-header-contacts {
    transform: translateX(-70px);
  }
}

.rsmart-header-contacts {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.rsmart-header-email {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 4px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.rsmart-header-email:hover {
  color: var(--red);
}

.rsmart-header-email__icon,
.rsmart-header-email__icon svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.rsmart-header-email__icon svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html[data-theme="dark"] .rsmart-header-email {
  color: var(--text-soft) !important;
}

html[data-theme="dark"] .rsmart-header-email:hover {
  color: var(--red) !important;
}

@media (max-width: 768px) {
  .rsmart-header-email {
    width: auto;
  }
}


/* v78.3.6: unify header contact/account/cart typography */
.rsmart-compact-phone.header-phone,
.rsmart-header-email,
.header-account,
.header-cart {
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
}


/* v78.3.7 - configurable R-SMART homepage */
.rsmart-home-page{padding-top:20px;padding-bottom:58px}
.rsmart-home-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:20px;align-items:start}
.rsmart-home-sidebar{display:grid;gap:16px;position:sticky;top:112px}
.rsmart-home-box{border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.88);box-shadow:var(--shadow-sm);padding:14px}
.rsmart-home-box h2{font-size:18px;line-height:1.2;margin:0 0 12px;color:var(--text)}
.rsmart-home-category-list{list-style:none;margin:0;padding:0;display:grid;gap:7px}
.rsmart-home-category-list li{margin:0}
.rsmart-home-category-list a{min-height:36px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border:1px solid #e2e6ea;border-radius:8px;background:#f5f6f7;color:var(--text);font-size:13px;line-height:1.2}
.rsmart-home-category-list a:hover{border-color:#d4d9de;background:#fff;color:var(--text)}
.rsmart-home-category-name{display:flex;align-items:center;gap:8px;min-width:0}
.rsmart-home-category-arrow{color:var(--red);font-size:20px;font-weight:800;line-height:1;transform:translateY(-1px)}
.rsmart-home-category-list strong{color:var(--red);font-size:11px;font-weight:800;flex:0 0 auto}
.rsmart-home-sort-box label{display:block;font-weight:800;font-size:14px;margin:0 0 9px;color:var(--text)}
.rsmart-home-sort-box select{width:100%;min-height:42px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--text);padding:0 12px;font-family:inherit}
.rsmart-home-empty{font-size:13px;color:var(--text-soft);margin:0}
.rsmart-home-main{min-width:0;display:grid;gap:16px}
.rsmart-home-search-box{border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.9);padding:8px 12px 12px;box-shadow:var(--shadow-sm)}
.rsmart-home-search-title{text-align:center;font-size:12px;line-height:1;margin:0 0 7px;color:var(--text)}
.rsmart-home-search-form{display:grid;grid-template-columns:1fr 78px;gap:10px;position:relative}
.rsmart-home-search-form input[type="search"]{width:100%;height:42px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--text);padding:0 14px 0 42px;font-family:inherit;font-size:13px;box-shadow:none}
.rsmart-home-search-form button{height:42px;border:0;border-radius:10px;background:var(--red);color:#fff;font-size:13px;font-weight:800;padding:0 16px;box-shadow:none}
.rsmart-home-search-form button:hover{background:#b11b25}
.rsmart-home-search-icon{position:absolute;left:13px;top:50%;width:18px;height:18px;transform:translateY(-50%);color:#29323c;pointer-events:none;z-index:2}
.rsmart-home-search-icon svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.rsmart-home-slider{position:relative;min-height:190px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:var(--shadow-sm);overflow:hidden}
.rsmart-home-slider-track{position:relative;min-height:190px}
.rsmart-home-slide{display:none;position:absolute;inset:0;background:#fff}
.rsmart-home-slide.is-active{display:block}
.rsmart-home-slide>a,.rsmart-home-slide-link{display:block;width:100%;height:100%;color:inherit}
.rsmart-home-slide img{display:block;width:100%;height:100%;min-height:190px;max-height:330px;object-fit:cover}
.rsmart-home-slide-placeholder{display:flex;align-items:center;justify-content:center;min-height:190px;height:100%;font-size:44px;font-weight:900;color:#090909;background:linear-gradient(135deg,#fff,#fcfcfc)}
.rsmart-home-slide-caption{position:absolute;left:18px;bottom:18px;max-width:70%;padding:9px 12px;border-radius:10px;background:rgba(255,255,255,.9);color:#15191e;font-size:16px;font-weight:800;box-shadow:0 4px 18px rgba(0,0,0,.08)}
.rsmart-home-slider-arrow{position:absolute;top:50%;z-index:4;width:36px;height:36px;min-height:36px;padding:0!important;border:1px solid rgba(0,0,0,.08)!important;border-radius:50%!important;background:rgba(255,255,255,.9)!important;color:#222!important;display:flex;align-items:center;justify-content:center;font-size:28px;line-height:1;transform:translateY(-50%);box-shadow:0 4px 14px rgba(0,0,0,.10)!important}
.rsmart-home-slider-arrow:hover{transform:translateY(-50%);background:#fff!important}
.rsmart-home-slider-arrow.is-prev{left:12px}.rsmart-home-slider-arrow.is-next{right:12px}
.rsmart-home-slider-dots{position:absolute;left:50%;bottom:10px;z-index:4;display:flex;gap:6px;transform:translateX(-50%)}
.rsmart-home-slider-dots button{width:7px;height:7px;min-width:7px;min-height:7px;padding:0!important;border:0!important;border-radius:50%!important;background:rgba(0,0,0,.25)!important;box-shadow:none!important}
.rsmart-home-slider-dots button.is-active{background:var(--red)!important}
.rsmart-home-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.rsmart-home-card{position:relative;min-height:160px;overflow:hidden;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.93);box-shadow:var(--shadow-sm);color:var(--text);padding:18px;display:flex;align-items:center;justify-content:center;text-align:center;isolation:isolate}
.rsmart-home-card:hover{color:var(--text);border-color:#d0d6dc;box-shadow:0 8px 24px rgba(24,31,39,.09)}
.rsmart-home-card-title{position:relative;z-index:2;font-size:14px;font-weight:800;line-height:1.25}
.rsmart-home-card img{position:absolute;right:-6px;bottom:-10px;z-index:1;width:94px;height:94px;object-fit:contain;opacity:.13;pointer-events:none}
html[data-theme="dark"] .rsmart-home-box,
html[data-theme="dark"] .rsmart-home-search-box,
html[data-theme="dark"] .rsmart-home-slider,
html[data-theme="dark"] .rsmart-home-card{background:rgba(11,23,34,.94);border-color:#263747}
html[data-theme="dark"] .rsmart-home-category-list a{background:#101d29;border-color:#263747;color:#dce4ec}
html[data-theme="dark"] .rsmart-home-category-list a:hover{background:#132331}
html[data-theme="dark"] .rsmart-home-sort-box select,
html[data-theme="dark"] .rsmart-home-search-form input[type="search"]{background:#0d1924;border-color:#314252;color:#dce4ec}
html[data-theme="dark"] .rsmart-home-search-icon{color:#b9c5d0}
html[data-theme="dark"] .rsmart-home-slide-placeholder{background:linear-gradient(135deg,#0b1722,#101d29);color:#dce4ec}
@media(max-width:1050px){.rsmart-home-layout{grid-template-columns:190px minmax(0,1fr)}.rsmart-home-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:768px){.rsmart-home-page{padding-top:14px}.rsmart-home-layout{grid-template-columns:1fr}.rsmart-home-sidebar{position:static;grid-template-columns:1fr}.rsmart-home-sort-box{display:none}.rsmart-home-main{gap:12px}.rsmart-home-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rsmart-home-slider,.rsmart-home-slider-track,.rsmart-home-slide-placeholder{min-height:170px}.rsmart-home-slide img{min-height:170px}.rsmart-home-slide-placeholder{font-size:34px}}
@media(max-width:480px){.rsmart-home-search-form{grid-template-columns:1fr 70px}.rsmart-home-search-form button{padding:0 10px}.rsmart-home-card-grid{grid-template-columns:1fr 1fr;gap:8px}.rsmart-home-card{min-height:130px;padding:12px}.rsmart-home-card-title{font-size:13px}.rsmart-home-card img{width:78px;height:78px}}


/* v78.3.9: mobile header + catalog toolbar cleanup */
@media (max-width: 768px) {
  /* Mobile header must scroll away with the page and stay compact. */
  .site-header,
  body.admin-bar .site-header {
    position: relative !important;
    top: auto !important;
    padding-top: 6px !important;
    z-index: 50 !important;
  }

  .site-header__inner {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: stretch !important;
    min-height: 0 !important;
    padding: 10px 12px !important;
    gap: 8px !important;
    border-radius: 18px !important;
  }

  .site-branding {
    width: 100% !important;
    gap: 0 !important;
  }

  .site-logo {
    max-width: 100% !important;
  }

  .site-logo img,
  .custom-logo {
    width: auto !important;
    max-width: min(100%, 250px) !important;
    max-height: 54px !important;
  }

  .site-branding__text,
  .site-description {
    display: none !important;
  }

  .main-navigation {
    width: 100% !important;
    justify-self: stretch !important;
  }

  .main-navigation ul {
    justify-content: flex-start !important;
    gap: 5px !important;
  }

  .main-navigation a {
    min-height: 34px !important;
    padding: 7px 12px !important;
    font-size: 13px !important;
    line-height: 1.1 !important;
  }

  .header-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
    align-items: center !important;
    gap: 6px 10px !important;
  }

  .rsmart-header-contacts {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    gap: 4px 14px !important;
  }

  .rsmart-compact-phone.header-phone,
  .rsmart-header-email,
  .header-account,
  .header-cart {
    width: auto !important;
    min-width: 0 !important;
    min-height: 28px !important;
    padding: 3px 0 !important;
    gap: 5px !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }

  .header-account,
  .header-cart {
    flex-direction: row !important;
    justify-content: flex-start !important;
    text-align: left !important;
    font-weight: 750 !important;
  }

  .header-account__icon,
  .header-cart__icon,
  .rsmart-compact-phone__icon,
  .rsmart-header-email__icon,
  .header-account__icon svg,
  .header-cart__icon svg,
  .rsmart-compact-phone__icon svg,
  .rsmart-header-email__icon svg {
    width: 15px !important;
    height: 15px !important;
    flex: 0 0 15px !important;
  }

  .header-account__text,
  .header-cart__text {
    font-size: 12px !important;
    line-height: 1.1 !important;
  }

  .theme-toggle {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    border-radius: 10px !important;
  }

  .theme-toggle span,
  .theme-toggle svg {
    width: 17px !important;
    height: 17px !important;
  }

  /* Sidebar on the configurable homepage should never become sticky on mobile. */
  .rsmart-home-sidebar {
    position: static !important;
    top: auto !important;
  }
}

@media (max-width: 720px) {
  /* Catalog search: keep the magnifier inside the input, not between input/button. */
  .b2b-shop-toolbar .b2b-shop-searchbar {
    padding: 14px !important;
    gap: 8px !important;
  }

  .b2b-shop-searchbar__title {
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
  }

  .b2b-shop-toolbar .b2b-shop-searchform {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    gap: 8px !important;
    position: relative !important;
    transform: none !important;
  }

  .b2b-shop-searchform__icon {
    left: 15px !important;
    top: 24px !important;
    width: 18px !important;
    height: 18px !important;
    transform: translateY(-50%) !important;
  }

  .b2b-shop-searchbar form.b2b-shop-searchform input[type="search"],
  .b2b-shop-searchbar form.b2b-shop-searchform button[type="submit"] {
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
  }

  .b2b-shop-searchbar form.b2b-shop-searchform input[type="search"] {
    padding: 0 14px 0 44px !important;
  }

  .b2b-shop-searchbar form.b2b-shop-searchform button[type="submit"] {
    width: 100% !important;
    min-width: 0 !important;
  }

  .b2b-shop-viewpanel {
    padding: 14px !important;
  }

  .b2b-shop-viewpanel .b2b-view-toggle--inline {
    width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 18px !important;
  }

  .b2b-shop-viewpanel .b2b-view-toggle__btn,
  .b2b-shop-filter-buttonpanel .b2b-shop-filter-toggle {
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    border-radius: 14px !important;
  }
}


/* v78.3.23: single product cleanup */
/* Related-product tag icons were positioned against the page and could appear at the top-left.
   Hide those on a single-product page; keep the current product's own side icons intact. */
.single-product .related.products .b2b-product-tag-icons,
.single-product .upsells.products .b2b-product-tag-icons {
  display: none !important;
}

/* Keep the image/gallery card exactly level with the main product card. */
.single-product .b2b-product-top {
  align-items: start !important;
}
.single-product .b2b-product-gallery.card,
.single-product .b2b-product-aside {
  align-self: start !important;
  margin-top: 0 !important;
}
.single-product .b2b-product-main-card {
  margin-top: 0 !important;
}




/* v78.3.27: catalog sidebar aligned midway between previous positions */
.b2b-shop-page .b2b-shop-layout > .b2b-shop-sidebar {
  transform: translateY(-22px) !important;
}
@media (max-width: 1100px) {
  .b2b-shop-page .b2b-shop-layout > .b2b-shop-sidebar {
    transform: none !important;
  }
}


/* v78.3.29: transparent header at top, surface appears after page scroll */
@media (min-width: 769px) {
  .site-header__inner {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition: background-color .22s ease, border-color .22s ease, box-shadow .22s ease, backdrop-filter .22s ease;
  }

  .site-header.is-scrolled .site-header__inner {
    background: rgba(255,255,255,.90) !important;
    border-color: rgba(221,226,232,.92) !important;
    box-shadow: var(--shadow-sm) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
  }

  html[data-theme="dark"] .site-header__inner {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  html[data-theme="dark"] .site-header.is-scrolled .site-header__inner {
    background: rgba(11,23,34,.90) !important;
    border-color: #314252 !important;
    box-shadow: var(--shadow-sm) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
  }
}


/* v78.3.30 experimental flat design: disable visual shadows only */
html body *,
html body *::before,
html body *::after {
  box-shadow: none !important;
  text-shadow: none !important;
}


/* v78.3.31: unify card/panel corner radius to the smaller style */
:root {
  --rsmart-card-radius: 14px;
}

.card,
.woocommerce ul.products li.product,
.single-product .product,
.woocommerce.single-product div.product,
.single-product .b2b-product-gallery.card,
.single-product .b2b-product-main-card,
.single-product .b2b-product-b2b-card,
.single-product .b2b-product-short,
.single-product .b2b-product-price-wrap,
.woocommerce-tabs .panel,
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-additional-fields,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review,
.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce-cart-form,
.b2b-shop-sidebar > *,
.b2b-shop-toolbar,
.b2b-shop-toolbar-main,
.b2b-shop-view-box,
.b2b-shop-filter-buttonpanel,
.b2b-shop-viewpanel,
.rsmart-home-box,
.rsmart-home-search-box,
.rsmart-home-slider,
.rsmart-home-card {
  border-radius: var(--rsmart-card-radius) !important;
}





/* v78.3.40.13: list view — tag icons below image, product title wraps */
.b2b-shop-content.b2b-shop-view-list ul.products li.product .b2b-product-card-media {
  grid-column: 1 !important;
  grid-row: 1 / span 3 !important;
  width: 84px !important;
  max-width: 84px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  align-self: center !important;
}

.b2b-shop-content.b2b-shop-view-list ul.products li.product .b2b-product-card-media > img,
.b2b-shop-content.b2b-shop-view-list ul.products li.product .b2b-product-card-media > a > img {
  display: block !important;
  width: 84px !important;
  max-width: 84px !important;
  height: 84px !important;
  margin: 0 !important;
  object-fit: contain !important;
}

.b2b-shop-content.b2b-shop-view-list .b2b-product-tag-icons {
  position: static !important;
  inset: auto !important;
  width: 84px !important;
  max-width: 84px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  margin: 0 !important;
  transform: none !important;
}

.b2b-shop-content.b2b-shop-view-list .b2b-product-tag-icon {
  flex: 0 0 auto !important;
}

.b2b-shop-content.b2b-shop-view-list ul.products li.product .woocommerce-loop-product__title {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  max-width: 100% !important;
}

@media (max-width: 980px) {
  .b2b-shop-content.b2b-shop-view-list ul.products li.product .b2b-product-card-media {
    width: 72px !important;
    max-width: 72px !important;
  }

  .b2b-shop-content.b2b-shop-view-list ul.products li.product .b2b-product-card-media > img,
  .b2b-shop-content.b2b-shop-view-list ul.products li.product .b2b-product-card-media > a > img {
    width: 72px !important;
    max-width: 72px !important;
    height: 72px !important;
  }

  .b2b-shop-content.b2b-shop-view-list .b2b-product-tag-icons {
    width: 72px !important;
    max-width: 72px !important;
  }
}


/* v78.3.40.44: 3D modal uses a light header; prevent inherited dark-theme white text. */
body > .rsmart-3d-modal .rsmart-3d-modal__header {
  background:#fff !important;
  color:#253247 !important;
}
body > .rsmart-3d-modal .rsmart-3d-modal__title { color:#253247 !important; }
body > .rsmart-3d-modal .rsmart-3d-modal__eyebrow { color:#7b8794 !important; }
