/* ==============================================================
   Jeson Customs — design system

   Ground: deep ink blue, the colour the logo sits on.
   Accent: electric blue, used for anything live or clickable.
   Paint:  red / yellow / sky, used as paint only — never as UI chrome.
   ============================================================== */

:root {
  /* Surface */
  --ink:          #08163A;
  --ink-2:        #0D1F4E;
  --ink-3:        #162C63;
  --line:         rgba(255, 255, 255, 0.12);

  /* Accent */
  --electric:     #1B4FE8;
  --electric-lt:  #4C7BFF;

  /* Paint */
  --paint-red:    #E01B24;
  --paint-yellow: #FFC61A;
  --paint-sky:    #2E9BFF;

  /* Type */
  --white:        #F3F5FA;
  --grey:         #A8B3CE;
  --grey-dim:     #6B7A9E;

  --font-display: 'Archivo Black', 'Arial Black', sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'Space Mono', 'Courier New', monospace;

  --wrap:  1200px;
  --gap:   clamp(1rem, 3vw, 2rem);
  --radius: 4px;
}

/* --------------------------------------------------------------
   Reset
   -------------------------------------------------------------- */

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

body, h1, h2, h3, h4, p, figure, ul, ol {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

:focus-visible {
  outline: 3px solid var(--paint-yellow);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--paint-yellow);
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  z-index: 200;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------
   Layout
   -------------------------------------------------------------- */

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

.section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section--tight { padding-block: clamp(2rem, 5vw, 3rem); }

/* --------------------------------------------------------------
   Type
   -------------------------------------------------------------- */

.display {
  font-family: var(--font-display);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.h-xl { font-size: clamp(2.75rem, 9vw, 6rem); }
.h-lg { font-size: clamp(2rem, 5vw, 3.25rem); }
.h-md { font-size: clamp(1.4rem, 3vw, 2rem); }

/* The mono eyebrow. Used for labels that carry data, never for decoration. */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paint-yellow);
  display: block;
  margin-bottom: 0.9rem;
}

.lede {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--grey);
  max-width: 56ch;
}

.muted { color: var(--grey); }

/* --------------------------------------------------------------
   Buttons
   -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--electric); color: #fff; }
.btn--primary:hover { background: var(--electric-lt); }

.btn--paint { background: var(--paint-red); color: #fff; }
.btn--paint:hover { background: #f5323b; }

.btn--ghost { border-color: var(--line); color: var(--white); background: transparent; }
.btn--ghost:hover { border-color: var(--white); }

.btn--wide { width: 100%; justify-content: center; }

/* --------------------------------------------------------------
   Header
   -------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 22, 58, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 68px;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand span { color: var(--paint-yellow); }

.nav { display: flex; gap: 1.5rem; align-items: center; }

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--grey);
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav a:hover { color: var(--white); }
.nav a.is-active { color: var(--white); border-bottom-color: var(--paint-yellow); }

.header__actions { display: flex; align-items: center; gap: 0.75rem; }

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.cart-link:hover { border-color: var(--white); }

.cart-count {
  background: var(--paint-red);
  color: #fff;
  min-width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--white);
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  font-size: 1.1rem;
}

@media (max-width: 860px) {
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1rem;
  }
  .nav.is-open { display: flex; }
  .nav a { width: 100%; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
}

/* --------------------------------------------------------------
   Hero
   The one loud moment on the site. Everything else stays quiet.
   -------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(46, 155, 255, 0.30), transparent 60%),
    radial-gradient(700px 500px at 85% 80%, rgba(27, 79, 232, 0.42), transparent 62%),
    linear-gradient(160deg, var(--ink-3), var(--ink) 70%);
  padding-block: clamp(3.5rem, 11vw, 7rem);
}

/* Paint flecks. Decorative only — hidden from screen readers. */
.hero__fleck {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.5px);
  opacity: 0.85;
  pointer-events: none;
}

.hero__inner { position: relative; z-index: 2; max-width: 62ch; }

.hero h1 { margin-bottom: 1.25rem; }
.hero h1 em {
  font-style: normal;
  color: var(--paint-yellow);
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.25);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* The docket strip: three facts, set as data, not as marketing copy. */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 3rem;
  position: relative;
  z-index: 2;
}

.fact { background: var(--ink); padding: 1.1rem 1.25rem; }
.fact__k {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-dim);
  display: block;
  margin-bottom: 0.3rem;
}
.fact__v { font-weight: 700; font-size: 0.95rem; }

