:root {
  --bg: #0d0b08;
  --panel: #17130d;
  --panel-2: #201a11;
  --line: #3a2f1c;
  --text: #f1e9d8;
  --muted: #a89a80;
  --gold: #d4a537;
  --gold-hi: #f3d27a;
  --gold-lo: #8a6512;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(212,165,55,.14), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(212,165,55,.07), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 16px/1.6 Inter, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, .brand { font-family: Cinzel, Georgia, serif; letter-spacing: .02em; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem clamp(1rem, 4vw, 3rem);
  background: rgba(13,11,8,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.paw { width: 28px; height: 28px; fill: var(--gold); filter: drop-shadow(0 2px 8px rgba(212,165,55,.4)); }
nav { display: flex; align-items: center; gap: 1.4rem; }
nav a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 500; }
nav a:not(.btn):hover { color: var(--gold-hi); }

.btn {
  display: inline-block; padding: .7rem 1.25rem; border-radius: 999px;
  font-weight: 600; text-decoration: none; cursor: pointer; border: 0; font-size: .95rem;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-gold {
  color: #1b1405;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold) 55%, #b9861f);
  box-shadow: 0 6px 24px rgba(212,165,55,.3);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(212,165,55,.42); }
.btn-ghost { border: 1px solid var(--gold-lo); color: var(--gold-hi); padding: .5rem 1rem; }
.btn-ghost:hover { background: rgba(212,165,55,.1); }

/* Hero */
.hero { padding: clamp(3.5rem, 10vw, 7rem) clamp(1rem, 4vw, 3rem) 3rem; max-width: 1100px; margin: 0 auto; }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 600; margin: 0 0 1rem; }
h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); line-height: 1.08; margin: 0 0 1.2rem; max-width: 16ch; }
h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--gold-hi), var(--gold) 50%, var(--gold-hi));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { color: var(--muted); font-size: 1.15rem; max-width: 52ch; margin: 0 0 2rem; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.4rem; }
.stats { color: var(--muted); font-size: .92rem; }
.stats b { color: var(--gold-hi); }

.notice, .announcement {
  max-width: 1100px; margin: 0 auto 1.5rem; padding: .9rem 1.2rem;
  border-radius: var(--radius); font-size: .93rem;
}
.notice { border: 1px dashed var(--gold-lo); color: var(--gold-hi); background: rgba(212,165,55,.06); }
.announcement { background: var(--panel); border: 1px solid var(--line); color: var(--muted); white-space: pre-line; }
@media (max-width: 1148px) { .notice, .announcement { margin-inline: clamp(1rem, 4vw, 3rem); } }

/* Shop */
.shop { max-width: 1240px; margin: 0 auto; padding: 1rem clamp(1rem, 4vw, 3rem) 4rem; }
.shop-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.shop-head h2 { margin: 0; font-size: 1.9rem; }
.controls { display: flex; gap: .6rem; flex-wrap: wrap; }
.controls input, .controls select {
  background: var(--panel); color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: .6rem .85rem; font: inherit; font-size: .92rem;
}
.controls input { width: min(260px, 70vw); }
.controls input:focus, .controls select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0 0 1.6rem; }
.chip {
  background: transparent; color: var(--muted); border: 1px solid var(--line);
  padding: .4rem .9rem; border-radius: 999px; font: inherit; font-size: .88rem; cursor: pointer;
}
.chip:hover { color: var(--text); border-color: var(--gold-lo); }
.chip[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: #1b1405; font-weight: 600; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.3rem; }
.card {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-3px); border-color: var(--gold-lo); box-shadow: 0 14px 40px rgba(0,0,0,.45); }
.thumb { position: relative; aspect-ratio: 1; background: var(--panel-2); overflow: hidden; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.thumb img.alt { opacity: 0; }
.card:hover .thumb img.alt { opacity: 1; }
.placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  font: 700 2.6rem Cinzel, serif; color: rgba(243,210,122,.55);
  background: linear-gradient(135deg, #2a2113, #17130d);
}
.badge {
  position: absolute; top: .6rem; left: .6rem; z-index: 1;
  background: rgba(13,11,8,.8); color: var(--gold-hi); border: 1px solid var(--gold-lo);
  font-size: .72rem; font-weight: 600; letter-spacing: .05em; padding: .2rem .55rem; border-radius: 999px;
}
.card-body { padding: .9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.card-title {
  font-size: .93rem; line-height: 1.4; color: var(--text); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.price { color: var(--gold-hi); font-weight: 600; font-size: 1.05rem; }
.buy { color: var(--muted); font-size: .82rem; }
.card:hover .buy { color: var(--gold-hi); }

.loading, .empty { color: var(--muted); text-align: center; padding: 3rem 0; grid-column: 1 / -1; }

/* About */
.about {
  max-width: 1100px; margin: 0 auto 4rem; padding: 2.5rem clamp(1.2rem, 4vw, 3rem);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem;
  background: linear-gradient(160deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: 20px;
}
.about h2 { margin-top: 0; font-size: 1.7rem; }
.about p { color: var(--muted); }
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; align-content: center; }
.perks li { display: grid; gap: .15rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.2); }
.perks strong { color: var(--gold-hi); }
.perks span { color: var(--muted); font-size: .9rem; }
@media (max-width: 1148px) { .about { margin-inline: clamp(1rem, 4vw, 3rem); } }
@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; }
  nav a:not(.btn) { display: none; }
}

.footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  padding: 1.5rem clamp(1rem, 4vw, 3rem); border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem;
}
.footer a { color: var(--gold-hi); }
.legal { flex-basis: 100%; margin: .5rem 0 0; font-size: .78rem; color: #7d725e; }

/* Privacy & terms page */
.doc { max-width: 760px; margin: 0 auto; padding: 3rem clamp(1rem, 4vw, 3rem) 4rem; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.doc h2 { font-size: 1.3rem; margin-top: 2.2rem; color: var(--gold-hi); }
.doc p, .doc li { color: var(--muted); }
