.b2b-desk-page {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  background: linear-gradient(180deg, #f4f7fd 0%, #eef2f8 100%);
  color: #122033;
  font-family: "Avenir Next", "Segoe UI", "Trebuchet MS", Arial, sans-serif;
}

.b2b-desk-page * {
  box-sizing: border-box;
}

.b2b-desk-page kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  padding: 0 6px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid #d4deec;
  background: #fff;
  color: #445a77;
  font-size: 11px;
  font-weight: 800;
}

.desk-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 240px minmax(320px, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #d8e1ef;
  background: rgba(248, 251, 255, 0.95);
  backdrop-filter: blur(10px);
}

.brand-wrap {
  display: grid;
  grid-template-columns: auto;
  gap: 2px;
}

.brand-title {
  font-size: 20px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0.06em;
  color: #1d3158;
  text-transform: uppercase;
}

.brand-sub {
  font-size: 13px;
  font-weight: 800;
  color: #4b607d;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid #ccdaf1;
  background: #edf4ff;
  color: #193d8b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.muted-pill {
  color: #516480;
  background: #f4f7fb;
  border-color: #dbe4f2;
}

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #cfdcec;
  background: #fff;
  border-radius: 13px;
  min-height: 46px;
  padding: 0 10px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.top-search input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  min-height: 42px;
  font-size: 14px;
  font-weight: 700;
  color: #11233e;
}

.top-search input::placeholder {
  color: #7489a6;
}

.search-icon {
  color: #6a7f9d;
  font-weight: 800;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.b2b-desk-page .btn {
  border: 1px solid #ccd8ea;
  background: #fff;
  color: #203453;
  border-radius: 11px;
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.b2b-desk-page .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(30, 52, 91, 0.12);
}

.b2b-desk-page .btn:focus-visible,
.input-like:focus-visible,
.order-link:focus-visible,
.chip:focus-visible {
  outline: 3px solid rgba(29, 78, 216, 0.2);
  outline-offset: 1px;
}

.primary-btn {
  background: linear-gradient(180deg, #2f56d9, #1f43ba) !important;
  border-color: #1f43ba !important;
  color: #fff !important;
}

.ghost-btn {
  background: #f9fbff !important;
}

.danger-btn {
  color: #a91b1b !important;
  background: #fff5f5 !important;
  border-color: #f0c7c7 !important;
}

.count-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  margin-left: 4px;
  padding: 0 6px;
  background: #ecf2ff;
  border: 1px solid #bfd1f5;
  color: #153d9a;
  font-size: 11px;
  font-weight: 900;
}

.cart-feedback-card {
  border-color: rgba(55, 188, 129, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(55, 188, 129, 0.12), 0 14px 28px rgba(20, 42, 80, 0.12) !important;
}

.cart-feedback-btn {
  background: linear-gradient(135deg, #28c98b 0%, #16b56c 100%) !important;
  border-color: #16b56c !important;
  color: #fff !important;
}

body.cart-feedback-active #cartToggleBtn,
body.cart-feedback-active #mobileCartBar [data-mobile-cart-open] {
  animation: cartPulse 0.55s ease-in-out 2;
}

body.cart-feedback-active #cartCount,
body.cart-feedback-active #mobileCartQty,
body.cart-feedback-active #mobileNavCartCount {
  animation: countPop 0.5s ease-in-out 2;
}

@keyframes cartPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 rgba(39, 198, 136, 0); }
  50% { transform: scale(1.04); box-shadow: 0 0 0 8px rgba(39, 198, 136, 0.16); }
  100% { transform: scale(1); box-shadow: 0 0 0 rgba(39, 198, 136, 0); }
}

@keyframes countPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.desk-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 12px;
  padding: 10px;
  align-items: start;
}

body.cart-collapsed .desk-main {
  grid-template-columns: minmax(0, 1fr);
}

body.cart-collapsed:not(.theme-cia-b2b) .cart-panel {
  display: none;
}

.panel {
  background: #fff;
  border: 1px solid #d2dceb;
  border-radius: 16px;
  box-shadow: 0 12px 26px rgba(20, 42, 80, 0.08);
}

.panel-head {
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.panel-head h2,
.panel-head h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1;
  color: #142744;
}

.panel-head h3 {
  font-size: 22px;
}

.panel-head p {
  margin: 5px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: #4f6480;
}

.panel-head.compact {
  align-items: center;
}

.hint-row {
  font-size: 12px;
  font-weight: 700;
  color: #5f7391;
}

.catalog-panel {
  min-height: 430px;
}

.chip-row {
  display: flex;
  gap: 8px;
  padding: 10px 12px 4px;
  flex-wrap: wrap;
}

.chip {
  border: 1px solid #ccd9ee;
  background: #fff;
  color: #223a5c;
  border-radius: 999px;
  min-height: 32px;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.chip.active {
  background: #eaf1ff;
  border-color: #abc2f3;
  color: #2048a3;
}

.catalog-meta {
  padding: 4px 12px 8px;
  font-size: 13px;
  font-weight: 700;
  color: #5a6f8b;
}

.catalog-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px 10px;
}

.catalog-pager-hint,
.catalog-all-loaded {
  font-size: 12px;
  font-weight: 700;
  color: #5f7392;
}

.catalog-tool-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid #cfdbec;
  border-radius: 10px;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  color: #2a4366;
}

.catalog-tool-check input {
  width: 16px;
  height: 16px;
}

.product-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  padding: 0 10px 12px;
}

.product-card {
  border: 1px solid #d9e2f1;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  padding: 10px;
  display: grid;
  gap: 8px;
  content-visibility: auto;
  contain-intrinsic-size: 320px;
}

.product-card h4 {
  margin: 0;
  font-size: 16px;
  line-height: 1.15;
  color: #132742;
}

.product-meta {
  font-size: 12px;
  font-weight: 800;
  color: #5a6f8a;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.price-row strong {
  font-size: 18px;
  color: #0f2038;
}

.previous-price-row {
  font-size: 12px;
  font-weight: 800;
  color: #7a879c;
  text-decoration: line-through;
}

.stock-meta {
  font-size: 12px;
  font-weight: 800;
  color: #344f73;
}

.qty-add-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 8px;
}

.input-like {
  width: 100%;
  border: 1px solid #cfdcec;
  border-radius: 10px;
  background: #fff;
  color: #10233e;
  min-height: 38px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 700;
}

.qty-input,
.cart-qty,
.line-qty-input {
  text-align: center;
}

.cart-panel {
  position: sticky;
  top: 70px;
  max-height: calc(100vh - 80px);
  display: grid;
  grid-template-rows: auto minmax(120px, 1fr) auto;
  overflow: hidden;
}

.cart-items {
  overflow: auto;
  padding: 10px;
  display: grid;
  gap: 9px;
}

.cart-line {
  border: 1px solid #d9e2f1;
  border-radius: 11px;
  background: #fbfdff;
  padding: 9px;
  display: grid;
  gap: 6px;
}

.cart-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #2a4062;
}

.cart-name {
  font-size: 13px;
  font-weight: 700;
  color: #18304f;
  line-height: 1.35;
}

.cart-actions {
  display: grid;
  grid-template-columns: 44px 1fr 44px auto;
  gap: 6px;
}

.cart-foot {
  border-top: 1px solid #e1e8f3;
  padding: 10px;
  display: grid;
  gap: 8px;
  background: #f9fbff;
}

.field-stack {
  display: grid;
  gap: 4px;
}

.field-stack span {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 800;
  color: #60748f;
}

.line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #334f71;
}

.line strong {
  font-size: 15px;
  color: #10223d;
}

.full {
  width: 100%;
}

.orders-panel {
  margin: 0 10px 10px;
  overflow: hidden;
}

.orders-tools {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) 150px;
  gap: 8px;
}

.table-wrap {
  overflow: auto;
}

.orders-table,
.lines-table {
  width: 100%;
  border-collapse: collapse;
}

.orders-table th,
.orders-table td,
.lines-table th,
.lines-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #e4ebf5;
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
  color: #183151;
}

.orders-table th,
.lines-table th {
  background: #f4f8ff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 900;
  color: #4e6482;
}

.table-empty {
  text-align: center !important;
  color: #627891 !important;
  font-weight: 700;
  padding: 18px !important;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tiny-btn {
  min-height: 30px !important;
  padding: 0 10px !important;
  font-size: 12px !important;
  border-radius: 8px !important;
}

.order-link {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  color: #1c4db3;
}

.status-blue {
  background: #eaf1ff;
  border-color: #b8caf1;
  color: #1b4b9d;
}

.status-orange {
  background: #fff3e7;
  border-color: #f1cfab;
  color: #9a5700;
}

.status-red {
  background: #fff0f0;
  border-color: #efc4c4;
  color: #a12222;
}

.status-default {
  background: #f2f5f9;
  border-color: #d9e3f0;
  color: #4f627e;
}

.stock-green {
  background: #eaf8ef;
  border-color: #b8e1c5;
  color: #0e7a3f;
}

.stock-orange {
  background: #fff4e7;
  border-color: #f2d3ad;
  color: #a55e03;
}

.stock-red {
  background: #fff0f0;
  border-color: #f0c8c8;
  color: #a91f1f;
}

.inline-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border-radius: 999px;
  border-width: 1px;
  border-style: solid;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(8, 17, 35, 0.45);
}

.modal-shell.open {
  display: flex;
}

.modal-card {
  width: min(460px, 100%);
  background: #fff;
  border: 1px solid #d0dced;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(13, 31, 62, 0.24);
  overflow: hidden;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.modal-card.wide {
  width: min(1050px, 100%);
  max-height: calc(100vh - 30px);
  overflow: auto;
}

.modal-card.preview-wide {
  width: min(900px, 100%);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f3;
}

.modal-head h3 {
  margin: 0;
  font-size: 21px;
  color: #142a47;
}

.stack-form {
  display: grid;
  gap: 8px;
}

.muted-copy {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #5e7492;
}

.feedback-msg {
  min-height: 18px;
  margin: 0;
  font-size: 12px;
  color: #5f7492;
  font-weight: 700;
}

.order-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.meta-cell {
  border: 1px solid #d9e2f2;
  border-radius: 10px;
  background: #fbfdff;
  padding: 8px;
  display: grid;
  gap: 4px;
}

.meta-cell span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #667c97;
  font-weight: 800;
}

.meta-cell strong {
  font-size: 13px;
  color: #152c4a;
}

.doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.product-preview-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 12px;
}

.product-preview-media {
  border: 1px solid #d7e2f2;
  border-radius: 12px;
  background: linear-gradient(145deg, #eef4ff, #fff2e8);
  min-height: 300px;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}

.product-preview-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  z-index: 1;
}

.product-preview-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 900;
  color: #3a5d90;
  letter-spacing: 0.08em;
  z-index: 0;
}

.product-preview-copy {
  display: grid;
  align-content: start;
  gap: 10px;
  user-select: text;
}

.product-preview-meta {
  font-size: 13px;
  font-weight: 800;
  color: #4f6582;
}

.product-preview-price {
  font-size: 38px;
  line-height: 1;
  font-weight: 900;
  color: #178246;
}

.product-preview-previous-price {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 800;
  color: #7a879c;
  text-decoration: line-through;
}

.product-preview-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #344b6d;
}

.product-preview-sheet {
  display: grid;
  gap: 14px;
}

.product-preview-row {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid #e8eef7;
}

.product-preview-row span {
  font-size: 13px;
  font-weight: 800;
  color: #5a6f8a;
  text-transform: none;
}

.product-preview-row b {
  color: #132742;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 900;
  user-select: text;
}

.product-preview-row-name b {
  font-size: 32px;
  line-height: 1.2;
}

.previous-price-row {
  font-size: 15px;
  font-weight: 900;
  color: #7a879c;
  text-decoration: line-through;
}

.b2b-desk-page.theme-cia-b2b.view-shop .product-sheet-main {
  display: grid;
  align-content: center;
}

.b2b-desk-page.theme-cia-b2b.view-shop .product-sheet-grid {
  display: grid;
  gap: 10px;
}

.b2b-desk-page.theme-cia-b2b.view-shop .product-sheet-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.b2b-desk-page.theme-cia-b2b.view-shop .product-sheet-row span {
  color: #485a73;
  font-size: 13px;
  font-weight: 800;
}

.b2b-desk-page.theme-cia-b2b.view-shop .product-sheet-row b {
  color: #1d2b3f;
  font-size: 22px;
  line-height: 1.22;
  font-weight: 800;
}

.b2b-desk-page.theme-cia-b2b.view-shop .product-sheet-row-name b {
  font-size: 26px;
  line-height: 1.2;
}

.b2b-desk-page.theme-cia-b2b.view-shop .product-sheet-part {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  background: #ffda63;
  color: #614300 !important;
  font-size: 20px !important;
}

.b2b-desk-page.theme-cia-b2b.view-shop .product-sheet-current-price {
  color: #178246 !important;
  font-size: 34px !important;
  line-height: 1.05 !important;
  font-weight: 900 !important;
}

.b2b-desk-page.theme-cia-b2b.view-shop .product-sheet-previous-price {
  color: #7a879c !important;
  font-size: 22px !important;
  text-decoration: line-through;
}

.b2b-desk-page.theme-cia-b2b.view-shop .product-sheet-description {
  color: #44556c !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
}

.toast-host {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 90;
  display: grid;
  gap: 8px;
}

.toast {
  min-width: 220px;
  max-width: 360px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #cfe0f6;
  background: #f0f7ff;
  color: #174283;
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  background: #fff4f4;
  border-color: #efc8c8;
  color: #a52626;
}

.toast.ok {
  background: #eef8ff;
  border-color: #c8def6;
  color: #17478d;
}

.empty-state {
  border: 1px dashed #d3deee;
  border-radius: 10px;
  padding: 16px;
  font-size: 13px;
  font-weight: 700;
  color: #60758f;
  background: #fafdff;
}

.cart-empty {
  text-align: center;
}

