.detail-wrap { padding-block: clamp(18px, 3vw, 40px) var(--section-space); }
.detail-nav { display:flex; justify-content:space-between; align-items:center; margin-bottom:clamp(12px,2.3vw,32px); }
.detail-layout {
  display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,.95fr);
  grid-template-rows:auto auto 1fr; grid-template-areas:"gallery summary" "gallery purchase" "gallery .";
  align-items:start; column-gap:clamp(32px,6.5vw,100px);
}
.detail-gallery { grid-area:gallery; min-width:0; }
.detail-stage { overflow:hidden; border-radius:18px; background:#e9e9eb; }
.product-shot { display:block; width:100%; border:0; padding:0; background:transparent; cursor:zoom-in; }
.product-shot:not(:first-child) { display:none; }
.product-shot img { display:block; width:100%; height:auto; aspect-ratio:1; object-fit:contain; }
.product-shot:focus-visible { outline-offset:-5px; }
.detail-thumbs { display:flex; gap:9px; flex-wrap:wrap; margin-top:12px; }
.detail-thumbs button { padding:3px; border:1px solid transparent; border-radius:10px; background:transparent; }
.detail-thumbs button[aria-pressed=true] { border-color:var(--teal); }
.detail-thumbs img { display:block; width:clamp(50px,5vw,67px); height:auto; aspect-ratio:1; object-fit:cover; border-radius:6px; }
.detail-summary { grid-area:summary; padding-top:clamp(8px,3vw,48px); }
.detail-meta { display:flex; gap:12px; align-items:center; }
.detail-tag { display:inline-block; padding:3px 10px; border:1px solid #dcbeca; border-radius:999px; color:#823462; font:500 10px/1.5 var(--sans); }
.detail-summary h1,.cart-page h1 { margin:16px 0 12px; color:var(--ink); font:400 clamp(44px,5.3vw,80px)/1 var(--display); letter-spacing:-.04em; overflow-wrap:anywhere; hyphens:auto; }
.detail-price { margin:0; color:var(--teal); font:400 clamp(24px,2.2vw,32px)/1.3 var(--display); }
.detail-price del { color:var(--muted); font-size:.75em; margin-right:5px; }
.purchase { grid-area:purchase; margin-top:clamp(19px,2.3vw,36px); padding-top:22px; border-top:1px solid var(--line); }
.quantity-label,.variant-field,.colour-field legend { display:block; font:550 13px/1.45 var(--sans); }
.variant-field,.colour-field { margin:0 0 19px; }
.variant-field select,.variant-field textarea { display:block; width:100%; margin-top:7px; padding:10px 12px; border:1px solid #bdcac3; border-radius:8px; background:#fffdfa; color:var(--ink); font:400 15px/1.4 var(--sans); }
.variant-field textarea { resize:vertical; }
.colour-field { border:0; padding:0; }
.colour-field label { display:inline-flex; margin:6px 5px 0 0; position:relative; cursor:pointer; }
.colour-field input { position:absolute; opacity:0; width:100%; height:100%; margin:0; cursor:pointer; }
.colour-field span { display:inline-flex; align-items:center; gap:7px; border:1px solid #bdcac3; border-radius:999px; padding:8px 12px; font-size:13px; }
.colour-field span::before { content:""; width:14px; height:14px; border:1px solid #223d3730; border-radius:50%; background:var(--swatch); }
.colour-field input:checked + span { border-color:var(--teal); background:var(--mint); }
.colour-field input:focus-visible + span { outline:2px solid var(--pink); outline-offset:2px; }
.quantity-control { display:inline-flex; align-items:center; margin-top:7px; border:1px solid #bdcac3; border-radius:999px; padding:1px; }
.quantity-control button,.quantity-control input { border:0; background:transparent; font:500 15px var(--sans); color:var(--ink); text-align:center; }
.quantity-control button { width:41px; height:40px; border-radius:50%; }
.quantity-control input { width:46px; appearance:textfield; -moz-appearance:textfield; }
.quantity-control input::-webkit-inner-spin-button,.quantity-control input::-webkit-outer-spin-button { appearance:none; }
.buy-actions { display:flex; flex-wrap:wrap; gap:10px; margin:22px 0; }
.buy-actions button { padding:13px 22px; min-height:45px; flex:1 1 140px; }
.buy-secondary,.mr-cart-access { border:1px solid var(--teal); border-radius:999px; background:transparent; color:var(--teal); font:650 11px var(--sans); letter-spacing:.1em; text-transform:uppercase; }
.buy-secondary:hover { background:var(--mint); }
.product-id,.dispatch { margin:14px 0; font:400 13px/1.5 var(--sans); color:var(--muted); }
.product-policies { border-block:1px solid var(--line); font-size:14px; }
.product-policies summary { cursor:pointer; padding:14px 0; }
.product-policies div { display:flex; gap:20px; flex-wrap:wrap; padding:0 0 14px; }
.product-policies a,.cart-content a,.mr-dialog a { color:var(--teal); text-underline-offset:4px; }
.cart-page h1 { margin-block:25px; }
.cart-content { max-width:760px; }
.cart-content > .primary { display:inline-block; color:white; }
.mr-cart-access { position:fixed; bottom:18px; right:18px; z-index:2; color:white; background:var(--teal); padding:12px 18px; }
.cart-page ~ .mr-cart-access { display:none; }
.mr-dialog { width:min(470px,94vw); margin:auto; height:max-content; max-height:90dvh; overflow:auto; }
.mr-dialog header,.mr-cart-row,.mr-qty,.mr-lightbox > div { display:flex; align-items:center; gap:12px; }
.mr-dialog header { justify-content:space-between; }
.mr-dialog button,.mr-cart-row button { background:transparent; color:var(--teal); border:1px solid #b4c9bf; padding:6px 11px; border-radius:999px; }
.mr-dialog header button { width:38px; height:38px; font-size:19px; }
.mr-dialog > a,.mr-dialog > button { margin-right:14px; margin-bottom:6px; }
.mr-cart-row { border-bottom:1px solid var(--line); padding:15px 0; }
.mr-cart-row img { width:60px; height:60px; object-fit:cover; border-radius:8px; }
.mr-cart-row p { margin:4px 0; overflow-wrap:anywhere; }
.mr-cart-row > button:last-child { margin-left:auto; }
.mr-qty { gap:7px; }
.mr-lightbox { width:min(760px,94vw); }
.mr-lightbox h2 { font-size:clamp(23px,3vw,32px); }
.mr-lightbox > img { display:block; width:100%; max-height:66dvh; object-fit:contain; margin:10px 0; }
.mr-lightbox > div { justify-content:center; }
@media (max-width:700px) {
  .detail-layout { grid-template-columns:minmax(0,1fr); grid-template-rows:auto; grid-template-areas:"summary" "gallery" "purchase"; gap:20px; }
  .detail-summary { padding:0; }
  .detail-summary h1 { margin-block:10px 6px; }
  .purchase { margin-top:0; }
  .detail-stage { border-radius:13px; }
}
