/* shop.kyngsun.com — quiet gallery.
   Design tokens lifted from kyngsun.com so the two sites feel like one world. */

:root {
  --bg: #080808;
  --bg-card: #111;
  --bg-hover: #1a1a1a;
  --text: #ede8df;
  --text-muted: #7a756d;
  --accent: #c9943a;
  --accent-hover: #daa84e;
  --accent-dim: rgba(201, 148, 58, 0.15);
  --warm: #2a1f10;
  --radius: 6px;
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2rem;
  background: rgba(8, 8, 8, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.18em;
  color: var(--text);
}
.nav-logo:hover { color: var(--text); }
.nav-links { display: flex; gap: 1.75rem; }
.nav-links a {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(237, 232, 223, 0.6);
}
.nav-links a:hover { color: var(--text); }

/* MAIN */
.main { min-height: calc(100vh - 220px); }

/* GALLERY HERO */
.gallery-hero {
  text-align: center;
  padding: 6rem 2rem 3rem;
  background: linear-gradient(135deg, var(--warm) 0%, var(--bg) 100%);
}
.gallery-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: 0.06em;
  color: var(--text);
}
.gallery-sub {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* GALLERY GRID */
.gallery { padding: 3.5rem 2rem 5rem; max-width: 1200px; margin: 0 auto; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.75rem;
}
.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 1rem;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: 0.05em;
}
.gallery-empty p { font-size: 1.25rem; }
.gallery-empty-sub { font-size: 0.95rem; margin-top: 0.4rem; opacity: 0.7; }

/* PRODUCT CARD (used from Phase 2 on) */
.product-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  overflow: hidden;
  transition: background 0.2s, transform 0.15s;
}
.product-card:hover { background: var(--bg-hover); transform: translateY(-3px); }
.product-card img { width: 100%; display: block; aspect-ratio: 1; object-fit: cover; }
.product-card .product-info { padding: 1rem 1.1rem 1.25rem; }
.product-card .product-name {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text);
}
.product-card .product-price { color: var(--accent); margin-top: 0.25rem; }

/* BUTTON */
.btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 1.8rem;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s;
}
.btn:hover { background: var(--accent-hover); color: var(--bg); }

/* FOOTER */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2.5rem 2rem;
  text-align: center;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text);
}
.footer-sub { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.3rem; }
.footer-trust { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.8rem; }
.footer-trust a { color: var(--text-muted); text-decoration: underline; }
.footer-copy { color: var(--text-muted); font-size: 0.8rem; margin-top: 0.8rem; opacity: 0.6; }

/* product cards as links */
.product-card { display: block; color: var(--text); }
.product-card:hover { color: var(--text); }

/* PRODUCT DETAIL */
.product-detail {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 768px) { .product-detail { grid-template-columns: 1fr; gap: 2rem; } }
.product-detail-img img {
  width: 100%;
  border-radius: var(--radius);
  background: var(--bg-card);
  display: block;
}
.product-detail-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 2.6rem);
  letter-spacing: 0.04em;
  color: var(--text);
}
.product-detail-price {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0.5rem 0 2rem;
}
.buy-form label {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.buy-form select {
  width: 100%;
  max-width: 320px;
  padding: 0.8rem 1rem;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 1.75rem;
}
.buy-form .btn { margin-top: 0; }
/* THE ARTIST'S WORDS — verse under the buy form; art loud, frame silent */
.product-story {
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 440px;
}
.product-story-title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}
.product-story p {
  white-space: pre-line; /* stanza strings carry their own line breaks */
  font-size: 0.97rem;
  line-height: 1.95;
  color: var(--text);
}
.product-story p + p { margin-top: 1.25rem; }
.product-story-credit {
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.9rem;
}

.product-back { margin-top: 2rem; }
.product-back a { font-family: var(--font-display); letter-spacing: 0.08em; font-size: 0.85rem; }

/* CHECKOUT */
.checkout-page { max-width: 900px; margin: 0 auto; padding: 3.5rem 2rem 5rem; }
.checkout-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 2.6rem);
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}
.checkout-grid { display: grid; grid-template-columns: 300px 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 768px) { .checkout-grid { grid-template-columns: 1fr; } }
.checkout-summary {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}
.checkout-thumb { width: 100%; border-radius: var(--radius); margin-bottom: 1rem; }
.checkout-item-info h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: 0.03em; }
.checkout-meta { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.25rem; }
.checkout-price { color: var(--accent); font-family: var(--font-display); font-size: 1.3rem; margin-top: 0.5rem; }
.form-section { margin-bottom: 1.75rem; }
.form-section h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.checkout-form input {
  width: 100%;
  padding: 0.8rem 1rem;
  margin-bottom: 0.75rem;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
}
.checkout-form input::placeholder { color: var(--text-muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
#card-container {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 0.4rem 0.75rem;
  min-height: 48px;
}
.checkout-submit { width: 100%; margin-top: 0.5rem; padding: 1rem; font-size: 0.95rem; }
.checkout-error {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  background: rgba(180, 40, 40, 0.15);
  border: 1px solid rgba(180, 40, 40, 0.4);
  color: #f0c0c0;
  font-size: 0.9rem;
}
