/* Shop / builder */
.builder { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, 520px); min-height: 100vh; }
.viewer { position: sticky; top: 0; height: 100vh; height: 100svh; }
.viewer canvas { width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.viewer canvas:active { cursor: grabbing; }
.view-switch { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(20, 20, 24, 0.75); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.view-switch button { border: 0; background: none; color: var(--muted); font: 600 13px/1 var(--font); padding: 10px 16px; border-radius: 999px; cursor: pointer; min-height: 38px; }
.view-switch button.on { background: #fff; color: #000; }
.drag-hint { position: absolute; left: 50%; top: 84px; transform: translateX(-50%); font-size: 12px; color: var(--dim); margin: 0; pointer-events: none; }
.panel { padding: 104px clamp(20px, 3vw, 44px) 140px; border-left: 1px solid var(--line); background: linear-gradient(180deg, #08080a, #000); }
.build-title { font-size: clamp(36px, 4vw, 52px); margin-bottom: 6px; }
.build-sub { margin-bottom: 22px; }
.presets { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin: 0 -4px 18px; scrollbar-width: none; }
.presets::-webkit-scrollbar { display: none; }
.preset { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border-radius: 999px; border: 1px solid var(--line-2); background: none; color: var(--ink); font: 500 13px/1 var(--font); cursor: pointer; }
.preset:hover { border-color: rgba(255,255,255,.4); }
.preset .mini-cube { width: 22px; height: 22px; border-radius: 5px; }
.group { border: 0; border-top: 1px solid var(--line); padding: 18px 0 14px; margin: 0; }
.group legend, .slot-head { font: 600 15px/1 var(--font); padding: 0; display: flex; justify-content: space-between; width: 100%; gap: 12px; }
.slot-head { margin-bottom: 12px; }
.slot-head .muted { font-weight: 500; }
.group legend { float: left; margin-bottom: 14px; }
.group legend + * { clear: both; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; width: 40px; height: 40px; border-radius: 12px; border: 0; cursor: pointer; padding: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -10px 16px rgba(0,0,0,.35); transition: transform .12s ease; }
.swatch:hover { transform: translateY(-2px); }
.swatch[aria-checked="true"]::after { content: ""; position: absolute; inset: -5px; border-radius: 15px; border: 2px solid #fff; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg button { min-height: 52px; border-radius: 12px; border: 1px solid var(--line-2); background: none; color: var(--ink); font: 600 14px/1.2 var(--font); cursor: pointer; text-align: left; padding: 10px 14px; }
.seg button small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 3px; }
.seg button[aria-pressed="true"] { border-color: #fff; background: rgba(255,255,255,.06); }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 500; }
.switch input { position: absolute; opacity: 0; }
.switch .knob { width: 46px; height: 28px; border-radius: 999px; background: #2a2a31; position: relative; transition: background .2s; flex: none; }
.switch .knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + .knob { background: var(--accent); }
.switch input:checked + .knob::after { transform: translateX(18px); }
.switch input:focus-visible + .knob { outline: 2px solid var(--accent); outline-offset: 3px; }
.switch .muted { font-weight: 400; }
.engrave-body { margin-top: 14px; }
.drop { display: grid; place-items: center; gap: 4px; padding: 22px; border: 1.5px dashed var(--line-2); border-radius: 14px; cursor: pointer; text-align: center; margin: 12px 0; transition: border-color .2s, background .2s; }
.drop:hover, .drop.over { border-color: var(--accent); background: rgba(157, 77, 255,.05); }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.drop-main { font-weight: 600; }
.drop-sub { font-size: 13px; color: var(--muted); }
.engrave-edit { display: grid; gap: 16px; }
#face-preview { width: 100%; max-width: 360px; aspect-ratio: 1; margin: 0 auto; border-radius: 14px; background: radial-gradient(circle at 50% 40%, #17171b, #050506); }
.sliders { display: grid; gap: 12px; }
.sliders label { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 13px; color: var(--muted); }
.sliders output { color: var(--ink); font-variant-numeric: tabular-nums; }
.sliders input[type=range] { grid-column: 1 / -1; width: 100%; accent-color: var(--accent); height: 28px; }
.row-inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.buy-box { border-top: 1px solid var(--line); padding-top: 18px; }
.price-lines { display: grid; grid-template-columns: 1fr auto; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.price-lines .total { color: var(--ink); font: 400 26px/1.2 var(--display); margin-top: 6px; }
.buy-row { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.buy-row .add { flex: 1; min-height: 56px; font-size: 16px; }
.qty.big { margin: 0; }
.qty.big button { width: 44px; height: 54px; font-size: 20px; }
.parts-section { border-top: 1px solid var(--line); }
.parts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.part { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 12px; align-content: start; }
.part .tile { height: 170px; border-radius: 12px; display: grid; place-items: center; background: radial-gradient(circle at 50% 30%, #1d1d22, #0b0b0d); overflow: hidden; }
.part .tile img { width: 100%; height: 100%; object-fit: cover; }
.part h3 { margin: 0; }
.part p { margin: 0; font-size: 14px; color: var(--muted); }
.part .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.part .price { font: 400 20px/1 var(--display); }
.part .swatches { gap: 8px; }
.part .swatch { width: 30px; height: 30px; border-radius: 9px; }
.part .swatch[aria-checked="true"]::after { inset: -4px; border-radius: 12px; }

@media (max-width: 899px) {
  .builder { grid-template-columns: 1fr; }
  .viewer { position: sticky; top: 0; height: 46vh; height: 46svh; z-index: 5; background: #000; border-bottom: 1px solid var(--line); }
  .view-switch { bottom: 12px; }
  .view-switch button { padding: 8px 12px; min-height: 34px; }
  .drag-hint { display: none; }
  .panel { padding: 22px 16px 140px; border-left: 0; }
  .build-title { font-size: 34px; }
  .buy-row .add { display: none; } /* the thumb button is the add button on phones */
  .shop .site-header { background: rgba(0,0,0,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
}

/* mode tabs: Colorways | Limited editions */
.mode-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: #111114; border: 1px solid var(--line); margin-bottom: 26px; }
.mode-tabs button { min-height: 44px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 600 14px/1 var(--font); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.mode-tabs button[aria-selected="true"] { background: #fff; color: #000; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(157, 77, 255,.7); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(157, 77, 255,0); } 100% { box-shadow: 0 0 0 0 rgba(157, 77, 255,0); } }
.editions { display: grid; gap: 14px; margin-bottom: 26px; }
.edition { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); cursor: pointer; text-align: left; color: var(--ink); font: inherit; width: 100%; }
.edition[aria-pressed="true"] { border-color: #fff; background: #141418; }
.edition .ed-img { width: 112px; height: 112px; border-radius: 12px; background: #000; overflow: hidden; display: grid; place-items: center; }
.edition .ed-img img { width: 100%; height: 100%; object-fit: cover; }
.edition h3 { margin: 4px 0 2px; font-size: 20px; }
.edition p { margin: 0; font-size: 14px; color: var(--muted); }
.edition .ed-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; font-size: 13px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 700 11px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; }
.badge.live { background: rgba(157, 77, 255,.15); color: #c08cff; }
.badge.upcoming { background: rgba(245,184,75,.15); color: #f5c76b; }
.badge.sold_out { background: #222; color: var(--muted); }
.badge.draft { background: #2a2414; color: #f3d79a; }
.ed-detail { border-top: 1px solid var(--line); padding-top: 18px; margin-bottom: 18px; }
.ed-detail .chips { margin-top: 10px; }
.droplist label { display: block; font-weight: 600; margin-bottom: 8px; }
.droplist.pre { margin-top: 14px; padding: 16px; border: 1px solid rgba(157, 77, 255, 0.45); border-radius: 18px; background: rgba(157, 77, 255, 0.08); }
.droplist.pre label { font-weight: 500; line-height: 1.45; }
.seo-colors { margin: 8px 0 0; font-size: 13px; }
.seo-rating { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.seo-rating .r-stars { color: #ffc94d; letter-spacing: 1px; }
.seo-rating b { color: var(--ink); }
.pre-tag { display: inline-block; margin-right: 6px; padding: 2px 9px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px; }
body.prelaunch .buy-row { display: none; }
.droplist-row { display: flex; gap: 8px; }
.droplist-row input { flex: 1; min-height: 48px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #0d0d10; color: var(--ink); font: inherit; font-size: 16px; }
/* teeth comparison */
.seg.teeth button { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 8px; }
.seg.teeth .thumb { width: 64px; height: 64px; border-radius: 10px; background: #000 center/cover; display: block; }
.viewer-badge { position: absolute; left: 50%; top: 96px; transform: translateX(-50%); padding: 10px 18px; border-radius: 999px; background: rgba(0,0,0,.72); border: 1px solid var(--line-2); font: 400 18px/1 var(--display); letter-spacing: .04em; pointer-events: none; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
@media (max-width: 899px) { .viewer-badge { top: 70px; font-size: 15px; } .edition { grid-template-columns: 88px 1fr; } .edition .ed-img { width: 88px; height: 88px; } }
.sw-dot { width: 12px; height: 12px; border-radius: 4px; display: inline-block; margin-right: 6px; vertical-align: -1px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }

.face-wrap { display: grid; gap: 10px; margin-top: 18px; }
#text-font button { font-size: 18px; min-height: 48px; text-align: center; }
#text-font button[data-font="russo"] { font-family: "Russo One", sans-serif; font-weight: 400; }
#text-font button[data-font="jost"] { font-family: "Jost", sans-serif; font-weight: 600; }
#e-text { letter-spacing: .02em; }

/* stock */
.swatch.out { opacity: .35; cursor: not-allowed; }
.swatch.out::before { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; background: #fff; transform: rotate(45deg); }
.stock-note { font: 600 11px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; margin-right: 6px; }
.stock-note.out { background: #1f1430; color: #c9a6ff; }
.stock-note.low { background: rgba(245,184,75,.14); color: #f5c76b; }
.stock-note.mto { background: #1d1d24; color: var(--muted); text-transform: none; letter-spacing: 0; }
.part .btn[disabled] { opacity: .4; }

/* conversion: trust + proof at the buy button */
.trust { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; font-size: 14px; color: #cfcfd6; }
.trust li { display: flex; gap: 10px; align-items: baseline; }
.trust span { width: 18px; text-align: center; opacity: .8; }
.proof { display: flex; gap: 12px; align-items: center; margin-top: 16px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); text-decoration: none; }
.proof:hover { border-color: rgba(255,255,255,.25); }
.proof-pics { display: flex; flex: none; }
.proof-pics img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg-2); margin-left: -10px; }
.proof-pics img:first-child { margin-left: 0; }
.proof b { display: block; font-size: 14px; }
.proof .muted { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ships { margin: 10px 0 0; font-size: 14px; color: #b7f0d6; }
.paylater { margin-top: 10px; min-height: 20px; }
.specs-box { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.specs-box summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.specs-box ul { margin: 10px 0 0; padding-left: 18px; color: #cfcfd6; font-size: 14px; display: grid; gap: 4px; }