@media (max-width: 1320px) {
  .desk-topbar {
    grid-template-columns: minmax(190px, 1fr) minmax(280px, 1.1fr) auto;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(198px, 1fr));
  }
}

@media (max-width: 1120px) {
  .desk-main {
    grid-template-columns: 1fr;
  }

  .cart-panel {
    position: static;
    max-height: unset;
    min-height: 300px;
  }

  body.cart-collapsed .cart-panel {
    display: grid;
  }

  .orders-panel {
    margin-top: 0;
  }
}

@media (max-width: 900px) {
  .desk-topbar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
  }

  .brand-title {
    font-size: 19px;
  }

  .top-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .panel-head h2 {
    font-size: 22px;
  }

  .panel-head h3 {
    font-size: 20px;
  }

  .orders-tools {
    grid-template-columns: 1fr;
    width: 100%;
  }
}

/* Full-height B2B desk mode (desktop) */
@media (min-width: 1121px) {
  .b2b-desk-page {
    min-height: 100vh;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
    display: block;
  }

  .desk-main {
    min-height: 0;
    overflow: visible;
  }

  .catalog-panel,
  .quick-order-panel {
    height: auto;
    min-height: 0;
  }

  .catalog-panel {
    overflow: visible;
  }

  .quick-order-panel {
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
  }

  .quick-lines-wrap {
    min-height: 0;
    overflow: auto;
  }

  .orders-panel {
    height: calc(100vh - 132px);
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .orders-panel .table-wrap {
    min-height: 0;
    overflow: auto;
  }
}

@media (max-width: 640px) {
  .desk-main,
  .orders-panel {
    padding-left: 8px;
    padding-right: 8px;
    margin-left: 0;
    margin-right: 0;
  }

  .product-grid {
    grid-template-columns: 1fr;
    padding-left: 8px;
    padding-right: 8px;
  }

  .qty-add-row {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .cart-actions {
    grid-template-columns: 38px 1fr 38px;
  }

  .cart-actions .danger-btn {
    grid-column: 1 / -1;
  }

  .panel-head {
    padding: 10px;
  }

  .panel-head h2 {
    font-size: 20px;
  }

  .modal-card.wide {
    padding: 10px;
  }

  .product-preview-grid {
    grid-template-columns: 1fr;
  }

  .product-preview-media {
    min-height: 220px;
  }

  .doc-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

.accounts-tools {
  grid-template-columns: 160px 160px auto;
}

.accounts-kpi-grid {
  display: grid;
  gap: 8px;
  padding: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.accounts-kpi {
  border: 1px solid #d9e2f2;
  border-radius: 10px;
  background: #fbfdff;
  padding: 8px 10px;
  display: grid;
  gap: 2px;
}

.accounts-kpi span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #60748f;
}

.accounts-kpi strong {
  font-size: 15px;
  color: #10223d;
}

body.view-accounts .desk-main {
  grid-template-columns: 1fr;
}

body.view-accounts #cartPanel {
  display: none !important;
}

@media (max-width: 1120px) {
  .accounts-tools {
    grid-template-columns: 1fr;
  }

  .accounts-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .accounts-kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* View tabs + quick order mode */
.is-hidden {
  display: none !important;
}

.desk-view-tabs {
  display: flex;
  gap: 8px;
  padding: 8px 10px 0;
}

.view-tab {
  border: 1px solid #ccd9ee;
  background: #fff;
  color: #223b5d;
  border-radius: 999px;
  min-height: 34px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.view-tab.active {
  border-color: #abc2f3;
  background: #eaf1ff;
  color: #2048a3;
}

.quick-order-panel {
  min-height: 430px;
}

.quick-order-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 120px minmax(220px, 1.2fr) 100px auto auto;
  gap: 8px;
  padding: 10px 12px 6px;
}

.quick-sku-field {
  position: relative;
  min-width: 0;
}

.quick-user-pill {
  min-height: 38px;
  border: 1px solid #d3deef;
  border-radius: 10px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #415a7d;
  background: #f7faff;
}

.quick-qty-input {
  text-align: center;
}

.quick-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  margin: 0;
  border: 1px solid #d8e4f4;
  border-radius: 10px;
  background: #fff;
  display: none;
  overflow: hidden;
  max-height: 260px;
  overflow-y: auto;
  box-shadow: 0 18px 32px rgba(15, 24, 48, 0.18);
}

.quick-suggest.open {
  display: grid;
}

.quick-suggest-item {
  border: 0;
  border-bottom: 1px solid #edf2f9;
  background: #fff;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 96px;
  gap: 8px;
  align-items: center;
  text-align: left;
  padding: 8px 10px;
  cursor: pointer;
  color: #1a355f;
  font-weight: 800;
  font-size: 12px;
}

.quick-suggest-item:last-child {
  border-bottom: 0;
}

.quick-suggest-item:hover,
.quick-suggest-item.is-active {
  background: #f0f7ff;
}

.quick-suggest-item > b {
  text-align: right;
}

.quick-lines-wrap {
  padding: 0 10px;
}

.quick-lines-table tr.row-selected td {
  background: #eaf2ff;
}

.quick-lines-table td input.line-inline-input {
  width: 76px;
  min-height: 30px;
  text-align: center;
}

.quick-order-foot {
  border-top: 1px solid #e1e8f3;
  margin-top: 8px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 10px;
}

.product-card {
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  overflow: hidden;
}

.product-media {
  width: 76px;
  height: 76px;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  border: 1px solid #d8e2f2;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 58%),
    linear-gradient(145deg, #eff4ff, #fff7ee);
  position: relative;
  overflow: hidden;
  padding: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.product-media-hint {
  position: absolute;
  top: 6px;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(19, 38, 72, 0.82);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 2;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

.product-media-hint-icon {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.24);
  font-size: 8px;
  font-weight: 900;
  text-transform: lowercase;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  display: block;
  position: relative;
  z-index: 1;
  border-radius: 7px;
}

.product-media.img-missing img {
  display: none !important;
}

.product-media-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 900;
  color: #36588a;
  letter-spacing: 0.04em;
  z-index: 0;
}

.product-main {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.product-media {
  cursor: pointer;
}

.product-preview-btn {
  width: 100%;
}

.product-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
  color: #4d6280;
  min-height: 30px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.product-head {
  display: grid;
  gap: 3px;
}

.product-head h4 {
  margin: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.product-head .product-meta {
  margin: 0;
}

@media (max-width: 1120px) {
  .desk-main {
    grid-template-columns: 1fr !important;
    min-width: 0;
    width: 100%;
  }

  .catalog-panel,
  .quick-order-panel {
    min-width: 0;
    width: 100%;
  }

  .desk-view-tabs {
    padding: 8px 8px 0;
  }

  .quick-order-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-sku-field {
    grid-column: 1 / -1;
  }

  .quick-order-form #quickSkuInput {
    grid-column: 1 / -1;
  }

  .quick-order-foot {
    grid-template-columns: 1fr;
  }
}

body.view-quick .desk-main,
body.view-orders .desk-main,
body.view-communication .desk-main {
  grid-template-columns: 1fr;
}

body.view-quick #cartPanel,
body.view-orders #cartPanel,
body.view-communication #cartPanel {
  display: none !important;
}

@media (max-width: 640px) {
  .desk-view-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 8px 8px 0;
  }

  .view-tab {
    width: 100%;
    min-height: 36px;
    padding: 0 8px;
    font-size: 12px;
  }

  .quick-order-form {
    grid-template-columns: 1fr;
  }

  .quick-order-form .btn {
    width: 100%;
  }

  .quick-suggest-item {
    grid-template-columns: 90px minmax(0, 1fr) 86px;
    font-size: 11px;
  }

  .product-card {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 8px;
  }

  .product-media {
    width: 64px;
    height: 64px;
  }
}

/* B2B shop listing alignment fix: larger image + cleaner spacing */
body.view-shop .product-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  padding: 0 12px 14px;
}

body.view-shop .product-card {
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  min-height: 208px;
  align-items: start;
}

body.view-shop .product-media {
  width: 118px;
  height: 118px;
  border-radius: 12px;
}

body.view-shop .product-main {
  gap: 9px;
  align-content: start;
}

body.view-shop .product-head h4 {
  font-size: 17px;
  line-height: 1.24;
}

body.view-shop .product-desc {
  min-height: 32px;
  max-height: 34px;
  overflow: hidden;
}

body.view-shop .qty-add-row {
  grid-template-columns: 92px minmax(0, 1fr);
}

@media (max-width: 1320px) {
  body.view-shop .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }

  body.view-shop .product-card {
    grid-template-columns: 104px minmax(0, 1fr);
    min-height: 194px;
  }

  body.view-shop .product-media {
    width: 104px;
    height: 104px;
  }
}

@media (max-width: 640px) {
  body.view-shop .product-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-left: 8px;
    padding-right: 8px;
  }

  body.view-shop .product-card {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    min-height: 0;
  }

  body.view-shop .product-media {
    width: 92px;
    height: 92px;
  }

  body.view-shop .qty-add-row {
    grid-template-columns: 88px minmax(0, 1fr);
  }
}

/* CIA B2B polish pass: stronger mobile hierarchy, touch ergonomics, and quick actions */
.b2b-desk-page {
  background:
    radial-gradient(1200px 540px at -8% -16%, rgba(44, 95, 209, 0.12), transparent 60%),
    radial-gradient(980px 520px at 108% 0%, rgba(243, 139, 44, 0.12), transparent 56%),
    linear-gradient(180deg, #f8fbff 0%, #eef3fb 100%);
}

.brand-title {
  letter-spacing: 0.03em;
}

.brand-sub {
  font-size: 12px;
}

.catalog-meta {
  font-weight: 800;
  color: #4d6180;
}

.product-card {
  border-color: #cfdaec;
  box-shadow: 0 6px 18px rgba(21, 42, 82, 0.06);
}

.product-media {
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.9), transparent 54%),
    linear-gradient(140deg, #ebf2ff, #fff2e3);
}

.product-head h4 {
  font-size: 15px;
  line-height: 1.28;
}

.product-desc {
  color: #455a79;
  min-height: 0;
}

.mobile-quick-nav,
.mobile-cart-bar {
  display: none;
}

.mobile-cart-bar-total {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.mobile-cart-bar-total span {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #546a89;
}

.mobile-cart-bar-total strong {
  font-size: 13px;
  color: #10223d;
}

.scroll-top-fab {
  position: fixed;
  right: 14px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  min-width: 46px;
  padding: 0 14px;
  border: 1px solid rgba(38, 63, 108, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #183356;
  box-shadow: 0 14px 28px rgba(20, 42, 80, 0.16);
  font-size: 13px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.scroll-top-fab.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top-fab:hover {
  box-shadow: 0 16px 32px rgba(20, 42, 80, 0.2);
}

.scroll-top-fab .bi {
  font-size: 16px;
}

@media (max-width: 900px) {
  .b2b-desk-page {
    padding-bottom: calc(124px + env(safe-area-inset-bottom));
  }

  .desk-topbar {
    top: 0;
    padding: 9px 8px;
    border-bottom: 1px solid #d6e1f0;
    background: rgba(248, 251, 255, 0.98);
  }

  .desk-topbar .brand-wrap {
    gap: 1px;
  }

  .brand-title {
    font-size: 17px;
  }

  .brand-sub {
    font-size: 11px;
  }

  .top-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
  }

  .top-actions .btn {
    width: 100%;
    min-height: 36px;
    font-size: 12px;
    padding: 0 8px;
  }

  .desk-view-tabs {
    position: sticky;
    top: 126px;
    z-index: 30;
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.95), rgba(248, 251, 255, 0));
    padding-top: 6px;
  }

  .view-tab {
    min-height: 36px;
  }

  .panel {
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(20, 40, 76, 0.08);
  }

  body.view-shop .product-grid {
    gap: 9px;
  }

  body.view-shop .product-card {
    grid-template-columns: 106px minmax(0, 1fr);
    padding: 10px;
    border-radius: 12px;
    min-height: 0;
  }

  body.view-shop .product-media {
    width: 106px;
    height: 106px;
    border-radius: 11px;
  }

  body.view-shop .product-head h4 {
    font-size: 14px;
    line-height: 1.25;
  }

  body.view-shop .price-row strong {
    font-size: 20px;
  }

  .cart-panel {
    position: fixed;
    top: 72px;
    right: 10px;
    left: auto;
    bottom: calc(66px + env(safe-area-inset-bottom));
    width: min(430px, calc(100vw - 20px));
    max-height: calc(100vh - 150px);
    z-index: 70;
    border-radius: 14px;
    transform: translateX(108%);
    transition: transform 0.14s ease-out;
    display: grid !important;
  }

  .cart-panel .cart-foot {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: rgba(249, 251, 255, 0.98);
  }

  .cart-panel #createOrderBtn {
    min-height: 40px;
    font-size: 13px;
    font-weight: 900;
  }

  body.view-shop.cart-open .cart-panel {
    transform: translateX(0);
  }

  body.view-shop.cart-collapsed .cart-panel {
    transform: translateX(108%);
  }

  .mobile-cart-bar {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: calc(58px + env(safe-area-inset-bottom));
    z-index: 60;
    border: 1px solid #c8d8ef;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    padding: 7px 8px;
    box-shadow: 0 10px 24px rgba(21, 42, 79, 0.16);
    display: grid;
    grid-template-columns: minmax(94px, auto) minmax(0, 1fr) minmax(108px, auto);
    align-items: center;
    gap: 8px;
  }

  body.view-quick .mobile-cart-bar,
  body.view-orders .mobile-cart-bar,
  body.view-communication .mobile-cart-bar {
    display: none;
  }

  .mobile-cart-bar .btn {
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
    border-radius: 12px;
  }

  .mobile-cart-bar-total {
    padding: 6px 10px;
    border-radius: 12px;
    background: linear-gradient(180deg, #eef4ff 0%, #ffffff 100%);
    border: 1px solid #d6e2f7;
  }

  .mobile-cart-bar-total span {
    font-size: 11px;
    font-weight: 700;
    color: #55709b;
  }

  .mobile-cart-bar-total strong {
    display: block;
    margin-top: 2px;
    font-size: 15px;
    color: #203453;
  }

  .mobile-quick-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 75;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid #cfdaec;
    background: rgba(246, 250, 255, 0.98);
    backdrop-filter: blur(10px);
  }

  .mobile-nav-btn {
    border: 1px solid #cbd8ec;
    background: #fff;
    color: #224061;
    border-radius: 10px;
    min-height: 38px;
    font-size: 12px;
    font-weight: 900;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }

  .mobile-nav-btn.active {
    border-color: #9fb9ee;
    color: #1d48a5;
    background: #ecf3ff;
  }
}

