:root {
  --bg: #f4f6f5;
  --surface: #ffffff;
  --surface-soft: #f7f9f8;
  --surface-accent: #f0f6f3;
  --text: #17211d;
  --text-soft: #5f6d66;
  --text-muted: #87928c;
  --line: #dee5e1;
  --line-strong: #cfd9d3;
  --brand: #3c8368;
  --brand-strong: #326f59;
  --brand-soft: #edf6f2;
  --brand-soft-2: #f6faf8;
  --brand-line: #cfe2d8;
  --brand-muted: #78a994;
  --danger: #ad4536;
  --danger-soft: #fff0ed;
  --warning: #9a6f1c;
  --warning-soft: #fff5df;
  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 14px;
  --sidebar-w: 244px;
  --topbar-h: 68px;
  --content-pad: clamp(20px, 2.6vw, 38px);
  --shadow-card: none;
  --shadow-modal: none;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: auto;
  overflow-y: auto;
  scrollbar-gutter: stable;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 280px;
  
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.52;
  letter-spacing: -0.006em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button, a, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}

button, a {
  touch-action: manipulation;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

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

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
}

[hidden] {
  display: none !important;
}

button:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid rgb(60 131 104 / 22%);
  outline-offset: 3px;
}

input, select, textarea {
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: #76aa94;
  box-shadow: none;
  outline: 2px solid #e2efe9;
  outline-offset: 1px;
}

svg.lucide {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
  flex: 0 0 auto;
}

h1, h2, h3, p {
  margin: 0;
}

h1, h2, h3 {
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI Variable", "Segoe UI", sans-serif;
}

h1 {
  font-size: clamp(28px, 2.8vw, 36px);
  line-height: 1.12;
  font-weight: 680;
  letter-spacing: -.035em;
}

h2 {
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -.024em;
}

h3 {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 650;
  letter-spacing: -.016em;
}

.muted {
  color: var(--text-soft);
}

.small {
  font-size: 12.5px;
}

.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

/* Interaction motion: short, targeted, and blur-free. */
.nav-item, .icon-button, .btn, .text-button, .platform-tab, .filter-button, .product-card, .favorite-button, .add-button, .global-search, .sidebar-profile, .sidebar-account-menu button, .field input, .field select, .field textarea, .switch-control > span, .switch-control > span::after {
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease, opacity 140ms ease;
}

/* App shell */
.sidebar {
  transition: transform 180ms ease;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 24px 18px 18px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}

.sidebar-nav-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-right: 1px;
}

.sidebar-nav-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.brand {
  display: flex;
  align-items: center;
  max-width: 100%;
  flex: 0 0 auto;
  margin-bottom: 24px;
}

.brand-wordmark {
  width: min(176px, 100%);
  height: auto;
  object-fit: contain;
}

.nav-label {
  margin: 0 10px 10px;
  color: #99a49e;
  font-size: 9.5px;
  font-weight: 720;
  letter-spacing: .14em;
}

.nav-item {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 4px;
  padding: 10px 12px;
  border-radius: 9px;
  color: #6f7d75;
  font-size: 13.25px;
  font-weight: 540;
}

.nav-item:hover {
  background: #f3f7f5;
  color: #416658;
}

.nav-item.active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 650;
}

.nav-item .count {
  margin-left: auto;
  padding: 1px 6px;
  border-radius: 999px;
  background: #dfeee7;
  font-size: 10px;
}

.nav-divider {
  height: 1px;
  margin: 18px 9px;
  background: #edf1ef;
}

.side-spacer { display: none; }

.sidebar-account {
  position: relative;
  flex: 0 0 auto;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #edf1ef;
  background: var(--surface);
}

.sidebar-profile {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  text-align: left;
}

.sidebar-profile:hover,
.sidebar-profile[aria-expanded="true"] {
  border-color: var(--line);
  background: var(--surface-soft);
}

.sidebar-profile .avatar {
  width: 36px;
  height: 36px;
  font-size: 12px;
}

.sidebar-profile-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.sidebar-profile-copy strong,
.sidebar-profile-copy span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-profile-copy strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.sidebar-profile-copy span {
  color: var(--text-muted);
  font-size: 10.5px;
  line-height: 1.35;
}

.sidebar-profile > svg {
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  transition: transform 140ms ease, color 140ms ease;
}

.sidebar-profile[aria-expanded="true"] > svg {
  transform: rotate(180deg);
  color: var(--brand);
}

.sidebar-account-menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 3;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgb(36 57 48 / 10%);
  transform-origin: bottom center;
}

.sidebar-account-menu:not([hidden]) { display: block; }

.sidebar-account-menu button {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--danger);
  font-size: 11.5px;
  font-weight: 620;
  text-align: left;
}

.sidebar-account-menu button:hover {
  background: var(--danger-soft);
}

.sidebar-account-menu button svg {
  width: 16px;
  height: 16px;
}

.shell {
  min-height: 100vh;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--topbar-h);
  min-height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 var(--content-pad);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.breadcrumbs {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
}

.breadcrumbs span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  color: #34463c;
  font-weight: 560;
}

.breadcrumbs svg {
  width: 13px;
}

.top-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.global-search {
  width: clamp(240px, 28vw, 360px);
  min-width: 0;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8faf9;
  color: #8b9790;
}

.global-search:focus-within {
  border-color: #b9d7ca;
  background: #fff;
  box-shadow: none;
}

.global-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #2b3b32;
  font-size: 12px;
}

.global-search input::placeholder {
  color: #9aa59f;
  opacity: 1;
}

.icon-button {
  position: relative;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  color: #53645a;
}

.icon-button:hover {
  background: #f2f6f4;
  color: var(--text);
}

.cart-count {
  position: absolute;
  top: 1px;
  right: 0;
  min-width: 15px;
  padding: 1px 4px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 9px;
  line-height: 1.25;
  text-align: center;
}

.mobile-toggle {
  display: none;
}

.avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
}

.mobile-overlay {
  display: none;
}

/* Buttons */
.btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: #35775f;
}

.btn-secondary {
  border: 1px solid var(--line-strong);
  background: #fff;
}

.btn-secondary:hover {
  border-color: #d2e0d9;
  background: #f7faf8;
}

.btn-soft {
  background: var(--brand-soft);
  color: var(--brand);
}

.btn-danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.btn svg {
  width: 15px;
  height: 15px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 0;
  color: var(--brand);
  font-size: 12px;
  font-weight: 650;
}

/* Content */
.main {
  width: 100%;
  
  flex: 1 0 auto;
  margin: 0 auto;
  padding: 30px var(--content-pad) 14px;
}

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

.intro > div:first-child {
  min-width: 0;
}

