/* ALLGIY — Modern minimal kidswear */
:root {
  --bg: oklch(0.985 0.005 80);
  --bg-2: oklch(0.96 0.008 80);
  --ink: oklch(0.18 0.01 80);
  --ink-2: oklch(0.38 0.008 80);
  --ink-3: oklch(0.62 0.005 80);
  --line: oklch(0.88 0.008 80);
  --line-2: oklch(0.92 0.006 80);
  --accent: oklch(0.62 0.13 45);
  --accent-ink: oklch(0.99 0 0);

  /* category tints (placeholders) */
  --tint-1: oklch(0.93 0.025 50);   /* clay */
  --tint-2: oklch(0.93 0.025 140);  /* sage */
  --tint-3: oklch(0.93 0.025 230);  /* sky */
  --tint-4: oklch(0.93 0.025 80);   /* sand */
  --tint-5: oklch(0.93 0.025 320);  /* mauve */
  --tint-6: oklch(0.93 0.018 30);   /* terracotta */

  --maxw: 1440px;
  --pad: 32px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.005em;
}

.display {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; padding: 0; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font-family: inherit; }

/* App shell */
.app { min-height: 100vh; display: flex; flex-direction: column; }

/* Top utility bar */
.utilbar {
  background: var(--ink);
  color: var(--bg);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.utilbar .ticker { display: flex; gap: 32px; overflow: hidden; }
.utilbar .ticker span { white-space: nowrap; }

/* Header */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 68px;
}
.hdr .logo {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hdr .logo .dot {
  width: 7px; height: 7px; background: var(--accent); border-radius: 50%;
}
.hdr nav {
  display: flex;
  gap: 28px;
  font-size: 13px;
  letter-spacing: -0.01em;
}
.hdr nav a {
  padding: 8px 0;
  position: relative;
  color: var(--ink);
}
.hdr nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--ink);
}
.hdr .right {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  align-items: center;
}
.hdr .icon-btn {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  position: relative;
  transition: background 0.15s;
}
.hdr .icon-btn:hover { background: var(--bg-2); }
.hdr .icon-btn .badge {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 9px;
  font-weight: 600;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: oklch(0.28 0.015 80); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; padding: 16px 22px; }
.link { background: transparent; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font-size: 13px; cursor: pointer; }
.link:hover { color: var(--accent); }
.btn-sm { padding: 10px 16px; font-size: 12px; }
.btn-lg { padding: 18px 28px; font-size: 14px; }

/* Pill / chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: -0.005em;
  transition: all 0.15s;
  background: var(--bg);
}
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .x { font-size: 14px; line-height: 1; opacity: 0.6; }

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 64px var(--pad) 32px;
  margin-top: 96px;
  background: var(--bg);
}
.footer .row {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.footer .lockup .display { font-size: 56px; }
.footer .legal {
  max-width: var(--maxw);
  margin: 64px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Page main */
.page { flex: 1; }

/* Generic surfaces */
.hairline { border-top: 1px solid var(--line); }
.hairline-b { border-bottom: 1px solid var(--line); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* Drawer / overlay */
.scrim {
  position: fixed; inset: 0;
  background: oklch(0.18 0.01 80 / 0.4);
  z-index: 100;
  animation: fade 0.2s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 460px;
  max-width: 92vw;
  background: var(--bg);
  z-index: 101;
  display: flex;
  flex-direction: column;
  animation: slide-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes slide-in { from { transform: translateX(100%); } to { transform: translateX(0); } }

.drawer-search {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--bg);
  z-index: 101;
  border-bottom: 1px solid var(--line);
  animation: slide-down 0.25s ease;
}
@keyframes slide-down { from { transform: translateY(-100%); } to { transform: translateY(0); } }

.drawer-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
}
.drawer-hd h2 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.025em;
  margin: 0;
}
.drawer-bd { flex: 1; overflow-y: auto; }
.drawer-ft {
  border-top: 1px solid var(--line);
  padding: 24px 28px;
  background: var(--bg);
}

/* Image placeholder system */
.ph {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--tint-1);
}
.ph::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0,
      transparent 12px,
      oklch(1 0 0 / 0.18) 12px,
      oklch(1 0 0 / 0.18) 13px
    );
  opacity: 0.5;
}
.ph .ph-label {
  position: relative;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: oklch(0.3 0.01 80 / 0.55);
  text-align: center;
  padding: 0 12px;
  line-height: 1.6;
}

.ph.t1 { background: var(--tint-1); }
.ph.t2 { background: var(--tint-2); }
.ph.t3 { background: var(--tint-3); }
.ph.t4 { background: var(--tint-4); }
.ph.t5 { background: var(--tint-5); }
.ph.t6 { background: var(--tint-6); }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 13px;
  z-index: 200;
  animation: pop 0.25s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}
@keyframes pop {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Forms */
input[type="text"], input[type="email"], select {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 12px 0;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}
input[type="text"]:focus, input[type="email"]:focus, select:focus {
  border-bottom-color: var(--ink);
}

/* Checkout form fields — boxed style */
.checkout-field input {
  width: 100%;
  border: 1px solid var(--line);
  background: transparent;
  padding: 12px 14px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.15s;
}
.checkout-field input:focus {
  border-color: var(--ink);
}
.checkout-field input::placeholder { color: var(--ink-3); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }

/* Utilities */
.flex { display: flex; }
.col { display: flex; flex-direction: column; }
.center { display: flex; align-items: center; justify-content: center; }
.between { display: flex; align-items: center; justify-content: space-between; }
.gap-4 { gap: 16px; } .gap-2 { gap: 8px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.upper { text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; }
.aspect-3-4 { aspect-ratio: 3/4; }
.aspect-4-5 { aspect-ratio: 4/5; }
.aspect-1 { aspect-ratio: 1/1; }
.aspect-16-9 { aspect-ratio: 16/9; }
.aspect-2-3 { aspect-ratio: 2/3; }
