/* SUDO London — layout follows the existing Big Cartel shop: centred logo, cart at right,
   heavy black rules around the navigation, four-up product grid (two-up on phones). */
:root {
  --ink: #0b0b0b;
  --paper: #ffffff;
  --muted: #5d5d5d;
  --line: #e4e4e4;
  --tile: #d9d9d2;
  --sale: #b3261e;
  --font: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --rule: 6px;
  --wrap: 1740px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 900px) { .wrap { padding-left: max(5.8vw, env(safe-area-inset-left, 0px)); padding-right: max(5.8vw, env(safe-area-inset-right, 0px)); } }

/* header */
.top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-block: 26px 22px; }
.logo { grid-column: 2; display: block; width: clamp(200px, 18vw, 352px); }
.logo img { width: 100%; height: auto; }
.cart-link { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: clamp(1.25rem, 2vw, 2.2rem); letter-spacing: .01em; white-space: nowrap; }
.cart-link svg { width: 1.3em; height: 1.3em; }
.cart-link .sep { display: inline-block; width: 3px; height: 1em; background: currentColor; }
.menu-btn { display: none; grid-column: 1; justify-self: start; background: none; border: 0; padding: 6px 0; cursor: pointer; }
.menu-btn span { display: block; width: 52px; height: 7px; background: var(--ink); margin: 7px 0; }

