/* 21bangkok.com — shared theme, adapted from the reference e-commerce UI
   (Spartan font, #088178 teal accent, light #E3E6F3 header). */
@import url("https://fonts.googleapis.com/css2?family=Spartan:wght@100;200;300;400;500;600;700;800;900&display=swap");

:root {
  --accent: #088178;
  --accent-dark: #066a62;
  --bg-soft: #e3e6f3;
  --text-dark: #1a1a1a;
  --text-muted: #606063;
  --border-soft: #cce7d0;
  --danger: #ef3636;
  --radius: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Spartan", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  color: var(--text-dark);
  background: #fff;
}

/* Sticky footer for regular pages with short content.
   Scoped to non-flash/non-shop modes so fullscreen layouts remain intact. */
body:not(.flash-mode):not(.shop-mode) {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body:not(.flash-mode):not(.shop-mode) > #footer {
  margin-top: auto;
}

h1, h2, h3, h4 { color: var(--text-dark); }
h1 { font-size: 42px; line-height: 1.2; }
h2 { font-size: 32px; line-height: 1.3; }
h4 { font-size: 18px; }
p { font-size: 15px; color: var(--text-muted); margin: 10px 0 16px; }

a { color: inherit; text-decoration: none; }

.section { padding: 40px 80px; }
@media (max-width: 800px) {
  .section { padding: 30px 20px; }
}

/* ---------- Header ---------- */
#header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 80px;
  background: var(--bg-soft);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 999;
}
#header .logo {
  font-weight: 800;
  font-size: 22px;
  color: var(--accent);
  letter-spacing: 1px;
}
#navbar { display: flex; align-items: center; gap: 4px; list-style: none; }
#navbar li a {
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  border-radius: 6px;
  transition: 0.2s;
}
#navbar li a:hover, #navbar li a.active { color: var(--accent); }
@media (max-width: 800px) {
  #header { padding: 16px 20px; flex-wrap: wrap; gap: 10px; }
  #navbar { flex-wrap: wrap; justify-content: center; width: 100%; }
}

