/* RnG storefront. Deliberately separate from the inventory administration styles. */
:root {
  --navy:#11213b;
  --blue:#174ee8;
  --blue-dark:#103bb4;
  --yellow:#ffe166;
  --ink:#19263d;
  --muted:#596477;
  --line:#dce2ec;
  --paper:#f4f6fb;
  --white:#fff;
  --radius:18px;
  --shadow:0 12px 36px #11213b12;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  background:var(--paper);
  font-size:16px;
  line-height:1.5;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
}

body:has(dialog[open]) {
  overflow:hidden;
}

button,input,select,textarea {
  font:inherit;
}

button,a,input,select,textarea {
  -webkit-tap-highlight-color:transparent;
}

button,a {
  touch-action:manipulation;
}

button {
  cursor:pointer;
}

button:disabled {
  cursor:not-allowed;
}

a {
  color:inherit;
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline:3px solid var(--blue);
  outline-offset:4px;
}

a,button {
  transition:background .18s,color .18s,box-shadow .18s,transform .18s;
}

[hidden] {
  display:none!important;
}

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

h1,h2,h3 {
  line-height:1.13;
  letter-spacing:-.035em;
}

h2 {
  font-size:clamp(1.6rem,2.7vw,2.25rem);
  margin-bottom:12px;
}

h3 {
  font-size:1.125rem;
}

p {
  margin-bottom:16px;
}

svg {
  width:23px;
  height:23px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.skip-link {
  position:fixed;
  top:-100px;
  left:20px;
  background:white;
  padding:15px;
  z-index:99;
}

.skip-link:focus {
  top:12px;
}

.site-header {
  background:var(--navy);
  color:#fff;
  border-bottom:4px solid var(--yellow);
}

.header-inner {
  max-width:1440px;
  margin:auto;
  padding:21px 40px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.brand {
  display:flex;
  align-items:center;
  gap:15px;
  text-decoration:none;
}

.brand-mark {
  font-size:2.5rem;
  line-height:1;
  font-weight:850;
  letter-spacing:-.09em;
}

.brand-mark span {
  font-size:1.1rem;
  color:var(--yellow);
  vertical-align:top;
  letter-spacing:0;
  margin-left:4px;
}

.brand-caption {
  font-size:.875rem;
  font-weight:750;
  letter-spacing:.1em;
  line-height:1.35;
}

.brand-caption small {
  font-size:.75rem;
  letter-spacing:.055em;
  color:#bbc9df;
}

.site-header nav {
  display:flex;
  align-items:center;
  gap:25px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.site-header nav>a {
  text-decoration:none;
  font-size:.875rem;
  font-weight:600;
}

.site-header nav>a:hover {
  color:var(--yellow);
}

.instagram-link {
  display:flex;
  align-items:center;
  gap:8px;
}

.instagram-link span {
  overflow-wrap:anywhere;
}

.site-header :focus-visible {
  outline-color:var(--yellow);
}

.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  border:1px solid transparent;
  border-radius:10px;
  padding:12px 18px;
  min-height:46px;
  text-decoration:none;
  font-size:.875rem;
  line-height:1.4;
  font-weight:700;
  text-align:center;
}

.button-primary {
  background:var(--blue);
  color:#fff;
}

.button-primary:hover {
  background:var(--blue-dark);
}

.button-yellow {
  background:var(--yellow);
  color:var(--navy);
}

.button-yellow:hover {
  background:#ffea92;
}

.button-light {
  background:#fff;
  border-color:var(--line);
  color:var(--ink);
}

.button-light:hover {
  background:#eaf0fb;
}

.button:disabled,.quantity-stepper button:disabled {
  background:#e4e7ed;
  border-color:#d8dde6;
  color:#737c8a;
  box-shadow:none;
  transform:none;
}

.text-button {
  border:0;
  background:transparent;
  padding:8px 0;
  color:var(--blue-dark);
  text-decoration:underline;
  text-underline-offset:4px;
  font-size:.875rem;
  font-weight:650;
}

.text-button:disabled {
  color:var(--muted);
  text-decoration:none;
}

main {
  max-width:1440px;
  margin:auto;
  padding:0 40px;
}

.intro {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:40px;
  padding:45px 0 38px;
}

.eyebrow {
  font-size:.75rem;
  letter-spacing:.13em;
  font-weight:800;
  line-height:1.5;
  color:var(--blue-dark);
  margin:0 0 12px;
}

h1 {
  font-size:clamp(2.5rem,5vw,4.4rem);
  letter-spacing:-.065em;
  margin:0 0 16px;
  font-weight:800;
}

h1 span {
  color:var(--blue);
}

.intro p:not(.eyebrow) {
  color:var(--muted);
  margin-bottom:0;
  line-height:1.7;
}

.intro-note {
  border-left:1px solid #ccd5e5;
  padding:10px 0 10px 40px;
  max-width:420px;
}

.small-label {
  display:block;
  font-size:.75rem;
  font-weight:800;
  letter-spacing:.12em;
  color:var(--muted);
  margin-bottom:18px;
}

.intro-note strong {
  display:block;
  font-size:1.5rem;
  letter-spacing:-.04em;
  margin-bottom:12px;
}

.intro-note p {
  font-size:.875rem;
}

.intro-note a {
  display:inline-block;
  margin-top:22px;
  color:var(--blue-dark);
  font-size:.875rem;
  font-weight:750;
  text-underline-offset:5px;
}

.intro-note a span {
  margin-left:30px;
}

.catalogue {
  padding:30px 0 0;
  border-top:1px solid var(--line);
  scroll-margin-top:20px;
}

.section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:25px;
}

.section-heading .eyebrow {
  margin-bottom:8px;
}

.section-heading h2 {
  margin:0;
}

.section-heading>.button {
  flex-shrink:0;
}

label {
  display:block;
  font-size:.875rem;
  font-weight:650;
  margin-bottom:7px;
}

label span {
  color:var(--muted);
  font-weight:400;
}

input,select,textarea {
  width:100%;
  color:var(--ink);
  background:#fff;
  border:1px solid #cbd3e0;
  border-radius:9px;
  padding:11px 12px;
  min-height:46px;
}

input::placeholder,textarea::placeholder {
  color:#687386;
}

textarea {
  resize:vertical;
}

select {
  padding-right:28px;
}

.search-row {
  display:flex;
  gap:16px;
  margin-bottom:18px;
}

.search-field {
  flex:1;
}

.search-field input {
  background:#fff;
  padding:14px 16px;
  border-color:#b8c5dd;
}

.sort-field {
  width:210px;
}

.sort-field select {
  padding-top:14px;
  padding-bottom:14px;
}

.filter-panel {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:14px;
  padding:20px;
  background:#e9edf5;
  border:1px solid var(--line);
  border-radius:14px;
}

.results-bar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding-top:20px;
}

