:root {
  color-scheme: light;
  --bg: #f6f4ef;
  --surface: #fffdf8;
  --line: #d8d2c6;
  --text: #1e2722;
  --muted: #637069;
  --accent: #236b55;
  --accent-2: #b96d2b;
  --accent-soft: #e6f0ec;
  --danger: #a33b3b;
  --shadow: 0 14px 34px rgba(29, 40, 33, 0.1);
  --catalog-controls-offset: 126px;
  font-family: Inter, "Segoe UI", Arial, "Microsoft YaHei", sans-serif;
}

html[data-catalog-market="GLOBAL"] [data-market-scope="idn"],
html[data-inventory-market="GLOBAL"] [data-market-scope="idn"] {
  display: none !important;
}

.free-shipping-policy-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 24px 0;
  padding: 12px 16px;
  border: 1px solid #d7c593;
  border-radius: 14px;
  background: linear-gradient(115deg, #fffaf0 0%, #f4f9f4 72%, #eef8f3 100%);
  color: #31443d;
  box-shadow: 0 8px 24px rgba(54, 75, 66, 0.06);
}

.free-shipping-policy-banner .free-shipping-policy-icon {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: #1f6f55;
  font-size: 20px;
}

.free-shipping-policy-banner div {
  display: grid;
  gap: 2px;
}

.free-shipping-policy-banner strong {
  color: #1f513f;
  font-size: 14px;
}

.free-shipping-policy-banner span:last-child {
  color: #66736f;
  font-size: 12px;
  line-height: 1.45;
}

.free-shipping-panel {
  grid-column: 1 / -1;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #ded4bd;
  border-radius: 16px;
  background: #fbfaf6;
}

.free-shipping-panel-head,
.free-shipping-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.free-shipping-panel-head h4 {
  margin: 3px 0 0;
  color: #1f332b;
  font-size: 16px;
}

.free-shipping-eyebrow {
  color: #947127;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.free-shipping-status-badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ece8de;
  color: #5f625d;
  font-size: 12px;
  font-weight: 800;
}

.free-shipping-status-badge[data-status="ELIGIBLE"],
.free-shipping-status-badge[data-status="ACTIVE"] {
  background: #dcefe5;
  color: #176446;
}

.free-shipping-status-badge[data-status="REVIEW_REQUIRED"],
.free-shipping-status-badge[data-status="BELOW_THRESHOLD"],
.free-shipping-status-badge[data-status="ADDRESS_REQUIRED"] {
  background: #fff0cf;
  color: #825c0d;
}

.free-shipping-status-badge[data-status="PROVINCE_INELIGIBLE"] {
  background: #f8e2df;
  color: #944439;
}

.free-shipping-province-field {
  display: none;
}

.shipping-address-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid #dfd7c6;
  border-radius: 12px;
  background: #fff;
}

.shipping-address-card[data-address-status="VERIFIED"] {
  border-color: #b9d9cb;
  background: #f2f8f5;
}

.shipping-address-card[data-address-status="PENDING"],
.shipping-address-card[data-address-status="REQUESTING"] {
  border-color: #ead49a;
  background: #fffaf0;
}

.shipping-address-card[data-address-status="REJECTED"],
.shipping-address-card[data-address-status="EXPIRED"],
.shipping-address-card[data-address-status="ERROR"] {
  border-color: #e2b9b2;
  background: #fff5f3;
}

.shipping-address-card-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.shipping-address-card-eyebrow {
  color: #826524;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shipping-address-card-copy strong {
  color: #233a31;
  font-size: 13px;
  line-height: 1.35;
}

.shipping-address-card-copy p {
  margin: 0;
  color: #64736c;
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.shipping-address-edit-btn {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #2f765e;
  border-radius: 8px;
  background: #fff;
  color: #216148;
  font-size: 12px;
  font-weight: 800;
}

.shipping-address-edit-btn:hover,
.shipping-address-edit-btn:focus-visible {
  background: #e7f2ed;
}

.quote-drawer-shipping-card {
  margin: 0 0 12px;
  padding: 11px 12px;
}

.modal-backdrop.shipping-address-modal {
  z-index: 62;
}

.shipping-address-editor {
  position: relative;
  width: min(720px, 100%);
  max-height: min(820px, calc(100vh - 36px));
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(29, 40, 33, 0.28);
}

.shipping-address-editor-head {
  padding-right: 44px;
}

.shipping-address-editor-head > span {
  color: #8b6b24;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.shipping-address-editor-head h2 {
  margin: 5px 0 0;
  color: #20342b;
  font-size: 22px;
}

.shipping-address-editor-head p {
  margin: 7px 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.shipping-address-identity-grid,
.shipping-address-region-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.shipping-address-region-grid {
  margin-top: 12px;
}

.shipping-address-line-field {
  margin-top: 12px;
}

.shipping-address-editor .field select {
  min-height: 42px;
}

.shipping-address-editor .field select:disabled {
  border-color: #ddd8ce;
  background: #f1efe9;
  color: #6b736f;
  cursor: not-allowed;
  opacity: 1;
}

.shipping-address-editor [aria-invalid="true"] {
  border-color: #b84b42;
  box-shadow: 0 0 0 2px rgba(184, 75, 66, 0.11);
}

.shipping-address-form-error {
  min-height: 20px;
  margin: 8px 0 0;
  color: #a13d36;
  font-size: 12px;
  font-weight: 700;
}

.shipping-address-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 14px;
}

.shipping-address-editor-actions button {
  min-width: 132px;
}

.free-shipping-progress {
  margin-top: 14px;
}

.free-shipping-progress-meta {
  color: #586962;
  font-size: 12px;
}

.free-shipping-progress-meta strong {
  color: #1f513f;
  font-variant-numeric: tabular-nums;
}

.free-shipping-progress-track {
  height: 8px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8e4da;
}

.free-shipping-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b89143, #1f6f55);
  transition: width 180ms ease;
}

.free-shipping-status-text {
  min-height: 34px;
  margin: 8px 0 0;
  color: #586962;
  font-size: 12px;
  line-height: 1.45;
}

.free-shipping-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  border: 0;
}

.free-shipping-modes legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: #42534c;
  font-size: 12px;
  font-weight: 700;
}

.free-shipping-mode-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #d8d0bf;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.free-shipping-mode-card:has(input:checked),
.free-shipping-mode-card.is-active {
  border-color: #1f6f55;
  box-shadow: 0 0 0 2px rgba(31, 111, 85, 0.1);
}

.free-shipping-mode-card.is-locked {
  cursor: not-allowed;
  opacity: 0.58;
}

.free-shipping-mode-card input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: #1f6f55;
}

.free-shipping-mode-card span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.free-shipping-mode-card strong {
  color: #1f332b;
  font-size: 13px;
}

.free-shipping-mode-card small {
  color: #71807a;
  font-size: 11px;
  line-height: 1.4;
}

.my-order-shipping {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin: 10px 0;
  padding: 10px;
  border-radius: 10px;
  background: #f2f7f3;
}

.my-order-shipping div {
  display: grid;
  gap: 2px;
}

.my-order-shipping span {
  color: #71807a;
  font-size: 11px;
}

.my-order-shipping strong {
  color: #234d3d;
  font-size: 12px;
}

.my-order-volume {
  border: 1px solid #d7e7de;
  background: #f5faf7;
}

@media (max-width: 720px) {
  .free-shipping-policy-banner {
    display: none;
  }

  .mobile-trust-free-shipping {
    grid-column: 1 / -1;
  }

  .free-shipping-panel {
    margin-top: 12px;
    padding: 13px;
  }

  .free-shipping-panel-head {
    align-items: flex-start;
  }

  .free-shipping-modes {
    grid-template-columns: 1fr;
  }

  .shipping-address-card {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
  }

  .shipping-address-edit-btn {
    width: 100%;
  }

  .modal-backdrop.shipping-address-modal {
    align-items: stretch;
    padding: 0;
  }

  .shipping-address-editor {
    width: 100%;
    height: 100%;
    max-height: none;
    scroll-padding: 18px 0 calc(96px + env(safe-area-inset-bottom));
    padding: 18px 16px calc(20px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
  }

  .shipping-address-identity-grid,
  .shipping-address-region-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .shipping-address-editor .field select {
    min-height: 44px;
  }

  .shipping-address-editor .field {
    scroll-margin-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .shipping-address-editor-actions {
    position: sticky;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    padding-top: 10px;
    background: linear-gradient(180deg, rgba(255, 253, 248, 0), var(--surface) 18%);
  }

  .shipping-address-editor-actions button {
    min-width: 0;
  }
}

@media (max-width: 720px) and (max-height: 680px) {
  .shipping-address-editor-actions {
    position: static;
  }
}

/* Product operations workbench: searchable table + persistent action list. */
.product-operations-view {
  --product-green: #245f4b;
  --product-green-dark: #194b3b;
  --product-green-soft: #edf5f1;
  --product-line: #dfe5e1;
  --product-muted: #66736d;
  --product-warning: #b85c13;
  --product-warning-soft: #fff6e9;
  --product-danger: #a13f36;
}

.product-operations-view .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.product-operations-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  gap: 16px;
  align-items: start;
}

.product-catalog-workspace,
.product-operation-panel {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--product-line);
  border-radius: 10px;
}

.product-operation-panel.is-executing {
  box-shadow: 0 0 0 2px rgba(36, 95, 75, .12);
}

.product-operation-panel.is-executing .product-operation-body {
  cursor: progress;
}

.product-command-header {
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--product-line);
}

.product-title-row,
.product-command-actions,
.product-market-controls,
.product-search-row,
.product-filter-row,
.product-selection-banner,
.product-pagination,
.product-operation-header,
.product-selected-preview-head,
.product-bulk-preview-head {
  display: flex;
  align-items: center;
}

.product-title-row,
.product-selection-banner,
.product-pagination,
.product-operation-header,
.product-selected-preview-head,
.product-bulk-preview-head {
  justify-content: space-between;
}

.product-title-row {
  align-items: flex-start;
  gap: 16px;
}

.product-title-row h2,
.product-operation-header h2 {
  margin: 0;
  color: #17231f;
}

.product-title-row h2 {
  font-size: 24px;
  line-height: 1.25;
}

.product-title-row p {
  margin: 5px 0 0;
  color: var(--product-muted);
  font-size: 13px;
}

.product-market-controls {
  flex: 0 0 auto;
  gap: 8px;
}

.product-market-lock {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding-left: 11px;
  color: var(--product-green-dark);
  background: var(--product-green-soft);
  border: 1px solid #c9ddd3;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 750;
}

.product-market-lock select {
  min-height: 36px;
  padding: 0 30px 0 9px;
  color: #17231f;
  background-color: #fff;
  border: 0;
  border-left: 1px solid #c9ddd3;
  border-radius: 0 6px 6px 0;
  font-weight: 700;
}

.product-command-actions {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.product-command-actions button {
  min-height: 36px;
  padding: 7px 12px;
}

.product-export-global-fallback[hidden] {
  display: none;
}

.product-editor-panel {
  margin: 12px 14px 0;
  border: 1px solid #d8e1dc;
  border-radius: 8px;
  background: #fbfcfb;
}

.product-editor-panel summary {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 13px;
  color: var(--product-green-dark);
  cursor: pointer;
  font-weight: 800;
}

.product-editor-panel summary span:last-child {
  color: var(--product-muted);
  font-size: 12px;
  font-weight: 500;
}

.product-editor-panel[open] summary {
  border-bottom: 1px solid var(--product-line);
}

.product-editor-body {
  padding: 4px 14px 14px;
}

.product-status-tabs {
  display: flex;
  min-width: 0;
  margin-top: 14px;
  padding: 0 14px;
  overflow-x: auto;
  border-bottom: 1px solid var(--product-line);
}

.product-status-tabs button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  color: #46534d;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0 !important;
  white-space: nowrap;
}

.product-status-tabs button strong {
  min-width: 21px;
  padding: 2px 6px;
  color: var(--product-muted);
  background: #f0f2f0;
  border-radius: 999px;
  font-size: 11px;
}

.product-status-tabs button.active {
  color: var(--product-green-dark);
  border-bottom-color: var(--product-green);
}

.product-status-tabs button.active strong {
  color: #fff;
  background: var(--product-green);
}

.product-search-panel {
  padding: 14px;
  border-bottom: 1px solid var(--product-line);
}

.product-search-row,
.product-filter-row {
  min-width: 0;
  gap: 9px;
}

.product-search-row + .product-filter-row {
  margin-top: 10px;
}

.product-search-box {
  min-width: 220px;
  flex: 1 1 380px;
}

.product-search-box input {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  color: #17231f;
  background: #fff;
  border: 1px solid #cbd4cf;
  border-radius: 7px;
}

.product-search-row button,
.product-filter-row button {
  min-height: 40px;
  flex: 0 0 auto;
}

.product-filter-row {
  flex-wrap: wrap;
}

.product-filter-row .field {
  min-width: 140px;
  flex: 1 1 150px;
}

.product-filter-row .field select {
  min-height: 38px;
}

.bulk-sku-search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 12px;
  padding: 12px;
  background: #f7faf8;
  border: 1px solid #d3e1da;
  border-radius: 8px;
}

.bulk-sku-search-panel[hidden] {
  display: none;
}

.bulk-sku-search-panel textarea {
  width: 100%;
  min-height: 84px;
  resize: vertical;
}

.bulk-sku-search-actions {
  display: grid;
  gap: 8px;
}

.bulk-sku-search-actions button {
  min-width: 112px;
  min-height: 40px;
}

.bulk-sku-search-result {
  grid-column: 1 / -1;
  min-height: 0;
  color: #33443d;
  font-size: 12px;
}

.bulk-sku-search-result:empty {
  display: none;
}

.bulk-sku-result-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding-top: 10px;
  border-top: 1px solid #dce6e1;
}

.bulk-sku-unmatched {
  margin-top: 8px;
  padding: 8px 10px;
  color: #8e4513;
  background: var(--product-warning-soft);
  border-radius: 6px;
  overflow-wrap: anywhere;
}

.product-selection-banner {
  gap: 12px;
  margin: 12px 14px 0;
  padding: 10px 12px;
  color: #244b3e;
  background: var(--product-green-soft);
  border: 1px solid #c8ddd2;
  border-radius: 7px;
  font-size: 13px;
}

.product-selection-banner p {
  margin: 0;
}

.product-selection-banner > div {
  display: flex;
  gap: 8px;
}

.product-selection-banner button {
  min-height: 34px;
  padding: 6px 10px;
}

.product-table-shell {
  min-height: 430px;
  overflow: auto;
  margin: 12px 0 0;
  border-top: 1px solid var(--product-line);
  border-bottom: 1px solid var(--product-line);
}

.product-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  table-layout: fixed;
}

.product-table th,
.product-table td {
  padding: 10px 9px;
  border-bottom: 1px solid #e6ebe8;
  text-align: left;
  vertical-align: middle;
  font-size: 12px;
}

.product-table th {
  position: sticky;
  z-index: 2;
  top: 0;
  color: #53615b;
  background: #f7f8f7;
  font-size: 11px;
  font-weight: 760;
}

.product-table th:first-child,
.product-table td:first-child {
  width: 42px;
  text-align: center;
}

.product-table th:nth-child(2),
.product-table td:nth-child(2) {
  width: 76px;
}

.product-table th:nth-child(3),
.product-table td:nth-child(3) {
  width: 126px;
}

.product-table th:nth-child(4),
.product-table td:nth-child(4) {
  width: 210px;
}

.product-table th:nth-child(5),
.product-table td:nth-child(5) {
  width: 116px;
}

.product-table th:nth-child(6),
.product-table td:nth-child(6),
.product-table th:nth-child(7),
.product-table td:nth-child(7) {
  width: 108px;
}

.product-table th:nth-child(8),
.product-table td:nth-child(8) {
  width: 76px;
}

.product-table th:nth-child(9),
.product-table td:nth-child(9) {
  width: 120px;
}

.product-table th:last-child,
.product-table td:last-child {
  width: 68px;
}

.product-table tbody tr:hover {
  background: #fafcfb;
}

.product-table tbody tr.is-selected {
  background: #edf6f1;
}

.product-table tbody tr.is-selected:hover {
  background: #e6f2ec;
}

.product-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--product-green);
}

.product-status-chip,
.product-price-state-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 750;
}

.product-status-chip.is-active {
  color: #25633e;
  background: #e5f3e8;
  border: 1px solid #cbe4d0;
}

.product-status-chip.is-inactive {
  color: #59615d;
  background: #eff1f0;
  border: 1px solid #dfe3e1;
}

.product-status-chip.is-abnormal,
.product-price-state-chip.is-warning {
  color: #a25216;
  background: #fff0df;
  border: 1px solid #f1d3b3;
}

.product-sku-cell,
.product-name-cell {
  min-width: 0;
}

.product-sku-cell strong,
.product-name-cell strong {
  display: block;
  overflow: hidden;
  color: #1f2a26;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-name-cell span,
.product-category-cell span,
.product-updated-cell span {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--product-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-table .product-price-cell {
  font-variant-numeric: tabular-nums;
}

.product-table-edit {
  min-height: 30px;
  padding: 5px 8px;
  color: var(--product-green-dark);
  background: transparent;
  border: 1px solid #cbdcd3;
}

.product-table-empty,
.product-table-loading,
.product-table-error {
  min-height: 420px;
  display: grid;
  place-items: center;
  padding: 30px;
  color: var(--product-muted);
  text-align: center;
}

.product-table-error {
  color: var(--product-danger);
}

.product-pagination {
  min-height: 58px;
  gap: 14px;
  padding: 10px 14px;
  color: var(--product-muted);
  font-size: 12px;
}

.product-pagination label select {
  min-height: 34px;
  padding: 5px 26px 5px 9px;
  color: #23312c;
  background: #fff;
  border: 1px solid #d1d9d5;
  border-radius: 6px;
}

.product-pagination-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin-left: auto;
}

.product-pagination-buttons button {
  min-width: 32px;
  min-height: 32px;
  padding: 4px 8px;
  color: #425049;
  background: #fff;
  border: 1px solid transparent;
}

.product-pagination-buttons button.active {
  color: #fff;
  background: var(--product-green);
  border-color: var(--product-green);
}

.product-pagination-buttons button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.product-operation-panel {
  position: sticky;
  top: calc(var(--bo-topbar-height, 72px) + 14px);
  max-height: calc(100vh - var(--bo-topbar-height, 72px) - 28px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.product-operation-header {
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid var(--product-line);
}

.product-operation-header > div:first-child {
  min-width: 0;
}

.product-operation-header h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 18px;
}

.product-operation-header h2 strong {
  min-width: 25px;
  padding: 2px 7px;
  color: var(--product-green-dark);
  background: var(--product-green-soft);
  border-radius: 999px;
  font-size: 12px;
  text-align: center;
}

.product-operation-market {
  display: inline-block;
  margin-top: 5px;
  color: var(--product-muted);
  font-size: 11px;
}

.product-operation-header button {
  min-height: 34px;
  padding: 6px 9px;
}

.product-operation-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--product-line);
}

.product-operation-tabs button {
  min-height: 38px;
  padding: 7px 6px;
  color: var(--product-green-dark);
  background: #f0f5f2;
  border-color: transparent;
  font-size: 12px;
}

.product-operation-tabs button[aria-selected="true"] {
  color: #fff;
  background: var(--product-green);
  border-color: var(--product-green);
}

.product-operation-body {
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
  scrollbar-width: thin;
}

.product-operation-fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 16px;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
}

.product-operation-fieldset legend {
  width: 100%;
  margin-bottom: 2px;
  color: #34453d;
  font-size: 12px;
  font-weight: 750;
}

.product-operation-fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #34443d;
  font-size: 12px;
  font-weight: 650;
}

.product-operation-fieldset input,
.product-operation-body input[type="checkbox"] {
  accent-color: var(--product-green);
}

.product-operation-body .field textarea,
.product-operation-body .field input,
.product-operation-body .field select {
  width: 100%;
}

.product-price-shared-controls,
.product-group-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.product-price-adjustment-card {
  min-width: 0;
  margin: 0;
  padding: 12px;
  background: #fbfcfb;
  border: 1px solid var(--product-line);
  border-radius: 8px;
}

.product-price-adjustment-card.is-disabled {
  background: #f5f7f5;
}

.product-price-adjustment-card.is-disabled .product-price-adjustment-fields,
.product-price-adjustment-card.is-disabled .product-current-price {
  opacity: .58;
}

.product-price-adjustment-head {
  width: 100%;
  padding: 0 0 10px;
}

.product-price-adjustment-head label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #24372f;
  font-size: 13px;
  font-weight: 800;
}

.product-price-adjustment-head input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--product-green);
}

.product-current-price {
  display: block;
  margin-top: 6px;
  color: var(--product-muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.45;
}

.product-price-adjustment-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  clear: both;
}

.product-price-shared-controls {
  grid-template-columns: minmax(0, 1fr);
  max-width: 190px;
  margin-bottom: 12px;
}

.product-price-adjustments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.product-price-value-field {
  position: relative;
}

.product-price-value-field input {
  padding-right: 45px;
}

.product-price-value-suffix {
  position: absolute;
  right: 9px;
  bottom: 9px;
  color: var(--product-muted);
  font-size: 11px;
  pointer-events: none;
}

.product-price-adjustment-helper {
  margin: -2px 0 0;
  color: var(--product-muted);
  font-size: 10px;
  line-height: 1.45;
}

.product-operation-note {
  margin: 0 0 12px;
  padding: 9px 10px;
  color: #52615a;
  background: #f5f7f5;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.5;
}

.product-selected-preview,
.product-bulk-preview {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--product-line);
}

.product-selected-preview h3,
.product-bulk-preview h3 {
  margin: 0;
  color: #2f3d37;
  font-size: 13px;
}

.product-selected-preview-head > span,
.product-bulk-preview-head > span {
  color: var(--product-muted);
  font-size: 11px;
}

.product-operation-selection-list {
  display: grid;
  gap: 6px;
  max-height: 148px;
  margin-top: 9px;
  overflow-y: auto;
}

.product-selection-empty {
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 10px;
  color: var(--product-muted);
  background: #f7f8f7;
  border-radius: 6px;
  font-size: 11px;
  text-align: center;
}

.product-selection-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 7px 8px;
  background: #f7f9f8;
  border: 1px solid #e2e8e4;
  border-radius: 6px;
}

.product-selection-item strong,
.product-selection-item span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-selection-item strong {
  color: #2a3732;
  font-size: 11px;
}

.product-selection-item span {
  margin-top: 2px;
  color: var(--product-muted);
  font-size: 10px;
}

.product-selection-item button {
  min-width: 30px;
  min-height: 30px;
  padding: 4px 7px;
  color: var(--product-danger);
  background: #fff;
  border: 1px solid #ead4d1;
}

.product-preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
  border: 1px solid var(--product-line);
  border-radius: 7px;
  overflow: hidden;
}

.product-preview-metrics > div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 10px 5px;
  text-align: center;
}

.product-preview-metrics > div + div {
  border-left: 1px solid var(--product-line);
}

.product-preview-metrics span {
  color: var(--product-muted);
  font-size: 10px;
}

.product-preview-metrics strong {
  color: #25332d;
  font-size: 18px;
}

.product-preview-metrics > div:first-child strong {
  color: var(--product-green);
}

.product-preview-metrics > div:last-child strong {
  color: var(--product-warning);
}

.product-preview-differences {
  display: grid;
  gap: 5px;
  margin-top: 9px;
}

.product-preview-difference {
  display: grid;
  grid-template-columns: minmax(76px, auto) minmax(0, 1fr);
  gap: 7px;
  padding: 7px 8px;
  color: #38463f;
  background: #fafbfa;
  border-radius: 5px;
  font-size: 10px;
}

.product-preview-difference.is-blocked {
  color: #91420c;
  background: var(--product-warning-soft);
}

.product-preview-sku {
  overflow-wrap: anywhere;
}

