/* FRIDAY SELECT SHOP — Editorial streetwear design system */
:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --ink-2: #1a1a1a;
  --mute: #6b6b6b;
  --mute-2: #9a9a9a;
  --line: #e8e8e8;
  --line-2: #d4d4d4;
  --surface: #f5f5f3;
  --surface-2: #ececea;
  --accent: #FF2D1F;
  --accent-ink: #ffffff;
  --ok: #1f8a4c;

  --f-sans: 'Space Grotesk', 'Noto Sans TC', -apple-system, system-ui, sans-serif;
  --f-display: 'Space Grotesk', 'Noto Sans TC', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 8px;
  --r-pill: 999px;

  --nav-h: 72px;
  --ticker-h: 32px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--f-sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  font-size: 14px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font: inherit; color: inherit; }

/* Typography helpers */
.eyebrow {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 500; color: var(--mute);
}
.mono { font-family: var(--f-mono); letter-spacing: -0.01em; }
.display {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.92;
}
.italic-slant { font-style: italic; }

/* Layout */
.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 24px; }
.container-wide { width: 100%; max-width: 1680px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 900px) {
  .container, .container-wide { padding: 0 40px; }
}

.row { display: flex; }
.col { display: flex; flex-direction: column; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.gap-16 { gap: 16px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; }
.between { justify-content: space-between; }
.center { justify-content: center; align-items: center; }
.middle { align-items: center; }

/* Ticker */
.ticker {
  height: var(--ticker-h);
  background: var(--ink); color: #fff;
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  overflow: hidden; white-space: nowrap;
  display: flex; align-items: center;
}
.ticker-track {
  display: inline-flex; gap: 48px;
  animation: ticker 45s linear infinite;
  padding-left: 48px;
}
.ticker-track span { display: inline-flex; align-items: center; gap: 12px; }
.ticker-track .dot { width: 4px; height: 4px; background: var(--accent); border-radius: 50%; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg); border-bottom: 1px solid var(--line);
  height: var(--nav-h);
}
.nav-inner {
  height: 100%; display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 24px;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 500;
  color: var(--ink); position: relative; padding: 6px 0;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px; background: var(--accent);
}
.nav-logo { justify-self: center; }
.nav-actions { justify-self: end; display: flex; gap: 20px; align-items: center; }
.nav-icon {
  width: 36px; height: 36px; display: inline-flex;
  align-items: center; justify-content: center;
  position: relative;
}
.nav-icon:hover { color: var(--accent); }
.nav-badge {
  position: absolute; top: 4px; right: 2px;
  background: var(--accent); color: #fff;
  font-size: 9px; font-family: var(--f-mono); font-weight: 600;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-inner { grid-template-columns: auto 1fr auto; }
  .nav-logo { justify-self: start; margin-left: 0; }
  .menu-btn { display: inline-flex !important; }
}
.menu-btn { display: none; width: 36px; height: 36px; align-items: center; justify-content: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; height: 48px; padding: 0 24px;
  font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 600;
  border: 1px solid var(--ink);
  background: var(--ink); color: #fff;
  transition: all 0.18s ease; cursor: pointer;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.accent { background: var(--accent); border-color: var(--accent); }
.btn.accent:hover { background: var(--ink); border-color: var(--ink); }
.btn.full { width: 100%; }
.btn.sm { height: 36px; padding: 0 16px; font-size: 11px; }
.btn.lg { height: 56px; padding: 0 32px; font-size: 13px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn.link {
  background: transparent; border: 0; color: var(--ink);
  padding: 0; height: auto; text-decoration: underline;
  text-underline-offset: 4px;
}
.btn.link:hover { color: var(--accent); background: transparent; }

/* Form */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--mute); font-weight: 500;
}
.input, .select, .textarea {
  height: 48px; padding: 0 14px;
  border: 1px solid var(--line-2); background: #fff;
  font-size: 14px; color: var(--ink);
  outline: none; transition: border-color 0.15s;
}
.textarea { height: auto; padding: 14px; resize: vertical; min-height: 100px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--ink); }

/* Placeholder image (gray frame) */
.ph {
  background:
    repeating-linear-gradient(
      45deg,
      transparent 0 20px,
      rgba(0,0,0,0.015) 20px 22px
    ),
    var(--surface);
  position: relative; overflow: hidden;
  border: 1px solid var(--line);
}
.ph::after {
  content: attr(data-label);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mute-2);
}
.ph-dark {
  background: var(--ink);
}
.ph-dark::after { color: rgba(255,255,255,0.4); }

