/* The owner console. Built on the storefront's tokens so it follows the brand, but scoped
   under .console so nothing here can leak into a customer-facing screen. */
.console {
  --c-gap: 16px;
  --c-line: var(--line, #18151b);
  --c-paper: var(--paper, #fffdf8);
  --c-ink: var(--ink, #18151b);
  --c-muted: var(--muted, #6d6574);
  --c-accent: var(--coral, #f27662);
  --c-ok: var(--green, #318b55);
  --c-wait: var(--gold, #c89550);
  --c-off: var(--plum, #9e3158);
  padding-bottom: 80px;
}
.console-shell { width: min(1080px, 100% - 32px); margin: 0 auto; padding-top: 20px; }
.console-shell.narrow { max-width: 460px; }
/* Sections: a scrollable strip on a phone, a plain row on a desktop. */
.console-nav {
  display: flex; align-items: center; gap: 6px; margin-bottom: 22px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.console-nav::-webkit-scrollbar { display: none; }
.console-nav a, .console-signout {
  flex: none; padding: 8px 14px; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-size: .84rem; font-weight: 700; color: var(--c-muted);
  background: none; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.console-nav a:hover, .console-signout:hover { color: var(--c-ink); }
.console-nav a.active { background: var(--c-ink); color: var(--c-paper); }
.console-nav-spacer { flex: 1 1 auto; min-width: 8px; }
.console-head { margin-bottom: 20px; }
.console-head h1 { margin: 2px 0 4px; font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.05; }
.console-head .muted { margin: 0; font-size: .9rem; }
@media (max-width: 720px) {
  .console-shell { width: calc(100% - 24px); }
}

/* Adding a product: a photo you can see and four fields that matter. Console-only. */
.console .product-form-main { display: grid; grid-template-columns: 160px 1fr; gap: 18px; align-items: start; }
.console .photo-drop { position: relative; display: grid; place-items: center; aspect-ratio: 4/5; border: 2px dashed var(--c-line); border-radius: 16px; background: var(--cream, #f5efff); color: var(--c-muted); font-size: .78rem; text-align: center; cursor: pointer; overflow: hidden; }
.console .photo-drop img { width: 100%; height: 100%; object-fit: cover; }
.console .photo-drop svg { width: 22px; }
.console .photo-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.console .product-form-fields { display: flex; flex-direction: column; gap: 12px; }
.console .product-more { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--c-line); }
.console .product-more summary { cursor: pointer; font-size: .82rem; font-weight: 800; color: var(--c-off); }
.console .product-more[open] summary { margin-bottom: 14px; }
.console #margin-hint.warn { color: var(--c-off); font-weight: 700; }
@media (max-width: 640px) {
  .console .product-form-main { grid-template-columns: 1fr; }
  .console .photo-drop { aspect-ratio: 16/9; }
}

/* A product has a gallery: the first picture leads, the rest follow. */
.console .photo-stack { display: flex; flex-direction: column; gap: 10px; }
.console .photo-shot { position: relative; margin: 0; border: 2px solid var(--c-line); border-radius: 14px; overflow: hidden; background: var(--cream, #f5efff); }
.console .photo-shot img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.console .photo-shot.lead { border-color: var(--c-accent); }
.console .photo-shot figcaption { position: absolute; left: 8px; bottom: 8px; padding: 3px 9px; border-radius: 999px; background: var(--c-accent); color: #fff; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.console .photo-make-lead { position: absolute; left: 8px; bottom: 8px; padding: 4px 10px; border-radius: 999px; border: 1.5px solid var(--c-line); background: var(--c-paper); font: inherit; font-size: .68rem; font-weight: 700; cursor: pointer; }
.console .photo-drop-one { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--c-line); background: var(--c-paper); font-size: .8rem; line-height: 1; cursor: pointer; }
.console .photo-drop.more { aspect-ratio: 16/6; }