.product-preview-price-lines {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.product-preview-price-line {
  display: grid;
  grid-template-columns: minmax(54px, auto) minmax(0, 1fr);
  gap: 2px 7px;
  min-width: 0;
}

.product-preview-price-line strong {
  grid-row: 1 / span 2;
  color: #263b32;
}

.product-preview-price-line span,
.product-preview-price-line small,
.product-preview-price-line em,
.product-preview-difference > span {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.product-preview-price-line small {
  color: var(--product-muted);
  font-size: 9px;
  line-height: 1.45;
}

.product-preview-price-line em {
  grid-column: 2;
  color: #91420c;
  font-style: normal;
  font-weight: 700;
  line-height: 1.45;
}

.product-bulk-feedback {
  min-height: 0;
  margin-top: 12px;
  font-size: 12px;
}

.product-bulk-feedback:not(:empty) {
  padding: 10px;
  color: #285140;
  background: var(--product-green-soft);
  border-radius: 6px;
}

.product-bulk-feedback.is-error:not(:empty) {
  color: #944127;
  background: #fff1ed;
}

.product-operation-footer {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 8px;
  padding: 12px 14px 14px;
  background: #fff;
  border-top: 1px solid var(--product-line);
}

.product-operation-footer button {
  min-height: 46px;
  padding: 9px 10px;
  font-size: 12px;
}

.product-operation-footer button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.product-operation-footer p {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: var(--product-muted);
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.product-import-view {
  max-width: 960px;
  margin-inline: auto;
}

.product-import-view textarea {
  width: 100%;
  margin-top: 12px;
  resize: vertical;
}

@media (max-width: 1260px) {
  .product-operations-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-operation-panel {
    position: static;
    max-height: none;
  }

  .product-operation-body {
    overflow: visible;
  }

  .product-operation-selection-list {
    max-height: 220px;
  }
}

@media (max-width: 760px) {
  .product-command-header {
    padding: 14px 12px 12px;
  }

  .product-title-row,
  .product-search-row,
  .product-selection-banner,
  .product-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .product-market-controls,
  .product-market-lock,
  .product-market-lock select,
  .product-command-actions button,
  .product-search-row button,
  .product-filter-row button {
    width: 100%;
  }

  .product-search-box {
    width: 100%;
    min-width: 0;
    flex-basis: auto;
  }

  .product-filter-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .bulk-sku-search-panel {
    grid-template-columns: 1fr;
  }

  .bulk-sku-search-result {
    grid-column: auto;
  }

  .bulk-sku-search-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bulk-sku-search-actions button {
    min-height: 44px;
  }

  .product-selection-banner > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-table-shell {
    min-height: 360px;
  }

  .product-pagination-buttons {
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-left: 0;
  }

  .product-operation-tabs,
  .product-operation-footer {
    grid-template-columns: 1fr;
  }

  .product-operation-footer p {
    grid-column: auto;
  }

  .product-price-shared-controls,
  .product-price-adjustments,
  .product-group-controls {
    grid-template-columns: 1fr;
  }

  .product-price-shared-controls {
    max-width: none;
  }

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

  .product-editor-panel summary span:last-child {
    display: none;
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
}

body.market-entry-active {
  background: #f4efe5;
}

body.catalog-booting {
  background: #f4efe5;
}

body.catalog-booting .topbar,
body.catalog-booting .page-nav,
body.catalog-booting .app-view,
body.catalog-booting .mobile-quote-bar,
body.catalog-booting .mobile-bottom-nav,
body.catalog-booting .bundle-fab,
body.catalog-booting .bundle-hint,
body.market-entry-active .topbar,
body.market-entry-active .page-nav,
body.market-entry-active .app-view,
body.market-entry-active .mobile-quote-bar,
body.market-entry-active .mobile-bottom-nav,
body.market-entry-active .bundle-fab,
body.market-entry-active .bundle-hint {
  display: none !important;
}

.market-entry[hidden] {
  display: none;
}

.market-entry {
  min-height: 100vh;
  min-height: 100svh;
  height: 100vh;
  max-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px clamp(18px, 4vw, 72px) 38px;
  overflow: hidden;
  background: #f4ecdf;
  isolation: isolate;
}

body.market-entry-active .market-entry {
  background: #f4ecdf url("assets/entry/reference-background.jpg") center / cover no-repeat;
}

.market-entry::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background: rgba(255, 251, 241, 0.02);
  pointer-events: none;
}

.market-entry::after {
  display: none;
}

.market-entry-art {
  position: absolute;
  z-index: -2;
  display: none;
  pointer-events: none;
  user-select: none;
}

.market-entry-art--ribbon-left {
  top: 0;
  left: 0;
  width: min(350px, 28vw);
  opacity: 0.42;
  mix-blend-mode: multiply;
}

.market-entry-art--ribbon-right {
  right: 0;
  bottom: 8%;
  width: min(142px, 12vw);
  opacity: 0.42;
  mix-blend-mode: multiply;
}

.market-entry-art--botanical-left {
  left: 0;
  bottom: 0;
  width: min(155px, 13vw);
  opacity: 0.82;
}

.market-entry-art--flower-right {
  right: 0;
  bottom: 0;
  width: min(167px, 14vw);
  opacity: 0.8;
}

.entry-language-switch {
  position: absolute;
  top: 34px;
  right: clamp(18px, 4vw, 64px);
  z-index: 2;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid rgba(164, 119, 54, 0.66);
  border-radius: 999px;
  background: rgba(255, 250, 239, 0.82);
  color: #1a2d25;
  box-shadow: 0 8px 18px rgba(96, 68, 32, 0.08);
  backdrop-filter: blur(8px);
}

.entry-language-label {
  font-size: 13px;
  font-weight: 800;
  color: #27362f;
}

.entry-language-switch button {
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #1c2d26;
  font-size: 16px;
  font-weight: 700;
}

.entry-language-switch button.active,
.entry-language-switch button[aria-current="true"] {
  color: #9a6d2e;
  font-weight: 900;
}

.entry-language-switch button:focus-visible {
  outline: 2px solid rgba(154, 109, 46, 0.56);
  outline-offset: 4px;
}

.market-entry-mobile-brand,
.entry-card-mobile-lead,
.entry-card-mobile-copy,
.market-entry-continue {
  display: none;
}

.entry-heading-badge-icon {
  display: none;
}

.entry-language-separator,
.entry-language-caret {
  color: rgba(92, 71, 47, 0.62);
  font-weight: 800;
}

.market-entry-shell {
  width: min(1320px, 100%);
  display: grid;
  gap: 24px;
  transform: translateY(-24px);
}

.market-entry-heading {
  display: grid;
  justify-items: center;
  gap: 12px;
  max-width: 1160px;
  margin-inline: auto;
  text-align: center;
}

.market-entry-heading span {
  min-width: 270px;
  padding: 9px 24px;
  border: 1px solid rgba(166, 123, 62, 0.56);
  border-radius: 999px;
  background: rgba(255, 250, 239, 0.58);
  color: #16372b;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.market-entry-heading h1 {
  margin: 0;
  color: #173a2b;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(42px, 4.2vw, 68px);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
  white-space: nowrap;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.28);
}

.market-entry-heading h1 strong {
  color: #9d7331;
  font: inherit;
}

html[lang^="ru"] .market-entry-shell {
  transform: none;
}

html[lang^="ru"] .market-entry-heading h1 {
  max-width: 100%;
  font-size: clamp(40px, 3.35vw, 50px);
  line-height: 1.04;
  white-space: normal;
}

.market-entry-heading p {
  margin: 0;
  max-width: 860px;
  color: #53625c;
  font-size: 20px;
  line-height: 1.45;
}

.market-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}

.market-entry-card {
  min-height: 505px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  padding: 28px 30px 22px;
  border: 1px solid rgba(178, 136, 75, 0.42);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 18px 32px rgba(40, 32, 19, 0.16);
  transform: translateY(0);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.market-entry-card:hover,
.market-entry-card:focus-visible {
  border-color: rgba(178, 136, 75, 0.86);
  outline: none;
  box-shadow: 0 22px 42px rgba(40, 32, 19, 0.2);
  transform: translateY(-2px);
}

.market-entry-card:focus-visible {
  outline: 3px solid rgba(178, 136, 75, 0.52);
  outline-offset: 4px;
}

.market-entry-card--indonesia {
  background:
    linear-gradient(90deg, rgba(12, 48, 34, 0.97) 0%, rgba(15, 55, 39, 0.9) 47%, rgba(14, 45, 33, 0.72) 100%),
    #143828;
}

.market-entry-card--global {
  color: #17352a;
  background:
    linear-gradient(90deg, rgba(255, 250, 238, 0.96) 0%, rgba(255, 247, 230, 0.86) 48%, rgba(246, 229, 199, 0.74) 100%),
    #fbf2df;
}

.entry-card-visual {
  position: absolute;
  top: 0;
  right: 0;
  width: 57%;
  height: 66%;
  object-fit: cover;
  opacity: 0.74;
  filter: saturate(0.96);
}

.market-entry-card--indonesia .entry-card-visual {
  mix-blend-mode: screen;
  opacity: 0.42;
}

.market-entry-card--indonesia::after {
  content: "";
  display: none;
}

.market-entry-card--global .entry-card-visual {
  width: 58%;
  height: 58%;
  opacity: 0.82;
  filter: saturate(0.92) contrast(0.98);
}

.entry-card-mark {
  position: absolute;
  top: 26px;
  left: 26px;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(206, 166, 92, 0.9);
  border-radius: 50%;
  color: #d7b875;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
}

.market-entry-card--global .entry-card-mark {
  color: #b07b2f;
  background: rgba(255, 252, 243, 0.6);
}

.entry-card-title,
.entry-card-copy,
.entry-card-mobile-copy,
.entry-card-divider,
.entry-card-meta,
.entry-card-cta {
  position: relative;
  z-index: 1;
}

.entry-card-title {
  align-self: flex-start;
  margin-top: 70px;
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(31px, 3vw, 42px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.market-entry-card--global .entry-card-title {
  color: #9c7030;
  text-shadow: none;
}

.entry-card-copy {
  width: min(330px, 58%);
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  line-height: 1.45;
}

.market-entry-card--global .entry-card-copy {
  color: #5f6b65;
}

.entry-card-divider {
  display: block;
  height: 1px;
  margin-top: auto;
  margin-bottom: 18px;
  background: rgba(218, 188, 128, 0.64);
}

.market-entry-card--global .entry-card-divider {
  background: rgba(186, 139, 66, 0.38);
}

.entry-card-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 -30px 22px;
  border-bottom: 1px solid rgba(207, 176, 113, 0.16);
}

.entry-card-meta span {
  min-height: 80px;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 0 12px;
  border-right: 1px solid rgba(207, 176, 113, 0.18);
  text-align: center;
}

.entry-card-meta span:last-child {
  border-right: 0;
}

.entry-card-meta b {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(226, 201, 147, 0.92);
  border-radius: 50%;
  color: #f1dfae;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.market-entry-card--global .entry-card-meta b {
  border-color: rgba(177, 124, 46, 0.65);
  color: #ae7a2d;
}

.entry-card-meta small {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.2;
}

.market-entry-card--global .entry-card-meta small {
  color: #21392e;
}

.entry-card-cta {
  min-height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid rgba(199, 154, 73, 0.82);
  border-radius: 8px;
  background: rgba(23, 57, 41, 0.7);
  color: #f5e8c5;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1.1;
  text-align: center;
}

.entry-card-cta b {
  font-family: inherit;
  font-weight: 400;
}

.market-entry-card--global .entry-card-cta {
  border: 0;
  background: linear-gradient(180deg, #c49c52, #aa7a28);
  color: #fff6de;
  box-shadow: 0 10px 20px rgba(137, 91, 23, 0.2);
}

.market-entry-divider {
  width: min(940px, 76%);
  height: 1px;
  position: relative;
  margin: 12px auto 0;
  background: rgba(188, 143, 73, 0.32);
}

.market-entry-divider span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 18px;
  transform: translate(-50%, -50%);
  background: #f6efe2;
}

.market-entry-feature-rail {
  width: min(930px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 0 auto;
}

.market-entry-feature-rail div {
  min-width: 0;
  display: grid;
  grid-template-columns: 58px 1fr;
  column-gap: 16px;
  align-items: center;
  padding-inline: 16px;
  border-right: 1px solid rgba(177, 137, 74, 0.24);
}

.market-entry-feature-rail div:last-child {
  border-right: 0;
}

.feature-rail-icon {
  grid-row: span 2;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(139, 99, 45, 0.5);
  border-radius: 50%;
  color: #1b3228;
  font-size: 13px;
  font-weight: 900;
}

.market-entry-feature-rail strong {
  color: #18261f;
  font-size: 16px;
  line-height: 1.2;
}

.market-entry-feature-rail small {
  color: #6d716a;
  font-size: 13px;
  line-height: 1.35;
}

@media (prefers-reduced-motion: reduce) {
  .market-entry-card {
    transition: none;
  }
}

@media (max-width: 980px) {
  .market-entry {
    align-items: flex-start;
    height: auto;
    max-height: none;
    min-height: 100svh;
    padding-top: 94px;
    padding-bottom: 26px;
    overflow-y: auto;
  }

  .entry-language-switch {
    top: 20px;
    right: 18px;
  }

  .market-entry-shell {
    gap: 24px;
    transform: none;
  }

  .market-entry-heading h1 {
    white-space: normal;
  }

  .market-entry-grid {
    grid-template-columns: 1fr;
    max-width: 680px;
    width: 100%;
    margin-inline: auto;
  }

  .market-entry-card {
    min-height: 430px;
  }

  .market-entry-feature-rail {
    grid-template-columns: 1fr;
    max-width: 620px;
    gap: 14px;
  }

  .market-entry-feature-rail div {
    border-right: 0;
    border-bottom: 1px solid rgba(177, 137, 74, 0.18);
    padding: 10px 4px 16px;
  }

  .market-entry-feature-rail div:last-child {
    border-bottom: 0;
  }
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  min-height: 40px;
  padding: 0 14px;
  font-weight: 700;
}

button:hover {
  filter: brightness(0.96);
}

button.secondary {
  background: #26372f;
}

button.danger {
  background: var(--danger);
}

button.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 22px;
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.topbar h1 {
  margin: 0;
  font-size: clamp(20px, 2vw, 30px);
  letter-spacing: 0;
}

.brand-wordmark {
  display: none;
}

.topbar p {
  margin: 4px 0 0;
  color: var(--muted);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  min-width: 0;
}

.top-actions span {
  color: var(--muted);
  font-weight: 700;
}

.catalog-market-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.95);
  box-shadow: 0 4px 14px rgba(29, 40, 33, 0.06);
}

.catalog-market-switch button {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-weight: 800;
}

.catalog-market-switch button.active {
  background: var(--accent);
  color: #fff;
}

.catalog-market-switch button:focus-visible {
  outline: 2px solid rgba(35, 107, 85, 0.3);
  outline-offset: 2px;
}

.language-picker {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-picker span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.language-picker select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  padding: 0 10px;
}

.view-tabs {
  position: sticky;
  top: 73px;
  z-index: 9;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 18px;
  background: rgba(246, 244, 239, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.view-tabs a,
.view-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.view-tabs a:hover,
.view-tabs button:hover {
  border-color: #c7bfae;
  background: #fff;
  filter: none;
}

.view-tabs a.active,
.view-tabs button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.view-tabs .ai-nav-link {
  border-color: #c4d8cd;
  color: #1f6f55;
}

.view-tabs .ai-nav-link.active {
  background: #1f6f55;
  color: #fff;
}

.view-tabs .nav-label {
  min-width: 0;
}

.view-tabs .nav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
  font-size: 12px;
  line-height: 1;
}

.mobile-secondary-nav {
  display: none;
}

.mobile-catalog-shortcuts,
.mobile-trust-panel,
.mobile-bottom-nav {
  display: none;
}

.mobile-secondary-nav summary {
  list-style: none;
}

.mobile-secondary-nav summary::-webkit-details-marker {
  display: none;
}

.app-view {
  display: none;
}

.app-view.active {
  display: grid;
}

.app-view:not(.active) {
  display: none;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  width: 100%;
  max-width: 100%;
}

.catalog {
  min-width: 0;
}

.catalog-controls-sticky {
  position: sticky;
  top: var(--catalog-controls-offset);
  z-index: 8;
  display: grid;
  margin: -2px -18px 12px;
  padding: 10px 18px 2px;
  border-bottom: 1px solid rgba(216, 210, 198, 0.82);
  background: rgba(246, 244, 239, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 26px rgba(29, 40, 33, 0.07);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 250px 160px;
  gap: 12px;
  margin-bottom: 12px;
}

.advanced-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.catalog-filter-dialog {
  position: static;
  width: 100%;
  max-width: none;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
}

.catalog-filter-dialog:not([open]) {
  display: none;
}

.catalog-filter-dialog[open] {
  display: grid;
}

.catalog-filter-dialog-header,
.catalog-filter-dialog-actions {
  display: none;
}

.catalog-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.catalog-summary > .catalog-summary-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto;
  min-width: 0;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.catalog-summary > button.catalog-summary-item {
  cursor: pointer;
  font: inherit;
  text-align: inherit;
  appearance: none;
}

.catalog-summary > button.catalog-summary-item:hover,
.catalog-summary > button.catalog-summary-item:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(35, 107, 85, 0.12);
}

.summary-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: var(--text);
}

.summary-copy {
  min-width: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.summary-label {
  color: var(--muted);
  white-space: nowrap;
}

.summary-value {
  color: var(--text);
  white-space: nowrap;
}

.summary-icon-svg,
.quote-bar-icon-svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.buyer-intent-shortcuts {
  display: flex;
  gap: 8px;
  max-width: 100%;
  margin: -2px 0 12px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.buyer-intent-shortcuts button {
  flex: 0 0 auto;
  min-height: 34px;
  max-width: 190px;
  padding: 0 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.buyer-intent-shortcuts button:hover {
  border-color: #b7d2c6;
  background: #f7fbf8;
  filter: none;
}

.buyer-intent-shortcuts button.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(35, 107, 85, 0.08);
}

.filter-toggle {
  display: none;
  margin-bottom: 10px;
}

.price-range-field input {
  min-width: 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field span,
.field > label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  padding: 9px 11px;
  outline: none;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(35, 107, 85, 0.12);
}

.field-error {
  min-height: 1.2em;
  color: var(--danger);
  font-size: 12px;
  font-weight: 700;
}

.section-tabs,
.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 12px;
}

.section-tabs {
  padding-bottom: 10px;
}

.section-tabs button,
.category-tabs button {
  flex: 0 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  min-height: 36px;
  font-weight: 700;
}

.section-tabs button.active,
.category-tabs button.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.catalog-filter-panel .search-field {
  position: relative;
}

.catalog-filter-panel .search-field .search-button {
  position: absolute;
  right: 0;
  bottom: 0;
}

.catalog-filter-panel .search-field input {
  padding-right: 104px;
}

.category-tabs.is-attention {
  border-radius: 8px;
  box-shadow: 0 0 0 3px rgba(35, 107, 85, 0.16);
}

.global-catalog-sticky-bar {
  display: none;
}

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

.product-grid[data-result-layout="single-exact"] {
  grid-template-columns: minmax(320px, 520px);
}

html[data-catalog-market] .product-grid[data-result-layout="single-exact"] {
  grid-template-columns: minmax(320px, 520px);
}

.categories-view {
  align-content: start;
}

.category-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.category-page-heading h2 {
  margin: 0;
  font-size: 26px;
}

.category-page-heading p {
  margin: 5px 0 0;
  color: var(--muted);
}

.category-page-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.category-rail {
  position: sticky;
  top: var(--catalog-controls-offset);
  max-height: calc(100vh - var(--catalog-controls-offset) - 18px);
  overflow-y: auto;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  scrollbar-width: thin;
}

.category-rail button {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}

.category-rail button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-rail button em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.category-rail button.active {
  border-color: #c7ddd3;
  background: #edf6f1;
  color: #236b55;
}

.category-rail button.active em {
  color: #236b55;
}

.category-results-panel {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.category-results-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.category-page-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.category-results-header h3 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
}

.category-results-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.category-quick-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.category-quick-filters button {
  flex: 0 0 auto;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.category-quick-filters button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.category-quick-filters em {
  font-style: normal;
  opacity: 0.76;
}

.category-products-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}

.category-product-card {
  min-width: 0;
  overflow: hidden;
}

.category-product-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.category-product-image {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.category-product-media .stock-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
}

.category-product-main {
  display: grid;
  gap: 7px;
  padding: 9px;
}

.category-product-card .product-code {
  color: #2a735a;
  font-size: 11px;
}

.category-product-card .product-name {
  min-height: 36px;
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}

.category-product-price {
  color: #236b55;
  font-size: 17px;
  font-weight: 900;
}

.category-product-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 7px;
  align-items: center;
}

.category-product-add {
  width: 40px;
  height: 38px;
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 8px;
}

.category-add-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.load-more-row {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  padding: 8px 0 16px;
}

.load-more-products {
  min-width: 220px;
}

.global-paging-status {
  place-items: stretch;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #b9d8c9;
  border-radius: 8px;
  background: #eef8f3;
}

.global-paging-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.global-paging-copy strong {
  color: var(--accent);
  font-size: 15px;
}

.global-paging-copy span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.global-pagination-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.global-page-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.global-page-button,
.global-page-step {
  min-height: 38px;
  border-radius: 7px;
  font-weight: 800;
}

.global-page-button {
  min-width: 38px;
  padding: 0 10px;
  border: 1px solid #cfe3d8;
  background: #fff;
  color: var(--ink);
}

.global-page-button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.global-page-button:disabled,
.global-page-step:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.global-page-button:focus-visible,
.global-page-step:focus-visible {
  outline: 3px solid rgba(31, 111, 85, 0.22);
  outline-offset: 2px;
}

.global-page-ellipsis {
  min-width: 18px;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

@media (max-width: 640px) {
  .global-paging-status {
    grid-template-columns: 1fr;
  }

  .global-pagination-controls {
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .global-page-list {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .global-page-step {
    flex: 1 1 120px;
  }

  .global-paging-status .load-more-products,
  .global-paging-status .inventory-load-more-products {
    width: 100%;
  }
}

.inventory-load-more-row {
  padding: 10px 0 18px;
}

.inventory-load-more-products {
  min-width: 240px;
}

[data-load-more-products],
[data-load-more-inventory] {
  scroll-margin-bottom: 110px;
}

#productGrid .load-more-row,
#inventoryList .load-more-row {
  padding-bottom: 104px;
}

@media (min-width: 641px) {
  #productGrid .load-more-row.global-paging-status,
  #inventoryList .load-more-row.global-paging-status {
    padding-bottom: 14px;
  }
}

.product-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 12px;
  min-height: 252px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(29, 40, 33, 0.03);
}

.product-detail-trigger {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
}

.product-detail-media-trigger {
  display: block;
  min-width: 44px;
  min-height: 44px;
  border-radius: 6px;
}

.product-detail-name-trigger {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  width: 100%;
  font-weight: inherit;
  line-height: inherit;
}

.product-detail-trigger:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.product-detail-dialog {
  width: min(760px, calc(100vw - 24px));
  max-height: min(860px, calc(100vh - 24px));
  padding: 0;
  border: 0;
  border-radius: 14px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(20, 37, 27, 0.3);
}

.product-detail-dialog::backdrop {
  background: rgba(20, 37, 27, 0.62);
}

.product-detail-dialog-shell {
  position: relative;
  max-height: min(860px, calc(100vh - 24px));
  overflow: auto;
  padding: 24px;
}

.product-detail-dialog .product-detail-close {
  width: 44px;
  min-width: 44px;
  min-height: 44px;
}

.product-detail-header {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 20px;
  padding-right: 40px;
}

.product-detail-header > div {
  min-width: 0;
}

.product-detail-header h2 {
  margin: 4px 0 14px;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.product-detail-eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-detail-image {
  display: block;
  width: 200px;
  height: 200px;
  border: 1px solid var(--line);
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
}

.product-detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.product-detail-facts > div {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.product-detail-facts dt {
  color: var(--muted);
  font-size: 12px;
}

.product-detail-facts dd {
  margin: 3px 0 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.product-detail-dialog .product-compliance,
.product-detail-dialog .product-logistics {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quantity-tier-box {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #b9ddcc;
  border-radius: 8px;
  background: #f3faf6;
}

.quantity-tier-box > strong {
  display: block;
  margin-bottom: 8px;
  color: #145f49;
}

.quantity-tier-box table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.quantity-tier-box th,
.quantity-tier-box td {
  padding: 7px 9px;
  border-bottom: 1px solid #dbece4;
  text-align: right;
}

.quantity-tier-box th:first-child,
.quantity-tier-box td:first-child {
  text-align: left;
}

.quantity-tier-summary {
  width: fit-content;
  max-width: 100%;
  margin: 7px 0 0;
  padding: 4px 7px;
  border: 1px solid #b9ddcc;
  border-radius: 6px;
  background: #f3faf6;
  color: #145f49;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
}

.free-shipping-price-summary {
  display: grid;
  width: fit-content;
  max-width: 100%;
  gap: 2px;
  margin: 7px 0 0;
  padding: 6px 8px;
  border: 1px solid #dec688;
  border-radius: 8px;
  background: #fff8e8;
  color: #70520f;
  font-size: 11px;
  line-height: 1.35;
  text-align: left;
}

.free-shipping-price-summary strong,
.free-shipping-price-summary span {
  overflow-wrap: anywhere;
}

.free-shipping-price-summary span {
  color: #806d45;
  font-size: 10px;
}

.free-shipping-tier-box {
  border-color: #dec688;
  background: #fffaf0;
}

.free-shipping-tier-box > strong {
  color: #70520f;
}

.free-shipping-tier-box > p {
  margin: -2px 0 8px;
  color: #806d45;
  font-size: 11px;
  line-height: 1.45;
}

.free-shipping-tier-box th,
.free-shipping-tier-box td {
  border-bottom-color: #eadfbe;
}

.product-detail-form {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(180px, 1fr) minmax(160px, auto);
  gap: 12px;
  align-items: end;
  margin-top: 18px;
}

.product-detail-form input,
.product-detail-form button {
  min-height: 44px;
}

.product-detail-form button {
  width: 100%;
}

@media (max-width: 640px) {
  .product-detail-dialog-shell {
    padding: 18px;
  }

  .product-detail-header {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
    padding-right: 32px;
  }

  .product-detail-image {
    width: 104px;
    height: 104px;
  }

  .product-detail-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .product-detail-dialog .product-compliance-item:first-child {
    display: grid;
  }

  .product-detail-dialog .product-logistics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    max-height: none;
    overflow: visible;
  }
}

.product-card.search-result-highlight {
  outline: 3px solid #b96d2b;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .product-card.search-result-highlight {
    transition: none;
  }
}

.product-image {
  display: block;
  width: 132px;
  height: 132px;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: contain;
  background: #fff;
}

.product-image--fallback {
  background: #fff8ef;
  border-color: #d8e4d7;
}

.image-empty {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #faf8f2;
  font-size: 12px;
  text-align: center;
}

.product-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-code {
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.product-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.product-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}

.product-badge.hot {
  background: #f0e3d4;
  color: #724013;
}

.product-badge.sale {
  background: #f3dfdc;
  color: var(--danger);
}

.product-name {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.product-meta {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.product-compliance {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.product-compliance-summary {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.product-compliance-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 7px;
  align-items: start;
  line-height: 1.35;
}

.product-compliance-label {
  color: #506258;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.product-compliance-value {
  min-width: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.product-logistics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 8px;
  padding: 7px 8px;
  border: 1px solid #e2ddd2;
  border-radius: 6px;
  background: #fbf8f0;
}

.product-logistics-item {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.product-logistics-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.product-logistics-item strong {
  color: var(--text);
  font-size: 11px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.quick-qty-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  max-width: 100%;
  overflow: hidden;
}

.quick-qty-actions button {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid #cfe2d8;
  background: #f3faf6;
  color: #1f6f55;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.quick-qty-actions button:hover {
  border-color: #9dc8b5;
  background: var(--accent-soft);
  filter: none;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.primary-price {
  color: #145f49;
}

.secondary-price {
  font-weight: 700;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 7px;
  border-radius: 6px;
  background: #f0e3d4;
  color: #724013;
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.tag.green {
  background: var(--accent-soft);
  color: var(--accent);
}

.tag.sale {
  background: #f3dfdc;
  color: var(--danger);
}

.tag.muted-tag {
  background: #ede8df;
  color: var(--muted);
}

.stock-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  padding: 3px 7px;
  border: 1px solid #cfe2d8;
  border-radius: 6px;
  background: #f3faf6;
  color: #1f6f55;
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.stock-badge.out {
  border-color: #ead1cd;
  background: #fff3f1;
  color: var(--danger);
}

.stock-badge.unknown {
  border-color: #ddd6ca;
  background: #f6f1e8;
  color: var(--muted);
}

.stock-badge.loading {
  border-color: #d8c8a7;
  background: #fff9ec;
  color: #775a20;
}

.stock-badge.error {
  border-color: #e3b5ae;
  background: #fff4f2;
  color: #8f2f25;
}

.muted {
  color: var(--muted);
}

.add-row {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 8px;
  margin-top: auto;
}

.card-add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.card-add-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  flex: 0 0 18px;
  align-items: center;
  justify-content: center;
}

.card-add-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-add-label {
  line-height: 1;
}

.mobile-purchase-meta {
  display: none;
}

.card-add-button.is-added,
.category-product-add.is-added {
  background: #174d39;
  color: #fff;
}

.card-action-error {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  color: #9b1c1c;
  font-size: 12px;
  line-height: 1.35;
}

.card-action-error button {
  min-height: 44px;
  justify-self: start;
  border: 1px solid #d8a2a2;
  border-radius: 8px;
  background: #fff7f7;
  color: #7f1d1d;
}

.qty-stepper :disabled,
.inventory-action-row input:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.stock-contact-button,
.inventory-action-row [data-stock-contact] {
  min-height: 44px;
  border-color: #b96d2b;
  background: #fff8ef;
  color: #7a431b;
}

.stock-read-button,
.inventory-action-row [data-stock-action]:disabled {
  min-height: 44px;
  border-color: #d8d1c5;
  background: #f5f2ec;
  color: #726b61;
  cursor: wait;
}

.category-product-add:not(.stock-contact-button) .card-add-label {
  display: none;
}

.category-product-add.stock-contact-button {
  grid-column: 1 / -1;
  width: 100%;
  padding: 0 8px;
}

.qty-input {
  min-width: 0;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 8px;
}

@media (min-width: 721px) {
  #cartItems {
    display: none;
  }

  html[data-catalog-market="GLOBAL"] body {
    background: #fbfaf6;
  }

  html[data-catalog-market="GLOBAL"] .topbar {
    position: sticky;
    top: 0;
    min-height: 78px;
    padding: 14px 44px 12px;
    background: rgba(255, 253, 249, 0.96);
    border-bottom: 1px solid #ded7cb;
    box-shadow: 0 1px 0 rgba(34, 42, 37, 0.02);
  }

  html[data-catalog-market="GLOBAL"] .brand-lockup {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 30px;
  }

  html[data-catalog-market="GLOBAL"] .brand-wordmark {
    display: block;
    margin: 0;
    color: #193f31;
    font-family: Georgia, "Times New Roman", "Songti SC", serif;
    font-size: 39px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
  }

  html[data-catalog-market="GLOBAL"] .brand-lockup > h1[data-i18n="appTitle"] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  html[data-catalog-market="GLOBAL"] .brand-subtitle {
    display: none;
  }

  html[data-catalog-market="GLOBAL"] .catalog-market-badge {
    min-width: 174px;
    min-height: 44px;
    display: grid;
    align-content: center;
    gap: 2px;
    padding: 7px 16px;
    border: 1px solid #dfd5c6;
    border-radius: 9px;
    background: #fffaf1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  }

  html[data-catalog-market="GLOBAL"] .catalog-market-badge strong {
    color: #9b661f;
    font-size: 14px;
    line-height: 1.15;
    font-weight: 900;
  }

  html[data-catalog-market="GLOBAL"] .catalog-market-badge span {
    color: #6d685f;
    font-size: 11px;
    line-height: 1.15;
    font-weight: 700;
  }

  html[data-catalog-market="GLOBAL"] .top-actions {
    gap: 22px;
  }

  html[data-catalog-market="GLOBAL"] #productCount {
    display: none;
  }

  html[data-catalog-market="GLOBAL"] .catalog-market-switch {
    gap: 0;
    padding: 0;
    border-color: #e1d8cc;
    border-radius: 8px;
    overflow: hidden;
    background: #fffdf9;
    box-shadow: 0 8px 20px rgba(29, 40, 33, 0.08);
  }

  html[data-catalog-market="GLOBAL"] .catalog-market-switch button {
    min-width: 166px;
    min-height: 44px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    column-gap: 8px;
    padding: 6px 18px;
    border-radius: 0;
    color: #1e2722;
    text-align: left;
  }

  html[data-catalog-market="GLOBAL"] .catalog-market-switch button::before {
    content: "\25ef";
    grid-row: 1 / 3;
    align-self: center;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 0;
    font-size: 22px;
    line-height: 1;
    opacity: 0.92;
  }

  html[data-catalog-market="GLOBAL"] .catalog-market-switch button[data-market-option="global"]::before,
  html[data-catalog-market="GLOBAL"] .catalog-market-switch button.active::before {
    content: "\25c9";
  }

  html[data-catalog-market="GLOBAL"] .catalog-market-switch button:first-child {
    border-right: 1px solid #e1d8cc;
  }

  html[data-catalog-market="GLOBAL"] .catalog-market-switch button.active {
    background: linear-gradient(180deg, #1e563f, #163f30);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  }

  html[data-catalog-market="GLOBAL"] .market-switch-main {
    color: inherit;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.15;
  }

  html[data-catalog-market="GLOBAL"] .market-switch-subtitle {
    color: currentColor;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;
    opacity: 0.84;
  }

  html[data-catalog-market="GLOBAL"] .language-picker {
    min-height: 44px;
    gap: 10px;
    padding: 0 18px;
    border: 1px solid #e1d8cc;
    border-radius: 8px;
    background: #fffdf9;
  }

  html[data-catalog-market="GLOBAL"] .language-picker span {
    color: #1e2722;
    font-size: 14px;
    text-transform: none;
  }

  html[data-catalog-market="GLOBAL"] .language-picker::before {
    content: "\25ce";
    width: 21px;
    height: 21px;
    border: 0;
    border-radius: 0;
    display: grid;
    place-items: center;
    color: #1e2722;
    font-size: 21px;
    line-height: 1;
  }

  html[data-catalog-market="GLOBAL"] .language-picker select {
    min-width: 88px;
    min-height: 34px;
    border: 0;
    background: transparent;
    font-weight: 800;
  }

  html[data-catalog-market="GLOBAL"] #clearCartBtn {
    min-width: 155px;
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(180deg, #c49446, #b37b2f);
    color: #fff;
    font-size: 15px;
    box-shadow: 0 8px 20px rgba(154, 103, 35, 0.18);
  }

  html[data-catalog-market="GLOBAL"] .page-nav {
    top: 78px;
    min-height: 60px;
    gap: 46px;
    padding: 0 44px;
    align-items: stretch;
    background: rgba(255, 253, 249, 0.96);
    border-bottom: 1px solid #e3ddd2;
    box-shadow: 0 1px 0 rgba(34, 42, 37, 0.03);
  }

  html[data-catalog-market="GLOBAL"] .page-nav a,
  html[data-catalog-market="GLOBAL"] .page-nav button {
    position: relative;
    min-height: 60px;
    padding: 0 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #1f2924;
    box-shadow: none;
    font-size: 15px;
  }

  html[data-catalog-market="GLOBAL"] .page-nav a::before,
  html[data-catalog-market="GLOBAL"] .page-nav button::before {
    content: none;
    display: none;
  }

  html[data-catalog-market="GLOBAL"] .page-nav a.active,
  html[data-catalog-market="GLOBAL"] .page-nav button.active {
    background: transparent;
    color: #194b38;
  }

  html[data-catalog-market="GLOBAL"] .page-nav a.active::after,
  html[data-catalog-market="GLOBAL"] .page-nav button.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 999px 999px 0 0;
    background: #a87329;
  }

  html[data-catalog-market="GLOBAL"] .page-nav .nav-count {
    min-width: 18px;
    min-height: 18px;
    background: #f1e7d7;
    color: #8a5a20;
  }

  html[data-catalog-market="GLOBAL"] .layout {
    padding: 2px 44px 116px;
    gap: 10px;
  }

  html[data-catalog-market="GLOBAL"] .catalog-controls-sticky {
    --catalog-controls-offset: 138px;
    position: static;
    top: auto;
    z-index: auto;
    margin: 0 -12px 12px;
    padding: 10px 12px 2px;
    border-bottom-color: #e8dece;
    background: rgba(251, 250, 246, 0.97);
    box-shadow: 0 8px 20px rgba(34, 42, 37, 0.04);
  }

  html[data-catalog-market="GLOBAL"] .global-catalog-sticky-bar {
    --catalog-controls-offset: 138px;
    position: sticky;
    top: var(--catalog-controls-offset);
    z-index: 8;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 54px;
    margin: 0 -12px 12px;
    padding: 8px 12px;
    border: 1px solid #e8dece;
    border-radius: 10px;
    background: rgba(255, 253, 249, 0.98);
    box-shadow: 0 10px 22px rgba(34, 42, 37, 0.08);
    backdrop-filter: blur(10px);
  }

  html[data-catalog-market="GLOBAL"] .global-sticky-meta {
    min-width: 224px;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  html[data-catalog-market="GLOBAL"] .global-sticky-summary {
    color: #1f2924;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
  }

  html[data-catalog-market="GLOBAL"] .global-sticky-filter {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #d9cdbc;
    border-radius: 7px;
    background: #fffaf1;
    color: #194b38;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
  }

  html[data-catalog-market="GLOBAL"] .global-sticky-category-tabs {
    min-width: 0;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 1px 0 3px;
    scrollbar-width: thin;
  }

  html[data-catalog-market="GLOBAL"] .global-sticky-category-tabs button {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #e0d6c8;
    border-radius: 7px;
    background: #fffdf9;
    color: #1f2924;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
  }

  html[data-catalog-market="GLOBAL"] .global-sticky-category-tabs button.active {
    border-color: #194b38;
    background: #194b38;
    color: #fff;
  }

  html[data-catalog-market="GLOBAL"] .catalog-summary {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    margin-bottom: 8px;
    padding: 14px 20px;
    border: 1px solid #e8dece;
    border-radius: 13px;
    background: #fffdf9;
    box-shadow: 0 10px 30px rgba(34, 42, 37, 0.04);
  }

  html[data-catalog-market="GLOBAL"] .catalog-summary-item {
    position: relative;
    min-width: 0;
    min-height: 42px;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    justify-content: center;
    gap: 13px;
    padding: 0 20px;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  html[data-catalog-market="GLOBAL"] .catalog-summary-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 6px;
    right: 0;
    bottom: 6px;
    width: 1px;
    background: #e8dece;
  }

  html[data-catalog-market="GLOBAL"] .summary-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    min-height: 40px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid #e2cfad;
    border-radius: 50%;
    background:
      radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 42%),
      linear-gradient(180deg, #fbf4e8, #f2e2c6);
    color: #a26b24;
    box-shadow:
      inset 0 0 0 4px rgba(255, 250, 240, 0.82),
      0 5px 12px rgba(168, 115, 41, 0.12);
  }

  html[data-catalog-market="GLOBAL"] .summary-icon::before {
    content: none;
  }

  html[data-catalog-market="GLOBAL"] .summary-icon-svg {
    width: 19px;
    height: 19px;
    stroke-width: 2.1;
  }

  html[data-catalog-market="GLOBAL"] .summary-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
    min-height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    box-shadow: none;
  }

  html[data-catalog-market="GLOBAL"] .summary-label {
    display: block;
    min-height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #2e3934;
    font-size: 13px;
    line-height: 1.15;
    font-weight: 800;
    text-transform: none;
  }

  html[data-catalog-market="GLOBAL"] .summary-value {
    color: #0d1411;
    font-size: 20px;
    line-height: 1.05;
    font-weight: 900;
    white-space: nowrap;
  }

  html[data-catalog-market="GLOBAL"] .catalog-filter-panel {
    position: relative;
    display: grid;
    gap: 8px;
    margin-bottom: 8px;
    padding: 10px 18px 11px;
    border: 1px solid #e8dece;
    border-radius: 13px;
    background: #fffdf9;
    box-shadow: 0 10px 30px rgba(34, 42, 37, 0.04);
  }

  html[data-catalog-market="GLOBAL"] .toolbar {
    display: grid;
    grid-template-columns: minmax(360px, 590px) 92px minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px;
    margin: 0;
  }

  html[data-catalog-market="GLOBAL"] .search-field {
    position: relative;
    grid-column: 1;
  }

  html[data-catalog-market="GLOBAL"] .search-field > span,
  html[data-catalog-market="GLOBAL"] .search-field > label {
    display: none;
  }

  html[data-catalog-market="GLOBAL"] .search-field::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    width: 16px;
    height: 16px;
    border: 2px solid #58645e;
    border-radius: 50%;
    transform: translateY(-50%);
    pointer-events: none;
  }

  html[data-catalog-market="GLOBAL"] .search-field input {
    min-height: 34px;
    padding-left: 45px;
  }

  html[data-catalog-market="GLOBAL"] .inventory-controls .search-field {
    grid-column: auto;
  }

  html[data-catalog-market="GLOBAL"] .inventory-controls .search-field > span {
    display: block;
  }

  html[data-catalog-market="GLOBAL"] .inventory-controls .search-field::before {
    top: auto;
    bottom: 9px;
    transform: none;
  }

  html[data-catalog-market="GLOBAL"] .search-button {
    min-height: 34px;
    border-radius: 7px;
    background: #174d39;
    color: #fff;
  }

  html[data-catalog-market="GLOBAL"] .filter-toggle {
    grid-column: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 124px;
    min-height: 34px;
    justify-self: end;
    border: 1px solid #e1d8cc;
    background: #fffdf9;
    color: #1e2722;
  }

  html[data-catalog-market="GLOBAL"] .filter-toggle::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: 10px;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: rotate(45deg) translateY(2px);
  }

  html[data-catalog-market="GLOBAL"] .filter-toggle[aria-expanded="false"]::after {
    transform: rotate(225deg) translateY(-2px);
  }

  html[data-catalog-market="GLOBAL"] .advanced-filters {
    display: grid;
    grid-template-columns: minmax(180px, 320px) minmax(180px, 320px) minmax(180px, 320px) minmax(130px, 180px) minmax(130px, 180px) minmax(210px, 1fr);
    gap: 13px 32px;
    margin: 0;
  }

  html[data-catalog-market="GLOBAL"] .advanced-filters [data-market-scope="idn"] {
    display: none;
  }

  html[data-catalog-market="GLOBAL"] .catalog-category-field {
    position: absolute;
    width: 1px;
    height: 1px;
    min-width: 1px;
    margin: 0;
    padding: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
  }

  html[data-catalog-market="GLOBAL"] .catalog-category-field select {
    min-height: 1px;
    padding: 0;
    border: 0;
  }

  html[data-catalog-market="GLOBAL"] .field {
    gap: 4px;
  }

  html[data-catalog-market="GLOBAL"] .field span {
    color: #636c66;
    font-size: 12px;
    font-weight: 800;
    text-transform: none;
  }

  html[data-catalog-market="GLOBAL"] .field input,
  html[data-catalog-market="GLOBAL"] .field select {
    min-height: 34px;
    border-color: #e1d8cc;
    border-radius: 7px;
    background: #fffdf9;
    color: #1e2722;
  }

  html[data-catalog-market="GLOBAL"] .buyer-intent-shortcuts,
  html[data-catalog-market="GLOBAL"] .section-tabs {
    display: none;
  }

  html[data-catalog-market="GLOBAL"] .category-tabs {
    flex-wrap: wrap;
    gap: 14px;
    row-gap: 8px;
    overflow-x: visible;
    padding: 0 0 8px;
    scrollbar-width: none;
  }

  html[data-catalog-market="GLOBAL"] .category-tabs::-webkit-scrollbar {
    display: none;
  }

  html[data-catalog-market="GLOBAL"] .category-tabs button {
    min-height: 34px;
    padding: 0 17px;
    border-color: #e1d8cc;
    border-radius: 7px;
    background: #fffdf9;
    color: #1e2722;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(34, 42, 37, 0.03);
  }

  html[data-catalog-market="GLOBAL"] .category-tabs button.active {
    border-color: #174d39;
    background: #174d39;
    color: #fff;
    box-shadow: 0 7px 16px rgba(23, 77, 57, 0.16);
  }

  html[data-catalog-market="GLOBAL"] .product-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 15px;
    align-items: start;
  }

  html[data-catalog-market="GLOBAL"] .product-card--global {
    min-width: 0;
    min-height: 528px;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 15px 15px;
    overflow: hidden;
    border-color: #e7ddce;
    border-radius: 8px;
    background: #fffdf9;
    box-shadow: 0 10px 24px rgba(34, 42, 37, 0.07);
  }

  html[data-catalog-market="GLOBAL"] .product-card--global .product-media {
    position: relative;
    height: 154px;
    display: grid;
    place-items: center;
    margin: 16px 4px 10px;
    aspect-ratio: auto;
    overflow: hidden;
  }

  html[data-catalog-market="GLOBAL"] .product-card--global .product-image,
  html[data-catalog-market="GLOBAL"] .product-card--global .image-empty {
    width: 100%;
    height: 154px;
    max-height: 154px;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
    background: #fff;
    object-fit: contain;
  }

  html[data-catalog-market="GLOBAL"] .favorite-btn {
    position: absolute;
    top: -5px;
    right: -4px;
    width: 28px;
    min-height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #717c76;
  }

  html[data-catalog-market="GLOBAL"] .favorite-btn::before {
    content: "\2661";
    font-size: 23px;
    line-height: 1;
  }

  html[data-catalog-market="GLOBAL"] .product-card--global .product-main {
    flex: 1;
    gap: 7px;
  }

  html[data-catalog-market="GLOBAL"] .product-card--global .product-topline {
    align-items: center;
    min-height: 18px;
  }

  html[data-catalog-market="GLOBAL"] .product-card--global .product-code {
    color: #3f4843;
    font-size: 12px;
    font-weight: 700;
  }

  html[data-catalog-market="GLOBAL"] .product-card--global .product-badges {
    justify-content: flex-end;
  }

  html[data-catalog-market="GLOBAL"] .product-card--global .product-badge {
    min-height: 20px;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 10px;
  }

  html[data-catalog-market="GLOBAL"] .product-card--global .product-name {
    min-height: 41px;
    margin: 0;
    color: #0d1411;
    font-size: 15px;
    line-height: 1.34;
    font-weight: 900;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  html[data-catalog-market="GLOBAL"] .product-card--global .price-row {
    display: flex;
    gap: 7px;
    margin-top: 2px;
  }

  html[data-catalog-market="GLOBAL"] .product-card--global .price-row .tag {
    min-height: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #a06418;
    font-size: 15px;
    font-weight: 900;
  }

  html[data-catalog-market="GLOBAL"] .product-card--global .product-meta {
    display: grid;
    gap: 5px;
    color: #55625c;
    font-size: 12px;
    line-height: 1.28;
  }

  html[data-catalog-market="GLOBAL"] .product-card--global [data-card-secondary] {
    min-height: 32px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  html[data-catalog-market="GLOBAL"] .product-card--global [data-card-category] {
    display: none;
  }

  html[data-catalog-market="GLOBAL"] .product-card--global [data-card-spec] {
    color: #303b36;
    font-size: 12px;
  }

  html[data-catalog-market="GLOBAL"] .product-card--global .product-logistics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 12px;
    margin-top: 4px;
    padding: 10px 11px;
    border-color: #e8dece;
    border-radius: 7px;
    background: #fcf8f0;
  }

  html[data-catalog-market="GLOBAL"] .product-card--global .product-logistics-label {
    color: #5b665f;
    font-size: 11px;
    font-weight: 800;
    text-transform: none;
  }

  html[data-catalog-market="GLOBAL"] .product-card--global .product-logistics-item strong {
    color: #101713;
    font-size: 11px;
    font-weight: 900;
  }

  html[data-catalog-market="GLOBAL"] .product-card--global .stock-badge {
    min-height: 25px;
    padding: 2px 8px;
    border-color: #d7eadf;
    border-radius: 999px;
    background: #f0faf4;
    color: #236b55;
    font-size: 12px;
  }

  html[data-catalog-market="GLOBAL"] .product-card--global .product-media .stock-badge {
    position: absolute;
    left: 8px;
    bottom: 8px;
    max-width: calc(100% - 16px);
    border: 0;
    border-radius: 7px;
    background: rgba(231, 242, 237, 0.96);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  }

  html[data-catalog-market="GLOBAL"] .product-card--global .add-row {
    grid-template-columns: minmax(0, 1fr) 118px;
    gap: 10px;
    margin-top: auto;
  }

  html[data-catalog-market="GLOBAL"] .qty-stepper {
    min-width: 0;
    display: grid;
    grid-template-columns: 40px minmax(42px, 1fr) 40px;
    overflow: hidden;
    border: 1px solid #e1d8cc;
    border-radius: 7px;
    background: #fffdf9;
  }

  html[data-catalog-market="GLOBAL"] .qty-stepper button {
    min-height: 40px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #25302a;
  }

  html[data-catalog-market="GLOBAL"] .qty-stepper .qty-input {
    width: 100%;
    height: 40px;
    border: 0;
    border-right: 1px solid #e1d8cc;
    border-left: 1px solid #e1d8cc;
    border-radius: 0;
    background: #fffdf9;
    text-align: center;
  }

  html[data-catalog-market="GLOBAL"] .product-card--global .add-row > button[data-add] {
    min-height: 40px;
    border-radius: 7px;
    background: #174d39;
    color: #fff;
    font-size: 14px;
  }

  html[data-catalog-market="GLOBAL"] .mobile-quote-bar {
    right: 18px;
    bottom: 18px;
    grid-template-columns: 1fr;
    align-items: center;
    justify-items: center;
    gap: 0;
    width: 60px;
    min-width: 60px;
    height: 60px;
    min-height: 60px;
    padding: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #2b775d, #236249);
    box-shadow: 0 9px 24px rgba(28, 70, 53, 0.24);
  }

  html[data-catalog-market="GLOBAL"] .quote-bar-icon {
    width: 54px;
    height: 54px;
    min-height: 54px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 238, 190, 0.62);
    border-radius: 50%;
    background:
      radial-gradient(circle at 34% 25%, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0) 36%),
      linear-gradient(180deg, #ecc36f 0%, #d7a24d 58%, #bd8433 100%);
    color: #fff8e8;
    box-shadow:
      inset 0 0 0 4px rgba(255, 245, 217, 0.26),
      0 10px 22px rgba(10, 38, 27, 0.28);
  }

  html[data-catalog-market="GLOBAL"] .quote-bar-icon::before {
    content: none;
  }

  html[data-catalog-market="GLOBAL"] .quote-bar-icon-svg {
    width: 28px;
    height: 28px;
    stroke-width: 2.15;
  }

  html[data-catalog-market="GLOBAL"] .quote-bar-copy {
    display: none;
  }

  html[data-catalog-market="GLOBAL"] .mobile-quote-bar span,
  html[data-catalog-market="GLOBAL"] .mobile-quote-bar em {
    color: inherit;
  }

  html[data-catalog-market="GLOBAL"] #mobileQuoteLabel {
    font-size: 16px;
    font-weight: 900;
  }

  html[data-catalog-market="GLOBAL"] #mobileQuoteCount {
    font-size: 13px;
    opacity: 0.88;
  }

  html[data-catalog-market="GLOBAL"] .mobile-quote-bar strong {
    display: none;
  }

  html[data-catalog-market="GLOBAL"] .quote-bar-action {
    display: none;
  }
}

@media (min-width: 721px) {
  html[data-catalog-market="IDN"] body {
    background: #fbfaf6;
  }

  html[data-catalog-market="IDN"] .topbar {
    position: sticky;
    top: 0;
    min-height: 78px;
    padding: 14px 44px 12px;
    background: rgba(255, 253, 249, 0.96);
    border-bottom: 1px solid #ded7cb;
    box-shadow: 0 1px 0 rgba(34, 42, 37, 0.02);
  }

  html[data-catalog-market="IDN"] .brand-lockup {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 28px;
  }

  html[data-catalog-market="IDN"] .brand-wordmark {
    display: block;
    color: #213c2f;
    font-family: Georgia, "Times New Roman", "Songti SC", serif;
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
  }

  html[data-catalog-market="IDN"] .brand-lockup > h1[data-i18n="appTitle"] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  html[data-catalog-market="IDN"] .brand-subtitle {
    display: none;
  }

  html[data-catalog-market="IDN"] .catalog-market-badge {
    min-width: 174px;
    display: grid;
    gap: 1px;
    padding: 9px 16px;
    border: 1px solid #efe3d2;
    border-radius: 8px;
    background: #fffaf1;
    box-shadow: 0 5px 14px rgba(34, 42, 37, 0.04);
  }

  html[data-catalog-market="IDN"] .catalog-market-badge strong {
    color: #9b661f;
    font-size: 14px;
    line-height: 1.1;
    font-weight: 900;
  }

  html[data-catalog-market="IDN"] .catalog-market-badge span {
    color: #6d685f;
    font-size: 12px;
    line-height: 1.1;
    font-weight: 700;
  }

  html[data-catalog-market="IDN"] .top-actions {
    gap: 22px;
  }

  html[data-catalog-market="IDN"] #productCount {
    display: none;
  }

  html[data-catalog-market="IDN"] .catalog-market-switch {
    gap: 0;
    order: -1;
    padding: 0;
    overflow: hidden;
    border-color: #ece1d0;
    border-radius: 8px;
    background: #fffdf9;
    box-shadow: 0 7px 18px rgba(34, 42, 37, 0.05);
  }

  html[data-catalog-market="IDN"] .catalog-market-switch button {
    min-width: 166px;
    min-height: 44px;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-content: center;
    column-gap: 8px;
    padding: 0 18px;
    border-radius: 0;
    background: transparent;
    color: #1f2924;
    text-align: left;
  }

  html[data-catalog-market="IDN"] .catalog-market-switch button::before {
    content: "\25ef";
    grid-row: span 2;
    align-self: center;
    color: currentColor;
    font-size: 20px;
    line-height: 1;
  }

  html[data-catalog-market="IDN"] .catalog-market-switch button.active::before {
    content: "\25c9";
  }

  html[data-catalog-market="IDN"] .catalog-market-switch button:first-child {
    border-right: 1px solid #e1d8cc;
  }

  html[data-catalog-market="IDN"] .catalog-market-switch button.active {
    background: linear-gradient(180deg, #1e563f, #163f30);
    color: #fff;
  }

  html[data-catalog-market="IDN"] .market-switch-main,
  html[data-catalog-market="IDN"] .market-switch-subtitle {
    color: inherit;
  }

  html[data-catalog-market="IDN"] .market-switch-main {
    font-size: 14px;
    line-height: 1.1;
  }

  html[data-catalog-market="IDN"] .market-switch-subtitle {
    font-size: 11px;
    font-weight: 700;
    opacity: 0.86;
  }

  html[data-catalog-market="IDN"] .language-picker {
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #ece1d0;
    border-radius: 8px;
    background: #fffdf9;
  }

  html[data-catalog-market="IDN"] .language-picker span {
    color: #1e2722;
    font-size: 13px;
  }

  html[data-catalog-market="IDN"] .language-picker select {
    min-width: 88px;
    min-height: 40px;
    border: 0;
    background: transparent;
    font-weight: 900;
  }

  html[data-catalog-market="IDN"] #clearCartBtn {
    min-width: 155px;
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(180deg, #c1974c, #b2843a);
    color: #fff;
    font-weight: 900;
  }

  html[data-catalog-market="IDN"] .page-nav {
    top: 78px;
    min-height: 60px;
    gap: 34px;
    padding: 0 44px;
    align-items: stretch;
    background: rgba(255, 253, 249, 0.96);
    border-bottom-color: #ded7cb;
  }

  html[data-catalog-market="IDN"] .page-nav a,
  html[data-catalog-market="IDN"] .page-nav button {
    position: relative;
    min-height: 60px;
    padding: 0 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #21332a;
    font-size: 15px;
  }

  html[data-catalog-market="IDN"] .page-nav a.active,
  html[data-catalog-market="IDN"] .page-nav button.active {
    background: transparent;
    color: #21332a;
  }

  html[data-catalog-market="IDN"] .page-nav a.active::after,
  html[data-catalog-market="IDN"] .page-nav button.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: #b2843a;
  }

  html[data-catalog-market="IDN"] .layout {
    padding: 2px 44px 116px;
    gap: 10px;
  }

  html[data-catalog-market="IDN"] .catalog-controls-sticky {
    --catalog-controls-offset: 138px;
    position: static;
    top: auto;
    z-index: auto;
    margin: 0 -12px 12px;
    padding: 10px 12px 2px;
    border-bottom-color: #e8dece;
    background: rgba(251, 250, 246, 0.97);
    box-shadow: 0 8px 20px rgba(34, 42, 37, 0.04);
  }

  html[data-catalog-market="IDN"] .catalog-filter-panel {
    position: relative;
    display: grid;
    gap: 8px;
    margin-bottom: 8px;
    padding: 10px 18px 11px;
    border: 1px solid #e8dece;
    border-radius: 13px;
    background: #fffdf9;
    box-shadow: 0 10px 30px rgba(34, 42, 37, 0.04);
  }

  html[data-catalog-market="IDN"] .toolbar {
    display: grid;
    grid-template-columns: minmax(360px, 590px) 92px minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px;
    margin: 0;
  }

  html[data-catalog-market="IDN"] .search-field {
    position: relative;
    grid-column: 1;
  }

  html[data-catalog-market="IDN"] .search-field > span,
  html[data-catalog-market="IDN"] .search-field > label {
    display: none;
  }

  html[data-catalog-market="IDN"] .search-field::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    width: 16px;
    height: 16px;
    border: 2px solid #58645e;
    border-radius: 50%;
    transform: translateY(-50%);
    pointer-events: none;
  }

  html[data-catalog-market="IDN"] .search-field input {
    min-height: 34px;
    padding-left: 45px;
  }

  html[data-catalog-market="IDN"] .search-button {
    min-height: 34px;
    border-radius: 7px;
    background: #174d39;
    color: #fff;
  }

  html[data-catalog-market="IDN"] .filter-toggle {
    grid-column: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 124px;
    min-height: 34px;
    justify-self: end;
    border: 1px solid #e1d8cc;
    background: #fffdf9;
    color: #1e2722;
  }

  html[data-catalog-market="IDN"] .filter-toggle::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: 10px;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: rotate(45deg) translateY(2px);
  }

  html[data-catalog-market="IDN"] .filter-toggle[aria-expanded="false"]::after {
    transform: rotate(225deg) translateY(-2px);
  }

  html[data-catalog-market="IDN"] .advanced-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 13px 20px;
    margin: 0;
  }

  html[data-catalog-market="IDN"] .catalog-category-field {
    position: absolute;
    width: 1px;
    height: 1px;
    min-width: 1px;
    margin: 0;
    padding: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
  }

  html[data-catalog-market="IDN"] .field {
    gap: 4px;
  }

  html[data-catalog-market="IDN"] .field span {
    color: #636c66;
    font-size: 12px;
    font-weight: 800;
    text-transform: none;
  }

  html[data-catalog-market="IDN"] .field input,
  html[data-catalog-market="IDN"] .field select {
    min-height: 34px;
    border-color: #e1d8cc;
    border-radius: 7px;
    background: #fffdf9;
    color: #1e2722;
  }

  html[data-catalog-market="IDN"] .buyer-intent-shortcuts {
    display: none;
  }

  html[data-catalog-market="IDN"] .category-tabs {
    flex-wrap: wrap;
    gap: 14px;
    row-gap: 8px;
    overflow-x: visible;
    padding: 0 0 8px;
    scrollbar-width: none;
  }

  html[data-catalog-market="IDN"] .category-tabs button {
    min-height: 34px;
    padding: 0 17px;
    border-color: #e1d8cc;
    border-radius: 7px;
    background: #fffdf9;
    color: #1e2722;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(34, 42, 37, 0.03);
  }

  html[data-catalog-market="IDN"] .category-tabs button.active {
    border-color: #174d39;
    background: #174d39;
    color: #fff;
    box-shadow: 0 7px 16px rgba(23, 77, 57, 0.16);
  }

  html[data-catalog-market="IDN"] .catalog-summary {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    margin-bottom: 8px;
    padding: 14px 20px;
    border: 1px solid #e8dece;
    border-radius: 13px;
    background: #fffdf9;
    box-shadow: 0 10px 30px rgba(34, 42, 37, 0.04);
  }

  html[data-catalog-market="IDN"] .catalog-summary-item {
    position: relative;
    min-width: 0;
    min-height: 42px;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    justify-content: center;
    gap: 13px;
    padding: 0 20px;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  html[data-catalog-market="IDN"] .catalog-summary-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 6px;
    right: 0;
    bottom: 6px;
    width: 1px;
    background: #e8dece;
  }

  html[data-catalog-market="IDN"] .summary-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    min-height: 40px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #e2cfad;
    border-radius: 50%;
    background:
      radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 42%),
      linear-gradient(180deg, #fbf4e8, #f2e2c6);
    color: #a26b24;
  }

  html[data-catalog-market="IDN"] .summary-icon::before {
    content: none;
  }

  html[data-catalog-market="IDN"] .summary-icon-svg {
    width: 19px;
    height: 19px;
    stroke-width: 2.1;
  }

  html[data-catalog-market="IDN"] .summary-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
  }

  html[data-catalog-market="IDN"] .summary-label {
    color: #2e3934;
    font-size: 13px;
    line-height: 1.15;
    font-weight: 800;
  }

  html[data-catalog-market="IDN"] .summary-value {
    color: #0d1411;
    font-size: 20px;
    line-height: 1.05;
    font-weight: 900;
    white-space: nowrap;
  }

  html[data-catalog-market="IDN"] .global-catalog-sticky-bar {
    --catalog-controls-offset: 138px;
    position: sticky;
    top: var(--catalog-controls-offset);
    z-index: 8;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 54px;
    margin: 0 -12px 12px;
    padding: 8px 12px;
    border: 1px solid #e8dece;
    border-radius: 10px;
    background: rgba(255, 253, 249, 0.98);
    box-shadow: 0 10px 22px rgba(34, 42, 37, 0.08);
    backdrop-filter: blur(10px);
  }

  html[data-catalog-market="IDN"] .global-sticky-meta {
    min-width: 224px;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  html[data-catalog-market="IDN"] .global-sticky-summary {
    color: #1f2924;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
  }

  html[data-catalog-market="IDN"] .global-sticky-filter {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #d9cdbc;
    border-radius: 7px;
    background: #fffaf1;
    color: #194b38;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
  }

  html[data-catalog-market="IDN"] .global-sticky-category-tabs {
    min-width: 0;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 1px 0 3px;
    scrollbar-width: thin;
  }

  html[data-catalog-market="IDN"] .global-sticky-category-tabs button {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #e0d6c8;
    border-radius: 7px;
    background: #fffdf9;
    color: #1f2924;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
  }

  html[data-catalog-market="IDN"] .global-sticky-category-tabs button.active {
    border-color: #194b38;
    background: #194b38;
    color: #fff;
  }

  html[data-catalog-market="IDN"] .product-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 15px;
    align-items: start;
  }

  html[data-catalog-market="IDN"] .product-card--idn {
    min-width: 0;
    min-height: 528px;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 15px 15px;
    overflow: hidden;
    border-color: #e7ddce;
    border-radius: 8px;
    background: #fffdf9;
    box-shadow: 0 10px 24px rgba(34, 42, 37, 0.07);
  }

  html[data-catalog-market="IDN"] .product-card--idn .product-media {
    position: relative;
    height: 154px;
    display: grid;
    place-items: center;
    margin: 16px 4px 10px;
    overflow: hidden;
  }

  html[data-catalog-market="IDN"] .product-card--idn .product-image,
  html[data-catalog-market="IDN"] .product-card--idn .image-empty {
    width: 100%;
    height: 154px;
    max-height: 154px;
    border: 0;
    border-radius: 0;
    background: #fff;
    object-fit: contain;
  }

  html[data-catalog-market="IDN"] .favorite-btn {
    position: absolute;
    top: -5px;
    right: -4px;
    width: 28px;
    min-height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #717c76;
  }

  html[data-catalog-market="IDN"] .favorite-btn::before {
    content: "\2661";
    font-size: 23px;
    line-height: 1;
  }

  html[data-catalog-market="IDN"] .product-card--idn .product-main {
    flex: 1;
    gap: 7px;
  }

  html[data-catalog-market="IDN"] .product-card--idn .product-topline {
    align-items: center;
    min-height: 18px;
  }

  html[data-catalog-market="IDN"] .product-card--idn .product-code {
    color: #3f4843;
    font-size: 12px;
    font-weight: 700;
  }

  html[data-catalog-market="IDN"] .product-card--idn .product-media .product-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    justify-content: flex-start;
  }

  html[data-catalog-market="IDN"] .product-card--idn .product-badge {
    min-height: 20px;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 10px;
  }

  html[data-catalog-market="IDN"] .product-card--idn .product-name {
    min-height: 41px;
    margin: 0;
    color: #0d1411;
    font-size: 15px;
    line-height: 1.34;
    font-weight: 900;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  html[data-catalog-market="IDN"] .product-card--idn .price-row {
    display: flex;
    gap: 7px;
    margin-top: 2px;
  }

  html[data-catalog-market="IDN"] .product-card--idn .price-row .tag {
    min-height: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #a06418;
    font-size: 15px;
    font-weight: 900;
  }

  html[data-catalog-market="IDN"] .product-card--idn .product-meta {
    display: grid;
    gap: 5px;
    color: #55625c;
    font-size: 12px;
    line-height: 1.28;
  }

  html[data-catalog-market="IDN"] .product-card--idn [data-card-secondary] {
    min-height: 32px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  html[data-catalog-market="IDN"] .product-card--idn [data-card-category] {
    display: none;
  }

  html[data-catalog-market="IDN"] .product-card--idn .product-detail-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-content: start;
    min-height: 206px;
    margin-top: 4px;
    padding: 10px 12px;
    border: 1px solid #e8dece;
    border-radius: 9px;
    background: #fcf8f0;
  }

  html[data-catalog-market="IDN"] .product-card--idn .product-compliance-summary {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    grid-template-rows: repeat(2, minmax(30px, max-content));
    gap: 7px 12px;
    padding-bottom: 9px;
  }

  html[data-catalog-market="IDN"] .product-card--idn .product-compliance-summary .product-compliance-item:nth-child(3) {
    grid-column: 1 / -1;
  }

  html[data-catalog-market="IDN"] .product-card--idn .product-logistics-inline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    padding-top: 9px;
    border-top: 1px solid #e7dfd3;
  }

  html[data-catalog-market="IDN"] .product-card--idn .product-compliance-item {
    min-height: 30px;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 5px;
    align-content: start;
  }

  html[data-catalog-market="IDN"] .product-card--idn .product-compliance-label,
  html[data-catalog-market="IDN"] .product-card--idn .product-logistics-label {
    color: #68756e;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.2;
  }

  html[data-catalog-market="IDN"] .product-card--idn .product-compliance-value,
  html[data-catalog-market="IDN"] .product-card--idn .product-logistics-item strong {
    color: #17211c;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
  }

  html[data-catalog-market="IDN"] .product-card--idn .stock-badge {
    min-height: 25px;
    padding: 2px 8px;
    border-color: #d7eadf;
    border-radius: 999px;
    background: #f0faf4;
    color: #236b55;
    font-size: 12px;
  }

  html[data-catalog-market="IDN"] .product-card--idn .product-media .stock-badge {
    position: absolute;
    left: 8px;
    bottom: 8px;
    max-width: calc(100% - 16px);
    border: 0;
    border-radius: 7px;
    background: rgba(231, 242, 237, 0.96);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  }

  html[data-catalog-market="IDN"] .product-card--idn .add-row {
    grid-template-columns: minmax(0, 1fr) 118px;
    gap: 10px;
    margin-top: auto;
  }

  html[data-catalog-market="IDN"] .qty-stepper {
    min-width: 0;
    display: grid;
    grid-template-columns: 40px minmax(42px, 1fr) 40px;
    overflow: hidden;
    border: 1px solid #e1d8cc;
    border-radius: 7px;
    background: #fffdf9;
  }

  html[data-catalog-market="IDN"] .qty-stepper button {
    min-height: 40px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #25302a;
  }

  html[data-catalog-market="IDN"] .qty-stepper .qty-input {
    width: 100%;
    height: 40px;
    border: 0;
    border-right: 1px solid #e1d8cc;
    border-left: 1px solid #e1d8cc;
    border-radius: 0;
    background: #fffdf9;
    text-align: center;
  }

  html[data-catalog-market="IDN"] .product-card--idn .add-row > button[data-add] {
    min-height: 40px;
    border-radius: 7px;
    background: #174d39;
    color: #fff;
    font-size: 14px;
  }

  html[data-catalog-market="IDN"] .mobile-quote-bar {
    right: 18px;
    bottom: 18px;
    grid-template-columns: 1fr;
    align-items: center;
    justify-items: center;
    gap: 0;
    width: 60px;
    min-width: 60px;
    height: 60px;
    min-height: 60px;
    padding: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #2b775d, #236249);
    box-shadow: 0 9px 24px rgba(28, 70, 53, 0.24);
  }

  html[data-catalog-market="IDN"] .quote-bar-icon {
    width: 54px;
    height: 54px;
    min-height: 54px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 238, 190, 0.62);
    border-radius: 50%;
    color: #fff8dc;
  }

  html[data-catalog-market="IDN"] .quote-bar-copy,
  html[data-catalog-market="IDN"] .mobile-quote-bar strong,
  html[data-catalog-market="IDN"] .quote-bar-action {
    display: none;
  }
}

