body .site {
  --brand: #ff4800;
  --brand-text: #b53200;
  --brand-dark: #aa2e00;
  --orange: var(--brand-text);
  --red: var(--brand);
  --ink: #212123;
  --muted: #59565a;
  --paper: #fdfbf9;
  --rose: #ffede4;
  --cream: #fff4ee;
  --panel: #fff;
  --soft: #fff4ee;
  --line: #e9ded9;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
body.commerce { margin: 0; background: #fdfbf9; color: #26201d; font: 1rem/1.5 Inter, system-ui, sans-serif; }
.commerce a { color: inherit; text-decoration: none; }
.commerce .page { width: min(1200px, 100%); margin: auto; padding: 28px clamp(14px, 3vw, 32px) 58px; }
.commerce .site summary { list-style: none; }
.commerce .site summary::-webkit-details-marker { display: none; }
.platform-picker:not([open]) .platform-grid { display: none; }
.purchase-button { background: var(--brand); color: #14100e; font-weight: 750; }
.purchase-button:hover { background: #ff723d; }
.catalog-search button { background: var(--brand); color: #14100e; }
.site a:focus-visible, .site button:focus-visible, .site summary:focus-visible, .site input:focus-visible {
  outline: 2px solid var(--brand-dark);
  outline-offset: 3px;
}

.site .catalog-page { padding-top: 28px; }
.site .catalog-page h1 { font: 750 clamp(1.7rem,3vw,2.7rem)/1.12 Inter,Arial,sans-serif; letter-spacing:-.035em; margin:0 0 16px; }
.site .catalog-search { display:flex; margin:0 0 22px; border:1px solid var(--line); border-radius:7px; box-shadow:none; }
.site .catalog-search input[type=search] { flex:1; min-width:0; padding:12px; border:0; border-radius:7px 0 0 7px; }
.site .catalog-search button { border:0; border-radius:0 7px 7px 0; padding:8px 18px; font:750 .875rem Inter,Arial,sans-serif; cursor:pointer; }
.site .catalog-search :is(button,input):focus-visible { outline-offset:-3px; }
.catalog-count { color:var(--muted); margin-block: 12px; font-weight:600; overflow-wrap:anywhere; }
.live-product-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:13px; }
.live-product-card { background:#fff; padding:10px; border:1px solid var(--line); border-radius:8px; min-width:0; display:flex; flex-direction:column; gap:8px; }
.live-product-card:hover { border-color:var(--brand); }
.live-product-card img, .no-thumb { width:100%; height:auto; aspect-ratio:1; object-fit:contain; border-radius:5px; background:#f5f2ef; display:block; }
.live-product-card span { line-height:1.35; overflow-wrap:anywhere; }
.live-product-card strong { color:var(--brand-text); margin-top:auto; }
.catalog-pager { display:flex; gap:12px; justify-content:center; margin-top:22px; }
.catalog-pager a, .return-catalog { color:var(--brand-text); text-decoration:underline; text-underline-offset:3px; }
.return-catalog { display:inline-block; margin-bottom:14px; }

.listing-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.12fr); align-items:start; gap:clamp(18px,4vw,52px); }
.listing-info { background:#fff; padding:clamp(12px,2vw,24px); border:1px solid var(--line); border-radius:8px; min-width:0; }
.site .listing-info h1 { font-size:clamp(1.25rem,2.2vw,1.9rem); overflow-wrap:anywhere; margin-bottom:8px; }
.listing-id,.listing-note { font-size:.875rem; color:var(--muted); line-height:1.5; }
.listing-price { font-size:clamp(1.6rem,3vw,2.5rem); margin-block:8px 16px; }
.purchase-button { display:grid; place-items:center; padding:12px; min-height:48px; border-radius:6px; text-align:center; }
.listing-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:8px; margin-block:9px 18px; }
.listing-actions > :only-child { grid-column:1/-1; }
.listing-actions button, .listing-actions summary, .listing-actions > input {
  min-height:42px; border:1px solid var(--line); border-radius:5px; background:#fff;
  color:var(--ink); font:600 .875rem/1.25 Inter,Arial,sans-serif; padding:9px; text-align:center;
  width:100%; cursor:pointer;
}
.platform-picker { position:relative; }
.platform-picker > summary { display:flex; align-items:center; justify-content:center; gap:4px; }
.platform-picker > summary::after { content:'⌄'; }
.platform-grid {
  position:absolute; z-index:3; inset-inline-start:0; top:calc(100% + 4px); width:min(330px,78vw);
  max-height:238px; overflow:auto; overscroll-behavior:contain; display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px; padding:8px; background:#fff;
  border:1px solid var(--line); border-radius:6px; box-shadow:0 10px 24px #52271724;
}
.platform-grid a { display:flex; align-items:center; gap:6px; padding:6px; min-height:36px; border:1px solid var(--line); border-radius:4px; font-size:.875rem; overflow-wrap:anywhere; }
.platform-grid a:hover,.listing-actions :is(summary,button):hover { background:var(--cream); border-color:var(--brand); }
.platform-grid img { object-fit:contain; }

.gallery-stage,.missing-photo { border:1px solid var(--line); border-radius:8px; background:#fff; position:relative; overflow:hidden; }
.product-gallery { min-width:0; --gallery-height: min(52vw, 540px); }
.gallery-stage { touch-action:pan-y pinch-zoom; }
.gallery-image-link { display:block; }
.gallery-photo { display:block; width:100%; height:var(--gallery-height); object-fit:contain; }
.gallery-stage button { position:absolute; top:50%; transform:translateY(-50%); background:#fffffff0; border:1px solid var(--line); border-radius:50%; width:40px; height:40px; font-size:1.5rem; color:var(--ink); cursor:pointer; }
.gallery-prev { left:8px; }.gallery-next { right:8px; }
.gallery-count { position:absolute; inset-inline-end:9px; bottom:9px; border-radius:4px; background:#fff; font-size:.8125rem; padding:4px 8px; }
.gallery-thumbnails {
  display:flex; gap:7px; overflow-x:auto; padding:5px 2px 3px; scrollbar-width:thin;
  overscroll-behavior:contain;
}
.gallery-thumbnails button,.variant-grid button {
  cursor:pointer; background:#fff; border:1px solid var(--line); color:var(--ink); border-radius:4px; min-height:35px;
}
.gallery-thumbnails button { flex:0 0 64px; min-width:0; padding:2px; }
.gallery-thumbnails img,.variant-grid img { display:block; width:100%; height:auto; aspect-ratio:1; object-fit:contain; }
.gallery-thumbnails button[aria-pressed=true],.variant-grid button[aria-pressed=true] { border-color:var(--brand); background:var(--cream); box-shadow:inset 0 0 0 1px var(--brand); }
.detail-variants { border:0; padding:0; min-inline-size:0; margin:12px 0; }
.detail-variants legend { padding:0 0 5px; font-weight:650; font-size:1rem; }
.detail-variants legend span { color:var(--muted); font-size:.875rem; margin-inline-start:5px; overflow-wrap:anywhere; }
.variant-grid { display:flex; flex-wrap:wrap; gap:5px; max-height:198px; overflow:auto; overscroll-behavior:contain; padding:2px; }
.variant-grid button { padding:4px 8px; }
.variant-grid.has-images {
  display:grid; grid-template-columns:repeat(auto-fill,minmax(52px,1fr));
  gap:6px; max-height:min(44vh,320px);
}
.variant-grid button.image-option { width:100%; padding:3px; }
.listing-photos { border-top:1px solid var(--line); margin-top:24px; }
.listing-photos h2 { font-size:1.2rem; margin:17px 0 10px; }
.qc-photo-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(128px,1fr)); gap:8px; }
.qc-photo-grid a { border:1px solid var(--line); background:#fff; border-radius:5px; overflow:hidden; }
.qc-photo-grid img { display:block; width:100%; height:auto; aspect-ratio:1; object-fit:contain; }
.qc-section { margin-top:22px; }
.qc-section p,.missing-photo { color:var(--muted); }
.missing-photo { padding:35px 20px; }

@media (max-width: 640px) {
  .listing-layout { grid-template-columns: 1fr; }
  .product-gallery { --gallery-height:min(86vw, 430px); }
  .gallery-thumbnails button { flex-basis:58px; }
  .live-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .qc-photo-grid { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
}
.image-intro,.image-privacy,.image-status { color: var(--muted); }
.image-intro { margin: 0 0 18px; }
.image-drop {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: 9px;
  min-height: clamp(215px, 28vw, 350px);
  padding: 20px;
  border: 2px dashed var(--line-strong);
  border-radius: 11px;
  background: var(--soft);
  cursor: pointer;
}
.image-drop:is(:hover,.is-dragging,:focus-within) {
  border-color: var(--brand);
  background: var(--soft);
}
.image-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-symbol {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--panel);
  font-size: 1.45rem;
}
.image-drop strong { font-size: clamp(1rem, 2vw, 1.25rem); }
.image-drop small,.image-privacy { font-size: .875rem; }
.image-selection:not([hidden]) { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
.image-selection img { width: 90px; height: 90px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.image-selection button { padding: 8px 12px; border: 1px solid var(--line); border-radius: 5px; background: #fff; cursor: pointer; }
.image-matches h2 { font-size: 1.35rem; }

.buying-guide { scroll-margin-top:95px; }
.buying-guide .rowhead { gap:12px; align-items:baseline; }
.buying-guide .rowhead a { flex-shrink:0; color:var(--brand-text); text-decoration:underline; text-underline-offset:3px; }
.buying-guide-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin:0;
  padding:0;
  list-style:none;
  counter-reset: buying-step;
}
.buying-step {
  counter-increment:buying-step;
  min-width:0;
  border:1px solid var(--line);
  border-radius:9px;
  overflow:hidden;
  background:#fff;
}
.buying-shot {
  display:grid;
  place-items:center;
  position:relative;
  padding:7px;
  min-height:128px;
  background:var(--soft);
  border-bottom:1px solid var(--line);
}
.buying-frame { position:relative; display:block; width:100%; }
.buying-shot img { width:100%; height:auto; display:block; border-radius:4px; }
.guide-arrow {
  position:absolute;
  top:var(--y);
  left:var(--x);
  width:34px;
  height:24px;
  pointer-events:none;
  background:var(--brand);
  clip-path:polygon(0 33%,64% 33%,64% 0,100% 50%,64% 100%,64% 67%,0 67%);
  transform:translate(-88%,-50%) rotate(var(--angle));
  transform-origin:88% 50%;
  filter:drop-shadow(0 1px 1px #fff);
}
.buying-step-body { padding:13px; }
.buying-step h3 { font-size:1rem; margin:0 0 7px; line-height:1.3; }
.buying-step h3::before { content:counter(buying-step) '. '; color:var(--brand-text); }
.buying-step h3 a:hover { text-decoration:underline; }
.buying-step p { color:var(--muted); font-size:.875rem; line-height:1.45; margin:0; }
@media(max-width:960px) { .buying-guide-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:640px) {
  .buying-guide .rowhead { align-items:flex-start; flex-direction:column; gap:5px; }
  .buying-guide-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .buying-shot { min-height:85px; }
  .buying-step-body { padding:9px; }
  .variant-grid.has-images { grid-template-columns:repeat(auto-fill,minmax(47px,1fr)); max-height:245px; gap:5px; }
}

.site {
  --line-strong: #dbac90;
}
.catalog-toolbar { margin-block: -8px 18px; }
.catalog-toolbar .catalog-count { margin: 12px 0 0; }
.catalog-category-strip { display: flex; flex-wrap: wrap; gap: 7px; }
.catalog-category-strip a {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  padding: 6px 10px;
  font-size: .875rem;
  font-weight: 650;
}
.catalog-category-strip a:is(:hover, [aria-current=page]) {
  border-color: var(--brand);
  background: var(--cream);
  color: var(--brand-dark);
}
.guide-page .rowhead { display: flex; justify-content: space-between; margin-bottom: 15px; }
.guide-page .rowhead h1 { margin: 0; }
.buying-frame { background: #fff; }
@media (max-width: 440px) {
  .buying-guide-grid { grid-template-columns: 1fr; }
}
.buying-step p + p { margin-top: 9px; }
.buying-step p { font-size: .9375rem; line-height: 1.55; }
@media (min-width: 761px) {
  .buying-guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