@media (max-width: 640px) {
  body.view-shop .product-card {
    grid-template-columns: 98px minmax(0, 1fr);
    gap: 9px;
  }

  body.view-shop .product-media {
    width: 98px;
    height: 98px;
  }

  .top-search {
    min-height: 42px;
  }

  .top-search input {
    min-height: 36px;
    font-size: 13px;
  }
}

/* CIA Portal Color Theme */
.b2b-desk-page {
  --cia-grad-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --cia-grad-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --cia-grad-warning: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  --cia-grad-danger: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  --cia-bg: #eef2fb;
  --cia-panel: #ffffff;
  --cia-panel-soft: rgba(255, 255, 255, 0.95);
  --cia-border: rgba(102, 126, 234, 0.24);
  --cia-border-soft: rgba(102, 126, 234, 0.14);
  --cia-text: #2d3748;
  --cia-muted: #4a5568;
  --cia-shadow: 0 12px 30px rgba(102, 126, 234, 0.15);
}

.b2b-desk-page {
  background: linear-gradient(180deg, #f8faff 0%, var(--cia-bg) 100%);
  color: var(--cia-text);
}

.b2b-desk-page kbd {
  border-color: var(--cia-border);
  color: #4f46a5;
  background: #fff;
}

/* Communication panel */
.communication-tools {
  grid-template-columns: minmax(180px, 1fr) 180px auto;
}

.communication-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 10px;
  padding: 10px;
  min-height: 0;
}

.communication-list-wrap {
  border: 1px solid #d9e2f2;
  border-radius: 12px;
  background: #fbfdff;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.communication-list {
  min-height: 0;
  max-height: calc(100vh - 300px);
  overflow: auto;
  padding: 10px;
  display: grid;
  gap: 10px;
}

.communication-row {
  display: flex;
  width: 100%;
}

.communication-row.outgoing {
  justify-content: flex-end;
}

.communication-row.incoming {
  justify-content: flex-start;
}

.communication-item {
  width: min(92%, 560px);
  border: 1px solid #d8e1f1;
  border-radius: 14px;
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 6px;
  position: relative;
}

