﻿/* Smart Cart Table v3.2.2 — scoped under .sct-wrapper */

.sct-wrapper {
  --sct-gold: #b8942a;
  --sct-gold-lt: #d4b054;
  --sct-gold-dk: #8a6c1a;
  --sct-gold-soft: #f3e7be;
  --sct-gold-bg: #fdf8ec;
  --sct-ivory: #faf8f3;
  --sct-white: #ffffff;
  --sct-border: #e8d9b0;
  --sct-border-dk: #c9b87a;
  --sct-text: #2a2218;
  --sct-muted: #8a7a5a;
  --sct-green: #2e8a52;
  --sct-red-badge: #c0392b;
  --sct-radius: 6px;
  --sct-font-sm: 13px;
  --sct-font-xs: 11px;
  --sct-ease: 0.18s ease;
  width: 100%;
  font-family: inherit;
  color: var(--sct-text);
  background: var(--sct-ivory);
  box-sizing: border-box;
  border: 1px solid var(--sct-border);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 16px rgba(184, 148, 42, .08);
}

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

/* ── Quote summary bar ── */
.sct-quote-summary {
  margin-bottom: 16px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #fffdf5 0%, #fff9e8 100%);
  border: 1.5px solid var(--sct-border-dk);
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(184, 148, 42, .1);
}

.sct-quote-summary-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: space-between;
}

.sct-quote-summary-icon {
  color: var(--sct-gold-dk);
  display: flex;
}

.sct-quote-summary-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--sct-text);
  flex: 1;
  min-width: 0;
}

.sct-quote-sep {
  color: var(--sct-muted);
  font-weight: 400;
  font-size: 13px;
}

.sct-quote-num {
  font-size: 18px;
  color: var(--sct-gold-dk);
}

.sct-quote-summary-link {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  padding: 10px 20px;
  background: #c9a84c;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .03em;
  border: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(201, 168, 76, 0.25);
}

.sct-quote-summary-link:hover {
  background: #b8942a;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(201, 168, 76, 0.35);
}

.sct-quote-summary-link:active {
  transform: translateY(0);
}

/* ── Filter bar (top, replaces sidebar) ── */
.sct-filter-bar {
  margin-bottom: 14px;
  border: 1.5px solid var(--sct-border-dk);
  border-radius: 8px;
  background: var(--sct-white);
  overflow: hidden;
}

.sct-filter-bar-top {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0;
}

.sct-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  flex: 1;
  min-width: 0;
  border-right: 1px solid var(--sct-border);
}

.sct-search-icon {
  flex-shrink: 0;
  color: var(--sct-gold-dk);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.sct-search-icon svg {
  width: 18px;
  height: 18px;
}

.sct-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  background: transparent;
  color: var(--sct-text);
  min-width: 0;
}

.sct-search-clear {
  background: #c9a84c;
  border: none;
  cursor: pointer;
  color: #fff;
  display: none;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  border-radius: 6px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.sct-search-clear svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
  stroke-width: 2.5;
  transition: stroke 0.2s ease;
}

.sct-search-clear:hover {
  background: #b8942a;
  color: #fff;
}

.sct-search-clear:hover svg {
  stroke: #fff;
}

.sct-search-clear:active {
  transform: scale(0.92);
  background: #a08020;
}

.sct-search-bar.has-value .sct-search-clear {
  display: inline-flex;
}

.sct-filter-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--sct-gold-bg) 0%, var(--sct-gold-soft) 100%);
  border: none;
  border-left: 1.5px solid var(--sct-border-dk);
  color: var(--sct-text) !important;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  position: relative;
  opacity: 1 !important;
}

.sct-filter-toggle-btn:hover {
  background: linear-gradient(135deg, var(--sct-gold-soft) 0%, var(--sct-gold-lt) 100%);
}

.sct-filter-toggle-btn[aria-expanded="true"] {
  background: linear-gradient(135deg, var(--sct-gold) 0%, var(--sct-gold-dk) 100%);
  color: #fff;
  border-left-color: var(--sct-gold);
}

.sct-filter-toggle-btn[aria-expanded="true"] .sct-filter-chevron {
  transform: rotate(180deg);
}

.sct-filter-chevron {
  transition: transform 0.22s ease;
  flex-shrink: 0;
}

.sct-active-count:empty {
  display: none;
}

.sct-active-count:not(:empty) {
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--sct-red-badge);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  display: inline-block;
}

.sct-filter-toggle-btn[aria-expanded="true"] .sct-active-count:not(:empty) {
  background: rgba(255, 255, 255, .3);
  color: #fff;
}