.intro h1 {
  font-size: clamp(28px, 2.45vw, 35px);
  font-weight: 690;
}

.intro p, .page-heading p {
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 12.5px;
  line-height: 1.6;
}

.date-label {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  color: var(--text-muted);
  font-size: 11px;
}

.date-label svg {
  width: 14px;
}

.page-heading {
  margin-bottom: 24px;
}

.hero {
  display: block;
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.hero-copy {
  min-width: 0;
  padding: clamp(26px, 2.8vw, 36px);
}

.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
}

.hero .eyebrow svg {
  width: 14px;
  height: 14px;
}

.hero h2 {
  margin: 9px 0 8px;
  font-size: clamp(28px, 2.8vw, 38px);
  font-weight: 680;
  line-height: 1.15;
  letter-spacing: -.038em;
}

.hero h2 em {
  color: var(--brand);
  font-style: normal;
}

.hero p {
  max-width: 560px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.65;
}

.hero .text-button {
  margin-top: 9px;
}

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

.section-heading h2 {
  font-size: 18px;
  font-weight: 660;
}

.section-heading p {
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 11px;
}

.platform-tabs {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.platform-tabs::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.platform-tabs {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  margin: 0 calc(var(--content-pad) * -1) 15px;
  padding: 2px var(--content-pad) 4px;
  overscroll-behavior-inline: contain;
}

.platform-tab {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: #34483e;
  font-size: 11.5px;
  font-weight: 590;
  white-space: nowrap;
}

.platform-tab:hover {
  border-color: var(--brand-line);
  background: var(--brand-soft-2);
  color: var(--brand-strong);
}

.platform-tab:focus-visible {
  outline: 2px solid rgb(60 131 104 / 18%);
  outline-offset: 2px;
}

.platform-tab.active {
  border-color: var(--brand-line);
  background: var(--brand-soft);
  color: var(--brand-strong);
  box-shadow: inset 0 0 0 1px rgb(60 131 104 / 4%);
}

.platform-tab .brand-icon.small-icon {
  width: 22px;
  height: 22px;
  padding: 2px;
  border: 1px solid #edf1ef;
  border-radius: 6px;
  background: #fff;
}

.platform-tab .brand-icon.small-icon img {
  width: 16px;
  height: 16px;
}

.platform-tab:hover .brand-icon.small-icon,
.platform-tab.active .brand-icon.small-icon {
  border-color: #e2ebe6;
  background: #fff;
}

.platform-tab .platform-count {
  min-width: 20px;
  padding: 2px 5px;
  border-radius: 999px;
  background: #f0f4f2;
  color: #718078;
  font-size: 9.5px;
  font-weight: 650;
  text-align: center;
}

.platform-tab.active .platform-count {
  background: #e1efe8;
  color: var(--brand-strong);
}

.platform-tab > svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.catalog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.catalog-bar h3 {
  min-width: 0;
  font-size: 14px;
  font-weight: 650;
}

.catalog-bar h3 span {
  margin-left: 7px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 450;
  white-space: nowrap;
}

.catalog-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.catalog-controls select, .filter-button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #5e6e65;
  font-size: 11px;
}

.catalog-controls select {
  max-width: 180px;
  padding: 7px 30px 7px 10px;
}

.filter-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
}

.filter-button svg {
  width: 13px;
  height: 13px;
}

.filter-button.has-active-filter {
  border-color: var(--brand-line);
  color: var(--brand-strong);
  background: var(--brand-soft-2);
}

.filter-count {
  min-width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  padding: 0 4px;
  border-radius: 999px;
  background: #4b8d72;
  color: #fff;
  font-size: 8px;
  font-weight: 750;
  line-height: 1;
}

/* Catalog cards */
.product-grid {
  display: grid;
  
  gap: 12px;
}

.product-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.product-card:hover {
  border-color: #bdd3c8;
  transform: translateY(-1px);
}

.product-visual {
  position: relative;
  height: 114px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #f0f4f1;
}

.product-visual:focus-visible {
  outline: 3px solid rgb(60 131 104 / 22%);
  outline-offset: -3px;
}

.product-visual .brand-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid #e5ebe7;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 1;
}

.brand-icon img {
  width: 34px;
  height: 34px;
  display: block;
  object-fit: contain;
}

.brand-icon.small-icon {
  width: 18px;
  height: 18px;
}

.brand-icon.small-icon img {
  width: 17px;
  height: 17px;
}

.product-visual .brand-icon img {
  width: 34px;
  height: 34px;
}

.brand-icon > svg {
  width: 18px;
  height: 18px;
}

.favorite-button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #e1e8e4;
  border-radius: 50%;
  background: #fff;
  color: #89968e;
}

.favorite-button svg {
  width: 13px;
  height: 13px;
}

.favorite-button.saved {
  background: #fff;
  color: #d15a73;
}

.favorite-button.saved svg {
  fill: rgb(209 90 115 / 16%);
}

.product-status {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  padding: 4px 7px;
  border: 1px solid #dce6e1;
  border-radius: 999px;
  background: rgb(255 255 255 / 92%);
  color: #53645b;
  font-size: 9px;
  font-weight: 680;
  line-height: 1;
  white-space: nowrap;
}

.product-status > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-status svg {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
}

.product-status-card {
  position: absolute;
  top: 10px;
  left: 10px;
  max-width: calc(100% - 54px);
}

.product-status.status-instant {
  border-color: #c9dfd4;
  background: #f2f8f5;
  color: #347258;
}

.product-status.status-promo {
  border-color: #ead9ad;
  background: #fff9ea;
  color: #87631c;
}

.product-status.status-exclusive {
  border-color: #d3ded9;
  background: #edf3f0;
  color: #334b40;
}

.product-status.status-new {
  border-color: #d3dfe8;
  background: #f3f7fa;
  color: #4c6577;
}

.product-status.status-popular {
  border-color: #ead7cf;
  background: #fff6f2;
  color: #8a5743;
}

.product-info {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 12px 13px 13px;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  margin: 0 0 5px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.3;
  white-space: nowrap;
}

.product-meta svg {
  width: 10px;
  height: 10px;
}

