/* Shared look for the shop and the owner page: black, white, grainy streetwear. */
:root {
  --bg: #0a0a0a;
  --fg: #f2f2f2;
  --muted: #9a9a9a;
  --line: #222;
  --panel: #141414;
  --danger: #ff5a52;
  --radius: 14px;
  --heading: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.45 var(--body);
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--heading); font-weight: 900; letter-spacing: .01em; margin: 0; }
[hidden] { display: none !important; }

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

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel); color: var(--fg);
  font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--fg); color: #000; border-color: var(--fg); }
.btn-danger { color: var(--danger); }
.btn-block { width: 100%; }
.btn-icon { width: 44px; padding: 0; }

/* Chips (categories, sizes) */
.chip {
  flex: none; min-height: 38px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--fg);
  font-weight: 700; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--fg); color: #000; border-color: var(--fg); }
.chip:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }

/* Form fields */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > span { font-size: 14px; font-weight: 700; color: var(--muted); }
.input {
  width: 100%; min-height: 46px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #050505; color: var(--fg);
}
.input:focus { outline: 2px solid var(--fg); outline-offset: 1px; }
textarea.input { min-height: 84px; resize: vertical; }
.hint { font-size: 13px; color: var(--muted); }
.error { font-size: 14px; color: var(--danger); }

/* Bottom sheet */
.sheet {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0, 0, 0, .7);
}
.sheet-panel {
  width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto;
  background: var(--bg); border: 1px solid var(--line); border-bottom: 0;
  border-radius: 20px 20px 0 0;
  padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
  animation: sheet-up .2s ease-out;
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sheet-head h2 { font-size: 20px; }
/* Slide only: if a browser pauses animations, the panel is still fully visible. */
@keyframes sheet-up { from { transform: translateY(24px); } }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 80;
  transform: translateX(-50%);
  padding: 10px 18px; border-radius: 999px;
  background: var(--fg); color: #000; font-weight: 700;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .5);
}

@media (prefers-reduced-motion: reduce) {
  .sheet-panel, .toast { animation: none; }
}