.results-bar p {
  margin:0;
  font-size:.875rem;
  font-weight:600;
}

.inventory-status {
  font-size:.8125rem;
  color:var(--muted);
  margin:6px 0 20px;
  min-height:1.3em;
}

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

.card {
  min-width:0;
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:13px;
  box-shadow:0 3px 12px #11213b04;
  display:flex;
  flex-direction:column;
}

.card:hover {
  box-shadow:var(--shadow);
  border-color:#b7c6e3;
}

.card-preview {
  display:block;
  padding:0;
  border:0;
  background:transparent;
  width:100%;
  text-align:left;
  color:inherit;
}

.card-image {
  background:linear-gradient(150deg,#eef2f9,#e3e9f4);
  border-radius:11px;
  aspect-ratio:1/1.08;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  padding:18px;
  margin-bottom:15px;
}

.card-image img {
  width:100%;
  height:100%;
  object-fit:contain;
  filter:drop-shadow(0 8px 7px #101e3428);
  transition:transform .2s;
}

.card-preview:hover .card-image img {
  transform:translateY(-3px) rotate(-1deg);
}

.no-card-image {
  font-size:.875rem;
  color:#5e6b80;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:15px;
  min-height:100px;
}

.card-game {
  font-size:.75rem;
  text-transform:uppercase;
  letter-spacing:.07em;
  color:var(--blue-dark);
  font-weight:750;
  display:block;
  margin:0 5px 8px;
}

.card h3 {
  margin:0 5px 8px;
  font-size:1.125rem;
  letter-spacing:-.02em;
  line-height:1.35;
  overflow-wrap:anywhere;
}

.card-code {
  display:block;
  font-size:.8125rem;
  color:var(--muted);
  margin:0 5px 18px;
  overflow-wrap:anywhere;
}

.stock-row {
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:6px;
  font-size:.8125rem;
  margin:auto 5px 13px;
}

.stock-row>span:last-child {
  color:var(--muted);
}

.stock-status {
  font-weight:650;
}

.in-stock {
  color:#166441;
}

.out-of-stock {
  color:#616978;
}

.card-controls {
  border-top:1px solid var(--line);
  padding-top:13px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.quantity-stepper {
  display:flex;
  align-items:center;
  flex-shrink:0;
  overflow:hidden;
  border:1px solid #cbd3e0;
  border-radius:9px;
  background:#fff;
  height:44px;
}

.quantity-stepper button {
  background:#fff;
  color:var(--ink);
  border:0;
  width:32px;
  height:44px;
  padding:0;
  font-size:1.3rem;
  line-height:1;
}

.quantity-stepper button:hover {
  background:#eef2fa;
}

.quantity-stepper input,.quantity-stepper span {
  width:32px;
  text-align:center;
  min-height:42px;
  border:0;
  padding:0;
  border-radius:0;
  font-size:.875rem;
  font-weight:600;
  background:transparent;
  line-height:42px;
}

.quantity-stepper input {
  appearance:textfield;
  -moz-appearance:textfield;
}

.quantity-stepper input::-webkit-inner-spin-button,.quantity-stepper input::-webkit-outer-spin-button {
  -webkit-appearance:none;
  margin:0;
}

.quantity-stepper:focus-within {
  outline:2px solid var(--blue);
  outline-offset:2px;
}

.add-button {
  flex:1;
  padding:10px 7px;
  min-height:44px;
  white-space:nowrap;
}

.cart-hint {
  width:100%;
  font-size:.75rem;
  color:var(--muted);
  margin:0 3px;
}

.load-more-wrap {
  display:flex;
  justify-content:center;
  padding:28px;
}

.inventory-message {
  grid-column:1/-1;
  padding:45px 20px;
  text-align:center;
  border:1px dashed #bdc8dc;
  border-radius:15px;
  background:#fff;
}

.inventory-message p {
  color:var(--muted);
}

.inventory-message h3 {
  font-size:1.35rem;
}

.sell-banner {
  background:var(--navy);
  color:white;
  border-radius:var(--radius);
  padding:35px 40px;
  margin:20px 0 40px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
}

.sell-banner .eyebrow {
  color:var(--yellow);
}

.sell-banner h2 {
  font-size:clamp(1.5rem,2.4vw,2rem);
}

.sell-banner p:last-child {
  color:#c4cee0;
  font-size:.875rem;
  margin-bottom:0;
}

.sell-banner button {
  flex-shrink:0;
}

footer {
  max-width:1440px;
  margin:auto;
  padding:0 40px 130px;
  display:flex;
  justify-content:space-between;
  gap:30px;
  font-size:.875rem;
}

footer strong {
  font-size:1.1rem;
}

footer p {
  font-size:.75rem;
  letter-spacing:.12em;
  color:var(--muted);
  margin:7px 0 0;
}

.footer-links {
  display:flex;
  align-items:flex-start;
  flex-direction:column;
  gap:5px;
}

.footer-links a {
  font-size:.875rem;
  color:var(--blue-dark);
  overflow-wrap:anywhere;
  text-underline-offset:4px;
}

.floating-cart {
  position:fixed;
  right:max(24px,env(safe-area-inset-right));
  bottom:max(24px,env(safe-area-inset-bottom));
  z-index:20;
  display:flex;
  align-items:center;
  gap:12px;
  background:var(--navy);
  color:#fff;
  border:1px solid #344568;
  box-shadow:0 8px 30px #11213b44;
  border-radius:100px;
  padding:16px 20px;
  font-weight:700;
  min-height:62px;
}

.floating-cart:hover {
  background:var(--blue-dark);
  transform:translateY(-2px);
}

.cart-count {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--yellow);
  color:var(--navy);
  min-width:30px;
  height:30px;
  padding:0 7px;
  border-radius:50px;
  font-size:.875rem;
}

.toast {
  position:fixed;
  bottom:calc(max(24px,env(safe-area-inset-bottom)) + 84px);
  right:24px;
  z-index:25;
  width:max-content;
  max-width:min(470px,calc(100vw - 32px));
  padding:16px 18px;
  background:var(--white);
  color:var(--ink);
  border:1px solid #b9c7df;
  border-left:5px solid var(--blue);
  border-radius:12px;
  box-shadow:0 8px 35px #11213b24;
  display:flex;
  align-items:center;
  gap:14px;
  font-size:.875rem;
}

.toast>span {
  overflow-wrap:anywhere;
}

.toast button {
  font-size:.875rem;
  font-weight:650;
  border:0;
  background:transparent;
  color:var(--blue-dark);
  padding:6px 0;
  flex-shrink:0;
}

.toast button:last-child {
  font-size:1.5rem;
  line-height:1;
  padding:4px;
}

dialog {
  width:min(830px,calc(100% - 32px));
  max-height:calc(100dvh - 40px);
  padding:30px;
  border:1px solid var(--line);
  border-radius:20px;
  color:var(--ink);
  background:white;
  box-shadow:0 24px 100px #0004;
  overflow:auto;
}

dialog::backdrop {
  background:#071224ae;
  backdrop-filter:blur(4px);
}

.cart-dialog {
  width:min(730px,calc(100% - 32px));
}

.dialog-heading {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
  margin-bottom:20px;
}

.dialog-heading h2 {
  margin-bottom:0;
}

.dialog-heading .eyebrow {
  margin-bottom:8px;
}

.close-button {
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  background:var(--paper);
  border-radius:50%;
  height:42px;
  width:42px;
  font-size:1.7rem;
  color:var(--ink);
  line-height:1;
}

.muted {
  color:var(--muted);
  font-size:.875rem;
  line-height:1.6;
}

.status-text {
  font-size:.875rem;
  color:var(--blue-dark);
  font-weight:600;
  overflow-wrap:anywhere;
}

.status-text:empty {
  display:none;
}

.cart-item {
  display:flex;
  align-items:center;
  gap:16px;
  border-top:1px solid var(--line);
  padding:20px 0;
}

.cart-image {
  width:62px;
  height:86px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  background:var(--paper);
  border-radius:7px;
}

.cart-image img {
  width:100%;
  height:100%;
  object-fit:contain;
}

.cart-image .no-card-image {
  font-size:.75rem;
  padding:3px;
  min-height:0;
}

.cart-item-info {
  flex:1;
  min-width:0;
}

.cart-item-info h3 {
  font-size:1rem;
  letter-spacing:-.02em;
  margin-bottom:6px;
  overflow-wrap:anywhere;
}

.cart-item-info p {
  font-size:.8125rem;
  color:var(--muted);
  margin-bottom:0;
}

.cart-item-info .text-button {
  padding-bottom:0;
  font-size:.8125rem;
}

.cart-summary {
  border-top:2px solid var(--navy);
  padding:18px 0;
  display:flex;
  justify-content:space-between;
  font-size:1.1rem;
}

.cart-handoff {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:10px 0 14px;
}

.dialog-bottom {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  border-top:1px solid var(--line);
  padding-top:20px;
  margin-top:20px;
}

.copy-fallback {
  font-size:.875rem;
  min-height:180px;
}

.detail-layout {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:30px;
}

.detail-image {
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--paper);
  border-radius:12px;
  padding:20px;
}

.detail-image img {
  width:100%;
  height:auto;
  max-height:420px;
  object-fit:contain;
}

.detail-layout h2 {
  overflow-wrap:anywhere;
}

dl {
  margin:15px 0 20px;
}

dl>div {
  display:flex;
  gap:20px;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  padding:10px 0;
  font-size:.875rem;
}

dt {
  color:var(--muted);
}

dd {
  margin:0;
  text-align:right;
  max-width:65%;
  overflow-wrap:anywhere;
  font-weight:600;
}

.sell-steps {
  padding:15px 15px 15px 34px;
  background:var(--paper);
  border-radius:10px;
  font-size:.875rem;
  line-height:1.8;
  color:var(--muted);
}

.form-row {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}

#sell-form input,#sell-form select,#sell-form textarea {
  margin-bottom:18px;
}