.product-title {
  width: 100%;
  display: -webkit-box;
  overflow: hidden;
  min-height: 36px;
  margin: 0 0 6px;
  padding: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 680;
  line-height: 1.38;
  text-align: left;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-spec {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 9px;
  margin: 0 0 10px;
  color: #75847b;
  font-size: 9.75px;
  line-height: 1.3;
}

.product-spec span {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
}

.product-spec svg {
  width: 10px;
  height: 10px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 10px 11px;
  border: 1px solid #e0e9e4;
  border-radius: 10px;
  background: #f7faf8;
}

.product-price-block {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 0;
}

.price-label {
  color: #7a8981;
  font-size: 8.5px;
  font-weight: 680;
  line-height: 1.2;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-top: 0;
  color: #34755c;
  line-height: 1.05;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.price-currency {
  font-size: 11px;
  font-weight: 690;
  line-height: 1;
  letter-spacing: -.015em;
}

.price-value {
  font-size: 17px;
  line-height: 1;
  font-weight: 760;
}

.stock {
  margin-top: 1px;
  color: var(--text-muted);
  font-size: 8.75px;
  line-height: 1.35;
}

.add-button {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #e2ebe6;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
}

.add-button:hover {
  background: #e3f0ea;
}

.add-button svg {
  width: 15px;
  height: 15px;
}

.result-count {
  margin-top: 24px;
  color: #95a19a;
  font-size: 10px;
  text-align: center;
}

/* Surfaces, forms, status */
.surface {
  margin-bottom: 18px;
  padding: clamp(18px, 2.3vw, 26px);
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.empty {
  padding: clamp(42px, 7vw, 66px) 22px;
  border: 1px dashed #d7e1db;
  border-radius: 13px;
  background: #fff;
  text-align: center;
}

.empty > .lucide {
  width: 38px;
  height: 38px;
  margin: 0 auto 14px;
  color: #8db2a1;
}

.empty h3 {
  font-size: 17px;
}

.empty p {
  max-width: 440px;
  margin: 8px auto 18px;
  color: var(--text-soft);
  font-size: 12px;
}

.auth-required {
  max-width: 650px;
  margin: 34px auto;
}

.row {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: #47836a;
  font-size: 10px;
  font-weight: 560;
}

.tag.pending, .tag.review {
  background: var(--warning-soft);
  color: var(--warning);
}

.tag.cancelled, .tag.rejected {
  background: #f9eae8;
  color: #a95750;
}

.order-card {
  margin-bottom: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.order-card h3 {
  margin: 13px 0 5px;
}

.order-card .order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.order-card .order-summary {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid #edf1ef;
}

.order-number {
  color: #65766c;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid .full, .field.full {
  grid-column: 1 / -1;
}

.field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field > span, .field > label {
  color: #55665c;
  font-size: 11px;
  font-weight: 650;
}

.field input, .field select, .field textarea {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: #293930;
  font-size: 13px;
}

.field textarea {
  min-height: 106px;
  resize: vertical;
}

.checkline {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #6e7e74;
  font-size: 11px;
  line-height: 1.6;
}

.checkline input {
  flex: 0 0 auto;
  margin: 3px 0 0;
  accent-color: var(--brand);
}

.form-note, .fineprint {
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.7;
}

.fineprint {
  margin-top: 13px;
}

.form-error {
  margin: 9px 0;
  padding: 9px 11px;
  border-radius: 7px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 11px;
}

.form-error:empty {
  display: none;
}

.divider {
  height: 1px;
  margin: 18px 0;
  background: #e9eeeb;
}

.panel-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .95fr);
  gap: 20px;
}

.info-list {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}

.info-list div {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #708076;
}

.info-list svg {
  width: 17px;
  color: #4d8d72;
}

.info-list strong {
  display: block;
  color: #344b3b;
  font-size: 12px;
}

.info-list p {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.6;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.guide-number {
  margin-bottom: 16px;
  color: #d2e5dc;
  font-size: 34px;
  line-height: 1;
}

.guide-grid p {
  margin-top: 9px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.75;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.stat p {
  color: var(--text-muted);
  font-size: 11px;
}

.stat h2 {
  margin-top: 6px;
  font-size: 23px;
}

.table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

th {
  background: #fafcfb;
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 650;
  text-align: left;
  white-space: nowrap;
}

td, th {
  padding: 13px 14px;
  border-bottom: 1px solid #edf1ef;
  vertical-align: middle;
}

td {
  min-width: 90px;
}

td strong {
  font-size: 11px;
}

td .btn {
  min-height: 32px;
  padding: 6px 9px;
  font-size: 10px;
}

.inline-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.account-box {
  max-width: 650px;
}

.legal {
  max-width: 880px;
}

.legal h3 {
  margin: 20px 0 7px;
}

.legal p {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.85;
}

.link {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.danger-zone {
  margin-top: 22px;
}

.danger-zone button {
  color: var(--danger);
}

/* Dialog, cart, help */
html.modal-open, body.modal-open { overflow: hidden; }
dialog {
  
  
  
  
  
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  box-shadow: none;
}

dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
dialog::-webkit-scrollbar, .modal-body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

dialog::backdrop {
  background: rgb(25 31 28 / 28%);
}

.modal-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 12px 16px;
  border-bottom: 1px solid #e9efeb;
  background: #fff;
}

.modal-head h2 {
  min-width: 0;
  overflow: hidden;
  font-size: 16.5px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-head .icon-button {
  width: 34px;
  height: 34px;
}

.modal-body {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 16px;
}

.modal-body > p {
  margin-bottom: 13px;
  color: var(--text-soft);
  font-size: 11.5px;
  line-height: 1.65;
}

.modal-body .btn.full {
  width: 100%;
}

.modal-body .form-grid {
  gap: 12px;
}

.auth-switch {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 11px;
  text-align: center;
}

.auth-switch button {
  color: var(--brand);
  font-weight: 650;
}

.modal-brand {
  display: flex;
  justify-content: center;
  margin: 0 0 18px;
}

.modal-brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.modal-brand-wordmark {
  margin-bottom: 20px;
}

.modal-brand-wordmark img {
  width: min(220px, 62vw);
  height: 48px;
  object-fit: contain;
}

.product-detail-modal {
  width: 470px;
}

.product-detail-modal .modal-body {
  padding: 15px 16px 16px;
}

.product-detail-visual {
  position: relative;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 11px;
  border-radius: 9px;
  background: #f0f6f2;
}

.product-detail-visual .brand-icon {
  width: 50px;
  height: 50px;
}

.product-detail-visual .brand-icon img {
  width: 42px;
  height: 42px;
}

.product-detail-visual .brand-icon > svg {
  width: 42px;
  height: 42px;
}

.product-status-detail {
  position: absolute;
  top: 9px;
  left: 9px;
  max-width: calc(100% - 18px);
}

.product-detail-modal .product-description {
  margin-bottom: 12px;
  color: var(--text-soft);
  font-size: 11.5px;
  line-height: 1.68;
  white-space: pre-wrap;
}

.detail-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
  padding: 11px 12px;
  border-radius: 9px;
  background: #f6f9f7;
}

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

.detail-specs span {
  display: block;
  color: var(--text-muted);
  font-size: 9px;
  line-height: 1.35;
}

.detail-specs strong {
  display: block;
  margin-top: 2px;
  overflow-wrap: anywhere;
  font-size: 11px;
  font-weight: 620;
  line-height: 1.4;
}

.detail-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 13px;
  padding: 11px 12px;
  border: 1px solid #dfe9e4;
  border-radius: 9px;
  background: #f7faf8;
}

.detail-price-copy {
  min-width: 0;
}

.detail-price-label {
  display: block;
  margin-bottom: 2px;
  color: #7a8981;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.detail-price {
  display: flex;
  align-items: baseline;
  gap: 3px;
  color: #34755c;
  font-size: 23px;
  font-weight: 780;
  line-height: 1;
  letter-spacing: -.04em;
}

.detail-price > span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -.015em;
}

.detail-stock {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  background: #edf5f1;
  color: #4e705f;
  font-size: 9px;
  font-weight: 620;
}

.detail-stock.is-empty {
  background: #f3f4f3;
  color: #7e8983;
}

.product-detail-modal .btn.full {
  min-height: 40px;
}

.product-detail-modal .fineprint {
  margin-top: 11px;
  font-size: 9.5px;
  line-height: 1.58;
}


.filter-modal .modal-body {
  padding: 14px 16px 16px;
}

.filter-modal-form {
  display: grid;
  gap: 14px;
}

.filter-modal-intro {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid #e4ece7;
  border-radius: 10px;
  background: #f7faf8;
}

.filter-modal-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #dce8e1;
  border-radius: 8px;
  background: #fff;
  color: #47866c;
}

.filter-modal-icon svg {
  width: 14px;
  height: 14px;
}

.filter-modal-intro strong {
  display: block;
  margin: 1px 0 2px;
  font-size: 11.5px;
  font-weight: 680;
}

.filter-modal-intro p {
  margin: 0;
  color: var(--text-soft);
  font-size: 9.5px;
  line-height: 1.5;
}

.filter-modal-fields {
  display: grid;
  gap: 11px;
}

.filter-modal-fields .field {
  gap: 5px;
}

.filter-modal-fields .field > span {
  font-size: 10px;
  font-weight: 620;
}

.filter-modal-fields .field select, .filter-modal-fields .field input {
  min-height: 40px;
  border-radius: 9px;
  font-size: 11.5px;
}

.price-input-wrap {
  display: grid;
  
  align-items: center;
  min-height: 40px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
}

.price-input-wrap:focus-within {
  border-color: #b8d8ca;
  box-shadow: none;
  outline: 2px solid #e4f0ea;
  outline-offset: 1px;
}

.price-input-wrap > span {
  padding: 0 0 0 11px;
  color: #718078;
  font-size: 10.5px;
  font-weight: 650;
}

.price-input-wrap input {
  min-width: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.filter-stock-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.filter-stock-copy {
  min-width: 0;
}

.filter-stock-copy strong {
  display: block;
  font-size: 10.5px;
  font-weight: 650;
}

.filter-stock-copy small {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 9px;
  line-height: 1.4;
}

.switch-control {
  position: relative;
  width: 34px;
  height: 20px;
  flex: 0 0 auto;
}

.switch-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-control > span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #dce5df;
}

.switch-control > span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border: 1px solid #cfd9d3;
  border-radius: 50%;
  background: #fff;
  box-shadow: none;
}

