:root {
  color-scheme: dark;
  --bg: #090301;
  --text: #f7eee0;
  --muted: #d3b991;
  --accent: #c78d2f;
  --accent-2: #f1d4a3;
  --border: rgba(199, 141, 53, 0.22);
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: 'Libre Baskerville', Georgia, serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at top, rgba(255, 180, 70, 0.07), transparent 18%),
    linear-gradient(180deg, #140804 0%, #090301 50%, #070202 100%);
  background-repeat: no-repeat;
  color: var(--text);
}

body { overflow-x: hidden; }

.page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
}

/* ── Topbar ── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 22px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  background: rgba(10, 5, 3, 0.75);
  box-shadow: 0 18px 55px rgba(0,0,0,0.3);
  margin-bottom: 30px;
}

.brand { display: flex; align-items: center; gap: 16px; }
.brand h1, .brand p { margin: 0; }

.mark {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: rgba(199, 141, 53, 0.16);
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  color: var(--accent);
  border: 1px solid rgba(199, 141, 53, 0.28);
}

.brand h1 {
  font-family: 'Uncial Antiqua', serif;
  font-size: 1.2rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand p { color: var(--muted); font-size: 0.95rem; }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  font-size: 0.9rem;
  transition: background 180ms;
}
.social-link:hover { background: rgba(199,141,53,0.14); }
.social-link svg { width: 18px; height: 18px; fill: var(--text); }

/* ── Hero ── */
.hero {
  min-height: 58vh;
  display: grid;
  align-items: center;
  padding: 70px 48px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 36px;
  background:
    radial-gradient(circle at top left, rgba(255,183,84,0.1), transparent 20%),
    radial-gradient(circle at bottom right, rgba(255,100,45,0.06), transparent 22%);
  box-shadow: var(--shadow);
  margin-bottom: 60px;
}

.hero-copy { max-width: 660px; }

.eyebrow {
  margin: 0 0 16px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--accent);
}

.hero h2 {
  margin: 0 0 28px;
  font-family: 'Uncial Antiqua', serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 3.6vw, 4.4rem);
  line-height: 1.08;
  color: var(--accent-2);
  letter-spacing: 0.03em;
}

/* ── Buttons ── */
.cta-button, .buy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 180ms, box-shadow 180ms;
}

.cta-button {
  background: linear-gradient(135deg, rgba(199,141,53,0.95), rgba(228,184,112,0.92));
  color: #110f0d;
  border: 1px solid rgba(255,255,255,0.12);
}

.buy-button {
  width: 100%;
  background: linear-gradient(135deg, rgba(196,118,32,0.95), rgba(125,62,25,0.94));
  color: #110f0d;
  border: none;
  cursor: pointer;
}

.cta-button:hover, .buy-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.3);
}

/* ── Shop ── */
.shop-section { margin-bottom: 60px; }

.section-header { margin-bottom: 28px; }

.section-header h3 {
  margin: 0;
  font-family: 'Uncial Antiqua', serif;
  font-weight: 400;
  font-size: 2.2rem;
  color: var(--accent-2);
  letter-spacing: 0.04em;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  border-radius: 28px;
  overflow: hidden;
  background: rgba(14,10,8,0.9);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: var(--shadow);
}

.product-img-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #100a08;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-img-placeholder {
  width: 100%;
  height: 100%;
  background: #100a08;
}

.product-copy {
  padding: 20px 22px 22px;
}

.product-copy h4 {
  margin: 0 0 16px;
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--text);
}

/* ── Designs ── */
.designs-section { margin-bottom: 60px; }

.designs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.designs-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  border: 1px solid rgba(255,255,255,0.06);
  background: #0d0907;
}

/* ── Footer ── */
.site-footer {
  margin-top: 20px;
  padding: 28px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

/* ── Checkout Modal ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
  display: none;
}

.modal-backdrop:not([hidden]) {
  display: flex;
}

.modal {
  background: #120b08;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 36px;
  width: 100%;
  max-width: 420px;
  position: relative;
}

.modal h3 {
  margin: 0 0 6px;
  font-family: 'Uncial Antiqua', serif;
  font-size: 1.6rem;
  color: var(--accent-2);
}

.modal-product-name {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.modal-close {
  position: absolute;
  top: 16px; right: 20px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.size-btn {
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-family: 'Libre Baskerville', serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 150ms, border-color 150ms;
}

.size-btn:hover { background: rgba(199,141,53,0.12); border-color: var(--accent); }
.size-btn.selected { background: rgba(199,141,53,0.22); border-color: var(--accent); color: var(--accent-2); }

.modal-note {
  margin: 14px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* ── Success page ── */
.success-section {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  gap: 20px;
}

.success-icon {
  font-size: 3rem;
  color: var(--accent);
}

.success-section h2 {
  margin: 0;
  font-family: 'Uncial Antiqua', serif;
  font-size: 2.2rem;
  color: var(--accent-2);
}

.success-section p {
  margin: 0;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.8;
}

/* ── Responsive ── */
@media (max-width: 720px) {
  .page-shell { padding: 16px; }
  .topbar { flex-wrap: wrap; }
  .hero { padding: 42px 24px; }
  .designs-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