/* ── Collapsible filter panel ── */
.sct-filter-panel {
  border-top: 1.5px solid var(--sct-border-dk);
  background: var(--sct-ivory);
  padding: 18px 20px 14px;
  animation: sct-panel-in 0.22s ease;
}

.sct-filter-panel[hidden] {
  display: none;
}

@keyframes sct-panel-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* sidebar is now inside the panel — horizontal layout */
.sct-sidebar {
  width: 100%;
}

.sct-filter-panel-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
}

.sct-filter-group {
  min-width: 130px;
  flex: 1 1 130px;
  max-width: 200px;
}

.sct-filter-heading {
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--sct-gold-dk);
  margin-bottom: 8px;
  padding-bottom: 5px;
  border-bottom: 1.5px solid var(--sct-border-dk);
}

.sct-filter-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--sct-text);
  cursor: pointer;
  padding: 3px 0;
  line-height: 1.4;
}

.sct-filter-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--sct-gold);
  cursor: pointer;
  flex-shrink: 0;
}

.sct-filter-panel-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--sct-border);
  display: flex;
  justify-content: flex-end;
}

.sct-reset-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: transparent;
  color: var(--sct-gold-dk);
  border: 1.5px solid var(--sct-border-dk);
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background var(--sct-ease), color var(--sct-ease), border-color var(--sct-ease);
}

.sct-reset-btn:hover {
  background: var(--sct-gold);
  color: #fff;
  border-color: var(--sct-gold);
}

/* ── Layout ── */
.sct-layout {
  display: block;
}

.sct-table-area {
  width: 100%;
}

.sct-result-count {
  font-size: 13px;
  color: var(--sct-muted);
  margin-bottom: 10px;
}

.sct-result-count strong {
  color: var(--sct-text);
}

/* ── Table ── */
.sct-table-scroll-wrap {
  position: relative;
  min-height: 120px;
  border: 1px solid var(--sct-border);
  border-radius: 8px;
  overflow: hidden;
}

.sct-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.sct-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--sct-font-sm);
  min-width: 900px;
}

.sct-thead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--sct-gold-bg);
  box-shadow: 0 2px 4px rgba(42, 34, 24, 0.06);
}

.sct-th {
  padding: 11px 10px;
  color: var(--sct-gold-dk);
  font-weight: 700;
  font-size: var(--sct-font-xs);
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 2px solid var(--sct-border-dk);
  white-space: nowrap;
  text-align: left;
}

.sct-th-img {
  width: 68px;
}

.sct-th-qty {
  width: 150px;
}

.sct-th-total {
  width: 150px;
}

.sct-th-price {
  width: 100px;
}

.sct-td {
  padding: 10px 10px;
  vertical-align: middle;
  border-bottom: 1px solid var(--sct-border);
  font-size: var(--sct-font-sm);
  color: var(--sct-text);
}

.sct-row-desktop:nth-child(even) .sct-td {
  background: #fffef9;
}

.sct-row-desktop:hover .sct-td {
  background: #fffdf2;
}

.sct-tbody .sct-row-desktop {
  animation: sct-fade-in .25s ease both;
}

.sct-tbody-loading {
  opacity: .4;
  pointer-events: none;
  transition: opacity .15s ease;
}

/* ── Min-qty hint ── */
.sct-min-qty-hint {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  color: var(--sct-gold-dk);
  background: var(--sct-gold-soft);
  padding: 1px 6px;
  border-radius: 10px;
  white-space: nowrap;
  line-height: 1.3;
  letter-spacing: .02em;
  animation: sct-hint-pop .2s ease both;
}