/* --------------------------------------------------------------
   Section heading
   -------------------------------------------------------------- */

.head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.head__link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  border-bottom: 1px solid var(--grey-dim);
  padding-bottom: 2px;
}
.head__link:hover { color: var(--white); border-color: var(--white); }

/* --------------------------------------------------------------
   Collection tiles
   -------------------------------------------------------------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-2);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.tile:hover { border-color: var(--electric-lt); transform: translateY(-3px); }

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: opacity 0.25s ease, transform 0.35s ease;
}
.tile:hover img { opacity: 0.75; transform: scale(1.04); }

.tile__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.1rem;
  background: linear-gradient(to top, rgba(8, 22, 58, 0.96), transparent);
}
.tile__name {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.05rem;
  line-height: 1.1;
}
.tile__blurb {
  font-size: 0.82rem;
  color: var(--grey);
  margin-top: 0.2rem;
}

/* --------------------------------------------------------------
   Product card — the workshop docket
   -------------------------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--electric-lt); transform: translateY(-4px); }

.card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--ink-3);
  overflow: hidden;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }

.card__flag {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  background: var(--paint-red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 2px;
}

.card__body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}

.card__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-transform: uppercase;
  line-height: 1.15;
}

/* The spec block. Real data about the pair: model, lead time. */
.spec {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--grey-dim);
  display: grid;
  gap: 0.2rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--line);
}
.spec__row { display: flex; justify-content: space-between; gap: 0.75rem; }
.spec__row span:last-child { color: var(--grey); text-align: right; }

.card__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.4rem;
}

.price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--paint-yellow);
}

/* --------------------------------------------------------------
   Custom-work band
   -------------------------------------------------------------- */

.band {
  background:
    linear-gradient(135deg, var(--electric) 0%, #0B3AC4 55%, var(--ink-3) 100%);
  border-radius: var(--radius);
  padding: clamp(2rem, 6vw, 3.5rem);
  position: relative;
  overflow: hidden;
}
.band__inner { position: relative; z-index: 2; max-width: 54ch; }
.band .lede { color: rgba(255, 255, 255, 0.86); }

/* --------------------------------------------------------------
   Product detail
   -------------------------------------------------------------- */

.pdp {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
@media (max-width: 880px) {
  .pdp { grid-template-columns: 1fr; }
}

.gallery__main {
  aspect-ratio: 1 / 1;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }

.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.thumb {
  aspect-ratio: 1 / 1;
  border: 2px solid transparent;
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  background: var(--ink-2);
  padding: 0;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.thumb.is-active { border-color: var(--paint-yellow); }
.thumb.is-active img, .thumb:hover img { opacity: 1; }

.pdp__price {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--paint-yellow);
  margin-block: 0.75rem 1.25rem;
}

.field { margin-bottom: 1.25rem; }

.label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  display: block;
  margin-bottom: 0.5rem;
}

.sizes { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.size {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0.55rem 0.85rem;
  background: transparent;
  color: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.size:hover { border-color: var(--white); }
.size.is-active { background: var(--white); color: var(--ink); border-color: var(--white); }
.size:disabled { opacity: 0.3; cursor: not-allowed; text-decoration: line-through; }

.input, .textarea, .select {
  width: 100%;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 0.9rem;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--electric-lt); }
.textarea { min-height: 110px; resize: vertical; }

.specsheet {
  margin-top: 1.75rem;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  display: grid;
  gap: 0.55rem;
}
.specsheet__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--grey-dim);
}
.specsheet__row span:last-child { color: var(--white); text-align: right; }

/* --------------------------------------------------------------
   Contact
   -------------------------------------------------------------- */

.channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.channel {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 1.25rem;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.channel:hover { border-color: var(--electric-lt); transform: translateY(-2px); }

.channel__icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink-3);
}
.channel__icon svg { width: 19px; height: 19px; fill: var(--white); }

.channel__name { font-weight: 700; font-size: 0.95rem; }
.channel__meta { font-family: var(--font-mono); font-size: 0.72rem; color: var(--grey-dim); }

/* --------------------------------------------------------------
   Footer
   -------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--line);
  background: var(--ink-2);
  padding-block: 3rem 2rem;
  margin-top: 4rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 720px) {
  .footer__grid { grid-template-columns: 1fr; }
}

.footer h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-dim);
  margin-bottom: 0.9rem;
}

.footer li { margin-bottom: 0.5rem; }
.footer li a { font-size: 0.9rem; color: var(--grey); }
.footer li a:hover { color: var(--white); }

.footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--grey-dim);
}

/* --------------------------------------------------------------
   Empty states + utilities
   -------------------------------------------------------------- */