.nav { border-top: var(--rule) solid var(--ink); border-bottom: var(--rule) solid var(--ink); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(28px, 3.5vw, 56px); }
.nav > ul > li { position: relative; }
.nav a, .nav button.drop { display: flex; align-items: center; gap: 10px; padding-block: 22px; font-weight: 600; font-size: clamp(1.1rem, 1.55vw, 1.75rem); text-transform: uppercase; letter-spacing: .01em; background: none; border: 0; padding-inline: 0; cursor: pointer; }
.nav a:hover, .nav button.drop:hover { color: var(--sale); }
.drop svg { width: .8em; height: .8em; transition: transform .15s; }
.drop[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav .sub { position: absolute; left: -18px; top: 100%; z-index: 20; background: var(--paper); border: 3px solid var(--ink); min-width: 260px; padding: 8px 0; display: block; }
.nav .sub a { padding: 10px 18px; font-size: 1.05rem; white-space: nowrap; }

/* instagram link at the right end of the menu */
.nav .ig-item { margin-left: auto; }
.nav a.ig { padding-block: 18px; }
.nav a.ig svg { width: clamp(30px, 2.4vw, 40px); height: clamp(30px, 2.4vw, 40px); }
.ig-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* mobile header */
@media (max-width: 760px) {
  .top { padding-block: 18px 16px; border-bottom: var(--rule) solid var(--ink); }
  .logo { width: clamp(150px, 46vw, 230px); }
  .menu-btn { display: block; }
  .menu-btn span { width: 40px; height: 6px; margin: 6px 0; }
  .cart-link .total, .cart-link .sep { display: none; }
  .cart-link { font-size: 1.6rem; }
  .nav { display: none; border-top: 0; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a, .nav button.drop { padding-block: 14px; font-size: 1.25rem; }
  .nav .ig-item { margin-left: 0; }
  .nav a.ig { padding-block: 14px; }
  .nav a.ig svg { width: 26px; height: 26px; }
  .ig-label { position: static; width: auto; height: auto; clip: auto; }
  .nav .sub { position: static; border: 0; padding: 0 0 8px 16px; min-width: 0; }
}

/* product grid */
main { padding-block: 28px 80px; min-height: 60vh; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px 30px; }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 18px; } }
.card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.card .ph { width: 100%; aspect-ratio: 1; overflow: hidden; background: var(--paper); margin-bottom: 18px; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .ph img { transform: scale(1.03); }
.card h3 { margin: 0; font-size: clamp(1rem, 1.35vw, 1.5rem); font-weight: 600; text-transform: uppercase; letter-spacing: .01em; line-height: 1.25; text-wrap: balance; }
.card:hover h3, .card:hover .price { color: var(--sale); }
.card .price { font-size: clamp(.95rem, 1.2vw, 1.35rem); }
.card-link { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; }
.card:has(.card-link:hover) h3, .card:has(.card-link:hover) .price { color: var(--sale); }
.variants { display: flex; gap: 8px; justify-content: center; margin: 6px 0 2px; }
.vdot { width: 18px; height: 18px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3); outline: 1.5px solid transparent; outline-offset: 2px; }
.vdot[aria-pressed="true"] { outline-color: var(--ink); }
.rainbow { display: inline-block; text-decoration: none; }
.rainbow span span { transition: color .15s; }
.rainbow:hover span span, .rainbow:focus-visible span span { color: var(--rc); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.card .opts { font-size: clamp(.85rem, 1.1vw, 1.2rem); text-transform: uppercase; letter-spacing: .02em; }
.noimg { width: 100%; height: 100%; background: var(--tile); position: relative; }
.noimg::before, .noimg::after { content: ""; position: absolute; left: 50%; top: 50%; width: 41%; height: 1.5px; background: #8f8f88; transform: translate(-50%, -50%) rotate(45deg); }
.noimg::after { transform: translate(-50%, -50%) rotate(-45deg); }

.page-title { font-size: clamp(1.5rem, 2.4vw, 2.4rem); font-weight: 700; text-transform: uppercase; margin: 0 0 28px; letter-spacing: .01em; }
.crumbs { font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 22px; }
.crumbs a:hover { color: var(--ink); }

/* product page */
.product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
@media (max-width: 860px) { .product { grid-template-columns: minmax(0, 1fr); } }
.product > * { min-width: 0; }
.product .media { position: sticky; top: 20px; }
@media (max-width: 860px) { .product .media { position: static; } }
.product .media > img, .product .media .noimg { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product h1 { margin: 0 0 6px; font-size: clamp(1.6rem, 2.6vw, 2.6rem); line-height: 1.15; font-weight: 700; text-transform: uppercase; text-wrap: balance; }
.product .big-price { font-size: clamp(1.3rem, 1.8vw, 1.8rem); margin: 0 0 22px; font-variant-numeric: tabular-nums; }
.product .desc { max-width: 60ch; color: #2b2b2b; margin: 0 0 22px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label, .lbl { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
select, input[type=number], input[type=text], input[type=email], textarea { border: 2px solid var(--ink); border-radius: 0; padding: 12px 14px; background: var(--paper); width: 100%; }
input[type=number] { width: 110px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--ink); color: var(--paper); border: 2px solid var(--ink); padding: 16px 30px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; border-radius: 0; transition: background .15s, color .15s; }
.btn:hover { background: var(--paper); color: var(--ink); }
.btn.ghost { background: var(--paper); color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn[disabled] { opacity: .5; cursor: progress; }
.added { margin-top: 12px; font-weight: 600; }
/* quantity and add to basket side by side */
.buy { display: flex; align-items: flex-end; gap: 12px; margin-top: 8px; }
.buy .field { margin-bottom: 0; }
.buy input[type=number] { width: 90px; height: 56px; }
.buy .btn { height: 56px; flex: 1 1 auto; max-width: 320px; }
/* phones: dropdowns and the quantity + basket row share one full column width */
@media (max-width: 860px) {
  .opt-group .finish-select { width: 100%; min-width: 0; }
  .buy { width: 100%; }
  .buy .btn { max-width: none; }
}
.note { color: var(--muted); font-size: .92rem; }

/* configurator */
.stage { position: relative; aspect-ratio: 810 / 850; background: #1e1e1e; overflow: hidden; }
/* the render is 810 x 1072; show rows 84-934, trimming empty space above and below the bench */
.stage canvas { position: absolute; left: 0; top: 0; width: 100%; height: auto; aspect-ratio: 810 / 1072; margin-top: -10.37%; }
/* bench page: preview column 20% narrower than the standard product image */
.product.bench { grid-template-columns: minmax(0, .92fr) minmax(0, 1fr); }
@media (max-width: 860px) { .product.bench { grid-template-columns: minmax(0, 1fr); } .product.bench .media { width: 100%; } }
.stage .loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #9a9a9a; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.opt-group { margin-bottom: 20px; }
.opt-group .lbl { display: block; margin-bottom: 9px; }
.opt-group .lbl em { font-style: normal; font-weight: 400; letter-spacing: .02em; text-transform: none; color: var(--muted); margin-left: 6px; }
.row { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.sw { width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); outline: 2px solid transparent; outline-offset: 3px; transition: transform .15s; }
.sw:hover { transform: scale(1.08); }
.sw[aria-pressed="true"] { outline-color: var(--ink); }
.sw-custom { position: relative; overflow: hidden; background: conic-gradient(#e33, #ec3, #3c5, #3be, #55e, #d3d, #e33); }
.sw-custom input { position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); opacity: 0; cursor: pointer; border: 0; padding: 0; }
.opt-group .tier { display: block; font-size: .78rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin: 10px 0 7px; }
.opt-group .lbl + .tier { margin-top: 0; }
.tier-hint { font-size: .85rem; color: var(--muted); }
.custom-pick { display: inline-flex; align-items: center; gap: 10px; margin-left: clamp(10px, 2vw, 22px); padding-left: clamp(12px, 2vw, 22px); border-left: 1px solid var(--line); min-height: 34px; }
.opt-group.off .row { opacity: .35; pointer-events: none; }
.raw-note { margin: 8px 0 0; }
.finish-select { width: auto; min-width: min(100%, 280px); max-width: 100%; appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; font-weight: 500;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
/* colour rows never wrap: the custom picker always sits on the same line as the standard swatches */
.row.colours { flex-wrap: nowrap; }
.row.colours .tier-hint { white-space: nowrap; }
/* frame and pad colour swatches: same 17px dots as the background picker, with a larger invisible tap area */
.opt-group .row.colours { gap: 10px; min-height: 28px; }
.opt-group .row.colours .sw { position: relative; width: 17px; height: 17px; flex: none; outline-width: 1.5px; outline-offset: 2px; }
.opt-group .row.colours .sw:hover { transform: none; }
.opt-group .row.colours .sw::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; }
.opt-group .row.colours .sw-custom input { inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); }
.opt-group .row.colours .custom-pick { margin-left: 4px; padding-left: 12px; gap: 8px; min-height: 17px; }
/* background preview picker, overlaid bottom-right of the bench image at half size.
   Selectors are scoped to .stage so the phone swatch rules can never resize it. */
.stage .bg-pick { position: absolute; right: 10px; bottom: 10px; z-index: 2; color: #fff; background: rgba(15, 15, 15, .55); border-radius: 999px; padding: 6px 9px; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); width: auto; }
.stage .bg-pick .row, .stage .bg-pick .row.colours { gap: 6px; flex-wrap: nowrap; }
.stage .bg-pick .row .sw, .stage .bg-pick .row.colours .sw { width: 17px; height: 17px; flex: none; outline-width: 1.5px; outline-offset: 2px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.stage .bg-pick .row .sw:hover { transform: none; }
.stage .bg-pick .sw[aria-pressed="true"] { outline-color: #fff; }
.stage .bg-pick .row .custom-pick, .stage .bg-pick .row.colours .custom-pick { margin-left: 3px; padding-left: 7px; border-left-color: rgba(255, 255, 255, .3); min-height: 17px; gap: 0; }
.stage .bg-pick .sw-custom input { inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); }
.stage .bg-pick .tier-hint { display: none; }
.spec .tier { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.chip { padding: 8px 16px; border: 2px solid var(--ink); background: var(--paper); cursor: pointer; font-size: .9rem; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.spec { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 14px 0; margin: 6px 0 20px; font-size: .95rem; }

/* cart */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; border-bottom: var(--rule) solid var(--ink); padding: 0 0 10px; }
.cart-table td { border-bottom: 1px solid var(--line); padding: 18px 12px 18px 0; vertical-align: middle; font-variant-numeric: tabular-nums; }
.cart-item { display: flex; gap: 16px; align-items: center; min-width: 0; }
.cart-item img, .cart-item .noimg { width: 84px; height: 84px; object-fit: cover; flex: none; }
.cart-item strong { display: block; text-transform: uppercase; font-weight: 600; }
.cart-item span { display: block; color: var(--muted); font-size: .88rem; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--ink); }
.qty button { width: 34px; height: 34px; background: none; border: 0; cursor: pointer; font-size: 1.1rem; }
.qty span { min-width: 30px; text-align: center; }
.remove { background: none; border: 0; text-decoration: underline; cursor: pointer; color: var(--muted); padding: 0; font-size: .88rem; }
.cart-foot { display: flex; justify-content: flex-end; margin-top: 28px; }
.cart-foot .box { width: min(420px, 100%); display: grid; gap: 12px; }
.cart-foot .tot { display: flex; justify-content: space-between; font-size: 1.3rem; font-weight: 700; }
.err { color: var(--sale); font-weight: 500; }
.table-scroll { overflow-x: auto; }
@media (max-width: 640px) {
  .cart-table thead { display: none; }
  .cart-table tr { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; border-bottom: 1px solid var(--line); padding: 14px 0; }
  .cart-table td { border: 0; padding: 0; }
  .cart-table td:first-child { grid-column: 1 / -1; }
  .cart-table td.unit { display: none; }
}

/* gallery */
.gallery { columns: 3 300px; column-gap: 24px; }
.shot { break-inside: avoid; margin: 0 0 24px; }
.shot button { display: block; position: relative; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.shot .tag { position: absolute; left: 10px; top: 10px; background: rgba(11, 11, 11, .78); color: #fff; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px; }
.sample-note { border-left: var(--rule) solid var(--ink); padding: 6px 0 6px 14px; margin: 0 0 22px; font-size: .92rem; color: var(--muted); max-width: 70ch; }
.section-title { font-size: clamp(1.15rem, 1.7vw, 1.6rem); font-weight: 700; text-transform: uppercase; margin: 44px 0 18px; }
.gallery-cta { border-top: 2px solid var(--ink); margin-top: 20px; padding-top: 22px; display: grid; gap: 10px; }
.gallery-cta p { margin: 0; }
.shot img { width: 100%; height: auto; }
.shot figcaption { padding-top: 10px; font-size: .92rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.shot figcaption strong { font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.shot figcaption a { text-decoration: underline; }
.gallery-empty { border: var(--rule) solid var(--ink); padding: clamp(28px, 5vw, 64px); display: grid; gap: 14px; justify-items: start; max-width: 860px; }
.gallery-empty h2 { margin: 0; font-size: clamp(1.3rem, 2vw, 1.9rem); text-transform: uppercase; line-height: 1.2; }
.gallery-empty p { margin: 0; max-width: 60ch; }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .92); display: flex; align-items: center; justify-content: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.lightbox img { max-width: 100%; max-height: 82vh; width: auto; }
.lightbox figure { margin: 0; display: grid; gap: 12px; justify-items: center; color: #fff; text-align: center; }
.lightbox .x, .lightbox .nv { position: absolute; background: none; border: 0; color: #fff; font-size: 2.2rem; cursor: pointer; padding: 10px 16px; line-height: 1; }
.lightbox .x { top: max(10px, env(safe-area-inset-top, 0px)); right: max(10px, env(safe-area-inset-right, 0px)); }
.lightbox .prev { left: max(4px, env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); }
.lightbox .next { right: max(4px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); }

/* two equal buttons side by side; together they match the finish dropdown width */
.btn-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: min(100%, 320px); }
@media (min-width: 861px) { .opt-group .finish-select { width: 320px; min-width: 0; max-width: 100%; } }
.btn-pair .btn { padding: 14px 10px; font-size: .8rem; letter-spacing: .05em; text-align: center; line-height: 1.25; min-height: 56px; }
@media (max-width: 860px) { .btn-pair { width: 100%; } }

/* product details: description, specifications, delivery */
.details { margin-top: 28px; border-bottom: 2px solid var(--ink); max-width: 640px; }
.details details { border-top: 2px solid var(--ink); }
.details summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 16px 0; font-weight: 600; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; }
.details summary::-webkit-details-marker { display: none; }
.details summary::after { content: "+"; margin-left: auto; font-size: 1.4rem; font-weight: 400; line-height: 1; }
.details details[open] summary::after { content: "−"; }
.details details > *:not(summary) { margin: 0 0 16px; }
.details p { max-width: 62ch; color: #2b2b2b; }
.photo-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
.photo-row figure { margin: 0; }
.photo-row button { display: block; position: relative; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.photo-row img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.photo-row .tag { position: absolute; left: 6px; top: 6px; background: rgba(11, 11, 11, .78); color: #fff; font-size: .6rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 3px 6px; }
.photo-row figcaption { font-size: .8rem; color: var(--muted); padding-top: 6px; line-height: 1.3; }
.ph-tag { font-size: .62rem; letter-spacing: .12em; padding: 3px 6px; background: var(--ink); color: var(--paper); font-weight: 600; }
.specs { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: 8px 18px; font-size: .95rem; }
.specs dt { font-weight: 600; }
.specs dd { margin: 0; color: #2b2b2b; }
.ship { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ship th, .ship td { text-align: left; vertical-align: top; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); }
.ship th { font-weight: 600; white-space: nowrap; }
.ship .amt { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.ship td:last-child { color: var(--muted); }
@media (max-width: 480px) { .ship tr { display: grid; grid-template-columns: 1fr auto; } .ship td:last-child { grid-column: 1 / -1; padding-top: 0; } .ship th, .ship .amt { border-bottom: 0; } }

/* text pages */
.prose { max-width: 68ch; }
.prose p { margin: 0 0 16px; }
.contact-form { display: grid; gap: 14px; max-width: 560px; margin-top: 26px; }

/* footer: full-width black band with the white logo centred */
.site-foot { background: var(--ink); color: var(--paper); margin-top: 40px; }
.site-foot .wrap { display: flex; align-items: center; justify-content: center; padding-block: clamp(14px, 1.4vw, 22px) calc(clamp(14px, 1.4vw, 22px) + env(safe-area-inset-bottom, 0px)); }
.foot-logo { display: block; width: clamp(120px, 11vw, 190px); }
.foot-logo img { width: 100%; height: auto; }
.foot-logo:focus-visible { outline-color: var(--paper); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
