:root {
  --ink: #102d55;
  --muted: #5d697a;
  --accent: #861b38;
  --paper: #faf9f7;
  --line: #dedfe3;
  --soft: #f0f2f5;
  --good: #23624c;
  --danger: #a12536;
  --shadow: 0 16px 64px #102d5524;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a {
  transition:
    background-color 0.16s,
    color 0.16s;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #4675aa;
  outline-offset: 3px;
}
::selection {
  background: #e4bfd0;
  color: #102d55;
}
input,
textarea {
  caret-color: var(--accent);
}
svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.12;
  font-weight: 650;
  letter-spacing: -0.035em;
}
h2 {
  font-size: 27px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 18px;
  line-height: 1.4;
}
p {
  line-height: 1.65;
}
small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.ltr,
bdi {
  unicode-bidi: isolate;
}
.ltr {
  direction: ltr;
}
.hidden,
[hidden] {
  display: none !important;
}
.btn,
.icon-button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 19px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
}
.btn {
  background: var(--ink);
  color: white;
}
.btn:hover {
  background: #234c7c;
}
.btn.accent {
  background: var(--accent);
}
.btn.accent:hover {
  background: #6c112a;
}
.btn.secondary {
  background: var(--soft);
  color: var(--ink);
}
.btn.outline {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
}
.icon-button {
  padding: 10px;
  min-width: 44px;
}
.icon-button:hover,
.link-button:hover {
  background: var(--soft);
}
.link-button {
  color: var(--accent);
  padding-inline: 8px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 6px;
  padding: 6px 10px;
  background: var(--soft);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 550;
}
.badge.approved {
  background: #e4f0e9;
  color: var(--good);
}
.badge.pending {
  background: #fff0d8;
  color: #77511a;
}
.badge.rejected,
.badge.revoked {
  background: #f9e7eb;
  color: #8c1832;
}
.price {
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}
.price-lock {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}
.price-lock svg {
  width: 16px;
  height: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  direction: ltr;
}
.brand-mark {
  display: block;
  width: 48px;
  height: 30px;
  background-image: url("assets/jz-brand.png");
  background-size: 220px auto;
  background-position: 51% 0;
  background-repeat: no-repeat;
}
.brand-name {
  font-size: 22px;
  letter-spacing: 0.03em;
  font-weight: 700;
  line-height: 1;
}
.brand-name > span {
  display: block;
  font-size: 8px;
  letter-spacing: 0.16em;
  margin-top: 6px;
  font-weight: 600;
}
.site-header {
  max-width: 1240px;
  margin: auto;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.language {
  display: flex;
  align-items: center;
  gap: 6px;
}
.language select {
  border: 0;
  background: transparent;
  min-height: 44px;
  max-width: 132px;
  font-size: 14px;
}
.cart-button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  background: var(--accent);
  color: white;
  font-size: 12px;
  padding: 0 5px;
  font-variant-numeric: tabular-nums;
}
main#main {
  max-width: 1240px;
  margin: auto;
  padding: 50px 36px 72px;
}
.catalog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.catalog-heading p {
  margin-top: 14px;
  color: var(--muted);
  max-width: 55ch;
}
.access-link {
  margin-top: 7px;
  text-align: start;
}
.catalog-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 32px 0 26px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  width: 460px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0 14px;
}
.search-field input {
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
  min-height: 50px;
  font-size: 15px;
}
.search-field:focus-within {
  outline: 2px solid #4675aa;
  outline-offset: 2px;
}
.model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.model-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  text-align: start;
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid transparent;
}
.model-card:hover {
  border-color: #c8ced8;
}
.model-visual {
  height: 190px;
  background: #f0f1f2;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.model-visual svg {
  width: 60px;
  height: 83px;
  color: #7e8c9f;
  stroke-width: 0.8;
}
.model-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: white;
}
.model-visual > span {
  position: absolute;
  bottom: 15px;
  font-size: 11px;
  color: #5d697a;
}
.model-card:nth-child(2n) .model-visual {
  background: #edf0f4;
}
.model-copy {
  padding: 23px;
  width: 100%;
}
.model-copy h3 {
  font-size: 21px;
  letter-spacing: -0.025em;
}
.model-copy > p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
}
.model-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
  font-weight: 600;
}
.model-card-footer svg {
  transform: rotate(180deg);
  width: 18px;
}
.catalog-contact {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding-top: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.catalog-contact p {
  max-width: 68ch;
  color: var(--muted);
  font-size: 14px;
}
.site-footer {
  max-width: 1168px;
  margin: auto;
  padding: 20px 0 30px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  gap: 20px;
}
.mobile-bar {
  display: none;
}
.back {
  padding-inline-start: 0;
  margin-bottom: 24px;
}
.detail-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 30px;
}
.detail-heading h1 {
  font-size: 40px;
}
.detail-heading p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}
.options-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.option-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  gap: 14px;
  min-height: 193px;
  cursor: pointer;
}
.option-card.selected {
  border: 2px solid var(--ink);
  padding: 19px;
  background: #f3f6fa;
}
.option-card input {
  width: 19px;
  height: 19px;
  accent-color: var(--ink);
  margin: 0;
}
.option-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.option-top h3 {
  font-size: 16px;
}
.option-card .price {
  margin-top: auto;
}
.option-card small {
  color: var(--muted);
  line-height: 1.5;
}
.product-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 36px;
  align-items: start;
}
.media-box {
  background: #edf0f4;
  border-radius: 14px;
  min-height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-direction: column;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}