.communication-item.outgoing {
  border-color: #9fc7ff;
  background: linear-gradient(135deg, #eef5ff 0%, #ffffff 100%);
}

.communication-item.incoming {
  border-color: #b6eadf;
  background: linear-gradient(135deg, #ecfff7 0%, #ffffff 100%);
}

.communication-item.outgoing::after,
.communication-item.incoming::after {
  content: "";
  position: absolute;
  top: 14px;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  border-top: 1px solid transparent;
  border-left: 1px solid transparent;
  background: inherit;
}

.communication-item.outgoing::after {
  right: -5px;
  border-right: 1px solid #9fc7ff;
  border-top: 1px solid #9fc7ff;
}

.communication-item.incoming::after {
  left: -5px;
  border-left: 1px solid #b6eadf;
  border-bottom: 1px solid #b6eadf;
}

.communication-item.is-urgent {
  border-color: #f5b0b0;
  background: #fff4f4;
}

.communication-item .meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: #546a88;
  font-weight: 800;
}

.communication-item .subject {
  font-size: 14px;
  line-height: 1.35;
  color: #163050;
  font-weight: 900;
}

.communication-item .body {
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.45;
  color: #30496c;
}

.voice-player-wrap {
  border: 1px solid rgba(67, 90, 144, 0.2);
  border-radius: 10px;
  background: #f8fbff;
  padding: 6px;
}

.communication-item audio,
.voice-player-wrap audio {
  width: 100%;
}

.voice-links {
  margin-top: 2px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 11px;
  color: #566b89;
  font-weight: 700;
}

.voice-links a {
  color: #345cb0;
  text-decoration: none;
}

.voice-links a:hover {
  text-decoration: underline;
}

.msg-status {
  justify-self: end;
  font-size: 11px;
  font-weight: 800;
  color: #57709a;
}

.communication-compose {
  border: 1px solid #d9e2f2;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.communication-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.comm-body {
  min-height: 140px;
  padding: 10px;
  resize: vertical;
}

.voice-box {
  border: 1px dashed #cfdcec;
  border-radius: 10px;
  background: #f9fbff;
  padding: 8px;
  display: grid;
  gap: 7px;
}

.voice-box audio {
  width: 100%;
}

@media (max-width: 900px) {
  .communication-tools {
    grid-template-columns: 1fr;
  }

  .communication-grid {
    grid-template-columns: 1fr;
  }

  .communication-item {
    width: min(100%, 640px);
  }
}

.b2b-desk-page .desk-topbar {
  border-bottom-color: var(--cia-border);
  background: var(--cia-panel-soft);
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
}

.b2b-desk-page .brand-title {
  background: var(--cia-grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.b2b-desk-page .brand-sub {
  color: #5b6282;
}

.b2b-desk-page .pill {
  border-color: var(--cia-border);
  background: #eef2ff;
  color: #4b4fb5;
}

.b2b-desk-page .muted-pill {
  background: #f5f7ff;
  color: #5b6282;
}

.b2b-desk-page .top-search,
.b2b-desk-page .input-like {
  border-color: var(--cia-border);
  background: #fff;
  color: var(--cia-text);
}

.b2b-desk-page .top-search input::placeholder,
.b2b-desk-page .input-like::placeholder {
  color: #7d86a8;
}

.b2b-desk-page .search-icon {
  color: #6171aa;
}

.b2b-desk-page .btn {
  border-color: var(--cia-border);
  color: #253056;
  background: #fff;
}

.b2b-desk-page .btn:hover {
  box-shadow: var(--cia-shadow);
}

.b2b-desk-page .btn:focus-visible,
.b2b-desk-page .input-like:focus-visible,
.b2b-desk-page .order-link:focus-visible,
.b2b-desk-page .chip:focus-visible {
  outline: 3px solid rgba(102, 126, 234, 0.28);
}

.b2b-desk-page .primary-btn {
  background: var(--cia-grad-primary) !important;
  border-color: transparent !important;
  color: #fff !important;
}

.b2b-desk-page .ghost-btn {
  background: #f4f7ff !important;
}

.b2b-desk-page .danger-btn {
  background: #fff5f7 !important;
  border-color: rgba(250, 112, 154, 0.4) !important;
  color: #9b2a62 !important;
}

.b2b-desk-page .count-dot {
  background: var(--cia-grad-danger);
  border-color: transparent;
  color: #fff;
}

.b2b-desk-page .panel {
  border-color: var(--cia-border);
  background: var(--cia-panel);
  box-shadow: var(--cia-shadow);
}

.b2b-desk-page .panel-head {
  border-bottom-color: var(--cia-border-soft);
}

.b2b-desk-page .panel-head h2,
.b2b-desk-page .panel-head h3,
.b2b-desk-page .product-card h4,
.b2b-desk-page .price-row strong,
.b2b-desk-page .line strong {
  color: #27314f;
}

.b2b-desk-page .panel-head p,
.b2b-desk-page .hint-row,
.b2b-desk-page .catalog-meta,
.b2b-desk-page .catalog-pager-hint,
.b2b-desk-page .catalog-all-loaded,
.b2b-desk-page .product-meta,
.b2b-desk-page .stock-meta,
.b2b-desk-page .field-stack span,
.b2b-desk-page .line,
.b2b-desk-page .muted-copy,
.b2b-desk-page .feedback-msg,
.b2b-desk-page .product-preview-meta,
.b2b-desk-page .product-preview-desc {
  color: var(--cia-muted);
}

.b2b-desk-page .chip,
.b2b-desk-page .view-tab {
  border-color: var(--cia-border);
  color: #30406b;
  background: #fff;
}

.b2b-desk-page .chip.active,
.b2b-desk-page .view-tab.active {
  border-color: transparent;
  background: var(--cia-grad-primary);
  color: #fff;
}

.b2b-desk-page .product-card {
  border-color: var(--cia-border);
  background: linear-gradient(180deg, #ffffff 0%, #f9f8ff 100%);
}

.b2b-desk-page .product-media,
.b2b-desk-page .product-preview-media {
  border-color: var(--cia-border);
  background: linear-gradient(145deg, #eef2ff, #f8f1ff);
}

.b2b-desk-page .product-media-fallback,
.b2b-desk-page .product-preview-fallback {
  color: #4f46a5;
}

.b2b-desk-page .orders-table th,
.b2b-desk-page .lines-table th {
  background: #eef1ff;
  color: #4b5677;
}

.b2b-desk-page .orders-table th,
.b2b-desk-page .orders-table td,
.b2b-desk-page .lines-table th,
.b2b-desk-page .lines-table td {
  border-bottom-color: var(--cia-border-soft);
}

.b2b-desk-page .order-link {
  color: #5560d6;
}

.b2b-desk-page .status-blue {
  background: #ecefff;
  border-color: rgba(102, 126, 234, 0.35);
  color: #4652c3;
}

.b2b-desk-page .status-orange {
  background: #fff4e8;
  border-color: rgba(245, 87, 108, 0.3);
  color: #c14b5f;
}

.b2b-desk-page .status-red {
  background: #fff2f6;
  border-color: rgba(250, 112, 154, 0.35);
  color: #a93971;
}

.b2b-desk-page .status-default {
  background: #f4f6fe;
  border-color: var(--cia-border);
  color: #5a6288;
}

.b2b-desk-page .stock-green {
  background: #e9faf5;
  border-color: rgba(67, 233, 123, 0.35);
  color: #1f8d70;
}

.b2b-desk-page .stock-orange {
  background: #eef8ff;
  border-color: rgba(79, 172, 254, 0.3);
  color: #2270a3;
}

.b2b-desk-page .stock-red {
  background: #fff4f8;
  border-color: rgba(250, 112, 154, 0.3);
  color: #b23f78;
}

.b2b-desk-page .inline-pill {
  font-weight: 900;
}

.b2b-desk-page .cart-line {
  border-color: var(--cia-border);
  background: #faf9ff;
}

.b2b-desk-page .cart-foot {
  border-top-color: var(--cia-border-soft);
  background: #f7f8ff;
}

.b2b-desk-page .modal-shell {
  background: rgba(34, 21, 61, 0.45);
}

.b2b-desk-page .modal-card {
  border-color: var(--cia-border);
  box-shadow: 0 30px 70px rgba(60, 45, 110, 0.3);
}

.confirm-card {
  width: min(500px, 100%);
  gap: 12px;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.b2b-desk-page .modal-head {
  border-bottom-color: var(--cia-border-soft);
}

.b2b-desk-page .toast {
  border-color: var(--cia-border);
  background: #eef2ff;
  color: #404bad;
}

.b2b-desk-page .toast.error {
  background: #fff4f8;
  border-color: rgba(250, 112, 154, 0.35);
  color: #b43f78;
}

.b2b-desk-page .toast.ok {
  background: #eefbff;
  border-color: rgba(79, 172, 254, 0.35);
  color: #226790;
}

.b2b-desk-page .empty-state {
  border-color: var(--cia-border);
  background: #faf9ff;
  color: #5b6687;
}

.b2b-desk-page .mobile-cart-bar {
  border-color: var(--cia-border);
  background: rgba(255, 255, 255, 0.98);
}

.b2b-desk-page .mobile-quick-nav {
  border-top-color: var(--cia-border);
  background: rgba(247, 248, 255, 0.98);
}

.b2b-desk-page .mobile-nav-btn {
  border-color: var(--cia-border);
  color: #2c3f67;
}

.b2b-desk-page .mobile-nav-btn.active {
  border-color: transparent;
  color: #fff;
  background: var(--cia-grad-primary);
}

/* Final catalog density + alignment controls */
.b2b-desk-page {
  --b2b-cards-per-row: 2;
}

.b2b-desk-page[data-catalog-cols="1"] { --b2b-cards-per-row: 1; }
.b2b-desk-page[data-catalog-cols="2"] { --b2b-cards-per-row: 2; }
.b2b-desk-page[data-catalog-cols="3"] { --b2b-cards-per-row: 3; }
.b2b-desk-page[data-catalog-cols="4"] { --b2b-cards-per-row: 4; }

.catalog-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  padding: 0 12px 10px;
}

.catalog-tool-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border: 1px solid var(--cia-border, #d3def0);
  border-radius: 12px;
  background: #fff;
  padding: 4px 8px;
}

.catalog-tool-field > span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #5a6e8c;
}

.catalog-tool-field .input-like {
  min-height: 30px;
  border-radius: 8px;
  max-width: 90px;
  padding: 0 8px;
  font-size: 13px;
}

body.view-shop .catalog-panel .product-grid {
  grid-template-columns: repeat(var(--b2b-cards-per-row), minmax(0, 1fr)) !important;
  gap: 14px !important;
  padding: 0 12px 14px !important;
}

body.view-shop .catalog-panel .product-card {
  grid-template-columns: 148px minmax(0, 1fr) !important;
  gap: 12px !important;
  min-height: 224px;
  padding: 12px;
}

body.view-shop .catalog-panel .product-media {
  width: 148px !important;
  height: 148px !important;
  border-radius: 12px;
}

body.view-shop .catalog-panel .qty-add-row {
  grid-template-columns: 90px minmax(112px, 1fr) !important;
}

body.view-shop .catalog-panel .qty-add-row [data-add-cart] {
  width: 100%;
  min-width: 112px;
  padding: 0 10px;
  font-size: 13px;
  letter-spacing: 0;
}

body.view-shop .catalog-panel .product-head h4 {
  font-size: 20px;
  line-height: 1.24;
}

body.view-shop .catalog-panel .product-desc {
  min-height: 36px;
  max-height: 36px;
  overflow: hidden;
}

.in-cart-note {
  font-size: 12px;
  font-weight: 800;
  color: #4c5f7e;
}

@media (max-width: 1500px) {
  body.view-shop[data-catalog-cols="4"] .catalog-panel .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1120px) {
  .catalog-tools {
    justify-content: flex-start;
    padding: 0 10px 10px;
  }

  body.view-shop .catalog-panel .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    padding: 0 10px 12px !important;
  }

  body.view-shop .catalog-panel .product-card {
    grid-template-columns: 106px minmax(0, 1fr) !important;
    min-height: 0;
    padding: 10px;
  }

  body.view-shop .catalog-panel .product-media {
    width: 106px !important;
    height: 106px !important;
  }
}

@media (max-width: 900px) {
  .catalog-tools {
    gap: 6px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .catalog-tool-field {
    flex: 1 1 calc(50% - 6px);
    justify-content: space-between;
    min-width: 0;
  }

  .catalog-tool-field .input-like {
    max-width: 88px;
  }

  body.view-shop .catalog-panel .product-grid {
    grid-template-columns: 1fr !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  body.view-shop .catalog-panel .product-card {
    grid-template-columns: 112px minmax(0, 1fr) !important;
  }

  body.view-shop .catalog-panel .product-media {
    width: 112px !important;
    height: 112px !important;
  }

  body.view-shop .catalog-panel .qty-add-row {
    grid-template-columns: 88px minmax(0, 1fr) !important;
  }
}

/* Keyboard focus ring for card-only navigation */
.product-card:focus,
.product-card:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.75);
}

/* Final usability pass: image on top + smoother checkout on desktop/mobile */
body.view-shop .catalog-panel .product-card {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: auto auto;
  gap: 10px !important;
  min-height: 0;
}

body.view-shop .catalog-panel .product-media {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 10;
  max-height: 220px;
}

body.view-shop .catalog-panel .product-main {
  width: 100%;
  min-width: 0;
}

body.view-shop .catalog-panel .product-desc {
  min-height: 36px;
  max-height: 54px;
  overflow: hidden;
}

body.view-shop .catalog-panel .qty-add-row {
  grid-template-columns: 96px minmax(0, 1fr) !important;
}

body.view-shop .catalog-panel .product-preview-btn {
  min-height: 34px;
}

.cart-panel .cart-items {
  padding-bottom: 120px;
}

.cart-panel #createOrderBtn,
#cartCheckoutTopBtn,
#mobileCreateOrderBtn {
  min-height: 42px;
  font-size: 14px;
  font-weight: 900;
}

@media (max-width: 900px) {
  body.view-shop .catalog-panel .product-media {
    aspect-ratio: 4 / 3;
    max-height: none;
  }

  .cart-panel {
    max-height: min(76vh, 620px);
  }

  .cart-panel .cart-items {
    padding-bottom: 140px;
  }

  .mobile-cart-bar {
    grid-template-columns: minmax(90px, auto) minmax(0, 1fr) minmax(110px, auto);
  }
}

/* 2026-03-13: CI Automotive B2B listing/search theme match */
.b2b-desk-page.theme-cia-b2b {
  --cia-accent: #345cb0;
  --cia-accent-deep: #233e77;
  --cia-hero-gradient: linear-gradient(135deg, #1f355f 0%, #2f4f96 48%, #1f7f96 100%);
  --cia-soft-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  font-family: "Poppins", "Segoe UI", Tahoma, sans-serif;
  background:
    radial-gradient(920px 420px at 50% -120px, rgba(79, 172, 254, 0.22), transparent 72%),
    linear-gradient(180deg, #f5f8ff 0%, #e9eff9 100%);
}

.b2b-desk-page.theme-cia-b2b .desk-topbar {
  grid-template-columns: 290px minmax(420px, 1fr) auto;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(52, 92, 176, 0.2);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(35, 62, 119, 0.14);
}

.b2b-desk-page.theme-cia-b2b .brand-title {
  font-size: 22px;
  letter-spacing: 0.04em;
  background: var(--cia-soft-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.b2b-desk-page.theme-cia-b2b .brand-sub {
  color: #5b6884;
  font-size: 12px;
}

.b2b-desk-page.theme-cia-b2b .top-search {
  min-height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(52, 92, 176, 0.28);
  box-shadow: 0 10px 20px rgba(52, 92, 176, 0.11);
  padding: 0 16px;
}

.b2b-desk-page.theme-cia-b2b .top-search input {
  min-height: 46px;
  font-size: 14px;
  font-weight: 700;
}

.b2b-desk-page.theme-cia-b2b .desk-view-tabs {
  padding: 10px 12px 0;
  gap: 10px;
}

.b2b-desk-page.theme-cia-b2b .view-tab {
  border-radius: 999px;
  min-height: 36px;
  border-color: rgba(52, 92, 176, 0.22);
}

.b2b-desk-page.theme-cia-b2b .view-tab.active {
  background: var(--cia-soft-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(102, 126, 234, 0.3);
}

.b2b-desk-page.theme-cia-b2b .desk-main {
  padding: 12px;
  gap: 14px;
}

.b2b-desk-page.theme-cia-b2b .catalog-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.98) 100%);
}

.b2b-desk-page.theme-cia-b2b .catalog-panel > .panel-head {
  margin: 12px;
  border: 1px solid rgba(52, 92, 176, 0.2);
  border-left: 5px solid var(--cia-accent);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(35, 62, 119, 0.1);
}

.b2b-desk-page.theme-cia-b2b .catalog-panel > .panel-head h2 {
  font-size: 30px;
  color: var(--cia-accent-deep);
}

.b2b-desk-page.theme-cia-b2b .catalog-panel > .panel-head p {
  color: #536181;
}

.b2b-desk-page.theme-cia-b2b .catalog-meta {
  padding: 0 14px 10px;
  color: #4d5b7b;
  font-weight: 700;
}

.b2b-desk-page.theme-cia-b2b .catalog-tools {
  padding: 0 14px 12px;
}

.b2b-desk-page.theme-cia-b2b .catalog-tool-field,
.b2b-desk-page.theme-cia-b2b .catalog-tool-check {
  border-color: rgba(52, 92, 176, 0.24);
  border-radius: 12px;
  background: #fff;
}

.b2b-desk-page.theme-cia-b2b .catalog-pager {
  padding: 0 14px 12px;
}

.b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-grid {
  grid-template-columns: repeat(var(--b2b-cards-per-row), minmax(0, 1fr)) !important;
  gap: 14px !important;
  padding: 0 14px 16px !important;
}

.b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-card {
  display: grid !important;
  grid-template-columns: 126px minmax(0, 1fr) 230px !important;
  align-items: start;
  gap: 14px !important;
  min-height: 0;
  padding: 14px;
  border: 1px solid rgba(52, 92, 176, 0.2);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(35, 62, 119, 0.11);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(52, 92, 176, 0.34);
  box-shadow: 0 20px 40px rgba(35, 62, 119, 0.17);
}

.b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-media {
  width: 126px !important;
  height: 126px !important;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  border: 1px solid rgba(52, 92, 176, 0.22);
  background:
    radial-gradient(circle at 16% 16%, rgba(255, 255, 255, 0.94), transparent 58%),
    linear-gradient(145deg, #ebf1ff, #f2f7ff);
}

.b2b-desk-page.theme-cia-b2b .product-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.b2b-desk-page.theme-cia-b2b .product-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.b2b-desk-page.theme-cia-b2b .part-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--cia-soft-gradient);
  font-size: 12px;
  font-weight: 700;
}

.b2b-desk-page.theme-cia-b2b .category-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(52, 92, 176, 0.22);
  color: #384967;
  background: #f4f7ff;
  font-size: 12px;
  font-weight: 700;
}

.b2b-desk-page.theme-cia-b2b .product-head h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  color: #203053;
}

.b2b-desk-page.theme-cia-b2b .product-desc {
  margin: 0;
  min-height: 0;
  max-height: 42px;
  overflow: hidden;
  color: #596887;
  font-size: 13px;
  line-height: 1.4;
}

.b2b-desk-page.theme-cia-b2b .product-detail-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.b2b-desk-page.theme-cia-b2b .product-actions {
  display: grid;
  align-content: start;
  gap: 8px;
}

.b2b-desk-page.theme-cia-b2b .product-actions .price-row {
  justify-content: flex-start;
}

.b2b-desk-page.theme-cia-b2b .product-actions .price-row strong {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 14px;
  color: #fff;
  background: var(--cia-hero-gradient);
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
}

.b2b-desk-page.theme-cia-b2b .qty-add-row {
  grid-template-columns: 88px minmax(0, 1fr) !important;
  gap: 8px;
}

.b2b-desk-page.theme-cia-b2b .qty-add-row [data-add-cart] {
  min-height: 38px;
  border-radius: 999px;
  font-size: 13px;
}

.b2b-desk-page.theme-cia-b2b .product-preview-btn {
  min-height: 34px;
  border-radius: 999px;
}

.b2b-desk-page.theme-cia-b2b .product-pdf-btn {
  min-height: 34px;
  border-radius: 999px;
}

.cart-line {
  padding: 12px;
  border: 1px solid #d7e2f3;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  box-shadow: 0 8px 18px rgba(24, 45, 82, 0.06);
}

.cart-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.cart-top strong {
  font-size: 15px;
  color: #294481;
}

.cart-line-total {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: #fff;
  background: var(--cia-pill-gradient);
  font-weight: 800;
}

.cart-name {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.4;
  color: #203453;
  font-weight: 700;
}

.cart-actions {
  display: grid;
  grid-template-columns: 42px minmax(72px, 1fr) 42px auto;
  gap: 8px;
  align-items: center;
}

.cart-actions .btn {
  min-height: 38px;
  padding: 0 10px;
}

.cart-actions .cart-qty {
  min-height: 38px;
  text-align: center;
  font-weight: 800;
}

.b2b-desk-page.theme-cia-b2b .in-cart-note {
  color: #4b5d7e;
}

.b2b-desk-page.theme-cia-b2b .catalog-pager .btn {
  border-radius: 10px;
}

@media (max-width: 1400px) {
  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-card {
    grid-template-columns: 116px minmax(0, 1fr) 210px !important;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-media {
    width: 116px !important;
    height: 116px !important;
  }
}

@media (max-width: 1120px) {
  .b2b-desk-page.theme-cia-b2b .desk-topbar {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .b2b-desk-page.theme-cia-b2b .desk-view-tabs {
    padding: 8px 10px 0;
  }

  .b2b-desk-page.theme-cia-b2b .catalog-panel > .panel-head h2 {
    font-size: 24px;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-grid {
    grid-template-columns: 1fr !important;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-card {
    grid-template-columns: 110px minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-media {
    width: 110px !important;
    height: 110px !important;
  }

  .b2b-desk-page.theme-cia-b2b .product-actions {
    grid-column: 2 / 3;
  }
}

@media (max-width: 760px) {
  .b2b-desk-page.theme-cia-b2b .desk-view-tabs {
    gap: 6px;
  }

  .b2b-desk-page.theme-cia-b2b .catalog-panel > .panel-head {
    margin: 10px;
  }

  .b2b-desk-page.theme-cia-b2b .catalog-panel > .panel-head h2 {
    font-size: 20px;
  }

  .b2b-desk-page.theme-cia-b2b .catalog-panel > .panel-head p,
  .b2b-desk-page.theme-cia-b2b .catalog-panel > .panel-head .hint-row {
    font-size: 12px;
  }

  .b2b-desk-page.theme-cia-b2b .catalog-tools,
  .b2b-desk-page.theme-cia-b2b .catalog-pager,
  .b2b-desk-page.theme-cia-b2b .catalog-meta {
    padding-left: 10px;
    padding-right: 10px;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-grid {
    padding: 0 10px 14px !important;
    gap: 10px !important;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-card {
    grid-template-columns: 96px minmax(0, 1fr) !important;
    padding: 10px;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-media {
    width: 96px !important;
    height: 96px !important;
  }

  .b2b-desk-page.theme-cia-b2b .product-head h4 {
    font-size: 15px;
  }
}

@media (max-width: 560px) {
  .b2b-desk-page.theme-cia-b2b .catalog-tool-field,
  .b2b-desk-page.theme-cia-b2b .catalog-tool-check {
    flex: 1 1 100%;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-card {
    grid-template-columns: 1fr !important;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-media {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3;
  }

  .b2b-desk-page.theme-cia-b2b .product-actions {
    grid-column: 1 / -1;
  }
}

/* 2026-03-13: Quick-order interaction stability (no overlay-block on long line lists) */
.quick-order-panel {
  position: relative;
  overflow: hidden;
}

.quick-order-form {
  position: relative;
  z-index: 3;
}

.quick-suggest {
  position: relative;
  z-index: 9;
}

.quick-lines-wrap {
  min-height: 180px;
  max-height: min(56vh, 560px);
  overflow: auto;
  overscroll-behavior: contain;
  scroll-padding-bottom: 68px;
}

.quick-lines-wrap .orders-table,
.quick-lines-wrap .quick-lines-table {
  width: 100%;
}

.quick-order-foot {
  position: sticky;
  bottom: 0;
  z-index: 6;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(6px);
}

#quickCreateOrderBtn {
  position: relative;
  z-index: 7;
}

@media (max-width: 900px) {
  .quick-lines-wrap {
    max-height: min(48vh, 440px);
  }

  .quick-order-foot {
    bottom: calc(58px + env(safe-area-inset-bottom));
    padding-bottom: 8px;
  }
}

/* 2026-03-13: CI Automotive screenshot parity pass (shop listing + search + footer) */
.b2b-desk-page.theme-cia-b2b {
  --cia-bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --cia-cyan-gradient: linear-gradient(45deg, #4facfe 0%, #43e97b 100%);
  --cia-pill-gradient: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
  --cia-accent-gradient: linear-gradient(45deg, #f093fb 0%, #fa709a 100%);
  background: var(--cia-bg-gradient);
}

.b2b-desk-page.theme-cia-b2b .desk-topbar {
  grid-template-columns: minmax(220px, auto) 1fr auto;
  min-height: 76px;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(40, 56, 97, 0.1);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(21, 30, 58, 0.08);
}

.b2b-desk-page.theme-cia-b2b .brand-wrap {
  gap: 0;
}

.b2b-desk-page.theme-cia-b2b .header-view-tabs {
  align-self: center;
  justify-content: center;
  padding: 0 14px;
  flex-wrap: wrap;
}

.b2b-desk-page.theme-cia-b2b .brand-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(26px, 1.5vw, 34px);
  letter-spacing: 0.03em;
  background: linear-gradient(45deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.b2b-desk-page.theme-cia-b2b .brand-title .bi {
  font-size: 0.86em;
}

.b2b-desk-page.theme-cia-b2b .brand-sub,
.b2b-desk-page.theme-cia-b2b #userChip {
  display: none;
}

.b2b-desk-page.theme-cia-b2b .topbar-filler {
  min-height: 1px;
  display: none;
}

.b2b-desk-page.theme-cia-b2b #loginBtn,
.b2b-desk-page.theme-cia-b2b #logoutBtn {
  min-height: 44px;
  border-radius: 999px;
  padding: 0 14px;
  font-size: 13px;
}

.b2b-desk-page.theme-cia-b2b.login-hidden #loginBtn,
.b2b-desk-page.theme-cia-b2b.login-hidden #logoutBtn {
  display: none !important;
}

.b2b-desk-page.theme-cia-b2b .top-actions {
  justify-self: end;
}

.b2b-desk-page.theme-cia-b2b .top-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #19c37d 0%, #0e9f62 100%);
  box-shadow: 0 12px 24px rgba(10, 115, 74, 0.22);
}

.b2b-desk-page.theme-cia-b2b .top-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  color: #fff;
  background: var(--cia-pill-gradient);
}

.b2b-desk-page.theme-cia-b2b .top-cart-btn .count-dot {
  min-width: 22px;
  height: 22px;
  margin-left: 6px;
  border: 0;
  color: #fff;
  background: linear-gradient(45deg, #fa709a 0%, #fe6b8b 100%);
  box-shadow: 0 2px 8px rgba(250, 112, 154, 0.4);
}

.b2b-desk-page.theme-cia-b2b .shop-hero {
  position: relative;
  overflow: hidden;
  padding: 74px 16px 64px;
  background: var(--cia-bg-gradient);
}

.b2b-desk-page.theme-cia-b2b .shop-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.38;
  background:
    radial-gradient(circle at 10% 24%, rgba(255, 255, 255, 0.26) 0 2px, transparent 3px),
    radial-gradient(circle at 24% 72%, rgba(255, 255, 255, 0.22) 0 2px, transparent 3px),
    radial-gradient(circle at 47% 40%, rgba(255, 255, 255, 0.2) 0 2px, transparent 3px),
    radial-gradient(circle at 76% 26%, rgba(255, 255, 255, 0.24) 0 2px, transparent 3px),
    radial-gradient(circle at 92% 66%, rgba(255, 255, 255, 0.2) 0 2px, transparent 3px);
}

.b2b-desk-page.theme-cia-b2b .shop-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
}

.b2b-desk-page.theme-cia-b2b .shop-hero h1 {
  margin: 0 0 26px;
  text-align: center;
  color: #0f172a;
  font-size: clamp(34px, 2.9vw, 64px);
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-shadow: none;
}

.b2b-desk-page.theme-cia-b2b .shop-search-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0;
  max-width: 980px;
  margin: 0 auto;
}

.b2b-desk-page.theme-cia-b2b .shop-search-wrap .hero-search {
  min-height: 74px;
  border: 0;
  border-radius: 999px 0 0 999px;
  padding: 0 24px;
  box-shadow: 0 20px 36px rgba(17, 30, 67, 0.24);
}

.b2b-desk-page.theme-cia-b2b .shop-search-wrap .hero-search input {
  min-height: 70px;
  color: #203253;
  font-size: clamp(17px, 1.2vw, 24px);
  font-weight: 600;
}

.b2b-desk-page.theme-cia-b2b .shop-search-wrap .hero-search input::placeholder {
  color: #566987;
}

.b2b-desk-page.theme-cia-b2b .shop-search-wrap .hero-search kbd {
  display: none;
}

.b2b-desk-page.theme-cia-b2b .hero-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 74px;
  border: 0;
  border-radius: 0 999px 999px 0;
  padding: 0 34px;
  color: #fff;
  background: var(--cia-cyan-gradient);
  box-shadow: 0 20px 36px rgba(10, 164, 220, 0.26);
}

.b2b-desk-page.theme-cia-b2b .hero-search-btn:hover {
  color: #fff;
}

.b2b-desk-page.theme-cia-b2b.view-shop .desk-view-tabs {
  display: flex;
}

.b2b-desk-page.theme-cia-b2b.view-shop .desk-main {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 34px;
}

.b2b-desk-page.theme-cia-b2b.view-shop .cart-panel {
  position: fixed;
  top: 92px;
  right: 16px;
  left: auto;
  bottom: 16px;
  width: min(390px, calc(100vw - 32px));
  max-height: calc(100vh - 108px);
  z-index: 70;
  transform: translateX(108%);
  transition: transform 0.14s ease-out, box-shadow 0.14s ease-out;
  display: grid !important;
  pointer-events: none;
  box-shadow: 0 22px 46px rgba(18, 26, 54, 0.18);
}

.b2b-desk-page.theme-cia-b2b.view-shop.cart-open .cart-panel,
.b2b-desk-page.theme-cia-b2b.view-shop:not(.cart-collapsed) .cart-panel {
  transform: translateX(0);
  pointer-events: auto;
}

.b2b-desk-page.theme-cia-b2b.view-shop.cart-collapsed .cart-panel {
  transform: translateX(108%);
  pointer-events: none;
}

.b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.b2b-desk-page.theme-cia-b2b.view-shop .trending-panel {
  border: 0;
  background: transparent;
  box-shadow: none;
  max-width: 1120px;
  margin: 0 auto 24px;
}

.b2b-desk-page.theme-cia-b2b.view-shop .trending-panel-head,
.b2b-desk-page.theme-cia-b2b.view-shop .catalog-results-head {
  padding: 0 0 18px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  align-items: flex-end;
}

.b2b-desk-page.theme-cia-b2b.view-shop .catalog-results-head {
  display: none !important;
}

.b2b-desk-page.theme-cia-b2b.view-shop .trending-panel-head h2,
.b2b-desk-page.theme-cia-b2b.view-shop .catalog-results-head h2 {
  color: #2d3748;
  font-size: clamp(28px, 2.1vw, 38px);
}

.b2b-desk-page.theme-cia-b2b.view-shop .trending-panel-head p,
.b2b-desk-page.theme-cia-b2b.view-shop .catalog-results-head p {
  color: #718096;
  font-size: clamp(15px, 0.95vw, 18px);
}

.b2b-desk-page.theme-cia-b2b.view-shop .catalog-results-head .hint-row {
  color: #718096;
}

.b2b-desk-page.theme-cia-b2b.view-shop .trending-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.b2b-desk-page.theme-cia-b2b.view-shop .trending-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 18px;
  border: 1px solid rgba(102, 126, 234, 0.14);
  border-radius: 24px;
  background: #ffffff;
  color: #2d3748;
  text-align: left;
  backdrop-filter: none;
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.12);
}

.b2b-desk-page.theme-cia-b2b.view-shop .trending-card.active {
  border-color: rgba(102, 126, 234, 0.28);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.18);
}

.b2b-desk-page.theme-cia-b2b.view-shop .trending-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 88px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(8, 16, 36, 0.12);
}

.b2b-desk-page.theme-cia-b2b.view-shop .trending-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.b2b-desk-page.theme-cia-b2b.view-shop .trending-card-media.no-image span {
  font-size: 28px;
  font-weight: 900;
  color: #3d4cac;
  letter-spacing: 0.04em;
}

.b2b-desk-page.theme-cia-b2b.view-shop .trending-card-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.b2b-desk-page.theme-cia-b2b.view-shop .trending-card-copy strong {
  font-size: 20px;
  line-height: 1.15;
  color: #2d3748;
}

.b2b-desk-page.theme-cia-b2b.view-shop .trending-card-copy span:last-child {
  font-size: 13px;
  font-weight: 700;
  color: #667eea;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.b2b-desk-page.theme-cia-b2b.view-shop .trending-count-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(45deg, #f093fb, #fa709a);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.b2b-desk-page.theme-cia-b2b.view-shop #trendingResetBtn {
  border: 1px solid rgba(102, 126, 234, 0.18);
  background: #ffffff !important;
  color: #2d3748 !important;
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.1);
}