.switch-control input:checked + span {
  background: #4b8d72;
}

.switch-control input:checked + span::after {
  transform: translateX(14px);
}

.switch-control input:focus-visible + span {
  outline: 2px solid #add1c1;
  outline-offset: 2px;
}

.filter-modal-actions {
  display: grid;
  grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr);
  gap: 8px;
  padding-top: 2px;
}

.filter-modal-actions .btn {
  min-height: 39px;
  justify-content: center;
  font-size: 10.5px;
}

.filter-modal-actions .btn svg {
  width: 13px;
  height: 13px;
}

.filter-modal-actions .btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.cart-item {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #edf1ee;
}

.cart-item > .brand-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: #f3f7f4;
}

.cart-item > .brand-icon img {
  width: 27px;
  height: 27px;
}

.cart-item-main {
  min-width: 0;
  flex: 1;
}

.cart-item h3 {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-item p {
  margin-top: 2px;
  color: var(--brand);
  font-size: 11px;
}

.quantity {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.quantity button {
  min-width: 30px;
  min-height: 30px;
  padding: 4px 7px;
}

.quantity span {
  min-width: 28px;
  padding: 0 5px;
  font-size: 11px;
  text-align: center;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0;
}

.cart-total strong {
  color: var(--brand);
  font-size: 19px;
}

.cart-notice {
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 8px;
  background: #f2f7f3;
  color: #6e8074;
  font-size: 11px;
}

.payment-box {
  margin: 15px 0;
  padding: 15px;
  border: 1px solid #dfeae3;
  border-radius: 9px;
  background: #f2f8f4;
}

.payment-box h3 {
  font-size: 14px;
}

.payment-box strong {
  display: block;
  margin: 7px 0;
  overflow-wrap: anywhere;
  font: 700 21px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .03em;
}

.payment-box p {
  color: #708176;
  font-size: 11px;
}

.payment-amount {
  margin-bottom: 13px;
  color: var(--brand);
  font-size: 24px;
  font-weight: 730;
}

.delivery-text {
  overflow-wrap: anywhere;
  padding: 15px;
  border: 1px solid #dfe8e2;
  border-radius: 9px;
  background: #f4f8f5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  white-space: pre-wrap;
}

.help-faq details {
  padding: 15px 0;
  border-bottom: 1px solid #e6ede8;
}

.help-faq summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
}

.help-faq details p {
  margin-top: 11px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.8;
}

.ticket {
  margin-top: 11px;
  padding: 16px;
  border: 1px solid #e3ebe6;
  border-radius: 9px;
  background: #f8faf9;
}

.ticket p {
  margin-top: 7px;
  color: var(--text-soft);
  font-size: 12px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.ticket .reply {
  margin-top: 13px;
  padding: 11px;
  border-radius: 7px;
  background: #e9f4ed;
  color: #557a68;
}

/* Reusable spacing and admin layout utilities */
.form-submit {
  margin-top: 18px;
}

.form-intro {
  margin: 8px 0 20px;
}

.empty-note {
  margin-top: 14px;
}

.form-section {
  margin-top: 20px;
}

/* Feedback and footer */
#toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  pointer-events: none;
}

.toast {
  max-width: min(360px, calc(100vw - 32px));
  margin-top: 8px;
  padding: 11px 14px;
  border: 1px solid var(--brand-line);
  border-radius: 9px;
  background: #f3f8f5;
  color: var(--text);
  box-shadow: none;
  font-size: 12px;
}

.toast.error {
  background: #a34435;
}


.noscript-notice {
  margin: 0;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff8e7;
  color: #665424;
  font-size: 12px;
  text-align: center;
}

.loading-box {
  padding: 52px 18px;
  color: var(--text-muted);
  text-align: center;
}

.skeleton {
  min-height: 190px;
  border-radius: 10px;
  background: #e7eeea;
}

/* Footer */
.footer {
  width: 100%;
  margin-top: 30px;
  padding: 34px var(--content-pad) 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-soft);
}