.media-box > svg {
  width: 42px;
  height: 42px;
  color: #74849b;
}
.media-box img {
  display: block;
  width: 100%;
  max-height: 400px;
  object-fit: contain;
}
.media-box video {
  width: 100%;
  max-height: 400px;
  background: #111;
}
.media-stack {
  display: grid;
  gap: 12px;
}
.media-missing {
  padding: 18px;
  text-align: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
}
.product-description {
  padding: 10px 0;
}
.product-description p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
}
.product-description .source-note {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 20px;
  font-size: 12px;
}
.detail-actions {
  position: sticky;
  bottom: 18px;
  background: white;
  box-shadow: var(--shadow);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 36px;
  z-index: 3;
}
.selection-label {
  flex: 1;
  font-size: 14px;
  min-width: 0;
}
.selection-label strong {
  display: block;
}
.quantity {
  display: flex;
  align-items: center;
  gap: 9px;
}
.quantity input {
  width: 74px;
  text-align: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  font-variant-numeric: tabular-nums;
}
.quantity button {
  width: 44px;
  height: 44px;
  background: var(--soft);
  border-radius: 8px;
  font-size: 20px;
}
.field-error {
  font-size: 13px;
  color: var(--danger);
  margin-top: 5px;
  line-height: 1.5;
}
.staff-bar {
  background: var(--ink);
  color: white;
  padding: 13px max(24px, calc((100vw - 1168px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.staff-bar .btn {
  background: #ffffff20;
  color: white;
}
.staff-bar .btn:hover {
  background: #ffffff35;
}
.staff-bar .btn.primary {
  background: white;
  color: var(--ink);
}
.staff-bar p {
  font-size: 12px;
  color: #d3deed;
}
.staff-bar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.staff-bar strong {
  font-size: 14px;
}
.empty {
  text-align: center;
  padding: 66px 20px;
  color: var(--muted);
}
.empty svg {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
}
.empty h2 {
  color: var(--ink);
  font-size: 24px;
}
.empty p {
  margin: 14px auto 20px;
  max-width: 45ch;
}
.system-error {
  background: #fff0f1;
  color: #871d2e;
  padding: 14px 24px;
  position: sticky;
  top: 0;
  z-index: 50;
  font-size: 14px;
}
.toast {
  position: fixed;
  bottom: 100px;
  inset-inline-start: 50%;
  transform: translate(-50%, 16px);
  background: var(--ink);
  color: white;
  padding: 13px 22px;
  border-radius: 10px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  max-width: 90vw;
  font-size: 14px;
  transition:
    opacity 0.18s,
    transform 0.18s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
[dir="rtl"] .toast {
  transform: translate(50%, 16px);
}
[dir="rtl"] .toast.show {
  transform: translate(50%, 0);
}
dialog {
  border: 0;
  border-radius: 20px;
  background: white;
  color: var(--ink);
  padding: 0;
  width: min(620px, calc(100% - 32px));
  max-height: 90dvh;
  box-shadow: var(--shadow);
}
dialog::backdrop {
  background: #10243e66;
}
body:has(dialog[open]) {
  overflow: hidden;
}
.dialog-inner {
  padding: 30px;
}
.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.dialog-head h2 {
  font-size: 26px;
  padding-top: 7px;
}
.dialog-note {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}
.field {
  display: block;
  margin-bottom: 18px;
}
.field > span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #bfc6d0;
  border-radius: 9px;
  padding: 11px 12px;
  background: white;
  line-height: 1.4;
  font-size: 16px;
}
.field textarea {
  min-height: 90px;
  resize: vertical;
}
.field [aria-invalid="true"] {
  border-color: var(--danger);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
  flex-wrap: wrap;
}
.form-actions .btn:first-child {
  flex: 1;
}
.cart-line {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
}
.cart-line h3 {
  font-size: 17px;
}
.cart-line p {
  font-size: 13px;
  color: var(--muted);
  margin: 5px 0;
}
.cart-line .price {
  font-size: 17px;
  margin-top: 8px;
}
.cart-line-tools {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.cart-line-tools input {
  width: 65px;
}
.cart-bottom {
  margin-top: 24px;
}
.cart-bottom p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}
.cart-bottom > .btn {
  width: 100%;
}
.success-mark {
  width: 56px;
  height: 56px;
  background: #e4f0e9;
  color: var(--good);
  border-radius: 28px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.order-number {
  background: var(--soft);
  padding: 18px;
  border-radius: 12px;
  margin: 24px 0;
  overflow-wrap: anywhere;
}
.order-number strong {
  display: block;
  margin-bottom: 8px;
}
.summary-text {
  width: 100%;
  min-height: 170px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  font-size: 13px;
  line-height: 1.65;
  resize: vertical;
}
.contact-qr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.contact-qr-grid h3 {
  text-align: center;
  margin-bottom: 12px;
}
.qr-window {
  width: 180px;
  height: 180px;
  margin: auto;
  background-image: url("assets/contact-source.png");
  background-repeat: no-repeat;
  background-size: 1688px 2495px;
  background-position: -510px -2268px;
  background-color: white;
}
.qr-window.whatsapp {
  background-size: 2194px 3244px;
  background-position: -1753px -3023px;
}
.notice {
  background: var(--soft);
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.6;
}
.danger-text {
  color: var(--danger);
}
.full {
  width: 100%;
}
.admin-body {
  background: #f5f6f8;
}
.admin-nav {
  position: fixed;
  inset: 0 auto 0 0;
  width: 226px;
  background: var(--ink);
  color: white;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.admin-nav .brand {
  padding: 0 10px 36px;
}
.admin-nav .brand-mark {
  background-color: white;
  border-radius: 6px;
}
.admin-nav nav {
  display: grid;
  gap: 7px;
}
.admin-nav nav button {
  color: #d4dfef;
  min-height: 48px;
  text-align: left;
  padding: 12px 16px;
  border-radius: 9px;
  font-size: 14px;
}
.admin-nav nav button.active {
  background: white;
  color: var(--ink);
  font-weight: 650;
}
.admin-nav nav button:hover:not(.active) {
  background: #ffffff14;
}
.admin-nav-bottom {
  margin-top: auto;
  border-top: 1px solid #ffffff30;
  padding-top: 20px;
  font-size: 12px;
  line-height: 1.8;
  color: #d4dfef;
}
.admin-nav-bottom select {
  width: 100%;
  background: #193c68;
  color: white;
  border: 1px solid #ffffff40;
  border-radius: 8px;
  padding: 10px;
  margin-top: 10px;
  min-height: 44px;
}
.admin-main {
  margin-left: 226px;
  padding: 36px 42px;
  max-width: 1650px;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 34px;
}
.admin-header h1 {
  font-size: 32px;
}
.admin-header p {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}
.admin-header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.admin-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 22px 0;
}
.admin-toolbar input,
.admin-toolbar select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: white;
  max-width: 100%;
}
.admin-toolbar input {
  flex: 1;
  min-width: 160px;
}
.table-wrap {
  overflow: auto;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--line);
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
th {
  font-weight: 550;
  color: var(--muted);
  background: #f8f9fb;
  white-space: nowrap;
}
th,
td {
  padding: 15px 18px;
  border-bottom: 1px solid #e8eaf0;
  vertical-align: middle;
}
tbody tr:last-child td {
  border: 0;
}
td strong {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}
td .btn {
  min-height: 44px;
  padding: 8px 12px;
  font-size: 12px;
}
td .badge {
  white-space: nowrap;
}
.table-number {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.admin-rows {
  display: grid;
  gap: 12px;
}
.admin-row {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
}
.admin-row p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.admin-row h3 {
  font-size: 17px;
}
.row-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.admin-section-note {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 80ch;
}
.editor-language {
  display: flex;
  gap: 4px;
  background: var(--soft);
  padding: 4px;
  border-radius: 9px;
  margin: 20px 0;
}
.editor-language button {
  min-height: 44px;
  flex: 1;
  border-radius: 7px;
  font-size: 13px;
}
.editor-language button.active {
  background: white;
  color: var(--accent);
  font-weight: 650;
}
.media-editor {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.media-editor input[type="file"] {
  font-size: 13px;
  padding: 10px;
}
.media-preview img,
.media-preview video {
  width: 100%;
  max-height: 190px;
  object-fit: contain;
}
.audit-entry {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.print-view {
  display: none;
}
.order-detail-items {
  margin: 20px 0;
}
.order-detail-line {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.6;
}
.field-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.input-row {
  display: flex;
  gap: 10px;
}
.input-row > * {
  flex: 1;
}
.receipt-meta {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}
@media (max-width: 1100px) {
  .options-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-main {
    padding: 28px 24px;
    margin-left: 190px;
  }
  .admin-nav {
    width: 190px;
    padding: 24px 12px;
  }
  .admin-header {
    align-items: flex-start;
  }
  .admin-header-actions {
    max-width: 240px;
  }
  .option-card {
    min-height: 180px;
  }
}
@media (max-width: 760px) {
  .site-header {
    height: 76px;
    padding: 0 20px;
    gap: 10px;
  }
  .brand-name {
    font-size: 19px;
  }
  .brand-mark {
    width: 43px;
  }
  .header-actions {
    gap: 4px;
  }
  .desktop-only {
    display: none !important;
  }
  .header-actions .language svg {
    display: none;
  }
  main#main {
    padding: 30px 20px 115px;
  }
  .catalog-heading {
    display: block;
  }
  .catalog-heading p {
    font-size: 14px;
    margin-top: 12px;
  }
  .access-link {
    margin-top: 18px;
    padding-inline-start: 0;
  }
  .catalog-tools {
    margin: 20px 0;
    display: block;
  }
  .catalog-tools > .muted {
    display: none;
  }
  .search-field {
    width: 100%;
  }
  .model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .model-visual {
    height: 135px;
  }
  .model-visual svg {
    width: 44px;
    height: 64px;
  }
  .model-visual > span {
    font-size: 9px;
    bottom: 9px;
  }
  .model-copy {
    padding: 16px 13px;
  }
  .model-copy h3 {
    font-size: 17px;
    line-height: 1.3;
  }
  .model-copy > p {
    font-size: 12px;
  }
  .model-card-footer {
    padding-top: 19px;
    font-size: 12px;
  }
  .model-card-footer svg {
    width: 15px;
  }
  .catalog-contact {
    display: block;
    margin-top: 28px;
  }
  .catalog-contact .btn {
    margin-top: 14px;
  }
  .site-footer {
    margin: 0 20px;
    padding-bottom: 112px;
    display: block;
    font-size: 11px;
  }
  .site-footer p + p {
    margin-top: 8px;
  }
  .mobile-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 8;
    background: white;
    border-top: 1px solid var(--line);
    padding: 10px 20px calc(10px + env(safe-area-inset-bottom));
    gap: 12px;
  }
  .mobile-bar .btn {
    flex: 1;
    min-height: 46px;
  }
  .detail-heading {
    display: block;
    margin-bottom: 24px;
  }
  .detail-heading h1 {
    font-size: 32px;
  }
  .detail-heading p {
    font-size: 13px;
  }
  .back {
    margin-bottom: 18px;
  }
  .options-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .option-card {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    padding: 17px;
  }
  .option-card.selected {
    padding: 16px;
  }
  .option-top {
    grid-column: 1/-1;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 10px;
    align-items: center;
  }
  .option-card .price,
  .option-card .price-lock {
    margin-top: 8px;
    grid-column: 1;
    min-height: 26px;
  }
  .option-card small {
    align-self: end;
    text-align: end;
    font-size: 11px;
    max-width: 150px;
  }
  .product-info {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 26px;
  }
  .product-description {
    grid-row: 1;
  }
  .product-description h2 {
    font-size: 23px;
  }
  .media-box {
    min-height: 180px;
  }
  .detail-actions {
    bottom: 0;
    margin: 28px -20px -24px;
    border-radius: 0;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
    flex-wrap: wrap;
    gap: 12px;
    position: sticky;
  }
  .selection-label {
    width: calc(100% - 160px);
    font-size: 12px;
  }
  .detail-actions > .btn {
    flex: 1;
  }
  .detail-actions .quantity {
    gap: 3px;
  }
  .quantity input {
    width: 60px;
  }
  .quantity button {
    width: 44px;
    min-height: 44px;
  }
  .detail-mode .mobile-bar {
    display: none;
  }
  .detail-mode main#main {
    padding-bottom: 24px;
  }
  .detail-mode .site-footer {
    padding-bottom: 30px;
  }
  .staff-bar {
    padding: 14px 20px;
    display: block;
  }
  .staff-bar-actions {
    margin-top: 12px;
    flex-wrap: wrap;
  }
  .staff-bar-actions .btn {
    font-size: 12px;
  }
  .dialog-inner {
    padding: 24px 20px;
  }
  .dialog-head h2 {
    font-size: 24px;
  }
  dialog {
    max-height: 94dvh;
    width: calc(100% - 20px);
    border-radius: 16px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .contact-qr-grid {
    gap: 12px;
  }
  .qr-window {
    transform: scale(0.8);
    transform-origin: center;
    width: 180px;
    margin-inline: -12px;
  }
  .cart-line {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .cart-line-tools {
    flex-direction: row;
    justify-content: space-between;
  }
  .admin-nav {
    position: static;
    width: 100%;
    padding: 16px 20px;
  }
  .admin-nav .brand {
    padding: 0 0 16px;
  }
  .admin-nav nav {
    display: flex;
    overflow-x: auto;
    gap: 4px;
  }
  .admin-nav nav button {
    white-space: nowrap;
    padding: 10px 12px;
  }
  .admin-nav-bottom {
    margin-top: 14px;
    padding-top: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .admin-nav-bottom select {
    width: auto;
    flex: 1;
    margin: 0;
  }
  .admin-main {
    margin: 0;
    padding: 26px 20px;
  }
  .admin-header {
    display: block;
  }
  .admin-header-actions {
    max-width: none;
    margin-top: 18px;
  }
  .admin-header h1 {
    font-size: 28px;
  }
  .admin-row {
    display: block;
    padding: 20px;
  }
  .row-actions {
    margin-top: 18px;
  }
  .admin-toolbar {
    gap: 8px;
  }
  .table-wrap table {
    min-width: 680px;
  }
  .contact-qr-grid h3 {
    font-size: 15px;
  }
  .toast {
    bottom: 90px;
  }
  .input-row {
    display: block;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  body > * {
    display: none !important;
  }
  body > .print-view {
    display: block !important;
    color: #111;
    font-family: Arial, sans-serif;
    padding: 20px;
  }
  body > .print-view h1 {
    font-size: 24px;
  }
  body > .print-view table {
    font-size: 12px;
  }
  body > .print-view th,
  body > .print-view td {
    padding: 10px;
    border-bottom: 1px solid #ccc;
  }
  body > .print-view p {
    margin: 10px 0;
  }
}

.staff-bar strong{color:#fff}
.staff-bar .btn.primary:hover{background:#e8e8ed;color:#1d1d1f}