.empty {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--grey);
}

.stack > * + * { margin-top: 1rem; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .card:hover, .tile:hover, .btn:hover, .channel:hover { transform: none; }
}

/* --------------------------------------------------------------
   Cart
   -------------------------------------------------------------- */

.cart {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 900px) {
  .cart { grid-template-columns: 1fr; }
}

.line {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.line:first-child { padding-top: 0; }

.line__media {
  width: 96px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line);
}
.line__media img { width: 100%; height: 100%; object-fit: cover; }

.line__name {
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  line-height: 1.2;
}

.line__meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--grey);
  margin-top: 0.35rem;
}

.line__note {
  font-size: 0.82rem;
  color: var(--grey-dim);
  font-style: italic;
  margin-top: 0.4rem;
  max-width: 44ch;
}

.line__remove {
  background: none;
  border: none;
  padding: 0;
  margin-top: 0.6rem;
  color: var(--grey-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border-bottom: 1px solid transparent;
}
.line__remove:hover { color: var(--paint-red); border-bottom-color: var(--paint-red); }

.line__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.qty button {
  background: none;
  border: none;
  color: var(--white);
  width: 32px;
  height: 32px;
  font-size: 1rem;
  cursor: pointer;
}
.qty button:hover { background: var(--ink-3); }
.qty span {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  min-width: 28px;
  text-align: center;
}

.line__price {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--paint-yellow);
  white-space: nowrap;
}

@media (max-width: 560px) {
  .line { grid-template-columns: 72px 1fr; }
  .line__media { width: 72px; }
  .line__right {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.summary {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: sticky;
  top: 88px;
}

.summary__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.9rem;
}
.summary__row strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--paint-yellow);
}
.summary__row .muted { font-family: var(--font-mono); font-size: 0.75rem; }

.summary__note {
  font-size: 0.8rem;
  color: var(--grey-dim);
  line-height: 1.5;
  margin-top: 1rem;
}

/* --------------------------------------------------------------
   Toast
   -------------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, 150%);
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--ink-2);
  border: 1px solid var(--electric-lt);
  border-radius: var(--radius);
  padding: 0.75rem 0.75rem 0.75rem 1.25rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1);
  max-width: calc(100% - 2rem);
}
.toast.is-visible { transform: translate(-50%, 0); }
.toast .btn { padding: 0.55rem 1rem; font-size: 0.85rem; }

@media (prefers-reduced-motion: reduce) {
  .toast { transition: none; }
}

/* --------------------------------------------------------------
   Video media
   -------------------------------------------------------------- */

.gallery__main video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--ink-3);
}

.gallery__main [hidden] { display: none !important; }

/* Play badge on a card whose product has video */
.card__video {
  position: absolute;
  bottom: 0.7rem;
  right: 0.7rem;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: rgba(8, 22, 58, 0.82);
  border: 1px solid var(--line);
  border-radius: 50%;
  backdrop-filter: blur(4px);
}
.card__video svg { width: 14px; height: 14px; fill: var(--white); }

/* Play badge on a video thumbnail */
.thumb { position: relative; }
.thumb__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(8, 22, 58, 0.35);
  pointer-events: none;
}
.thumb__play svg { width: 18px; height: 18px; fill: var(--white); }

/* --------------------------------------------------------------
   Custom order builder
   -------------------------------------------------------------- */

.custom-head { max-width: 62ch; margin-bottom: 2.5rem; }

.custom {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .custom { grid-template-columns: 1fr; }
}

.custom__form {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.hint {
  font-size: 0.78rem;
  color: var(--grey-dim);
  margin-top: 0.4rem;
  line-height: 1.5;
}

/* Chips ---------------------------------------------------------- */

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.chip {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.55rem 1rem;
  background: transparent;
  color: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.chip:hover { border-color: var(--white); }
.chip.is-active { background: var(--white); color: var(--ink); border-color: var(--white); }

/* Dropzone ------------------------------------------------------- */

.dropzone {
  border: 1px dashed var(--grey-dim);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  background: rgba(255, 255, 255, 0.02);
}
.dropzone:hover, .dropzone.is-over {
  border-color: var(--electric-lt);
  background: rgba(27, 79, 232, 0.08);
}

.dropzone__idle strong { display: block; margin-bottom: 0.25rem; font-size: 0.95rem; }
.dropzone__idle .hint { margin-top: 0; }

.dropzone__preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
}
.dropzone__preview img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.dz__name {
  display: block;
  font-size: 0.85rem;
  word-break: break-all;
  margin-bottom: 0.25rem;
}

.dropzone__busy {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--grey);
}

