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

:root {
  --bg: #131313;
  --surface: #1a1a1a;
  --surface-hi: #242424;
  --surface-low: #0a0a0a;
  --text: #f0ede6;
  --body: #e8e4dc;
  --muted: #888;
  --accent: #c72628;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }

/* ── NAV ── */
.site-nav { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 6vw; background: var(--surface-low); }
.nav-links { display: flex; gap: 2rem; list-style: none; flex-wrap: wrap; }
.nav-links a { font-size: 0.72rem; font-weight: 400; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.25rem; flex-direction: column; gap: 5px; flex-shrink: 0; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); transition: transform 0.2s, opacity 0.2s; }
.site-nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── ADMIN BAR ── */
.admin-bar { background: var(--accent); display: flex; gap: 1.75rem; padding: 0.7rem 6vw; flex-wrap: wrap; }
.admin-bar a { color: #fff; text-decoration: none; font-size: 0.72rem; font-weight: 400; letter-spacing: 0.15em; text-transform: uppercase; }
.admin-bar a:hover { text-decoration: underline; }

/* ── MAIN ── */
main { flex: 1; padding: 3rem 6vw 5rem; }
.page-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(2.5rem, 7vw, 4.5rem); letter-spacing: 0.06em; line-height: 1; margin-bottom: 0.6rem; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.crumbs { font-size: 0.78rem; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 2.5rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.intro { font-size: 1rem; line-height: 1.8; color: var(--body); font-weight: 400; max-width: 640px; margin-bottom: 2rem; }

/* ── BUTTONS ── */
.btn { display: inline-block; font-family: 'Lato', sans-serif; font-weight: 400; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; padding: 0.9rem 1.8rem; cursor: pointer; border: none; transition: background 0.2s, border-color 0.2s; white-space: nowrap; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #a51f21; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid rgba(240, 237, 230, 0.3); }
.btn-ghost:hover { border-color: rgba(240, 237, 230, 0.7); }
.btn-small { padding: 0.55rem 1.1rem; font-size: 0.7rem; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }

/* ── FORMS ── */
label.field { display: block; font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; font-weight: 400; }
input[type=text], input[type=password], input[type=search], select, textarea {
  width: 100%; background: var(--surface-hi); color: var(--text); border: none; border-bottom: 1px solid rgba(240, 237, 230, 0.25);
  padding: 0.7rem 0.8rem; font-family: 'Lato', sans-serif; font-size: 0.95rem; font-weight: 400; border-radius: 0;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #888 50%), linear-gradient(135deg, #888 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2rem; }
input:focus, select:focus, textarea:focus { outline: none; border-bottom-color: var(--accent); }
textarea { min-height: 110px; resize: vertical; }
.form-row { margin-bottom: 1.25rem; }
.card { background: var(--surface); padding: 2rem; max-width: 460px; }
.msg { padding: 0.9rem 1.2rem; margin-bottom: 1.5rem; font-size: 0.9rem; font-weight: 400; }
.msg-error { background: rgba(199, 38, 40, 0.2); color: #ffb3ac; }
.msg-ok { background: rgba(80, 160, 90, 0.18); color: #b6e3bc; }
.msg-warn { background: rgba(212, 175, 55, 0.18); color: #e8d58a; }

/* ── INTRO-STROOK ── */
.shop-intro { background: var(--surface); padding: 1.25rem 1.5rem; margin-bottom: 2rem; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.shop-intro p { font-size: 0.95rem; line-height: 1.7; color: var(--body); font-weight: 400; }
.shop-intro-cta { display: flex; align-items: center; gap: 0.8rem 1.5rem; flex-wrap: wrap; }
.shop-intro-trust { font-size: 0.72rem; letter-spacing: 0.06em; color: #888; text-decoration: none; }
.shop-intro-trust:hover { color: var(--text); }

/* ── CATEGORIE-CHIPS ── */
.catchips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.catchips a { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; padding: 0.55rem 0.95rem; background: var(--surface); color: var(--body); font-weight: 400; white-space: nowrap; }
.catchips a:hover { background: var(--surface-hi); color: var(--text); }
.catchips a.on { background: #e8e8e8; color: #131313; font-weight: 700; }
.sell-cta { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #1f1f1f; font-size: 0.9rem; color: #999; font-weight: 400; }
.sell-cta a { color: var(--accent); text-decoration: none; }
.sell-cta a:hover { text-decoration: underline; }
.d-table.searches th, .d-table.searches td { width: auto; padding-right: 1.8rem; white-space: nowrap; }
.d-table.searches th:first-child, .d-table.searches td:first-child { width: 40%; white-space: normal; }
.more-discogs { margin-top: 2rem; padding: 1.3rem 1.5rem; background: var(--surface); display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; max-width: 34rem; }
.more-discogs p { margin: 0; font-size: 0.95rem; line-height: 1.6; color: var(--body); font-weight: 400; }
.d-cta { margin-bottom: 2rem; }
.d-cta p { margin-top: 0.7rem; font-size: 0.78rem; color: #999; font-weight: 400; }
.footer-credit, .footer-credit a { font-size: 0.72rem; color: #777; }
.footer-credit a { text-decoration: underline; }
.badge-pick { position: absolute; top: 0.6rem; left: 0.6rem; background: var(--accent); color: #fff; font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.3rem 0.55rem; font-weight: 700; }
.badge-pick.badge-inline { position: static; display: inline-block; margin-bottom: 0.8rem; }

/* ── SHOP LAYOUT ── */
.shop { display: grid; grid-template-columns: 250px 1fr; gap: 2.5rem; align-items: start; }
.filters { background: var(--surface); padding: 1.5rem; }
.filters h2 { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; letter-spacing: 0.08em; margin-bottom: 1.2rem; font-weight: 400; }
.filter-group { margin-bottom: 1.6rem; }
.filter-group h3 { font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem; font-weight: 400; }
.check { display: flex; align-items: center; gap: 0.55rem; font-size: 0.85rem; font-weight: 400; color: var(--body); padding: 0.22rem 0; cursor: pointer; }
.check input { accent-color: var(--accent); width: 15px; height: 15px; }
.filter-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.count { font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.toolbar-selects { display: flex; gap: 1rem; align-items: center; margin-left: auto; }
.toolbar-selects label { font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.toolbar-selects select { width: auto; min-width: 150px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1.75rem 1.25rem; }
.tile { text-decoration: none; display: flex; flex-direction: column; background: var(--surface); transition: background 0.2s; }
.tile:hover { background: var(--surface-hi); }
.tile-img { position: relative; aspect-ratio: 1 / 1; background: #0e0e0e; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-img .noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #444; font-family: 'Bebas Neue', sans-serif; font-size: 1.2rem; letter-spacing: 0.15em; }
.tile-body { padding: 0.9rem 0.9rem 1rem; display: flex; flex-direction: column; gap: 0.2rem; flex: 1; }
.tile-artist { font-size: 0.66rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.tile-title { font-size: 0.98rem; font-weight: 700; line-height: 1.3; color: var(--text); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tile-meta { font-size: 0.74rem; color: #999; font-weight: 400; line-height: 1.5; }
/* Tooltip bij conditie (hover, focus of tik) */
.cond-line { position: relative; }
.tip { display: inline-block; margin-left: 0.25rem; cursor: help; line-height: 1; }
.tip-i { display: inline-flex; align-items: center; justify-content: center; width: 1.05em; height: 1.05em; background: #8a8a8a; border-radius: 50%; font-size: 0.85em; font-weight: 700; font-family: Georgia, serif; color: #131313; line-height: 1; position: relative; top: -0.12em; }
.tip:hover .tip-i, .tip:focus .tip-i, .tip.open .tip-i { background: #fff; }
.tip-text { display: none; position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); z-index: 30; background: #000; color: #fff; padding: 0.65rem 0.8rem; font-size: 0.78rem; line-height: 1.5; font-weight: 400; font-style: normal; letter-spacing: 0; text-transform: none; text-align: left; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6); cursor: default; }
.tip:hover .tip-text, .tip:focus .tip-text, .tip.open .tip-text { display: block; }
.d-facts .cond-line .tip-text { right: auto; width: min(360px, 100%); font-size: 0.85rem; }
.tile-price { margin-top: auto; padding-top: 0.7rem; font-weight: 700; font-size: 1.02rem; color: var(--accent); }

.empty { padding: 3rem; background: var(--surface); text-align: center; color: var(--body); font-weight: 400; }

.pager { display: flex; gap: 0.4rem; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; }
.pager a, .pager span { min-width: 2.4rem; padding: 0.55rem 0.8rem; text-align: center; background: var(--surface); text-decoration: none; font-size: 0.85rem; font-weight: 400; }
.pager a:hover { background: var(--surface-hi); }
.pager .cur { background: var(--accent); color: #fff; }

/* ── DETAIL ── */
.detail { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3rem; align-items: start; max-width: 1100px; }
.gallery-main { background: #0e0e0e; aspect-ratio: 1 / 1; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.thumbs { display: flex; gap: 0.5rem; margin-top: 0.6rem; flex-wrap: wrap; }
.thumbs button { width: 64px; height: 64px; padding: 0; border: 2px solid transparent; background: #0e0e0e; cursor: pointer; }
.thumbs button.on { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.d-artist { font-size: 0.9rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 0.3rem; }
.d-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: 0.04em; line-height: 1.05; margin-bottom: 0.5rem; font-weight: 400; }
.d-sub { color: #999; font-weight: 400; margin-bottom: 1.5rem; }
.d-facts { font-size: 0.98rem; line-height: 1.9; font-weight: 400; color: var(--body); margin-bottom: 1.6rem; }
.d-facts strong { color: var(--text); font-weight: 700; }
.d-facts a { color: var(--accent); }
.d-price { font-size: 1.9rem; font-weight: 700; color: var(--accent); display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 2rem; }
.chip { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; background: var(--surface-hi); color: var(--body); padding: 0.3rem 0.6rem; font-weight: 400; }
.d-table { width: 100%; border-collapse: collapse; }
.d-table th { text-align: left; font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); font-weight: 400; padding: 0.7rem 0; width: 35%; }
.d-table td { padding: 0.7rem 0; font-weight: 400; background: transparent; }
.d-table tr + tr th, .d-table tr + tr td { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.edit-panel { background: var(--surface); padding: 1.6rem; margin-top: 2rem; }
.edit-panel h2 { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; letter-spacing: 0.08em; font-weight: 400; margin-bottom: 1rem; }
.hint { font-size: 0.78rem; color: var(--muted); margin-top: 0.3rem; font-weight: 400; }

/* ── ADMIN ── */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2px; max-width: 980px; margin-bottom: 2rem; }
.admin-box { background: var(--surface); padding: 1.8rem; display: flex; flex-direction: column; gap: 0.9rem; }
.admin-box h2 { font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; letter-spacing: 0.06em; font-weight: 400; }
.admin-box p { font-size: 0.9rem; line-height: 1.7; color: var(--body); font-weight: 400; flex: 1; }
.bar { background: var(--surface-hi); height: 10px; margin: 0.8rem 0; }
.bar-fill { background: var(--accent); height: 100%; width: 0; transition: width 0.3s; }
.status-text { font-size: 0.9rem; font-weight: 400; color: var(--body); }

.tabs { display: flex; gap: 2px; margin-bottom: 0; }
.tabs button { background: var(--surface); color: var(--muted); border: none; padding: 0.9rem 1.6rem; font-family: 'Lato', sans-serif; font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 400; cursor: pointer; }
.tabs button.on { background: #0a0a0a; color: #fff; box-shadow: inset 0 -2px 0 var(--accent); }
.panel { max-width: 1100px; }
table.list { width: 100%; border-collapse: collapse; background: var(--surface); }
table.list th { text-align: left; background: #0a0a0a; padding: 0.8rem 1rem; font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
table.list td { padding: 0.75rem 1rem; font-size: 0.92rem; font-weight: 400; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); }
table.list td.strong { font-weight: 700; }
table.list tr:hover td { background: var(--surface-hi); }
table.list input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; }
.list-actions { display: flex; gap: 0.6rem; margin: 1rem 0; align-items: center; flex-wrap: wrap; }
.note { font-size: 0.78rem; color: #c9a227; margin-left: 0.4rem; }

/* ── FOOTER ── */
footer { background: var(--surface-low); padding: 2rem 6vw; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-info { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-info p, .footer-info a { font-size: 0.78rem; letter-spacing: 0.08em; color: #999; text-decoration: none; line-height: 1.6; }
.footer-info a:hover { color: var(--accent); }
.footer-brand { font-family: 'Bebas Neue', sans-serif; font-size: 1.3rem; letter-spacing: 0.1em; color: rgba(240, 237, 230, 0.5); text-decoration: none; flex-shrink: 0; transition: color 0.2s; }
.footer-brand span { color: rgba(199, 38, 40, 0.5); }
.footer-brand:hover { color: var(--text); }
.footer-brand:hover span { color: var(--accent); }
.footer-discogs { display: flex; flex-direction: column; gap: 0.4rem; text-decoration: none; }
.footer-discogs-logo { height: 16px; filter: brightness(0) invert(1); opacity: 0.5; transition: opacity 0.2s; }
.footer-discogs:hover .footer-discogs-logo { opacity: 0.8; }
.footer-discogs-stats { font-size: 0.72rem; letter-spacing: 0.06em; color: #666; }
.footer-discogs-stars { color: #D4AF37; }

/* ── RESPONSIVE ── */
.shop > * { min-width: 0; }
.filters summary { list-style: none; cursor: default; pointer-events: none; }
.filters summary::-webkit-details-marker { display: none; }
.filters summary h2 { margin-bottom: 1.2rem; }

@media (max-width: 900px) {
  .shop { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .filters summary { cursor: pointer; pointer-events: auto; display: flex; justify-content: space-between; align-items: center; }
  .filters summary h2 { margin-bottom: 0; }
  .filters summary::after { content: '+'; font-size: 1.6rem; color: var(--muted); line-height: 1; }
  .filters details[open] summary::after { content: '\2212'; }
  .filters details[open] summary h2 { margin-bottom: 1.2rem; }
  .detail { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 700px) {
  .site-nav { flex-wrap: wrap; }
  .nav-toggle { display: flex; }
  .nav-links { display: none; width: 100%; flex-direction: column; padding: 0.5rem 0 1rem; gap: 0; }
  .site-nav.is-open .nav-links { display: flex; background: var(--surface-low); }
  .nav-links li { border-bottom: 1px solid #1a1a1a; }
  .nav-links a { display: block; padding: 0.85rem 0; font-size: 0.78rem; letter-spacing: 0.12em; }
  footer { flex-direction: column; align-items: flex-start; }
  .footer-brand { align-self: flex-end; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 0.75rem; }
  .catchips { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 0.4rem; margin-right: -5vw; padding-right: 5vw; }
  main { padding: 2rem 5vw 4rem; }
  .toolbar-selects select { min-width: 0; }
  .toolbar-selects { flex-wrap: wrap; }
  table.list th, table.list td { padding: 0.6rem 0.5rem; font-size: 0.82rem; }
}
