:root {
  --ink: #151515;
  --muted: #6b6864;
  --paper: #f8f5ef;
  --card: #fff;
  --line: #ded9d0;
  --purple: #6236a6;
  --purple-dark: #432176;
  --lime: #d7f06d;
  --orange: #f26a3d;
  --radius: 18px;
  --shadow: 0 14px 40px rgba(38, 27, 18, .09);
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 "DM Sans", sans-serif; }
button, input, select { font: inherit; }
button, select, input[type="radio"], input[type="checkbox"] { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgba(98, 54, 166, .35); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { min-height: 78px; display: flex; align-items: center; gap: clamp(14px, 3vw, 38px); padding: 10px clamp(20px, 5vw, 72px); background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; background: var(--purple); color: #fff; border-radius: 13px 13px 13px 4px; font: 700 15px "Space Grotesk"; transform: rotate(-3deg); }
.brand strong, .brand small { display: block; line-height: 1.1; }
.brand strong { font: 700 18px "Space Grotesk"; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.prototype-badge { padding: 7px 11px; border: 1px solid var(--purple); border-radius: 999px; color: var(--purple); font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.lab-nav { display: flex; gap: 4px; margin-left: auto; padding: 4px; border-radius: 10px; background: #f1eee8; }
.lab-nav a { padding: 6px 11px; border-radius: 7px; color: var(--muted); font-size: 12px; font-weight: 700; text-decoration: none; }
.lab-nav a.active { color: #fff; background: var(--purple); }

.hero { position: relative; overflow: hidden; padding: 70px 20px 62px; text-align: center; color: #fff; background: var(--purple); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 360px; height: 360px; left: -130px; top: -220px; background: var(--lime); opacity: .22; }
.hero::after { width: 290px; height: 290px; right: -110px; bottom: -210px; border: 50px solid var(--orange); opacity: .25; }
.hero > * { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 8px; color: var(--lime); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; }
.hero h1 { margin: 0; font: 700 clamp(40px, 6vw, 72px)/1 "Space Grotesk"; letter-spacing: -.045em; }
.hero > p:not(.eyebrow) { max-width: 620px; margin: 18px auto 28px; color: rgba(255,255,255,.78); font-size: 17px; }
.search-box { width: min(790px, 100%); min-height: 64px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 7px 8px 7px 20px; border-radius: 16px; background: #fff; box-shadow: 0 18px 50px rgba(28, 12, 52, .3); }
.header-search { position: relative; flex: 1 1 620px; width: auto; max-width: 760px; min-height: 48px; margin: 0 auto; border: 1px solid var(--line); border-radius: 7px; box-shadow: none; }
.header-search input { font-size: 14px; }
.header-search button { border-radius: 5px; background: var(--purple); color: #fff; }
.search-box svg { flex: 0 0 24px; width: 24px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; font-size: 17px; color: var(--ink); cursor: text; }
.search-box kbd { color: #9b9791; border: 1px solid var(--line); padding: 3px 7px; border-radius: 6px; font: 11px "DM Sans"; }
.search-box button { align-self: stretch; padding: 0 24px; border: 0; border-radius: 11px; background: var(--lime); color: #282b15; font-weight: 700; }
.suggestions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.suggestions button { padding: 6px 12px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; color: #fff; background: rgba(255,255,255,.08); font-size: 12px; }
.suggestions button:hover { background: rgba(255,255,255,.18); }
.collection-hero { padding-top: 42px; padding-bottom: 42px; }
.collection-hero h1 { font-size: clamp(38px, 5vw, 60px); }
.collection-hero > p:not(.eyebrow) { margin-bottom: 22px; }
.typeahead { position: absolute; z-index: 20; top: calc(100% + 10px); left: 0; right: 0; max-height: min(520px, 60vh); overflow-y: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 20px 55px rgba(20, 12, 30, .28); text-align: left; }
.typeahead-item { display: grid; grid-template-columns: 54px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 68px; padding: 7px 12px; border-bottom: 1px solid #ece8e1; color: inherit; text-decoration: none; }
.typeahead-item:hover, .typeahead-item.active { background: #f2edf9; }
.typeahead-image { width: 50px; height: 54px; display: grid; place-items: center; overflow: hidden; border-radius: 6px; background: #f0ece5; color: var(--purple); font-weight: 700; }
.typeahead-image img { width: 100%; height: 100%; object-fit: contain; }
.typeahead-copy { min-width: 0; }
.typeahead-copy strong, .typeahead-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.typeahead-copy strong { font: 600 13px "Space Grotesk"; }
.typeahead-copy small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.typeahead-all { width: 100%; padding: 12px; border: 0; background: #f8f5ef; color: var(--purple); font-weight: 700; }
.typeahead-section > b { display: block; padding: 9px 12px 5px; color: #77716a; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.typeahead-query, .typeahead-collection { width: 100%; display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border: 0; background: #fff; color: var(--ink); text-align: left; text-decoration: none; font-size: 12px; }
.typeahead-query:hover, .typeahead-collection:hover { background: #f2edf9; }
.typeahead-collection span { color: var(--purple); font-size: 10px; }

.catalogue { max-width: 1500px; margin: 0 auto; padding: 42px clamp(18px, 4vw, 60px) 80px; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 42px; }
.filters { width: 230px; min-width: 0; align-self: start; }
.filter-heading, .results-toolbar, .toolbar-actions, .price-fields { display: flex; align-items: center; }
.filter-heading { justify-content: space-between; margin-bottom: 8px; }
.filter-heading h2 { margin: 0; font: 700 22px "Space Grotesk"; }
.filter-heading button, #clear-filters { border: 0; padding: 4px; background: transparent; color: var(--purple); font-size: 12px; font-weight: 700; }
.filters fieldset { margin: 0; padding: 22px 0; border: 0; border-bottom: 1px solid var(--line); }
.filters legend { width: 100%; margin-bottom: 12px; padding: 0; font-weight: 700; }
.filters label { display: flex; align-items: center; gap: 9px; margin: 9px 0; color: #45423f; }
.filters input[type="checkbox"], .filters input[type="radio"] { width: 17px; height: 17px; margin: 0; accent-color: var(--purple); }
.price-fields { gap: 8px; }
.price-fields label { display: block; margin: 0; flex: 1; }
.price-fields label span { display: block; color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.price-fields input, .facet-search { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 9px 10px; background: #fff; cursor: text; }
.date-fields { display: grid; grid-template-columns: 1fr; gap: 8px; }
.date-fields label { display: grid; grid-template-columns: 38px minmax(0, 1fr); margin: 0; color: var(--muted); font-size: 11px; }
.date-fields input { min-width: 0; width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 8px; background: #fff; color: var(--ink); }
.facet-list { max-height: 215px; overflow: auto; padding-right: 4px; scrollbar-width: thin; }
.facet-list-long { max-height: 260px; }
.facet-list label { align-items: flex-start; justify-content: space-between; }
.facet-label { display: flex; min-width: 0; align-items: center; gap: 8px; }
.facet-label input { flex: 0 0 auto; margin-top: 2px !important; }
.facet-label span { min-width: 0; white-space: normal; overflow-wrap: anywhere; line-height: 1.3; }
.facet-count { flex: 0 0 auto; color: #8a857e; font-size: 11px; }
.facet-search { margin-bottom: 8px; }
.filter-toggle { display: none; }

.results-toolbar { min-height: 48px; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.results-toolbar p { margin: 0; font: 700 18px "Space Grotesk"; }
#query-note { color: var(--muted); font-size: 12px; }
.toolbar-actions { gap: 14px; }
.toolbar-actions label { color: var(--muted); font-size: 12px; }
.toolbar-actions select { margin-left: 6px; border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 8px 30px 8px 10px; color: var(--ink); }
.view-switch { display: flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; }
.view-switch button { width: 38px; height: 36px; border: 0; border-right: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 20px; }
.view-switch button:last-child { border: 0; }
.view-switch button.active { color: #fff; background: var(--purple); }
.active-filters { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 0; }
.active-filters:empty { margin: 0; }
.filter-chip { border: 1px solid #cfc5df; background: #f1ebfa; color: var(--purple-dark); padding: 5px 9px; border-radius: 999px; font-size: 11px; }
.status { margin: 24px 0; padding: 16px; border-radius: 12px; background: #fff1ec; color: #922f11; border: 1px solid #f4c7b7; }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding-top: 24px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.product-card { min-width: 0; position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--card); border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; transition: background .18s ease; }
.product-card:hover { transform: none; box-shadow: none; background: #fdfcf9; }
.product-image { position: relative; aspect-ratio: 1 / 1.08; display: grid; place-items: center; overflow: hidden; padding: 16px 18px 8px; background: #fff; }
.product-image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: normal; transition: transform .25s ease; }
body[data-collection-type="Comics"] .product-image { aspect-ratio: 53 / 82; }
body[data-collection-type="Comics"] .product-image img { object-fit: contain; object-position: center; }
.product-card:hover .product-image img { transform: scale(1.015); }
.image-fallback { color: #aaa49b; font: 700 38px "Space Grotesk"; }
.sale-badge { position: absolute; left: 12px; top: 12px; padding: 4px 8px; background: #ff1d0b; color: #fff; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.product-info { display: flex; flex: 1; flex-direction: column; padding: 0 14px 16px; }
.price-ticket { min-height: 35px; display: flex; align-items: center; gap: 8px; margin: 0 -1px 5px; padding: 4px 14px 3px 5px; background: linear-gradient(105deg,#fff200 95%,#fff 5%); }
.price-ticket .price { color: #f0180b; font: 800 19px/1 "Space Grotesk"; }
.ticket-price { display: flex; flex-direction: column; align-items: flex-start; color: #625d00; font-size: 14px; font-weight: 400; line-height: 1; }
.ticket-price small { font-size: 9px; line-height: .8; }
.product-type { margin: 0; color: #737a80; font-size: 9px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.product-card h3 { margin: 1px 0 3px; font: 700 13px/1.16 "DM Sans"; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product-card h3 a { color: inherit; text-decoration: none; }
.product-card h3 a::after { content: ""; position: absolute; inset: 0; }
.stock-line { margin: 0 0 6px; color: #35620f; font-size: 11px; font-weight: 600; }
.stock-line.status-pre_order, .stock-line.status-special_order { color: #d96f00; }
.stock-line.status-out_of_stock { color: #777e82; }
.comic-meta { margin: 1px 0 3px; color: #42464a; font-size: 10px; font-weight: 700; }
.contributors { margin: 0 0 4px; overflow: hidden; color: #74797d; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.product-dates { display: flex; flex-wrap: wrap; gap: 3px 12px; margin: 2px 0 8px; color: #686d70; font-size: 10px; }
.card-cart-form { position: relative; z-index: 2; margin-top: auto; }
.card-action { position: relative; z-index: 2; display: block; width: 100%; margin-top: auto; padding: 11px 8px; border: 0; background: #00aa00; color: #fff; text-align: center; text-decoration: none; font-weight: 700; cursor: pointer; }
.card-action.pre-order { background: #ff9900; }
.card-action.sold-out { background: #d3d3d3; color: #5c6266; cursor: default; }
mark { padding: 0 1px; background: #e8f7a6; color: inherit; }

.product-grid.list-view { grid-template-columns: 1fr; gap: 0; }
.list-view .product-card { display: grid; grid-template-columns: 130px minmax(0,1fr); }
.list-view .product-image { aspect-ratio: 1; padding: 10px; }
.list-view .product-info { padding: 18px 22px; }
.list-view .product-card h3 { font-size: 18px; -webkit-line-clamp: 2; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 7px; margin-top: 42px; }
.pagination button { min-width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); }
.pagination button.active { border-color: var(--purple); background: var(--purple); color: #fff; }
.pagination button:disabled { opacity: .4; cursor: default; }
.pagination span { color: var(--muted); }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px clamp(20px,5vw,72px); background: #201a29; color: rgba(255,255,255,.55); font-size: 12px; }
footer span:first-child { color: #fff; font-weight: 700; }

.loading-card { min-height: 390px; background: linear-gradient(90deg,#ece8e1 25%,#f7f4ee 37%,#ece8e1 63%); background-size: 400% 100%; animation: shimmer 1.3s infinite; border-radius: var(--radius); }
.skeleton-lines { min-height: 80px; background: repeating-linear-gradient(to bottom, transparent 0 11px, #e6e1da 11px 20px, transparent 20px 33px); opacity: .7; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

@media (max-width: 1250px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .site-header { flex-wrap: wrap; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; }
  .catalogue { grid-template-columns: 1fr; gap: 16px; padding-top: 24px; }
  .filter-toggle { display: flex; justify-content: space-between; width: 100%; padding: 12px 15px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-weight: 700; }
  .filters { display: none; width: 100%; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
  .filters.open { display: block; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .site-header { min-height: 66px; padding: 9px 14px; }
  .hero { padding: 52px 16px 46px; }
  .hero > p:not(.eyebrow) { font-size: 15px; }
  .search-box { min-height: 58px; padding-left: 15px; }
  .search-box kbd { display: none; }
  .search-box button { padding: 0 15px; }
  .lab-nav { margin-right: 0; }
  .prototype-badge { display: none; }
  .typeahead { left: -1px; right: -1px; }
  .suggestions { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; }
  .suggestions button { white-space: nowrap; }
  .catalogue { padding-left: 14px; padding-right: 14px; }
  .results-toolbar { align-items: flex-start; flex-direction: column; }
  .toolbar-actions { width: 100%; justify-content: space-between; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
  .product-info { padding: 0 9px 10px; }
  .product-card h3 { font-size: 13px; }
  .product-image { aspect-ratio: 1 / 1.1; padding: 9px; }
  body[data-collection-type="Comics"] .product-image { aspect-ratio: 53 / 82; }
  .price-ticket { margin-left: 0; margin-right: 0; padding-left: 4px; }
  .price-ticket .price { font-size: 16px; }
  .ticket-price { display: flex; font-size: 12px; }
  .ticket-price small { font-size: 8px; }
  .list-view .product-card { grid-template-columns: 105px minmax(0,1fr); }
  .list-view .product-info { padding: 12px 14px; }
  .list-view .product-card h3 { font-size: 14px; }
  footer { flex-direction: column; }
}
@media (max-width: 390px) { .prototype-badge { display: none; } .search-box input { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