.field-help {
  font-size:.8125rem;
  color:var(--muted);
  margin-top:-8px;
}

#sell-message {
  font-size:.875rem;
  line-height:1.6;
}

.noscript-message {
  padding:20px;
  background:var(--yellow);
  color:var(--ink);
  margin:0;
}

@media(min-width:1400px) {
  .card-grid {
    grid-template-columns:repeat(5,minmax(0,1fr));
  }
  .header-inner,main,footer {
    max-width:1600px;
  }
}

@media(max-width:1100px) {
  .card-grid {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .header-inner {
    padding:20px 28px;
  }
  .site-header nav {
    gap:16px;
  }
  .nav-catalogue {
    display:none;
  }
  .intro-note {
    max-width:330px;
    padding-left:30px;
  }
  main {
    padding:0 28px;
  }
  footer {
    padding-left:28px;
    padding-right:28px;
  }
}

@media(max-width:800px) {
  .header-inner {
    align-items:flex-start;
  }
  .site-header nav {
    gap:12px;
    max-width:330px;
  }
  .instagram-link {
    font-size:.8125rem!important;
  }
  .brand-caption {
    display:none;
  }
  .intro {
    padding:32px 0;
  }
  .intro-note {
    display:none;
  }
  .filter-panel {
    grid-template-columns:repeat(3,minmax(0,1fr));
    padding:16px;
  }
  .card-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
  }
  .sell-banner {
    padding:28px;
    align-items:flex-start;
    flex-direction:column;
    gap:12px;
  }
  .detail-layout {
    gap:20px;
  }
  .cart-item {
    gap:12px;
  }
  .toast {
    right:16px;
  }
}