/* ---------- Buttons ---------- */
.btn {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  padding: 14px 34px;
  border-radius: 6px;
  background-color: var(--accent);
  cursor: pointer;
  border: none;
  outline: none;
  transition: 0.2s;
}
.btn:hover { background-color: var(--accent-dark); }
.btn.outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn.outline:hover { background: var(--accent); color: #fff; }
.btn:disabled { background: #bbb; cursor: not-allowed; }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #c22a2a; }
.btn.small { padding: 8px 16px; font-size: 13px; }

/* ---------- Hero / Countdown ---------- */
#hero {
  min-height: 70vh;
  width: 100%;
  background: linear-gradient(135deg, #f3f7f6 0%, var(--bg-soft) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}
#hero h4 { color: var(--accent); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
#hero h1 { color: var(--accent); margin-bottom: 10px; }
#hero p { max-width: 560px; }

.countdown {
  display: flex;
  gap: 18px;
  margin: 30px 0;
  flex-wrap: wrap;
  justify-content: center;
}
.countdown .box {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 18px 24px;
  min-width: 90px;
  box-shadow: 10px 10px 30px rgba(0,0,0,0.05);
}
.countdown .box .num { font-size: 36px; font-weight: 800; color: var(--accent); }
.countdown .box .label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Product cards ---------- */
.pro-container {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 20px;
}
.pro {
  width: 320px;
  padding: 14px 14px 20px;
  border: 1px solid var(--border-soft);
  border-radius: 25px;
  box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease;
}
.pro:hover { transform: translateY(-6px); box-shadow: 10px 20px 40px rgba(8,129,120,0.1); }
.pro img { width: 100%; border-radius: 18px; aspect-ratio: 1/1; object-fit: cover; }
.pro .des { padding: 14px 6px 4px; }
.pro .des h5 { font-size: 17px; margin-bottom: 6px; }
.pro .des .price { font-size: 18px; font-weight: 800; color: var(--accent); }
.pro .sizes { display: flex; gap: 8px; margin: 12px 0; }
.size-btn {
  border: 1px solid var(--border-soft);
  background: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.15s;
}
.size-btn.selected { background: var(--accent); border-color: var(--accent); color: #fff; }
.size-btn:disabled { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }
.stock-note { font-size: 12px; color: var(--text-muted); margin-top: -6px; margin-bottom: 10px; }

/* ---------- Forms ---------- */
.form-card {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 10px 10px 30px rgba(0,0,0,0.04);
}
label { display: block; font-weight: 700; font-size: 13px; margin: 16px 0 6px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}

input:focus, textarea:focus, select:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 100px; }
.hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.field-error { color: var(--danger); font-size: 13px; margin-top: 6px; display: none; }

/* ---------- Status badges ---------- */
.badge { display: inline-block; padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 700; }
.badge.pending { background: #fff4cc; color: #8a6d00; }
.badge.review { background: #cfe8ff; color: #0b5c9b; }
.badge.confirmed { background: #d7f5e0; color: var(--accent-dark); }
.badge.rejected { background: #ffd9d9; color: #a31818; }
.badge.shipped { background: #e3d9ff; color: #5a2fae; }
.badge.cancelled { background: #eee; color: #666; }

/* ---------- Alerts ---------- */
.alert { border-radius: 10px; padding: 14px 18px; font-size: 14px; margin: 16px 0; }
.alert.success { background: #d7f5e0; color: var(--accent-dark); }
.alert.error { background: #ffd9d9; color: #a31818; }
.alert.info { background: #cfe8ff; color: #0b5c9b; }

/* ---------- Footer ---------- */
#footer {
  background: #0a0a23;
  color: #cfcfcf;
  padding: 40px 80px;
  text-align: center;
  margin-top: 60px;
}
#footer p { color: #9a9a9a; }

/* ---------- Utility ---------- */
.center-text { text-align: center; }
.muted { color: var(--text-muted); }
.hidden { display: none !important; }
table { width: 100%; border-collapse: collapse; }
table th, table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eee; font-size: 14px; }
table th { font-size: 12px; text-transform: uppercase; color: var(--text-muted); }

/* =====================================================================
   Flash-drop experience — index.html (countdown -> reveal) and shop.html
   (fullscreen product picker). Deliberately a darker, monochrome +
   single-blue-accent register (matches the black/white shirts) distinct
   from the rest of the site's light/teal chrome. Scoped to
   body.flash-mode / body.shop-mode so other pages are untouched.
   ===================================================================== */
:root {
  --fd-bg: #07070a;
  --fd-bg-soft: #121218;
  --fd-fg: #f5f6fa;
  --fd-fg-muted: #9497a3;
  --fd-line: rgba(255, 255, 255, 0.09);
  --fd-blue: #3b6cf6;
  --fd-blue-soft: rgba(59, 108, 246, 0.4);
}

body.flash-mode, body.shop-mode { background: var(--fd-bg); }

/* ---- Fullscreen stage machinery (crossfade between stages) ---- */
.stage {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--fd-fg);
  background: var(--fd-bg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 1.1s ease, filter 1.1s ease;
  z-index: 10;
}
.stage.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.stage.is-leaving { opacity: 0; filter: blur(14px); }

/* ---- Countdown stage: while counting down, this is the ONLY thing visible ---- */
#countdown-stage {
  background: radial-gradient(circle at 50% 28%, #15151d 0%, #07070a 72%);
  padding: 20px;
}
.fd-kicker {
  font-size: 12px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--fd-blue);
  font-weight: 700;
  margin-bottom: 18px;
}
.fd-wordmark {
  font-size: 15px;
  letter-spacing: 5px;
  color: var(--fd-fg-muted);
  text-transform: uppercase;
  margin-bottom: 44px;
}
#cd-status { color: var(--fd-fg-muted); font-size: 15px; margin: 30px 0 0; }
.cd-grid { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.cd-grid .box {
  background: var(--fd-bg-soft);
  border: 1px solid var(--fd-line);
  border-radius: 18px;
  padding: 22px 28px;
  min-width: 104px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55);
}
.cd-grid .num {
  font-size: 48px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--fd-fg);
  text-shadow: 0 0 34px var(--fd-blue-soft);
}
.cd-grid .label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--fd-fg-muted); margin-top: 6px; }
@media (max-width: 640px) {
  .cd-grid .box { min-width: 70px; padding: 16px 12px; }
  .cd-grid .num { font-size: 30px; }
}

/* ---- Closed stage ---- */
#closed-stage h1 { color: var(--fd-fg); margin: 12px 0; }
#closed-stage p { color: var(--fd-fg-muted); max-width: 460px; }
#closed-stage a { color: var(--fd-blue); text-decoration: underline; }
#closed-stage .btn { background: var(--fd-blue); text-decoration: none; }
#closed-stage .btn:hover { background: #2a56d8; }

/* ---- Reveal stage (shown once the sale is open) ---- */
#reveal-stage { display: block; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.reveal-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 60px;
  z-index: 20;
  background: linear-gradient(to bottom, rgba(7, 7, 10, 0.92), transparent);
}
.reveal-nav .logo { font-weight: 800; letter-spacing: 2px; color: var(--fd-fg); }
.reveal-nav ul { display: flex; gap: 4px; list-style: none; }
.reveal-nav a { padding: 8px 16px; font-size: 14px; font-weight: 600; color: var(--fd-fg-muted); border-radius: 6px; transition: 0.2s; }
.reveal-nav a:hover, .reveal-nav a.active { color: var(--fd-fg); }
@media (max-width: 640px) {
  .reveal-nav { padding: 18px 20px; }
}

.reveal-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 130px 20px 60px;
}
.reveal-hero h4 { color: var(--fd-blue); letter-spacing: 3px; text-transform: uppercase; font-size: 13px; margin-bottom: 14px; }
.reveal-hero h1 { color: var(--fd-fg); margin-bottom: 10px; }
.reveal-hero p { color: var(--fd-fg-muted); max-width: 520px; margin: 0 auto 30px; }
.reveal-hero img {
  max-width: 560px;
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.6);
  margin-bottom: 40px;
}
.reveal-hero .btn { background: var(--fd-blue); }
.reveal-hero .btn:hover { background: #2a56d8; }
#reveal-stage #footer { background: #000; margin-top: 0; }

/* ---- Fullscreen shop picker (shop.html) ---- */
.shop-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 50px;
  z-index: 30;
  background: linear-gradient(to bottom, rgba(7, 7, 10, 0.88), transparent);
  color: var(--fd-fg);
}
.shop-nav .logo { font-weight: 800; letter-spacing: 2px; color: var(--fd-fg); }
.shop-nav a.back { font-size: 14px; font-weight: 600; color: var(--fd-fg-muted); }
.shop-nav a.back:hover { color: var(--fd-fg); }
@media (max-width: 640px) {
  .shop-nav { padding: 16px 20px; }
}

.shop-full {
  min-height: 100vh;
  width: 100%;
}

.shop-carousel {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
}

.shop-track {
  display: flex;
  width: 100%;
  height: 100vh;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.product-panel {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  min-height: 100%;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  background-color: var(--fd-bg-soft);
  overflow: hidden;
}
.product-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.28) 52%, rgba(0, 0, 0, 0.12) 100%);
  transition: background 0.3s;
}
.product-panel:hover::before { background: linear-gradient(to top, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.4) 58%, rgba(0, 0, 0, 0.18) 100%); }
.product-panel .panel-body {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 760px;
  padding: 50px 50px 70px;
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.75s ease;
}
.product-panel.is-active .panel-body {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.product-panel h5 { font-size: 28px; font-weight: 800; letter-spacing: 1px; margin-bottom: 8px; color: var(--fd-fg); }
.product-panel .preorder-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--fd-blue);
  border: 1px solid var(--fd-blue);
  border-radius: 999px;
  padding: 2px 10px;
  margin-left: 8px;
  vertical-align: middle;
}
.product-panel .price { font-size: 22px; font-weight: 700; color: var(--fd-blue); margin-bottom: 18px; }
.product-panel .sizes { display: flex; gap: 10px; margin-bottom: 16px; }
.product-panel .size-btn { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.28); color: var(--fd-fg); }
.product-panel .size-btn.selected { background: var(--fd-blue); border-color: var(--fd-blue); }
.product-panel .size-btn:disabled { opacity: 0.35; }
.product-panel .stock-note { color: rgba(245, 246, 250, 0.62); font-size: 12px; margin-top: -6px; margin-bottom: 18px; }
.product-panel .stock-note a { color: var(--fd-blue); text-decoration: underline; }
.product-panel .order-btn { width: 100%; background: var(--fd-fg); color: #07070a; }
.product-panel .order-btn:hover { background: #fff; }
.product-panel .order-btn:disabled { background: rgba(255, 255, 255, 0.15); color: rgba(255, 255, 255, 0.4); }

.shop-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 32;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(7, 7, 10, 0.35);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(3px);
  transition: background 0.2s, transform 0.2s;
}
.shop-nav-btn:hover {
  background: rgba(59, 108, 246, 0.8);
  transform: translateY(-50%) scale(1.05);
}
.shop-nav-btn.prev { left: 22px; }
.shop-nav-btn.next { right: 22px; }

.shop-dots {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 33;
}
.shop-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
  transition: 0.25s;
}
.shop-dot.active {
  width: 34px;
  border-radius: 999px;
  background: var(--fd-blue);
  box-shadow: 0 0 22px rgba(59, 108, 246, 0.65);
}

@media (max-width: 640px) {
  .shop-nav-btn {
    width: 44px;
    height: 44px;
    font-size: 24px;
  }
  .shop-nav-btn.prev { left: 12px; }
  .shop-nav-btn.next { right: 12px; }
  .product-panel .panel-body { padding: 30px 26px 40px; }
  .product-panel h5 { font-size: 22px; }
  .shop-dots { bottom: 18px; }
}

.shop-closed-stage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--fd-bg);
  color: var(--fd-fg);
  padding: 40px 20px;
}
.shop-closed-stage h4 { color: var(--fd-blue); letter-spacing: 3px; text-transform: uppercase; font-size: 13px; margin-bottom: 14px; }
.shop-closed-stage h1 { color: var(--fd-fg); margin-bottom: 10px; }
.shop-closed-stage p { color: var(--fd-fg-muted); max-width: 480px; }
.shop-closed-stage .btn { background: var(--fd-blue); }
.shop-closed-stage .btn:hover { background: #2a56d8; }
