:root {
  --ink: #10244a;
  --muted: #65738a;
  --line: #d9e4f5;
  --paper: #f5f8ff;
  --white: #ffffff;
  --red: #ef3d2f;
  --red-dark: #b52b28;
  --yellow: #ffd64a;
  --blue: #2f77d4;
  --sky: #9ed8ff;
  --cream: #fff9e8;
  --green: #16835b;
  --shadow: 0 22px 60px rgba(16, 36, 74, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(158, 216, 255, 0.18), transparent 320px),
    var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button:disabled {
  cursor: not-allowed;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.load-error,
.promo-strip {
  padding: 9px 16px;
  color: var(--ink);
  background: var(--yellow);
  font-size: 0.84rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-main {
  display: grid;
  grid-template-columns: 220px minmax(180px, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 16px clamp(16px, 4vw, 54px);
}

.brand,
.main-nav,
.cart-toggle,
.language-toggle,
.cart-header,
.cart-total,
.product-bottom,
.detail-header,
.detail-actions,
.quantity-controls {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: block;
  object-fit: cover;
  border: 2px solid var(--white);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(16, 36, 74, 0.18);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.brand strong {
  font-size: 1.02rem;
  letter-spacing: 0;
}

.top-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.top-search input {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border: 2px solid var(--line);
  border-radius: 6px;
  background: #fbfbfc;
}

.search-submit {
  height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  color: var(--white);
  background: var(--red);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 950;
  text-transform: uppercase;
}

.search-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px clamp(16px, 4vw, 54px);
  color: var(--muted);
  background: #fff7ed;
  border-bottom: 1px solid #fed7aa;
  font-weight: 900;
}

.search-status.hidden {
  display: none;
}

.clear-search {
  border: 0;
  color: var(--red);
  background: transparent;
  cursor: pointer;
  font-weight: 950;
  text-transform: uppercase;
}

.language-toggle {
  width: max-content;
  padding: 3px;
  background: #edf6ff;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.language-toggle button {
  min-width: 42px;
  min-height: 34px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 950;
}

.language-toggle button.active {
  color: var(--white);
  background: var(--ink);
}

.cart-toggle,
.button,
.section-tab,
.icon-button,
.add-button,
.detail-link,
.cart-remove,
.quantity-controls button {
  border: 0;
  cursor: pointer;
  font-weight: 900;
}

.cart-toggle {
  justify-content: center;
  gap: 8px;
  min-width: 94px;
  min-height: 44px;
  padding: 0 14px;
  color: var(--white);
  background: var(--ink);
  border-radius: 6px;
}

.cart-toggle [data-cart-count] {
  display: grid;
  place-items: center;
  min-width: 23px;
  min-height: 23px;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 999px;
}

.main-nav {
  gap: 26px;
  padding: 0 clamp(16px, 4vw, 54px) 13px;
  overflow-x: auto;
  font-size: 0.88rem;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.section-tab {
  padding: 0 0 7px;
  color: var(--ink);
  background: transparent;
  border-bottom: 3px solid transparent;
  font-size: inherit;
  text-transform: inherit;
}

.section-tab.active {
  color: var(--red);
  border-color: var(--red);
}

.main-nav a:hover,
.section-tab:hover {
  color: var(--red);
}

main {
  background: transparent;
}

.brand-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.78fr);
  align-items: center;
  gap: clamp(24px, 5vw, 70px);
  min-height: 520px;
  padding: clamp(34px, 7vw, 74px) clamp(16px, 4vw, 54px);
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 216, 74, 0.34), transparent 26%),
    radial-gradient(circle at 23% 16%, rgba(158, 216, 255, 0.66), transparent 28%),
    linear-gradient(135deg, #fffdf4, #edf7ff 48%, #ffffff);
  border-bottom: 1px solid var(--line);
}

.hero-logo {
  display: block;
  width: min(310px, 100%);
  height: auto;
  margin-bottom: 22px;
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}

.brand-hero h1 {
  max-width: 780px;
  margin: 0 0 18px;
  font-size: clamp(2.5rem, 6vw, 5.9rem);
  line-height: 0.94;
  text-transform: uppercase;
}

.brand-hero p:not(.eyebrow) {
  max-width: 600px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.brand-hero .eyebrow {
  color: var(--red);
}

.banner-art {
  position: relative;
  display: grid;
  min-height: 340px;
  align-items: center;
  justify-items: center;
}

.storefront-banner {
  display: block;
  width: min(430px, 100%);
  height: auto;
  border-radius: 999px;
  filter: drop-shadow(0 30px 46px rgba(16, 36, 74, 0.26));
}

.raw-section,
.graded-section,
.accessory-section,
.trust-strip {
  padding: clamp(34px, 6vw, 72px) clamp(16px, 4vw, 54px);
}

.raw-section,
.accessory-section {
  background: linear-gradient(180deg, #ffffff, #f5f9ff);
}

.graded-section {
  background: linear-gradient(180deg, #fffaf0, #ffffff);
}

.product-section {
  display: none;
}

.product-section.active {
  display: block;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-note {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.raw-grid,
.graded-grid,
.accessory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 20px;
}

.product-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(16, 36, 74, 0.08);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 44px rgba(16, 36, 74, 0.14);
}

.stock-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 6px 8px;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 4px;
  box-shadow: 0 8px 18px rgba(24, 24, 24, 0.12);
  font-size: 0.66rem;
  font-weight: 950;
  text-transform: uppercase;
}

.stock-badge.sold {
  color: var(--white);
  background: #9ca3af;
}

.product-media-button {
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 0;
  border: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 216, 74, 0.18), transparent 28%),
    linear-gradient(150deg, #f5fbff, #eef6ff 54%, #fff7da);
  cursor: pointer;
}

.product-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 278px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.9), transparent 20%),
    linear-gradient(145deg, var(--art-bg), #111827);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.product-art::before {
  content: "";
  position: absolute;
  width: 96px;
  height: 136px;
  border: 6px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.9) 0 18%, transparent 19%),
    linear-gradient(var(--art-accent), var(--art-accent));
  box-shadow: 0 18px 32px rgba(24, 24, 24, 0.25);
  transform: rotate(-5deg);
}