@keyframes sct-hint-pop {
  from { opacity: 0; transform: translateX(-50%) translateY(-3px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Smooth total flash ── */
.sct-total-cost,
.sct-mob-total-cost {
  transition: color .25s ease, transform .25s ease;
}

.sct-total-flash {
  color: var(--sct-gold-dk) !important;
  transform: scale(1.08);
}

.sct-row-desktop.sct-on-sale .sct-td:first-child {
  box-shadow: inset 3px 0 0 0 var(--sct-red-badge);
}

.sct-td-img img,
.sct-no-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #f5f0e8;
  border: 1px solid var(--sct-border);
  border-radius: 4px;
  display: block;
}

.sct-no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.sct-td-brand {
  color: var(--sct-gold-dk);
  font-weight: 600;
}

.sct-td-name {
  text-align: left;
}

.sct-name-inner {
  display: inline;
}

.sct-badge-sale {
  display: inline-block;
  border: 1px solid var(--sct-red-badge);
  color: var(--sct-red-badge);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 1px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  margin-left: 6px;
  vertical-align: middle;
}

.sct-price-old {
  color: var(--sct-muted);
  font-size: 12px;
  text-decoration: line-through;
  display: block;
}

.sct-price-cur {
  color: var(--sct-text);
  font-weight: 500;
}

/* ── Qty stepper — bigger, more visible ── */
.sct-qty-wrap {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--sct-border-dk);
  border-radius: 8px;
  overflow: hidden;
  height: 42px;
  background: var(--sct-white);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
  position: relative;
}

.sct-qty-btn {
  width: 38px;
  height: 42px;
  background: #c9a84c;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.sct-qty-btn:hover {
  background: #b8942a;
  transform: translateY(-1px);
}

.sct-qty-btn:active {
  transform: translateY(0) scale(.95);
}

.sct-qty-input {
  width: 60px;
  min-width: 60px;
  height: 42px;
  border: none;
  border-left: 1.5px solid var(--sct-border-dk);
  border-right: 1.5px solid var(--sct-border-dk);
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: #2a2218 !important;
  background-color: #fff !important;
  -moz-appearance: textfield;
  appearance: textfield;
  -webkit-text-fill-color: #2a2218 !important;
  caret-color: #2a2218;
  line-height: 1;
  padding: 0 4px;
  opacity: 1 !important;
}

.sct-qty-input::-webkit-outer-spin-button,
.sct-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.sct-wrapper input.sct-qty-input {
  color: #2a2218 !important;
  -webkit-text-fill-color: #2a2218 !important;
  background-color: #fff !important;
  opacity: 1 !important;
}

.sct-wrapper input.sct-qty-input:-webkit-autofill,
.sct-wrapper input.sct-qty-input:-webkit-autofill:hover,
.sct-wrapper input.sct-qty-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #2a2218 !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
}

.sct-td-total {
  white-space: nowrap;
}

.sct-total-cost {
  display: inline-block;
  min-width: 5em;
  margin-right: 6px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--sct-gold-dk);
}

/* ── Add to quote button ── */
.sct-btn-add-quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  vertical-align: middle;
  border: 1.5px solid #c9b87a;
  border-radius: 8px;
  background: #ffffff;
  color: #8a6c1a;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(184, 148, 42, 0.08);
}

.sct-btn-add-quote svg {
  width: 18px;
  height: 18px;
  stroke: #8a6c1a;
  transition: transform 0.2s ease;
}

.sct-btn-add-quote:hover {
  background: #fdf8ec;
  border-color: #b8942a;
}

.sct-btn-add-quote:hover svg {
  stroke: #8a6c1a;
}

.sct-btn-add-quote:active {
  transform: scale(0.95);
}

.sct-row-desktop.sct-in-quote .sct-btn-add-quote,
.sct-m-card.sct-in-quote .sct-btn-add-quote,
.sct-btn-add-quote.sct-added {
  color: #2e8a52;
  border-color: #2e8a52;
  background: #f4faf6;
}

.sct-btn-add-quote.sct-added svg {
  stroke: #2e8a52;
}

.sct-btn-add-quote.sct-adding {
  opacity: .6;
  pointer-events: none;
}

/* ── Empty / loading ── */
.sct-empty {
  padding: 40px 12px;
  text-align: center;
  color: var(--sct-muted);
  font-size: 14px;
}

.sct-loading {
  position: absolute;
  inset: 0;
  background: rgba(250, 248, 243, .8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  border-radius: 8px;
}

.sct-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid var(--sct-border);
  border-top-color: var(--sct-gold);
  border-radius: 50%;
  animation: sct-spin .7s linear infinite;
}

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

/* ── Toast ── */
.sct-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999999;
  background: #1a150f;
  color: #ffffff !important;
  border-radius: var(--sct-radius);
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.5;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .35);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
  max-width: calc(100vw - 48px);
  white-space: normal;
  word-wrap: break-word;
  text-align: left;
}

.sct-toast,
.sct-toast * {
  color: #ffffff !important;
}

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

.sct-toast.sct-toast-success {
  background: #237a42;
}

.sct-toast.sct-toast-error {
  background: #a93226;
}