/* Product card */
.product-card { cursor: pointer; display: flex; flex-direction: column; gap: 12px; }
.product-card .img-wrap {
  aspect-ratio: 4/5; background: var(--surface);
  position: relative; overflow: hidden;
}
.product-card .img-wrap .ph { position: absolute; inset: 0; }
.product-card .meta { display: flex; flex-direction: column; gap: 4px; padding: 0 2px; }
.product-card .title { font-size: 13px; font-weight: 500; letter-spacing: 0.01em; }
.product-card .sub { font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: 0.1em; }
.product-card .price { font-size: 13px; font-family: var(--f-mono); margin-top: 2px; }
.product-card .old { color: var(--mute); text-decoration: line-through; margin-right: 8px; }
.product-card .tag {
  position: absolute; top: 10px; left: 10px;
  background: var(--ink); color: #fff;
  font-size: 9px; font-family: var(--f-mono); font-weight: 600;
  letter-spacing: 0.12em; padding: 5px 8px; text-transform: uppercase;
}
.product-card .tag.accent { background: var(--accent); }
.product-card:hover .img-wrap::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0.03); z-index: 1;
}
.product-card .wish {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px; background: rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s; z-index: 2;
}
.product-card:hover .wish { opacity: 1; }

/* Section title */
.sec-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 24px; margin-bottom: 28px;
}
.sec-head .t { display: flex; flex-direction: column; gap: 8px; }
.sec-head h2 {
  font-family: var(--f-display); font-size: clamp(28px, 4vw, 48px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1;
}
.sec-head .more {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  display: inline-flex; gap: 6px; align-items: center; font-weight: 600;
}
.sec-head .more:hover { color: var(--accent); }

/* Footer */
.footer {
  background: var(--ink); color: #fff;
  padding: 64px 0 32px; margin-top: 80px;
}
.footer h4 {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-bottom: 20px; font-weight: 500;
}
.footer a { display: block; font-size: 13px; color: #fff; padding: 4px 0; }
.footer a:hover { color: var(--accent); }
.footer-grid {
  display: grid; gap: 48px;
  grid-template-columns: 1.4fr repeat(4, 1fr);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-bottom {
  margin-top: 64px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 11px; color: rgba(255,255,255,0.5);
  font-family: var(--f-mono); text-transform: uppercase; letter-spacing: 0.08em;
  flex-wrap: wrap;
}

/* Drawer */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  z-index: 60; opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 440px; max-width: 92vw; background: #fff;
  z-index: 61; transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  padding: 20px 24px; display: flex; justify-content: space-between;
  align-items: center; border-bottom: 1px solid var(--line);
}
.drawer-head h3 {
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600;
}
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 24px; }
.drawer-foot {
  border-top: 1px solid var(--line); padding: 20px 24px;
  display: flex; flex-direction: column; gap: 12px;
}

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 70; display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #fff; max-width: 480px; width: 100%;
  max-height: 90vh; overflow-y: auto;
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.4s ease both; }

/* Utility */
.divider { height: 1px; background: var(--line); width: 100%; }
.divider-v { width: 1px; background: var(--line); align-self: stretch; }
.tag-pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 12px;
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--line-2); border-radius: var(--r-pill);
  background: #fff;
}
.tag-pill.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.tag-pill.accent { background: var(--accent); color: #fff; border-color: var(--accent); }

.swatch {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid var(--line-2); display: inline-block;
  cursor: pointer; position: relative;
}
.swatch.active { outline: 1px solid var(--ink); outline-offset: 2px; }

.chip {
  min-width: 44px; height: 44px; padding: 0 14px;
  border: 1px solid var(--line-2); background: #fff;
  font-size: 12px; font-weight: 500; letter-spacing: 0.04em;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.15s;
}
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.disabled { opacity: 0.3; cursor: not-allowed; text-decoration: line-through; }

.breadcrumb {
  display: flex; gap: 8px; align-items: center;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--mute); padding: 20px 0;
}
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { color: var(--mute-2); }
.breadcrumb .cur { color: var(--ink); }

/* Countdown box */
.countdown {
  display: inline-flex; gap: 8px; font-family: var(--f-mono);
}
.countdown .box {
  background: #fff; border: 1px solid var(--line);
  min-width: 56px; padding: 10px 8px;
  text-align: center;
}
.countdown .box .n { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.countdown .box .l { font-size: 9px; color: var(--mute); letter-spacing: 0.14em; text-transform: uppercase; margin-top: 2px; }

/* Hide scrollbar (horizontal scrollers) */
.hide-scroll { scrollbar-width: none; }
.hide-scroll::-webkit-scrollbar { display: none; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; background: var(--ink); color: #fff;
  z-index: 80; display: none; flex-direction: column;
}
.mobile-menu.open { display: flex; }
.mobile-menu-head { padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; }
.mobile-menu a { padding: 16px 24px; font-size: 24px; font-family: var(--f-display); font-weight: 700; letter-spacing: -0.02em; }
.mobile-menu a:hover { color: var(--accent); }
