/* ============================================================
   FAZY — Premium Mahjong. In Stock. In Days.
   Black & gold brand system · US market DTC
   ============================================================ */

:root {
  --ink: #0a0a0f;
  --ink-2: #14141a;
  --ink-3: #1d1d26;
  --gold: #c9a227;
  --gold-bright: #e3c565;
  --cream: #f5f1e8;
  --muted: #8a8a93;
  --line: rgba(201, 162, 39, 0.28);
  --ok: #3fae6a;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--ink);
  color: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-bright); text-decoration: none; }
a:hover { color: #fff; }

img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo img { height: 44px; width: auto; }
.main-nav ul { display: flex; gap: 28px; list-style: none; }
.main-nav a {
  color: var(--cream); font-size: 14px; letter-spacing: 0.06em;
  text-transform: uppercase; font-weight: 600;
}
.main-nav a:hover { color: var(--gold-bright); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.cart-link { position: relative; color: var(--cream); font-size: 14px; font-weight: 600; }
.cart-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--gold); color: var(--ink);
  font-size: 12px; font-weight: 700; margin-left: 4px;
}
.nav-toggle { display: none; background: none; border: 0; color: var(--cream); font-size: 22px; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 30px; border-radius: 4px;
  font-weight: 700; font-size: 14px; letter-spacing: 0.08em;
  text-transform: uppercase; cursor: pointer; border: 0; transition: all 0.2s;
}
.btn-gold { background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: var(--ink); }
.btn-gold:hover { filter: brightness(1.1); color: var(--ink); }
.btn-outline { background: transparent; color: var(--gold-bright); border: 1px solid var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--ink); }
.btn-dark { background: var(--ink-3); color: var(--cream); border: 1px solid var(--line); }
.btn-dark:hover { border-color: var(--gold); }
.btn-lg { padding: 17px 38px; font-size: 15px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 110px 0 100px;
  background:
    radial-gradient(ellipse 60% 55% at 70% 20%, rgba(201, 162, 39, 0.16), transparent 60%),
    radial-gradient(ellipse 45% 45% at 15% 85%, rgba(201, 162, 39, 0.08), transparent 55%),
    linear-gradient(180deg, #0c0c12, var(--ink));
  border-bottom: 1px solid var(--line);
}
.hero .eyebrow {
  color: var(--gold-bright); letter-spacing: 0.14em; text-transform: uppercase;
  font-size: 13px; font-weight: 700; margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(40px, 6vw, 72px); line-height: 1.12;
  max-width: 760px; margin-bottom: 24px;
}
.hero h1 em { font-style: normal; color: var(--gold-bright); }
.hero .subhead {
  font-size: 18px; color: #c9c9d2; max-width: 620px; margin-bottom: 38px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }
.trust-bar {
  display: flex; gap: 30px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted); letter-spacing: 0.04em;
}
.trust-bar span { white-space: nowrap; }
.trust-bar .tick { color: var(--gold-bright); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-head { text-align: center; margin-bottom: 54px; }
.section-head .kicker {
  color: var(--gold); letter-spacing: 0.16em; text-transform: uppercase;
  font-size: 12px; font-weight: 700; margin-bottom: 12px;
}
.section-head h2 {
  font-family: var(--font-serif); font-size: clamp(30px, 4vw, 44px); font-weight: 700;
}
.section-head p { color: var(--muted); max-width: 560px; margin: 14px auto 0; font-size: 16px; }

/* Value props */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.value-card {
  background: var(--ink-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 36px 30px; text-align: center;
}
.value-card .icon { font-size: 34px; margin-bottom: 16px; }
.value-card h3 { font-family: var(--font-serif); font-size: 20px; margin-bottom: 10px; }
.value-card p { color: var(--muted); font-size: 14px; }

/* Product grid */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-card {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; transition: transform 0.2s, border-color 0.2s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.product-card .thumb {
  position: relative; background: #101018;
  aspect-ratio: 1/1; overflow: hidden;   /* keep square frame even if img fails */
}
.product-card .thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.product-card .badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--gold); color: var(--ink);
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em;
  padding: 5px 10px; border-radius: 3px;
  max-width: calc(100% - 28px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.product-card .body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.product-card .name {
  font-family: var(--font-serif); font-size: 17px; line-height: 1.35;
  margin-bottom: 6px; overflow-wrap: break-word;
}
.product-card .sub { color: var(--muted); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 12px; }
.product-card .price { font-size: 19px; font-weight: 800; color: var(--gold-bright); margin-bottom: 14px; }
.product-card .price .was { color: var(--muted); text-decoration: line-through; font-weight: 400; font-size: 14px; margin-left: 8px; }
.product-card .btn { margin-top: auto; text-align: center; }

/* Feature band (about/custom) */
.band {
  background: linear-gradient(135deg, #101018, #16161f);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.band h3 { font-family: var(--font-serif); font-size: 28px; margin-bottom: 16px; }
.band p { color: #c9c9d2; margin-bottom: 14px; }
.band ul { list-style: none; margin-top: 8px; }
.band li { padding: 7px 0 7px 26px; position: relative; color: #c9c9d2; }
.band li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); }

/* ---------- Product detail ---------- */
.pd { padding: 60px 0 90px; }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.pd-img { background: #101018; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pd-img img { width: 100%; }
.pd h1 { font-family: var(--font-serif); font-size: 36px; line-height: 1.2; margin-bottom: 10px; }
.pd .sub { color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-size: 13px; margin-bottom: 18px; }
.pd .price { font-size: 30px; font-weight: 800; color: var(--gold-bright); margin-bottom: 20px; }
.pd .price .was { color: var(--muted); text-decoration: line-through; font-size: 20px; font-weight: 400; margin-left: 10px; }
.pd .short { color: #c9c9d2; font-size: 16px; margin-bottom: 24px; }
.pd ul.selling { list-style: none; margin-bottom: 28px; }
.pd ul.selling li { padding: 8px 0 8px 30px; position: relative; color: #d6d6de; border-bottom: 1px dashed rgba(255,255,255,0.06); }
.pd ul.selling li::before { content: "✔"; position: absolute; left: 0; color: var(--gold); }
.qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.qty-row label { color: var(--muted); font-size: 14px; }
.qty-row input {
  width: 64px; padding: 9px; background: var(--ink-2); color: var(--cream);
  border: 1px solid var(--line); border-radius: 4px; text-align: center; font-size: 15px;
}
.specs { background: var(--ink-2); border: 1px solid var(--line); border-radius: 10px; padding: 24px; margin-top: 30px; }
.specs h4 { color: var(--gold); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.specs table { width: 100%; font-size: 14px; }
.specs td { padding: 7px 0; border-bottom: 1px dashed rgba(255,255,255,0.06); }
.specs td:first-child { color: var(--muted); width: 40%; }

/* ---------- Cart ---------- */
.cart-page { padding: 70px 0 90px; }
.cart-page h1 { font-family: var(--font-serif); font-size: 36px; margin-bottom: 34px; }
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; }
.cart-table th {
  text-align: left; color: var(--gold); font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 12px 10px; border-bottom: 1px solid var(--line);
}
.cart-table td { padding: 18px 10px; border-bottom: 1px dashed rgba(255,255,255,0.08); vertical-align: middle; }
.cart-table .cimg { width: 70px; border-radius: 6px; overflow: hidden; }
.cart-table .cname { font-weight: 600; }
.cart-table input { width: 56px; padding: 6px; background: var(--ink-2); color: var(--cream); border: 1px solid var(--line); border-radius: 4px; text-align: center; }
.cart-table .remove { color: #c76a6a; font-size: 13px; background: none; border: 0; cursor: pointer; }
.cart-summary { background: var(--ink-2); border: 1px solid var(--line); border-radius: 10px; padding: 28px; max-width: 380px; margin-left: auto; }
.cart-summary .row { display: flex; justify-content: space-between; padding: 9px 0; color: #c9c9d2; }
.cart-summary .row.total { font-size: 20px; font-weight: 800; color: var(--gold-bright); border-top: 1px solid var(--line); margin-top: 10px; padding-top: 16px; }
.cart-summary .btn { width: 100%; margin-top: 20px; text-align: center; }
.empty-cart { text-align: center; padding: 70px 0; color: var(--muted); }
.empty-cart .btn { margin-top: 24px; }

/* ---------- Checkout ---------- */
.checkout-page { padding: 70px 0 90px; }
.checkout-page h1 { font-family: var(--font-serif); font-size: 36px; margin-bottom: 34px; }
.checkout-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 44px; align-items: start; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px; background: var(--ink-2); color: var(--cream);
  border: 1px solid var(--line); border-radius: 5px; font-size: 14px; font-family: var(--font-sans);
}
.form-group input:focus { border-color: var(--gold); outline: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.payment-note {
  background: rgba(201, 162, 39, 0.08); border: 1px dashed var(--line);
  border-radius: 8px; padding: 16px; font-size: 13px; color: #c9c9d2; margin-bottom: 20px;
}
.order-box { background: var(--ink-2); border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.order-box h3 { font-size: 16px; margin-bottom: 16px; color: var(--gold-bright); }
.order-item { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: #c9c9d2; border-bottom: 1px dashed rgba(255,255,255,0.06); }
.order-total { display: flex; justify-content: space-between; font-size: 19px; font-weight: 800; padding: 16px 0 6px; color: var(--gold-bright); }

/* ---------- Static pages (about/contact/faq/policies) ---------- */
.page { padding: 70px 0 90px; }
.page h1 { font-family: var(--font-serif); font-size: 38px; margin-bottom: 12px; }
.page .lede { color: var(--muted); font-size: 17px; max-width: 700px; margin-bottom: 40px; }
.page h2 { font-family: var(--font-serif); font-size: 24px; margin: 34px 0 14px; color: var(--gold-bright); }
.page p, .page li { color: #c9c9d2; margin-bottom: 12px; }
.page ul, .page ol { padding-left: 22px; margin-bottom: 18px; }
.page .updated { color: var(--muted); font-size: 13px; margin-bottom: 30px; }
.page .legal-disclaimer {
  margin-top: 40px; padding: 16px; border: 1px dashed var(--line);
  border-radius: 8px; color: var(--muted); font-size: 12px;
}

/* FAQ */
.faq-item { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 14px; overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--cream);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::after { content: "+"; color: var(--gold); font-size: 22px; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .answer { padding: 0 22px 20px; color: #c9c9d2; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-info p { margin-bottom: 10px; }
.contact-info .big { font-size: 18px; color: var(--gold-bright); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #08080c; padding: 60px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.site-footer h4 { color: var(--gold); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--muted); font-size: 14px; }
.site-footer a:hover { color: var(--gold-bright); }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 280px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06); padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: #5a5a66; font-size: 13px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--gold); color: var(--ink); font-weight: 700; font-size: 14px;
  padding: 14px 26px; border-radius: 6px; opacity: 0; transition: all 0.3s; z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: 1fr; }
  .band, .pd-grid, .checkout-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--ink-2); border-bottom: 1px solid var(--line); padding: 20px 24px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 16px; }
}
@media (max-width: 620px) {
  .product-grid { grid-template-columns: 1fr; }
  .hero { padding: 70px 0 70px; }
  .cart-table .hide-sm { display: none; }
  .form-row { grid-template-columns: 1fr; }
}