.b2b-desk-page.theme-cia-b2b.view-shop #catalogTools {
  display: none;
}

.b2b-desk-page.theme-cia-b2b.view-shop #catalogMeta {
  max-width: 1120px;
  margin: 0 auto 18px;
  padding: 0;
  text-align: center;
  color: #fff;
  font-size: clamp(25px, 1.5vw, 34px);
  font-weight: 700;
}

.b2b-desk-page.theme-cia-b2b.view-shop #catalogMeta::before {
  content: "⌕ ";
  opacity: 0.95;
}

.b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-grid {
  grid-template-columns: 1fr !important;
  gap: 20px !important;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 !important;
}

.b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-card {
  display: grid !important;
  grid-template-columns: 176px minmax(0, 1fr) 240px !important;
  align-items: center;
  gap: 22px !important;
  min-height: 0;
  padding: 20px 26px;
  border: 0;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.14);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.22);
}

.b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-media {
  width: 170px !important;
  height: 130px !important;
  border: 0;
  border-radius: 14px;
  background: #f8fafc;
  box-shadow: 0 8px 18px rgba(102, 126, 234, 0.08);
}

.b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-media img {
  object-fit: contain;
}

.b2b-desk-page.theme-cia-b2b.view-shop .product-main {
  gap: 6px;
}

.b2b-desk-page.theme-cia-b2b.view-shop .product-kicker {
  display: block;
}

.b2b-desk-page.theme-cia-b2b.view-shop .part-pill {
  display: inline-block;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  color: #4facfe;
  background: transparent;
  font-size: clamp(24px, 1.8vw, 36px);
  font-weight: 800;
}

.b2b-desk-page.theme-cia-b2b.view-shop .category-pill {
  display: none;
}

.b2b-desk-page.theme-cia-b2b.view-shop .product-head h4 {
  margin: 0;
  color: #2d3748;
  font-size: clamp(20px, 1.2vw, 29px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.b2b-desk-page.theme-cia-b2b.view-shop .product-desc,
.b2b-desk-page.theme-cia-b2b.view-shop .product-detail-row,
.b2b-desk-page.theme-cia-b2b.view-shop .product-meta,
.b2b-desk-page.theme-cia-b2b.view-shop .inline-pill,
.b2b-desk-page.theme-cia-b2b.view-shop .in-cart-note,
.b2b-desk-page.theme-cia-b2b.view-shop .product-preview-btn {
  display: none !important;
}

.b2b-desk-page.theme-cia-b2b.view-shop .product-media-hint {
  top: 7px;
  right: 7px;
}

.b2b-desk-page.theme-cia-b2b.view-shop .product-actions {
  justify-items: end;
  align-content: center;
  gap: 10px;
}

.b2b-desk-page.theme-cia-b2b.view-shop .product-actions .price-row strong {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 12px 24px;
  color: #fff;
  background: var(--cia-pill-gradient);
  font-size: clamp(18px, 1.2vw, 30px);
  line-height: 1;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.18);
}

.b2b-desk-page.theme-cia-b2b.view-shop .qty-add-row {
  grid-template-columns: 1fr !important;
}

.b2b-desk-page.theme-cia-b2b.view-shop .qty-input {
  display: none !important;
}

.b2b-desk-page.theme-cia-b2b.view-shop .qty-add-row [data-add-cart] {
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  padding: 0 28px;
  color: #fff !important;
  background: var(--cia-cyan-gradient) !important;
  font-size: clamp(15px, 1vw, 22px);
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(79, 172, 254, 0.24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.b2b-desk-page.theme-cia-b2b.view-shop .product-pdf-btn {
  display: none !important;
}

.b2b-desk-page.theme-cia-b2b.view-shop #catalogPager {
  max-width: 1120px;
  margin: 26px auto 22px;
}

.b2b-desk-page.theme-cia-b2b.view-shop #catalogPagerBottom {
  max-width: 1120px;
  margin: 16px auto 36px;
}

.b2b-desk-page.theme-cia-b2b.view-shop .catalog-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
}