.product-art[data-type="graded"]::before {
  width: 108px;
  height: 156px;
  border-width: 10px;
  border-radius: 16px;
  outline: 2px solid rgba(255, 255, 255, 0.54);
  outline-offset: 8px;
}

.product-art[data-type="accessory"]::before {
  width: 118px;
  height: 88px;
  border-radius: 12px;
  background:
    linear-gradient(0deg, transparent 43%, rgba(255, 255, 255, 0.68) 44% 56%, transparent 57%),
    linear-gradient(90deg, transparent 43%, rgba(255, 255, 255, 0.68) 44% 56%, transparent 57%),
    linear-gradient(var(--art-accent), var(--art-accent));
}

.product-art span {
  position: relative;
  z-index: 1;
  align-self: end;
  margin-bottom: 18px;
}

.product-art.large {
  min-height: 360px;
  border-radius: 6px;
}

.product-photo {
  display: block;
  width: 100%;
  height: 300px;
  min-height: 0;
  padding: 16px;
  object-fit: contain;
}

.product-info,
.detail-copy {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
}

.product-info h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.18;
}

.condition {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-info p,
.detail-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.product-info > p {
  display: -webkit-box;
  min-height: 40px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.raw-details,
.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.raw-details div,
.detail-list div {
  padding: 10px;
  background: #f4f8ff;
  border-radius: 5px;
}

.raw-details dt,
.detail-list dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.raw-details dd,
.detail-list dd {
  margin: 4px 0 0;
  font-weight: 950;
}

.product-bottom {
  justify-content: space-between;
  gap: 12px;
}

.price {
  color: var(--red);
  font-size: 1.12rem;
  font-weight: 950;
}

.vat-note,
.price[data-vat]::after {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 850;
  text-transform: uppercase;
}

.price[data-vat]::after {
  content: attr(data-vat);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.detail-link {
  min-height: 38px;
  padding: 0 11px;
  color: var(--ink);
  background: var(--paper);
  border-radius: 5px;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.add-button,
.button.primary {
  min-height: 38px;
  padding: 0 13px;
  color: var(--white);
  background: var(--ink);
  border-radius: 5px;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.add-button:disabled,
.button:disabled {
  background: #9ca3af;
}

.button.primary {
  background: var(--red);
}

.button.full {
  width: 100%;
  min-height: 46px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--ink);
}

.trust-strip article {
  padding: 22px;
  background: var(--white);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.cart-panel,
.detail-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(440px, 100vw);
  height: 100vh;
  padding: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateX(105%);
  transition: transform 180ms ease;
}

.detail-panel {
  width: min(760px, 100vw);
  overflow: auto;
}

.cart-panel.open,
.detail-panel.open {
  transform: translateX(0);
}

.cart-header,
.detail-header {
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.cart-header h2,
.detail-header h2 {
  margin: 0;
  font-size: 1.4rem;
}

.icon-button {
  width: 40px;
  height: 40px;
  color: var(--ink);
  background: var(--paper);
  border-radius: 5px;
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px 0;
  overflow: auto;
}

.cart-line {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.cart-line strong,
.cart-line span {
  display: block;
}

.cart-line span {
  margin-top: 4px;
  color: var(--muted);
}

.quantity-controls {
  gap: 8px;
  margin-top: 10px;
}

.quantity-controls button {
  width: 28px;
  height: 28px;
  background: var(--paper);
  border-radius: 4px;
}

.cart-remove {
  color: var(--red);
  background: transparent;
}

.cart-empty {
  align-self: center;
  color: var(--muted);
  text-align: center;
}

.cart-empty.hidden {
  display: none;
}

.cart-footer {
  display: grid;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.cart-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.shipping-zone {
  display: grid;
  gap: 8px;
}

.shipping-zone span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.shipping-zone select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-weight: 850;
}

.cart-total {
  justify-content: space-between;
}

.order-total {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 1.04rem;
}

.detail-body {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1fr);
  gap: 18px;
  padding-top: 18px;
}

.detail-photo-button {
  position: relative;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: zoom-in;
}

.detail-photo-button .product-photo {
  min-height: 460px;
  object-fit: contain;
  background: var(--paper);
}

.detail-photo-button span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 10px;
  color: var(--white);
  background: rgba(24, 24, 24, 0.78);
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.detail-actions {
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  background: rgba(24, 24, 24, 0.42);
}

.scrim.open {
  display: block;
}

.photo-viewer {
  position: fixed;
  inset: 24px;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 52px 18px 18px;
  background: rgba(10, 10, 10, 0.92);
  border-radius: 10px;
}

.photo-viewer.open {
  display: grid;
}

.photo-viewer img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.photo-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 28px clamp(16px, 4vw, 54px);
  color: rgba(255, 255, 255, 0.84);
  background: var(--ink);
}

.site-footer strong {
  display: block;
  color: var(--white);
  margin-bottom: 6px;
}

.site-footer p {
  max-width: 560px;
  margin: 0;
  line-height: 1.5;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.site-footer a:hover {
  color: var(--yellow);
}

.result-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.policy-page {
  background: var(--paper);
}

.policy-shell {
  max-width: 940px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 72px) 18px;
}

.policy-card {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 5vw, 48px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(24, 24, 24, 0.06);
}

.policy-card h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.98;
  text-transform: uppercase;
}

.policy-card h2 {
  font-size: 1.25rem;
}

.policy-card p,
.policy-card li {
  color: var(--muted);
  line-height: 1.6;
}

.policy-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
}

.policy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.result-page section {
  max-width: 620px;
  padding: clamp(28px, 6vw, 64px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.result-page h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.98;
  text-transform: uppercase;
}

.result-page p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}

.accounting-header {
  grid-template-columns: 220px 1fr;
}

.accounting-page {
  background: var(--paper);
}

.accounting-hero,
.accounting-section,
.metric-grid {
  padding: clamp(34px, 6vw, 72px) clamp(16px, 4vw, 54px);
}

.accounting-hero {
  background: var(--white);
}

.accounting-hero h1 {
  max-width: 820px;
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: 0.96;
  text-transform: uppercase;
}

.accounting-hero p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.6;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric-card,
.expense-card,
.fulfillment-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(24, 24, 24, 0.06);
}

.metric-card {
  display: grid;
  gap: 8px;
  padding: 20px;
}

.metric-card span,
.metric-card small {
  color: var(--muted);
  font-weight: 800;
}

.metric-card strong {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.accounting-section {
  background: var(--paper);
}

.fulfillment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.fulfillment-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px;
}

.fulfillment-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.fulfillment-card strong {
  font-size: 2rem;
}

.fulfillment-card p:not(.eyebrow),
.fulfillment-card dt,
.fulfillment-card li {
  color: var(--muted);
  line-height: 1.45;
}

.fulfillment-card dl,
.fulfillment-card ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.fulfillment-card dl div,
.fulfillment-card li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.fulfillment-card dd {
  margin: 0;
  font-weight: 950;
}

.fulfillment-card b {
  color: var(--ink);
}

.fulfillment-card.assumptions li {
  display: list-item;
  margin-left: 18px;
  list-style: disc;
}

.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

td span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
}