@media (min-width: 721px) and (max-width: 1699px) {
  html[data-catalog-market="IDN"] .product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 721px) and (max-width: 1399px) {
  html[data-catalog-market="IDN"] .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 721px) and (max-width: 979px) {
  html[data-catalog-market="IDN"] .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.order-panel {
  position: static;
  top: auto;
  align-self: start;
  display: flex;
  flex-direction: column;
  max-height: none;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.panel-header h2 {
  margin: 0;
  font-size: 22px;
}

.panel-header p {
  margin: 4px 0 0;
  color: var(--muted);
}

.total {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 7px;
  background: #26372f;
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
}

.customer-fields {
  display: grid;
  gap: 10px;
  padding: 12px 0;
}

.currency-field {
  padding-top: 12px;
}

.quote-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.quote-metric {
  min-width: 0;
  padding: 8px;
  border: 1px solid #e1dccf;
  border-radius: 7px;
  background: #fbfaf6;
}

.quote-metric span,
.quote-metric strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.quote-metric span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.quote-metric strong {
  margin-top: 4px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
}

.quote-metric:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.quote-metric:last-child strong {
  color: var(--accent);
  font-size: 16px;
}

.order-volume-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.order-volume-row {
  min-width: 0;
  padding: 9px;
  border: 1px solid #cfe2d8;
  border-radius: 7px;
  background: #f5faf7;
}

.order-volume-row span,
.order-volume-row strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.order-volume-row span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.order-volume-row strong {
  margin-top: 4px;
  color: #205640;
  font-size: 13px;
  line-height: 1.3;
}

.order-volume-row[data-volume-warning] {
  grid-column: 1 / -1;
  border-color: #dec688;
  background: #fff9e9;
}

.order-volume-row[data-volume-warning] strong {
  color: #7a5718;
}

.volume-packing-assistant {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #d8d0bf;
  border-radius: 8px;
  background: #fbfaf6;
}

.volume-packing-assistant-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.volume-packing-assistant-head strong {
  color: var(--text);
  font-size: 13px;
}

.volume-packing-assistant-head span {
  padding: 2px 7px;
  border-radius: 999px;
  background: #e8f4ed;
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.volume-packing-assistant > p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.volume-target-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 94px;
  gap: 8px;
  align-items: end;
}

.volume-target-presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.volume-target-presets button {
  min-width: 0;
  min-height: 34px;
  padding: 5px;
  border: 1px solid #c9d8d0;
  background: #fff;
  color: #315548;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.volume-target-presets button.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.volume-target-field {
  display: grid;
  gap: 3px;
}

.volume-target-field span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.volume-target-field input {
  width: 100%;
  min-height: 34px;
  padding: 5px 7px;
  border: 1px solid #c9d8d0;
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  font-weight: 800;
}

.volume-assistant-result {
  min-height: 18px;
  color: #205640;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}

.volume-assistant-result small {
  display: block;
  margin-top: 2px;
  color: #7a5718;
  font-size: 10px;
  font-weight: 700;
}

.discount-notice {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid #b9d8c9;
  border-radius: 8px;
  background: #f1faf5;
}

.discount-notice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.discount-notice-head span,
.discount-line {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.discount-stack-rule {
  margin: 2px 0 0;
  color: #52665d;
  font-size: 12px;
  line-height: 1.45;
}

.discount-stack {
  display: grid;
  gap: 4px;
  margin: 3px 0;
  padding: 8px;
  border: 1px solid #d7eadf;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
}

.discount-stack > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #44554e;
  font-size: 12px;
}

.discount-stack > div:nth-child(3) {
  padding-top: 4px;
  border-top: 1px dashed #d7eadf;
}

.discount-stack strong {
  color: #20332b;
  text-align: right;
}

.discount-stack .discount-stack-saving {
  color: #b44b37;
}

.discount-notice-head strong,
.discount-payable {
  color: var(--accent);
  font-weight: 800;
}

.discount-payable {
  padding-top: 4px;
  border-top: 1px solid #d7eadf;
}

.detail-currency {
  padding: 0 0 12px;
}

.buyer-info-panel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.buyer-info-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  list-style: none;
}

.buyer-info-panel summary::-webkit-details-marker {
  display: none;
}

.buyer-info-panel summary::after {
  content: "+";
  display: inline-grid;
  flex: 0 0 22px;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  font-size: 15px;
  line-height: 1;
}

.buyer-info-panel[open] summary::after {
  content: "-";
}

.buyer-info-panel .customer-fields {
  padding: 8px 0 0;
}

.selected-products-panel {
  display: grid;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.side-section-title {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.2;
}

.cart-items {
  display: grid;
  gap: 8px;
  max-height: min(34vh, 300px);
  overflow: auto;
  padding-right: 2px;
}

.cart-empty {
  display: grid;
  place-items: center;
  min-height: 120px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.cart-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 70px 32px;
  gap: 8px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
}

.cart-item strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.cart-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.cart-item em {
  display: block;
  color: var(--accent-2);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  margin-top: 2px;
}

.cart-item-volume {
  display: block;
  margin-top: 3px;
  color: #536d62;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}

.cart-thumb,
.cart-thumb-empty {
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.cart-thumb {
  object-fit: contain;
}

.cart-thumb-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.cart-item input {
  width: 70px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 7px;
}

.remove-btn {
  width: 32px;
  min-height: 32px;
  padding: 0;
  background: #f3dfdc;
  color: var(--danger);
}

.order-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 12px;
}

.order-actions button:first-child {
  grid-column: 1 / -1;
}

.notify-sales-btn {
  grid-column: 1 / -1;
  background: #1f6f55;
}

.download-pdf-btn {
  grid-column: 1 / -1;
}

.notify-sales-btn:hover {
  background: #185944;
}

.sales-page {
  background: #f4f6f2;
}

.sales-topbar {
  background: #17231f;
  color: #fff;
}

.sales-topbar p,
.sales-topbar .sales-kicker,
.sales-topbar .language-picker span {
  color: #cbd6d0;
}

.sales-topbar .button-link.ghost,
.sales-topbar select {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.sales-kicker,
.sales-module-label {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 6px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(54, 126, 96, 0.18);
  color: #2f7459;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.sales-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  gap: 16px;
  width: min(1320px, calc(100vw - 28px));
  margin: 18px auto 40px;
}

.sales-shell.locked {
  display: none;
}

.sales-auth-view {
  width: min(920px, calc(100vw - 28px));
  margin: 26px auto 44px;
}

.sales-auth-card {
  border-color: #b9d4c7;
  background: linear-gradient(180deg, #fff 0%, #f5faf7 100%);
  box-shadow: 0 20px 50px rgba(31, 74, 59, 0.1);
}

.sales-form-grid.auth-grid {
  grid-template-columns: minmax(240px, 1fr) minmax(240px, 1fr) 180px;
  align-items: end;
}

.success-text {
  color: #2f7459 !important;
  font-weight: 900;
}

.sales-workspace-header {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(420px, auto);
  gap: 16px;
  align-items: end;
  padding: 14px;
  border: 1px solid #d6e3db;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(28, 54, 43, 0.07);
}

.sales-workspace-header h2 {
  margin: 0;
  font-size: 24px;
}

.sales-view-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border: 1px solid #d9e4dc;
  border-radius: 8px;
  background: #f6faf7;
}

.sales-view-nav button {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #5d6a64;
  font-size: 14px;
  font-weight: 900;
  box-shadow: none;
}

.sales-view-nav button:hover {
  border-color: #c7dbd1;
  background: #fff;
  color: #21342d;
  transform: none;
}

.sales-view-nav button.active {
  border-color: #2f7459;
  background: #2f7459;
  color: #fff;
}

.sales-view {
  display: none;
}

.sales-view.active {
  display: block;
}

.sales-ai-panel {
  grid-column: 1;
  border-color: #b9d4c7;
  background: linear-gradient(180deg, #fff 0%, #f7fbf7 100%);
}

.sales-manual-panel,
.sales-config-section,
.sales-orders-panel {
  grid-column: 1 / -1;
}

.sales-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.sales-form-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.sales-form-grid.notes-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.sales-filter-block {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.sales-filter-block h3,
.sales-manual-panel h2,
.sales-quote-panel h2 {
  margin: 0;
}

.sales-check-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.sales-check-card,
.check-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 10px;
  border: 1px solid #d9e4dc;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-weight: 800;
}

.sales-check-card {
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
}

.sales-check-card input,
.check-line input {
  width: auto;
  min-height: auto;
  accent-color: #24785d;
}

.sales-check-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.sales-rec-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.sales-summary-card {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #dce7df;
  border-radius: 8px;
  background: #fff;
}

.sales-summary-card span,
.sales-summary-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.sales-summary-card strong {
  color: #1f6f55;
  font-size: 20px;
}

.sales-recommendation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.sales-rec-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dce7df;
  border-radius: 8px;
  background: #fff;
}

.rec-card-head {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.rec-card-head h3 {
  margin: 6px 0 4px;
  font-size: 16px;
  line-height: 1.25;
}

.rec-card-head p,
.rec-reason,
.sales-product-row small,
.sales-quote-item small {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.rec-thumb,
.sales-product-thumb {
  width: 74px;
  height: 74px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.sales-product-thumb {
  width: 58px;
  height: 58px;
}

.rec-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rec-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f1f5ef;
  color: #355345;
  font-size: 12px;
  font-weight: 900;
}

.rec-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rec-qty-row label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.rec-qty-row input,
.sales-product-row input,
.sales-quote-item input {
  width: 72px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 8px;
}

.match-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.match-pill.high {
  background: #e9f7ef;
  color: #1f6f55;
}

.match-pill.medium {
  background: #fff4df;
  color: #8a5b15;
}

.match-pill.manual {
  background: #eef1f1;
  color: #53605c;
}

.sales-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.sales-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(360px, 0.9fr);
  gap: 16px;
  align-items: start;
}

.sales-quote-panel {
  grid-column: 2;
  position: sticky;
  top: 88px;
  align-self: start;
}

.sales-product-list,
.sales-quote-items {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.sales-product-list {
  max-height: 620px;
  overflow: auto;
}

.sales-product-row,
.sales-quote-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 74px auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.sales-product-row strong,
.sales-quote-item strong,
.sales-product-row span,
.sales-quote-item span,
.sales-product-row em {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.sales-product-row span,
.sales-quote-item span {
  font-size: 13px;
  font-weight: 800;
}

.sales-product-row em {
  color: #1f6f55;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.ai-page {
  background: #f5f6f2;
}

.ai-topbar {
  background: rgba(255, 253, 248, 0.96);
}

.ai-topbar .sales-kicker {
  background: #edf5ef;
  color: #1f6f55;
}

.ai-cart-link {
  gap: 8px;
}

.ai-customer-shell {
  display: grid;
  grid-template-columns: minmax(310px, 0.9fr) minmax(460px, 1.35fr) minmax(310px, 0.75fr);
  gap: 14px;
  width: min(1480px, calc(100vw - 28px));
  margin: 16px auto 40px;
  align-items: start;
}

.ai-filter-panel,
.ai-results-panel,
.ai-order-panel {
  border-color: #d6e3db;
  background: #fffef9;
}

.ai-filter-panel,
.ai-order-panel {
  position: sticky;
  top: 130px;
}

.customer-intake-panel {
  position: static;
  display: grid;
  gap: 18px;
}

.customer-step-head {
  display: grid;
  gap: 6px;
}

.customer-step-head h2,
.customer-question-block h3 {
  margin: 0;
}

.customer-question-block {
  display: grid;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid #e2ded4;
}

.customer-question-block:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.ai-budget-grid {
  grid-template-columns: 1fr;
}

.customer-action-row {
  position: sticky;
  bottom: 10px;
  z-index: 4;
  display: flex;
  gap: 10px;
  padding: 10px;
  border: 1px solid #d6e3db;
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 12px 28px rgba(28, 54, 43, 0.08);
  backdrop-filter: blur(10px);
}

.customer-action-row button {
  flex: 1 1 0;
}

.customer-results-panel .page-header,
.customer-selection-panel .page-header {
  align-items: start;
}

.customer-rec-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.customer-contact-fields {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e2ded4;
}

.ai-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ai-check-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ai-check-row {
  grid-template-columns: 1fr;
}

.ai-notes-field {
  margin-top: 12px;
}

.ai-rec-card {
  box-shadow: 0 8px 22px rgba(28, 54, 43, 0.05);
}

.ai-results-panel .sales-recommendation-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.ai-thumb-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
  object-fit: initial;
}

.ai-order-panel .sales-quote-items {
  max-height: min(54vh, 560px);
  overflow: auto;
  padding-right: 2px;
}

.sales-total-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.sales-total-panel div {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid #dce7df;
  border-radius: 8px;
  background: #f6fbf8;
}

.sales-total-panel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.sales-total-panel strong {
  color: #1f6f55;
  font-size: 18px;
}

.sales-total-panel .sales-pricing-rule {
  grid-column: 1 / -1;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid #d7eadf;
  border-radius: 8px;
  background: #f1faf5;
  color: #52665d;
  font-size: 12px;
  line-height: 1.45;
}

.sales-total-panel div[data-pricing-role="saving"] strong {
  color: #b44b37;
}

.sales-total-panel div[data-pricing-role="payable"] {
  border-color: #a9d4bd;
  background: #edf8f2;
}

.quote-actions button {
  flex: 1 1 180px;
}

.sales-config-section {
  border-color: #d3d8d2;
  background: #fbfbf8;
}

.page-view {
  gap: 14px;
  padding: 18px;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.page-header h2 {
  margin: 0;
  font-size: 26px;
}

.page-header p,
.hint {
  margin: 5px 0 0;
  color: var(--muted);
}

.page-actions,
.import-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.order-actions button,
.import-actions button {
  min-height: 44px;
}

.compact-header {
  align-items: flex-start;
  margin-bottom: 14px;
}

.file-button {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.file-button input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.order-detail-grid,
.import-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.inventory-layout {
  grid-template-columns: minmax(340px, 0.9fr) minmax(460px, 1.1fr);
  align-items: start;
}

.detail-section {
  min-width: 0;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-section h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.inventory-view {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}

.inventory-sync-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid #c9dfd2;
  border-radius: 8px;
  background: #f3faf6;
  color: #194f3c;
}

.inventory-sync-status[data-state="loading"] {
  border-color: #decda8;
  background: #fff9ec;
  color: #6f531e;
}

.inventory-sync-status[data-state="stale"],
.inventory-sync-status[data-state="error"] {
  border-color: #e2b7ae;
  background: #fff4f2;
  color: #812f27;
}

.inventory-sync-indicator {
  width: 12px;
  height: 12px;
  border: 3px solid currentColor;
  border-radius: 50%;
  background: currentColor;
}

.inventory-sync-status[data-state="loading"] .inventory-sync-indicator {
  border-right-color: transparent;
  background: transparent;
  animation: inventory-sync-spin 0.8s linear infinite;
}

.inventory-sync-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.inventory-sync-copy strong,
.inventory-sync-copy small {
  overflow-wrap: anywhere;
}

.inventory-sync-copy small {
  color: inherit;
  line-height: 1.4;
}

.inventory-sync-retry {
  min-width: 108px;
  min-height: 44px;
}

@keyframes inventory-sync-spin {
  to {
    transform: rotate(360deg);
  }
}

.inventory-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 10px;
}

.inventory-metric {
  min-width: 0;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.inventory-metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.inventory-metric strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 20px;
  overflow-wrap: anywhere;
}

.inventory-controls {
  display: grid;
  grid-template-columns:
    minmax(380px, 1.1fr)
    minmax(310px, 0.75fr)
    minmax(166px, 0.55fr)
    minmax(158px, 0.5fr)
    minmax(178px, 0.55fr);
  gap: 12px;
  margin-bottom: 12px;
}

.inventory-controls .field {
  min-width: 0;
}

.inventory-controls input,
.inventory-controls select {
  min-width: 0;
}

.inventory-list-public {
  display: grid;
  gap: 10px;
}

.inventory-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 130px 190px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.catalog-search-empty {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.catalog-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.catalog-empty-actions button,
[data-retry-catalog-search] {
  min-height: 44px;
}

.inventory-row--details,
.inventory-row--global {
  grid-template-columns: 86px minmax(260px, 0.95fr) minmax(280px, 0.9fr) 130px 190px;
}

.inventory-row--idn {
  grid-template-columns: 86px minmax(250px, 0.9fr) minmax(340px, 1.05fr) 130px 190px;
}

.inventory-thumb {
  width: 86px;
  height: 86px;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: contain;
  background: #fff;
}

.inventory-thumb-empty {
  display: grid;
  place-items: center;
  border-style: dashed;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.inventory-row-main {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.inventory-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.inventory-logistics-zone {
  min-width: 0;
  align-self: center;
}

.inventory-details-compact {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 9px;
  padding: 10px 11px;
  border: 1px solid #e8dece;
  border-radius: 7px;
  background: #fcf8f0;
}

.inventory-compliance-compact {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid #e7dfd3;
}

.inventory-compliance-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 5px;
  align-items: start;
}

.inventory-compliance-label {
  color: #5b665f;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.inventory-compliance-item strong {
  min-width: 0;
  color: #101713;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.inventory-logistics-compact {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 12px;
  align-items: start;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #e8dece;
  border-radius: 7px;
  background: #fcf8f0;
}

.inventory-logistics-compact .product-logistics-item {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.inventory-logistics-compact .product-logistics-label {
  color: #5b665f;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.inventory-logistics-compact .product-logistics-item strong {
  color: #101713;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.inventory-logistics-compact--embedded {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.inventory-price-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.inventory-price-row .tag {
  width: fit-content;
}

.inventory-stock-cell {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.inventory-stock-cell span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.inventory-stock-cell strong {
  color: #1f6f55;
  font-size: 20px;
  overflow-wrap: anywhere;
}

.inventory-stock-cell strong.out {
  color: var(--danger);
  font-size: 15px;
}

.inventory-stock-cell strong.unknown {
  color: var(--muted);
  font-size: 15px;
}

.inventory-action-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 8px;
}

.inventory-import-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inventory-import-panel h3 {
  margin-bottom: 0;
}

.inventory-dropzone {
  display: grid;
  gap: 7px;
  min-height: 132px;
  padding: 18px;
  align-content: center;
  border: 1px dashed #9ca79f;
  border-radius: 8px;
  background: #fbfaf6;
  color: var(--text);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.inventory-dropzone:hover {
  border-color: var(--accent);
  background: #f4faf7;
  box-shadow: 0 8px 22px rgba(35, 107, 85, 0.08);
}

.inventory-dropzone-title {
  font-size: 18px;
  font-weight: 900;
}

.inventory-dropzone-subtitle,
.inventory-dropzone-note {
  color: var(--muted);
  line-height: 1.45;
}

.inventory-dropzone-note {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid #dfe8e3;
  border-radius: 7px;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.inventory-import-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.inventory-import-meta span {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #e6dfd3;
  border-radius: 7px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.inventory-paste-panel {
  display: grid;
}

#inventoryImportText {
  width: 100%;
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  padding: 10px;
  resize: vertical;
  outline: none;
}

#inventoryImportText:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(35, 107, 85, 0.12);
}

.inventory-import-actions {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(140px, auto);
  gap: 10px;
}

.inventory-import-actions button {
  width: 100%;
}

.customer-preview,
.order-stats {
  display: grid;
  gap: 8px;
}

.preview-row,
.stat-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #ebe5dc;
}

.preview-row:last-child,
.stat-row:last-child {
  border-bottom: 0;
}

.preview-row span,
.stat-row span {
  color: var(--muted);
}

.preview-row strong,
.stat-row strong {
  text-align: right;
}

.order-detail-table {
  overflow-x: auto;
}

.order-detail-table table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.order-detail-table th,
.order-detail-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

.order-detail-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #26372f;
  color: #fff;
}

.order-detail-table img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.order-detail-table input {
  width: 72px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 7px;
}

.order-detail-table .remove-btn {
  width: auto;
  min-height: 34px;
  padding: 0 10px;
}

.import-result {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.5;
  white-space: pre-wrap;
}

.import-result.error-text {
  color: var(--danger);
  font-weight: 800;
}

.batch-sku-toggle {
  min-width: 116px;
  min-height: 44px;
  border: 1px solid #b8a37d;
  background: #fff8ed;
  color: #66451d;
}

.batch-sku-panel {
  min-width: 0;
  margin: 0 0 16px;
  padding: 18px;
  border: 1px solid #dec9a6;
  border-radius: 12px;
  background: #fffdf8;
  box-shadow: 0 10px 26px rgba(72, 52, 25, 0.08);
}

.batch-sku-panel[hidden] {
  display: none;
}

.batch-sku-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.batch-sku-head h2,
.batch-sku-head p,
.batch-sku-panel > p {
  margin: 0;
}

.batch-sku-head p,
#batchSkuHint,
#batchSkuStatus {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.batch-sku-head button,
.batch-sku-actions button,
#batchSkuAddAllBtn {
  min-height: 44px;
}

.batch-sku-panel > label {
  display: block;
  margin: 16px 0 6px;
  color: var(--text);
  font-weight: 800;
}

#batchSkuInput {
  width: 100%;
  min-height: 132px;
  resize: vertical;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}

#batchSkuHint {
  margin-top: 7px;
}

.batch-sku-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

#batchSkuStatus:not(:empty) {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 3px solid #b96d2b;
  background: #fff7eb;
}

.batch-sku-quantity-error,
.batch-sku-exclusion,
.batch-sku-draft-warning {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff5ea;
  color: #8a4918;
  font-size: 13px;
  line-height: 1.4;
}

.batch-sku-exclusion {
  border-left: 3px solid #b96d2b;
}

.batch-sku-draft-warning {
  border-left: 3px solid #ad3425;
}

#batchSkuAddAllBtn:disabled {
  cursor: not-allowed;
  opacity: .62;
}

.batch-sku-summary:empty,
.batch-sku-exceptions:empty,
.batch-sku-result-grid:empty {
  display: none;
}

@media (min-width: 721px) {
  html[data-catalog-market] .toolbar {
    grid-template-columns: minmax(300px, 590px) auto minmax(0, 1fr) auto;
  }

  html[data-catalog-market] .batch-sku-toggle {
    grid-column: 2;
    justify-self: start;
    min-height: 34px;
  }
}

@media (max-width: 720px) {
  .batch-sku-toggle {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
  }

  .batch-sku-panel {
    margin: 10px 0 14px;
    padding: 14px 12px;
    border-radius: 10px;
  }

  .batch-sku-head {
    align-items: center;
  }

  .batch-sku-head button {
    min-width: 44px;
    padding-inline: 12px;
  }

  .batch-sku-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .batch-sku-actions button,
  #batchSkuAddAllBtn {
    width: 100%;
    min-height: 44px;
  }

  #batchSkuAddAllBtn:not([hidden]) {
    position: relative;
    bottom: auto;
    margin-top: 12px;
    scroll-margin-bottom: calc(68px + env(safe-area-inset-bottom));
    z-index: auto;
    box-shadow: none;
  }

  #batchSkuResultGrid .qty-stepper {
    grid-template-columns: 44px minmax(44px, 1fr) 44px;
  }

  #batchSkuResultGrid .qty-stepper .qty-input {
    min-width: 44px;
  }
}

.hidden {
  display: none !important;
}

.admin-lock {
  max-width: 780px;
}

.admin-login-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.my-orders-lookup-row {
  grid-template-columns: minmax(200px, 0.85fr) minmax(300px, 1.35fr) auto;
}

.my-orders-lookup-row input {
  min-width: 0;
}

#myOrdersLookupTokenInput {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.my-orders-lookup-row button {
  min-height: 44px;
}