.footer-top,
.footer-main,
.footer-bottom {
  width: min(100%, 1360px);
  margin-inline: auto;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid #edf1ef;
}

.footer-identity {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-identity img {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  object-fit: contain;
}

.footer-identity div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.footer-identity strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.footer-identity span {
  color: var(--text-muted);
  font-size: 11px;
}

.footer-intro {
  max-width: 520px;
  color: var(--text-muted);
  font-size: 11.5px;
  line-height: 1.65;
  text-align: right;
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr)) minmax(230px, 1.35fr);
  gap: 28px 48px;
  padding: 30px 0 34px;
}

.footer-column,
.footer-social-column {
  min-width: 0;
}

.footer-column-title,
.footer-column-toggle {
  margin: 0 0 13px;
  color: var(--text);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.footer-column-toggle {
  display: none;
}

.footer-column-content {
  display: grid;
  justify-items: start;
  gap: 9px;
}

.footer-column-content a {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.45;
  transition: color 140ms ease;
}

.footer-column-content a:hover {
  color: var(--brand);
}

.footer-social-column {
  justify-self: end;
  width: min(100%, 330px);
}

.footer-social-column > p {
  margin: -3px 0 14px;
  color: var(--text-muted);
  font-size: 10.5px;
  line-height: 1.55;
}

.footer-social {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-social-link {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-soft);
  line-height: 1;
  transition: opacity 120ms var(--ease-ui), color 120ms var(--ease-ui);
}

.footer-social-link:hover {
  background: transparent;
  color: var(--brand);
  opacity: .72;
}

.footer-social-link img,
.footer-social-link svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: block;
  object-fit: contain;
}

.footer-social-empty {
  padding: 9px 11px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 10px;
}

.footer-bottom {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 0 16px;
  border-top: 1px solid #edf1ef;
}

.footer-copyright {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.45;
  text-align: center;
}

