@font-face {
  font-family: Exo;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/exo-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Exo;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/exo-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  color-scheme: dark;
  --bg: #0c1014;
  --panel: #151b20;
  --card: #1b2329;
  --text: #f3f5f6;
  --muted: #aab5bd;
  --subtle: #8c99a3;
  --accent: #f9b104;
  --button-hover-bg: var(--accent);
  --button-hover-border: #805700;
  --button-hover-text: var(--on-accent);
  --button-soft-bg: rgba(249, 177, 4, 0.075);
  --button-soft-border: rgba(249, 177, 4, 0.24);
  --border: rgba(var(--surface-rgb), 0.08);
  --green: #6ed7a3;
  --radius: 24px;
  --font: Exo, system-ui, -apple-system, sans-serif;
  --surface-rgb: 255, 255, 255;
  --accent-ink: #f9b104;
  --drop-bg: rgba(25, 29, 20, 0.96);
  --summary-bg: rgba(0, 0, 0, 0.08);
  --text-secondary: #d0d5d9;
  --text-soft: #d5dce0;
  --footer-heading: #d1d7dc;
  --eyebrow-accent: #b18b39;
  --product-label: #9cabb5;
  --favorite-idle: #7a8994;
  --empty-icon: #967935;
  --summary-label: #ced5da;
  --footer-text: #62707b;
  --footer-dot: #aa8131;
  --toast-bg: #273029;
  --toast-text: #e2ebdf;
  --drag-bg: #253038;
  --dialog-bg: #182127;
  --keyboard-bg: #26323b;
  --disabled-bg: #2b2d29;
  --disabled-text: #858579;
  --scroll-thumb: #374048;
  --input-bg: #10161b;
  --stepper-bg: #11181d;
  --option-bg: #11181e;
  --card-high: #1d262d;
  --card-low: #192127;
  --order-highlight: rgba(249, 177, 4, 0.16);
  --on-accent: #151b1f;
}
/* White and graphite surfaces retain GAUS amber for filled actions. */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f1f3f5;
  --panel: #ffffff;
  --card: #f6f7f8;
  --text: #151b1f;
  --muted: #58646e;
  --subtle: #616e78;
  --surface-rgb: 21, 27, 31;
  --accent-ink: #805700;
  --border: rgba(var(--surface-rgb), 0.11);
  --green: #178654;
  --drop-bg: rgba(255, 249, 226, 0.98);
  --summary-bg: #fbfcfd;
  --text-secondary: #3f4b54;
  --text-soft: #43515c;
  --footer-heading: #43515c;
  --eyebrow-accent: #896207;
  --product-label: #606d77;
  --favorite-idle: #64747f;
  --empty-icon: #aa7800;
  --summary-label: #43515c;
  --footer-text: #5c6872;
  --footer-dot: #8c640b;
  --toast-bg: #f1f8ec;
  --toast-text: #2c4a2d;
  --drag-bg: #ffffff;
  --dialog-bg: #ffffff;
  --keyboard-bg: #edf1f4;
  --disabled-bg: #e6e9eb;
  --disabled-text: #727970;
  --scroll-thumb: #b8c3cb;
  --input-bg: #f6f7f8;
  --stepper-bg: #f1f4f6;
  --option-bg: #f4f6f7;
  --card-high: #ffffff;
  --card-low: #f7f8fa;
  --order-highlight: rgba(249, 177, 4, 0.18);
  --on-accent: #151b1f;
}
.brand-logo-light {
  display: none;
}
:root[data-theme="light"] .brand-logo-dark {
  display: none;
}
:root[data-theme="light"] .brand-logo-light {
  display: block;
}
:root[data-theme="light"] .panel {
  box-shadow: 0 6px 22px rgba(21, 27, 31, 0.025);
}
:root[data-theme="light"] .product-card.is-unavailable {
  opacity: 1;
}
:root[data-theme="light"] .product-card.is-unavailable .product-image {
  opacity: 0.5;
}
.theme-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 48px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(var(--surface-rgb), 0.025);
  color: var(--muted);
  font-size: 12px;
}
.theme-button[aria-checked="true"] {
  color: var(--accent-ink);
  border-color: rgba(249, 177, 4, 0.3);
  background: rgba(249, 177, 4, 0.07);
}
.theme-button .icon {
  width: 20px;
  height: 20px;
}
@media (max-width: 760px) {
  .theme-button {
    padding: 0 12px;
  }
  .theme-button > span {
    display: none;
  }
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-width: 320px;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
body,
dialog {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
body {
  background:
    radial-gradient(
      ellipse at 85% 0%,
      rgba(249, 177, 4, 0.045),
      transparent 42%
    ),
    var(--bg);
}
/* Keep native text editing and the copy/paste menu in form fields. */
input,
textarea,
[contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}
button,
input {
  font: inherit;
}
button {
  color: inherit;
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button:disabled {
  cursor: default;
}
button,
input,
a {
  outline-offset: 4px;
}
button:focus-visible,
input:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s,
    transform 0.15s;
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
[hidden] {
  display: none !important;
}
.icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
  stroke: none;
  flex-shrink: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -80px;
  padding: 16px;
  background: var(--accent);
  color: var(--bg);
  z-index: 100;
}
.skip-link:focus {
  top: 12px;
}
.app-shell {
  height: 100dvh;
  max-width: 2200px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  flex-direction: column;
}
.app-header {
  height: 94px;
  min-height: 94px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-shrink: 0;
  min-height: 48px;
}
.brand img {
  width: 148px;
  height: 51px;
  object-fit: contain;
}
.brand-description {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 1px solid var(--border);
  padding-left: 25px;
}
.brand-description strong {
  font-size: 11px;
  letter-spacing: 2.8px;
  font-weight: 500;
  color: var(--text-secondary);
}
.brand-description > span {
  font-size: 12px;
  color: var(--muted);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.icon-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 48px;
  min-height: 48px;
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 12px;
}
.icon-button:disabled {
  opacity: 0.3;
}
.icon-button.modal-close {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 16px;
}
.fullscreen-button,
.help-button {
  background: rgba(var(--surface-rgb), 0.025);
  border: 1px solid var(--border);
}
.help-button {
  height: 48px;
  padding: 0 16px;
  display: flex;
  gap: 10px;
  align-items: center;
  border-radius: 12px;
  font-size: 12px;
  color: var(--text-soft);
}
.workspace {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr) 340px;
  gap: 20px;
  flex: 1;
  min-height: 0;
}
.panel {
  background:
    linear-gradient(145deg, rgba(var(--surface-rgb), 0.008), transparent 60%),
    var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.section-eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--subtle);
}
.category-panel {
  display: flex;
  flex-direction: column;
  padding: 0 12px 20px;
  min-height: 0;
  overflow: hidden;
}
.category-header,
.order-header {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 75px;
  padding: 26px 22px 22px;
  border-bottom: 1px solid var(--border);
}
.category-header {
  gap: 10px;
  margin: 0 -12px 12px;
}
.category-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 6px;
  scroll-padding: 6px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) transparent;
}
.category-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 72px;
  padding: 12px 10px;
  border-radius: 15px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  border: 1px solid transparent;
  flex-shrink: 0;
}
.category-button:hover {
  background: rgba(var(--surface-rgb), 0.025);
  color: var(--text);
}
.category-button.is-active {
  background: linear-gradient(
    115deg,
    rgba(249, 177, 4, 0.14),
    rgba(249, 177, 4, 0.045)
  );
  border-color: rgba(249, 177, 4, 0.18);
  color: var(--accent-ink);
}
.category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  flex-shrink: 0;
}
.category-icon .icon {
  width: 24px;
  height: 24px;
}
.category-name {
  font-size: 12px;
  line-height: 1.55;
  font-weight: 500;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.category-footer {
  padding: 32px 13px 0;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.category-footer-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 13px;
  color: var(--subtle);
}
.category-footer strong {
  font-size: 12px;
  line-height: 1.8;
  font-weight: 500;
  color: var(--footer-heading);
}
.category-footer > span:not(.category-footer-icon):not(.brand-accent-line) {
  font-size: 10px;
  line-height: 1.8;
  color: var(--subtle);
}
.brand-accent-line {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.catalog-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
.catalog-header {
  padding: 27px 28px 23px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.catalog-heading .section-eyebrow {
  color: var(--eyebrow-accent);
  margin-bottom: 10px;
}
h1 {
  font-weight: 600;
  font-size: 30px;
  letter-spacing: -1.3px;
  line-height: 1.3;
  margin: 0 0 7px;
}
.title-dot {
  color: var(--accent-ink);
}
.catalog-heading p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.catalog-preview-return {
  flex-shrink: 0;
  color: var(--muted);
}
.catalog-preview .results-row {
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.photos-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-left: auto;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
}
.photos-button.is-active {
  border-color: var(--accent-ink);
  background: rgba(249, 177, 4, 0.075);
  color: var(--accent-ink);
}
.touch-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--subtle);
  font-size: 10px;
  line-height: 1.8;
}
.touch-hint > .icon {
  background: rgba(249, 177, 4, 0.055);
  color: var(--accent-ink);
  width: 36px;
  height: 36px;
  padding: 9px;
  border: 1px solid rgba(249, 177, 4, 0.1);
  border-radius: 11px;
}
.catalog-controls {
  padding: 0 28px;
  display: flex;
  gap: 12px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  padding-left: 16px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  border-radius: 14px;
  height: 54px;
  color: var(--subtle);
}
.search-field > .icon {
  width: 20px;
  height: 20px;
}
.search-field:focus-within {
  border-color: rgba(249, 177, 4, 0.5);
}
.search-field input {
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
  color: var(--text);
  height: 50px;
  font-size: 12px;
}
.search-field input::placeholder {
  color: var(--subtle);
  opacity: 1;
}
.search-field input::-webkit-search-cancel-button {
  display: none;
}
.search-clear {
  min-width: 44px;
  min-height: 44px;
}
.keyboard-button {
  margin-right: 3px;
  border-left: 1px solid var(--border);
  border-radius: 0 11px 11px 0;
}
.control-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  height: 54px;
  min-width: 110px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(var(--surface-rgb), 0.025);
  font-size: 12px;
  font-weight: 500;
}
.filter-count {
  width: 20px;
  height: 20px;
  background: var(--accent);
  color: var(--on-accent);
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-size: 10px;
}
.catalog-toolbar {
  padding: 15px 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  min-height: 70px;
}
.quick-tabs {
  display: flex;
  align-items: stretch;
  gap: 21px;
  align-self: stretch;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 1px;
}
.quick-tabs::-webkit-scrollbar {
  display: none;
}
.quick-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  color: var(--subtle);
  font-size: 11px;
  padding: 0 0 14px;
  position: relative;
  white-space: nowrap;
  min-height: 50px;
  flex-shrink: 0;
}
.quick-tab.is-active {
  color: var(--accent-ink);
}
.quick-tab.is-active:after {
  content: "";
  position: absolute;
  height: 2px;
  bottom: -1px;
  left: 0;
  right: 0;
  background: var(--accent);
  border-radius: 2px;
}
.quick-tab .icon {
  width: 15px;
  height: 15px;
}
#favorite-count,
#recent-count {
  background: rgba(var(--surface-rgb), 0.06);
  min-width: 17px;
  padding: 2px 4px;
  border-radius: 4px;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}
