/* BullDrop — catalog styles. Mobile first. */

:root {
  color-scheme: dark;
  --bg: #151617;
  --surface: #1d1e20;
  --surface-2: #27282b;
  --line: #333437;
  --text: #f5f4fa;
  --muted: #a4a4ad;
  --accent: #fa545c;
  --accent-ink: #1a1114;
  --gold: #ffc33f;
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 60px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Nunito, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 500;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2 { line-height: 1.15; font-weight: 900; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { width: min(1320px, 100% - 32px); margin-inline: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 8px; }

/* ----------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.btn:hover { background: #313236; }
.btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 900; }
.btn--accent:hover { background: #ff6d74; }
.btn--lg { min-height: 52px; padding-inline: 28px; font-size: 1.0625rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(24, 25, 27, .96); border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 10px; min-height: var(--header-h); }

.logo { display: block; flex: none; }
.logo img { display: block; height: 30px; width: auto; }

.site-header nav { min-width: 0; overflow-x: auto; scrollbar-width: none; }
.site-header nav::-webkit-scrollbar { display: none; }
.nav { display: flex; gap: 2px; }
.nav a {
  display: block; padding: 10px 8px; border-radius: var(--radius-sm);
  color: var(--muted); font-weight: 700; font-size: .9375rem; text-decoration: none; white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.site-header__login { margin-left: auto; flex: none; }

/* ------------------------------------------------------------------- intro */
.intro { padding: 32px 0 20px; }
.intro h1 { font-size: clamp(2rem, 6vw, 3.25rem); }
.lead { margin-top: 12px; max-width: 62ch; color: var(--muted); font-size: 1.0625rem; }

.collections-nav ul { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.collections-nav a {
  display: block; padding: 8px 14px; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); font-weight: 700; font-size: .9375rem; text-decoration: none;
}
.collections-nav a:hover { color: var(--text); border-color: #55565b; }

.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.search { flex: 1 1 220px; max-width: 360px; }
.search input {
  width: 100%; min-height: 44px; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.search input::placeholder { color: var(--muted); }
.tools__count { color: var(--muted); font-size: .9375rem; }
#fav-count { color: var(--muted); }

/* ------------------------------------------------------------- collections */
.collection { margin-top: 40px; }
.collection h2, .related h2 { font-size: clamp(1.375rem, 3.4vw, 2rem); margin-bottom: 16px; }
.collection__count { color: var(--muted); font-size: .6em; font-weight: 700; letter-spacing: 0; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

.case-card {
  display: flex; flex-direction: column; align-items: center; height: 100%;
  padding: 10px 10px 14px; text-align: center; text-decoration: none;
  background: var(--surface); border: 1px solid transparent; border-radius: var(--radius);
  transition: border-color .15s, background-color .15s;
}
.case-card:hover { background: #222326; border-color: var(--line); }
.case-card__art { display: block; width: 100%; aspect-ratio: 1; }
.case-card__art img, .case-detail__art img { width: 100%; height: 100%; object-fit: contain; }
.case-card:hover img { transform: scale(1.04); }
.case-card img { transition: transform .2s; }
.case-card__name { margin-top: 8px; font-weight: 700; font-size: .9375rem; line-height: 1.25; overflow-wrap: anywhere; }
.case-card__price { margin-top: auto; padding-top: 8px; color: var(--gold); font-weight: 900; font-size: .875rem; }

.case-placeholder {
  display: block; width: 100%; height: 100%; aspect-ratio: 1; border-radius: var(--radius-sm);
  background:
    linear-gradient(45deg, transparent 46%, var(--line) 46% 54%, transparent 54%),
    var(--surface-2);
}

.empty { margin-top: 32px; color: var(--muted); }

/* -------------------------------------------------------------------- note */
.note {
  margin-top: 48px; padding: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.note h1 { font-size: clamp(1.625rem, 5vw, 2.5rem); }
.note h2 { font-size: 1.375rem; }
.note p { margin: 10px 0 16px; color: var(--muted); max-width: 62ch; }
.breadcrumbs + .note { margin-top: 0; }

/* ------------------------------------------------------------- breadcrumbs */
.breadcrumbs { padding: 20px 0; color: var(--muted); font-size: .9375rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: #5d5e64; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--text); }

/* ------------------------------------------------------------- case detail */
.case-detail {
  display: grid; gap: 20px; padding: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.case-detail__art {
  aspect-ratio: 1; max-height: 420px; width: 100%; padding: 12px;
  background: radial-gradient(circle at 50% 55%, #33294f, transparent 68%);
}
.case-detail__art .case-placeholder { max-width: 300px; margin: auto; }
.case-detail__collection { color: var(--muted); font-size: .9375rem; }
.case-detail__collection a { color: var(--text); }
.case-detail h1 { margin-top: 8px; font-size: clamp(1.625rem, 5vw, 2.75rem); overflow-wrap: anywhere; }
.case-detail__status { margin-top: 12px; color: var(--muted); }
.case-detail__price { margin-top: 16px; color: var(--gold); font-size: 1.75rem; font-weight: 900; }
.case-detail__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.case-detail__actions:empty { display: none; }

.specs { margin: 24px 0 0; border-top: 1px solid var(--line); }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 700; text-align: right; }

.related { margin-top: 48px; }
.back { margin-top: 32px; }

/* ------------------------------------------------------------------ footer */
.site-footer { margin-top: 72px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-block: 28px 40px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }

/* ---------------------------------------------------- confirmation popup */
.go {
  width: min(680px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0; overflow: auto;
  color: var(--text); border: 1px solid #54303a; border-radius: 28px;
  background: radial-gradient(circle at 92% 6%, #4a2630 0, transparent 46%), #1b1721;
  box-shadow: 0 0 90px rgba(243, 83, 73, .22);
}
.go::backdrop { background: rgba(12, 8, 16, .8); backdrop-filter: blur(12px); }
.go__form { position: relative; padding: 24px; }
.go__close {
  position: absolute; top: 18px; right: 18px; display: grid; place-items: center;
  width: 44px; height: 44px; background: none; border: 0; border-radius: 12px; color: #aaa0b0; cursor: pointer;
}
.go__close:hover { color: var(--text); }
.go__icon {
  display: grid; place-items: center; width: 64px; height: 64px;
  border-radius: 20px; background: #40232e; color: var(--accent);
}
.go h2 { margin-top: 20px; font-size: clamp(1.75rem, 7vw, 2.75rem); text-transform: uppercase; letter-spacing: -0.01em; }
.go__text { margin: 12px 0 22px; color: #a99eaf; font-size: 1.0625rem; }
.go__text b { color: var(--text); font-weight: 700; }
.go__choice {
  display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 14px 16px; margin-bottom: 12px;
  background: #2a1f29; border: 1.5px solid #8c3a47; border-radius: 18px; font-weight: 700; cursor: pointer;
}
.go__choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.go__check {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 9px; background: #45333c;
}
.go__check::after {
  content: ""; width: 14px; height: 8px; margin-top: -3px;
  border-left: 2.5px solid transparent; border-bottom: 2.5px solid transparent; transform: rotate(-45deg);
}
.go__choice input:checked + .go__check { background: linear-gradient(135deg, #fa6a66, #c9454f); }
.go__choice input:checked + .go__check::after { border-color: #1a1114; }
.go__choice input:focus-visible + .go__check { outline: 2px solid #f5a4aa; outline-offset: 2px; }
.go__choice em { font-style: normal; color: var(--accent); }
.go__choice a { color: var(--accent); text-underline-offset: 3px; }
.go__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; margin-top: 24px; }
.go__btn {
  min-height: 52px; padding: 12px 26px; border-radius: 16px; font-weight: 900; cursor: pointer;
  transition: background-color .15s, opacity .15s;
}
.go__btn--ghost { background: #241f2c; border: 1.5px solid #393040; color: var(--text); font-weight: 700; }
.go__btn--ghost:hover { background: #2d2736; }
.go__btn--primary {
  flex: 1 1 200px; border: 0; color: #1d151d; text-transform: uppercase; letter-spacing: .02em;
  background: linear-gradient(110deg, #f4685f, #b9434f);
}
.go__btn--primary:disabled { opacity: .42; cursor: not-allowed; }

@media (min-width: 768px) {
  .go__form { padding: 40px; }
  .go__close { top: 28px; right: 28px; }
  .go__btn--primary { flex: 0 1 auto; padding-inline: 34px; }
}

/* ------------------------------------------------------------- breakpoints */
/* ------------------------------------------------------------------- prose */
.intro__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.prose { margin-top: 48px; max-width: 72ch; }
.prose--page { margin-top: 0; }
.prose h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); margin-bottom: 16px; }
.prose h2 { font-size: clamp(1.25rem, 3vw, 1.625rem); margin: 28px 0 10px; }
.prose p { margin: 0 0 14px; color: #cfcfd6; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 22px; color: #cfcfd6; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 6px; }
.prose a:not(.btn) { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.prose a:not(.btn):hover { color: var(--accent); }
.prose .link-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.prose .link-list a {
  display: block; padding: 10px 16px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 700;
}
.prose .link-list a:hover { border-color: var(--accent); }

/* The header keeps the logo and the login button; the nav scrolls sideways on phones. */
@media (max-width: 559px) {
  .site-header__login { min-height: 38px; padding: 6px 12px; }
}

@media (min-width: 560px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}

@media (min-width: 768px) {
  :root { --header-h: 68px; }
  .logo img { height: 36px; }
  .nav a { padding-inline: 12px; font-size: 1rem; }
  .intro { padding-top: 48px; }
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .case-card__name { font-size: 1rem; }
  .case-detail { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 32px; padding: 28px; align-items: center; }
}

@media (min-width: 1100px) {
  .cards { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .collections-nav ul { flex-wrap: wrap; overflow: visible; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ------------------------------------------------------- contents and FAQ */
.case-detail__status { margin-top: 12px; color: var(--muted); }
.contents, .faq, .highlights { margin-top: 48px; }
.contents h2, .faq h2 { font-size: clamp(1.375rem, 3.4vw, 2rem); margin-bottom: 12px; }
.contents__lead { max-width: 72ch; margin-bottom: 16px; color: var(--muted); }

.level, .faq__item {
  margin-bottom: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.level > summary, .faq__item > summary {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  padding: 16px 44px 16px 18px; position: relative; cursor: pointer; list-style: none; font-weight: 700;
}
.level > summary::-webkit-details-marker, .faq__item > summary::-webkit-details-marker { display: none; }
.level > summary::after, .faq__item > summary::after {
  content: ""; position: absolute; right: 20px; top: 22px; width: 9px; height: 9px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg);
}
.level[open] > summary::after, .faq__item[open] > summary::after { transform: rotate(-135deg); top: 26px; }
.level__name { font-size: 1.125rem; font-weight: 900; }
.level__meta { color: var(--muted); font-weight: 500; font-size: .9375rem; }
.level__note { padding: 0 18px 14px; color: #cfcfd6; max-width: 80ch; }
.faq__item p { padding: 0 18px 16px; color: #cfcfd6; max-width: 80ch; }

.table-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
.items { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.items th, .items td { padding: 10px 18px; text-align: left; border-bottom: 1px solid #2a2b2e; }
.items th { color: var(--muted); font-weight: 700; font-size: .8125rem; text-transform: uppercase; letter-spacing: .04em; }
.items th:nth-child(n+2), .items td:nth-child(n+2) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.items td:nth-child(2) { color: var(--gold); font-weight: 700; }
.items tbody tr:last-child td { border-bottom: 0; }

.q { display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: #8a8a93; }
.q--gold { background: #ffc33f; } .q--red { background: #f2545b; } .q--pink { background: #e85fc3; }
.q--violet { background: #8f6bf2; } .q--blue { background: #4d8dff; } .q--light-blue { background: #6fc7f2; }

.highlights__grid { display: grid; gap: 8px 32px; }
.highlights h3 { margin: 12px 0 8px; font-size: 1.0625rem; font-weight: 900; }
.highlights ul { list-style: none; padding: 0; }
@media (min-width: 768px) { .highlights__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .highlights { max-width: none; } }
@media (max-width: 559px) {
  .items { font-size: .875rem; }
  .items th, .items td { padding: 9px 10px; }
  .items td:first-child { padding-left: 14px; }
  .q { margin-right: 7px; }
}