/* Aside ---------------------------------------------------------- */

.custom__aside {
  position: sticky;
  top: 88px;
}

.steps {
  margin-top: 1.25rem;
  display: grid;
  gap: 1.1rem;
}
.steps li { display: flex; gap: 0.85rem; align-items: flex-start; }

.steps__n {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--electric);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
}

.steps strong { display: block; font-size: 0.9rem; margin-bottom: 0.15rem; }
.steps p { font-size: 0.82rem; color: var(--grey-dim); line-height: 1.5; }

.aside-note {
  margin-top: 1.75rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
}
.aside-note p { font-size: 0.84rem; color: var(--grey); line-height: 1.6; }

/* Commission line in the cart ------------------------------------ */

.tag-custom {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--paint-red);
  color: #fff;
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
  vertical-align: middle;
  margin-left: 0.4rem;
}

.line__quoted {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--grey);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Date input readability on a dark background */
input[type="date"] { color-scheme: dark; }

/* --------------------------------------------------------------
   Checkout
   -------------------------------------------------------------- */

.checkout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .checkout { grid-template-columns: 1fr; }
}

.panel {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  margin-bottom: 1.25rem;
}

.panel__title {
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 520px) {
  .two { grid-template-columns: 1fr; gap: 0; }
}

/* Payment methods ------------------------------------------------ */

.methods { display: grid; gap: 0.75rem; }

.method {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.method:hover { border-color: var(--grey); }
.method:has(input:checked) {
  border-color: var(--electric-lt);
  background: rgba(27, 79, 232, 0.10);
}

.method input { margin-top: 0.25rem; accent-color: var(--electric); flex-shrink: 0; }
.method__label { display: block; font-weight: 700; font-size: 0.95rem; }
.method__hint {
  display: block;
  font-size: 0.8rem;
  color: var(--grey-dim);
  line-height: 1.5;
  margin-top: 0.25rem;
}

/* Errors --------------------------------------------------------- */

.errors {
  border: 1px solid var(--paint-red);
  background: rgba(224, 27, 36, 0.10);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}
.errors ul { list-style: disc; padding-left: 1.1rem; }
.errors li { font-size: 0.88rem; margin-bottom: 0.35rem; }

/* Mini summary lines --------------------------------------------- */

.mini-lines { margin-bottom: 0.75rem; }

.mini-line {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.mini-line img {
  width: 40px; height: 40px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--line);
}
.mini-line__name { display: block; font-size: 0.85rem; font-weight: 700; line-height: 1.3; }
.mini-line__meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--grey-dim);
  margin-top: 0.15rem;
}
.mini-line__price { font-family: var(--font-mono); font-size: 0.82rem; white-space: nowrap; }

/* --------------------------------------------------------------
   Order confirmation
   -------------------------------------------------------------- */

.confirm { max-width: 62ch; }

.refbox {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--ink-2);
  border: 1px solid var(--paint-yellow);
  border-radius: var(--radius);
}
.refbox__k {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-dim);
}
.refbox__v {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--paint-yellow);
  letter-spacing: 0.06em;
}
.refbox__copy {
  background: none;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}
.refbox__copy:hover { border-color: var(--white); }

.next {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
  max-width: 62ch;
}

.paybox {
  margin-top: 1.75rem;
  padding: 1.25rem;
  background: var(--ink-2);
  border: 1px solid var(--electric-lt);
  border-radius: var(--radius);
}
.paybox__tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  word-break: break-all;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.75rem;
  color: var(--paint-yellow);
}

.confirm__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.orderdetail {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
  max-width: 62ch;
}

.oline {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.oline__name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  text-transform: uppercase;
  line-height: 1.25;
}
.oline__meta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--grey);
  margin-top: 0.3rem;
}
.oline__note {
  font-size: 0.84rem;
  color: var(--grey-dim);
  font-style: italic;
  margin-top: 0.4rem;
  line-height: 1.5;
}
.oline__ref {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--electric-lt);
  margin-top: 0.4rem;
  border-bottom: 1px solid currentColor;
}
.oline__price {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--paint-yellow);
  white-space: nowrap;
}

.ototals { margin-top: 1.25rem; }

.ototals__grand {
  border-bottom: 1px solid var(--line);
  padding-top: 0.85rem;
}
.ototals__grand strong { font-size: 1.5rem; }