/* Inline toast bar for mobile — avoids position:fixed stacking-context bugs */
.sct-mob-toast {
  display: none;
  width: 100%;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  text-align: center;
  line-height: 1.4;
  color: #ffffff;
  box-sizing: border-box;
}
.sct-mob-toast.sct-mob-toast-success { background: #237a42; }
.sct-mob-toast.sct-mob-toast-error   { background: #a93226; }

/* ── Mobile card list (inside main shortcode, <1024px) ── */
.sct-mobile-list {
  display: none;
  width: 100%;
  padding: 0;
}

.sct-m-card {
  position: relative;
  border: 1px solid var(--sct-border-dk);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 4px rgba(184, 148, 42, .1);
}

.sct-m-card.sct-on-sale {
  border-left: 3px solid var(--sct-red-badge);
}

.sct-m-head {
  display: flex;
  align-items: stretch;
  min-height: 60px;
  border-bottom: 1px solid var(--sct-border);
  background: var(--sct-gold-bg);
}

.sct-m-acc-btn {
  flex: 1;
  display: grid;
  grid-template-columns: 52px 1fr auto auto;
  align-items: center;
  column-gap: 10px;
  min-width: 0;
  padding: 10px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: background .18s ease;
  -webkit-tap-highlight-color: transparent;
}

.sct-m-acc-btn:hover {
  background: rgba(184, 148, 42, .08);
}

.sct-m-acc-btn:active {
  background: var(--sct-gold-soft);
}

.sct-m-thumb {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--sct-border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sct-ivory);
}

.sct-m-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sct-m-head-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.sct-m-head-text .sct-badge-sale {
  margin-left: 0;
}

.sct-m-badge-line {
  line-height: 1;
}

.sct-m-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--sct-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sct-m-avail-num {
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--sct-text);
  padding: 0 6px;
  min-width: 2ch;
  text-align: center;
}

.sct-m-price-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 1px;
  min-width: 72px;
}

.sct-m-price-old {
  display: block;
  font-size: 11px;
  line-height: 1.2;
  color: var(--sct-muted);
  text-decoration: line-through;
  margin: 0;
}

.sct-m-price-cur {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--sct-text);
}

.sct-m-quote-btn {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  margin: 8px 8px 8px 0;
  border-radius: 8px;
  background: #2e8a52;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.sct-m-quote-btn svg {
  stroke: #fff;
  width: 20px;
  height: 20px;
}

.sct-m-quote-btn:hover {
  background: #267a47;
}

.sct-m-quote-btn:active {
  transform: scale(0.95);
}

.sct-m-quote-btn.sct-added {
  background: #eaf6ef;
  color: #2e8a52;
  border: 1px solid #2e8a52;
}

.sct-m-quote-btn.sct-added svg {
  stroke: #2e8a52;
}

.sct-m-ico {
  flex-shrink: 0;
}

.sct-m-panel {
  padding: 0;
}

.sct-m-panel-grid {
  display: grid;
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s cubic-bezier(.4, 0, .2, 1), opacity .28s ease;
  opacity: 0;
}

.sct-m-card.is-open .sct-m-panel-grid {
  max-height: 1200px;
  opacity: 1;
}

.sct-m-panel-inner {
  overflow: hidden;
  min-height: 0;
  padding: 0 12px 14px;
  background: #faf8f3;
  border-top: 1px solid var(--sct-border);
}

.sct-m-dl {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(184, 148, 42, .2);
  font-size: 13px;
}

.sct-m-dl:last-child {
  border-bottom: none;
}

.sct-m-dt {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--sct-text);
  max-width: 42%;
}

.sct-m-dd {
  text-align: right;
  min-width: 0;
  word-break: break-word;
}

.sct-m-dd-name .sct-badge-sale {
  margin-left: 6px;
  vertical-align: middle;
}

.sct-m-dd-price .sct-price-old {
  margin-right: 6px;
}

.sct-m-dl-img .sct-m-dd img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--sct-border);
}

.sct-m-dl-qty .sct-qty-wrap {
  justify-content: flex-end;
}