.positive {
  color: var(--green);
  font-weight: 950;
}

.negative {
  color: var(--red);
  font-weight: 950;
}

.expense-list {
  display: grid;
  gap: 14px;
}

.expense-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  padding: 22px;
}

.expense-card h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

.expense-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.5;
}

.expense-total {
  text-align: right;
}

.expense-total strong {
  display: block;
  font-size: 1.8rem;
}

.expense-total span {
  color: var(--muted);
  font-weight: 800;
}

.expense-card ul {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.expense-card li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

@media (max-width: 1120px) {
  .raw-grid,
  .graded-grid,
  .accessory-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }

  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-grid,
  .fulfillment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header-main {
    grid-template-columns: 1fr auto auto;
  }

  .raw-grid,
  .graded-grid,
  .accessory-grid {
    grid-template-columns: 1fr;
  }

  .top-search {
    grid-column: 1 / -1;
    order: 3;
  }

  .search-status {
    align-items: start;
    flex-direction: column;
  }

  .section-heading,
  .detail-body,
  .brand-hero,
  .site-footer {
    grid-template-columns: 1fr;
    display: grid;
  }

  .brand-hero {
    min-height: 0;
  }

  .site-footer nav {
    justify-content: start;
  }

  .photo-viewer {
    inset: 10px;
  }

  .banner-art {
    min-height: 0;
  }

  .storefront-banner {
    transform: none;
  }

  .product-art,
  .product-photo {
    height: 280px;
    min-height: 0;
  }
}

@media (max-width: 520px) {
  .header-main {
    grid-template-columns: 1fr auto;
  }

  .language-toggle,
  .top-search {
    grid-column: 1 / -1;
  }

  .language-toggle {
    grid-column: 1;
    justify-self: start;
  }

  .top-search {
    grid-template-columns: 1fr;
  }

  .cart-toggle {
    grid-column: 2;
    grid-row: 1;
  }

  .product-card {
    grid-template-columns: 1fr;
  }

  .product-media-button {
    min-height: 260px;
  }

  .product-photo {
    height: 260px;
    padding: 12px;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .fulfillment-grid,
  .expense-card {
    grid-template-columns: 1fr;
  }

  .expense-total {
    text-align: left;
  }
}
