/* ============================================================
   HOODBTC Shop — Night Water theme
   Same design family as hoodbtc.com / Token Factory / Games:
   deep night base #020607, living water video behind every page,
   Cormorant Garamond display type, hairline glass panels,
   neon-green capsule buttons. The water is plain markup with
   autoplay + loop and NO playback control anywhere: it moves
   continuously on every page for every visitor.
   ============================================================ */

:root {
  --bg: #020607;
  --card: #030c0b;
  --line: rgba(233, 242, 236, 0.13);
  --text: #eff3ec;
  --muted: #aeb8ae;
  --green: #35e87f;
  --green2: #6ff2a4;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --glass: linear-gradient(180deg, rgba(233, 242, 236, 0.03), rgba(233, 242, 236, 0)), rgba(3, 13, 12, 0.44);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --radius: 18px;
}

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

html { background: var(--bg); scroll-behavior: smooth; }

body {
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::selection { background: rgba(53, 232, 127, 0.28); color: #04140a; }
a { color: var(--green2); text-decoration: none; }
a:hover { color: var(--green); }

/* ---------- Living water ---------- */

#night-water-video {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  display: block; object-fit: cover;
  z-index: 0; pointer-events: none;
}
.water-shade {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, rgba(2,6,7,0) 40%, rgba(2,6,7,0.45) 100%);
}
header, main, footer { position: relative; z-index: 1; }
main { flex: 1; width: 100%; }

/* ---------- Header: Factory / Games pattern ---------- */

.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(2, 6, 7, 0.72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(111, 242, 164, 0.28);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.25);
}
.topbar-inner {
  max-width: 1180px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(111, 242, 164, 0.45); padding-bottom: 5px; }