.my-orders-lookup-hint {
  margin: 10px 0 0;
}

.admin-panel.locked {
  display: none;
}

.admin-panel {
  display: grid;
  gap: 14px;
}

.admin-shell {
  display: grid;
}

.admin-shell.locked {
  display: none;
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel.active {
  display: grid;
  gap: 14px;
}

.admin-filter-grid {
  grid-template-columns: minmax(220px, 1fr) 180px 180px 180px;
}

.bulk-toolbar {
  display: grid;
  grid-template-columns: 120px minmax(140px, 1fr) minmax(140px, 1fr) minmax(140px, 1fr) 150px;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}

.checkbox-row-inline {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--ink);
}

.admin-actions {
  margin-top: 14px;
}

.admin-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  max-height: 360px;
  overflow: auto;
}

.admin-order-card {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
}

.inventory-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.inventory-market-filter,
.warehouse-filter {
  min-width: 220px;
}

.inventory-warehouse-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 12px;
}

.inventory-warehouse-chip {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.inventory-warehouse-chip.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: 0 0 0 2px rgba(35, 107, 85, 0.08);
}

.inventory-list {
  max-height: 520px;
}

.hot-shadow-page-actions {
  align-items: flex-end;
}

.hot-shadow-market-filter {
  min-width: 180px;
}

.hot-shadow-preview-banner,
.hot-shadow-warning {
  margin-top: 14px;
  padding: 11px 13px;
  border: 1px solid #d5d0c5;
  border-radius: 9px;
  background: #f8f6f0;
  color: #3c4741;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.hot-shadow-preview-banner {
  border-color: #8a6bce;
  background: #f2edff;
  color: #56389a;
  letter-spacing: 0.025em;
}

.hot-shadow-warning.is-loading {
  border-color: #bfd6cb;
  background: #eef7f2;
  color: #236b55;
}

.hot-shadow-warning.is-demo {
  border-color: #8a6bce;
  background: #f6f2ff;
  color: #56389a;
}

.hot-shadow-warning.is-caution {
  border-color: #e4cf91;
  background: #fff8df;
  color: #715515;
}

.hot-shadow-warning.is-error {
  border-color: #e3aaa3;
  background: #fff0ee;
  color: #93483d;
}

.hot-shadow-meta-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.hot-shadow-meta-row .hint {
  margin: 0;
  font-size: 12px;
}

.hot-shadow-policy-note {
  margin: 10px 0 0;
  padding: 9px 11px;
  border: 1px solid #ead8bd;
  border-radius: 10px;
  background: #fff9ef;
  color: #70471f;
  font-size: 12px;
  font-weight: 700;
}

.hot-shadow-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.hot-shadow-metric {
  min-width: 0;
  padding: 12px;
  border: 1px solid #dce2dd;
  border-radius: 9px;
  background: #f7faf8;
}

.hot-shadow-metric span,
.hot-shadow-metric strong {
  display: block;
}

.hot-shadow-metric span {
  min-height: 30px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
}

.hot-shadow-metric strong {
  margin-top: 5px;
  color: #214d3c;
  font-size: 22px;
  line-height: 1;
}

.hot-shadow-category-list {
  display: grid;
  gap: 14px;
}

.hot-shadow-category-card {
  padding: 0;
  overflow: hidden;
}

.hot-shadow-category-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: #fbfaf6;
}

.hot-shadow-category-heading h3 {
  margin: 0;
}

.hot-shadow-category-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.hot-shadow-category-stats {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.hot-shadow-category-stats span,
.hot-shadow-category-stats strong {
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.hot-shadow-category-stats span {
  background: #e8f2ed;
  color: #276a52;
}

.hot-shadow-category-stats strong {
  background: #f4e6d2;
  color: #8a531c;
}

.hot-shadow-category-stats.is-over-quota {
  padding: 4px;
  border: 1px solid #df7d69;
  border-radius: 12px;
  background: #fff1ed;
}

.hot-shadow-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.hot-shadow-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
}

.hot-shadow-table th,
.hot-shadow-table td {
  padding: 11px 9px;
  border-bottom: 1px solid #ebe7de;
  text-align: left;
  vertical-align: top;
  font-size: 11px;
}

.hot-shadow-table th {
  background: #f4f2ec;
  color: #6a716c;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.025em;
}

.hot-shadow-table tbody tr:last-child td {
  border-bottom: 0;
}

.hot-shadow-table tbody tr:hover {
  background: #fdfcf8;
}

.hot-shadow-table td > strong,
.hot-shadow-table td > span,
.hot-shadow-table td > small {
  display: block;
}

.hot-shadow-table td > strong {
  color: #26372f;
  line-height: 1.4;
}

.hot-shadow-table td > small,
.hot-shadow-product-cell small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.hot-shadow-rank-cell {
  width: 76px;
}

.hot-shadow-rank-cell strong {
  color: #236b55;
  font-size: 15px;
}

.hot-shadow-product-cell {
  min-width: 190px;
  max-width: 260px;
}

.hot-shadow-product-cell > span {
  margin-top: 4px;
  line-height: 1.4;
}

.hot-shadow-manual-chip {
  width: fit-content;
  margin-top: 7px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #efe8ff;
  color: #6842a7;
  font-size: 9px;
  font-weight: 850;
}

.hot-shadow-state {
  width: fit-content;
  margin-bottom: 6px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #edf1ef;
  color: #4b5a53;
  font-size: 9px;
  font-weight: 900;
}

.hot-shadow-state.is-qualified {
  background: #ddf2e7;
  color: #1d684b;
}

.hot-shadow-state.is-candidate {
  background: #e8effd;
  color: #355b9a;
}

.hot-shadow-state.is-observing {
  background: #fff1d4;
  color: #805e18;
}

.hot-shadow-state.is-suppressed {
  background: #f9e5e1;
  color: #92473c;
}

.hot-shadow-evidence-cell {
  min-width: 180px;
  max-width: 240px;
}

.hot-shadow-reason-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 7px;
}

.hot-shadow-confirmed-evidence {
  display: grid;
  gap: 3px;
  margin-top: 7px;
  color: #48564f;
}

.hot-shadow-confirmed-evidence small {
  font-size: 9px;
  line-height: 1.35;
}

.hot-shadow-reason-chips small {
  padding: 3px 6px;
  border-radius: 999px;
  background: #f0eee8;
  color: #5f6862;
  font-size: 9px;
  line-height: 1.3;
}

.hot-shadow-review-cell {
  width: 310px;
  min-width: 310px;
}

.hot-shadow-decision-buttons {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(118px, 1.8fr) minmax(0, 0.9fr);
  gap: 5px;
}

.hot-shadow-decision-buttons button {
  min-height: 34px;
  padding: 0 7px;
  border: 1px solid #d7d4ca;
  background: #fff;
  color: #505b55;
  font-size: 10px;
  font-weight: 900;
}

.hot-shadow-decision-buttons button.active {
  border-color: #236b55;
  background: #e8f4ee;
  color: #1f684e;
  box-shadow: inset 0 0 0 1px #236b55;
}

.hot-shadow-decision-buttons button[data-hot-shadow-mode="PIN"].active {
  border-color: #a57819;
  background: #fff4d9;
  color: #795610;
  box-shadow: inset 0 0 0 1px #a57819;
}

.hot-shadow-decision-buttons button[data-hot-shadow-mode="BLOCK"].active {
  border-color: #ad554a;
  background: #fceae7;
  color: #8d4138;
  box-shadow: inset 0 0 0 1px #ad554a;
}

.hot-shadow-decision-buttons button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.hot-shadow-override-fields {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) 132px;
  gap: 6px;
  margin-top: 7px;
}

.hot-shadow-override-fields label {
  display: grid;
  gap: 4px;
}

.hot-shadow-override-fields label > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.hot-shadow-override-fields input {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 7px 8px;
  font-size: 10px;
}

.hot-shadow-auto-hint {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.hot-shadow-save-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.hot-shadow-save-row small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
}

.hot-shadow-save-row small.is-error {
  color: #9b443a;
  font-weight: 800;
}

.hot-shadow-save-row button {
  flex: 0 0 auto;
  min-height: 34px;
  padding-inline: 10px;
  font-size: 10px;
}

.hot-shadow-empty {
  color: var(--muted);
  text-align: center;
}

.inventory-card.inventory-unmatched {
  border-color: #ead1cd;
  background: #fff8f7;
}

.admin-card-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.admin-card-head input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex: 0 0 auto;
}

.admin-order-card strong,
.admin-order-card span {
  display: block;
}

.my-order-items {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

button.is-loading {
  opacity: 0.72;
  cursor: wait;
}

.bundle-fab {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 32;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  max-width: min(360px, calc(100vw - 36px));
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: linear-gradient(135deg, #1f6f55 0%, #2d8a69 100%);
  color: #fff;
  box-shadow: 0 18px 42px rgba(25, 87, 67, 0.26);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.bundle-fab.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  animation: bundleBreath 2.8s ease-in-out infinite;
}

.bundle-fab:hover {
  filter: none;
  box-shadow: 0 22px 50px rgba(25, 87, 67, 0.32);
  transform: translateY(-2px);
}

.bundle-fab-text {
  font-weight: 900;
  letter-spacing: 0;
}

.bundle-fab-price {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 13px;
  font-weight: 900;
}

.mobile-quote-bar {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 33;
  display: grid;
  width: 60px;
  min-width: 60px;
  height: 60px;
  min-height: 60px;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  gap: 0;
  padding: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #2b775d, #236249);
  color: #fff;
  box-shadow: 0 9px 24px rgba(28, 70, 53, 0.24);
}

.mobile-quote-bar[hidden] {
  display: none !important;
}

.quote-bar-icon,
.quote-bar-action {
  display: none;
}

.quote-bar-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(21, 80, 58, 0.2);
  color: #fff;
}

.quote-bar-copy {
  min-width: 0;
  display: none;
}

.mobile-quote-bar span,
.mobile-quote-bar em {
  min-width: 0;
  font-style: normal;
  overflow-wrap: anywhere;
}

.mobile-quote-bar strong {
  display: none;
}

.mobile-quote-bar[data-quote-count]:not([data-quote-count="0"])::after {
  content: attr(data-quote-count);
  position: absolute;
  top: -4px;
  right: -3px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #fff;
  color: #236249;
  font-size: 12px;
  font-weight: 900;
}

.quote-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 39;
  display: none;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 18px 92px 0;
  background: transparent;
  pointer-events: none;
}

