/* deadlock.clothing */
:root {
  --bg: #14111a;
  --bg2: #1c1824;
  --panel: #201b2b;
  --line: #3a3148;
  --gold: #d4a94e;
  --gold-dim: #a07f36;
  --cream: #efe6d0;
  --muted: #9d92ab;
  --ok: #9db89d;
  --danger: #e06c5c;
  --radius: 4px;
  --font-display: "Limelight", serif;
  --font-body: "IBM Plex Sans", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* nav */
header {
  border-bottom: 1px solid var(--line);
  background: var(--bg2);
  position: sticky; top: 0; z-index: 50;
}
.nav {
  max-width: 1180px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; gap: 28px;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: .06em;
  color: var(--gold);
  white-space: nowrap;
}
.logo span { color: var(--cream); }
.nav-links { display: flex; gap: 22px; align-items: center; flex: 1; }
.nav-links a { color: var(--muted); font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.cart-link { position: relative; color: var(--cream) !important; }
.cart-count {
  background: var(--gold); color: #14111a; border-radius: 10px;
  font-size: .85rem; font-weight: 600; padding: 1px 8px; margin-left: 6px;
}

/* hero */
.hero {
  text-align: center;
  padding: 80px 20px 66px;
  border-bottom: 1px solid var(--line);
  margin: 0 -20px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  color: var(--gold);
  letter-spacing: .04em;
  line-height: 1.15;
}
.hero h1 em { font-style: normal; color: var(--cream); }
.hero p.sub { color: var(--muted); max-width: 620px; margin: 18px auto 0; font-size: 1.12rem; }
.hero .cta-row { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 12px 28px; border-radius: var(--radius);
  border: 1px solid var(--gold); color: var(--gold);
  letter-spacing: .12em; text-transform: uppercase; font-size: .9rem;
  background: transparent; cursor: pointer; font-family: var(--font-body);
  transition: all .15s ease;
}
.btn:hover { background: rgba(212,169,78,.12); }
.btn.primary { background: var(--gold); color: #171320; font-weight: 600; }
.btn.primary:hover { background: #e6bd63; }
.btn.small { padding: 7px 14px; font-size: .85rem; }
.btn.ok { border-color: var(--ok); color: var(--ok); }
.btn.danger { border-color: var(--danger); color: var(--danger); }

/* sections */
.section { padding: 46px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; }
.section-head h2 { font-family: var(--font-display); font-weight: 400; color: var(--cream); letter-spacing: .05em; font-size: 1.5rem; }
.section-head a { color: var(--gold); font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; }

/* product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color .15s, transform .15s;
  display: flex; flex-direction: column;
}
.card:hover { border-color: var(--gold-dim); transform: translateY(-2px); }
.card .thumb { aspect-ratio: 1; background: var(--bg2); position: relative; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-empty { width: 100%; height: 100%; background: var(--bg2); }
.badge {
  position: absolute; top: 10px; left: 10px; background: rgba(20,17,26,.9);
  border: 1px solid var(--gold-dim); color: var(--gold); font-size: .85rem;
  letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 2px;
}
.badge.soldout { border-color: var(--danger); color: var(--danger); }
.card .meta { padding: 13px 15px 15px; display: flex; flex-direction: column; gap: 3px; }
.card .title { color: var(--cream); font-size: 1rem; line-height: 1.3; }
.card .artist { color: var(--muted); font-size: .95rem; }
.card .artist:hover { color: var(--gold); }
.card .price { color: var(--gold); font-weight: 600; margin-top: 5px; }

/* filters */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 26px; align-items: center; }
.chip {
  border: 1px solid var(--line); color: var(--muted); padding: 6px 14px;
  border-radius: 20px; font-size: .9rem; letter-spacing: .04em;
}
.chip:hover { border-color: var(--gold-dim); color: var(--cream); }
.chip.on { border-color: var(--gold); color: var(--gold); background: rgba(212,169,78,.08); }
.searchbox { margin-left: auto; }
.searchbox input {
  background: var(--bg2); border: 1px solid var(--line); color: var(--cream);
  padding: 8px 14px; border-radius: 20px; font-family: var(--font-body); width: 210px;
}

/* artist cards */
.artist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.artist-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; text-align: center; transition: border-color .15s;
}
.artist-card:hover { border-color: var(--gold-dim); }
.avatar {
  width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 12px;
  background: var(--bg2); border: 1px solid var(--gold-dim);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); color: var(--gold); font-size: 1.6rem;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.artist-card .name { color: var(--cream); font-size: 1.05rem; }
.founding-tag { color: var(--gold); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; display: block; margin-top: 8px; }

/* product page */
.product-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; padding: 44px 0; }
.gallery .main-img {
  aspect-ratio: 1; background: var(--bg2); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.gallery .main-img img { width: 100%; height: 100%; object-fit: contain; }
.gallery .thumbs { display: flex; gap: 10px; margin-top: 10px; }
.gallery .thumbs img {
  width: 64px; height: 64px; object-fit: cover; border: 1px solid var(--line);
  border-radius: 3px; cursor: pointer;
}
.pinfo h1 { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; color: var(--cream); line-height: 1.25; }
.pinfo .by { color: var(--muted); margin: 8px 0 4px; }
.pinfo .by a { color: var(--gold); }
.pinfo .tags { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pinfo .price { font-size: 1.5rem; color: var(--gold); font-weight: 600; margin: 16px 0; }
.pinfo .desc { color: var(--cream); opacity: .92; white-space: pre-line; margin: 18px 0; }
.pinfo .shipnote { color: var(--muted); font-size: 1rem; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 20px; }
.qty-row { display: flex; gap: 12px; align-items: center; margin: 20px 0; }
.qty-row input { width: 64px; background: var(--bg2); border: 1px solid var(--line); color: var(--cream); padding: 10px; border-radius: 3px; text-align: center; font-family: var(--font-body); }

/* forms */
.form-page { max-width: 620px; margin: 0 auto; padding: 50px 0; }
.form-page h1, .page-title { font-family: var(--font-display); font-weight: 400; color: var(--gold); font-size: 1.9rem; margin-bottom: 6px; }
.form-page p.lead { color: var(--muted); margin-bottom: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; color: var(--muted); font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg2); border: 1px solid var(--line); color: var(--cream);
  padding: 11px 13px; border-radius: 3px; font-family: var(--font-body); font-size: 1rem;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold-dim); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.notice {
  border: 1px solid var(--gold-dim); color: var(--gold); background: rgba(212,169,78,.05);
  padding: 16px 20px; border-radius: var(--radius); margin-bottom: 24px;
}

/* cart */
.cart-item { display: flex; gap: 16px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.cart-item img, .cart-item .ph { width: 72px; height: 72px; object-fit: cover; border-radius: 3px; background: var(--bg2); }
.cart-item .grow { flex: 1; }
.cart-item .rm { color: var(--danger); font-size: .9rem; cursor: pointer; }
.cart-total { text-align: right; font-size: 1.2rem; color: var(--gold); margin: 18px 0; }

/* tables (admin/dashboard) */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.data th { text-align: left; color: var(--muted); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.data td { padding: 9px 10px; border-bottom: 1px solid var(--bg2); vertical-align: middle; }
table.data td form { display: inline; }
.pill { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; padding: 2px 10px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); }
.pill.live, .pill.paid, .pill.approved, .pill.shipped { border-color: var(--ok); color: var(--ok); }
.pill.pending, .pill.coming_soon, .pill.created { border-color: var(--gold-dim); color: var(--gold); }
.pill.sold_out, .pill.rejected, .pill.cancelled { border-color: var(--danger); color: var(--danger); }

.stat-row { display: flex; gap: 18px; flex-wrap: wrap; margin: 24px 0; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 24px; min-width: 150px; }
.stat .n { font-size: 1.6rem; color: var(--gold); font-family: var(--font-display); }
.stat .l { color: var(--muted); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }

/* prose pages */
.prose { max-width: 760px; margin: 0 auto; padding: 50px 0; }
.prose h1 { font-family: var(--font-display); font-weight: 400; color: var(--gold); font-size: 1.9rem; margin-bottom: 20px; }
.prose h2 { color: var(--cream); font-size: 1.2rem; margin: 28px 0 10px; letter-spacing: .03em; }
.prose p, .prose li { color: var(--muted); margin-bottom: 12px; }
.prose ul { padding-left: 22px; }
.prose strong { color: var(--cream); }
.prose a { color: var(--gold); }

/* footer */
footer { border-top: 1px solid var(--line); margin-top: 60px; background: var(--bg2); }
.foot {
  max-width: 1180px; margin: 0 auto; padding: 34px 20px;
  display: flex; gap: 30px; flex-wrap: wrap; justify-content: space-between;
}
.foot .col a { display: block; color: var(--muted); font-size: .95rem; margin-bottom: 7px; }
.foot .col a:hover { color: var(--gold); }
.foot .col h4 { color: var(--cream); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.disclaimer {
  max-width: 1180px; margin: 0 auto; padding: 0 20px 26px;
  color: #7d7490; font-size: .9rem; line-height: 1.5;
}
.disclaimer a { color: #7d7490; }
.disclaimer a:hover { color: var(--gold); }
.subscribe-row { display: flex; gap: 10px; margin-top: 10px; }
.subscribe-row input {
  background: var(--bg); border: 1px solid var(--line); color: var(--cream);
  padding: 9px 13px; border-radius: 3px; font-family: var(--font-body); min-width: 210px;
}

.empty {
  text-align: center; color: var(--muted); padding: 70px 20px;
  border: 1px dashed var(--line); border-radius: var(--radius);
}
.empty .big { font-family: var(--font-display); color: var(--gold-dim); font-size: 1.4rem; margin-bottom: 8px; }
.empty a { color: var(--gold); }

@media (max-width: 860px) {
  .product-layout { grid-template-columns: 1fr; gap: 26px; }
  .nav-links { gap: 14px; }
  .nav-links a.hide-m { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .searchbox { margin-left: 0; width: 100%; }
  .searchbox input { width: 100%; }
}