@media(max-width:520px) {
  .header-inner {
    padding:16px 18px;
    gap:12px;
    align-items:center;
  }
  .brand-mark {
    font-size:2rem;
  }
  .site-header nav {
    gap:8px;
  }
  .site-header nav .button {
    padding:10px 12px;
    font-size:.8125rem;
    min-height:42px;
  }
  .instagram-link {
    justify-content:flex-end;
    order:2;
    width:100%;
  }
  .instagram-link svg {
    width:17px;
    height:17px;
  }
  .site-header:has(.instagram-link:not([hidden])) .header-inner {
    align-items:flex-start;
  }
  .site-header:has(.instagram-link:not([hidden])) .brand {
    padding-top:9px;
  }
  main {
    padding:0 16px;
  }
  .intro {
    padding:28px 0;
  }
  h1 {
    font-size:2.65rem;
  }
  .intro p:not(.eyebrow) {
    font-size:.9375rem;
  }
  .desktop-break {
    display:none;
  }
  .section-heading {
    align-items:flex-start;
    gap:12px;
  }
  .section-heading .button {
    font-size:.8125rem;
    min-height:42px;
    padding:9px 11px;
  }
  .section-heading h2 {
    font-size:1.5rem;
  }
  .section-heading .eyebrow {
    font-size:.75rem;
  }
  .search-row {
    flex-direction:column;
    gap:12px;
  }
  .sort-field {
    width:100%;
    display:flex;
    align-items:center;
    gap:15px;
  }
  .sort-field label {
    margin:0;
    flex-shrink:0;
  }
  .sort-field select {
    padding-top:9px;
    padding-bottom:9px;
  }
  .filter-panel {
    grid-template-columns:repeat(2,minmax(0,1fr));
    padding:14px;
    gap:12px;
  }
  .filter-panel>div:last-child {
    grid-column:1/-1;
  }
  label {
    font-size:.875rem;
  }
  .card-grid {
    gap:10px;
  }
  .card {
    padding:9px;
    border-radius:13px;
  }
  .card-image {
    aspect-ratio:1/1.2;
    padding:9px;
  }
  .card h3 {
    font-size:1rem;
    margin-left:1px;
    margin-right:1px;
  }
  .card-game,.card-code {
    margin-left:1px;
    margin-right:1px;
  }
  .stock-row {
    margin-left:1px;
    margin-right:1px;
  }
  .card-controls {
    gap:8px;
  }
  .card-controls .quantity-stepper {
    width:100%;
    justify-content:space-between;
  }
  .card-controls .quantity-stepper button {
    width:38px;
  }
  .card-controls .quantity-stepper input {
    flex:1;
    min-width:0;
  }
  .add-button {
    width:100%;
  }
  .card-hint {
    font-size:.75rem;
  }
  .sell-banner {
    padding:24px;
    margin-top:0;
  }
  .sell-banner h2 {
    font-size:1.6rem;
  }
  footer {
    padding:0 20px 120px;
    flex-direction:column;
    gap:20px;
  }
  .floating-cart {
    right:max(16px,env(safe-area-inset-right));
    bottom:max(16px,env(safe-area-inset-bottom));
    padding:12px 16px;
    min-height:56px;
  }
  .toast {
    bottom:calc(max(16px,env(safe-area-inset-bottom)) + 74px);
    padding:12px;
    gap:9px;
    font-size:.8125rem;
  }
  .toast button {
    font-size:.8125rem;
  }
  dialog {
    padding:20px;
    width:calc(100% - 20px);
    max-height:calc(100dvh - 24px);
    border-radius:15px;
  }
  .dialog-heading {
    gap:12px;
  }
  .dialog-heading h2 {
    font-size:1.7rem;
  }
  .detail-layout {
    grid-template-columns:1fr;
  }
  .detail-image {
    max-height:300px;
  }
  .detail-image img {
    max-height:260px;
  }
  .cart-item {
    flex-wrap:wrap;
  }
  .cart-item .quantity-stepper {
    margin-left:auto;
  }
  .cart-item-info {
    min-width:calc(100% - 85px);
  }
  .form-row {
    grid-template-columns:1fr;
    gap:0;
  }
  .cart-handoff>.button {
    flex:1;
  }
  .dialog-bottom {
    gap:12px;
  }
  .dialog-bottom .button {
    padding:10px 12px;
  }
  .close-button {
    width:38px;
    height:38px;
  }
}

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