.quote-drawer-backdrop.is-open {
  display: flex;
}

.quote-drawer-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(460px, calc(100vw - 48px));
  height: min(720px, calc(100vh - 132px));
  max-height: min(720px, calc(100vh - 132px));
  min-width: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
  pointer-events: auto;
  box-shadow: 0 8px 16px rgba(29, 40, 33, 0.16);
}

.quote-drawer-scroll {
  flex: 1 1 auto;
  min-height: 0;
  padding: 16px;
  overflow: auto;
  overscroll-behavior: contain;
}

.quote-drawer-dock {
  flex: 0 0 auto;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.quote-drawer-dock button {
  width: 100%;
  min-height: 48px;
}

.quote-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-right: 32px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.quote-drawer-header h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.quote-drawer-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.quote-drawer-header strong {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 18px;
  line-height: 1.2;
  white-space: nowrap;
}

.quote-drawer-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 0;
}

.quote-drawer-metric {
  min-width: 0;
  padding: 9px;
  border: 1px solid #e0dbcf;
  border-radius: 7px;
  background: #fbf8f0;
}

.product-logistics-inline {
  min-width: 0;
  display: grid;
}

.quote-drawer-metric span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.quote-drawer-metric strong {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.quote-drawer-metric[data-quote-drawer-metric="weight"] strong {
  white-space: nowrap;
}

.quote-drawer-metric-note {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
}

.quote-drawer-discount {
  margin: 0 0 12px;
}

.quote-drawer-panel h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.quote-drawer-items {
  flex: 0 0 auto;
  display: grid;
  gap: 8px;
  overflow: visible;
  min-height: 0;
  padding-right: 2px;
}

.quote-drawer-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: start;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.quote-drawer-thumb {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.quote-drawer-thumb-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 10px;
}

.quote-drawer-item-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.quote-drawer-item-main strong,
.quote-drawer-item-main span,
.quote-drawer-item-main em,
.quote-drawer-item-volume {
  min-width: 0;
  overflow-wrap: anywhere;
}

.quote-drawer-item-main strong {
  color: var(--accent);
  font-size: 12px;
}

.quote-drawer-item-main span {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.quote-drawer-item-main em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.quote-drawer-item-volume {
  color: #536d62;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}

.quote-drawer-item-total {
  justify-self: end;
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
}

.quote-drawer-row-actions {
  grid-column: 2 / -1;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  min-width: 0;
  flex-wrap: wrap;
}

.quote-drawer-quantity-control {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 3px;
}

.quote-drawer-piece-control {
  flex: 0 1 122px;
}

.quote-drawer-control-label {
  min-width: 0;
  min-height: 16px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.quote-drawer-control-label strong {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.quote-drawer-control-label small {
  min-width: 0;
  font-size: 11px;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-align: right;
}

.quote-drawer-qty-stepper {
  display: inline-grid;
  grid-template-columns: 30px 62px 30px;
  align-items: center;
  min-width: 122px;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background: #fff;
}

.quote-drawer-qty-stepper button {
  width: 30px;
  min-height: 30px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #eef8f3;
  color: var(--accent);
  font-size: 15px;
  line-height: 1;
}

.quote-drawer-qty-stepper button:disabled,
.quote-drawer-carton-stepper button:disabled {
  background: var(--bg);
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.62;
}

.quote-drawer-qty-input {
  width: 62px;
  height: 30px;
  padding: 0 5px;
  border: 0;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 0;
  text-align: center;
  font-weight: 800;
}

.quote-drawer-carton-control {
  flex: 1 1 142px;
  min-width: 138px;
}

.quote-drawer-carton-stepper {
  display: grid;
  grid-template-columns: 34px minmax(58px, 1fr) 34px;
  align-items: stretch;
  min-width: 126px;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background: var(--surface);
}

.quote-drawer-carton-stepper button {
  width: 34px;
  min-height: 30px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.quote-drawer-carton-stepper output {
  min-width: 0;
  min-height: 30px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  overflow-wrap: anywhere;
  text-align: center;
}

.quote-drawer-piece-status,
.quote-drawer-carton-status {
  color: var(--danger);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.quote-drawer-adjustment-status {
  flex: 1 1 100%;
  color: var(--danger);
  font-size: 11px;
  line-height: 1.35;
}

.quote-drawer-remove-btn {
  align-self: flex-start;
  margin-top: 19px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #edd0cb;
  background: #f3dfdc;
  color: var(--danger);
  white-space: nowrap;
}

.quote-drawer-actions {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 14px;
  margin-top: auto;
  border-top: 1px solid var(--line);
}

.carton-batch-review {
  display: grid;
  gap: 10px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid rgba(181, 142, 71, 0.38);
  border-radius: 8px;
  background: #fffaf0;
  color: var(--ink);
}

.carton-batch-review[hidden] {
  display: none;
}

.carton-batch-review-head {
  display: grid;
  gap: 3px;
}

.carton-batch-review-head strong {
  color: var(--accent);
  font-size: 14px;
}

.carton-batch-review-head span,
.carton-batch-review-hint,
.carton-batch-review li,
.carton-batch-review small,
.carton-batch-status {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.carton-batch-review-hint,
.carton-batch-review small {
  color: var(--muted);
}

.carton-batch-review ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 20px;
}

.carton-batch-review li.is-skipped,
.carton-batch-status.error {
  color: var(--danger);
}

.carton-batch-status.warning {
  color: #805d1e;
}

.carton-batch-status.success {
  color: var(--accent);
  font-weight: 700;
}

.carton-batch-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.carton-batch-review-actions button,
.carton-batch-review > button {
  min-height: 44px;
}

.quote-drawer-actions button:first-child {
  grid-column: 1 / -1;
}

.quote-drawer-actions button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

body.quote-drawer-open .bundle-fab {
  opacity: 0;
  pointer-events: none;
}

@keyframes bundleBreath {
  0%,
  100% {
    box-shadow: 0 18px 42px rgba(25, 87, 67, 0.24);
  }
  50% {
    box-shadow: 0 18px 46px rgba(25, 87, 67, 0.36);
  }
}

.bundle-hint {
  position: fixed;
  right: 22px;
  bottom: 156px;
  z-index: 31;
  width: min(340px, calc(100vw - 36px));
  padding: 12px 14px;
  border: 1px solid rgba(185, 216, 201, 0.8);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  color: #1e3e33;
  box-shadow: 0 18px 46px rgba(29, 40, 33, 0.14);
  backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 180ms ease;
  font-weight: 800;
  line-height: 1.45;
}

.bundle-hint.show {
  opacity: 1;
  transform: translateY(0);
}

.bundle-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 42;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(30, 39, 34, 0.38);
  backdrop-filter: blur(8px);
}

.bundle-modal-backdrop.show {
  display: flex;
}

.bundle-modal-card {
  position: relative;
  width: min(520px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 28px 80px rgba(29, 40, 33, 0.24);
}

.bundle-modal-card h2 {
  margin: 0;
  padding-right: 40px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

.bundle-modal-card p {
  margin: 10px 0 18px;
  color: var(--muted);
  line-height: 1.5;
}

.bundle-modal-package {
  display: grid;
  gap: 14px;
}

.bundle-package-head {
  display: grid;
  gap: 5px;
}

.bundle-package-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.bundle-package-head strong {
  color: #1e3e33;
  font-size: 19px;
  line-height: 1.25;
}

.bundle-selector-block {
  display: grid;
  gap: 8px;
}

.bundle-selector-block > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.bundle-category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.bundle-category-tabs button {
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 120px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #dce5dd;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #24483a;
  box-shadow: none;
  white-space: nowrap;
}

.bundle-category-tabs button:hover {
  filter: none;
  border-color: #9dc7b4;
}

.bundle-category-tabs button.active {
  border-color: #1f6f55;
  background: #edf8f2;
  color: #1f6f55;
}

.bundle-category-tabs strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
}

.bundle-category-tabs span {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(31, 111, 85, 0.1);
  font-size: 11px;
  font-weight: 900;
}

.bundle-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.bundle-choice-card {
  display: grid;
  gap: 5px;
  min-height: 86px;
  padding: 10px;
  border: 1px solid #dce5dd;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  text-align: left;
  box-shadow: none;
}

.bundle-choice-card:hover {
  filter: none;
  border-color: #9dc7b4;
}

.bundle-choice-card.active {
  border-color: #1f6f55;
  background: #edf8f2;
  color: #1f6f55;
}

.bundle-choice-card strong,
.bundle-choice-card span,
.bundle-choice-card small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.bundle-choice-card strong {
  font-size: 13px;
  line-height: 1.2;
}

.bundle-choice-card span {
  color: inherit;
  font-size: 12px;
  font-weight: 900;
}

.bundle-choice-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.bundle-variant-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.bundle-variant-tabs button {
  display: grid;
  gap: 4px;
  min-height: 88px;
  padding: 10px;
  border: 1px solid #dce5dd;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--text);
  text-align: left;
  box-shadow: none;
}

.bundle-variant-tabs button:hover {
  filter: none;
  border-color: #9dc7b4;
}

.bundle-variant-tabs button.active {
  border-color: #1f6f55;
  background: #edf8f2;
  color: #1f6f55;
}

.bundle-variant-tabs strong,
.bundle-variant-tabs span,
.bundle-variant-tabs small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.bundle-variant-tabs strong {
  font-size: 13px;
  line-height: 1.2;
}

.bundle-variant-tabs span {
  color: inherit;
  font-size: 12px;
  font-weight: 900;
}

.bundle-variant-tabs small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.bundle-ai-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #dce9df;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(237, 248, 242, 0.9), rgba(255, 255, 255, 0.72));
  color: #1f6f55;
}

.bundle-ai-strip span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.bundle-ai-strip strong {
  color: #183f31;
  font-size: 14px;
  text-align: right;
}

.bundle-benefit-panel {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid #e1e8dd;
  border-radius: 8px;
  background: rgba(250, 252, 248, 0.82);
}

.bundle-benefit-panel > span,
.bundle-list-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.bundle-benefit-panel strong {
  color: #1e3e33;
  font-size: 15px;
}

.bundle-benefit-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.bundle-benefit-panel em {
  color: #2d6651;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.45;
}

.bundle-benefit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bundle-benefit-tags span {
  padding: 6px 9px;
  border-radius: 999px;
  background: #f0eadf;
  color: #6e4f29;
  font-size: 11px;
  font-weight: 900;
}

.bundle-modal-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bundle-modal-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #e2e8df;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.bundle-item-media {
  position: relative;
  width: 58px;
  height: 58px;
  border: 1px solid #e2e8df;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.bundle-item-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bundle-item-media > span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.bundle-item-media i {
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #1f6f55;
  color: #fff;
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
}

.bundle-modal-item strong,
.bundle-modal-item small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.bundle-modal-item strong {
  color: var(--text);
  font-size: 14px;
}

.bundle-modal-item small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.bundle-modal-item b {
  color: var(--accent);
  font-size: 15px;
}

.bundle-modal-price {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 4px 12px;
  padding: 14px;
  border-radius: 8px;
  background: #edf8f2;
  border: 1px solid #d7eadf;
}

.bundle-modal-price span {
  color: var(--muted);
  font-weight: 900;
}

.bundle-modal-price strong {
  color: #1f6f55;
  font-size: 26px;
  line-height: 1;
}

.bundle-modal-price em {
  grid-column: 1 / -1;
  color: var(--muted);
  font-style: normal;
  text-align: right;
  font-weight: 800;
}

.bundle-modal-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bundle-modal-highlights span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f0e3d4;
  color: #724013;
  font-size: 12px;
  font-weight: 900;
}

.bundle-modal-add {
  width: 100%;
  min-height: 52px;
  margin-top: 18px;
  background: #1f6f55;
  font-size: 16px;
  box-shadow: 0 14px 28px rgba(31, 111, 85, 0.22);
}

.bundle-modal-add:hover {
  filter: none;
  background: #185b45;
  transform: translateY(-1px);
}

body.modal-open {
  overflow: hidden;
}

html.catalog-filter-modal-open,
body.catalog-filter-modal-open {
  overflow: hidden;
}

html.catalog-filter-scroll-managed {
  overflow-anchor: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(30, 39, 34, 0.46);
}

.modal-backdrop.show {
  display: flex;
}

.order-confirm-card {
  position: relative;
  width: min(520px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(29, 40, 33, 0.26);
}

.order-confirm-card h2 {
  margin: 0;
  padding-right: 36px;
  font-size: 24px;
  line-height: 1.2;
}

.order-confirm-card p {
  margin: 10px 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}

.order-confirm-summary {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fbfaf6;
}

.confirm-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #ebe5dc;
}

.confirm-row:last-child {
  border-bottom: 0;
}

.confirm-row span {
  color: var(--muted);
  font-weight: 800;
}

.confirm-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.order-confirm-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 16px;
}

.global-sales-contact-card {
  position: relative;
  width: min(540px, 100%);
  max-height: min(740px, calc(100vh - 36px));
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(29, 40, 33, 0.26);
}

.global-sales-contact-card h2 {
  margin: 0;
  padding-right: 52px;
  font-size: 24px;
  line-height: 1.2;
}

.global-sales-contact-card p {
  margin: 10px 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

.global-sales-contact-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.global-sales-contact-actions button {
  min-height: 44px;
}

.global-sales-contact-card .modal-close {
  width: 44px;
  min-height: 44px;
}

.global-sales-contact-wechat {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.global-sales-contact-qr {
  display: block;
  width: min(320px, 100%);
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

@media (max-width: 560px) {
  .global-sales-contact-actions {
    grid-template-columns: 1fr;
  }
}

.admin-order-card span,
.admin-order-meta span {
  color: var(--muted);
  font-size: 12px;
}

.admin-order-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.current-user-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 999px;
  color: #0f172a;
  background: #ffffff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.account-management .product-editor-grid {
  align-items: end;
}

.account-password-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.account-permission-field {
  align-self: stretch;
}

.permission-checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.permission-check {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.permission-check input {
  width: 16px;
  height: 16px;
  accent-color: #0f766e;
}

.permission-check input:disabled + span {
  color: var(--muted);
}

.auth-required-note {
  color: #b91c1c;
  font-size: 13px;
}

.product-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.editor-wide {
  grid-column: 1 / -1;
}

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.checkbox-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-weight: 700;
}

#categoryManageText {
  width: 100%;
  margin: 10px 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
  resize: vertical;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 96px;
  z-index: 64;
  transform: translateY(80px);
  opacity: 0;
  max-width: min(420px, calc(100vw - 36px));
  padding: 12px 14px;
  border-radius: 8px;
  background: #26372f;
  color: #fff;
  box-shadow: var(--shadow);
  transition: 160ms ease;
  pointer-events: none;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.guide-open {
  overflow: hidden;
}

.customer-guide-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(23, 31, 28, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.customer-guide-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.customer-guide-dialog {
  position: relative;
  width: min(780px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(214, 202, 184, 0.9);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 26px 80px rgba(18, 32, 26, 0.24);
  transform: translateY(10px);
  transition: transform 180ms ease;
}

.customer-guide-overlay.show .customer-guide-dialog {
  transform: translateY(0);
}

.customer-guide-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  padding: 0;
  background: #f5f0e7;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}

.customer-guide-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #b9d8c9;
  border-radius: 7px;
  background: #eff8f3;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.customer-guide-dialog h2 {
  margin: 14px 42px 8px 0;
  font-size: 26px;
}

.customer-guide-lead {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.customer-guide-section {
  margin-top: 18px;
}

.customer-guide-section h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.customer-guide-section ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.customer-guide-section li {
  color: #24382f;
  line-height: 1.65;
}

.customer-guide-pages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.customer-guide-page {
  min-height: 96px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf8f1;
}

.customer-guide-page strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.customer-guide-page span {
  display: block;
  color: var(--muted);
  line-height: 1.55;
}

.customer-guide-language {
  margin: 18px 0 0;
  padding: 10px 12px;
  border: 1px solid #d5e2d9;
  border-radius: 8px;
  background: #f2f8f5;
  color: #315746;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.customer-guide-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.customer-guide-primary,
.customer-guide-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 7px;
  font-weight: 900;
  text-decoration: none;
}

.customer-guide-secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--green);
}

.customer-guide-dismiss {
  width: 100%;
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
}

@media (max-width: 1280px) {
  .ai-customer-shell {
    grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  }

  .ai-order-panel {
    grid-column: 1 / -1;
    position: static;
  }
}

@media (max-width: 1280px) and (min-width: 1081px) {
  .inventory-controls {
    grid-template-columns: minmax(340px, 1.2fr) minmax(300px, 1fr) minmax(180px, 0.8fr);
  }
}

@media (max-width: 1160px) {
  .inventory-row--details,
  .inventory-row--global {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .inventory-logistics-zone {
    grid-column: 2;
    width: 100%;
    align-self: stretch;
  }
}

@media (max-width: 1080px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .order-panel {
    position: static;
    max-height: none;
  }

  .cart-items {
    max-height: none;
  }

  .order-detail-grid,
  .import-grid {
    grid-template-columns: 1fr;
  }

  .hot-shadow-summary {
    grid-template-columns: repeat(3, minmax(110px, 1fr));
  }

  .inventory-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inventory-controls {
    grid-template-columns: 1fr 1fr;
  }

  .inventory-row {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .inventory-logistics-zone {
    grid-column: 2;
    width: 100%;
    align-self: stretch;
  }

  .inventory-stock-cell,
  .inventory-action-row {
    grid-column: 2;
  }

  .sales-form-grid,
  .sales-check-grid,
  .sales-recommendation-grid,
  .sales-workbench {
    grid-template-columns: 1fr 1fr;
  }

  .sales-quote-panel {
    position: static;
  }

  .ai-customer-shell {
    grid-template-columns: 1fr;
  }

  .ai-filter-panel,
  .ai-order-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  #cartItems {
    display: grid;
  }

  #orderDetailTable {
    display: none;
  }

  .market-entry {
    padding: 86px 14px 24px;
    background: #fbf8ef;
  }

  .market-entry-shell {
    width: 100%;
    gap: 17px;
  }

  .market-entry-mobile-brand {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    z-index: 1;
    display: grid;
    align-content: center;
    justify-items: start;
    padding: 10px 16px 11px;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    background:
      radial-gradient(circle at 18% 0%, rgba(214, 172, 96, 0.22), transparent 28%),
      linear-gradient(135deg, #0c3326 0%, #163b2d 58%, #1f4937 100%);
    color: #e7c878;
    box-shadow: 0 10px 22px rgba(20, 42, 31, 0.18);
  }

  .market-entry-mobile-brand strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    line-height: 1;
    letter-spacing: 0;
  }

  .market-entry-mobile-brand span {
    margin-top: 3px;
    color: rgba(232, 202, 132, 0.9);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
  }

  .entry-language-switch {
    top: 17px;
    left: auto;
    right: 16px;
    justify-content: center;
    min-height: 28px;
    gap: 9px;
    padding-inline: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #f7f1e5;
    box-shadow: none;
    backdrop-filter: none;
  }

  body.market-entry-active .entry-language-switch::before {
    content: "";
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    background: url("assets/entry/mobile-lang-globe.png") center / contain no-repeat;
  }

  .entry-language-label {
    display: none;
  }

  .entry-language-switch button {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 800;
  }

  .entry-language-switch button.active,
  .entry-language-switch button[aria-current="true"] {
    color: #e7c878;
  }

  .entry-language-caret {
    display: none;
  }

  .market-entry-heading {
    gap: 8px;
  }

  .market-entry-heading span {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 15px;
    border-color: rgba(178, 136, 75, 0.28);
    background: rgba(255, 255, 255, 0.68);
    color: #1d372d;
    font-size: 12px;
  }

  .entry-heading-badge b {
    font: inherit;
  }

  .entry-heading-badge-icon {
    width: 18px;
    height: 18px;
    display: block;
  }

  .market-entry-heading h1 {
    font-size: 26px;
    line-height: 1.05;
  }

  .market-entry-heading p {
    max-width: 360px;
    color: #68706b;
    font-size: 13px;
    line-height: 1.42;
  }

  .market-entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(178, 136, 75, 0.42);
    border-radius: 14px;
    background: #fffaf0;
    box-shadow: 0 10px 22px rgba(72, 51, 23, 0.14);
  }

  .product-grid[data-result-layout="single-exact"] {
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-catalog-market] .product-grid[data-result-layout="single-exact"] {
    grid-template-columns: minmax(0, 1fr);
  }

  .market-entry-card {
    min-height: 438px;
    padding: 21px 13px 16px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .entry-card-visual {
    top: 84px;
    right: 0;
    width: 100%;
    height: 208px;
    object-fit: cover;
    opacity: 1;
  }

  .market-entry-card--indonesia .entry-card-visual,
  .market-entry-card--global .entry-card-visual {
    width: 100%;
  }

  body.market-entry-active .market-entry-card--indonesia .entry-card-visual {
    content: url("assets/entry/mobile-idn-visual.png");
    height: 224px;
    opacity: 0.88;
    object-fit: cover;
    object-position: center bottom;
    filter: brightness(1.02) saturate(0.94) contrast(1.04);
    mix-blend-mode: normal;
  }

  .market-entry-card--indonesia::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    background:
      linear-gradient(180deg, rgba(5, 44, 29, 0.3) 0%, rgba(5, 44, 29, 0.02) 45%, rgba(5, 44, 29, 0.34) 68%, rgba(5, 44, 29, 0.96) 100%);
    pointer-events: none;
  }

  .market-entry-card--global::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
      linear-gradient(180deg, rgba(255, 250, 240, 0.38) 0%, rgba(255, 247, 231, 0.04) 45%, rgba(246, 232, 205, 0.48) 68%, rgba(255, 249, 238, 0.98) 100%);
    pointer-events: none;
  }

  body.market-entry-active .market-entry-card--global .entry-card-visual {
    content: url("assets/entry/mobile-global-visual.png");
    height: 224px;
    opacity: 1;
    object-fit: cover;
    object-position: center bottom;
    -webkit-mask-image: none;
    mask-image: none;
  }

  body.market-entry-active .entry-card-mark {
    top: 266px;
    left: 13px;
    width: 39px;
    height: 39px;
    border: 0;
    background: url("assets/entry/mobile-idn-lower-icon.png") center / contain no-repeat;
    color: transparent;
    font-size: 0;
    line-height: 1;
  }

  body.market-entry-active .market-entry-card--global .entry-card-mark {
    background: url("assets/entry/mobile-global-lower-icon.png") center / contain no-repeat;
  }

  .entry-card-mobile-lead {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    color: #fff8e6;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.15;
  }

  .entry-card-mobile-lead img {
    width: 24px;
    height: 22px;
    flex: 0 0 auto;
    display: block;
    object-fit: contain;
  }

  .market-entry-card--global .entry-card-mobile-lead {
    color: #9a7438;
  }

  .market-entry-card--global .entry-card-mobile-lead img {
    width: 27px;
    height: 27px;
  }

  .entry-card-title {
    position: absolute;
    top: 304px;
    left: 13px;
    right: 13px;
    margin: 0;
    margin-bottom: 0;
    font-size: 25px;
    line-height: 1.08;
  }

  html[lang^="id"] .entry-card-title,
  html[lang^="en"] .entry-card-title,
  html[lang^="ru"] .entry-card-title {
    font-size: 20px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .entry-card-copy {
    display: none;
  }

  .entry-card-mobile-copy {
    min-height: 38px;
    position: absolute;
    top: 338px;
    left: 13px;
    right: 13px;
    display: block;
    margin-top: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.32;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.28);
  }

  html[lang^="id"] .entry-card-mobile-copy,
  html[lang^="en"] .entry-card-mobile-copy,
  html[lang^="ru"] .entry-card-mobile-copy {
    font-size: 12px;
    line-height: 1.28;
  }

  .market-entry-card--global .entry-card-mobile-copy {
    color: #6f6658;
    text-shadow: none;
  }

  .entry-card-divider {
    display: none;
  }

  .entry-card-meta {
    display: none;
  }

  .entry-card-cta {
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 16px;
    min-height: 44px;
    gap: 6px;
    padding-inline: 10px;
    border-radius: 999px;
    font-size: 17px;
    white-space: nowrap;
    margin-top: 0;
  }

  .market-entry-card--global .entry-card-cta {
    border: 1px solid rgba(178, 136, 75, 0.64);
    background: rgba(255, 253, 247, 0.5);
    color: #9a7438;
    box-shadow: none;
  }

  .market-entry-continue {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 9px;
    background: linear-gradient(180deg, #d5ad5f, #b68635);
    color: #fff9e8;
    font-size: 17px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(151, 104, 39, 0.18);
  }

  body.market-entry-active .market-entry-continue::before {
    content: "";
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    background: url("assets/entry/mobile-continue-spark.png") center / contain no-repeat;
  }

  .market-entry-continue b {
    font-size: 28px;
    line-height: 1;
  }

  .market-entry-divider {
    display: none;
  }

  .market-entry-feature-rail {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    margin-top: 11px;
    border: 1px solid rgba(178, 136, 75, 0.18);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 6px 16px rgba(72, 51, 23, 0.07);
  }

  .market-entry-feature-rail div {
    min-width: 0;
    min-height: 96px;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 5px;
    padding: 11px 6px 10px;
    border-right: 1px solid rgba(177, 137, 74, 0.18);
    border-bottom: 0;
    text-align: center;
  }

  .market-entry-feature-rail div:last-child {
    border-right: 0;
  }

  .feature-rail-icon {
    grid-row: auto;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent center / contain no-repeat;
    color: transparent;
  }

  body.market-entry-active .market-entry-feature-rail div:nth-child(1) .feature-rail-icon {
    background-image: url("assets/entry/mobile-trust-original.png");
  }

  body.market-entry-active .market-entry-feature-rail div:nth-child(2) .feature-rail-icon {
    background-image: url("assets/entry/mobile-trust-support.png");
  }

  body.market-entry-active .market-entry-feature-rail div:nth-child(3) .feature-rail-icon {
    background-image: url("assets/entry/mobile-trust-safe.png");
  }

  .feature-rail-icon svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .market-entry-feature-rail strong {
    font-size: 12px;
    line-height: 1.15;
  }

  .market-entry-feature-rail small {
    max-width: 100%;
    color: #71766f;
    font-size: 11px;
    line-height: 1.25;
  }

  .market-entry-art--ribbon-left,
  .market-entry-art--ribbon-right {
    opacity: 0.25;
  }

  .market-entry-art--botanical-left,
  .market-entry-art--flower-right {
    opacity: 0.34;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    position: static;
    gap: 8px;
    padding: 10px;
  }

  .topbar > div:first-child {
    width: 100%;
    min-width: 0;
  }

  .topbar h1 {
    font-size: 18px;
    line-height: 1.15;
  }

  .topbar p {
    display: none;
  }

  .top-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    white-space: normal;
  }

  .top-actions > #productCount,
  .top-actions > #aiProductCount {
    order: -1;
    font-size: 12px;
  }

  .top-actions > #clearCartBtn {
    display: none;
  }

  .catalog-market-switch {
    width: 100%;
  }

  .catalog-market-switch button {
    flex: 1 1 0;
    padding-inline: 8px;
  }

  html[data-catalog-market="GLOBAL"] .top-actions {
    gap: 7px;
  }

  html[data-catalog-market="GLOBAL"] .top-actions > #productCount {
    display: inline;
    order: -1;
    font-size: 12px;
  }

  html[data-catalog-market="GLOBAL"] .catalog-market-badge {
    max-width: 100%;
  }

  html[data-catalog-market="GLOBAL"] .catalog-market-badge span {
    display: none;
  }

  html[data-catalog-market="GLOBAL"] .catalog-market-switch {
    width: 100%;
    gap: 3px;
    padding: 3px;
    border-radius: 8px;
    overflow: visible;
  }

  html[data-catalog-market="GLOBAL"] .catalog-market-switch button {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border-radius: 6px;
    text-align: center;
  }

  html[data-catalog-market="GLOBAL"] .catalog-market-switch button::before {
    display: none;
    content: none;
  }

  html[data-catalog-market="GLOBAL"] .catalog-market-switch button:first-child {
    border-right: 0;
  }

  html[data-catalog-market="GLOBAL"] .catalog-market-switch button.active {
    background: var(--accent);
    color: #fff;
  }

  html[data-catalog-market="GLOBAL"] .market-switch-main {
    color: inherit;
    font-size: 13px;
    line-height: 1.15;
  }

  html[data-catalog-market="GLOBAL"] .market-switch-subtitle {
    display: none;
  }

  .language-picker {
    flex: 1 1 190px;
    min-width: 0;
  }

  .language-picker select {
    width: 100%;
    min-width: 0;
  }

  .top-actions button {
    flex: 1 1 auto;
    min-width: 0;
    padding-inline: 10px;
  }

  .view-tabs {
    position: static;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    overflow-x: visible;
    padding: 8px 9px;
  }

  .view-tabs > .mobile-secondary-source {
    display: none;
  }

  .mobile-secondary-nav {
    display: block;
    position: relative;
    min-width: 0;
  }

  .mobile-secondary-nav summary {
    width: 100%;
    min-height: 36px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
  }

  .mobile-secondary-nav[open] summary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
  }

  .mobile-secondary-nav-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 20;
    display: grid;
    gap: 6px;
    min-width: 150px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .mobile-secondary-nav:not([open]) .mobile-secondary-nav-menu {
    display: none;
  }

  .mobile-secondary-nav-menu .nav-link {
    justify-content: flex-start;
  }

  .view-tabs a,
  .view-tabs button {
    width: 100%;
    min-width: 0;
    flex: none;
    gap: 4px;
    padding-inline: 4px;
    white-space: nowrap;
    font-size: 12px;
  }

  .view-tabs .nav-label {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .view-tabs .nav-count {
    min-width: 16px;
    min-height: 18px;
    padding: 0 3px;
    font-size: 11px;
  }

  .inventory-metrics,
  .inventory-controls {
    grid-template-columns: 1fr;
  }

  .inventory-row {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .inventory-logistics-zone {
    grid-column: 1 / -1;
  }

  .inventory-thumb {
    width: 72px;
    height: 72px;
  }

  .inventory-stock-cell,
  .inventory-action-row {
    grid-column: 1 / -1;
  }

  .layout,
  .page-view,
  .sales-shell,
  .ai-customer-shell {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    gap: 10px;
  }

  .layout,
  .page-view {
    padding-bottom: 86px;
  }

  .catalog-controls-sticky {
    position: static;
    margin: 0;
    padding: 0;
    border-bottom: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
  }

  .sales-shell {
    margin: 0 auto 28px;
    grid-template-columns: 1fr;
  }

  .sales-workspace-header {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .sales-view-nav {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sales-view-nav button {
    flex: 0 0 auto;
    min-width: 112px;
  }

  .sales-ai-panel,
  .sales-quote-panel,
  .sales-manual-panel,
  .sales-config-section,
  .sales-orders-panel {
    grid-column: 1;
  }

  .sales-quote-panel {
    position: static;
  }

  .sales-form-grid,
  .sales-form-grid.compact,
  .sales-form-grid.notes-grid,
  .sales-form-grid.auth-grid,
  .ai-form-grid,
  .ai-check-grid,
  .ai-check-row,
  .sales-check-grid,
  .sales-rec-summary,
  .sales-recommendation-grid,
  .sales-workbench {
    grid-template-columns: 1fr;
  }

  .sales-product-row,
  .sales-quote-item {
    grid-template-columns: 52px minmax(0, 1fr) 66px 32px;
    gap: 8px;
  }

  .sales-product-thumb {
    width: 52px;
    height: 52px;
  }

  .rec-card-head {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .rec-thumb {
    width: 64px;
    height: 64px;
  }

  .toolbar {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .advanced-filters {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .filter-toggle {
    display: inline-flex;
    width: 100%;
    justify-content: center;
  }

  .catalog-summary {
    gap: 6px;
    margin-bottom: 10px;
  }

  .catalog-summary > .catalog-summary-item {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
    min-width: 0;
    font-size: 12px;
    text-align: center;
  }

  .catalog-summary .summary-copy {
    justify-content: center;
  }

  .buyer-intent-shortcuts {
    gap: 6px;
    margin-bottom: 10px;
    padding-bottom: 4px;
    overflow-x: auto;
  }

  .buyer-intent-shortcuts button {
    min-height: 32px;
    max-width: 170px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .section-tabs,
  .category-tabs {
    max-width: 100%;
    padding-bottom: 8px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .product-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 8px;
  }

  .product-card > div:first-child {
    width: 100%;
    min-width: 0;
    aspect-ratio: 1 / 1;
  }

  .product-image,
  .image-empty {
    width: 100%;
    height: 100%;
    border-width: 0 0 1px;
    border-radius: 0;
  }

  .product-main {
    gap: 5px;
    padding: 8px;
  }

  .product-topline {
    display: grid;
    gap: 4px;
  }

  .product-code {
    font-size: 11px;
    line-height: 1.2;
  }

  .product-badges {
    justify-content: flex-start;
    gap: 3px;
  }

  .product-badge {
    min-height: 18px;
    padding: 1px 5px;
    font-size: 10px;
  }

  .product-name {
    min-height: 32px;
    font-size: 12px;
    line-height: 1.28;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .price-row {
    display: grid;
    gap: 3px;
    min-width: 0;
  }

  .price-row .tag {
    width: fit-content;
    max-width: 100%;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    overflow-wrap: anywhere;
  }

  .price-row .primary-price {
    color: #145f49;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.12;
  }

  .price-row .secondary-price {
    color: #7a4b18;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
  }

  .product-meta {
    max-height: 34px;
    gap: 2px;
    font-size: 10px;
    line-height: 1.3;
    overflow: hidden;
  }

  .product-meta [data-card-secondary],
  .product-meta [data-card-category] {
    display: none;
  }

  .product-compliance {
    gap: 2px;
  }

  .product-compliance-item {
    display: flex;
    gap: 4px;
    min-width: 0;
    line-height: 1.25;
  }

  .product-compliance-item:first-child {
    display: none;
  }

  .product-compliance-label,
  .product-compliance-value {
    font-size: 10px;
    line-height: 1.25;
  }

  .product-compliance-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .product-logistics {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    max-height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: hidden;
  }

  .product-logistics-label,
  .product-logistics-item strong {
    font-size: 10px;
    line-height: 1.2;
  }

  .stock-badge {
    min-height: 20px;
    padding: 1px 5px;
    font-size: 10px;
  }

  .quick-qty-actions {
    display: none;
  }

  .add-row {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 6px;
    margin-top: 2px;
  }

  .qty-input {
    height: 32px;
    padding-inline: 6px;
    text-align: center;
  }

  .add-row button {
    min-height: 32px;
    padding-inline: 6px;
  }

  .add-row button.stock-contact-button {
    min-height: 44px;
  }

  html[data-catalog-market="GLOBAL"] .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  html[data-catalog-market="GLOBAL"] .product-card--global {
    min-height: 0;
    padding: 0;
  }

  html[data-catalog-market="GLOBAL"] .product-card--global .product-media {
    width: 100%;
    height: auto;
    margin: 0;
    aspect-ratio: 1 / 1;
  }

  html[data-catalog-market="GLOBAL"] .product-card--global .product-image,
  html[data-catalog-market="GLOBAL"] .product-card--global .image-empty {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    border-width: 0 0 1px;
    border-radius: 0;
    object-fit: contain;
  }

  html[data-catalog-market="GLOBAL"] .favorite-btn {
    display: none;
  }

  html[data-catalog-market="GLOBAL"] .product-card--global .product-main {
    flex: none;
    gap: 5px;
    padding: 8px;
  }

  html[data-catalog-market="GLOBAL"] .product-card--global .product-topline {
    display: grid;
    gap: 4px;
    min-height: 0;
  }

  html[data-catalog-market="GLOBAL"] .product-card--global .product-badges {
    justify-content: flex-start;
  }

  html[data-catalog-market="GLOBAL"] .product-card--global .product-code {
    font-size: 11px;
    line-height: 1.2;
  }

  html[data-catalog-market="GLOBAL"] .product-card--global .product-name {
    min-height: 32px;
    font-size: 12px;
    line-height: 1.28;
  }

  html[data-catalog-market="GLOBAL"] .product-card--global .price-row {
    display: grid;
    gap: 3px;
    margin-top: 0;
  }

  html[data-catalog-market="GLOBAL"] .product-card--global .price-row .tag {
    width: fit-content;
    max-width: 100%;
    font-size: 11px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  html[data-catalog-market="GLOBAL"] .product-card--global .price-row .primary-price {
    color: #145f49;
    font-size: 16px;
    line-height: 1.12;
  }

  html[data-catalog-market="GLOBAL"] .product-card--global .product-meta {
    max-height: 48px;
    gap: 2px;
    font-size: 10px;
    line-height: 1.3;
    overflow: hidden;
  }

  html[data-catalog-market="GLOBAL"] .product-card--global [data-card-secondary],
  html[data-catalog-market="GLOBAL"] .product-card--global [data-card-category] {
    display: none;
    min-height: 0;
  }

  html[data-catalog-market="GLOBAL"] .product-card--global .product-logistics {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    max-height: 34px;
    margin-top: 0;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: hidden;
  }

  html[data-catalog-market="GLOBAL"] .product-card--global .product-logistics-label,
  html[data-catalog-market="GLOBAL"] .product-card--global .product-logistics-item strong {
    font-size: 10px;
    line-height: 1.2;
  }

  html[data-catalog-market="GLOBAL"] .product-card--global .stock-badge {
    min-height: 20px;
    padding: 1px 5px;
    font-size: 10px;
  }

  html[data-catalog-market="GLOBAL"] .product-card--global .add-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    margin-top: 4px;
  }

  html[data-catalog-market="GLOBAL"] .qty-stepper {
    width: 100%;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    overflow: hidden;
  }

  html[data-catalog-market="GLOBAL"] .qty-stepper button {
    width: auto;
    min-height: 34px;
  }

  html[data-catalog-market="GLOBAL"] .qty-stepper .qty-input {
    min-width: 0;
    height: 34px;
  }

  html[data-catalog-market="GLOBAL"] .product-card--global .add-row > button[data-add] {
    width: 100%;
    min-height: 34px;
    font-size: 13px;
  }

  html[data-catalog-market="GLOBAL"] .mobile-quote-bar {
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 10px;
    width: auto;
    min-height: 58px;
    padding: 8px 12px;
    border-radius: 8px;
  }

  html[data-catalog-market="GLOBAL"] .quote-bar-icon,
  html[data-catalog-market="GLOBAL"] .quote-bar-action {
    display: none;
  }

  html[data-catalog-market="GLOBAL"] .mobile-quote-bar strong {
    grid-row: span 2;
    align-self: center;
    font-size: 15px;
  }

  .quote-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 8px;
    padding-bottom: 10px;
  }

  .quote-metric {
    padding: 7px;
  }

  .quote-metric strong,
  .quote-metric:last-child strong {
    font-size: 13px;
  }

  .buyer-info-panel {
    margin-top: 10px;
    padding-top: 10px;
  }

  .buyer-info-panel summary {
    min-height: 32px;
    font-size: 13px;
  }

  .buyer-info-panel .customer-fields {
    gap: 8px;
    padding-top: 6px;
  }

  .order-actions {
    grid-template-columns: 1fr;
  }

  .page-header {
    flex-direction: column;
  }

  .admin-login-row {
    grid-template-columns: 1fr;
  }

  .my-orders-lookup-row button {
    width: 100%;
  }

  .product-editor-grid {
    grid-template-columns: 1fr;
  }

  .bulk-toolbar {
    grid-template-columns: 1fr;
  }

  .inventory-import-meta,
  .inventory-import-actions {
    grid-template-columns: 1fr;
  }

  .warehouse-filter {
    width: 100%;
  }

  .modal-backdrop {
    align-items: flex-end;
    padding: 10px;
  }

  .bundle-fab {
    display: none;
  }

  .bundle-fab-price {
    display: none;
  }

  .bundle-hint {
    right: 12px;
    bottom: 138px;
    width: calc(100vw - 24px);
  }

  .bundle-hint.show {
    display: none;
  }

  .mobile-quote-bar {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    box-shadow: 0 6px 16px rgba(29, 40, 33, 0.18);
  }

  .quote-drawer-backdrop {
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    background: rgba(30, 39, 34, 0.28);
    pointer-events: auto;
  }

  .quote-drawer-panel {
    width: 100%;
    height: 84vh;
    height: 84dvh;
    max-height: 84vh;
    max-height: 84dvh;
    padding: 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 14px 14px 0 0;
  }

  .quote-drawer-scroll {
    padding: 18px 14px 14px;
    scroll-padding-bottom: 16px;
  }

  .quote-drawer-dock {
    padding: 10px max(14px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  }

  .quote-drawer-header {
    display: grid;
    padding-right: 34px;
  }

  .quote-drawer-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .quote-drawer-metric {
    padding: 7px;
  }

  .quote-drawer-discount {
    margin-bottom: 10px;
  }

  .quote-drawer-item {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .quote-drawer-thumb {
    width: 46px;
    height: 46px;
  }

  .quote-drawer-item-total {
    grid-column: 2;
    justify-self: start;
  }

  .quote-drawer-row-actions {
    grid-column: 1 / -1;
    scroll-margin-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .quote-drawer-piece-control {
    flex: 1 1 132px;
  }

  .quote-drawer-carton-control {
    flex: 1 1 150px;
    min-width: 140px;
  }

  .quote-drawer-qty-stepper {
    width: 100%;
    grid-template-columns: 34px minmax(54px, 1fr) 34px;
  }

  .quote-drawer-qty-stepper button {
    width: 34px;
  }

  .quote-drawer-qty-input {
    width: 100%;
  }

  .quote-drawer-carton-stepper {
    width: 100%;
    grid-template-columns: 34px minmax(58px, 1fr) 34px;
  }

  .quote-drawer-remove-btn {
    flex: 1 1 86px;
  }

  .quote-drawer-actions {
    grid-template-columns: 1fr;
  }

  .bundle-modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .bundle-modal-card {
    width: 100%;
    max-height: 88vh;
    padding: 18px 16px 84px;
    border-radius: 16px 16px 0 0;
  }

  .bundle-modal-card h2 {
    font-size: 22px;
  }

  .bundle-category-tabs {
    margin: 0 -2px;
    padding: 0 2px 4px;
  }

  .bundle-category-tabs button {
    min-width: 118px;
  }

  .bundle-choice-grid {
    grid-template-columns: 1fr;
  }

  .bundle-choice-card {
    min-height: 72px;
  }

  .bundle-variant-tabs {
    grid-template-columns: 1fr;
  }

  .bundle-variant-tabs button {
    min-height: 72px;
  }

  .bundle-ai-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .bundle-ai-strip strong {
    text-align: left;
  }

  .bundle-modal-item {
    grid-template-columns: 54px minmax(0, 1fr) auto;
    padding: 9px;
  }

  .bundle-item-media {
    width: 54px;
    height: 54px;
  }

  .bundle-modal-add {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    margin-top: 0;
  }

  .toast {
    right: 12px;
    bottom: 82px;
    max-width: calc(100vw - 24px);
  }

  .customer-guide-overlay {
    align-items: end;
    padding: 10px;
  }

  .customer-guide-dialog {
    width: 100%;
    max-height: calc(100vh - 20px);
    padding: 18px;
  }

  .customer-guide-dialog h2 {
    font-size: 22px;
  }

  .customer-guide-pages {
    grid-template-columns: 1fr;
  }

  .customer-guide-page {
    min-height: 0;
  }

  .customer-guide-actions {
    flex-direction: column;
  }

  .order-confirm-card {
    width: 100%;
    max-height: calc(100vh - 20px);
    padding: 18px;
  }

  .confirm-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .confirm-row strong {
    text-align: left;
  }

  body {
    background: #f7f8f4;
    color: #171d1a;
  }

  .topbar {
    position: static;
    min-height: 56px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-bottom: 0;
    background: rgba(247, 248, 244, 0.97);
    box-shadow: none;
  }

  .brand-lockup {
    min-width: 0;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 10px;
  }

  .brand-wordmark {
    grid-column: 1;
    grid-row: 1 / 3;
    display: block;
    width: 112px;
    margin: 0;
    padding-right: 10px;
    border-right: 1px solid #7f8983;
    color: #1d4c3a;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
  }

  .topbar h1 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    color: #171d1a;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.14;
    display: -webkit-box;
    white-space: normal;
    overflow: hidden;
    overflow-wrap: anywhere;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .catalog-market-badge {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .catalog-market-badge strong,
  html[data-catalog-market="GLOBAL"] .catalog-market-badge strong {
    display: block;
    color: #171d1a;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .catalog-market-badge span,
  html[data-catalog-market="GLOBAL"] .catalog-market-badge span {
    display: none;
  }

  .top-actions {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    display: flex;
    justify-content: flex-end;
    gap: 0;
  }

  .top-actions > #productCount,
  .top-actions > #aiProductCount,
  .top-actions > #clearCartBtn,
  html[data-catalog-market="GLOBAL"] .top-actions > #productCount,
  html[data-catalog-market="GLOBAL"] .top-actions > #aiProductCount {
    display: none;
  }

  .language-picker {
    position: relative;
    min-width: 76px;
    min-height: 40px;
    display: grid;
    grid-template-columns: 18px auto 8px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 8px;
    border: 1px solid #e0ddd8;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(23, 29, 26, 0.05);
  }

  .language-picker span {
    display: none;
  }

  .language-picker::before {
    content: "";
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23171d1a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18'/%3E%3Cpath d='M12 3a14 14 0 0 1 0 18'/%3E%3Cpath d='M12 3a14 14 0 0 0 0 18'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 18px 18px;
    box-shadow: none;
  }

  .language-picker::after {
    content: "";
    width: 6px;
    height: 6px;
    margin-top: -4px;
    border-right: 3px solid #171d1a;
    border-bottom: 3px solid #171d1a;
    transform: rotate(45deg);
    pointer-events: none;
  }

  .language-picker select {
    appearance: none;
    -webkit-appearance: none;
    min-width: 26px;
    width: 26px;
    min-height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #171d1a;
    font-size: 13px;
    font-weight: 850;
    line-height: 1;
    text-align: center;
    text-align-last: center;
  }

  .language-picker select::-ms-expand {
    display: none;
  }

  .view-tabs {
    display: none;
  }

  .view-tabs.admin-tabs {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
    padding: 8px 0;
    background: transparent;
    border-bottom: 0;
    backdrop-filter: none;
  }

  .admin-shell.page-view {
    padding-bottom: 24px;
  }

  .hot-shadow-page-actions,
  .hot-shadow-market-filter {
    width: 100%;
  }

  .hot-shadow-page-actions > button {
    width: 100%;
  }

  .hot-shadow-meta-row {
    flex-direction: column;
  }

  .hot-shadow-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hot-shadow-metric {
    padding: 10px;
  }

  .hot-shadow-metric span {
    min-height: 0;
  }

  .hot-shadow-category-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .hot-shadow-category-stats {
    justify-content: flex-start;
  }

  .hot-shadow-table-wrap {
    overflow: visible;
  }

  .hot-shadow-table,
  .hot-shadow-table thead,
  .hot-shadow-table tbody,
  .hot-shadow-table tr,
  .hot-shadow-table td {
    display: block;
    width: 100%;
  }

  .hot-shadow-table {
    min-width: 0;
  }

  .hot-shadow-table thead {
    display: none;
  }

  .hot-shadow-table tr {
    margin: 10px;
    width: calc(100% - 20px);
    overflow: hidden;
    border: 1px solid #ddd7cb;
    border-radius: 11px;
    background: #fff;
  }

  .hot-shadow-table td {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 4px 8px;
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 9px 10px;
    border-bottom: 1px solid #eee9df;
    text-align: left;
  }

  .hot-shadow-table td::before {
    content: attr(data-label);
    grid-column: 1;
    grid-row: auto;
    align-self: start;
    color: var(--muted);
    font-size: 9px;
    font-weight: 850;
    line-height: 1.35;
  }

  .hot-shadow-table td > * {
    grid-column: 2;
  }

  .hot-shadow-table tr td:last-child {
    border-bottom: 0;
  }

  .hot-shadow-review-cell {
    display: block;
    width: 100%;
  }

  .hot-shadow-review-cell::before {
    display: block;
    margin-bottom: 8px;
  }

  .hot-shadow-review-cell > * {
    grid-column: auto;
  }

  .hot-shadow-decision-buttons button,
  .hot-shadow-save-row button {
    min-height: 44px;
  }

  .hot-shadow-override-fields {
    grid-template-columns: 1fr;
  }

  .hot-shadow-override-fields input {
    min-height: 44px;
    font-size: 12px;
  }

  .hot-shadow-save-row {
    align-items: stretch;
    flex-direction: column;
  }

  .hot-shadow-save-row button {
    width: 100%;
  }

  .layout,
  .page-view {
    padding: 0 12px 178px;
  }

  .catalog-controls-sticky,
  .catalog-filter-panel {
    display: contents;
  }

  .toolbar {
    position: sticky;
    top: 0;
    z-index: 60;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 8px;
    margin: 0 -2px;
    padding: 6px 2px;
    background: rgba(247, 248, 244, 0.98);
  }

  .search-field {
    min-width: 0;
    grid-column: 1;
    grid-row: 1;
  }

  .search-field span,
  .search-field > label {
    display: none;
  }

  .search-field input {
    min-height: 52px;
    padding: 0 54px 0 16px;
    border-color: #dedbd4;
    border-radius: 13px;
    background: #fff;
    color: #171d1a;
    font-size: 16px;
    box-shadow: 0 3px 10px rgba(23, 29, 26, 0.04);
  }

  .search-field input::placeholder {
    color: #8d938f;
    opacity: 1;
  }

  .search-button {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    bottom: auto;
    width: 46px;
    min-height: 52px;
    padding: 0;
    border: 0;
    background: transparent;
    color: transparent;
    font-size: 0;
  }

  .search-button::before {
    content: "";
    width: 18px;
    height: 18px;
    display: block;
    margin: 14px auto 0;
    border: 3px solid #171d1a;
    border-radius: 999px;
  }

  .search-button::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 32px;
    width: 10px;
    height: 3px;
    border-radius: 999px;
    background: #171d1a;
    transform: rotate(45deg);
  }

  .filter-toggle {
    position: relative;
    grid-column: 2;
    grid-row: 1;
    width: 44px;
    min-width: 44px;
    min-height: 52px;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dedbd4;
    border-radius: 13px;
    background: #fff;
    color: transparent;
    font-size: 0;
    box-shadow: 0 3px 10px rgba(23, 29, 26, 0.04);
  }

  .filter-toggle::before {
    content: "";
    width: 20px;
    height: 14px;
    background:
      linear-gradient(#171d1a, #171d1a) 0 0 / 20px 2px no-repeat,
      linear-gradient(#171d1a, #171d1a) 0 6px / 20px 2px no-repeat,
      linear-gradient(#171d1a, #171d1a) 0 12px / 20px 2px no-repeat;
  }

  .filter-toggle small {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #b96d2b;
    color: #fff;
    font-size: 11px;
  }

  .catalog-market-switch {
    width: 100%;
    min-height: 48px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 4px;
    border-color: #dedbd4;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(23, 29, 26, 0.04);
    margin: 0;
  }

  .catalog-market-switch button {
    min-width: 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 10px;
    border-radius: 10px;
    color: #171d1a;
    font-size: 14px;
    font-weight: 850;
    text-align: center;
  }

  .catalog-market-switch button::before {
    content: "";
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid #d5d2cb;
    background: linear-gradient(#d14f47 0 50%, #fff 50% 100%);
  }

  .catalog-market-switch button[data-market-switch="GLOBAL"]::before {
    border: 2px solid currentColor;
    background:
      linear-gradient(currentColor, currentColor) 50% 0 / 2px 100% no-repeat,
      linear-gradient(currentColor, currentColor) 0 50% / 100% 2px no-repeat;
  }

  .catalog-market-switch button.active {
    background: linear-gradient(180deg, #286d55, #1d553f);
    color: #fff;
    box-shadow: 0 7px 16px rgba(29, 85, 63, 0.18);
  }

  .market-switch-main {
    color: inherit;
    font-size: inherit;
    line-height: 1.1;
  }

  .market-switch-subtitle {
    display: none;
  }

  .catalog-filter-dialog {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    max-height: min(82vh, 720px);
    margin: auto 0 0;
    padding: 14px;
    overflow-y: auto;
    border: 0;
    border-radius: 14px 14px 0 0;
    background: #fffdf8;
  }

  .catalog-filter-dialog::backdrop {
    background: rgba(23, 29, 26, 0.48);
  }

  .catalog-filter-dialog-header,
  .catalog-filter-dialog-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    grid-column: 1 / -1;
  }

  .catalog-filter-dialog-actions {
    position: sticky;
    bottom: -14px;
    padding: 12px 0 14px;
    background: #fffdf8;
  }

  .catalog-filter-dialog .field input,
  .catalog-filter-dialog .field select {
    min-height: 44px;
  }

  .catalog-filter-dialog-actions button,
  #catalogFilterCloseBtn {
    min-width: 44px;
    min-height: 44px;
  }

  .mobile-catalog-shortcuts,
  .catalog-summary,
  .buyer-intent-shortcuts {
    display: none;
  }

  .catalog-summary > .catalog-summary-item {
    min-height: 72px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 4px;
    padding: 6px 4px;
    border-color: #e2dfd8;
    border-radius: 8px;
    background: #fff;
    text-align: center;
    box-shadow: 0 3px 10px rgba(23, 29, 26, 0.03);
  }

  .catalog-summary-item[data-summary-key="currency"],
  .catalog-summary-item[data-summary-key="stock"],
  .catalog-summary-item[data-summary-key="compliance"] {
    display: none;
  }

  .catalog-summary-item[data-summary-key="skus"] {
    order: 1;
  }

  .catalog-summary-item[data-summary-key="new"] {
    order: 2;
  }

  .catalog-summary-item[data-summary-key="hot"] {
    order: 3;
  }

  .catalog-summary-item[data-summary-key="categories"] {
    order: 4;
  }

  .summary-icon {
    width: 25px;
    height: 25px;
    color: #171d1a;
  }

  .summary-copy {
    display: grid;
    gap: 1px;
    justify-items: center;
  }

  .summary-value {
    order: -1;
    font-size: 17px;
    font-weight: 900;
  }

  .summary-label {
    max-width: 100%;
    color: #4f5b55;
    font-size: 10px;
    font-weight: 700;
    white-space: normal;
    line-height: 1.15;
  }

  .mobile-bottom-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-trust-panel {
    display: block;
    margin: 0;
    border: 1px solid #dedbd4;
    border-radius: 8px;
    background: #fff;
  }

  .mobile-trust-panel > summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 12px;
    cursor: pointer;
    color: #236249;
    font-size: 12px;
    font-weight: 850;
  }

  .mobile-trust-panel > summary strong {
    min-width: 0;
    color: #4f5b55;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-trust-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid #ece8df;
  }

  .mobile-trust-item {
    min-width: 0;
    min-height: 44px;
    display: grid;
    align-content: center;
    gap: 3px;
    padding: 7px 10px;
    border-right: 1px solid #ece8df;
    border-bottom: 1px solid #ece8df;
    position: relative;
  }

  .mobile-trust-item:nth-child(2n) {
    border-right: 0;
  }

  .mobile-trust-item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .mobile-trust-item::before {
    display: none;
  }

  .mobile-trust-item span {
    color: #8a8f8b;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;
  }

  .mobile-trust-item strong {
    min-width: 0;
    color: #171d1a;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .section-tabs {
    display: flex;
    margin: 0;
    overflow-x: auto;
    box-shadow: none;
  }

  .category-tabs {
    gap: 0;
    padding: 0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(23, 29, 26, 0.04);
  }

  .section-tabs button,
  .category-tabs button {
    min-height: 44px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #323b36;
    font-size: 13px;
    font-weight: 750;
  }

  .section-tabs button.active,
  .category-tabs button.active {
    background: #edf6f1;
    color: #2b775d;
    box-shadow: inset 0 -3px 0 #2b775d;
  }

  .category-tabs {
    display: none;
  }

  .category-tabs.is-open,
  .category-tabs.is-attention {
    display: flex;
    overflow-x: auto;
    scroll-margin-top: 12px;
    -webkit-overflow-scrolling: touch;
  }

  .category-page-heading {
    padding: 2px 0 0;
  }

  .category-page-heading h2 {
    font-size: 20px;
  }

  .category-page-heading p {
    font-size: 12px;
    line-height: 1.35;
  }

  .category-page-shell {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 8px;
    min-width: 0;
  }

  .category-rail {
    top: 8px;
    max-height: calc(100vh - 178px);
    gap: 4px;
    padding: 5px;
    border-radius: 8px;
  }

  .category-rail button {
    min-height: 52px;
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: 2px;
    padding: 7px 6px;
    font-size: 11px;
    line-height: 1.2;
  }

  .category-rail button em {
    font-size: 10px;
  }

  .category-results-panel {
    gap: 8px;
    min-width: 0;
  }

  .category-results-header {
    padding: 10px;
    border-radius: 8px;
  }

  .category-page-eyebrow {
    margin-bottom: 3px;
    font-size: 10px;
  }

  .category-results-header h3 {
    font-size: 17px;
    line-height: 1.2;
  }

  .category-results-header p {
    font-size: 11px;
  }

  .category-quick-filters {
    gap: 6px;
    padding-bottom: 1px;
  }

  .category-quick-filters button {
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .category-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .category-product-card {
    min-width: 0;
    border-radius: 8px;
  }

  .category-product-main {
    gap: 6px;
    padding: 7px;
  }

  .category-product-card .product-code {
    font-size: 10px;
  }

  .category-product-card .product-name {
    min-height: 34px;
    font-size: 11px;
    line-height: 1.32;
  }

  .category-product-price {
    font-size: 14px;
  }

  .category-product-actions {
    grid-template-columns: minmax(0, 1fr) 34px;
    gap: 5px;
  }

  .category-product-add {
    width: 34px;
    height: 32px;
    min-height: 32px;
    border-radius: 7px;
  }

  .category-product-add.stock-contact-button {
    height: 44px;
    min-height: 44px;
  }

  .category-products-grid .qty-stepper {
    min-height: 32px;
  }

  .category-products-grid .qty-stepper button {
    width: 28px;
    min-height: 32px;
  }

  .category-products-grid .qty-stepper input {
    min-width: 0;
    height: 32px;
    font-size: 12px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    align-items: start;
  }

  .product-card,
  html[data-catalog-market="GLOBAL"] .product-card--global {
    min-height: 0;
    border-color: #e6e2da;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(23, 29, 26, 0.06);
  }

  html[data-catalog-market="GLOBAL"] .product-card--global .product-media,
  .product-card > div:first-child {
    position: relative;
    width: 100%;
    height: auto;
    margin: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fff;
  }

  html[data-catalog-market="GLOBAL"] .product-card--global .product-image,
  html[data-catalog-market="GLOBAL"] .product-card--global .image-empty,
  .product-image,
  .image-empty {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    border: 0;
    border-bottom: 1px solid #ece8df;
    border-radius: 0;
    object-fit: contain;
  }

  html[data-catalog-market="GLOBAL"] .favorite-btn {
    top: 9px;
    right: 9px;
    width: 32px;
    min-height: 32px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: #656e69;
  }

  html[data-catalog-market="GLOBAL"] .favorite-btn::before {
    font-size: 25px;
  }

  html[data-catalog-market="GLOBAL"] .product-card--global .product-media .product-badges {
    position: absolute;
    top: 9px;
    left: 9px;
    display: flex;
    justify-content: flex-start;
  }

  html[data-catalog-market="GLOBAL"] .product-card--global .product-media .product-badge {
    min-height: 22px;
    padding: 2px 7px;
    border-radius: 5px;
    background: #236249;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
  }

  html[data-catalog-market="GLOBAL"] .product-card--global .product-media .stock-badge {
    position: absolute;
    left: 9px;
    bottom: 9px;
    min-height: 25px;
    max-width: calc(100% - 18px);
    padding: 3px 9px;
    border: 0;
    border-radius: 7px;
    background: #e7f2ed;
    color: #2b775d;
    font-size: 11px;
    font-weight: 850;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  }

  .product-main,
  html[data-catalog-market="GLOBAL"] .product-card--global .product-main {
    gap: 6px;
    padding: 9px;
  }

  .product-topline,
  html[data-catalog-market="GLOBAL"] .product-card--global .product-topline {
    min-height: 0;
    display: block;
  }

  .product-code,
  html[data-catalog-market="GLOBAL"] .product-card--global .product-code {
    color: #2b775d;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .product-name,
  html[data-catalog-market="GLOBAL"] .product-card--global .product-name {
    min-height: 34px;
    color: #171d1a;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.28;
    -webkit-line-clamp: 2;
  }

  .price-row,
  html[data-catalog-market="GLOBAL"] .product-card--global .price-row {
    display: block;
  }

  .price-row .primary-price,
  html[data-catalog-market="GLOBAL"] .product-card--global .price-row .primary-price {
    color: #2b775d;
    font-size: 18px;
    font-weight: 950;
    line-height: 1.1;
  }

  .price-row .secondary-price,
  .product-meta,
  html[data-catalog-market="GLOBAL"] .product-card--global .price-row .secondary-price,
  html[data-catalog-market="GLOBAL"] .product-card--global .product-meta {
    display: none;
  }

  html[data-catalog-market="GLOBAL"] .product-card--global .add-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    margin-top: 4px;
  }

  html[data-catalog-market="GLOBAL"] .qty-stepper {
    height: 36px;
    border: 1px solid #edf0eb;
    border-radius: 8px;
    background: #fff;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
  }

  html[data-catalog-market="GLOBAL"] .qty-stepper button {
    min-height: 34px;
    border: 0;
    border-radius: 7px;
    background: #edf6f1;
    color: #236249;
    font-size: 22px;
    font-weight: 900;
  }

  html[data-catalog-market="GLOBAL"] .qty-stepper button:last-child {
    background: #236249;
    color: #fff;
  }

  html[data-catalog-market="GLOBAL"] .qty-stepper .qty-input {
    height: 34px;
    border: 0;
    background: #fff;
    color: #171d1a;
    font-size: 14px;
    font-weight: 850;
  }

  html[data-catalog-market="GLOBAL"] .product-card--global .add-row > button[data-add] {
    min-height: 38px;
    padding: 0 12px;
    border-radius: 7px;
    background: #236249;
    font-size: 14px;
    font-weight: 850;
  }

  html[data-catalog-market="GLOBAL"] .product-card--global .add-row > button[data-add]::before {
    content: none;
  }

  html[data-catalog-market="GLOBAL"] .product-card--global .card-add-icon {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
  }

  html[data-catalog-market="GLOBAL"] .product-card--global .card-add-icon svg {
    stroke-width: 2.35;
  }

  html[data-catalog-market="IDN"] .product-card--idn .add-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    margin-top: 4px;
  }

  html[data-catalog-market="IDN"] .qty-stepper {
    width: 100%;
    height: 36px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    overflow: hidden;
    border: 1px solid #edf0eb;
    border-radius: 8px;
    background: #fff;
  }

  html[data-catalog-market="IDN"] .qty-stepper button {
    width: auto;
    min-height: 34px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: #edf6f1;
    color: #236249;
    font-size: 22px;
    font-weight: 900;
  }

  html[data-catalog-market="IDN"] .qty-stepper button:last-child {
    background: #236249;
    color: #fff;
  }

  html[data-catalog-market="IDN"] .qty-stepper .qty-input {
    min-width: 0;
    height: 34px;
    border: 0;
    background: #fff;
    color: #171d1a;
    font-size: 14px;
    font-weight: 850;
    text-align: center;
  }

  html[data-catalog-market="IDN"] .product-card--idn .add-row > button[data-add] {
    width: 100%;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 7px;
    background: #236249;
    font-size: 14px;
    font-weight: 850;
  }

  html[data-catalog-market="IDN"] .product-card--idn .card-add-icon {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
  }

  .mobile-quote-bar,
  html[data-catalog-market="GLOBAL"] .mobile-quote-bar {
    left: auto;
    right: 14px;
    bottom: max(72px, calc(72px + env(safe-area-inset-bottom)));
    width: 60px;
    min-width: 60px;
    height: 60px;
    min-height: 60px;
    grid-template-columns: 1fr;
    align-items: center;
    justify-items: center;
    gap: 0;
    padding: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #2b775d, #236249);
    box-shadow: 0 9px 24px rgba(28, 70, 53, 0.24);
  }

  .quote-bar-icon,
  html[data-catalog-market="GLOBAL"] .quote-bar-icon {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(21, 80, 58, 0.2);
    color: #fff;
  }

  .quote-bar-copy {
    display: none;
  }

  .mobile-quote-bar span,
  .mobile-quote-bar em {
    color: #fff;
  }

  .mobile-quote-bar #mobileQuoteLabel {
    font-size: 15px;
    font-weight: 900;
  }

  .mobile-quote-bar em {
    font-size: 15px;
    font-weight: 850;
  }

  .mobile-quote-bar strong,
  html[data-catalog-market="GLOBAL"] .mobile-quote-bar strong {
    display: none;
  }

  .quote-bar-action,
  html[data-catalog-market="GLOBAL"] .quote-bar-action {
    display: none;
  }

  .mobile-quote-bar[data-quote-count]:not([data-quote-count="0"])::after,
  html[data-catalog-market="GLOBAL"] .mobile-quote-bar[data-quote-count]:not([data-quote-count="0"])::after {
    content: attr(data-quote-count);
    position: absolute;
    top: -4px;
    right: -3px;
    min-width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #fff;
    color: #236249;
    font-size: 12px;
    font-weight: 900;
  }

  .layout,
  .page-view,
  .categories-view {
    padding-bottom: 146px;
  }

  .mobile-purchase-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
    color: #5f6d66;
    font-size: 11px;
    line-height: 1.25;
  }

  .mobile-purchase-meta span {
    min-width: 0;
  }

  html[data-catalog-market="GLOBAL"] .favorite-btn,
  html[data-catalog-market="IDN"] .favorite-btn {
    display: none;
  }

  html[data-catalog-market="GLOBAL"] .qty-stepper,
  html[data-catalog-market="IDN"] .qty-stepper,
  .category-products-grid .qty-stepper {
    min-height: 44px;
    height: auto;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  html[data-catalog-market="GLOBAL"] .qty-stepper button,
  html[data-catalog-market="GLOBAL"] .qty-stepper .qty-input,
  html[data-catalog-market="IDN"] .qty-stepper button,
  html[data-catalog-market="IDN"] .qty-stepper .qty-input,
  .category-products-grid .qty-stepper button,
  .category-products-grid .qty-stepper input {
    min-height: 44px;
    height: 44px;
  }

  html[data-catalog-market="GLOBAL"] .card-add-button,
  html[data-catalog-market="IDN"] .card-add-button,
  .category-product-add {
    min-height: 44px;
  }

  .mobile-quote-bar,
  html[data-catalog-market="GLOBAL"] .mobile-quote-bar,
  html[data-catalog-market="IDN"] .mobile-quote-bar {
    left: 12px;
    right: 12px;
    bottom: max(70px, calc(70px + env(safe-area-inset-bottom)));
    width: auto;
    min-height: 56px;
    height: auto;
    padding: 10px 12px;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px;
    border-radius: 14px;
  }

  .quote-bar-icon,
  html[data-catalog-market="GLOBAL"] .quote-bar-icon,
  html[data-catalog-market="IDN"] .quote-bar-icon {
    width: 34px;
    height: 34px;
    min-height: 34px;
  }

  .quote-bar-copy,
  html[data-catalog-market="GLOBAL"] .quote-bar-copy,
  html[data-catalog-market="IDN"] .quote-bar-copy,
  .mobile-quote-bar strong,
  html[data-catalog-market="GLOBAL"] .mobile-quote-bar strong,
  html[data-catalog-market="IDN"] .mobile-quote-bar strong,
  .quote-bar-action,
  html[data-catalog-market="GLOBAL"] .quote-bar-action,
  html[data-catalog-market="IDN"] .quote-bar-action {
    display: block;
  }

  .quote-bar-copy {
    line-height: 1.15;
  }

  .quote-bar-action {
    font-size: 12px;
    font-weight: 800;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 32;
    min-height: calc(62px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    padding: 7px 8px max(5px, env(safe-area-inset-bottom));
    border-top: 1px solid #ece8df;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -4px 12px rgba(23, 29, 26, 0.06);
  }

  .mobile-bottom-nav a {
    min-width: 0;
    display: grid;
    justify-items: center;
    gap: 3px;
    color: #4c5651;
    font-size: 10px;
    font-weight: 750;
    text-decoration: none;
  }

  .mobile-bottom-nav a.active {
    color: #2b775d;
  }

  .mobile-bottom-icon {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
  }

  .mobile-bottom-nav a.active .mobile-bottom-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #2b775d;
    color: #fff;
  }

  .mobile-bottom-label {
    width: 100%;
    min-width: 0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 380px) {
  button {
    padding-inline: 9px;
  }

  .topbar h1 {
    display: block;
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
    text-overflow: unset;
    -webkit-box-orient: initial;
    -webkit-line-clamp: initial;
  }

  .product-grid {
    gap: 8px;
  }

  .product-main {
    padding: 7px;
  }

  .product-name {
    font-size: 11px;
  }

  .price-row .primary-price {
    font-size: 15px;
  }

  .product-meta,
  .product-compliance-label,
  .product-compliance-value,
  .price-row .secondary-price {
    font-size: 10px;
  }
}

@media (max-width: 720px) {
  html[data-catalog-market="GLOBAL"] .card-add-button,
  html[data-catalog-market="IDN"] .card-add-button,
  html[data-catalog-market="GLOBAL"] .category-product-add,
  html[data-catalog-market="IDN"] .category-product-add {
    min-height: 44px;
    height: 44px;
  }

  .mobile-quote-bar,
  html[data-catalog-market="GLOBAL"] .mobile-quote-bar,
  html[data-catalog-market="IDN"] .mobile-quote-bar {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    min-height: 56px;
    max-height: 84px;
  }

  .mobile-quote-bar .quote-bar-action,
  html[data-catalog-market="GLOBAL"] .mobile-quote-bar .quote-bar-action,
  html[data-catalog-market="IDN"] .mobile-quote-bar .quote-bar-action {
    display: none;
  }
}

.customer-guide-overlay,
.customer-guide-overlay.show {
  position: static;
  inset: auto;
  z-index: auto;
  display: block;
  width: 100%;
  margin: 0 0 10px;
  padding: 0;
  background: transparent;
  opacity: 1;
  pointer-events: auto;
  transition: none;
}

.customer-guide-dialog {
  position: relative;
  display: grid;
  gap: 8px;
  width: 100%;
  max-width: none;
  max-height: none;
  padding: 12px 44px 12px 12px;
  overflow: visible;
  box-sizing: border-box;
  border: 1px solid #d9e4dc;
  border-radius: 10px;
  background: #f3f8f5;
  box-shadow: none;
  transform: none;
}

.customer-guide-overlay.show .customer-guide-dialog {
  transform: none;
}

.customer-guide-dialog h2 {
  margin: 0;
  font-size: 16px;
}

.customer-guide-lead {
  margin: 0;
  line-height: 1.45;
}

.customer-guide-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  padding-left: 20px;
  font-size: 12px;
}

.customer-guide-primary,
.customer-guide-x {
  min-height: 44px;
}

.customer-guide-x {
  top: 6px;
  right: 6px;
  min-width: 44px;
}

@media (max-width: 720px) {
  .customer-guide-overlay,
  .customer-guide-overlay.show {
    align-items: initial;
    margin: 0 0 8px;
    padding: 0;
  }

  .customer-guide-dialog {
    width: 100%;
    max-height: none;
    padding: 12px 44px 12px 12px;
    overflow: visible;
  }

  .customer-guide-dialog h2 {
    font-size: 16px;
  }

  .customer-guide-steps {
    display: none;
  }
}

/* Order Quote Workbench v24 */
html[data-catalog-market="IDN"] [data-market-scope="global"],
html[data-inventory-market="IDN"] [data-market-scope="global"] {
  display: none !important;
}

.order-workbench-view [data-market-scope][hidden] {
  display: none !important;
}

.order-workbench-view {
  width: min(100%, 1680px);
  margin: 0 auto;
  padding: 28px 24px 72px;
  background:
    radial-gradient(circle at 88% 2%, rgba(35, 107, 85, 0.06), transparent 25%),
    var(--bg);
}

.order-workbench-header,
.order-live-summary-heading,
.order-section-heading,
.order-summary-market-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.order-workbench-header {
  align-items: flex-end;
  margin-bottom: 18px;
}

.order-workbench-heading {
  min-width: 0;
}

.order-workbench-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--accent-2);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.order-workbench-heading h2 {
  margin: 0;
  color: #173f32;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.order-workbench-heading p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.order-workbench-status {
  display: grid;
  grid-template-columns: max-content minmax(174px, 220px) max-content;
  align-items: end;
  gap: 10px;
}

.order-workbench-status .field {
  margin: 0;
}

.order-workbench-status .field > span {
  font-size: 10px;
  font-weight: 800;
}

.order-workbench-status select {
  min-height: 40px;
}

.order-market-lock,
.order-autosave-state,
.order-market-chip,
.order-selected-count {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 800;
}

.order-market-lock,
.order-market-chip {
  border: 1px solid #c8d9d1;
  background: #edf5f1;
  color: #245d49;
}

.order-autosave-state {
  gap: 7px;
  border: 1px solid #ddd6c8;
  background: #fffdf8;
  color: #5b6861;
}

.order-autosave-state > span:first-child {
  color: #2d8a68;
  font-size: 9px;
}

.order-identity-strip {
  display: grid;
  grid-template-columns: minmax(190px, 1.3fr) minmax(150px, 0.8fr) minmax(150px, 0.7fr) max-content;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(29, 40, 33, 0.055);
}

.order-identity-strip.buyer-info-panel {
  margin-top: 0;
}

.order-identity-strip .field {
  min-width: 0;
  margin: 0;
}

.order-identity-strip input {
  min-height: 42px;
}

.order-contact-field {
  grid-column: 1 / 3;
}

.order-destination-field {
  grid-column: 3 / 5;
}

.order-customer-preview-btn {
  align-self: end;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #b8cec4;
  border-radius: 10px;
  background: #eff6f2;
  color: #205c47;
  font-weight: 800;
}

.order-buyer-preview-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #bed9cc;
  border-radius: 12px;
  background: #edf6f1;
  color: #214c3d;
}

.order-buyer-preview-note[hidden] {
  display: none;
}

.order-buyer-preview-note div {
  display: grid;
  gap: 3px;
}

.order-buyer-preview-note span {
  color: #5b6b64;
  font-size: 12px;
}

.order-buyer-preview-note button {
  flex: 0 0 auto;
  min-height: 40px;
}

.order-workbench-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(370px, 410px);
  align-items: start;
  gap: 18px;
}

.order-editor-column {
  display: grid;
  min-width: 0;
  gap: 18px;
}

.order-workbench-view .detail-section {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(29, 40, 33, 0.055);
}

.order-section-heading {
  align-items: flex-start;
  margin-bottom: 16px;
}

.order-section-heading > div {
  flex: 1 1 auto;
  min-width: 0;
}

.order-section-heading h3 {
  margin: 0;
  color: #1e332b;
  font-size: 18px;
}

.order-section-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.order-step-number {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: #173f32;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.order-selected-count {
  min-height: 34px;
  background: #f4f0e5;
  border: 1px solid #e2d7bd;
  color: #75612f;
}

.order-batch-entry-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 12px;
}

.order-batch-paste-box {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
}

.order-batch-paste-box textarea {
  width: 100%;
  min-height: 132px;
  resize: vertical;
  padding: 14px;
  border: 1px solid #cfc8ba;
  border-radius: 11px;
  background: #fff;
  color: var(--text);
  font: 600 13px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.order-batch-paste-box textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(35, 107, 85, 0.14);
}

.order-batch-paste-box small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.order-batch-tools {
  display: grid;
  align-content: stretch;
  gap: 8px;
}

.order-batch-tools button {
  min-height: 42px;
}

.order-batch-tip {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 74px;
  padding: 12px;
  border: 1px solid #ded6c6;
  border-radius: 11px;
  background: #faf8f2;
}

.order-batch-tip strong {
  color: #2b4037;
  font-size: 12px;
}

.order-batch-tip span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.order-batch-status {
  min-height: 20px;
  margin-top: 10px;
  color: #47574f;
  font-size: 12px;
}

.order-batch-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 4px 0 10px;
}

.order-batch-summary span {
  padding: 6px 9px;
  border-radius: 999px;
  background: #f1eee7;
  color: #626861;
  font-size: 10px;
}

.order-batch-summary .is-ready {
  background: #e5f3eb;
  color: #236548;
}

.order-batch-summary .is-pending {
  background: #fff2d7;
  color: #825e17;
}

.order-batch-summary .is-blocked {
  background: #fae7e4;
  color: #93483d;
}

.order-batch-summary .is-pieces {
  margin-left: auto;
  background: #edf3f0;
  color: #315a49;
}

.order-batch-result-table,
.order-selected-table {
  overflow: hidden;
  border: 1px solid #e0dbd0;
  border-radius: 12px;
}

.order-batch-result-table table,
.order-selected-table table {
  width: 100%;
  border-collapse: collapse;
}

.order-batch-result-table th,
.order-batch-result-table td,
.order-selected-table th,
.order-selected-table td {
  padding: 11px 10px;
  border-bottom: 1px solid #e8e3d9;
  text-align: left;
  vertical-align: middle;
  font-size: 11px;
}

.order-batch-result-table th,
.order-selected-table th {
  background: #f4f2ec;
  color: #6a716c;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.order-batch-result-table tbody tr:last-child td,
.order-selected-table tbody tr:last-child td {
  border-bottom: 0;
}

.order-batch-result-table tbody tr:hover,
.order-selected-table tbody tr:hover {
  background: #fcfbf7;
}

.order-batch-result-table input,
.order-selected-table input {
  width: 76px;
  min-height: 38px;
  padding: 6px 8px;
  text-align: center;
}

.order-batch-empty {
  padding: 26px 18px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.order-batch-product,
.order-selected-product {
  display: flex;
  align-items: center;
  min-width: 210px;
  gap: 10px;
}

.order-batch-product img,
.order-selected-product img,
.order-selected-image-empty,
.order-batch-image-empty {
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid #e0dbd0;
  border-radius: 9px;
  background: #fff;
  object-fit: contain;
  color: #7b837e;
  font-size: 9px;
}

.order-batch-product div,
.order-selected-product div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.order-batch-product span,
.order-selected-product span,
.order-selected-product small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.order-batch-product strong,
.order-selected-product strong {
  overflow: hidden;
  color: #20332b;
  font-size: 11px;
  text-overflow: ellipsis;
}

.order-batch-row-status,
.order-stock-pill,
.order-batch-stock {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: #e6f2ec;
  color: #206347;
  font-size: 9px;
  font-weight: 900;
}

.order-batch-row-pending .order-batch-row-status,
.order-batch-stock.is-unknown,
.order-stock-pill.is-unknown {
  background: #fff1d4;
  color: #805e18;
}

.order-batch-row-blocked .order-batch-row-status,
.order-batch-stock.is-out,
.order-stock-pill.is-out {
  background: #f9e5e1;
  color: #92473c;
}

.order-batch-result-table td > small,
.order-selected-table td > small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.order-batch-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e3ded3;
}

.order-batch-footer > span {
  color: var(--muted);
  font-size: 10px;
}

.order-batch-footer button {
  min-height: 42px;
}

.order-internal-section {
  overflow: hidden;
  border: 1px solid #d7d2c8;
  border-radius: 13px;
  background: #fbfaf6;
}

.order-internal-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  cursor: pointer;
  color: #33463e;
  font-size: 12px;
  font-weight: 800;
  list-style: none;
}

.order-internal-section summary::-webkit-details-marker {
  display: none;
}

.order-internal-section summary small {
  color: #8b7460;
  font-size: 10px;
  font-weight: 700;
}

.order-internal-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.45fr);
  gap: 14px;
  padding: 0 16px 16px;
}

.order-internal-policy {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 14px;
  border-radius: 11px;
  background: #edf5f1;
  color: #235a46;
}

.order-internal-policy span {
  color: #5d6e66;
  font-size: 10px;
  line-height: 1.45;
}

.order-live-summary {
  position: sticky;
  top: 132px;
  max-height: calc(100vh - 154px);
  overflow: auto;
  scrollbar-width: thin;
}

.order-live-summary-heading {
  align-items: flex-start;
  padding-bottom: 13px;
  border-bottom: 1px solid #e5e0d6;
}

.order-live-summary-heading h3 {
  margin: 0;
  font-size: 22px;
}

.order-live-summary-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.order-live-summary .total {
  max-width: 190px;
  color: #1f6b50;
  font-size: 18px;
  line-height: 1.25;
  text-align: right;
  overflow-wrap: anywhere;
}

.order-summary-market-row {
  margin: 10px 0;
}

.order-summary-market-row > span:last-child {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.order-live-summary .quote-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.order-live-summary .quote-metric {
  min-width: 0;
  min-height: 62px;
  padding: 10px;
}

.order-live-summary .quote-metric span {
  font-size: 9px;
}

.order-live-summary .quote-metric strong {
  font-size: 12px;
  overflow-wrap: anywhere;
}

.order-live-summary .order-volume-summary {
  margin-top: 8px;
}

.order-live-summary .volume-packing-assistant,
.order-live-summary .free-shipping-panel,
.order-live-summary .discount-notice {
  margin-top: 10px;
}

.order-live-summary .free-shipping-panel {
  padding: 13px;
}

.order-live-summary .free-shipping-panel-head {
  align-items: flex-start;
}

.order-live-summary .free-shipping-panel-head h4 {
  font-size: 13px;
}

.order-live-summary .shipping-address-card {
  align-items: flex-start;
  flex-direction: column;
}

.order-global-freight-note {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 13px;
  border: 1px solid #dfd1b7;
  border-radius: 11px;
  background: #fff8e8;
  color: #725522;
}

.order-global-freight-note span {
  color: #776b55;
  font-size: 10px;
  line-height: 1.45;
}

.order-live-summary .order-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.order-live-summary .order-actions button {
  min-height: 42px;
  margin: 0;
  padding: 9px 10px;
  font-size: 10px;
}

.order-live-summary .order-actions button:first-child {
  grid-column: 1 / -1;
  background: #1d654d;
  color: #fff;
}

.order-workbench-view.is-customer-preview .order-identity-strip,
.order-workbench-view.is-customer-preview .order-batch-workbench,
.order-workbench-view.is-customer-preview .order-internal-section,
.order-workbench-view.is-customer-preview #orderRoundCartonBtn {
  display: none;
}

.order-mobile-card-list {
  display: none;
}

@media (max-width: 1180px) {
  .order-workbench-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
  }

  .order-workbench-status {
    grid-template-columns: max-content minmax(160px, 190px);
  }

  .order-autosave-state {
    grid-column: 1 / -1;
    justify-self: end;
  }

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

  .order-customer-preview-btn {
    grid-column: 1 / -1;
  }

  .order-contact-field {
    grid-column: 1 / 2;
  }

  .order-destination-field {
    grid-column: 2 / 4;
  }
}

@media (max-width: 980px) {
  .order-workbench-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .order-workbench-status {
    width: 100%;
    grid-template-columns: max-content minmax(160px, 1fr) max-content;
  }

  .order-autosave-state {
    grid-column: auto;
  }

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

  .order-live-summary {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .order-selected-table {
    display: none;
  }

  .order-mobile-card-list {
    display: grid;
  }
}

@media (max-width: 720px) {
  .order-workbench-view {
    padding: 18px 10px 104px;
    grid-template-columns: minmax(0, 1fr);
  }

  .order-workbench-view > *,
  .order-workbench-header,
  .order-workbench-status,
  .order-identity-strip,
  .order-workbench-grid {
    min-width: 0;
    max-width: 100%;
  }

  .order-workbench-heading h2 {
    font-size: 28px;
  }

  .order-workbench-heading p {
    font-size: 12px;
  }

  .order-workbench-status,
  .order-identity-strip,
  .order-batch-entry-grid,
  .order-internal-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .order-market-lock,
  .order-autosave-state {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    justify-content: center;
    justify-self: stretch;
    white-space: normal;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .order-autosave-state,
  .order-contact-field,
  .order-destination-field,
  .order-customer-preview-btn {
    grid-column: auto;
  }

  .order-identity-strip,
  .order-workbench-view .detail-section {
    padding: 14px 12px;
  }

  .order-section-heading {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .order-section-heading .order-market-chip,
  .order-section-heading .order-selected-count {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .order-batch-summary .is-pieces {
    margin-left: 0;
  }

  .order-batch-result-table {
    overflow: visible;
    border: 0;
  }

  .order-batch-result-table table,
  .order-batch-result-table thead,
  .order-batch-result-table tbody,
  .order-batch-result-table tr,
  .order-batch-result-table td {
    display: block;
    width: 100%;
  }

  .order-batch-result-table thead {
    display: none;
  }

  .order-batch-result-table tr {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd7cb;
    border-radius: 11px;
    background: #fff;
  }

  .order-batch-result-table td {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    border: 0;
    text-align: right;
  }

  .order-batch-result-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    text-align: left;
  }

  .order-batch-product {
    min-width: 0;
    text-align: left;
  }

  .order-batch-result-table input {
    justify-self: end;
  }

  .order-batch-footer,
  .order-buyer-preview-note {
    align-items: stretch;
    flex-direction: column;
  }

  .order-batch-footer button,
  .order-buyer-preview-note button {
    width: 100%;
  }

  .order-selected-table {
    display: none;
  }

  .order-mobile-card-list {
    display: grid;
  }

  .order-live-summary .quote-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-live-summary .order-actions button,
  .order-batch-tools button,
  .order-batch-footer button,
  .order-customer-preview-btn {
    min-height: 44px;
  }
}

/* 2026-07-27: compact mobile stock-check flow and explicit inventory states. */
@media (max-width: 720px) {
  .inventory-view {
    gap: 8px;
    padding-inline: 8px;
  }

  .inventory-view > .page-header {
    padding: 10px 12px;
  }

  .inventory-view > .page-header h2 {
    font-size: 20px;
  }

  .inventory-view > .page-header p {
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.4;
  }

  .inventory-sync-status {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    min-height: 0;
    padding: 9px 10px;
  }

  .inventory-sync-copy strong {
    font-size: 13px;
  }

  .inventory-sync-copy small {
    font-size: 12px;
  }

  .inventory-sync-retry {
    grid-column: 2;
    justify-self: start;
    min-width: 104px;
  }

  .inventory-metrics {
    display: flex;
    grid-template-columns: none;
    gap: 8px;
    overflow-x: auto;
    padding: 1px 1px 5px;
    scroll-padding-inline: 1px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .inventory-metric {
    flex: 0 0 148px;
    min-height: 66px;
    padding: 9px 10px;
    scroll-snap-align: start;
  }

  .inventory-metric strong {
    margin-top: 4px;
    font-size: 18px;
  }

  .inventory-browser {
    padding: 10px;
  }

  .inventory-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
  }

  .inventory-controls .search-field {
    grid-column: 1 / -1;
  }

  .inventory-controls .field > span {
    font-size: 12px;
  }

  .inventory-controls input,
  .inventory-controls select {
    min-height: 44px;
    padding-inline: 9px;
    font-size: 13px;
  }

  .inventory-row {
    row-gap: 6px;
    padding: 8px;
  }

  .inventory-row-main {
    gap: 3px;
  }

  .inventory-stock-cell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 36px;
  }

  .inventory-stock-cell strong {
    min-width: 0;
    text-align: right;
  }

  .inventory-product-detail-trigger {
    min-height: 44px;
    text-align: left;
  }

  .inventory-row .inventory-topline .stock-badge {
    display: none;
  }

  .inventory-logistics-zone {
    display: none;
  }

  .inventory-metrics:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
  }

  .inventory-action-row {
    grid-template-columns: minmax(76px, 96px) minmax(0, 1fr);
  }

  .inventory-action-row input,
  .inventory-action-row button {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .inventory-sync-status[data-state="loading"] .inventory-sync-indicator {
    animation: none;
  }
}

@media (max-width: 340px) {
  body.market-entry-active .entry-language-switch::before {
    display: none;
  }

  .market-entry-mobile-brand strong {
    max-width: 110px;
    font-size: 18px;
    letter-spacing: -0.02em;
  }

  .market-entry-mobile-brand span {
    max-width: 108px;
    font-size: 9px;
  }

  body.market-entry-active .market-entry {
    padding-inline: 10px;
  }

  .market-entry-shell {
    gap: 14px;
  }

  .market-entry-heading h1 {
    font-size: 23px;
  }

  .market-entry-heading p {
    font-size: 12px;
  }

  .market-entry-card {
    padding-inline: 10px;
  }

  .entry-card-mobile-lead {
    gap: 6px;
    font-size: 13px;
  }

  .entry-card-mobile-lead img {
    width: 20px;
    height: 20px;
  }

  .market-entry-card--global .entry-card-mobile-lead img {
    width: 22px;
    height: 22px;
  }

  .entry-card-title,
  .entry-card-mobile-copy,
  .entry-card-cta {
    left: 10px;
    right: 10px;
  }

  .entry-card-title {
    font-size: 22px;
  }

  .entry-card-mobile-copy,
  html[lang^="id"] .entry-card-mobile-copy,
  html[lang^="en"] .entry-card-mobile-copy,
  html[lang^="ru"] .entry-card-mobile-copy {
    font-size: 11px;
    line-height: 1.25;
  }

  .entry-card-cta {
    font-size: 15px;
  }

  .market-entry-feature-rail small {
    font-size: 10px;
  }
}

/* 2026-07-28 Stage 4: mobile customer journey, touch targets, and modal safety. */
.quote-drawer-backdrop {
  z-index: 80;
}

.bundle-modal-backdrop,
.modal-backdrop {
  z-index: 90;
}

.modal-backdrop.shipping-address-modal {
  z-index: 100;
}

@media (max-width: 720px) {
  .language-picker,
  .language-picker select,
  .app-view input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
  .app-view select,
  .load-more-products,
  .inventory-load-more-products,
  [data-load-more-products],
  [data-load-more-inventory] {
    min-height: 44px;
  }

  .language-picker select {
    width: 44px;
    min-width: 44px;
  }

  .language-picker {
    grid-template-columns: 18px 44px 6px;
    gap: 2px;
    min-width: 84px;
    padding-inline: 5px;
  }

  .mobile-bottom-nav {
    min-height: calc(74px + env(safe-area-inset-bottom));
    padding: 6px 4px max(5px, env(safe-area-inset-bottom));
    align-items: stretch;
  }

  .mobile-bottom-nav a {
    min-height: 58px;
    align-content: start;
    gap: 2px;
    padding-top: 1px;
  }

  .mobile-bottom-label {
    min-height: 20px;
    display: -webkit-box;
    overflow: hidden;
    white-space: normal;
    line-height: 1.05;
    text-overflow: clip;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .mobile-quote-bar,
  html[data-catalog-market="GLOBAL"] .mobile-quote-bar,
  html[data-catalog-market="IDN"] .mobile-quote-bar {
    bottom: max(82px, calc(82px + env(safe-area-inset-bottom)));
  }

  .inventory-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding: 1px;
    scroll-snap-type: none;
    scrollbar-width: auto;
  }

  .inventory-metric {
    min-width: 0;
    min-height: 66px;
    flex: none;
  }

  .inventory-metric:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .category-quick-filters button,
  .category-product-add,
  .category-products-grid .qty-stepper,
  .category-products-grid .qty-stepper button,
  .category-products-grid .qty-stepper input,
  .qty-stepper .qty-input,
  .volume-target-presets button,
  .volume-target-field input,
  .shipping-address-edit-btn,
  .quote-drawer-qty-stepper button,
  .quote-drawer-qty-input,
  .quote-drawer-carton-stepper button,
  .quote-drawer-carton-stepper output,
  .quote-drawer-remove-btn,
  .quote-drawer-actions button,
  .cart-item input,
  .remove-btn,
  .shipping-address-editor .field input,
  .shipping-address-editor .field select,
  .shipping-address-editor .field textarea,
  .shipping-address-editor-actions button,
  .modal-close {
    min-height: 44px;
  }

  .qty-stepper .qty-input,
  .category-products-grid .qty-stepper input {
    min-width: 44px;
  }

  .category-product-add,
  .modal-close {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }

  .category-product-actions {
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .category-products-grid .qty-stepper {
    grid-template-columns: 44px minmax(44px, 1fr) 44px;
  }

  .category-products-grid .qty-stepper button {
    width: 44px;
  }

  .quote-drawer-qty-stepper {
    min-width: 132px;
    grid-template-columns: 44px minmax(44px, 1fr) 44px;
  }

  .quote-drawer-qty-stepper button {
    width: 44px;
  }

  .quote-drawer-qty-input {
    height: 44px;
  }

  .quote-drawer-carton-stepper {
    grid-template-columns: 44px minmax(58px, 1fr) 44px;
  }

  .quote-drawer-carton-stepper button {
    width: 44px;
  }

  .quote-drawer-remove-btn {
    min-width: 88px;
  }

  .shipping-address-editor-actions button {
    min-width: 132px;
  }

  .cart-item {
    grid-template-columns: 56px minmax(0, 1fr) 70px 44px;
  }

  .remove-btn {
    width: 44px;
    min-width: 44px;
  }

  .my-orders-lookup-row [aria-invalid="true"] {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(184, 75, 66, 0.12);
  }

  .category-rail {
    max-height: calc(100svh - 244px);
  }

  .quantity-tier-summary,
  .global-page-button,
  .global-page-step {
    min-width: 44px;
    min-height: 44px;
  }

  html[data-catalog-market="GLOBAL"] .qty-stepper,
  html[data-catalog-market="IDN"] .qty-stepper {
    min-height: 44px;
    height: 44px;
    grid-template-columns: 44px minmax(44px, 1fr) 44px;
  }

  html[data-catalog-market="GLOBAL"] .qty-stepper button,
  html[data-catalog-market="IDN"] .qty-stepper button,
  html[data-catalog-market="GLOBAL"] .qty-stepper .qty-input,
  html[data-catalog-market="IDN"] .qty-stepper .qty-input {
    min-width: 44px;
    min-height: 44px;
    height: 44px;
  }

  html[data-catalog-market="GLOBAL"] .product-card--global .add-row > button[data-add],
  html[data-catalog-market="IDN"] .product-card--idn .add-row > button[data-add] {
    min-width: 44px;
    min-height: 44px;
  }

  body.ai-page button,
  body.ai-page input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  body.ai-page select,
  body.ai-page textarea,
  body.ai-page .button-link,
  body.ai-page .nav-link {
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .market-entry {
    min-height: 100svh;
    height: auto;
    max-height: none;
    align-items: flex-start;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .market-entry-shell {
    min-height: calc(100svh - 110px);
    align-content: space-between;
    gap: 0;
  }

  .entry-language-switch {
    top: 6px;
    right: 8px;
    min-height: 44px;
    gap: 0;
  }

  .entry-language-switch button {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .entry-language-separator {
    display: none;
  }

  .market-entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .market-entry-card {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto minmax(34px, 1fr) auto;
    grid-template-areas:
      "lead"
      "visual"
      "title"
      "copy"
      "cta";
    padding: 0 0 12px;
    border: 1px solid rgba(178, 136, 75, 0.42);
    border-radius: 12px;
    box-shadow: none;
  }

  .market-entry-card--indonesia {
    border-color: rgba(218, 188, 128, 0.3);
  }

  .entry-card-visual,
  body.market-entry-active .market-entry-card--indonesia .entry-card-visual,
  body.market-entry-active .market-entry-card--global .entry-card-visual {
    grid-area: visual;
    content: normal;
    position: static;
    inset: auto;
    display: block;
    width: 100%;
    height: clamp(140px, 43.6vw, 170px);
    aspect-ratio: auto;
    margin-top: 4px;
    object-fit: contain;
    object-position: center;
  }

  body.market-entry-active .entry-card-mark {
    display: none;
  }

  .entry-card-mobile-lead {
    grid-area: lead;
    position: static;
    align-self: stretch;
    min-width: 0;
    gap: 6px;
    min-height: 56px;
    padding: 8px;
    font-size: 13px;
    line-height: 1.2;
  }

  .entry-card-mobile-lead img {
    width: 22px;
    height: 22px;
  }

  .market-entry-card--global .entry-card-mobile-lead img {
    width: 22px;
    height: 22px;
  }

  .entry-card-mobile-lead b {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .entry-card-title,
  .entry-card-mobile-copy,
  .entry-card-cta {
    position: static;
    inset: auto;
    width: auto;
  }

  .entry-card-title {
    grid-area: title;
    align-self: stretch;
    margin: 10px 8px 0;
    font-size: 21px;
    line-height: 1.12;
  }

  html[lang^="id"] .entry-card-title,
  html[lang^="en"] .entry-card-title,
  html[lang^="ru"] .entry-card-title {
    font-size: 18px;
    white-space: normal;
  }

  .entry-card-mobile-copy {
    grid-area: copy;
    min-height: 0;
    margin: 4px 8px 10px;
    font-size: 13px;
    line-height: 1.3;
  }

  .entry-card-cta {
    grid-area: cta;
    align-self: end;
    justify-self: stretch;
    min-height: 44px;
    margin: 0 8px;
    padding-inline: 6px;
    font-size: 15px;
  }

  .market-entry-continue {
    display: flex;
  }

  .market-entry-feature-rail {
    margin-top: 0;
  }
}

@media (max-width: 380px) {
  .market-entry-mobile-brand span {
    display: none;
  }

  .brand-lockup {
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 8px;
  }

  .brand-wordmark {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 104px;
    padding-right: 8px;
    font-size: 19px;
  }

  .topbar h1 {
    position: static;
    grid-column: 2;
    grid-row: 1;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    border: 0;
  }

  .catalog-market-badge {
    grid-column: 2;
    grid-row: 2;
  }

  .catalog-market-badge strong,
  html[data-catalog-market="GLOBAL"] .catalog-market-badge strong {
    display: -webkit-box;
    overflow: hidden;
    white-space: normal;
    line-height: 1.12;
    text-overflow: clip;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .category-page-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .category-rail {
    position: static;
    max-height: none;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
  }

  .category-rail button {
    flex: 0 0 116px;
    min-height: 52px;
    scroll-snap-align: start;
  }

  .category-products-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .category-product-card {
    display: grid;
    grid-template-columns: 106px minmax(0, 1fr);
  }

  .category-product-media {
    min-height: 170px;
    height: 100%;
    aspect-ratio: auto;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .category-product-main {
    align-content: center;
    padding: 10px;
  }

  .category-product-card .product-name {
    min-height: 0;
    font-size: 13px;
    -webkit-line-clamp: 3;
  }

  .category-product-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .category-product-add {
    width: 100%;
  }

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

/* Mobile catalog hierarchy: stronger filters and stable two-column product media. */
@media (max-width: 720px) {
  html[data-catalog-market] .section-tabs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(92px, 1fr);
    gap: 4px;
    margin: 0;
    padding: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid #dfe6e1;
    border-radius: 10px;
    background: #f5f8f6;
    box-shadow: none;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  html[data-catalog-market] .section-tabs::-webkit-scrollbar {
    display: none;
  }

  html[data-catalog-market] .section-tabs button {
    min-width: 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #34423b;
    box-shadow: none;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    scroll-snap-align: start;
    font-variant-numeric: tabular-nums;
  }

  html[data-catalog-market] .section-tabs button.active {
    background: #236249;
    color: #fff;
    box-shadow: none;
  }

  html[lang^="id"][data-catalog-market] .section-tabs button,
  html[lang^="en"][data-catalog-market] .section-tabs button,
  html[lang^="ru"][data-catalog-market] .section-tabs button {
    padding-inline: 4px;
    font-size: 12px;
    line-height: 1.1;
    text-align: center;
    white-space: normal;
    text-wrap: balance;
  }

  html[data-catalog-market] #productGrid.product-grid {
    gap: 8px;
    align-items: stretch;
  }

  html[data-catalog-market] #productGrid .product-card--catalog {
    align-self: stretch;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(23, 29, 26, 0.08);
  }

  html[data-catalog-market] #productGrid .product-card--catalog .product-media {
    position: relative;
    isolation: isolate;
    background: #fff;
  }

  html[data-catalog-market] #productGrid .product-card--catalog .product-detail-media-trigger {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    border-radius: 0;
  }

  html[data-catalog-market] #productGrid .product-card--catalog .product-detail-media-trigger:focus-visible {
    outline-offset: -3px;
  }

  html[data-catalog-market] #productGrid .product-card--catalog .product-image,
  html[data-catalog-market] #productGrid .product-card--catalog .image-empty {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center;
  }

  html[data-catalog-market] #productGrid .product-card--catalog .product-media .product-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    width: auto;
    max-width: calc(100% - 16px);
    min-height: 0;
    pointer-events: none;
  }

  html[data-catalog-market] #productGrid .product-card--catalog .product-media .stock-badge {
    position: absolute;
    left: 8px;
    bottom: 8px;
    z-index: 2;
    min-height: 24px;
    max-width: calc(100% - 16px);
    padding: 3px 7px;
    border: 1px solid #cfe2d8;
    border-radius: 6px;
    background: rgba(243, 250, 246, 0.96);
    color: #1f6f55;
    font-size: 10px;
    font-weight: 850;
    line-height: 1.2;
    pointer-events: none;
  }

  html[data-catalog-market] #productGrid .product-card--catalog .product-media .stock-badge.out {
    border-color: #ead1cd;
    background: #fff3f1;
    color: var(--danger);
  }

  html[data-catalog-market] #productGrid .product-card--catalog .product-media .stock-badge.unknown {
    border-color: #ddd6ca;
    background: #f6f1e8;
    color: var(--muted);
  }

  html[data-catalog-market] #productGrid .product-card--catalog .product-media .stock-badge.loading {
    border-color: #d8c8a7;
    background: #fff9ec;
    color: #775a20;
  }

  html[data-catalog-market] #productGrid .product-card--catalog .product-media .stock-badge.error {
    border-color: #e3b5ae;
    background: #fff4f2;
    color: #8f2f25;
  }

  html[data-catalog-market] #productGrid .product-card--catalog .product-main {
    flex: 1;
  }

  html[data-catalog-market] #productGrid .product-card--catalog .product-name {
    min-height: 54px;
    height: 54px;
    display: block;
    overflow: hidden;
  }

  html[data-catalog-market] #productGrid .product-card--catalog .product-detail-name-trigger {
    min-height: 54px;
    height: 54px;
    display: -webkit-box;
    align-items: flex-start;
    overflow: hidden;
    line-height: 18px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  html[data-catalog-market] #productGrid .product-card--catalog .price-row {
    min-height: 22px;
  }

  html[data-catalog-market] #productGrid .product-card--catalog .price-row .primary-price {
    width: 100%;
    min-width: 0;
    font-size: 16px;
    line-height: 22px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
  }

  html[data-catalog-market] #productGrid .mobile-purchase-meta {
    display: none;
  }
}