.b2b-desk-page.theme-cia-b2b.view-shop .catalog-pager-pages {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.b2b-desk-page.theme-cia-b2b.view-shop .catalog-pager .btn {
  min-height: 56px;
  border: 0;
  border-radius: 14px;
  min-width: 56px;
  color: #4a60c8;
  background: #fff;
  font-size: 20px;
}

.b2b-desk-page.theme-cia-b2b.view-shop .catalog-pager .show-more-btn {
  min-height: 68px;
  min-width: 420px;
  padding: 0 30px;
  border-radius: 999px;
  color: #fff !important;
  background: linear-gradient(45deg, #667eea 0%, #764ba2 100%) !important;
  box-shadow: 0 14px 28px rgba(102, 126, 234, 0.28);
  font-size: clamp(22px, 1.25vw, 29px);
  font-weight: 800;
}

.b2b-desk-page.theme-cia-b2b.view-shop .catalog-pager .show-more-btn::before {
  content: "⌄ ";
  font-weight: 900;
}

.b2b-desk-page.theme-cia-b2b.view-shop .catalog-pager .btn.primary-btn {
  color: #fff !important;
  background: var(--cia-pill-gradient) !important;
}

.b2b-desk-page.theme-cia-b2b.view-shop .catalog-pager [data-page-prev][disabled] {
  display: none;
}

.b2b-desk-page.theme-cia-b2b.view-shop .catalog-pager .catalog-pager-hint {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  font-weight: 700;
}

.b2b-desk-page.theme-cia-b2b .shop-footer {
  margin-top: 34px;
  padding: 44px 16px 18px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 24%, rgba(255, 255, 255, 0.24) 0 3px, transparent 3px),
    radial-gradient(circle at 39% 78%, rgba(255, 255, 255, 0.18) 0 3px, transparent 3px),
    radial-gradient(circle at 75% 31%, rgba(255, 255, 255, 0.2) 0 3px, transparent 3px),
    radial-gradient(circle at 95% 66%, rgba(255, 255, 255, 0.16) 0 3px, transparent 3px),
    var(--cia-bg-gradient);
}

.b2b-desk-page.theme-cia-b2b .shop-footer-inner {
  display: grid;
  grid-template-columns: 1.15fr .9fr .9fr 1.05fr;
  gap: 30px;
  max-width: 1120px;
  margin: 0 auto;
}

.b2b-desk-page.theme-cia-b2b .shop-footer h4 {
  margin: 0 0 10px;
  font-size: clamp(24px, 1.5vw, 34px);
}

.b2b-desk-page.theme-cia-b2b .shop-footer p {
  margin: 0 0 10px;
  opacity: 0.96;
  font-size: clamp(16px, 0.92vw, 19px);
  line-height: 1.45;
}

.b2b-desk-page.theme-cia-b2b .shop-footer a {
  color: inherit;
  text-decoration: none;
}

.b2b-desk-page.theme-cia-b2b .footer-cart-btn {
  margin-top: 16px;
  min-height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.b2b-desk-page.theme-cia-b2b .footer-right {
  text-align: right;
}

.b2b-desk-page.theme-cia-b2b .footer-link-col {
  text-align: left;
}

.b2b-desk-page.theme-cia-b2b .footer-link-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.b2b-desk-page.theme-cia-b2b .footer-link-list li {
  font-size: clamp(15px, 0.86vw, 18px);
  line-height: 1.4;
  opacity: 0.96;
}

.b2b-desk-page.theme-cia-b2b .footer-contact-col p:last-of-type {
  margin-bottom: 0;
}

.b2b-desk-page.theme-cia-b2b .footer-social {
  display: inline-flex;
  gap: 10px;
  margin: 8px 0 14px;
}

.b2b-desk-page.theme-cia-b2b .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.22);
}

.b2b-desk-page.theme-cia-b2b .footer-social a .bi {
  font-size: 18px;
}

.b2b-desk-page.theme-cia-b2b .footer-copy {
  max-width: 1120px;
  margin: 30px auto 0;
  padding-top: 14px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: clamp(14px, 0.8vw, 17px);
  opacity: 0.9;
}

.b2b-desk-page.theme-cia-b2b:not(.view-shop) .shop-hero {
  display: none;
}

