/* MERCH — shared brand theme (matches samboghossian.com: golden sand + dark brown, Lexend) */
:root {
  --sand: #d8a86a;            /* golden sand background */
  --ink: #2d2016;             /* dark espresso brown (text) */
  --card: #f7efe1;            /* warm cream (cards / panels) */
  --line: rgba(45, 32, 22, 0.18);
  --muted: rgba(45, 32, 22, 0.70);
}
* { box-sizing: border-box; }
body {
  font-family: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background: var(--sand);
  margin: 0;
  line-height: 1.5;
}

/* header / brand */
.site-header { padding: 1.25rem 1.5rem; }
.site-header .brand { font-weight: 900; font-size: 1.5rem; letter-spacing: .02em; text-decoration: none; color: var(--ink); }

/* shop grid */
.shop { max-width: 1040px; margin: 0 auto; padding: .5rem 1.5rem 3rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.card { background: var(--card); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; display: block; transition: transform .12s ease, box-shadow .12s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(45, 32, 22, 0.20); }
.card .thumb { aspect-ratio: 1 / 1; background: var(--card); }
.card .thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.card .meta { padding: .85rem 1rem 1.1rem; }
.card .meta .name { font-weight: 800; font-size: 1.02rem; }
.card .meta .sub { color: var(--muted); font-size: .85rem; margin-top: .1rem; }
.card .meta .price { font-weight: 800; margin-top: .5rem; }

/* product detail */
.product { max-width: 920px; margin: 0 auto; padding: .5rem 1.5rem 3rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .product { grid-template-columns: 1fr; gap: 1.25rem; } }
.hero { width: 100%; aspect-ratio: 1 / 1; background: var(--card); border-radius: 16px; overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: contain; display: block; }
.back { display: inline-block; margin: 0 0 .35rem; font-size: .85rem; text-decoration: none; color: var(--muted); }
.title { font-weight: 900; font-size: 1.5rem; margin: .1rem 0 .15rem; }
.subtitle { color: var(--muted); font-weight: 600; font-size: 1.02rem; margin: 0 0 .6rem; }
.price { font-size: 1.2rem; font-weight: 800; margin: 0 0 .5rem; }
.label { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 1.1rem 0 .5rem; }
.label b { color: var(--ink); text-transform: none; letter-spacing: 0; font-weight: 800; }
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
.swatch { padding: 0; border: 2px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; overflow: hidden; aspect-ratio: 1 / 1; }
.swatch img { width: 100%; height: 100%; object-fit: contain; display: block; }
.swatch[aria-pressed="true"] { border-color: var(--ink); }
.sizes { display: flex; flex-wrap: wrap; gap: .5rem; }
.size { min-width: 3rem; padding: .55rem .6rem; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--ink); cursor: pointer; font: inherit; }
.size[aria-pressed="true"] { background: var(--ink); color: var(--card); border-color: var(--ink); }
.sizeguide-link { margin-left: .5rem; font-size: .8rem; background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 0; font-family: inherit; }
.sizeguide { width: 100%; border-collapse: collapse; margin: .75rem 0 0; font-size: .85rem; }
.sizeguide caption { caption-side: bottom; color: var(--muted); font-size: .75rem; text-align: left; padding-top: .5rem; }
.sizeguide th, .sizeguide td { border: 1px solid var(--line); padding: .4rem .55rem; text-align: left; }
.sizeguide th { background: rgba(45, 32, 22, 0.06); font-weight: 800; }
.buy { margin-top: 1.5rem; width: 100%; padding: .9rem 1rem; font: inherit; font-weight: 800; color: var(--card); background: var(--ink); border: 0; border-radius: 10px; cursor: pointer; }
.buy:disabled { opacity: .4; cursor: not-allowed; }
.msg { min-height: 1.2rem; margin-top: .6rem; font-size: .9rem; color: #7a1500; }

/* success page */
.wrap { max-width: 32rem; margin: 4rem auto; padding: 0 1.25rem; text-align: center; }
.wrap h1 { font-weight: 900; font-size: 1.9rem; margin: 0 0 .75rem; }
.btn { display: inline-block; margin-top: 1.5rem; padding: .75rem 1.25rem; background: var(--ink); color: var(--card); border-radius: 10px; text-decoration: none; font-weight: 800; }
.memorial { display: block; width: 62%; max-width: 240px; margin: 1.5rem auto .4rem; border-radius: 12px; box-shadow: 0 8px 22px rgba(45, 32, 22, 0.28); }
.credit { font-size: .68rem; color: var(--muted); margin: 0 0 1rem; }
.credit a { color: inherit; }
.punchline { font-weight: 700; }