@media (min-width: 341px) and (max-width: 720px) {
  html[data-catalog-market] #productGrid.product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-catalog-market] #productGrid.product-grid[data-result-layout="single-exact"] {
    grid-template-columns: minmax(0, 1fr);
  }

  html[lang^="id"][data-catalog-market] #productGrid .product-card--catalog .price-row .primary-price,
  html[lang^="en"][data-catalog-market] #productGrid .product-card--catalog .price-row .primary-price,
  html[lang^="ru"][data-catalog-market] #productGrid .product-card--catalog .price-row .primary-price {
    font-size: 13px;
  }
}

@media (min-width: 341px) and (max-width: 380px) {
  html[data-catalog-market] #productGrid .product-card--catalog .price-row .primary-price {
    font-size: 15px;
  }

  html[lang^="id"][data-catalog-market] #productGrid .product-card--catalog .price-row .primary-price,
  html[lang^="en"][data-catalog-market] #productGrid .product-card--catalog .price-row .primary-price,
  html[lang^="ru"][data-catalog-market] #productGrid .product-card--catalog .price-row .primary-price {
    font-size: 12px;
  }
}

.hot-category-pool-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 14px 0;
  padding: 10px 12px;
  border: 1px solid #c6dbd1;
  border-radius: 12px;
  background: #f1f7f4;
  color: #214a3a;
}