@media (max-width: 1180px) {
  .b2b-desk-page.theme-cia-b2b.view-shop .trending-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .b2b-desk-page.theme-cia-b2b .shop-search-wrap .hero-search,
  .b2b-desk-page.theme-cia-b2b .hero-search-btn {
    min-height: 62px;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-card {
    grid-template-columns: 142px minmax(0, 1fr) 200px !important;
    padding: 16px 18px;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-media {
    width: 136px !important;
    height: 108px !important;
  }
}

@media (max-width: 900px) {
  .b2b-desk-page.theme-cia-b2b.view-shop .trending-panel-head,
  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-results-head {
    align-items: flex-start;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .trending-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .b2b-desk-page.theme-cia-b2b .desk-topbar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 8px 12px;
    align-items: start;
  }

  .b2b-desk-page.theme-cia-b2b .brand-wrap {
    min-width: 0;
    width: 100%;
  }

  .b2b-desk-page.theme-cia-b2b .brand-title {
    display: inline-flex;
    max-width: 100%;
    font-size: clamp(18px, 4.8vw, 28px);
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.12;
    flex-wrap: wrap;
  }

  .b2b-desk-page.theme-cia-b2b .header-view-tabs {
    display: none !important;
  }

  .b2b-desk-page.theme-cia-b2b .topbar-filler {
    display: none;
  }

  .b2b-desk-page.theme-cia-b2b .top-actions {
    width: 100% !important;
    margin-left: 0 !important;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .b2b-desk-page.theme-cia-b2b .shop-hero {
    padding: 46px 12px 36px;
  }

  .b2b-desk-page.theme-cia-b2b .shop-search-wrap {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .b2b-desk-page.theme-cia-b2b .shop-search-wrap .hero-search {
    border-radius: 999px;
  }

  .b2b-desk-page.theme-cia-b2b .hero-search-btn {
    border-radius: 999px;
  }

  .b2b-desk-page.theme-cia-b2b .top-cart-btn {
    min-height: 46px;
    padding: 0 14px;
    font-size: 14px;
  }

  .b2b-desk-page.theme-cia-b2b .top-whatsapp-btn {
    min-height: 46px;
    padding: 0 14px;
    font-size: 14px;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .desk-main {
    padding: 0 10px 20px;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-card {
    grid-template-columns: 106px minmax(0, 1fr) !important;
    gap: 12px !important;
    border-radius: 18px;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-pager .show-more-btn {
    min-width: 0;
    width: 100%;
    max-width: 520px;
    min-height: 58px;
    font-size: 20px;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-media {
    width: 106px !important;
    height: 92px !important;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .product-actions {
    grid-column: 2 / 3;
    justify-items: start;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .product-pdf-btn {
    min-height: 40px;
  }

  .b2b-desk-page.theme-cia-b2b .shop-footer-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .b2b-desk-page.theme-cia-b2b .footer-right {
    text-align: left;
  }

  .b2b-desk-page.theme-cia-b2b .footer-cart-btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .b2b-desk-page.theme-cia-b2b.view-shop .trending-grid {
    grid-template-columns: 1fr;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .trending-card {
    grid-template-columns: 82px minmax(0, 1fr);
    padding: 14px;
    border-radius: 18px;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .trending-card-media {
    width: 82px;
    height: 76px;
    border-radius: 14px;
  }

  .cart-panel {
    top: 64px;
    right: 8px;
    bottom: calc(74px + env(safe-area-inset-bottom));
    width: calc(100vw - 16px);
    max-height: calc(100vh - 148px);
  }

  .b2b-desk-page.theme-cia-b2b .desk-topbar {
    padding: 8px 10px;
  }

  .b2b-desk-page.theme-cia-b2b .brand-title {
    font-size: 18px;
    gap: 6px;
  }

  .b2b-desk-page.theme-cia-b2b .top-actions {
    gap: 6px;
    justify-content: space-between;
  }

  .b2b-desk-page.theme-cia-b2b .top-menu-btn {
    display: none !important;
  }

  .b2b-desk-page.theme-cia-b2b .top-whatsapp-btn {
    min-height: 42px;
    padding: 0 12px;
    font-size: 0;
  }

  .b2b-desk-page.theme-cia-b2b .top-whatsapp-btn .bi {
    font-size: 17px;
  }

  .b2b-desk-page.theme-cia-b2b .top-cart-btn {
    min-width: 58px;
    min-height: 42px;
    padding: 0 10px;
    gap: 6px;
    font-size: 0;
  }

  .b2b-desk-page.theme-cia-b2b .top-cart-btn .bi {
    font-size: 17px;
  }

  .b2b-desk-page.theme-cia-b2b .top-cart-btn .count-dot {
    min-width: 20px;
    height: 20px;
    margin-left: 0;
    font-size: 11px;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .product-pdf-btn {
    width: 100%;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-card {
    grid-template-columns: 1fr !important;
    padding: 12px;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-pager .show-more-btn {
    min-height: 52px;
    font-size: 17px;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-media {
    width: 100% !important;
    height: 162px !important;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .product-actions {
    grid-column: 1 / -1;
  }
}

/* 2026-03-14: force cart into modal overlay, not page flow */
.b2b-desk-page.theme-cia-b2b #cartModal {
  z-index: 120;
  display: none;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 90px 16px 16px;
  background: rgba(14, 22, 46, 0.32);
  backdrop-filter: blur(6px);
}

.b2b-desk-page.theme-cia-b2b #cartModal.open {
  display: flex;
}

.b2b-desk-page.theme-cia-b2b #cartModal .cart-panel {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  width: min(560px, calc(100vw - 32px)) !important;
  max-height: calc(100vh - 110px) !important;
  margin: 0 !important;
  border-radius: 24px;
  transform: none !important;
  pointer-events: auto !important;
  overflow: hidden;
  box-shadow: 0 28px 72px rgba(11, 18, 42, 0.32);
}

.b2b-desk-page.theme-cia-b2b #cartModal .cart-panel.is-hidden {
  display: none !important;
}

.b2b-desk-page.theme-cia-b2b #cartModal .cart-panel .cart-items {
  padding-bottom: 18px;
}

.b2b-desk-page.theme-cia-b2b .top-actions #loginBtn,
.b2b-desk-page.theme-cia-b2b .top-actions #logoutBtn {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
}

.b2b-desk-page.theme-cia-b2b.login-hidden .top-actions #logoutBtn {
  display: none !important;
}

.b2b-desk-page.theme-cia-b2b:not(.login-hidden) .top-actions #loginBtn {
  display: none !important;
}

@media (max-width: 900px) {
  .b2b-desk-page.theme-cia-b2b #cartModal {
    justify-content: center;
    align-items: flex-start;
    padding: 78px 12px 12px;
  }

  .b2b-desk-page.theme-cia-b2b #cartModal .cart-panel {
    width: min(100%, 640px) !important;
    max-height: calc(100vh - 100px) !important;
  }
}

/* 2026-03-16 final mobile cleanup */
@media (max-width: 900px) {
  .b2b-desk-page {
    padding-bottom: calc(82px + env(safe-area-inset-bottom)) !important;
  }

  .b2b-desk-page .mobile-cart-bar,
  .b2b-desk-page .mobile-quick-nav {
    display: none !important;
  }

  .b2b-desk-page.theme-cia-b2b .top-actions {
    display: flex !important;
    width: auto !important;
    margin-left: auto;
    gap: 8px;
  }

  .b2b-desk-page.theme-cia-b2b .top-whatsapp-btn,
  .b2b-desk-page.theme-cia-b2b .top-cart-btn {
    min-height: 40px !important;
    min-width: 0 !important;
    padding: 0 12px !important;
    font-size: 13px !important;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .desk-main {
    padding: 0 8px 20px !important;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-grid {
    padding: 0 4px 12px !important;
    gap: 10px !important;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-card {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 12px !important;
    border-radius: 18px !important;
    overflow: hidden !important;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-media {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3 !important;
    max-height: none !important;
    border-radius: 14px !important;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-main,
  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-actions,
  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-head,
  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-kicker {
    min-width: 0 !important;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-head h4,
  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-desc {
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-head h4 {
    font-size: 14px !important;
    line-height: 1.28 !important;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-desc {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-detail-row {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-actions {
    grid-column: auto !important;
    justify-items: stretch !important;
    gap: 8px !important;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .price-row {
    justify-content: flex-start !important;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .qty-add-row {
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .qty-add-row [data-add-cart],
  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-preview-btn {
    width: 100% !important;
    min-width: 0 !important;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .qty-add-row [data-add-cart] {
    min-height: 50px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    line-height: 1.15 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  .b2b-desk-page.theme-cia-b2b #cartModal {
    padding: 72px 8px 8px !important;
  }

  .b2b-desk-page.theme-cia-b2b #cartModal .cart-panel {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    max-height: calc(100vh - 88px) !important;
    border-radius: 18px !important;
  }

  .b2b-desk-page.theme-cia-b2b #cartModal .cart-items {
    padding-bottom: 24px !important;
  }
}

@media (max-width: 560px) {
  .b2b-desk-page.theme-cia-b2b .top-whatsapp-btn {
    font-size: 0 !important;
    padding: 0 10px !important;
  }

  .b2b-desk-page.theme-cia-b2b .top-whatsapp-btn .bi,
  .b2b-desk-page.theme-cia-b2b .top-cart-btn .bi {
    font-size: 16px !important;
  }

  .b2b-desk-page.theme-cia-b2b .top-cart-btn {
    font-size: 13px !important;
    gap: 6px !important;
  }

  .b2b-desk-page.theme-cia-b2b .brand-title {
    font-size: 18px !important;
  }

  .scroll-top-fab {
    right: 10px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    min-height: 42px;
    min-width: 42px;
    padding: 0 12px;
    gap: 6px;
  }

  .scroll-top-fab span {
    font-size: 12px;
  }
}

/* 2026-03-16 quick-order stability + common brand link styling */
.b2b-desk-page.theme-cia-b2b .brand-home-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.b2b-desk-page.theme-cia-b2b .brand-home-link:hover {
  color: inherit;
  text-decoration: none;
}

.b2b-desk-page.theme-cia-b2b .quick-order-panel {
  overflow: visible !important;
}

.b2b-desk-page.theme-cia-b2b .quick-order-form {
  position: relative;
  z-index: 4;
  align-items: start !important;
}

.b2b-desk-page.theme-cia-b2b .quick-order-form > * {
  align-self: start;
}

.b2b-desk-page.theme-cia-b2b .quick-user-pill,
.b2b-desk-page.theme-cia-b2b #quickPaymentMode,
.b2b-desk-page.theme-cia-b2b #quickSkuInput,
.b2b-desk-page.theme-cia-b2b #quickQtyInput,
.b2b-desk-page.theme-cia-b2b #quickAddLineBtn,
.b2b-desk-page.theme-cia-b2b #quickClearBtn {
  min-height: 42px !important;
}

.b2b-desk-page.theme-cia-b2b .quick-sku-field {
  position: relative !important;
  z-index: 20;
}

.b2b-desk-page.theme-cia-b2b .quick-suggest {
  position: absolute !important;
  top: calc(100% + 6px) !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 40 !important;
  display: none;
  max-height: 300px !important;
  overflow-y: auto !important;
}

.b2b-desk-page.theme-cia-b2b .quick-suggest.open {
  display: grid !important;
}

.b2b-desk-page.theme-cia-b2b .quick-lines-wrap {
  position: relative;
  z-index: 1;
}

.b2b-desk-page.theme-cia-b2b .quick-lines-table,
.b2b-desk-page.theme-cia-b2b .quick-lines-wrap .orders-table {
  table-layout: fixed;
}

.b2b-desk-page.theme-cia-b2b .quick-lines-wrap td,
.b2b-desk-page.theme-cia-b2b .quick-lines-wrap th {
  vertical-align: top;
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  .b2b-desk-page.theme-cia-b2b .quick-order-form {
    grid-template-columns: minmax(180px, 1fr) 110px minmax(220px, 1.2fr) 92px auto auto !important;
  }
}

@media (max-width: 900px) {
  .b2b-desk-page.theme-cia-b2b .quick-order-form {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .b2b-desk-page.theme-cia-b2b .quick-user-pill,
  .b2b-desk-page.theme-cia-b2b .quick-sku-field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .b2b-desk-page.theme-cia-b2b .quick-order-form {
    grid-template-columns: 1fr !important;
  }

  .b2b-desk-page.theme-cia-b2b .quick-user-pill,
  .b2b-desk-page.theme-cia-b2b .quick-sku-field,
  .b2b-desk-page.theme-cia-b2b #quickPaymentMode,
  .b2b-desk-page.theme-cia-b2b #quickQtyInput,
  .b2b-desk-page.theme-cia-b2b #quickAddLineBtn,
  .b2b-desk-page.theme-cia-b2b #quickClearBtn {
    grid-column: auto !important;
    width: 100%;
  }
}

/* 2026-03-16 storefront refresh: persistent search + menu route + newer visual system */
.b2b-desk-page.theme-cia-b2b {
  --cia-bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --cia-cyan-gradient: linear-gradient(45deg, #4facfe 0%, #43e97b 100%);
  --cia-pill-gradient: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
  --cia-border-strong: rgba(28, 53, 101, 0.12);
  background:
    radial-gradient(980px 580px at 8% -10%, rgba(102, 126, 234, 0.12), transparent 56%),
    radial-gradient(920px 540px at 100% 0%, rgba(240, 147, 251, 0.12), transparent 54%),
    linear-gradient(180deg, #eef4fd 0%, #f8fbff 26%, #eef3fb 100%) !important;
}

.b2b-desk-page.theme-cia-b2b .desk-topbar {
  border-bottom: 1px solid var(--cia-border-strong);
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(14px);
}

.b2b-desk-page.theme-cia-b2b .brand-title {
  background: linear-gradient(45deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.b2b-desk-page.theme-cia-b2b .top-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  border: 1px solid var(--cia-border-strong);
  border-radius: 999px;
  padding: 0 18px;
  color: #4a60c8;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 22px rgba(18, 35, 66, 0.08);
}

.b2b-desk-page.theme-cia-b2b .shop-hero {
  padding-top: 58px;
  padding-bottom: 46px;
  background: var(--cia-bg-gradient);
}

.b2b-desk-page.theme-cia-b2b .catalogue-maintenance-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto 18px;
  padding: 14px 16px;
  border-radius: 22px;
  border: 1px solid rgba(189, 222, 57, 0.45);
  background: linear-gradient(135deg, rgba(239,255,188,.96), rgba(255,255,255,.95));
  box-shadow: 0 16px 40px rgba(80, 109, 16, .12);
}

.b2b-desk-page.theme-cia-b2b .catalogue-maintenance-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #17212c;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.b2b-desk-page.theme-cia-b2b .catalogue-maintenance-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.b2b-desk-page.theme-cia-b2b .catalogue-maintenance-copy strong {
  font-size: 15px;
  font-weight: 800;
  color: #17212c;
}

.b2b-desk-page.theme-cia-b2b .catalogue-maintenance-copy span {
  font-size: 13px;
  line-height: 1.5;
  color: #4b5d72;
}

.b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel {
  position: relative;
}

.b2b-desk-page.theme-cia-b2b .catalog-workbar {
  position: sticky;
  top: 92px;
  z-index: 24;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto 14px;
  padding: 14px;
  border: 1px solid rgba(22, 52, 95, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 28px rgba(16, 31, 59, 0.1);
}

.b2b-desk-page.theme-cia-b2b .catalog-menu-btn {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
}

.b2b-desk-page.theme-cia-b2b .catalog-inline-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(22, 52, 95, 0.1);
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.b2b-desk-page.theme-cia-b2b .catalog-inline-search .bi {
  color: #667eea;
  font-size: 15px;
}

.b2b-desk-page.theme-cia-b2b .catalog-inline-search input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #2d3748;
  font-size: 15px;
  font-weight: 700;
}

.b2b-desk-page.theme-cia-b2b .catalog-inline-search input::placeholder {
  color: #718096;
}

.b2b-desk-page.theme-cia-b2b.view-shop #catalogMeta {
  display: block !important;
  max-width: 1120px;
  margin: 0 auto 16px;
  padding: 0 6px;
  color: #667eea !important;
  text-align: left !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

.b2b-desk-page.theme-cia-b2b.view-shop #catalogMeta::before {
  content: none !important;
}

.b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 255, 0.96));
  box-shadow: 0 16px 32px rgba(18, 32, 59, 0.12);
}

.b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-media {
  background: linear-gradient(135deg, #f8fbff, #eef5ff);
}

.b2b-desk-page.theme-cia-b2b.view-shop .product-actions .price-row strong {
  box-shadow: 0 12px 24px rgba(102, 126, 234, 0.18);
}

@media (max-width: 900px) {
  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel {
    padding: 10px 0 0 !important;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.98)) !important;
    border-radius: 28px 28px 0 0;
  }

  .b2b-desk-page.theme-cia-b2b .top-actions {
    display: flex !important;
    width: auto !important;
    margin-left: auto;
    gap: 8px;
  }

  .b2b-desk-page.theme-cia-b2b .top-menu-btn,
  .b2b-desk-page.theme-cia-b2b .top-whatsapp-btn,
  .b2b-desk-page.theme-cia-b2b .top-cart-btn {
    min-height: 42px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
  }

  .b2b-desk-page.theme-cia-b2b .catalog-workbar {
    top: 72px;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    margin: 0 10px 10px;
    padding: 8px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 24px rgba(102, 126, 234, 0.12);
  }

  .b2b-desk-page.theme-cia-b2b #catalogClearSearchBtn {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 40px;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop #catalogMeta {
    margin-bottom: 8px;
    padding: 0 12px;
    font-size: 13px !important;
    text-align: center !important;
  }
}

@media (max-width: 560px) {
  .b2b-desk-page.theme-cia-b2b .top-menu-btn {
    min-width: 44px;
    padding: 0 10px !important;
    font-size: 0 !important;
    gap: 0;
  }

  .b2b-desk-page.theme-cia-b2b .top-menu-btn .bi,
  .b2b-desk-page.theme-cia-b2b .top-whatsapp-btn .bi,
  .b2b-desk-page.theme-cia-b2b .top-cart-btn .bi {
    font-size: 16px !important;
  }

  .b2b-desk-page.theme-cia-b2b .catalog-workbar {
    top: 64px;
    padding: 8px;
    gap: 6px;
  }

  .b2b-desk-page.theme-cia-b2b .catalog-menu-btn {
    min-height: 38px;
    min-width: 0;
    padding: 0 14px;
    font-size: 13px;
  }

  .b2b-desk-page.theme-cia-b2b .catalog-menu-btn .bi {
    font-size: 15px;
  }

  .b2b-desk-page.theme-cia-b2b .catalog-inline-search {
    min-height: 40px;
    padding: 0 12px;
    border-radius: 999px;
  }

  .b2b-desk-page.theme-cia-b2b .catalog-inline-search input {
    min-height: 36px;
    font-size: 13px;
  }
}

@media (max-width: 900px) {
  .b2b-desk-page.theme-cia-b2b .mobile-quick-nav {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    left: 8px;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    border: 1px solid rgba(22, 52, 95, 0.12);
    border-radius: 18px;
    padding: 8px;
    gap: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 36px rgba(16, 31, 59, 0.16);
    backdrop-filter: blur(16px);
  }

  .b2b-desk-page.theme-cia-b2b .mobile-nav-btn {
    min-height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(22, 52, 95, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 247, 255, 0.98));
    color: #17345a;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  }

  .b2b-desk-page.theme-cia-b2b .scroll-top-fab {
    display: none !important;
  }
}

@media (max-width: 560px) {
  .b2b-desk-page.theme-cia-b2b .mobile-nav-btn {
    font-size: 11px;
    gap: 5px;
    padding: 0 2px;
  }

  .b2b-desk-page.theme-cia-b2b .catalog-workbar {
    top: 64px;
    grid-template-columns: minmax(0, 1fr);
  }

  .b2b-desk-page.theme-cia-b2b .catalog-menu-btn,
  .b2b-desk-page.theme-cia-b2b #catalogClearSearchBtn {
    width: 100%;
    font-size: 13px;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-grid {
    padding: 0 8px 12px !important;
    gap: 14px !important;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-card {
    padding: 14px !important;
    border-radius: 22px !important;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.12) !important;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-media {
    border-radius: 18px !important;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .price-row strong {
    padding: 10px 20px !important;
    font-size: 17px !important;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .qty-add-row [data-add-cart] {
    min-height: 48px !important;
    font-size: 13px !important;
    border-radius: 999px !important;
  }
}

/* Final B2B row-sheet override: keep this block last so older duplicated card rules
   earlier in the file cannot pull the catalog back into the legacy pill layout. */
.b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-grid {
  grid-template-columns: 1fr !important;
  gap: 18px !important;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 10px 18px !important;
}

.b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-card {
  display: grid !important;
  grid-template-columns: 190px minmax(0, 1fr) 250px !important;
  align-items: center !important;
  gap: 22px !important;
  padding: 22px 24px !important;
  border: 1px solid #dae3f1 !important;
  border-radius: 24px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96)) !important;
  box-shadow: 0 16px 34px rgba(17, 33, 61, 0.12) !important;
}

.b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-media {
  width: 182px !important;
  height: 142px !important;
  justify-self: start;
  align-self: center;
  border: 1px solid #d9e3f1 !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, #ffffff, #f3f7fd) !important;
  box-shadow: 0 8px 18px rgba(16, 31, 58, 0.08) !important;
}

.b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-media img {
  object-fit: contain !important;
  padding: 6px !important;
}

.b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-main.product-sheet-main {
  display: block !important;
  min-width: 0;
}

.b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-sheet-grid {
  display: grid !important;
  gap: 10px !important;
}

.b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-sheet-row {
  display: grid !important;
  grid-template-columns: 158px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 14px !important;
  margin: 0 !important;
}

.b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-sheet-row span {
  color: #6d7d93 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
}

.b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-sheet-row b {
  color: #182a45 !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  min-width: 0;
  word-break: break-word;
}

.b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-sheet-row-name b {
  font-size: 19px !important;
  line-height: 1.28 !important;
}

.b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-sheet-part {
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
  min-height: 34px;
  padding: 4px 12px !important;
  border-radius: 10px !important;
  background: linear-gradient(180deg, #ffd977, #f4b943) !important;
  color: #4d3400 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
}

.b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-sheet-current-price {
  color: #148a4d !important;
  font-size: 33px !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em;
}

.b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-sheet-previous-price {
  color: #5d6d86 !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  text-decoration: line-through !important;
  text-decoration-thickness: 2px !important;
}

.b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-sheet-description {
  color: #4a5c78 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

.b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-actions {
  display: grid !important;
  gap: 10px !important;
  align-self: stretch;
  justify-items: stretch;
}

.b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-actions .inline-pill {
  justify-self: start;
}

.b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .qty-add-row {
  grid-template-columns: 92px minmax(0, 1fr) !important;
  gap: 10px !important;
}

.b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .qty-add-row .qty-input {
  min-height: 48px !important;
  border-radius: 12px !important;
  font-size: 16px !important;
}

.b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .qty-add-row [data-add-cart] {
  min-height: 52px !important;
  border-radius: 999px !important;
  font-size: 17px !important;
  font-weight: 900 !important;
}

.b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-preview-btn {
  min-height: 40px !important;
  border-radius: 12px !important;
}

@media (max-width: 980px) {
  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-card {
    grid-template-columns: 168px minmax(0, 1fr) !important;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .b2b-desk-page.theme-cia-b2b .catalogue-maintenance-banner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .b2b-desk-page.theme-cia-b2b .catalogue-maintenance-badge {
    justify-self: start;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-card {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 16px !important;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-media {
    width: min(100%, 240px) !important;
    height: 168px !important;
    justify-self: center;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-sheet-row {
    grid-template-columns: 112px minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-sheet-current-price {
    font-size: 28px !important;
  }

  .b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-sheet-previous-price {
    font-size: 20px !important;
  }
}


/* v31 shop responsiveness */
body.theme-cia-b2b.view-shop .desk-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
}
body.theme-cia-b2b.view-shop .catalog-panel,
body.theme-cia-b2b.view-shop .quick-order-panel,
body.theme-cia-b2b.view-shop .orders-panel,
body.theme-cia-b2b.view-shop .accounts-panel,
body.theme-cia-b2b.view-shop .communication-panel {
  overflow: visible;
}
body.theme-cia-b2b.view-shop .catalog-panel .product-grid,
body.theme-cia-b2b.view-shop .quick-order-panel .table-wrap,
body.theme-cia-b2b.view-shop .orders-panel .table-wrap {
  min-width: 0;
}
body.theme-cia-b2b.view-shop .cart-panel {
  max-width: min(96vw, 430px);
}
@media (max-width: 960px) {
  body.theme-cia-b2b.view-shop {
    padding-bottom: 88px;
  }
  body.theme-cia-b2b.view-shop .desk-topbar {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  body.theme-cia-b2b.view-shop .header-view-tabs,
  body.theme-cia-b2b.view-shop .top-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  body.theme-cia-b2b.view-shop .shop-hero {
    padding-top: 18px;
  }
  body.theme-cia-b2b.view-shop .shop-search-wrap,
  body.theme-cia-b2b.view-shop .catalog-tools,
  body.theme-cia-b2b.view-shop .quick-order-form,
  body.theme-cia-b2b.view-shop .quick-footer,
  body.theme-cia-b2b.view-shop .modal-actions {
    grid-template-columns: 1fr;
    display: grid;
  }
}
@media (max-width: 640px) {
  body.theme-cia-b2b.view-shop .panel {
    padding: 14px;
    border-radius: 18px;
  }
  body.theme-cia-b2b.view-shop .hero-search,
  body.theme-cia-b2b.view-shop .hero-search-btn,
  body.theme-cia-b2b.view-shop .catalog-tool-field,
  body.theme-cia-b2b.view-shop .top-actions .btn,
  body.theme-cia-b2b.view-shop .header-view-tabs .view-tab {
    width: 100%;
  }
  body.theme-cia-b2b.view-shop .cart-panel {
    width: calc(100vw - 20px);
    max-width: none;
    border-radius: 18px;
  }
  body.theme-cia-b2b.view-shop .cart-foot,
  body.theme-cia-b2b.view-shop .cart-actions,
  body.theme-cia-b2b.view-shop .row-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* 2026-04-17 search-first B2B catalog pass */
.b2b-desk-page.theme-cia-b2b .shop-search-wrap{
  grid-template-columns:minmax(0,1fr) 240px auto auto !important;
  gap:12px !important;
  max-width:1180px !important;
  align-items:center !important;
}
.b2b-desk-page.theme-cia-b2b .catalog-hero-filter{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:74px;
  padding:0 18px;
  border-radius:999px;
  background:#fff;
  box-shadow:0 20px 36px rgba(17,30,67,.18);
}
.b2b-desk-page.theme-cia-b2b .catalog-hero-filter span{
  color:#5f738f;
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  white-space:nowrap;
}
.b2b-desk-page.theme-cia-b2b .catalog-hero-filter select{
  min-height:52px;
  border:0;
  box-shadow:none;
  padding:0;
  background:transparent;
}
.b2b-desk-page.theme-cia-b2b .catalogue-hero-btn{
  min-height:74px !important;
  border-radius:999px !important;
  padding:0 24px !important;
  background:rgba(255,255,255,.94) !important;
  box-shadow:0 20px 36px rgba(17,30,67,.18);
}
.b2b-desk-page.theme-cia-b2b.view-shop .trending-panel{
  display:none !important;
}
.b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel{
  padding-top:8px !important;
}
.b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-grid{
  padding-bottom:10px !important;
}
.b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-card{
  cursor:default !important;
}
.b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-media-hint,
.b2b-desk-page.theme-cia-b2b.view-shop .catalog-panel .product-preview-btn{
  display:none !important;
}
.b2b-desk-page.theme-cia-b2b.view-shop .catalog-pager{
  justify-content:flex-start !important;
  max-width:1180px;
  margin:8px auto 28px;
  padding:0 10px 8px !important;
}
.b2b-desk-page.theme-cia-b2b.view-shop .catalog-pager .catalog-pager-hint,
.b2b-desk-page.theme-cia-b2b.view-shop .catalog-pager .catalog-all-loaded{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 14px;
  border-radius:999px;
  background:rgba(255,255,255,.92);
  color:#526681;
  font-size:13px;
  font-weight:800;
  box-shadow:0 10px 24px rgba(18,33,61,.08);
}
@media (max-width: 900px){
  .b2b-desk-page.theme-cia-b2b .shop-search-wrap{
    grid-template-columns:1fr 1fr !important;
    gap:10px !important;
  }
  .b2b-desk-page.theme-cia-b2b .shop-search-wrap .hero-search{
    grid-column:1 / -1;
    border-radius:999px !important;
  }
  .b2b-desk-page.theme-cia-b2b .catalog-hero-filter,
  .b2b-desk-page.theme-cia-b2b .catalogue-hero-btn,
  .b2b-desk-page.theme-cia-b2b .hero-search-btn{
    min-height:52px !important;
    width:100%;
    border-radius:999px !important;
  }
}
@media (max-width: 560px){
  .b2b-desk-page.theme-cia-b2b .shop-search-wrap{
    grid-template-columns:1fr !important;
  }
  .b2b-desk-page.theme-cia-b2b .catalog-hero-filter{
    min-height:48px;
    padding:0 14px;
  }
  .b2b-desk-page.theme-cia-b2b .catalog-hero-filter span{
    font-size:11px;
  }
}

/* 2026-04-29 category/search layout hotfix */
.b2b-desk-page.theme-cia-b2b .shop-search-wrap {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px) auto auto !important;
  align-items: stretch !important;
  gap: 12px !important;
}

.b2b-desk-page.theme-cia-b2b .catalog-hero-filter {
  min-width: 260px !important;
  max-width: 300px !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center !important;
  column-gap: 10px !important;
  overflow: hidden !important;
}

.b2b-desk-page.theme-cia-b2b .catalog-hero-filter select {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  overflow: hidden !important;
  padding-right: 22px !important;
}

@media (max-width: 1200px) {
  .b2b-desk-page.theme-cia-b2b .shop-search-wrap {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 260px) auto auto !important;
  }
}

@media (max-width: 900px) {
  .b2b-desk-page.theme-cia-b2b .shop-search-wrap {
    grid-template-columns: 1fr 1fr !important;
  }

  .b2b-desk-page.theme-cia-b2b .shop-search-wrap .hero-search {
    grid-column: 1 / -1 !important;
  }

  .b2b-desk-page.theme-cia-b2b .catalog-hero-filter {
    min-width: 0 !important;
    max-width: none !important;
  }
}

/* 2026-04-29: B2B UX stabilization (no shaky scroll, no footer-like quick bar, mobile-safe image zoom) */
.b2b-quick-inline-actions {
  position: static !important;
  border-top: 1px solid #e2e8f3;
  border-bottom: 0;
  margin-top: 8px;
}

.b2b-quick-inline-actions .order-workbench-footer-remark {
  flex: 1 1 360px;
  max-width: 720px;
}

.b2b-quick-inline-actions .order-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.b2b-desk-page.theme-cia-b2b {
  background: #eef3fb !important;
}

.b2b-desk-page.theme-cia-b2b .shop-hero,
.b2b-desk-page.theme-cia-b2b .catalog-panel,
.b2b-desk-page.theme-cia-b2b .trending-panel,
.b2b-desk-page.theme-cia-b2b .panel {
  background-image: none !important;
}

.b2b-desk-page.theme-cia-b2b *,
.b2b-desk-page.theme-cia-b2b *::before,
.b2b-desk-page.theme-cia-b2b *::after {
  animation: none !important;
}

.b2b-desk-page.theme-cia-b2b .product-card,
.b2b-desk-page.theme-cia-b2b .btn,
.b2b-desk-page.theme-cia-b2b .cart-panel,
.b2b-desk-page.theme-cia-b2b .mobile-cart-bar {
  transition: none !important;
  transform: none !important;
}

.b2b-desk-page.theme-cia-b2b .product-media img {
  cursor: zoom-in;
}

#productPreviewModal .modal-card {
  max-width: min(980px, calc(100vw - 24px));
}

#productPreviewModal .product-preview-media img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 12px;
}

.quick-order-panel {
  display: flex;
  flex-direction: column;
}

.quick-order-panel .quick-lines-wrap {
  flex: 1 1 auto;
  min-height: 260px;
}

.quick-order-panel .quick-order-foot {
  position: sticky;
  bottom: 0;
  z-index: 6;
  background: #fff;
  border-top: 1px solid #dfe7f3;
  padding-top: 10px;
}

@media (max-width: 720px) {
  #productPreviewModal .modal-card {
    width: calc(100vw - 12px);
    margin: 6px;
    border-radius: 12px;
  }

  #productPreviewModal .product-preview-grid {
    grid-template-columns: 1fr;
  }

  #productPreviewModal .row-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  #productPreviewModal .modal-head .btn {
    min-height: 42px;
  }
}
.b2b-mini-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #5f6f8a;
  background: rgba(238, 243, 251, 0.9);
  border-top: 1px solid rgba(129, 157, 205, 0.3);
  backdrop-filter: blur(4px);
}

/* Keep compact sticky footer only on shop/landing view. */
.b2b-desk-page:not(.view-shop) .b2b-mini-footer {
  display: none !important;
}

.b2b-mini-footer-line {
  width: 100%;
  max-width: 1680px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: center;
  justify-content: center;
}

.b2b-mini-footer-line span {
  white-space: nowrap;
}

.b2b-mini-footer-line a {
  color: #1c4699;
  text-decoration: none;
  font-weight: 700;
}

.b2b-desk-page {
  padding-bottom: 54px;
}

.contact-kpi-grid .accounts-kpi {
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
  border: 1px solid rgba(129, 157, 205, 0.35);
}

.contact-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 10px;
}

.contact-card {
  border: 1px solid #d9e2f2;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 14px 16px;
}

.contact-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #17335d;
}

.contact-card p {
  margin: 0 0 6px;
  color: #334866;
  font-size: 14px;
}

.contact-card a {
  color: #1c4699;
  text-decoration: none;
  font-weight: 700;
}

.b2b-deep-footer {
  margin: 14px 0 52px;
  background: #f7faff;
  border: 1px solid rgba(129, 157, 205, 0.35);
  display: none;
}

body.view-shop .b2b-deep-footer {
  display: block;
}

.b2b-footer-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 12px;
  color: #334866;
}

.b2b-footer-line span {
  white-space: nowrap;
}

.b2b-deep-footer a {
  color: #1c4699;
  text-decoration: none;
  font-weight: 700;
}

.btn-link-inline {
  background: transparent;
  border: none;
  padding: 0;
  color: #1c4699;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

@media (max-width: 900px) {
  .b2b-mini-footer {
    min-height: 30px;
    padding: 5px 8px;
    font-size: 10px;
  }

  .b2b-desk-page {
    padding-bottom: 62px;
  }

  .b2b-mini-footer-line {
    gap: 2px 8px;
  }

  .b2b-footer-line {
    font-size: 11px;
    gap: 8px 10px;
  }

  .contact-card-grid {
    grid-template-columns: 1fr;
  }
}

.floating-contact-btn,
.floating-bottom-btn {
  position: fixed;
  right: 14px;
  z-index: 36;
  border: 1px solid rgba(129, 157, 205, 0.45);
  background: #ffffff;
  color: #163b89;
  border-radius: 999px;
  height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(15, 42, 102, 0.16);
}

.floating-contact-btn { bottom: 86px; }
.floating-bottom-btn { bottom: 40px; }
.b2b-desk-page .floating-contact-btn { bottom: 130px; }
.b2b-desk-page .floating-bottom-btn { bottom: 84px; }
.b2b-desk-page #scrollTopBtn { bottom: 36px; right: 14px; z-index: 36; }

/* Show helpers only on landing/shop page; hide on other work pages */
.b2b-desk-page:not(.view-shop) .floating-contact-btn,
.b2b-desk-page:not(.view-shop) .floating-bottom-btn,
.b2b-desk-page:not(.view-shop) #scrollTopBtn {
  display: none !important;
}

/* Ensure floating helpers never overlap each other when visible. */
.b2b-desk-page.view-shop .floating-contact-btn { bottom: 130px !important; }
.b2b-desk-page.view-shop .floating-bottom-btn { bottom: 84px !important; }
.b2b-desk-page.view-shop #scrollTopBtn { bottom: 36px !important; }

/* 2026-04-29 final search/category alignment fix */
.b2b-desk-page.theme-cia-b2b .shop-search-wrap {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 260px) auto auto !important;
  gap: 12px !important;
  align-items: center !important;
}

.b2b-desk-page.theme-cia-b2b .catalog-hero-filter {
  overflow: hidden !important;
}

.b2b-desk-page.theme-cia-b2b .catalog-hero-filter select {
  display: block !important;
  max-width: 100% !important;
}

.b2b-desk-page.theme-cia-b2b .shop-search-wrap .hero-search {
  min-width: 0 !important;
}

.b2b-desk-page.theme-cia-b2b .shop-search-wrap .hero-search input {
  width: 100% !important;
}

.b2b-desk-page.theme-cia-b2b .catalog-hero-filter {
  min-width: 220px !important;
  max-width: 260px !important;
  padding: 0 14px !important;
  gap: 8px !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
}

.b2b-desk-page.theme-cia-b2b .catalog-hero-filter span {
  font-size: 11px !important;
}

.b2b-desk-page.theme-cia-b2b .catalog-hero-filter select {
  width: 100% !important;
  min-width: 0 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

@media (max-width: 1024px) {
  .b2b-desk-page.theme-cia-b2b .shop-search-wrap {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 220px) auto !important;
  }
  .b2b-desk-page.theme-cia-b2b .catalogue-hero-btn {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .b2b-desk-page.theme-cia-b2b .shop-search-wrap {
    grid-template-columns: 1fr 1fr !important;
  }
  .b2b-desk-page.theme-cia-b2b .shop-search-wrap .hero-search {
    grid-column: 1 / -1 !important;
  }
  .b2b-desk-page.theme-cia-b2b .catalog-hero-filter {
    min-width: 0 !important;
    max-width: none !important;
  }
}

@media (max-width: 640px) {
  .b2b-desk-page.theme-cia-b2b .shop-search-wrap {
    grid-template-columns: 1fr !important;
  }
}