.sct-m-dd-total {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.sct-m-panel-quote {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
}

/* ── Responsive ── */
@media (max-width: 1023px) {
  .sct-wrapper .sct-table-scroll-wrap {
    display: none !important;
  }

  .sct-wrapper .sct-mobile-list {
    display: block !important;
    width: 100%;
  }

  .sct-filter-panel-groups {
    flex-direction: column;
    gap: 14px;
  }

  .sct-filter-group {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .sct-filter-bar-top {
    flex-direction: column;
  }

  .sct-search-bar {
    border-right: none;
    border-bottom: 1px solid var(--sct-border);
    min-height: 48px;
  }

  .sct-filter-toggle-btn {
    border-left: none;
    border-top: 1.5px solid var(--sct-border-dk);
    justify-content: center;
    width: 100%;
  }
}

@media (min-width: 1024px) {
  .sct-wrapper .sct-mobile-list {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {

  .sct-m-panel-grid,
  .sct-filter-chevron,
  .sct-filter-panel {
    transition-duration: .01ms !important;
    animation: none !important;
  }
}

/* ════════════════════════════════════════════════════════════
   [smart_cart_table_mobile] — Mobile accordion shortcode
════════════════════════════════════════════════════════════ */
.sct-mob-wrap {
  --sct-gold: #b8942a;
  --sct-gold-lt: #d4b054;
  --sct-gold-dk: #8a6c1a;
  --sct-gold-soft: #f3e7be;
  --sct-gold-bg: #fdf8ec;
  --sct-ivory: #faf8f3;
  --sct-white: #ffffff;
  --sct-border: #e8d9b0;
  --sct-border-dk: #c9b87a;
  --sct-text: #2a2218;
  --sct-muted: #8a7a5a;
  --sct-green: #2e8a52;
  --sct-red-badge: #c0392b;
  font-family: inherit;
  color: var(--sct-text);
  background: var(--sct-white);
  box-sizing: border-box;
  border: 1px solid var(--sct-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(184, 148, 42, .08);
}

.sct-mob-wrap *,
.sct-mob-wrap *::before,
.sct-mob-wrap *::after {
  box-sizing: border-box;
}

/* Hard reset — prevent theme button styles from bleeding in */
.sct-mob-wrap button {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* Rows and row heads are always white */
.sct-mob-wrap .sct-mob-row,
.sct-mob-wrap .sct-mob-row-head,
.sct-mob-wrap .sct-mob-card-img,
.sct-mob-wrap .sct-mob-acc-btn {
  background-color: #ffffff !important;
}

/* Top bar — white bg, dark text/icons */
.sct-mob-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #ffffff;
  border-bottom: 1.5px solid #e8d9b0;
}

/* Left: cart link pill */
.sct-mob-bar-quote-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 2px solid #c9b87a;
  border-radius: 24px;
  text-decoration: none;
  color: #2a2218;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(135deg, #ffffff 0%, #fdf8ec 100%);
  transition: all 0.2s ease;
  box-shadow: 0 1px 4px rgba(184, 148, 42, 0.1);
}

.sct-mob-bar-quote-link:hover {
  background: linear-gradient(135deg, #fdf8ec 0%, var(--sct-gold-soft) 100%);
  border-color: var(--sct-gold);
  box-shadow: 0 2px 8px rgba(184, 148, 42, 0.2);
}

.sct-mob-bar-quote-link svg {
  width: 18px;
  height: 18px;
}

.sct-mob-bar-cart-icon {
  display: flex;
  align-items: center;
  color: #8a6c1a;
}

.sct-mob-bar-cart-icon svg {
  stroke: #8a6c1a;
}

.sct-mob-bar-count {
  font-weight: 700;
  color: #2a2218;
}

.sct-mob-bar-sep {
  color: #c9b87a;
  margin: 0 2px;
}

.sct-mob-bar-total {
  color: #2a2218;
  font-weight: 600;
}

/* Right: icon buttons */
.sct-mob-bar-actions {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.sct-mob-bar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none !important;
  border-radius: 0;
  background: transparent !important;
  color: var(--sct-gold-dk);
  cursor: pointer;
  transition: opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  padding: 0 !important;
  flex-shrink: 0;
}

.sct-mob-bar-btn svg {
  stroke: var(--sct-gold-dk);
  display: block;
  width: 20px;
  height: 20px;
}

.sct-mob-bar-btn:hover {
  opacity: 0.6;
}

.sct-mob-bar-btn:active {
  transform: scale(0.9);
}

.sct-mob-bar-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.sct-mob-bar-btn.is-busy {
  opacity: 0.6;
}

.sct-mob-trash {
  color: #8a6c1a;
}

.sct-mob-trash:hover {
  background: #fff0f0;
  border-color: #c0392b;
  color: #c0392b;
}

.sct-mob-trash:hover svg {
  stroke: #c0392b;
}

.sct-mob-filter-toggle {
  color: #8a6c1a;
  background: transparent;
  border: none;
}

.sct-mob-filter-toggle .sct-mob-fi-search {
  width: 18px;
  height: 18px;
  stroke: #8a6c1a;
}

.sct-mob-filter-toggle.is-active {
  background: #fdf8ec;
  border-color: #b8942a;
}

.sct-mob-filter-toggle.is-active .sct-mob-fi-search {
  stroke: #8a6c1a;
}

/* Search — hidden by default, shown when filter toggle clicked */
.sct-mob-search {
  display: none;
  position: relative;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--sct-border);
  background: var(--sct-white);
}

.sct-mob-search.sct-mob-search-open {
  display: flex;
}

.sct-mob-search-input {
  flex: 1;
  border: 1.5px solid var(--sct-border-dk);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--sct-text);
  background: var(--sct-white);
  outline: none;
}

.sct-mob-search-input:focus {
  border-color: var(--sct-gold-lt);
  box-shadow: 0 0 0 3px rgba(184, 148, 42, .12);
}

.sct-mob-search-clear {
  background: var(--sct-gold);
  border: none;
  cursor: pointer;
  color: #fff;
  display: none;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border-radius: 8px;
  transition: all 0.2s ease;
  flex-shrink: 0;
  position: relative;
  z-index: 9999;
  line-height: 1;
  margin: 0 !important;
}

.sct-mob-search-clear svg {
  width: 14px !important;
  height: 14px !important;
  display: block;
  margin: auto;
}

.sct-mob-search-clear:hover {
  background: var(--sct-gold-dk);
  transform: scale(1.05);
}

.sct-mob-search-clear:active {
  transform: scale(0.92);
}

/* ── Description row (header labels removed) ── */
.sct-mob-desc {
  padding: 10px 12px;
  background: #fdf8ec;
  border-bottom: 1px solid #d9c485;
  color: #8a6c1a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

/* ── Product rows ── */
.sct-mob-row {
  background: #ffffff;
  border-bottom: 1px solid #e8d9b0;
}

.sct-mob-row.sct-on-sale {
  border-left: 3px solid #c0392b;
}

.sct-mob-row.sct-in-quote {
  border-left: 3px solid #2e8a52;
}

/* ── Row head: 5-col grid — all cells vertically centered ── */
.sct-mob-row-head {
  display: grid;
  grid-template-columns: 58px minmax(130px, 1fr) 64px 98px 50px;
  align-items: center;
  background: #ffffff !important;
  min-height: 74px;
}

/* acc-btn spans cols 1-4 */
.sct-mob-acc-btn {
  grid-column: 1 / 5;
  display: grid !important;
  grid-template-columns: 58px minmax(130px, 1fr) 64px 98px;
  align-items: center;
  padding: 10px 0 10px 8px;
  border: none;
  background: #ffffff !important;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: background .12s ease;
  width: 100%;
  min-height: 68px;
}

.sct-mob-acc-btn:hover {
  background: #fafaf8 !important;
}

.sct-mob-acc-btn:active {
  background: #f5f3ee !important;
}

/* col 1: image */
.sct-mob-ri-img {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e8d9b0;
  background: #faf8f3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sct-mob-ri-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sct-mob-ri-no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* col 2: title + sale badge */
.sct-mob-ri-title {
  min-width: 0;
  padding: 0 8px 0 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  align-self: center;
}

.sct-mob-ri-name {
  font-size: 16px;
  font-weight: 600;
  color: #2a2218;
  line-height: 1.25;
  text-align: left;
  width: 100%;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.sct-mob-ri-sale {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #c0392b;
  border: 1px solid #c0392b;
  border-radius: 3px;
  padding: 1px 5px;
  align-self: flex-start;
  line-height: 1.4;
}

/* col 3: available — centered */
.sct-mob-ri-avail {
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #2a2218;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: 100%;
  align-self: center;
  padding-top: 0;
  white-space: nowrap;
}

/* col 4: price — vertically centered, right-aligned */
.sct-mob-ri-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  justify-self: end;
  padding-right: 14px;
  height: 100%;
  align-self: center;
  width: 100%;
  white-space: nowrap;
}

.sct-mob-ri-price-old {
  font-size: 11px;
  font-weight: 400;
  color: #8a7a5a;
  text-decoration: line-through;
  line-height: 1.2;
}

.sct-mob-ri-price-cur {
  font-size: 16px;
  font-weight: 700;
  color: #2a2218;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

/* col 5: action button */
.sct-mob-ri-action {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  justify-self: stretch;
  width: 50px;
  min-height: 74px;
  padding: 0;
  border: none;
  border-left: 1px solid var(--sct-border);
  background: #ffffff !important;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.sct-mob-ri-action svg {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.sct-mob-ri-action:hover {
  background: #f0faf4 !important;
}

.sct-mob-ri-action:hover svg {
  transform: scale(1.1);
}

.sct-mob-ri-action--added {
  background: #f0faf4 !important;
  border-left: 2px solid var(--sct-green);
}

.sct-mob-ri-action--added svg {
  stroke: var(--sct-green);
}

.sct-mob-ri-action.is-busy {
  opacity: 0.5;
  cursor: wait;
  pointer-events: none;
}

/* Override .sct-mob-wrap button { padding:0 } for row action tap target */
.sct-mob-wrap .sct-mob-row-head>.sct-mob-ri-action {
  padding: 0;
}

/* ── Expand panel ── */
.sct-mob-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .35s cubic-bezier(.4, 0, .2, 1), opacity .25s ease;
}

.sct-mob-row.is-open .sct-mob-panel {
  max-height: 1400px;
  opacity: 1;
}

.sct-mob-panel-inner {
  background: #ffffff;
  border-top: 1px solid #e8d9b0;
}

/* ── Detail table — matches target image exactly ── */
.sct-mob-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.sct-mob-detail-table tr {
  border-bottom: 1px solid #e8d9b0;
}

.sct-mob-detail-table tr:last-child {
  border-bottom: none;
}

.sct-mob-detail-table th {
  width: 42%;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #2a2218;
  text-align: left;
  vertical-align: middle;
  background: #ffffff;
  white-space: nowrap;
}

.sct-mob-detail-table td {
  padding: 14px 16px;
  font-size: 14px;
  color: #2a2218;
  text-align: right;
  vertical-align: middle;
  background: #ffffff;
}

.sct-mob-detail-table tr:first-child td {
  text-align: center;
}

.sct-mob-detail-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid #e8d9b0;
  display: inline-block;
  vertical-align: middle;
}

.sct-mob-detail-price-old {
  font-size: 11px;
  color: #8a7a5a;
  text-decoration: line-through;
  display: block;
  line-height: 1.3;
}

.sct-mob-detail-price-cur {
  font-size: 17px;
  font-weight: 700;
  color: #2a2218;
  display: block;
  line-height: 1.3;
}

.sct-mob-detail-total {
  font-size: 15px;
  font-weight: 800;
  color: var(--sct-text);
}

.sct-mob-min-note {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: #c0392b;
  margin-top: 2px;
}

/* qty inside detail table */
.sct-mob-detail-table .sct-qty-wrap {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #c9b87a;
  border-radius: 6px;
  overflow: hidden;
  height: 42px;
  background: #fff;
}

.sct-mob-detail-table .sct-qty-btn {
  width: 40px;
  height: 42px;
  background: #ffffff;
  color: #2a2218;
  border: none;
  cursor: pointer;
  font-size: 22px;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .12s ease;
  flex-shrink: 0;
}

.sct-mob-detail-table .sct-qty-btn:hover {
  background: #c9a84c;
  color: #ffffff;
}

.sct-mob-detail-table .sct-qty-input {
  width: 56px;
  min-width: 56px;
  height: 42px;
  border: none;
  border-left: 1.5px solid #c9b87a;
  border-right: 1.5px solid #c9b87a;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #2a2218 !important;
  -webkit-text-fill-color: #2a2218 !important;
  background: #fff !important;
  -moz-appearance: textfield;
  appearance: textfield;
  padding: 0 4px;
}

.sct-mob-detail-table .sct-qty-input::-webkit-outer-spin-button,
.sct-mob-detail-table .sct-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* CTA row */
.sct-mob-cta-row {
  padding: 14px 16px;
  border-top: 1.5px solid #e8d9b0;
  background: #ffffff;
  text-align: center;
}

.sct-mob-add-quote-btn,
button.sct-mob-add-quote-btn,
.sct-mob-add-quote-btn.button,
.sct-mob-add-quote-btn.btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 140px !important;
  background: #c9a84c !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 12px 28px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  -webkit-tap-highlight-color: transparent !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  box-shadow: none !important;
  min-height: 44px !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
  font-family: inherit !important;
  outline: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

.sct-mob-add-quote-btn:hover,
button.sct-mob-add-quote-btn:hover,
.sct-mob-add-quote-btn.button:hover,
.sct-mob-add-quote-btn.btn:hover {
  background: #b8942a !important;
  box-shadow: 0 2px 8px rgba(201, 168, 76, 0.3) !important;
  color: #fff !important;
  text-decoration: none !important;
}

.sct-mob-add-quote-btn:active,
button.sct-mob-add-quote-btn:active,
.sct-mob-add-quote-btn.button:active,
.sct-mob-add-quote-btn.btn:active {
  transform: translateY(1px) !important;
  box-shadow: none !important;
}

.sct-mob-add-quote-btn.is-busy,
button.sct-mob-add-quote-btn.is-busy {
  opacity: 0.6 !important;
  cursor: wait !important;
  pointer-events: none !important;
}

.sct-already-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #2e8a52;
  font-weight: 600;
  justify-content: center;
}

.sct-browse-link {
  color: #8a6c1a;
  font-weight: 700;
  text-decoration: underline;
}

.sct-mob-view-list-link {
  display: inline-block;
  margin-left: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #c9a84c;
  text-decoration: none;
  vertical-align: middle;
}

.sct-mob-panel-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--sct-text);
  line-height: 1.3;
}

/* Details grid — single column, label left / value right */
.sct-mob-details-grid {
  display: flex;
  flex-direction: column;
  margin-bottom: 4px;
}

.sct-mob-dl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(184, 148, 42, .18);
  font-size: 13px;
  min-width: 0;
}

