@font-face {
  font-family: 'YeTest';
  font-style: normal;
  font-weight: normal;
  src: url('../fonts/yetest-display.otf') format('opentype');
}
@font-face {
  font-family: 'YeezyTstar';
  src: url('../fonts/yeezy_tstar-bold-webfont.ttf') format('truetype');
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  background: #fff;
  color: #000;
}

body { font-family: 'YeezyTstar', sans-serif; }

.page { display: none; min-height: 100vh; flex-direction: column; }
.page.active { display: flex; }

/* ══ TOP BAR ══ */
.top-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 36px 52px 0;
  position: relative;
}

.top-bar .logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

#countdown {
  font-family: 'YeezyTstar', sans-serif;
  font-size: 30px;
  letter-spacing: 0.03em;
  color: #000;
  line-height: 1;
}

.logo { text-align: center; line-height: 1.15; }

.logo-the {
  display: block;
  font-family: 'YeezyTstar', sans-serif;
  font-size: 19px;
  letter-spacing: 0.18em;
  color: #000;
}

.logo-name {
  display: block;
  font-family: 'YeTest';
  font-size: 42px;
  color: #000;
  letter-spacing: 0.01em;
}

.top-right { display: flex; align-items: center; gap: 30px; }

/* ── Member number + hover tooltip ── */
.member-wrap {
  position: relative;
  display: inline-block;
}

.member-num {
  font-family: 'YeezyTstar', sans-serif;
  font-size: 26px;
  letter-spacing: 0.05em;
  color: #000;
  cursor: pointer;
  display: block;
  line-height: 1;
}

.member-num.signed-in { cursor: default; }

.member-tooltip {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: #000;
  color: #fff;
  padding: 16px 20px;
  white-space: nowrap;
  z-index: 50;
  pointer-events: none;
}

.member-wrap:hover .member-tooltip { display: block; }

.tooltip-row {
  display: flex;
  gap: 10px;
  align-items: baseline;
  line-height: 2;
}

.tooltip-label {
  font-family: 'YeezyTstar', sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #666;
}

.tooltip-value {
  font-family: 'YeezyTstar', sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
}

.cart-label {
  font-family: 'YeezyTstar', sans-serif;
  font-size: 26px;
  letter-spacing: 0.1em;
  color: #000;
  cursor: pointer;
  position: relative;
  display: inline-block;
}

.cart-label:hover { opacity: 0.5; }

.cart-badge {
  display: none;
  position: absolute;
  top: -8px;
  right: -14px;
  background: #000;
  color: #fff;
  font-family: 'YeezyTstar', sans-serif;
  font-size: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
}

.cart-badge.visible { display: flex; }

.nav-cart {
  font-family: 'YeezyTstar', sans-serif;
  font-size: 15px;
  letter-spacing: 0.1em;
  color: #000;
  cursor: pointer;
  position: relative;
  display: inline-block;
}

.nav-cart:hover { opacity: 0.5; }

.nav-cart-badge {
  display: none;
  position: absolute;
  top: -8px;
  right: -14px;
  background: #000;
  color: #fff;
  font-family: 'YeezyTstar', sans-serif;
  font-size: 9px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
}

.nav-cart-badge.visible { display: flex; }

/* ══ GRID ══ */
.archive-grid {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

.drop-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  width: 100%;
}

.drop-label {
  font-family: 'YeezyTstar', sans-serif;
  font-size: 16px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #aaa;
  text-align: center;
  margin-bottom: 24px;
}

.wip-label {
  font-family: 'YeTest';
  font-size: 96px;
  letter-spacing: 0.02em;
  color: #000;
  line-height: 1;
  text-align: center;
}

.order-btn {
  font-family: 'YeezyTstar', sans-serif;
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  background: #000;
  color: #fff;
  border: none;
  padding: 22px 80px;
  cursor: pointer;
  transition: opacity 0.2s;
  display: block;
}

.order-btn-lg {
  font-size: 16px;
  padding: 28px 120px;
  letter-spacing: 0.35em;
}

.order-btn:hover { opacity: 0.65; }

/* ══ FOOTER ══ */
footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  align-items: center;
  padding: 32px 52px 40px;
}

footer span {
  font-family: 'YeezyTstar', sans-serif;
  font-size: 18px;
  letter-spacing: 0.1em;
  color: #000;
  cursor: pointer;
  text-transform: uppercase;
  text-align: center;
}

footer span:first-child { text-align: left; }
footer span:last-child { text-align: right; }
footer span:nth-child(2) { text-align: center; }
footer span:nth-child(3) { text-align: center; }
footer span:hover { opacity: 0.4; }

/* ══ LOADING SCREEN ══ */
#loading-screen {
  display: none;
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 500;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#loading-screen.visible { display: flex; }

.loading-text {
  font-family: 'YeTest', serif;
  font-size: clamp(36px, 7vw, 72px);
  color: #000;
  letter-spacing: 0.08em;
  white-space: nowrap;
  line-height: 1;
}

.loading-letter {
  display: inline-block;
  clip-path: inset(0 100% 0 0);
  animation: letter-wipe 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.loading-space {
  width: 0.35em;
}

@keyframes letter-wipe {
  to { clip-path: inset(0 0% 0 0); }
}

/* ══ UNIVERSAL NAV ══ */
.page-nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-account {
  font-family: 'YeezyTstar', sans-serif;
  font-size: 15px;
  letter-spacing: 0.1em;
  color: #000;
  cursor: pointer;
}

.nav-account:hover { opacity: 0.5; }

/* ══ MOBILE ══ */
@media (max-width: 768px) {
  /* Header: one clean line — wordmark left, ACCOUNT/CART right */
  .top-bar {
    align-items: center;
    padding: 20px 20px 0;
  }
  .top-bar .logo {
    position: static;
    transform: none;
    flex: 1;
    text-align: left;
  }
  .logo-name  { font-size: 20px; }
  .logo-the   { font-size: 10px; letter-spacing: 0.14em; }
  .member-num { font-size: 14px; }
  .cart-label { font-size: 14px; }
  .top-right  { gap: 16px; }
  #countdown  { display: none; }

  /* Homepage: content vertically centred */
  .archive-grid {
    justify-content: center;
    padding: 20px;
  }
  .drop-center  { gap: 12px; align-items: center; }
  .drop-label   { font-size: 11px; letter-spacing: 0.15em; margin-bottom: 0; }
  .order-btn-lg { padding: 20px 72px; font-size: 13px; letter-spacing: 0.25em; display: block; margin: 0 auto; }

  /* Footer: keep 4 columns, shrink font so all links fit on one row */
  footer {
    grid-template-columns: repeat(4, 1fr);
    padding: 20px 16px 24px;
    gap: 0;
  }
  footer span              { font-size: 12px; letter-spacing: 0.06em; }
  footer span:first-child  { text-align: left; }
  footer span:nth-child(2) { text-align: center; }
  footer span:nth-child(3) { text-align: center; }
  footer span:last-child   { text-align: right; }
}