.sort-button {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  background: transparent;
  white-space: nowrap;
  min-height: 48px;
  padding-bottom: 14px;
}
.sort-button .icon {
  width: 17px;
  height: 17px;
}
.sort-button .icon:last-child {
  width: 13px;
}
.catalog-scroll {
  padding: 0 28px;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  flex: 1;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) transparent;
  touch-action: pan-y pinch-zoom;
}
.results-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 50px;
  color: var(--subtle);
  font-size: 11px;
}
.text-button {
  background: transparent;
  color: var(--accent-ink);
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 11px;
  min-height: 44px;
  padding: 0 5px;
}
.text-button .icon {
  width: 14px;
  height: 14px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}
.product-card {
  background: var(--card-low);
  border: 1px solid rgba(var(--surface-rgb), 0.065);
  border-radius: 19px;
  min-width: 0;
  overflow: hidden;
  transition: border-color 0.15s;
}
.product-card:hover {
  border-color: rgba(var(--surface-rgb), 0.17);
}
.product-card:has(.product-image-button:is(.is-drag-source, :focus-visible)) {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.product-card.is-unavailable {
  opacity: 0.62;
}
.product-visual {
  position: relative;
  height: 153px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}
.product-standard {
  position: absolute;
  left: 14px;
  top: 13px;
  font-size: 9px;
  letter-spacing: 0.6px;
  border: 1px solid rgba(var(--surface-rgb), 0.08);
  border-radius: 6px;
  padding: 5px 7px;
  color: var(--product-label);
  z-index: 1;
  background: var(--card-high);
  pointer-events: none;
}
.favorite-button {
  position: absolute;
  right: 5px;
  top: 3px;
  min-width: 44px;
  min-height: 44px;
  z-index: 2;
  color: var(--favorite-idle);
}
.favorite-button .icon {
  width: 18px;
  height: 18px;
}
.favorite-button.is-favorite {
  color: var(--accent-ink);
}
.product-image-button {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  padding: 15px 45px 0;
  border-radius: 0;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-touch-callout: none;
}
.product-image-button[data-drag] {
  cursor: grab;
}
.product-image-button:focus-visible,
.product-image-button.is-drag-source {
  outline: none;
}
.product-image-button.is-drag-source {
  cursor: grabbing;
}
.product-image {
  width: 100%;
  height: 137px;
  object-fit: contain;
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.18));
  transition: transform 0.2s;
  pointer-events: none;
}
.product-image-button:hover .product-image {
  transform: scale(1.04);
}
.image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--subtle);
  pointer-events: none;
}
.image-placeholder .icon {
  width: 64px;
  height: 64px;
  opacity: 0.7;
}
.image-placeholder-caption {
  font-size: 11px;
  font-weight: 400;
}
.product-image.image-placeholder {
  filter: none;
}
.product-image-button:hover .image-placeholder {
  transform: none;
}
.order-item-image.image-placeholder .icon,
.review-item-image.image-placeholder .icon {
  width: 24px;
  height: 24px;
}
.order-item-image .image-placeholder-caption,
.review-item-image .image-placeholder-caption,
.drag-ghost .image-placeholder-caption {
  display: none;
}
.product-info {
  padding: 4px 16px 16px;
}
.product-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
  line-height: 1.45;
  margin: 0 0 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-spec {
  font-size: 10px;
  color: var(--muted);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin: 16px 0 13px;
}
.product-price {
  font-size: 21px;
  letter-spacing: -0.6px;
  font-weight: 600;
  white-space: nowrap;
}
.product-price span {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 4px;
}
.product-price.price-pending {
  font-size: 12px;
  letter-spacing: 0;
  white-space: normal;
}
.stock-label {
  font-size: 9px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  white-space: nowrap;
}
.stock-label:before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
}
.stock-label.no-stock:before {
  background: var(--subtle);
}
.add-button,
.order-item-remove,
.login-button,
.icon-button.modal-close,
.detail-purchase .quantity-stepper button {
  background: var(--button-soft-bg);
  border: 1px solid var(--button-soft-border);
  color: var(--accent-ink);
}
.add-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  width: 100%;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 600;
}
.add-button .icon {
  width: 16px;
  height: 16px;
}
.add-button:disabled {
  color: var(--subtle);
  border-color: var(--border);
  background: transparent;
  opacity: 0.7;
}
.catalog-end {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--subtle);
  font-size: 9px;
  line-height: 1.6;
  text-align: center;
  padding: 25px 5px;
}
.catalog-end .brand-accent-line {
  width: 14px;
  height: 2px;
}
.no-results {
  text-align: center;
  padding: 55px 15px;
  color: var(--muted);
}
.no-results > .icon {
  width: 40px;
  height: 40px;
  color: var(--subtle);
}
.no-results h2 {
  font-size: 22px;
  color: var(--text);
  margin: 20px 0 10px;
}
.no-results p {
  font-size: 13px;
  line-height: 1.7;
}
.order-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
  overflow: hidden;
}
.order-header {
  justify-content: space-between;
}
.order-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.category-heading-icon,
.order-icon {
  color: var(--accent-ink);
  display: flex;
}
.category-heading-icon .icon,
.order-icon .icon {
  width: 23px;
  height: 23px;
}
.category-header h2,
.order-header h2 {
  font-size: 16px;
  letter-spacing: -0.3px;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
}
.category-count,
.order-count {
  color: var(--accent-ink);
  font-size: 11px;
  background: rgba(249, 177, 4, 0.1);
  height: 26px;
  min-width: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  padding: 0 6px;
  flex-shrink: 0;
}
.order-count {
  margin-left: auto;
}
.order-close {
  display: none;
}
.order-items {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) transparent;
  overscroll-behavior: contain;
  padding: 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.empty-order {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
  padding: 25px 12px 50px;
}
.empty-order-visual {
  position: relative;
  border: 1px dashed rgba(249, 177, 4, 0.19);
  border-radius: 28px;
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(249, 177, 4, 0.045), transparent);
  color: var(--empty-icon);
  margin: 15px 0 24px;
  transform: rotate(-6deg);
}
.empty-order-visual > .icon {
  width: 42px;
  height: 42px;
  stroke-width: 1.2;
  transform: rotate(6deg);
}
.empty-order-visual > span {
  position: absolute;
  right: -9px;
  bottom: 8px;
  width: 29px;
  height: 29px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--on-accent);
  display: grid;
  place-items: center;
  transform: rotate(6deg);
  box-shadow: 0 0 0 5px var(--panel);
}
.empty-order-visual > span .icon {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}
.empty-order h3 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -0.2px;
  margin: 0 0 11px;
}
.empty-order p {
  color: var(--subtle);
  font-size: 11px;
  line-height: 1.9;
  max-width: 205px;
  margin: 0;
}
.order-item {
  background: rgba(var(--surface-rgb), 0.025);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.order-item-top {
  cursor: grab;
}
.order-item.is-drag-source {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  cursor: grabbing;
}
.order-item.is-added {
  animation: order-item-added 1.6s ease-out;
}
@keyframes order-item-added {
  0%,
  30% {
    background-color: var(--order-highlight);
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(249, 177, 4, 0.14);
  }
  100% {
    background-color: rgba(var(--surface-rgb), 0.025);
    border-color: var(--border);
    box-shadow: 0 0 0 0 transparent;
  }
}
.mobile-order-bar.is-added {
  animation: order-bar-added 1.6s ease-out;
}
@keyframes order-bar-added {
  0%,
  30% {
    box-shadow: 0 0 0 5px rgba(249, 177, 4, 0.35);
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}
.order-item-top {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: center;
}
.order-item-image {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: rgba(var(--surface-rgb), 0.02);
  border-radius: 10px;
}
.order-item-name {
  font-size: 11px;
  font-weight: 500;
  margin: 0 0 4px;
}
.order-item-spec {
  font-size: 9px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}
.order-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  gap: 6px;
}
.quantity-stepper {
  --stepper-radius: 10px;
  display: flex;
  align-items: center;
  border: 1px solid transparent;
  background: var(--stepper-bg);
  border-radius: var(--stepper-radius);
  box-shadow: inset 0 0 0 1px var(--border);
  overflow: hidden;
}
.quantity-stepper button {
  min-width: 44px;
  min-height: 44px;
  border-radius: 0;
  background: transparent;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px solid transparent;
}
.quantity-stepper button:first-child {
  border-radius: calc(var(--stepper-radius) - 1px) 0 0
    calc(var(--stepper-radius) - 1px);
}
.quantity-stepper button:last-child {
  border-radius: 0 calc(var(--stepper-radius) - 1px)
    calc(var(--stepper-radius) - 1px) 0;
}
.quantity-stepper button:active:not(:disabled) {
  transform: none;
}
.quantity-stepper button:focus-visible {
  outline-color: var(--button-hover-border);
  outline-offset: -3px;
}
.quantity-stepper button:disabled {
  opacity: 0.3;
}
.quantity-stepper .icon {
  width: 15px;
  height: 15px;
}
.quantity-stepper strong {
  min-width: 28px;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}
.order-item-total {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.order-item-remove {
  width: 100%;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  min-height: 48px;
  margin-top: 12px;
  padding: 12px 14px;
}
.order-item-remove .icon {
  width: 18px;
  height: 18px;
}
.order-summary {
  border-top: 1px solid var(--border);
  padding: 24px 22px 20px;
  background: var(--summary-bg);
}
.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 22px;
}
.summary-line strong {
  font-weight: 500;
  color: var(--summary-label);
}
.summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 25px;
}
.summary-total > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.summary-total > div > span {
  font-size: 12px;
  font-weight: 500;
}
.summary-total small {
  font-size: 9px;
  color: var(--subtle);
}
.summary-total > strong {
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -1px;
  white-space: nowrap;
}
.summary-total > strong > span {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}
.primary-button {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: 100%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 12px;
  font-weight: 600;
  border-radius: 13px;
  border: 1px solid var(--button-hover-border);
  padding: 12px 16px;
}
.primary-button:disabled {
  background: var(--disabled-bg);
  color: var(--disabled-text);
  border-color: rgba(var(--surface-rgb), 0.02);
}
.primary-button .icon {
  width: 19px;
  height: 19px;
}
.order-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 9px;
  color: var(--subtle);
  margin-top: 15px;
}
.order-note .icon {
  width: 13px;
  height: 13px;
}
.drop-overlay {
  position: absolute;
  inset: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 15px;
  background: var(--drop-bg);
  border: 2px dashed var(--accent);
  border-radius: 19px;
  z-index: 5;
  color: var(--accent-ink);
  pointer-events: none;
}
.drop-overlay .icon {
  width: 48px;
  height: 48px;
}
.drop-overlay strong {
  font-size: 20px;
  font-weight: 500;
}
.drop-overlay span {
  color: var(--muted);
  font-size: 12px;
}
.order-panel.is-drop-active .drop-overlay {
  display: flex;
}
.is-removing-order .catalog-panel > .remove-drop-overlay {
  display: flex;
  padding: 16px;
  text-align: center;
}
.catalog-panel.is-drop-active > .remove-drop-overlay {
  border-style: solid;
  box-shadow: inset 0 0 0 2px rgba(249, 177, 4, 0.2);
}
@media (max-width: 1120px) {
  .is-returning-order .order-panel.is-open {
    transform: translateX(65%);
    transition: none;
  }
  .is-returning-order .drawer-backdrop {
    visibility: hidden;
  }
  .is-removing-order .catalog-panel > .remove-drop-overlay {
    right: 40%;
  }
  .remove-drop-overlay strong {
    font-size: 16px;
  }
}
.app-footer {
  height: 42px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: var(--footer-text);
  font-size: 9px;
  letter-spacing: 0.1px;
  padding: 0 4px;
}
.footer-dot {
  color: var(--footer-dot);
  margin: 0 7px;
}
.mobile-order-bar {
  display: none;
}
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 9, 13, 0.8);
  z-index: 30;
}
.toast {
  position: fixed;
  bottom: 58px;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid rgba(249, 177, 4, 0.25);
  border-radius: 13px;
  background: var(--toast-bg);
  box-shadow: 0 8px 25px #0005;
  padding: 15px 22px;
  color: var(--toast-text);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  max-width: calc(100vw - 32px);
  font-size: 12px;
  z-index: 90;
}
.toast > span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.toast-order-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  margin-left: auto;
  border: 1px solid rgba(249, 177, 4, 0.35);
  border-radius: 8px;
  background: transparent;
  color: var(--accent-ink);
  font-size: 11px;
  white-space: nowrap;
}
.toast .icon {
  width: 19px;
  height: 19px;
  color: var(--accent-ink);
}
.drag-ghost {
  position: fixed;
  z-index: 1000;
  width: 120px;
  pointer-events: none;
  background: var(--drag-bg);
  border: 1px solid var(--accent);
  border-radius: 18px;
  box-shadow: 0 12px 40px #0008;
  padding: 8px;
  text-align: center;
  transform: translate(-50%, -50%) rotate(-5deg);
}
.drag-ghost .drag-image {
  height: 80px;
  width: 90px;
  object-fit: contain;
}
.drag-ghost .image-placeholder {
  margin: 0 auto;
}
.drag-ghost .image-placeholder .icon {
  width: 56px;
  height: 56px;
}
.drag-ghost-name {
  display: block;
  color: var(--accent-ink);
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.is-dragging {
  user-select: none;
}
.is-dragging .product-card {
  user-select: none;
}
.app-dialog {
  color: var(--text);
  background: var(--dialog-bg);
  border: 1px solid rgba(var(--surface-rgb), 0.12);
  border-radius: 25px;
  box-shadow: 0 30px 100px #0008;
  padding: 26px;
  max-width: calc(100vw - 32px);
  width: 580px;
  max-height: calc(100dvh - 48px);
  overflow: auto;
}
.app-dialog::backdrop {
  background: rgba(4, 9, 13, 0.78);
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 17px;
}
.dialog-header h2 {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.6px;
  margin: 0;
}
.dialog-header .icon-button {
  margin: -5px -8px -5px 0;
}
.dialog-description {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  margin: 0 0 22px;
}
.filter-section {
  border-top: 1px solid var(--border);
  padding: 19px 0;
}
.filter-section h3 {
  font-size: 12px;
  font-weight: 500;
  color: #cdd5da;
  margin: 0 0 14px;
}
.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.filter-chip {
  padding: 10px 15px;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 12px;
  background: var(--option-bg);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}
.filter-chip[aria-pressed="true"] {
  background: rgba(249, 177, 4, 0.1);
  border-color: rgba(249, 177, 4, 0.45);
  color: var(--accent-ink);
}
.filter-chip .icon {
  width: 15px;
  height: 15px;
}
.dialog-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}
.dialog-actions > .primary-button {
  flex: 1;
}
.secondary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 52px;
  padding: 12px 20px;
  background: rgba(var(--surface-rgb), 0.03);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 12px;
}
.sort-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sort-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--option-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-height: 56px;
  padding: 14px 18px;
  text-align: left;
  font-size: 13px;
}
.sort-option.is-active {
  border-color: rgba(249, 177, 4, 0.4);
  color: var(--accent-ink);
}
.product-detail-visual {
  height: 190px;
  background: radial-gradient(
    ellipse at center,
    rgba(var(--surface-rgb), 0.06),
    transparent 65%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -15px;
}
.product-detail-image {
  width: 200px;
  height: 180px;
  object-fit: contain;
}
.product-detail-photo {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  background: transparent;
  border-radius: 14px;
  cursor: zoom-in;
}
.photo-zoom {
  cursor: pointer;
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--button-soft-border);
  border-radius: 11px;
  background: var(--button-soft-bg);
  color: var(--accent-ink);
  font-size: 11px;
}
.product-detail-photo:is(:hover, :active) .photo-zoom {
  background: var(--button-hover-bg);
  border-color: var(--button-hover-border);
  color: var(--button-hover-text);
}
.photo-dialog {
  position: fixed;
  padding: 20px;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--dialog-bg);
  color: var(--text);
  box-shadow: 0 24px 80px #0006;
}
.photo-dialog::backdrop {
  background: rgba(4, 9, 13, 0.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.photo-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
}
.photo-stage {
  width: min(600px, calc(100vw - 66px));
  height: min(600px, calc(100dvh - 90px));
  display: flex;
  justify-content: center;
  align-items: center;
}
.photo-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.photo-error {
  color: var(--muted);
  text-align: center;
}
.product-detail-image.image-placeholder .icon {
  width: 112px;
  height: 112px;
}
.product-detail-spec {
  font-size: 17px;
  letter-spacing: -0.3px;
  margin: 10px 0 8px;
}
.product-detail-sku {
  font-size: 11px;
  color: var(--subtle);
}
.product-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 22px 0;
}
.product-specs div {
  background: rgba(var(--surface-rgb), 0.025);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.product-specs span {
  font-size: 10px;
  color: var(--subtle);
}
.product-specs strong {
  font-size: 12px;
  font-weight: 500;
}
.detail-purchase {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  flex-wrap: wrap;
}
.detail-purchase .quantity-stepper {
  margin-left: auto;
}
.detail-price-group {
  min-width: 0;
}
.unit-price,
.price-source-label {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--muted);
}
.price-source-label {
  color: var(--subtle);
  font-size: 9px;
}
.presentation-label {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 9px;
  border: 1px solid var(--button-soft-border);
  border-radius: 8px;
  color: var(--accent-ink);
  background: var(--button-soft-bg);
  font-size: 10px;
}
.detail-price {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -1px;
}
.detail-price span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
}
.add-button.detail-add {
  margin-top: 20px;
  min-height: 56px;
  font-size: 12px;
}
.detail-add .icon {
  width: 19px;
  height: 19px;
}
.review-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 15px 0 25px;
}
.review-item {
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.review-item-image {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}
.review-item > div {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.review-item strong {
  font-size: 12px;
  font-weight: 500;
}
.review-item p {
  font-size: 10px;
  color: var(--muted);
  margin: 6px 0 0;
}
.review-item > span {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.review-total {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  align-items: center;
  margin: 20px 0;
  flex-wrap: wrap;
  gap: 10px;
}
.checkout-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.checkout-actions > button {
  flex: 1 1 200px;
  width: auto;
}
.checkout-error {
  padding: 12px;
  border: 1px solid var(--button-soft-border);
  border-radius: 10px;
  color: var(--text);
  background: var(--button-soft-bg);
  font-size: 12px;
  line-height: 1.7;
}
.order-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 12px 0 22px;
}
.order-success-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: var(--button-soft-bg);
  color: var(--accent-ink);
}
.order-success-icon .icon {
  width: 38px;
  height: 38px;
}
.order-success p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}
.order-reference {
  font-size: 17px;
  overflow-wrap: anywhere;
}
.order-date {
  color: var(--muted);
  font-size: 12px;
}
.confirmation-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding: 18px 0;
  border-block: 1px solid var(--border);
}
.confirmation-summary span {
  color: var(--muted);
}
#dialog-title[tabindex="-1"]:focus {
  outline: none;
}
.review-total strong {
  font-size: 27px;
  font-weight: 600;
}
.demo-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin: 20px 0;
}
.demo-notice .icon {
  color: var(--accent-ink);
  width: 18px;
  height: 18px;
  margin-top: 1px;
}
.help-steps {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin: 26px 0;
}
.help-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.help-step > span {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: var(--accent-ink);
  background: rgba(249, 177, 4, 0.08);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 16px;
}
.help-step strong {
  font-size: 13px;
  font-weight: 500;
}
.help-step p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  margin: 7px 0 0;
}
.keyboard-display-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 20px;
}
.keyboard-display {
  flex: 1;
  min-width: 0;
  min-height: 60px;
  background: var(--input-bg);
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  word-break: break-all;
  color: var(--text);
}
.keyboard-display.is-empty {
  color: var(--subtle);
}
.keyboard-row {
  --keyboard-columns: 10;
  --keyboard-gap: 5px;
  display: flex;
  justify-content: center;
  gap: var(--keyboard-gap);
  margin: 6px 0;
}
.keyboard-key {
  min-width: 44px;
  flex: 0 0
    calc(
      (100% - (var(--keyboard-columns) - 1) * var(--keyboard-gap)) /
        var(--keyboard-columns)
    );
  min-height: 50px;
  background: var(--keyboard-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  padding: 5px 2px;
  text-transform: uppercase;
}
.keyboard-mode-button {
  flex: 0 0 56px;
}
.keyboard-mode-button[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--button-hover-border);
  color: var(--on-accent);
}
.keyboard-key.wide {
  flex: 1.7;
}
.keyboard-key.space {
  flex: 6;
  text-transform: none;
  font-size: 12px;
}
.keyboard-key .icon {
  width: 20px;
  height: 20px;
}
/* All action controls share the same hover and pressed palette. */
:is(
    .add-button,
    .order-item-remove,
    .primary-button,
    .secondary-button,
    .control-button,
    .help-button,
    .login-button,
    .theme-button,
    .icon-button,
    .photos-button,
    .filter-chip,
    .sort-option,
    .keyboard-key,
    .quantity-stepper button,
    .toast-order-button,
    .auth-back,
    .mobile-order-bar
  ):is(:hover, :active):not(:disabled, .is-drop-active) {
  background: var(--button-hover-bg);
  border-color: var(--button-hover-border);
  color: var(--button-hover-text);
}
:is(.auth-alternative, .toast-order-button):is(:hover, :active):not(:disabled)
  .icon {
  color: inherit;
}
.noscript-notice {
  position: fixed;
  inset: auto 0 0;
  background: var(--accent);
  color: #111;
  padding: 20px;
  text-align: center;
  z-index: 100;
}
@media (min-width: 1800px) {
  .workspace {
    grid-template-columns: 270px minmax(0, 1fr) 370px;
    gap: 24px;
  }
  .category-button {
    min-height: 80px;
  }
  .category-name {
    font-size: 13px;
  }
  .category-header h2,
  .order-header h2 {
    font-size: 18px;
  }
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 19px;
  }
  .product-visual {
    height: 180px;
  }
  .product-image {
    height: 166px;
  }
  .product-image.image-placeholder .icon {
    width: 72px;
    height: 72px;
  }
  .product-info {
    padding: 8px 19px 19px;
  }
  .product-name {
    font-size: 16px;
  }
  .product-spec {
    font-size: 11px;
  }
  .product-price {
    font-size: 24px;
  }
  .stock-label {
    font-size: 10px;
  }
  .add-button {
    font-size: 12px;
    min-height: 52px;
  }
  .catalog-header {
    padding-top: 30px;
    padding-bottom: 27px;
  }
  h1 {
    font-size: 36px;
  }
  .catalog-heading p {
    font-size: 13px;
  }
  .catalog-scroll {
    padding-left: 30px;
    padding-right: 30px;
  }
  .order-item-name {
    font-size: 12px;
  }
  .order-item-spec {
    font-size: 10px;
  }
  .order-item-total {
    font-size: 15px;
  }
  .order-items {
    padding: 20px;
  }
  .category-footer strong {
    font-size: 14px;
  }
  .category-footer > span:not(.category-footer-icon):not(.brand-accent-line) {
    font-size: 11px;
  }
  .order-summary {
    padding: 27px;
  }
  .primary-button {
    font-size: 13px;
  }
}
@media (max-width: 1450px) {
  .app-shell {
    padding: 0 20px;
  }
  .workspace {
    grid-template-columns: 225px minmax(0, 1fr) 305px;
    gap: 16px;
  }
  .category-panel {
    padding-left: 9px;
    padding-right: 9px;
  }
  .category-header {
    margin-left: -9px;
    margin-right: -9px;
    padding-left: 18px;
    padding-right: 18px;
  }
  .category-button {
    gap: 7px;
    padding: 12px 8px;
  }
  .category-name {
    font-size: 11px;
  }
  .category-footer {
    padding-left: 10px;
    padding-right: 10px;
  }
  .catalog-header,
  .catalog-controls,
  .catalog-toolbar {
    padding-left: 21px;
    padding-right: 21px;
  }
  .catalog-scroll {
    padding-left: 21px;
    padding-right: 21px;
  }
  .product-grid {
    gap: 13px;
    grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  }
  .touch-hint {
    display: none;
  }
  .order-header {
    padding-left: 18px;
    padding-right: 18px;
  }
  .category-header h2,
  .order-header h2 {
    font-size: 15px;
  }
  .order-title-wrap {
    gap: 8px;
  }
  .order-summary {
    padding-left: 18px;
    padding-right: 18px;
  }
  .quick-tabs {
    gap: 16px;
  }
  .quick-tab {
    font-size: 10px;
  }
  .quick-tab .icon {
    display: none;
  }
  .sort-button {
    font-size: 9px;
  }
  .summary-total > strong {
    font-size: 25px;
  }
}
@media (max-width: 1120px) {
  .toast {
    bottom: 96px;
  }
  .toast-order-button {
    flex-basis: 100%;
  }
  .workspace {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 16px;
    padding-bottom: 82px;
  }
  .app-footer {
    display: none;
  }
  .app-header {
    height: 84px;
    min-height: 84px;
  }
  .order-panel {
    position: fixed;
    right: 12px;
    top: 12px;
    bottom: 12px;
    width: 370px;
    max-width: calc(100vw - 24px);
    z-index: 40;
    transform: translateX(calc(100% + 20px));
    visibility: hidden;
    transition:
      transform 0.22s,
      visibility 0.22s;
  }
  .order-panel.is-open {
    transform: translateX(0);
    visibility: visible;
  }
  .order-close {
    display: flex;
    margin-right: -8px;
    min-width: 44px;
  }
  .order-title-wrap {
    gap: 9px;
  }
  .category-header h2,
  .order-header h2 {
    font-size: 16px;
  }
  .order-title-wrap .order-count {
    margin-left: 5px;
  }
  .mobile-order-bar {
    position: fixed;
    bottom: 15px;
    left: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    padding: 10px 20px;
    color: var(--on-accent);
    background: var(--accent);
    border: 1px solid var(--button-hover-border);
    border-radius: 17px;
    z-index: 20;
    box-shadow: 0 7px 25px #0005;
    font-size: 13px;
  }
  .mobile-order-bar > span:nth-of-type(1) {
    flex: 1;
    text-align: left;
    font-weight: 600;
  }
  .mobile-order-bar > span:nth-of-type(2) {
    font-weight: 600;
  }
  .mobile-order-bar strong {
    display: inline-grid;
    place-items: center;
    min-width: 23px;
    height: 23px;
    padding: 0 4px;
    font-size: 11px;
    background: #0002;
    border-radius: 7px;
    margin-left: 5px;
  }
  .mobile-order-bar.is-drop-active {
    background: #ffce57;
    outline: 2px dashed white;
    outline-offset: 4px;
  }
  .toast {
    bottom: 91px;
  }
  .app-shell {
    padding-bottom: 0;
  }
  .order-header {
    padding-top: 20px;
  }
  .order-summary {
    padding-bottom: 20px;
  }
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  }
  .brand-description > span {
    font-size: 10px;
  }
}
@media (max-width: 760px) {
  .app-shell {
    padding: 0 14px;
  }
  .app-header {
    height: 80px;
    min-height: 80px;
  }
  .brand {
    gap: 0;
  }
  .brand img {
    width: 119px;
    height: 43px;
  }
  .brand-description {
    display: none;
  }
  .header-actions {
    gap: 8px;
  }
  .help-button {
    padding: 0 12px;
    min-width: 48px;
  }
  .help-button > span {
    display: none;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 13px;
    padding-bottom: 87px;
  }
  .category-panel {
    padding: 6px;
    border-radius: 17px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-padding-inline: 6px;
  }
  .category-header,
  .category-footer {
    display: none;
  }
  .category-list {
    flex-direction: row;
    gap: 6px;
    overflow: visible;
    width: max-content;
    padding: 0;
  }
  .category-button {
    width: auto;
    min-height: 54px;
    gap: 8px;
    padding: 10px 13px;
    border-radius: 12px;
  }
  .category-icon {
    width: 19px;
  }
  .category-icon .icon {
    width: 19px;
    height: 19px;
  }
  .category-name {
    white-space: nowrap;
    font-size: 11px;
  }
  .catalog-panel {
    border-radius: 20px;
  }
  .catalog-header {
    padding: 15px 19px 12px;
  }
  .presentation-label {
    margin-top: 4px;
    padding: 2px 6px;
    font-size: 9px;
  }
  .catalog-heading .section-eyebrow {
    font-size: 9px;
    margin-bottom: 8px;
  }
  h1 {
    font-size: 26px;
    letter-spacing: -0.9px;
  }
  .catalog-heading p {
    font-size: 11px;
  }
  .catalog-controls {
    padding: 0 18px;
    gap: 8px;
  }
  .search-field {
    gap: 8px;
    padding-left: 12px;
    height: 52px;
  }
  .search-field input {
    font-size: 11px;
    height: 48px;
  }
  .search-field input::placeholder {
    font-size: 10px;
  }
  .search-field > .icon {
    width: 17px;
  }
  .control-button {
    min-width: 52px;
    padding: 0 13px;
    height: 52px;
    gap: 5px;
  }
  .control-button > span:not(.filter-count) {
    display: none;
  }
  .keyboard-button {
    min-width: 44px;
    min-height: 44px;
  }
  .keyboard-button .icon {
    width: 20px;
  }
  .search-clear {
    min-width: 44px;
  }
  .catalog-toolbar {
    padding: 10px 18px 0;
    min-height: 66px;
    gap: 5px;
  }
  .quick-tabs {
    gap: 10px;
  }
  .quick-tab {
    font-size: 10px;
  }
  .quick-tab[data-tab="popular"] {
    display: none;
  }
  .sort-button {
    font-size: 10px;
    min-width: 44px;
    justify-content: center;
  }
  .sort-button > .icon:first-child {
    display: block;
  }
  .sort-button > .icon:last-child,
  .sort-button > span {
    display: none;
  }
  .catalog-scroll {
    padding-left: 14px;
    padding-right: 14px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .product-visual {
    height: 134px;
  }
  .product-image {
    height: 119px;
  }
  .product-image-button {
    padding: 15px 20px 0;
  }
  .product-standard {
    left: 9px;
    top: 10px;
    font-size: 8px;
    padding: 4px 5px;
  }
  .favorite-button {
    right: 0;
    top: 0;
  }
  .favorite-button .icon {
    width: 16px;
  }
  .product-info {
    padding: 4px 11px 12px;
  }
  .product-name {
    font-size: 11px;
    letter-spacing: -0.1px;
  }
  .product-spec {
    font-size: 8px;
  }
  .product-price {
    font-size: 18px;
    letter-spacing: -0.5px;
  }
  .product-price span {
    font-size: 8px;
    margin-left: 2px;
  }
  .product-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    margin: 13px 0 12px;
  }
  .stock-label {
    font-size: 8px;
  }
  .add-button {
    min-height: 48px;
    font-size: 10px;
    gap: 5px;
    border-radius: 9px;
  }
  .add-button .icon {
    width: 14px;
  }
  .product-card {
    border-radius: 15px;
  }
  .results-row {
    font-size: 10px;
    min-height: 45px;
  }
  .catalog-end {
    font-size: 8px;
    padding: 22px 12px;
  }
  .catalog-end .brand-accent-line {
    display: none;
  }
  .mobile-order-bar {
    bottom: 14px;
    left: 14px;
    right: 14px;
    padding: 10px 17px;
    min-height: 62px;
    font-size: 12px;
  }
  .mobile-order-bar > .icon:last-child {
    width: 17px;
  }
  .app-dialog {
    padding: 21px;
    border-radius: 21px;
    max-height: calc(100dvh - 28px);
  }
  .dialog-header h2 {
    font-size: 20px;
  }
  .dialog-header {
    gap: 10px;
  }
  .dialog-description {
    font-size: 11px;
  }
  .filter-chip {
    font-size: 11px;
  }
  .dialog-actions {
    gap: 9px;
  }
  .dialog-actions > .secondary-button {
    padding: 10px 13px;
  }
  .primary-button {
    font-size: 11px;
  }
  .keyboard-key {
    min-height: 46px;
    font-size: 12px;
  }
  .keyboard-row {
    --keyboard-gap: 4px;
  }
  .app-dialog.keyboard-dialog {
    padding: 17px;
  }
  .keyboard-key .icon {
    width: 18px;
  }
  .order-panel {
    border-radius: 22px;
  }
  .toast {
    padding: 14px 17px;
    font-size: 11px;
  }
  .demo-notice {
    font-size: 10px;
  }
  .product-specs strong {
    font-size: 11px;
  }
  .detail-price {
    font-size: 24px;
  }
}
@media (max-width: 360px) {
  .app-shell {
    padding: 0 10px;
  }
  .product-grid {
    gap: 8px;
  }
  .catalog-scroll {
    padding: 0 10px;
  }
  .product-name {
    font-size: 10px;
  }
  .catalog-controls {
    padding: 0 13px;
  }
  .search-field input::placeholder {
    font-size: 9px;
  }
  .quick-tabs {
    gap: 2px;
  }
  .quick-tab {
    gap: 2px;
  }
  .product-standard {
    font-size: 7px;
  }
  .product-info {
    padding-left: 9px;
    padding-right: 9px;
  }
  .catalog-preview .catalog-header {
    gap: 8px;
  }
  .catalog-preview h1 {
    font-size: 22px;
  }
}
@media (max-width: 480px) {
  .keyboard-row {
    --keyboard-columns: 6;
    flex-wrap: wrap;
  }
  .keyboard-key.space {
    flex-basis: 40%;
  }
  .keyboard-key.wide {
    flex-basis: 20%;
  }
  .search-clear,
  .keyboard-button {
    min-width: 44px;
  }
  .sort-button {
    min-width: 44px;
  }
}
@media (max-height: 780px) and (min-width: 1121px) {
  .app-header {
    min-height: 76px;
    height: 76px;
  }
  .category-footer {
    display: none;
  }
  .category-button {
    min-height: 64px;
  }
  .category-list {
    gap: 6px;
  }
  .catalog-header {
    padding-top: 21px;
    padding-bottom: 18px;
  }
  h1 {
    font-size: 27px;
  }
  .product-visual {
    height: 128px;
  }
  .product-image {
    height: 118px;
  }
  .order-summary {
    padding-top: 18px;
    padding-bottom: 15px;
  }
  .summary-line {
    margin-bottom: 15px;
  }
  .summary-total {
    margin-bottom: 18px;
  }
  .empty-order {
    padding-bottom: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .order-item.is-added {
    animation: none;
    background-color: var(--order-highlight);
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(249, 177, 4, 0.14);
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