.sct-mob-dl:last-child {
  border-bottom: none;
}

.sct-mob-dt {
  font-weight: 700;
  flex-shrink: 0;
  width: 42%;
  color: var(--sct-muted);
  font-size: 12px;
  white-space: nowrap;
}

.sct-mob-dd {
  text-align: right;
  min-width: 0;
  word-break: break-word;
  font-weight: 500;
  flex: 1;
}

/* Order block — replaced by detail table, keep for legacy */
.sct-mob-order-block {
  display: none;
}

.sct-mob-row {
  animation: sct-fade-in .3s ease both;
}

@keyframes sct-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sct-mob-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 0;
}

.sct-mob-loading-fade {
  opacity: .5;
  pointer-events: none;
  transition: opacity .18s ease;
}

.sct-mob-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--sct-muted);
  font-size: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ════════════════════════════════════════════════════════════
   [smart_cart_menu] — Nav bar quote widget
════════════════════════════════════════════════════════════ */
.sct-menu-widget {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 2px solid #c9b87a;
  border-radius: 24px;
  text-decoration: none;
  color: #2a2218;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(135deg, #ffffff 0%, #fdf8ec 100%);
  transition: all 0.2s ease;
  box-shadow: 0 1px 4px rgba(184, 148, 42, 0.1);
  line-height: 1;
  white-space: nowrap;
}

