:root {
  --bg: #171717;
  --surface: #222;
  --surface-2: #2a2a2a;
  --line: #484848;
  --text: #f0f0ed;
  --muted: #b0b0ac;
  --accent: #8eb9d3;
  --accent-strong: #5d93b5;
  --paper: #f1f1ee;
  --ink: #1a1a1a;
  --shell: min(1180px, calc(100% - 56px));
}

* { box-sizing: border-box; border-radius: 0; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover, a:focus { color: #c5dcea; }
button, input, textarea { font: inherit; }
button { color: inherit; }
textarea { resize: vertical; }
h1, h2, h3 {
  margin: 0;
  color: var(--text);
  font-family: "Arial Narrow", "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1;
}
h1 { font-size: clamp(58px, 8vw, 88px); }
h2 { font-size: 40px; }
h3 { font-size: 25px; }
p { margin: 0 0 1.4em; }
.site-shell { width: var(--shell); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 200;
  top: 10px;
  left: 10px;
  padding: 8px 12px;
  color: #111;
  background: #fff;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header { border-bottom: 1px solid var(--line); background: #151515; }
.header-inner { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 13px; color: #fff; text-decoration: none; }
.brand:hover, .brand:focus { color: #fff; }
.brand img { width: 150px; height: 41px; object-fit: contain; }
.brand span { display: grid; line-height: 1.05; }
.brand strong { font-family: "Arial Narrow", "Segoe UI", Arial, sans-serif; font-size: 22px; letter-spacing: .03em; text-transform: uppercase; }
.brand small { color: #aaa; font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.header-nav, .admin-nav-actions { display: flex; align-items: center; gap: 24px; }
.nav-link, .nav-action, .text-action {
  padding: 3px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  color: #d7d7d4;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-link:hover, .nav-link:focus, .nav-link.is-current,
.nav-action:hover, .nav-action:focus,
.text-action:hover, .text-action:focus { border-bottom-color: currentColor; color: #fff; }
.nav-action b, .cart-count {
  display: inline-grid;
  min-width: 22px;
  min-height: 22px;
  margin-left: 6px;
  padding: 1px 5px;
  border: 1px solid #666;
  color: #fff;
  font-size: 10px;
  place-items: center;
}

.catalog-main { min-height: calc(100vh - 160px); }
.catalog-heading {
  display: grid;
  align-items: end;
  padding: 64px 0 44px;
  border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.catalog-intro { max-width: 680px; margin: 18px 0 0; color: var(--muted); }
.text-action { border-bottom-color: currentColor; color: var(--accent); }
.light-action { color: #ddd; }
.catalog-section { padding: 30px 0 72px; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.catalog-toolbar p { margin: 0; color: var(--muted); font-size: 13px; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.catalog-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.catalog-card__image { position: relative; overflow: hidden; background: #101010; aspect-ratio: 4 / 3; }
.catalog-card__image > img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.catalog-card__placeholder { display: grid; width: 100%; min-height: 240px; height: 100%; color: #888; place-items: center; }
.catalog-card__status, .catalog-card__count {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 4px 7px;
  border: 1px solid #555;
  color: #fff;
  background: rgba(15, 15, 15, .86);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.catalog-card__status { left: 12px; }
.catalog-card__count { right: 12px; }
.catalog-card__arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  width: 38px;
  height: 54px;
  padding: 0;
  border: 1px solid #555;
  color: #fff;
  background: rgba(0, 0, 0, .7);
  font-size: 32px;
  cursor: pointer;
  place-items: center;
  transform: translateY(-50%);
}
.catalog-card__arrow:hover, .catalog-card__arrow:focus { background: var(--accent-strong); }
.catalog-card__arrow--prev { left: -1px; }
.catalog-card__arrow--next { right: -1px; }
.catalog-card__body { padding: 20px; }
.catalog-card__title-row { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.catalog-card__price { flex: 0 0 auto; color: #fff; font-weight: 600; }
.catalog-card__price.is-quote { color: var(--accent); }
.catalog-card__description {
  display: -webkit-box;
  min-height: 68px;
  overflow: hidden;
  margin: 14px 0 18px;
  color: var(--muted);
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.catalog-card__actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.card-link {
  padding: 3px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: var(--accent);
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.card-link:hover, .card-link:focus, .card-link.is-added { color: #fff; }
.catalog-loader, .empty-state {
  grid-column: 1 / -1;
  padding: 30px;
  border: 1px dashed #666;
  color: var(--muted);
  background: var(--surface);
  text-align: center;
}
.catalog-loader span {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 8px;
  border: 2px solid #777;
  border-top-color: #ddd;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.primary-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid #111;
  color: #fff;
  background: #202020;
  font-weight: 700;
  cursor: pointer;
}
.primary-button:hover, .primary-button:focus { background: #000; }
.primary-button:disabled { cursor: not-allowed; opacity: .55; }
.wide-button { width: 100%; }
.secondary-button {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid #777;
  color: #eee;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.secondary-button:hover, .secondary-button:focus { background: #444; }
.icon-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  padding: 0;
  border: 1px solid #888;
  color: var(--ink);
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  place-items: center;
}
.icon-button:hover, .icon-button:focus { background: rgba(0, 0, 0, .08); }

.page-overlay {
  position: fixed;
  z-index: 80;
  inset: 0;
  visibility: hidden;
  background: rgba(0, 0, 0, .72);
  opacity: 0;
  transition: opacity .2s ease, visibility .2s ease;
}
.page-overlay.is-open { visibility: visible; opacity: 1; }
.cart-drawer {
  position: fixed;
  z-index: 90;
  top: 0;
  right: 0;
  width: min(100%, 520px);
  height: 100dvh;
  overflow-y: auto;
  padding: 28px;
  color: var(--ink);
  background: var(--paper);
  transform: translateX(102%);
  transition: transform .25s ease;
}
.cart-drawer.is-open { transform: none; }
.drawer-header { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.drawer-header h2, .detail-copy h2 { color: var(--ink); }
.cart-items { display: grid; gap: 10px; margin: 22px 0; }
.cart-items .empty-state { color: #555; background: #fff; border-color: #aaa; }
.cart-item {
  display: grid;
  align-items: center;
  padding: 9px;
  border: 1px solid #c9c9c5;
  background: #fff;
  grid-template-columns: 68px 1fr 32px;
  gap: 12px;
}
.cart-item img, .cart-item__placeholder { width: 68px; height: 56px; background: #ddd; object-fit: cover; }
.cart-item strong, .cart-item span { display: block; }
.cart-item span { color: #666; font-size: 12px; }
.remove-button { border: 0; color: #555; background: transparent; cursor: pointer; }
.quote-cart-form { padding-top: 20px; border-top: 1px solid #c7c7c3; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field { min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .price-mode-field legend {
  display: block;
  margin-bottom: 6px;
  color: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.field label span { color: #777; font-size: 10px; text-transform: none; }
.field input, .field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #a9a9a5;
  outline: none;
  color: var(--ink);
  background: #fff;
}
.field textarea { min-height: 120px; }
.field input:focus, .field textarea:focus { border-color: var(--accent-strong); box-shadow: 0 0 0 2px rgba(93, 147, 181, .2); }
.form-status { min-height: 22px; margin: 14px 0 8px; font-size: 13px; }
.form-status.is-error { color: #c64a4a; }
.form-status.is-success { color: #287540; }

.detail-modal {
  position: fixed;
  z-index: 95;
  inset: 50% auto auto 50%;
  display: grid;
  visibility: hidden;
  width: min(940px, calc(100vw - 40px));
  max-height: min(720px, calc(100dvh - 40px));
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  opacity: 0;
  transform: translate(-50%, -48%);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.detail-modal.is-open { visibility: visible; opacity: 1; transform: translate(-50%, -50%); }
.detail-close { position: absolute; z-index: 4; top: 14px; right: 14px; background: rgba(242, 242, 239, .9); }
.detail-gallery { position: relative; display: grid; min-height: 530px; background: #111; place-items: center; }
.detail-gallery > img { width: 100%; height: 100%; max-height: 720px; object-fit: contain; cursor: zoom-in; }
.gallery-controls {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
}
.gallery-controls .icon-button { border-color: rgba(255,255,255,.55); color: #fff; background: rgba(0,0,0,.65); }
.detail-copy { overflow-y: auto; padding: 58px 32px 32px; }
.detail-price { color: var(--accent-strong); font-size: 19px; font-weight: 700; }
.detail-description { color: #4d4d4d; white-space: pre-line; }

.image-viewer {
  position: fixed;
  z-index: 140;
  inset: 0;
  display: grid;
  visibility: hidden;
  color: #fff;
  background: rgba(0, 0, 0, .96);
  opacity: 0;
  place-items: center;
  transition: opacity .16s ease, visibility .16s ease;
}
.image-viewer.is-open { visibility: visible; opacity: 1; }
.image-viewer__close { position: absolute; z-index: 3; top: 18px; right: 18px; border-color: #777; color: #fff; background: #151515; }
.image-viewer__stage {
  display: grid;
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 70px 28px 100px;
  cursor: zoom-in;
  place-items: center;
  touch-action: none;
}
.image-viewer__stage.is-zoomed { cursor: grab; }
.image-viewer__stage.is-zoomed:active { cursor: grabbing; }
.image-viewer__stage img {
  max-width: min(94vw, 1800px);
  max-height: calc(100dvh - 170px);
  object-fit: contain;
  transform-origin: center;
  transition: transform .1s ease;
  user-select: none;
  -webkit-user-drag: none;
}
.image-viewer__stage.is-zoomed img { transition: none; }
.image-viewer__controls {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 42px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.image-viewer__controls .icon-button { border-color: #777; color: #fff; background: #151515; }
.zoom-level { min-width: 70px; min-height: 40px; border: 1px solid #777; color: #fff; background: #151515; cursor: pointer; }
.image-viewer__hint { position: absolute; right: 14px; bottom: 8px; left: 14px; margin: 0; color: #aaa; font-size: 11px; text-align: center; }

.site-footer { border-top: 1px solid var(--line); color: #92928e; background: #111; }
.footer-inner { display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 20px; font-size: 11px; }

.auth-body { min-height: 100dvh; }
.auth-main { display: grid; min-height: calc(100dvh - 79px); padding: 48px 22px; place-items: center; }
.auth-card { width: min(100%, 460px); padding: 38px; border: 1px solid var(--line); border-top: 3px solid var(--accent-strong); background: var(--surface); }
.auth-card h1 { margin-bottom: 14px; font-size: 54px; }
.auth-card > p:not(.eyebrow) { color: var(--muted); }
.auth-fields { display: grid; gap: 18px; margin: 26px 0 5px; }
.auth-card .field label { color: #eee; }
.back-link { display: inline-block; margin-top: 22px; }

.admin-loading { display: grid; min-height: 100dvh; padding: 25px; color: #ddd; background: #171717; text-align: center; place-items: center; }
.admin-user { max-width: 230px; overflow: hidden; color: #aaa; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.admin-main { min-height: calc(100dvh - 79px); padding: 46px 0 72px; }
.admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 30px; }
.admin-heading h1 { font-size: 62px; }
.admin-heading > p { max-width: 480px; margin: 0 0 8px; color: var(--muted); }
.admin-tabs { display: flex; border-bottom: 1px solid var(--line); }
.admin-tab {
  padding: 13px 18px;
  border: 0;
  border-bottom: 3px solid transparent;
  color: #aaa;
  background: transparent;
  font-weight: 600;
  cursor: pointer;
}
.admin-tab.is-active { border-bottom-color: var(--accent); color: #fff; }
.admin-panel { padding-top: 26px; }
.admin-grid { display: grid; align-items: start; grid-template-columns: minmax(340px, .88fr) minmax(0, 1.12fr); gap: 24px; }
.admin-card { padding: 25px; border: 1px solid var(--line); background: var(--surface); }
.admin-grid .admin-card:first-child { position: sticky; top: 18px; }
.admin-card-header { padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.admin-card-header h2 { margin-bottom: 5px; }
.admin-card-header p { margin: 0; color: #aaa; font-size: 12px; }
.admin-form { display: grid; gap: 18px; }
.admin-form .field label, .price-mode-field legend { color: #eee; }
.price-mode-field { padding: 0; border: 0; }
.price-mode-field label { display: inline-flex; align-items: center; gap: 7px; padding: 8px 0; margin-right: 18px; border-bottom: 1px solid #666; color: #ddd; cursor: pointer; }
.photo-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.photo-action {
  position: relative;
  display: grid;
  min-height: 105px;
  align-content: center;
  padding: 18px;
  border: 1px dashed #777;
  color: #ddd;
  background: #1d1d1d;
  text-align: center;
  cursor: pointer;
}
.photo-action:hover, .photo-action.is-dragging { border-color: var(--accent); background: #26333a; }
.photo-action-camera { border-style: solid; border-color: var(--accent-strong); }
.photo-action input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.photo-action strong, .photo-action span { display: block; }
.photo-action span, .photo-help { color: #999; font-size: 11px; }
.photo-help { margin: -10px 0 0; }
.image-previews { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.image-preview { position: relative; overflow: hidden; background: #111; aspect-ratio: 1; }
.image-preview img { width: 100%; height: 100%; object-fit: cover; }
.image-preview button { position: absolute; top: 4px; right: 4px; width: 27px; height: 27px; border: 1px solid #777; color: #fff; background: rgba(0,0,0,.82); cursor: pointer; }
.checkbox-field { display: flex; align-items: center; gap: 9px; color: #ddd; }
.progress-track { overflow: hidden; height: 4px; background: #111; }
.progress-bar { width: 0; height: 100%; background: var(--accent-strong); transition: width .15s ease; }
.admin-form-actions { display: flex; align-items: center; gap: 16px; }
.inventory-list, .inquiry-list { display: grid; gap: 10px; }
.inventory-row {
  display: grid;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  background: #1d1d1d;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 14px;
}
.inventory-row__image, .inventory-row__placeholder { width: 96px; height: 74px; background: #111; object-fit: cover; }
.inventory-row h3 { margin: 0 0 4px; font-family: "Inter", Arial, sans-serif; font-size: 14px; }
.inventory-row p { margin: 0; color: #aaa; font-size: 12px; }
.pill { display: inline-block; padding: 2px 6px; margin-left: 5px; color: #b6e2c1; background: #245331; font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }
.pill--draft { color: #ddd; background: #555; }
.inventory-row__actions { display: flex; gap: 7px; }
.inventory-row .icon-button, .inquiry-card .icon-button { border-color: #777; color: #eee; }
.inventory-row .icon-button:hover, .inquiry-card .icon-button:hover { background: #444; }
.inquiry-card { display: grid; padding: 20px; border: 1px solid var(--line); background: #1d1d1d; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; }
.inquiry-card.is-contacted { opacity: .62; }
.inquiry-card h3 { margin: 0 0 4px; }
.inquiry-card__meta, .inquiry-card__date { color: #aaa; font-size: 11px; }
.inquiry-card__items { margin: 15px 0; padding-left: 20px; }
.inquiry-card__items li { margin-bottom: 4px; }
.inquiry-card__message { padding: 12px; margin: 0; border-left: 3px solid var(--accent-strong); color: #ccc; background: #292929; white-space: pre-line; }
.inquiry-card__actions { display: flex; align-items: end; flex-direction: column; justify-content: space-between; gap: 18px; }
.inquiry-card__actions > div { display: flex; gap: 8px; }
.inquiry-card .primary-button { min-height: 36px; padding: 8px 12px; font-size: 12px; }

.toast {
  position: fixed;
  z-index: 120;
  right: 22px;
  bottom: 22px;
  visibility: hidden;
  max-width: min(370px, calc(100vw - 44px));
  padding: 13px 17px;
  border-left: 3px solid var(--accent-strong);
  color: #fff;
  background: #202020;
  opacity: 0;
  transform: translateY(12px);
  transition: .2s ease;
}
.toast.is-visible { visibility: visible; opacity: 1; transform: none; }
.toast.is-error { border-left-color: #c94b4b; }
.error-page { display: grid; min-height: 100dvh; padding: 28px; place-items: center; }
.error-page main { width: min(100%, 560px); padding: 34px; border: 1px solid var(--line); background: var(--surface); }

@media (max-width: 980px) {
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-grid .admin-card:first-child { position: static; }
}

@media (max-width: 760px) {
  :root { --shell: min(100% - 28px, 1180px); }
  .header-inner { min-height: 72px; }
  .brand img { width: 48px; height: 48px; }
  .brand strong { font-size: 19px; }
  .header-nav, .admin-nav-actions { gap: 14px; }
  .header-nav .nav-link:not(.is-current), .admin-user { display: none; }
  .catalog-heading { align-items: start; padding: 44px 0 32px; grid-template-columns: 1fr; gap: 22px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-card__description { min-height: 0; }
  .footer-inner { align-items: start; flex-direction: column; justify-content: center; padding-block: 20px; }
  .cart-drawer { padding: 22px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .detail-modal { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); grid-template-columns: 1fr; overflow-y: auto; }
  .detail-gallery { min-height: 300px; }
  .detail-copy { overflow: visible; padding: 44px 22px 24px; }
  .auth-main { padding: 30px 14px; }
  .auth-card { padding: 28px 20px; }
  .admin-main { padding-top: 34px; }
  .admin-heading { align-items: start; flex-direction: column; gap: 12px; }
  .image-viewer__stage { padding-inline: 10px; }
  .admin-tabs { overflow-x: auto; }
  .admin-tab { flex: 1 0 auto; }
  .admin-card { padding: 20px 15px; }
  .photo-actions { grid-template-columns: 1fr; }
  .image-previews { grid-template-columns: repeat(3, 1fr); }
  .inventory-row { grid-template-columns: 82px minmax(0, 1fr); }
  .inventory-row__image, .inventory-row__placeholder { width: 82px; height: 66px; }
  .inventory-row__actions { grid-column: 1 / -1; justify-content: flex-end; }
  .inquiry-card { grid-template-columns: 1fr; }
  .inquiry-card__actions { align-items: start; flex-direction: row; }
}

@media (max-width: 460px) {
  .brand span { display: none; }
  .nav-action { font-size: 11px; }
  .admin-nav-actions .nav-link { display: none; }
  .catalog-card__actions { align-items: stretch; flex-direction: column; }
  .image-previews { grid-template-columns: repeat(2, 1fr); }
}
