:root {
  --bg: #16110d;
  --bg-2: #1f1813;
  --card: #251d17;
  --line: #3a2e24;
  --cream: #f4ead8;
  --muted: #b9a88f;
  --amber: #f0a000;
  --amber-2: #ffb833;
  --red: #b2412f;
  --green: #7fae6a;
  --radius: 14px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--cream); font-family: var(--sans);
  line-height: 1.55; -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--amber-2); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(22,17,13,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); font-family: var(--serif); font-size: 1.35rem; font-weight: 700; letter-spacing: .01em; }
.brand:hover { text-decoration: none; }
.brand img { height: 42px; width: auto; flex: none; display: block; }
.nav { display: flex; gap: 22px; align-items: center; font-size: .95rem; }
.nav a { color: var(--muted); }
.nav a:hover, .nav a.active { color: var(--cream); text-decoration: none; }

/* hero */
.hero { padding: 64px 0 40px; border-bottom: 1px solid var(--line);
  background: radial-gradient(900px 300px at 80% -10%, rgba(217,154,61,.18), transparent 60%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.hero-logo { width: 210px; height: auto; filter: drop-shadow(0 8px 24px rgba(0,0,0,.45)); }
.hero h1 { font-family: var(--serif); font-size: clamp(2.1rem, 5.5vw, 3.6rem); line-height: 1.08; margin: 0 0 14px; max-width: 16em; }
.hero p { color: var(--muted); font-size: 1.1rem; max-width: 40em; margin: 0 0 22px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { border: 1px solid var(--line); background: var(--bg-2); border-radius: 999px; padding: 7px 14px; font-size: .9rem; color: var(--cream); }
.pill b { color: var(--amber-2); font-weight: 600; }

/* toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 28px 0 18px; }
.toolbar input[type=search], .toolbar select { background: var(--bg-2); color: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; font: inherit; }
.toolbar input[type=search] { flex: 1 1 220px; min-width: 0; }
.toolbar label { color: var(--muted); font-size: .92rem; display: flex; gap: 6px; align-items: center; }
.count { color: var(--muted); font-size: .9rem; margin-left: auto; }

/* category chips */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 16px; scrollbar-width: thin; }
.chip { flex: none; background: var(--bg-2); color: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: .9rem; cursor: pointer; }
.chip span { color: var(--muted); margin-left: 4px; }
.chip:hover { border-color: var(--amber); }
.chip.on { background: var(--amber); border-color: var(--amber); color: #1b1108; font-weight: 600; }
.chip.on span { color: #1b1108; }

/* grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; padding-bottom: 60px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; display: flex; flex-direction: column; transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-3px); border-color: var(--amber); text-decoration: none; }
.card .ph { aspect-ratio: 4/3; background: #0f0b08; position: relative; overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.card h3 { margin: 0; font-size: 1.02rem; font-weight: 600; line-height: 1.3; }
.card .meta { color: var(--muted); font-size: .85rem; }
.card .price { font-family: var(--serif); font-size: 1.35rem; color: var(--amber-2); margin-top: 6px; }
.badge { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,.72); color: var(--cream); font-size: .75rem; padding: 4px 10px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; }
.badge.sold { background: var(--red); }
.badge.pending { background: #7a5b1f; }
.badge.new { background: var(--amber); color: #1b1108; font-weight: 600; }
.badge.vid { left: auto; right: 10px; }
.card.is-sold img { filter: grayscale(.7) brightness(.7); }
.empty { text-align: center; color: var(--muted); padding: 60px 0 90px; grid-column: 1/-1; }

/* product page */
.crumbs { margin: 24px 0 16px; font-size: .9rem; color: var(--muted); }
.product { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px; padding-bottom: 70px; }
.gallery .stage { background: #0f0b08; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); }
.gallery .stage img, .gallery .stage video { width: 100%; height: 100%; object-fit: contain; background: #0f0b08; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 4px; }
.thumbs button { flex: none; width: 76px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #0f0b08; cursor: pointer; position: relative; }
.thumbs button.on { border-color: var(--amber); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.35); font-size: 1.4rem; }
.info h1 { font-family: var(--serif); font-size: clamp(1.6rem, 3.6vw, 2.3rem); line-height: 1.15; margin: 0 0 8px; }
.info .price { font-family: var(--serif); font-size: 2rem; color: var(--amber-2); margin: 6px 0 14px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0 0 18px; padding: 14px 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); font-size: .95rem; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; }
.desc { white-space: pre-wrap; color: #e6dbc6; margin-bottom: 20px; }
.notice { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: var(--bg-2); margin-bottom: 12px; font-size: .95rem; }
.notice strong { color: var(--amber-2); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font: inherit; font-weight: 600; padding: 13px 22px; border-radius: 12px; background: var(--amber); color: #1b1108; }
.btn:hover { background: var(--amber-2); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--cream); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--amber); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* dialog / form */
dialog { border: 1px solid var(--line); background: var(--card); color: var(--cream); border-radius: 18px; padding: 0; width: min(520px, 94vw); }
dialog::backdrop { background: rgba(0,0,0,.65); }
.form { padding: 22px; display: grid; gap: 12px; }
.form h2 { font-family: var(--serif); margin: 0 0 2px; }
.form label { display: grid; gap: 5px; font-size: .88rem; color: var(--muted); }
.form input, .form textarea, .form select { background: var(--bg); color: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font: inherit; }
.form textarea { min-height: 90px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form .hp { position: absolute; left: -9999px; }
.msg { font-size: .92rem; }
.msg.ok { color: var(--green); } .msg.err { color: #ef8a78; }

/* info page */
.prose { max-width: 760px; padding: 40px 0 80px; }
.prose h1 { font-family: var(--serif); font-size: 2.4rem; margin: 0 0 20px; }
.prose h2 { font-family: var(--serif); color: var(--amber-2); margin: 34px 0 8px; }
.prose p { color: #e6dbc6; white-space: pre-wrap; }

/* cart / checkout */
.cart-badge { background: var(--amber); color: #1b1108; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 1px 7px; margin-left: 4px; }
.cart-badge[hidden] { display: none; }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: #0f0b08; }
.cart-line .ttl-wrap { min-width: 0; }
.cart-line .ttl { font-weight: 600; }
.cart-line .sub { color: var(--muted); font-size: .85rem; margin-top: 2px; }
.cart-line .warn { color: #ef8a78; font-size: .82rem; margin-top: 2px; }
.cart-line.unavail { opacity: .55; }
.qty-row { display: flex; align-items: center; gap: 16px; }
.qty-row .price { color: var(--amber-2); font-family: var(--serif); min-width: 4.5em; text-align: right; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2); color: var(--cream); cursor: pointer; font: inherit; }
.qty button:hover { border-color: var(--amber); }
.qty button[disabled] { opacity: .4; cursor: not-allowed; }
.qty span { min-width: 1.4em; text-align: center; }
.cart-rm { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .85rem; padding: 6px; }
.cart-rm:hover { color: #ef8a78; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); margin-bottom: 20px; font-size: 1.1rem; }
.cart-total b { color: var(--amber-2); font-family: var(--serif); font-size: 1.6rem; }
.checkout-opt { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--bg-2); }
.checkout-opt h3 { margin: 0 0 6px; font-family: var(--serif); }
.checkout-opt p { color: var(--muted); font-size: .92rem; margin: 0 0 14px; }
.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: .9rem; background: var(--bg-2); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: space-between; }
.site-footer .links { display: flex; gap: 16px; flex-wrap: wrap; }

.brand span { white-space: nowrap; }
.nav a { white-space: nowrap; }
.ns { display: none; }
@media (max-width: 520px) {
  .nl { display: none; }
  .ns { display: inline; }
  .brand { font-size: 1rem; }
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-logo { display: none; }
  .product { grid-template-columns: 1fr; gap: 22px; }
  .brand { font-size: 1.1rem; gap: 8px; }
  .brand img { height: 34px; }
  .nav { gap: 14px; font-size: .88rem; }
  .nav a[href="/info#contact"] { display: none; }
  .site-header .wrap { gap: 10px; }
  .hero { padding: 40px 0 28px; }
  .form .row { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 48px 1fr; grid-template-areas: "img ttl" "img qty"; }
  .cart-line img { grid-area: img; width: 48px; height: 48px; }
  .cart-line .ttl-wrap { grid-area: ttl; }
  .cart-line .qty-row { grid-area: qty; }
  .checkout-grid { grid-template-columns: 1fr; }
}