.hot-category-pool-bar[hidden] {
  display: none;
}

.hot-category-pool-copy {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.hot-category-pool-copy strong {
  font-size: 14px;
  line-height: 1.4;
}

.hot-category-pool-icon {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: #b96d2b;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}

.hot-category-pool-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hot-category-pool-bar button {
  min-height: 44px;
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 1px solid #2c725a;
  border-radius: 8px;
  background: #fff;
  color: #205d48;
  font-size: 13px;
  font-weight: 800;
}

.hot-category-pool-bar button:hover,
.hot-category-pool-bar button:focus-visible,
.hot-category-pool-bar button[aria-pressed="true"] {
  background: #236b55;
  color: #fff;
}

[data-hot-category-slot="true"] {
  border-color: #d39154;
  box-shadow: none;
}

.product-badge.hot-category-preview-badge {
  border-color: #b96d2b;
  background: #b96d2b;
  color: #fff;
  box-shadow: none;
}

html[data-catalog-market] #productGrid [data-hot-category-slot="true"] .product-media .product-badges {
  position: absolute;
  z-index: 3;
  top: 8px;
  right: auto;
  bottom: auto;
  left: 8px;
  justify-content: flex-start;
  max-width: calc(100% - 16px);
  pointer-events: none;
}

.category-product-media {
  position: relative;
}

.category-product-badges {
  position: absolute;
  z-index: 3;
  top: 9px;
  left: 9px;
  display: flex;
  max-width: calc(100% - 18px);
}

@media (max-width: 720px) {
  .hot-category-pool-bar {
    gap: 10px;
    margin: 10px 0;
    padding: 9px 10px;
  }

  .hot-category-pool-copy {
    gap: 8px;
  }

  .hot-category-pool-copy strong {
    font-size: 13px;
  }

  .hot-category-pool-bar button {
    max-width: 54%;
    white-space: normal;
    text-align: center;
  }
}

/* Unified contract-aware backoffice */
.backoffice-portal-page,
.backoffice-module-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(37, 112, 84, 0.08), transparent 34rem),
    #f6f4ee;
}