.footer-copyright img {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  object-fit: contain;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .footer-main {
    
    gap: 28px 36px;
  }

  .footer-social-column {
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .footer {
    margin-top: 24px;
    padding: 24px 16px 0;
  }

  .footer-top {
    align-items: flex-start;
    gap: 18px;
    padding-bottom: 22px;
  }

  .footer-identity img {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .footer-identity strong {
    font-size: 15px;
  }

  .footer-identity span {
    font-size: 10px;
  }

  .footer-intro {
    max-width: 44%;
    font-size: 10px;
    line-height: 1.55;
  }

  .footer-main {
    display: block;
    padding: 12px 0 24px;
  }

  .footer-column {
    border-bottom: 1px solid #edf1ef;
  }

  .footer-column-title {
    display: none;
  }

  .footer-column-toggle {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 0;
    text-align: left;
  }

  .footer-column-toggle svg {
    width: 15px;
    height: 15px;
    color: var(--text-muted);
    transition: transform 140ms ease;
  }

  .footer-column.is-open .footer-column-toggle svg {
    transform: rotate(180deg);
  }

  .footer-column-content {
    display: none;
    gap: 0;
    padding: 0 0 13px;
  }

  .footer-column.is-open .footer-column-content {
    display: grid;
  }

  .footer-column-content a {
    width: 100%;
    padding: 7px 0;
  }

  .footer-social-column {
    width: 100%;
    margin-top: 21px;
  }

  .footer-social-column .footer-column-title {
    display: block;
    margin-bottom: 9px;
  }

  .footer-social-column > p {
    margin-bottom: 12px;
  }

  .footer-bottom {
    padding: 16px 0 18px;
  }
}

@media (max-width: 430px) {
  .footer {
    padding-inline: 13px;
  }

  .footer-top {
    display: block;
  }

  .footer-intro {
    max-width: none;
    margin-top: 14px;
    text-align: left;
  }

  .footer-social {
    gap: 6px;
  }

  .footer-social-link {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
    padding: 0;
  }

  .footer-copyright {
    width: 100%;
  }

  .footer-copyright img {
    width: 19px;
    height: 19px;
    flex-basis: 19px;
  }

}

@media (max-width: 330px) {
  .footer-copyright,
  .footer-column-content a,
  .footer-social-link {
    font-size: 9.5px;
  }
}


/* Production marketplace + admin control center */
.store-status-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  padding: 13px 15px;
  border: 1px solid var(--brand-line);
  border-radius: 10px;
  background: var(--brand-soft-2);
  color: var(--text-soft);
}

.store-status-banner > svg {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: var(--brand-strong);
}

.store-status-banner div {
  display: grid;
  gap: 2px;
}

.store-status-banner strong {
  color: var(--text);
  font-size: 12px;
}

.store-status-banner span {
  font-size: 11px;
}

.stock.low-stock,
.warning-text {
  color: var(--warning);
}

@media (min-width: 1500px) {
  .product-visual {
    height: 116px;
  }
}

@media (max-width: 1240px) {
  :root {
    --sidebar-w: 214px;
    --content-pad: 26px;
  }
  .sidebar {
    padding-inline: 15px;
  }
  .date-label {
    display: none;
  }
}

@media (max-width: 980px) {
  :root {
    --content-pad: 20px;
  }
  .breadcrumbs {
    display: none;
  }
  .top-actions {
    width: 100%;
  }
  .global-search {
    width: min(300px, 45vw);
    margin-right: auto;
  }
  .panel-columns, .guide-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  :root {
    --content-pad: 16px;
    --topbar-h: 64px;
  }
  .sidebar {
    
    transform: translateX(-102%);
    box-shadow: none;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .mobile-overlay.open {
    position: fixed;
    inset: 0;
    z-index: 29;
    display: block;
    background: rgb(25 31 28 / 24%);
  }
  .shell {
    margin-left: 0;
  }
  .topbar {
    gap: 7px;
    padding-inline: var(--content-pad);
  }
  .mobile-toggle {
    display: inline-grid;
  }
  .top-actions {
    gap: 6px;
  }
  .global-search {
    width: auto;
    min-width: 0;
    flex: 1 1 180px;
    margin-right: 0;
  }
  .main {
    padding-top: 22px;
  }
  .intro {
    margin-bottom: 16px;
  }
  .intro h1 {
    font-size: 26px;
  }
  .product-grid {
    
    gap: 11px;
  }
  .product-visual {
    height: 108px;
  }
  .platform-tabs {
    margin-inline: calc(var(--content-pad) * -1);
  }
}

@media (max-width: 560px) {
  :root {
    
    --topbar-h: 60px;
  }
  body {
    font-size: 13px;
  }
  .topbar {
    gap: 4px;
    
  }
  .icon-button {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }
  .mobile-toggle {
    width: 34px;
  }
  .global-search {
    min-height: 36px;
    padding: 6px 8px;
    border-color: #e6ebe8;
    border-radius: 8px;
    background: #f7f9f8;
  }
  .global-search svg {
    width: 15px;
    height: 15px;
  }
  .global-search input {
    font-size: 11px;
  }
  .top-actions > .btn {
    min-height: 34px;
    padding: 7px 9px;
    border-radius: 8px;
    font-size: 10.5px;
  }
  .top-actions > .btn svg {
    display: none;
  }
  .main {
    padding-top: 18px;
  }
  .intro {
    margin-bottom: 14px;
  }
  .intro h1 {
    font-size: 23px;
  }
  .intro p {
    max-width: 330px;
    font-size: 11px;
  }
  .hero {
    margin-bottom: 15px;
    border-radius: 12px;
  }
  .hero-copy {
    padding: 19px 18px;
  }
  .hero h2 {
    margin: 7px 0;
    font-size: 25px;
  }
  .hero p {
    font-size: 11px;
    line-height: 1.55;
  }
  .hero .text-button {
    margin-top: 5px;
    font-size: 11px;
  }
  .section-heading {
    margin-bottom: 10px;
  }
  .section-heading h2 {
    font-size: 15.5px;
  }
  .section-heading p {
    font-size: 10px;
  }
  .platform-tabs {
    gap: 6px;
    margin-bottom: 12px;
  }
  .platform-tab {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 10px;
  }
  .platform-tab .platform-count {
    display: none;
  }
  .brand-icon.small-icon {
    width: 16px;
    height: 16px;
  }
  .brand-icon.small-icon img {
    width: 15px;
    height: 15px;
  }
  .platform-tab .brand-icon.small-icon {
    width: 20px;
    height: 20px;
    padding: 2px;
  }
  .platform-tab .brand-icon.small-icon img {
    width: 14px;
    height: 14px;
  }
  .catalog-bar {
    align-items: flex-start;
    flex-direction: column;
    
    margin-bottom: 10px;
  }
  .catalog-bar h3 {
    width: 100%;
    font-size: 12px;
  }
  .catalog-bar h3 span {
    font-size: 9px;
  }
  .catalog-controls {
    width: 100%;
    display: grid;
    
    align-items: center;
    gap: 7px;
  }
  .catalog-controls select, .filter-button {
    min-height: 34px;
    font-size: 10px;
  }
  .catalog-controls select {
    width: 100%;
    min-width: 0;
    max-width: none;
    padding-right: 28px;
  }
  .filter-button {
    width: auto;
    
    justify-content: center;
    padding-inline: 9px;
    white-space: nowrap;
  }
  
  .product-card {
    border-radius: 10px;
  }
  .product-visual {
    height: 96px;
  }
  .product-visual .brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  .product-visual .brand-icon img {
    width: 30px;
    height: 30px;
  }
  .favorite-button {
    top: 7px;
    right: 7px;
    width: 26px;
    height: 26px;
  }
  .product-status-card {
    top: 7px;
    left: 7px;
    max-width: calc(100% - 46px);
    padding: 4px 6px;
    font-size: 8px;
  }
  .product-info {
    padding: 10px 10px 11px;
  }
  .product-meta {
    margin-bottom: 4px;
  }
  .product-title {
    min-height: 31px;
    margin-bottom: 5px;
    font-size: 11px;
    line-height: 1.36;
  }
  .product-meta, .product-spec {
    font-size: 8.5px;
  }
  .product-spec {
    gap: 4px 7px;
    margin-bottom: 8px;
  }
  .product-footer {
    margin-top: auto;
    gap: 8px;
    padding: 8px 9px;
  }
  .price-label {
    display: none;
  }
  .price-value {
    font-size: 15px;
  }
  .stock {
    font-size: 8px;
  }
  .add-button {
    width: 30px;
    height: 30px;
  }
  .surface {
    padding: 15px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full, .field.full {
    grid-column: auto;
  }
  .field input, .field select, .field textarea {
    font-size: 16px;
  }
  .row {
    align-items: flex-start;
  }
  .stats {
    gap: 9px;
  }
  .stat {
    padding: 13px;
  }
  .stat h2 {
    font-size: 19px;
  }
  dialog {
    
    
    border-radius: 12px;
  }
  .modal-head {
    padding: 11px 12px 9px;
  }
  .modal-head h2 {
    font-size: 15px;
  }
  .modal-body {
    padding: 13px;
  }
  .filter-modal .modal-body {
    padding: 11px 12px 12px;
  }
  .filter-modal-form {
    gap: 11px;
  }
  .filter-modal-intro {
    gap: 9px;
    padding: 9px 10px;
  }
  .filter-modal-icon {
    width: 28px;
    height: 28px;
  }
  .filter-modal-intro strong {
    font-size: 10.5px;
  }
  .filter-modal-intro p {
    font-size: 9px;
  }
  .filter-modal-fields {
    gap: 9px;
  }
  .filter-modal-fields .field select, .filter-modal-fields .field input, .price-input-wrap {
    min-height: 38px;
  }
  .filter-stock-option {
    padding: 10px;
  }
  .filter-modal-actions {
    grid-template-columns: .7fr 1.3fr;
    gap: 7px;
  }
  .filter-modal-actions .btn {
    min-height: 37px;
    padding-inline: 9px;
  }
  .product-detail-modal .modal-body {
    padding: 12px 13px 13px;
  }
  .product-detail-visual {
    height: 76px;
    margin-bottom: 9px;
  }
  .product-detail-visual .brand-icon {
    width: 44px;
    height: 44px;
  }
  .product-detail-visual .brand-icon img {
    width: 36px;
    height: 36px;
  }
  .product-detail-modal .product-description {
    font-size: 10.5px;
    line-height: 1.55;
  }
  .detail-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin: 10px 0;
    padding: 10px;
  }
  .detail-specs span {
    font-size: 8.5px;
  }
  .detail-specs strong {
    font-size: 10px;
  }
  .detail-price {
    font-size: 19px;
  }
  .detail-stock {
    font-size: 9px;
  }
  .product-detail-modal .btn.full {
    min-height: 38px;
    font-size: 11px;
  }
  .product-detail-modal .fineprint {
    font-size: 9px;
  }
  #toasts {
    right: 12px;
    bottom: 12px;
  }
}

@media (max-width: 390px) {
  
  .topbar {
    padding-inline: 6px;
  }
  .mobile-toggle {
    width: 32px;
    height: 32px;
  }
  .global-search {
    min-height: 34px;
  }
  .top-actions {
    gap: 4px;
  }
  .top-actions > .btn {
    min-height: 32px;
    padding-inline: 8px;
  }
  .intro h1 {
    font-size: 22px;
  }
  .hero-copy {
    padding: 17px 16px;
  }
  .hero h2 {
    font-size: 23px;
  }
  
  .product-visual {
    height: 90px;
  }
  .product-info {
    padding: 9px 9px 10px;
  }
  .product-title {
    font-size: 10.5px;
  }
  .product-meta, .product-spec {
    font-size: 8px;
  }
  .price-value {
    font-size: 14px;
  }
  .add-button {
    width: 28px;
    height: 28px;
  }
  .detail-price-row {
    gap: 8px;
  }
}

@media (max-width: 340px) {
  .global-search input::placeholder {
    color: transparent;
  }
  .catalog-controls {
    gap: 6px;
  }
  .catalog-controls select, .filter-button {
    min-height: 33px;
    font-size: 9.5px;
  }
  .filter-button {
    min-width: 64px;
    padding-inline: 8px;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .product-visual {
    height: 112px;
  }
  .product-info {
    padding: 11px;
  }
  .product-title {
    min-height: 0;
    font-size: 12px;
  }
  .product-meta, .product-spec {
    font-size: 9px;
  }
  .price-value {
    font-size: 15px;
  }
  .detail-specs {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Wallet, server quote, and automatic inventory flow */
.wallet-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-sm);
  background: var(--brand-soft-2);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.wallet-pill svg {
  width: 16px;
  height: 16px;
}

.checkout-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.payment-choice {
  position: relative;
  display: block;
  cursor: pointer;
}

.payment-choice > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-choice > span {
  display: grid;
  grid-template-columns: 22px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 8px;
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.payment-choice > span > svg {
  grid-row: 1 / 3;
  color: var(--brand);
}

.payment-choice strong {
  font-size: 13px;
}

.payment-choice small {
  color: var(--text-soft);
  font-size: 11px;
}

.payment-choice > input:checked + span {
  border-color: var(--brand-muted);
  background: var(--brand-soft-2);
  outline: 2px solid var(--brand-soft);
}

.payment-choice > input:disabled + span {
  cursor: not-allowed;
  opacity: .52;
  background: var(--surface-soft);
}

.wallet-grid {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.4fr);
  gap: 16px;
  margin-bottom: 16px;
}

.wallet-balance-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: var(--brand-soft-2);
  border-color: var(--brand-line);
}

.wallet-balance-card > strong {
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1;
  letter-spacing: -.035em;
}

.wallet-balance-card > p {
  max-width: 440px;
  color: var(--text-soft);
}

.wallet-row,
.ledger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.wallet-row:first-of-type,
.ledger-row:first-of-type {
  margin-top: 8px;
}

.wallet-row > div:first-child,
.ledger-row > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.wallet-row span,
.ledger-row span {
  color: var(--text-soft);
  font-size: 11px;
}

.wallet-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.wallet-ledger {
  margin-top: 0;
}

.ledger-row .credit {
  color: var(--brand-strong);
}

.ledger-row .debit {
  color: var(--danger);
}

@media (max-width: 900px) {
  .wallet-pill span {
    display: none;
  }
  .wallet-pill {
    width: 38px;
    justify-content: center;
    padding: 0;
  }
  .wallet-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .checkout-methods {
    grid-template-columns: 1fr;
  }
  .wallet-row,
  .ledger-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .wallet-row-actions {
    width: 100%;
    justify-content: space-between;
  }
}

/* Dynamic payment methods */
.payment-box-rich { display: grid; gap: 9px; }
.payment-box-heading { display: flex; align-items: center; gap: 10px; }
.payment-box-heading > svg { width: 20px; height: 20px; color: var(--brand); }
.payment-box-heading span { display: block; color: var(--text-soft); font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; }
.payment-box-heading h3 { margin-top: 2px; }
.payment-box-rich > strong { margin: 1px 0; }
.payment-box-rich > small { color: var(--text-soft); font-size: 10.5px; line-height: 1.55; }
.payment-qr-wrap { width: min(280px, 100%); margin: 4px auto 3px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.payment-qr { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 8px; }
.payment-method-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.wallet-row small.muted { display: block; color: var(--text-muted); font-size: 10px; }


/* Layout resilience, refined auth branding, and social footer */
:root {
  --content-max: 1480px;
  --motion-fast: 120ms;
  --motion-base: 170ms;
  --ease-ui: cubic-bezier(.2,.7,.2,1);
}

body {
  min-height: 100dvh;
}

.shell,
.main,
.topbar,
.footer,
.surface,
.product-card,
dialog {
  min-width: 0;
}

.main {
  max-width: var(--content-max);
  padding-bottom: clamp(24px, 4vw, 54px);
}

.nav-item,
.icon-button,
.btn,
.text-button,
.platform-tab,
.filter-button,
.product-card,
.favorite-button,
.add-button,
.global-search,
.footer-social-link,
.footer-column-content a,
.sidebar-profile,
.sidebar-account-menu button {
  transition-duration: var(--motion-fast);
  transition-timing-function: var(--ease-ui);
}


.product-card,
.surface,
.hero,
.stat,
.order-card,
.ticket-card {
  border-color: #dfe7e2;
}

.product-card {
  overflow: clip;
  contain: layout paint;
}

.product-info,
.product-title,
.product-meta,
.product-spec,
.catalog-bar,
.catalog-controls,
.top-actions,
.footer-column,
.footer-social-column {
  min-width: 0;
}

.product-title,
.product-description,
.footer-intro,
.footer-column-content a,
.row strong,
.row span {
  overflow-wrap: anywhere;
}

.product-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 296px));
  justify-content: start;
  align-items: stretch;
}