/* Compact catalogue and collection intake */
.catalogue { padding-top:28px; }
#catalogue-title { font-size:clamp(1.6rem,3vw,2.1rem); margin:0; }
.sell-banner { padding-top:26px; padding-bottom:26px; }
.sell-banner h2 { font-size:1.5rem; margin-bottom:8px; }
.sell-banner p { margin-bottom:0; }
#sell-modal { width:min(760px,calc(100% - 28px)); }
.sell-steps { display:flex; flex-wrap:wrap; gap:10px 30px; padding:16px 16px 16px 36px; }
.sell-steps li { padding-right:12px; }
#seller-fields { border:0; padding:0; margin:22px 0 0; min-width:0; }
#seller-fields legend { font-size:1.125rem; font-weight:750; padding:0 0 16px; }
#seller-fields h3 { margin:12px 0 18px; }
#sell-form label span,.field-help { font-size:.875rem; }
.sell-notice { border-left:3px solid var(--blue); padding:12px 16px; background:var(--paper); font-size:.875rem; margin-bottom:18px; }
.photo-heading { display:flex; justify-content:space-between; gap:12px; }
.photo-heading>span { font-size:.875rem; color:var(--muted); }
.photo-drop { display:flex; flex-direction:column; align-items:center; gap:6px; padding:24px 16px; border:2px dashed #9cacca; border-radius:12px; background:var(--paper); text-align:center; cursor:pointer; margin-bottom:16px; }
.photo-drop>span { color:var(--muted); }
.photo-drop:hover,.photo-drop.drag-over { background:#eaf0ff; border-color:var(--blue); }
.photo-drop:focus-visible { outline:3px solid var(--blue); outline-offset:4px; }
.seller-photo-list { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:18px; }
.seller-photo { border:1px solid var(--line); border-radius:10px; padding:8px; min-width:0; background:white; }
.seller-photo img { display:block; width:100%; height:120px; object-fit:contain; border-radius:6px; background:var(--paper); }
.seller-photo>span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.875rem; margin-top:6px; }
.seller-photo button { font-size:.875rem; padding:8px 0; }
#sell-form .consent-label { display:flex; align-items:flex-start; gap:10px; font-weight:400; margin:10px 0 18px; }
#sell-form .consent-label input { width:18px; height:18px; flex-shrink:0; margin:3px 0 0; accent-color:var(--blue); }
#sell-form .consent-label span { line-height:1.5; }
#sell-challenge { margin:12px 0; min-width:0; }
#sell-submit-help { margin:12px 0; }
#sell-form button:disabled { opacity:.65; }
.sell-success { padding:24px; background:#edf8f1; border:1px solid #badcc7; border-radius:12px; }
.sell-success strong { overflow-wrap:anywhere; }
.visually-hidden,.form-trap { position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media(max-width:600px) {
  .catalogue { padding-top:20px; }
  .header-inner { gap:12px; }
  .site-header nav { gap:10px; }
  .site-header nav .button { padding:10px 12px; font-size:.875rem; }
  .sell-steps { gap:8px 24px; font-size:.875rem; }
  .seller-photo-list { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .seller-photo img { height:94px; }
  #sell-modal { padding:20px; }
  .sell-success { padding:18px; }
}
@media(max-width:380px) { .seller-photo-list { grid-template-columns:repeat(2,minmax(0,1fr)); } }