.backoffice-topbar {
  position: relative;
}

.backoffice-portal-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 64px;
}

.backoffice-login-card {
  width: min(760px, 100%);
  margin: 32px auto;
}

.backoffice-login-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.backoffice-login-form button {
  min-height: 44px;
}

#backofficePasswordChangeForm {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
}

#backofficeAuthStatus[data-status="error"] {
  color: #a23f2b;
}

#backofficeAuthStatus[data-status="success"] {
  color: #236b55;
}

.backoffice-user-bar,
.backoffice-user-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

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

.backoffice-contract-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.backoffice-contract-card {
  display: grid;
  gap: 6px;
  min-height: 86px;
  padding: 16px;
  border: 1px solid #d8d4c8;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
}

.backoffice-contract-card span {
  color: #6b6a63;
  font-size: 12px;
  font-weight: 700;
}

.backoffice-contract-card strong {
  color: #24362f;
  overflow-wrap: anywhere;
}

.backoffice-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.backoffice-module-card {
  display: grid;
  gap: 9px;
  min-height: 132px;
  padding: 18px;
  border: 1px solid #d4d0c4;
  border-radius: 14px;
  background: #fff;
  color: #24362f;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(39, 54, 47, 0.05);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.backoffice-module-card:hover,
.backoffice-module-card:focus-visible {
  border-color: #2c725a;
  box-shadow: 0 12px 28px rgba(39, 84, 66, 0.12);
  transform: translateY(-2px);
}

.backoffice-module-card strong {
  font-size: 18px;
}

.backoffice-module-card > span:last-child {
  color: #666a64;
  line-height: 1.55;
}

.backoffice-navigation {
  display: grid;
  grid-template-columns: auto repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid #d8d4c8;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
}

.backoffice-navigation.hidden {
  display: none;
}

.backoffice-nav-home,
.backoffice-nav-links a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 11px;
  border-radius: 9px;
  color: #315246;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.backoffice-nav-home {
  align-self: start;
  border: 1px solid #c9d9d1;
  background: #eef5f1;
}

.backoffice-nav-group h2 {
  margin: 0 0 6px;
  color: #77776f;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.backoffice-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.backoffice-nav-links a:hover,
.backoffice-nav-links a:focus-visible,
.backoffice-nav-links a.active,
.backoffice-nav-home[aria-current="page"] {
  background: #236b55;
  color: #fff;
}

@media (max-width: 980px) {
  .backoffice-contract-summary,
  .backoffice-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .backoffice-navigation {
    grid-template-columns: 1fr 1fr;
  }

  .backoffice-nav-home {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .backoffice-portal-shell {
    width: min(100% - 20px, 1180px);
    margin-top: 16px;
  }

  .backoffice-login-form,
  #backofficePasswordChangeForm,
  .backoffice-contract-summary,
  .backoffice-module-grid,
  .backoffice-navigation {
    grid-template-columns: 1fr;
  }

  .backoffice-user-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .backoffice-user-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .backoffice-nav-home {
    grid-column: auto;
  }

  .backoffice-nav-links {
    flex-direction: column;
  }
}

/* Sales inventory and customer quotation workspaces */
.sales-inventory-workspace,
.sales-quote-workspace {
  grid-column: 1 / -1;
}

.sales-inventory-workspace.active,
.sales-quote-workspace.active {
  display: grid;
  gap: 14px;
}

.sales-module-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-color: #d5e2da;
  background: linear-gradient(135deg, #fff 0%, #f3f8f5 100%);
}

.sales-module-hero h2,
.sales-module-hero h3,
.sales-quote-workspace h3 {
  margin: 0;
}

.sales-module-hero .hint {
  margin: 5px 0 0;
}

.sales-status-pill,
.sales-stock-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef1ef;
  color: #5a6560;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.sales-status-pill[data-state="loading"],
.sales-status-pill[data-state="warning"],
.sales-stock-pill[data-state="low"],
.sales-stock-pill[data-state="unknown"] {
  background: #fff2d9;
  color: #7a5818;
}

.sales-status-pill[data-state="ready"],
.sales-status-pill[data-state="saved"],
.sales-stock-pill[data-state="ready"] {
  background: #e4f2eb;
  color: #226449;
}

.sales-status-pill[data-state="error"],
.sales-stock-pill[data-state="out"] {
  background: #f8e5e1;
  color: #9a4035;
}

.sales-inventory-filter-panel {
  display: grid;
  gap: 4px;
}

.sales-form-grid.sales-inventory-filter-grid {
  grid-template-columns: 0.85fr 1fr minmax(260px, 1.55fr) 1fr 0.9fr 1fr;
}

.sales-filter-search-field {
  min-width: 0;
}

.sales-inventory-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.sales-inventory-summary article {
  display: grid;
  gap: 5px;
  padding: 15px;
  border: 1px solid #d9e3dc;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(31, 59, 47, 0.045);
}

.sales-inventory-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.sales-inventory-summary strong {
  color: #20342c;
  font-size: 23px;
}

.sales-inventory-list {
  display: grid;
  gap: 10px;
}

.sales-inventory-row {
  display: grid;
  grid-template-columns: 64px minmax(240px, 1.4fr) minmax(220px, 0.8fr) minmax(210px, auto);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #dcded7;
  border-radius: 12px;
  background: #fff;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.payment-guide-modal {
  z-index: 110;
}

.payment-guide-card {
  position: relative;
  width: min(900px, 100%);
  max-height: min(820px, calc(100vh - 36px));
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(29, 40, 33, 0.28);
}

.payment-guide-card .modal-close {
  width: 44px;
  min-height: 44px;
}

.payment-guide-header {
  padding-right: 54px;
}

.payment-guide-eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.payment-guide-header h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
}

.payment-guide-header p {
  max-width: 720px;
  margin: 10px 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

.payment-guide-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
  gap: 16px;
  align-items: end;
  padding: 14px 16px;
  border: 1px solid #cfe1d8;
  border-left: 4px solid var(--accent);
  background: #f2f8f4;
}

.payment-guide-summary > div {
  display: grid;
  gap: 4px;
}

.payment-guide-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.payment-guide-summary strong {
  overflow-wrap: anywhere;
}

.payment-guide-payable {
  text-align: right;
}

.payment-guide-payable strong {
  color: var(--accent);
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.1;
}

.payment-guide-confirmation {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid #e7cfae;
  background: #fff8ed;
  color: #6b4a1d;
  font-weight: 800;
  line-height: 1.5;
}

.payment-guide-currency-gate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #e7cfae;
  background: #fff8ed;
}

.payment-guide-currency-gate[hidden],
.payment-guide-methods[hidden],
.payment-method-panel[hidden] {
  display: none !important;
}

.payment-guide-currency-gate p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.payment-guide-currency-gate button {
  min-height: 44px;
  white-space: nowrap;
}

.payment-guide-methods {
  margin-top: 18px;
}

.payment-method-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  background: #f4f1ea;
}

.payment-method-tabs button {
  min-height: 48px;
  border-color: transparent;
  background: transparent;
  color: var(--text);
}

.payment-method-tabs button[aria-selected="true"] {
  border-color: var(--accent);
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(29, 40, 33, 0.09);
}

.payment-method-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 22px;
  align-items: start;
  padding: 20px 4px 4px;
}

.payment-method-copy h3 {
  margin: 8px 0 12px;
  font-size: 20px;
}

.payment-method-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 9px;
  border: 1px solid #cfe1d8;
  background: #f2f8f4;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.payment-method-copy ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--text);
}

.payment-method-copy li {
  margin-bottom: 9px;
  padding-left: 4px;
  line-height: 1.55;
}

.payment-copy-btn {
  min-height: 44px;
}

.payment-guide-figure {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.payment-guide-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #fff;
}

.payment-guide-qris-figure img {
  max-height: 470px;
}

.payment-guide-figure figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.payment-image-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 8px;
  border: 1px solid var(--line);
  color: var(--accent);
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.payment-image-action:hover,
.payment-image-action:focus-visible {
  border-color: var(--accent);
  background: #f2f8f4;
}

.payment-bank-details {
  display: grid;
  gap: 0;
  margin: 0 0 14px;
  border: 1px solid var(--line);
}

.payment-bank-details > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 10px;
  border-bottom: 1px solid #ebe5dc;
}

.payment-bank-details > div:last-child {
  border-bottom: 0;
}

.payment-bank-details dt {
  color: var(--muted);
  font-weight: 800;
}

.payment-bank-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 900;
}

.payment-bank-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.payment-guide-footer {
  position: sticky;
  bottom: -24px;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, auto);
  gap: 16px;
  align-items: center;
  margin: 20px -24px -24px;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.97);
}

.payment-guide-footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.payment-guide-footer strong {
  color: var(--text);
}

.payment-guide-footer button {
  min-height: 48px;
}

@media (max-width: 720px) {
  .payment-guide-modal {
    align-items: stretch;
    padding: 0;
  }

  .payment-guide-card {
    width: 100%;
    max-height: 100dvh;
    min-height: 100dvh;
    padding: 18px 14px calc(18px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
  }

  .payment-guide-header {
    padding-right: 50px;
  }

  .payment-guide-header h2 {
    font-size: 24px;
  }

  .payment-guide-summary,
  .payment-guide-currency-gate,
  .payment-method-panel,
  .payment-guide-footer {
    grid-template-columns: minmax(0, 1fr);
  }

  .payment-guide-payable {
    text-align: left;
  }

  .payment-guide-currency-gate button,
  .payment-copy-btn,
  .payment-guide-footer button {
    width: 100%;
  }

  .payment-method-tabs {
    position: sticky;
    top: -18px;
    z-index: 3;
  }

  .payment-method-panel {
    gap: 16px;
    padding-top: 16px;
  }

  .payment-guide-qris-figure img {
    max-height: none;
  }

  .payment-bank-details > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }

  .payment-bank-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .payment-guide-footer {
    bottom: calc(-18px - env(safe-area-inset-bottom));
    margin: 20px -14px calc(-18px - env(safe-area-inset-bottom));
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  }
}

.sales-inventory-row .sales-product-thumb {
  width: 64px;
  height: 64px;
}

.sales-inventory-product {
  min-width: 0;
}

.sales-inventory-product strong,
.sales-inventory-product h3,
.sales-inventory-product p,
.sales-inventory-product small {
  display: block;
  overflow-wrap: anywhere;
}

.sales-inventory-product strong {
  color: #2d6a52;
  font-size: 12px;
}

.sales-inventory-product h3 {
  margin: 4px 0;
  font-size: 16px;
}

.sales-inventory-product p,
.sales-inventory-product small {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.sales-inventory-logistics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.sales-inventory-logistics span {
  padding: 6px 8px;
  border-radius: 7px;
  background: #f6f4ef;
  color: #4f5c56;
  font-size: 11px;
  font-weight: 750;
}

.sales-inventory-availability {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.sales-inventory-availability > div {
  display: flex;
  gap: 8px;
}

.sales-inventory-availability input {
  width: 76px;
}

.sales-empty-state {
  display: grid;
  min-height: 110px;
  place-items: center;
  padding: 24px;
  border: 1px dashed #ccd6cf;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  text-align: center;
}

.sales-inventory-load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px;
  color: var(--muted);
  font-size: 13px;
}

.sales-quote-customer-card {
  padding: 0;
  overflow: hidden;
}

.sales-quote-customer-card > .page-header {
  padding: 16px;
  border-bottom: 1px solid #e1e4df;
}

.sales-quote-customer-grid {
  padding: 16px;
}

.sales-quote-customer-grid .sales-wide-field {
  grid-column: span 2;
}

.sales-quote-policy-summary {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 2fr);
  gap: 16px;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

.sales-quote-policy-summary > div:first-child {
  padding: 16px;
}

.sales-policy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-left: 1px solid #e1e4df;
}

.sales-policy-grid > div {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 116px;
  padding: 14px;
  border-left: 1px solid #e1e4df;
}

.sales-policy-grid > div:first-child {
  border-left: 0;
}

.sales-policy-grid span,
.sales-policy-grid small {
  color: var(--muted);
  font-size: 11px;
}

.sales-policy-grid strong {
  color: #244a3c;
  font-size: 14px;
}

.sales-quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(340px, 0.62fr);
  gap: 14px;
  align-items: start;
}

.sales-quote-main {
  display: grid;
  gap: 14px;
}

.sales-quote-step,
.sales-quote-address-section {
  display: grid;
  gap: 14px;
}

.sales-step-heading {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.sales-step-heading > span {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 9px;
  background: #285f4b;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.sales-step-heading p {
  margin: 3px 0 0;
}

.sales-bulk-quote-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 12px;
}

.sales-bulk-quote-actions {
  display: grid;
  align-content: start;
  gap: 9px;
}

.sales-policy-note {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #d7e4dd;
  border-radius: 9px;
  background: #f2f8f5;
}

.sales-policy-note strong {
  color: #285f4b;
  font-size: 13px;
}

.sales-policy-note span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.sales-quote-bulk-result {
  display: grid;
  gap: 6px;
}

.sales-bulk-result-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(90px, 0.4fr) minmax(0, 1.6fr);
  gap: 10px;
  align-items: center;
  padding: 9px 11px;
  border: 1px solid #dce3de;
  border-radius: 8px;
  background: #fafbf9;
  font-size: 12px;
}

.sales-bulk-result-row[data-state="ready"] {
  border-color: #bcd8ca;
  background: #f1f8f4;
}

.sales-bulk-result-row[data-state="shortage"],
.sales-bulk-result-row[data-state="missing"],
.sales-bulk-result-row[data-state="denied"],
.sales-bulk-result-row[data-state="error"] {
  border-color: #ead0c9;
  background: #fff7f4;
}

.sales-bulk-result-row em {
  color: var(--muted);
  font-style: normal;
}

.sales-quote-workbench-items {
  display: grid;
  gap: 8px;
}

.sales-quote-workbench-row {
  display: grid;
  grid-template-columns: 58px minmax(190px, 1.25fr) minmax(105px, 0.65fr) repeat(3, minmax(92px, 0.5fr)) minmax(105px, 0.55fr);
  gap: 9px;
  align-items: center;
  padding: 11px;
  border: 1px solid #dedfd9;
  border-radius: 10px;
  background: #fff;
}

.sales-quote-product-copy {
  min-width: 0;
}

.sales-quote-product-copy > strong,
.sales-quote-product-copy > span,
.sales-quote-product-copy > small {
  display: block;
  overflow-wrap: anywhere;
}

.sales-quote-product-copy > strong {
  color: #2d6a52;
  font-size: 12px;
}

.sales-quote-product-copy > span {
  margin: 3px 0;
  font-size: 13px;
  font-weight: 800;
}

.sales-quote-product-copy > small {
  color: var(--muted);
  font-size: 11px;
}

.sales-quote-product-copy .sales-stock-pill {
  margin-top: 6px;
}

.sales-quote-pricing-cell,
.sales-quote-line-total {
  display: grid;
  gap: 3px;
}

.sales-quote-pricing-cell span,
.sales-quote-pricing-cell small,
.sales-quote-line-total span {
  color: var(--muted);
  font-size: 10px;
}

.sales-quote-pricing-cell strong,
.sales-quote-line-total strong {
  font-size: 12px;
}

.sales-quote-line-total .remove-btn {
  margin-top: 5px;
}

.sales-quote-summary-card {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 14px;
}

.sales-quote-totals {
  display: grid;
  gap: 7px;
}

.sales-quote-totals > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid #e2e4df;
}

.sales-quote-totals span {
  color: var(--muted);
  font-size: 11px;
}

.sales-quote-totals strong {
  font-size: 12px;
  text-align: right;
}

.sales-quote-totals [data-total-role="payable"] {
  padding: 11px;
  border: 1px solid #afd1c0;
  border-radius: 9px;
  background: #eef8f3;
}

.sales-quote-totals [data-total-role="payable"] strong {
  color: #1f6f55;
  font-size: 18px;
}

.sales-quote-adjustments {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.sales-quote-shipping-policy {
  display: grid;
  gap: 8px;
}

.sales-shipping-progress {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 9px;
  background: #f7f5ef;
}

.sales-shipping-progress > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
}

.sales-shipping-progress progress {
  width: 100%;
  height: 9px;
  accent-color: #8b6a21;
}

.sales-quote-shipping-modes {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  border: 0;
}

.sales-quote-shipping-modes legend {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 850;
}

.sales-quote-shipping-modes label {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 10px;
  border: 1px solid #d8dfda;
  border-radius: 9px;
  background: #fff;
}

.sales-quote-shipping-modes label.is-locked {
  opacity: 0.58;
}

.sales-quote-shipping-modes input {
  width: auto;
  min-height: auto;
  margin-top: 3px;
  accent-color: #2f7459;
}

.sales-quote-shipping-modes span,
.sales-quote-shipping-modes strong,
.sales-quote-shipping-modes small {
  display: block;
}

.sales-quote-shipping-modes small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.sales-quote-submit-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sales-quote-submit-actions > :first-child,
.sales-quote-submit-actions > :last-child {
  grid-column: 1 / -1;
}

.sales-address-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.sales-address-line-field {
  grid-column: 1 / -1;
}

.sales-address-match-status {
  padding: 10px 12px;
  border: 1px solid #d8dfda;
  border-radius: 9px;
  background: #f6f7f4;
  color: #58625d;
  font-size: 12px;
  line-height: 1.5;
}

.sales-address-match-status[data-state="matched"],
.sales-address-match-status[data-state="confirmed"] {
  border-color: #b8d8c8;
  background: #eff8f3;
  color: #266148;
}

.sales-address-match-status[data-state="warning"] {
  border-color: #ead7a8;
  background: #fff8e7;
  color: #785b18;
}

.sales-address-match-status[data-state="error"] {
  border-color: #e7c6bf;
  background: #fff3f0;
  color: #9a4035;
}

@media (max-width: 1180px) {
  .sales-form-grid.sales-inventory-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sales-inventory-row {
    grid-template-columns: 64px minmax(220px, 1fr) minmax(190px, 0.8fr);
  }

  .sales-inventory-availability {
    grid-column: 2 / -1;
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: space-between;
    justify-items: stretch;
  }

  .sales-quote-layout {
    grid-template-columns: 1fr;
  }

  .sales-quote-summary-card {
    position: static;
  }

  .sales-quote-workbench-row {
    grid-template-columns: 58px minmax(190px, 1fr) repeat(3, minmax(92px, 0.55fr));
  }

  .sales-quote-pricing-cell,
  .sales-quote-line-total {
    grid-column: span 2;
  }
}

@media (max-width: 820px) {
  .sales-module-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .sales-form-grid.sales-inventory-filter-grid,
  .sales-quote-customer-grid,
  .sales-address-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sales-inventory-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sales-quote-customer-grid .sales-wide-field,
  .sales-address-line-field {
    grid-column: 1 / -1;
  }

  .sales-quote-policy-summary {
    grid-template-columns: 1fr;
  }

  .sales-policy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid #e1e4df;
    border-left: 0;
  }

  .sales-policy-grid > div:nth-child(3) {
    border-left: 0;
  }

  .sales-bulk-quote-grid {
    grid-template-columns: 1fr;
  }

  .sales-quote-workbench-row {
    grid-template-columns: 52px minmax(0, 1fr) minmax(100px, 0.6fr);
  }

  .sales-quote-workbench-row > .field,
  .sales-quote-pricing-cell,
  .sales-quote-line-total {
    grid-column: span 1;
  }
}

@media (max-width: 620px) {
  .sales-form-grid.sales-inventory-filter-grid,
  .sales-quote-customer-grid,
  .sales-address-grid,
  .sales-policy-grid,
  .sales-inventory-summary,
  .sales-quote-adjustments {
    grid-template-columns: 1fr;
  }

  .sales-inventory-row {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .sales-inventory-logistics,
  .sales-inventory-availability {
    grid-column: 1 / -1;
  }

  .sales-inventory-availability {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .sales-inventory-availability > div,
  .sales-inventory-availability button {
    width: 100%;
  }

  .sales-inventory-availability input {
    flex: 0 0 90px;
  }

  .sales-policy-grid > div,
  .sales-policy-grid > div:nth-child(3) {
    min-height: 0;
    border-top: 1px solid #e1e4df;
    border-left: 0;
  }

  .sales-quote-workbench-row {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .sales-quote-workbench-row > .field,
  .sales-quote-pricing-cell,
  .sales-quote-line-total {
    grid-column: 1 / -1;
  }

  .sales-quote-submit-actions {
    grid-template-columns: 1fr;
  }

  .sales-quote-submit-actions > * {
    grid-column: auto !important;
  }

  .sales-bulk-result-row {
    grid-template-columns: 1fr;
  }

  .sales-quote-step button,
  .sales-quote-summary-card button,
  .sales-quote-customer-card input,
  .sales-quote-customer-card select,
  .sales-quote-step input:not([type="radio"]),
  .sales-quote-step select,
  .sales-quote-summary-card input:not([type="radio"]),
  .sales-quote-summary-card select {
    min-height: 44px;
  }
}