.product-card {
  height: auto;
}

.product-info {
  display: flex;
  flex-direction: column;
}


.global-search,
.catalog-controls select,
.filter-button,
.field input,
.field select,
.field textarea {
  transition: border-color var(--motion-fast) var(--ease-ui), background-color var(--motion-fast) var(--ease-ui), color var(--motion-fast) var(--ease-ui), outline-color var(--motion-fast) var(--ease-ui);
}

.platform-tabs {
  scroll-snap-type: x proximity;
}

.platform-tab {
  scroll-snap-align: start;
}

dialog {
  width: min(680px, calc(100vw - 28px));
  max-width: calc(100vw - 28px);
  max-height: min(88dvh, 900px);
  overflow: hidden;
  overscroll-behavior: contain;
}

dialog[open] {
  animation: marketloot-dialog-in 110ms ease-out both;
}

@keyframes marketloot-dialog-in {
  from { opacity: .94; }
  to { opacity: 1; }
}


.table-wrap,
.order-table-wrap {
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

@media (hover: hover) and (pointer: fine) {
  .product-card:hover { border-color: #cfddd6; }
}

@media (max-width: 1240px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 286px));
  }
}

@media (max-width: 980px) {
  .topbar {
    gap: 10px;
  }

  .top-actions {
    min-width: 0;
  }

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

@media (max-width: 780px) {
  .sidebar {
    width: min(304px, 86vw);
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    transition: transform var(--motion-base) var(--ease-ui);
  }

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

  .main {
    padding-bottom: 32px;
  }
}

@media (max-width: 560px) {
  :root {
    --content-pad: 14px;
  }

  .topbar {
    padding-inline: 10px;
  }

  .global-search {
    flex: 1 1 140px;
  }

  .global-search input {
    min-width: 0;
  }

  .catalog-bar {
    gap: 10px;
  }

  .catalog-controls {
    grid-template-columns: minmax(92px, auto) minmax(0, 1fr);
  }

  .filter-button {
    min-width: 92px;
  }

  .product-grid {
    gap: 10px;
  }

  .footer {
    padding-inline: 14px;
  }


  dialog {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    max-height: 92dvh;
  }
}

@media (max-width: 390px) {
  :root {
    --content-pad: 11px;
  }

  .top-actions > .btn {
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .product-grid {
    gap: 8px;
  }

}

@media (max-width: 330px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .catalog-controls {
    grid-template-columns: 1fr;
  }

  .filter-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  dialog[open],
  .main > .hero,
  .main > .surface,
  .main > .panel-columns,
  .main > .stats,
  .main > .wallet-grid,
  .main > .product-grid,
  .mobile-overlay.open {
    animation: none !important;
  }
}

/* Select controls, direct purchase, and price-range filter */
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235f6d66' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 15px 15px;
  padding-right: 38px;
}

.field select,
.catalog-controls select {
  padding-right: 38px;
}

select::-ms-expand {
  display: none;
}

select:disabled {
  background-color: #f4f6f5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2398a39d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
}

.catalog-controls select {
  background-position: right 10px center;
}

.detail-purchase-actions {
  display: grid;
  gap: 8px;
}

.buy-now-button {
  border-color: var(--brand-line);
  background: var(--brand-soft-2);
  color: var(--brand-strong);
}

.buy-now-button:hover {
  border-color: #bdd8cc;
  background: var(--brand-soft);
}

.buy-now-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
}