.sct-menu-widget:hover {
  background: linear-gradient(135deg, #fdf8ec 0%, #f3e7be 100%);
  border-color: #b8942a;
  box-shadow: 0 2px 8px rgba(184, 148, 42, 0.2);
}

.sct-menu-icon {
  display: flex;
  align-items: center;
}

.sct-menu-count {
  background: #b8942a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.sct-menu-widget:hover .sct-menu-count {
  background: #fff;
  color: #b8942a;
}

.sct-menu-sep {
  color: #c9b87a;
}

.sct-menu-total {
  color: #8a6c1a;
}

.sct-menu-widget:hover .sct-menu-sep,
.sct-menu-widget:hover .sct-menu-total {
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {

  .sct-mob-panel,
  .sct-mob-chevron,
  .sct-mob-acc-btn,
  .sct-mob-quote-btn,
  .sct-qty-btn,
  .sct-btn-add-quote {
    transition-duration: .01ms !important;
    animation: none !important;
  }
}

/* ════════════════════════════════════════════════════════════
   Pagination — shared by both shortcodes
════════════════════════════════════════════════════════════ */
.sct-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 18px 12px;
  flex-wrap: wrap;
}

.sct-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1.5px solid #e8d9b0;
  border-radius: 6px;
  background: #ffffff;
  color: #2a2218;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  line-height: 1;
}

.sct-page-btn:hover {
  background: #fdf8ec;
  border-color: #c9b87a;
  color: #8a6c1a;
}

.sct-page-btn.sct-page-active {
  background: #b8942a;
  border-color: #b8942a;
  color: #ffffff;
  cursor: default;
  pointer-events: none;
}

.sct-page-btn.sct-page-disabled {
  opacity: .4;
  cursor: default;
  pointer-events: none;
}

.sct-page-btn.sct-page-prev,
.sct-page-btn.sct-page-next {
  font-size: 16px;
  padding: 0 12px;
}

.sct-page-ellipsis {
  color: #8a7a5a;
  font-size: 14px;
  padding: 0 4px;
  line-height: 36px;
}

.sct-pagination-info {
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: #8a7a5a;
  margin-top: 4px;
}