.brand-glyph { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(53, 232, 127, 0.3)); }
.brand-glyph.small { width: 38px; height: 38px; }
.brand-text { display: flex; flex-direction: column; gap: 3px; }
.brand-name { font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--green2); line-height: 1; }
.brand-sub { font-size: 9px; font-weight: 600; letter-spacing: 0.35em; text-transform: uppercase; color: var(--muted); line-height: 1; }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { color: #c9d2c8; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.links a:hover { color: var(--green2); }
.cart-link { color: var(--text); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.cart-count { display: inline-block; min-width: 22px; text-align: center; background: var(--green); color: #04140a; border-radius: 999px; padding: 1px 7px; margin-left: 6px; font-size: 12px; }

/* ---------- Layout / glass ---------- */

.section { max-width: 1180px; margin: 0 auto; padding: 28px 20px; width: 100%; }
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.section-title { font-family: var(--serif); font-size: 34px; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 18px; }
.kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.35em; text-transform: uppercase; color: var(--green); margin-bottom: 10px; }

/* ---------- Hero ---------- */

.hero { text-align: center; padding: 84px 20px 40px; max-width: 860px; margin: 0 auto; }
.hero-glyph { width: 120px; height: 120px; object-fit: contain; filter: drop-shadow(0 0 22px rgba(53, 232, 127, 0.35)); }
.hero h1 { font-family: var(--serif); font-size: clamp(52px, 9vw, 92px); font-weight: 600; letter-spacing: 0.12em; line-height: 1.05; margin-top: 18px; }
.hero h1 em { font-style: italic; color: var(--green2); }
.hero-tag { font-size: clamp(18px, 3vw, 24px); color: var(--text); margin-top: 14px; }
.hero-sub { color: var(--muted); max-width: 560px; margin: 12px auto 28px; }

/* ---------- Buttons ---------- */

.btn-capsule {
  display: inline-block; border: 0; cursor: pointer;
  background: linear-gradient(180deg, var(--green2), var(--green));
  color: #04140a; font-family: var(--sans); font-size: 15px; font-weight: 700;
  letter-spacing: 0.04em; padding: 14px 34px; border-radius: 999px;
  box-shadow: 0 12px 34px rgba(53, 232, 127, 0.25);
}
.btn-capsule:hover { color: #04140a; filter: brightness(1.06); }
.btn-capsule:disabled { background: rgba(233,242,236,0.14); color: var(--muted); box-shadow: none; cursor: not-allowed; }
.text-link { font-weight: 600; }

/* ---------- Collection tiles ---------- */

.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 24px; color: var(--text); transition: transform .18s ease, border-color .18s ease; }
.tile:hover { transform: translateY(-3px); border-color: rgba(111, 242, 164, 0.45); color: var(--text); }
.tile-kicker { font-size: 10px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }
.tile-name { font-family: var(--serif); font-size: 27px; font-weight: 600; }
.tile-desc { color: var(--muted); font-size: 14px; flex: 1; }
.tile-cta { color: var(--green2); font-weight: 700; font-size: 14px; }

/* ---------- Page head / product grid ---------- */

.page-head { max-width: 1180px; margin: 0 auto; padding: 56px 20px 4px; width: 100%; }
.page-head h1 { font-family: var(--serif); font-size: clamp(40px, 6vw, 58px); font-weight: 600; letter-spacing: 0.05em; }
.page-sub { color: var(--muted); margin-top: 6px; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.product-card { display: flex; flex-direction: column; overflow: hidden; color: var(--text); }
.product-card:hover { color: var(--text); border-color: rgba(111, 242, 164, 0.45); }
.product-card .pc-media { aspect-ratio: 3/2; background: rgba(2,6,7,0.5); display: flex; align-items: center; justify-content: center; }
.product-card .pc-media img { width: 100%; height: 100%; object-fit: contain; }
.product-card .pc-body { padding: 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pc-name { font-weight: 600; }
.pc-price { color: var(--green2); font-weight: 700; margin-top: auto; }
.empty-state { padding: 36px; text-align: center; }
.empty-state h2 { font-family: var(--serif); font-size: 30px; margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin-bottom: 14px; }
.notice { padding: 30px; text-align: center; }
.notice-title { font-family: var(--serif); font-size: 30px; margin-bottom: 8px; }
.notice p { color: var(--muted); max-width: 620px; margin: 0 auto 14px; }

/* ---------- Product detail ---------- */

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.product-media { display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-media img { width: 100%; height: auto; display: block; object-fit: contain; }
.product-info h1 { font-family: var(--serif); font-size: 42px; font-weight: 600; line-height: 1.1; }
.price { font-size: 24px; font-weight: 700; color: var(--green2); margin: 10px 0; }
.product-desc { color: var(--muted); margin-bottom: 20px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field select, .field input {
  width: 100%; max-width: 280px; background: rgba(2,6,7,0.65); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font: inherit;
}
.added-note { margin-top: 12px; color: var(--green2); }

/* ---------- Cart ---------- */

.cart-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: center; padding: 14px 18px; }
.cart-item img { width: 72px; height: 72px; object-fit: contain; border-radius: 10px; background: rgba(2,6,7,0.5); }
.ci-name { font-weight: 600; }
.ci-variant { color: var(--muted); font-size: 13px; }
.ci-controls { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.qty-btn { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: rgba(2,6,7,0.6); color: var(--text); cursor: pointer; font-size: 16px; line-height: 1; }
.remove-btn { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 13px; text-decoration: underline; }
.ci-line { font-weight: 700; color: var(--green2); white-space: nowrap; }
.cart-summary { padding: 24px; }
.cart-summary h2 { font-family: var(--serif); font-size: 26px; margin-bottom: 14px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; }
.sum-row.muted { color: var(--muted); font-size: 14px; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 18px; }
.cart-summary .btn-capsule { width: 100%; text-align: center; margin-top: 16px; }
.sum-note { color: var(--muted); font-size: 13px; text-align: center; margin-top: 10px; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); background: rgba(2,6,7,0.72); backdrop-filter: blur(8px); margin-top: 40px; }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 34px 20px; display: flex; flex-direction: column; gap: 16px; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-name { font-family: var(--serif); letter-spacing: 0.25em; font-weight: 600; color: var(--green2); }
.footer-note, .footer-legal { color: var(--muted); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { font-weight: 600; font-size: 14px; }
.footer-contact { font-size: 14px; }

/* ---------- Policy pages ---------- */

.policy { padding: 34px 36px; max-width: 860px; }
.policy h2 { font-family: var(--serif); font-size: 26px; font-weight: 600; margin: 26px 0 8px; }
.policy h2:first-child { margin-top: 0; }
.policy p, .policy li { color: var(--muted); }
.policy p { margin-bottom: 12px; }
.policy ul { padding-left: 22px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 6px; }
.policy strong { color: var(--text); }
.policy .updated { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Responsive ---------- */

/* ---------- Mobile collection nav (phones only) ---------- */

.mobile-nav { display: none; }
@media (max-width: 760px) {
  .mobile-nav {
    display: flex; gap: 6px; overflow-x: auto;
    padding: 10px 16px; position: relative; z-index: 1;
    background: rgba(2, 6, 7, 0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .mobile-nav::-webkit-scrollbar { display: none; }
  .mobile-nav a {
    flex: 0 0 auto; color: #c9d2c8; font-size: 12px; font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
    padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px;
  }
  .mobile-nav a:hover { color: var(--green2); border-color: rgba(111, 242, 164, 0.45); }
}

@media (max-width: 760px) {
  .links { display: none; }
  .hero { padding-top: 56px; }
  .hero-glyph { width: 88px; height: 88px; }
  .product-detail, .cart-wrap { grid-template-columns: 1fr; }
  .topbar-inner { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile { transition: none; }
}

/* ---------- Order form ---------- */

.order-form { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 18px; }
.form-title { font-family: var(--serif); font-size: 22px; margin-bottom: 8px; }
.order-form .field select, .order-form .field input, .order-form .field textarea { max-width: none; }
.order-form .field textarea {
  width: 100%; background: rgba(2,6,7,0.65); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font: inherit; resize: vertical;
}
.hidden-field { display: none; }