.buy-now-summary > .brand-icon {
  width: 38px;
  height: 38px;
}

.buy-now-summary > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.buy-now-summary > div > span,
.buy-now-summary > div > small {
  color: var(--text-muted);
  font-size: 9px;
}

.buy-now-summary > div > strong {
  overflow: hidden;
  color: var(--text);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.buy-now-total {
  color: var(--brand-strong);
  font-size: 13px;
  white-space: nowrap;
}

.checkout-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 9px;
}

.checkout-section-head > div {
  display: grid;
  gap: 2px;
}

.checkout-section-head strong {
  font-size: 11px;
}

.checkout-section-head span {
  color: var(--text-muted);
  font-size: 9px;
}

.checkout-section-head > svg {
  width: 16px;
  height: 16px;
  color: var(--brand);
}

.buy-now-methods {
  margin-bottom: 11px;
}

.checkout-login-note,
.checkout-empty-payment {
  margin: 0 0 11px;
  padding: 9px 10px;
  border: 1px solid var(--brand-line);
  border-radius: 9px;
  background: var(--brand-soft-2);
  color: var(--text-soft);
  font-size: 9.5px;
  line-height: 1.5;
}

.checkout-login-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.checkout-login-note svg {
  width: 14px;
  height: 14px;
  margin-top: 1px;
  color: var(--brand);
}

.price-range-card {
  padding: 10px 11px 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.price-range-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.price-range-head > span {
  color: var(--text-soft);
  font-size: 9.5px;
  font-weight: 620;
}

.price-range-head > strong {
  color: var(--brand-strong);
  font-size: 10px;
  white-space: nowrap;
}

.price-range-control {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 8px;
}

.price-range-step {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text-soft);
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.price-range-step:hover,
.price-range-step:focus-visible {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  background: color-mix(in srgb, var(--brand) 5%, #fff);
  color: var(--brand-strong);
  outline: none;
}

.price-range-track {
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.price-range-track:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brand) 22%, transparent);
  outline-offset: 3px;
  border-radius: 999px;
}

.price-range-input {
  --range-progress: 100%;
  position: relative;
  z-index: 2;
  width: 100%;
  height: 4px;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 999px;
  outline: 0;
  background: linear-gradient(to right, var(--brand) 0 var(--range-progress), #dce4df var(--range-progress) 100%);
  cursor: inherit;
  pointer-events: none;
}

.price-range-input::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  appearance: none;
  -webkit-appearance: none;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}

.price-range-input::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}


.price-range-scale {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.price-range-scale > span {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.price-range-scale > span:nth-child(2) {
  text-align: center;
}

.price-range-scale > span:last-child {
  text-align: right;
}

.price-range-scale small {
  color: var(--text-muted);
  font-size: 8px;
}

.price-range-scale strong {
  overflow: hidden;
  color: var(--text-soft);
  font-size: 8.5px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-modal {
  width: 440px;
}

@media (max-width: 520px) {
  .buy-now-summary {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .buy-now-total {
    grid-column: 1 / -1;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    text-align: right;
  }

  .price-range-scale strong {
    font-size: 8px;
  }
}


/* Rupiah input formatting */
.price-input-wrap {
  grid-template-columns: minmax(0, 1fr);
}

.price-input-wrap input,
.field input[data-rupiah] {
  font-variant-numeric: tabular-nums;
}

.price-input-wrap input {
  padding-inline: 11px;
}


/* Open-ended manual price scrubber */
.price-range-card {
  overflow: hidden;
}

@media (max-width: 420px) {
  .price-range-control {
    grid-template-columns: 26px minmax(0, 1fr) 26px;
    gap: 6px;
  }

  .price-range-step {
    width: 26px;
    height: 26px;
    border-radius: 7px;
  }
}
