body[data-product-theme="dark"] .site-header { --glass-tint: #10120fe8; }
.product-post[data-theme="dark"] :focus-visible { outline-color: var(--lime); }

.product-post {
  --post-bg: #111210;
  --post-panel: #191b17;
  --post-ink: #f5f5f0;
  --post-subtle: #babdb2;
  --post-border: #36392f;
  --stage-edge: #11130f;
  --stage-center: #303529;
  --stage-line: #d9f34b18;
  --post-accent: #d9f34b;
  min-height: 75vh;
  background: var(--post-bg);
  color: var(--post-ink);
}
.product-post[data-theme="light"] {
  --post-bg: #f5f5f0;
  --post-panel: #ffffff;
  --post-ink: #111210;
  --post-subtle: #53574b;
  --post-border: #d4d7cb;
  --stage-edge: #dbddd1;
  --stage-center: #f6f7ed;
  --stage-line: #10170819;
  --post-accent: #455400;
}
.post-wrap { width: min(calc(100% - var(--gutter) * 2), 1480px); margin-inline: auto; padding-block: 19px 62px; }
.post-back { display: inline-flex; align-items: center; gap: 9px; min-height: 38px; margin-bottom: 9px; color: var(--post-subtle); font-weight: 700; font-size: .89rem; }
.post-back:hover { color: var(--post-ink); }
.post-back svg { width: 16px; height: 16px; }
.post-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1px; border: 1px solid var(--post-border); background: var(--post-border); }
.post-visual { position: relative; min-width: 0; isolation: isolate; background: var(--stage-edge); }
.post-media, .post-turntable { height: clamp(535px, 72svh, 720px); }
.post-media { overflow-y: auto; scrollbar-width: none; scroll-snap-type: y mandatory; }
.post-media::-webkit-scrollbar { display: none; }
.post-frame { position: relative; overflow: hidden; height: 100%; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.post-turntable {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 49%, var(--stage-center), transparent 67%),
    linear-gradient(90deg, var(--stage-line) 1px, transparent 1px) center / 44px 44px,
    linear-gradient(0deg, var(--stage-line) 1px, transparent 1px) center / 44px 44px,
    var(--stage-edge);
}
.turntable-floor { position: absolute; pointer-events: none; left: 50%; bottom: 10%; width: 37%; height: 7%; transform: translateX(-50%); border-radius: 50%; background: #07090580; filter: blur(21px); }
.case-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; outline-offset: -4px; }
.case-canvas.dragging { cursor: grabbing; }
.post-photo { background: var(--stage-edge); }
.post-photo img { object-fit: contain; }
.post-photo-detail img { transform-origin: 50% 14%; transform: scale(1.85); }
.post-stage-label {
  position: absolute; top: 14px; left: 15px; z-index: 1;
  display: flex; gap: 7px; align-items: center; padding: 7px 10px;
  color: #f5f5f0; background: #111210df; border: 1px solid #f5f5f02e;
  font-size: .78rem; font-weight: 800; pointer-events: none;
}
.post-stage-label span { width: 7px; height: 7px; background: var(--lime); }
.media-tabs { position: absolute; z-index: 2; display: flex; flex-wrap: wrap; justify-content: end; gap: 4px; right: 14px; top: 13px; max-width: calc(100% - 155px); }
.media-tab, .media-control {
  display: inline-grid; place-items: center; min-height: 41px; border: 1px solid #ffffff30;
  color: #f5f5f0; background: #151712ec; font-size: .79rem; font-weight: 800;
}
.media-tab { padding-inline: 10px; min-width: 38px; }
.media-tab:hover, .media-control:hover { border-color: #d9f34b; }
.media-tab[aria-pressed="true"] { border-color: var(--lime); background: var(--lime); color: var(--ink); }
.turntable-controls { display: flex; position: absolute; z-index: 1; bottom: 40px; left: 50%; transform: translateX(-50%); gap: 4px; }
.media-control { min-width: 43px; }
.media-control svg { width: 17px; height: 17px; }
.post-gesture { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); text-align: center; font-size: .79rem; font-weight: 700; color: var(--post-ink); background: var(--stage-edge); padding: 2px 6px; white-space: nowrap; pointer-events: none; }
.post-mobile-actions { display: none; }
.post-panel { min-height: 100%; min-width: 0; padding: clamp(16px, 2.35vw, 38px); background: var(--post-panel); }
.post-panel-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 60px; }
.post-panel-top .eyebrow { color: var(--post-accent); line-height: 1.45; overflow-wrap: normal; }
.post-desktop-actions { display: flex; gap: 9px; margin-left: auto; }
.post-action { display: grid; justify-items: center; gap: 3px; padding: 0 2px; border: 0; background: none; color: var(--post-ink); font-size: .72rem; font-weight: 800; }
.post-action > span:first-child {
  display: grid; place-items: center; min-width: 44px; min-height: 44px;
  border: 1px solid var(--post-border); background: var(--post-bg); color: var(--post-ink);
}
.post-action:hover > span:first-child, .post-action[aria-pressed="true"] > span:first-child { border-color: var(--post-accent); color: var(--post-accent); }
.post-action svg { width: 19px; height: 19px; }
#page-view .product-post h1 { margin: 12px 0 13px; max-width: 100%; overflow-wrap: anywhere; font-size: clamp(3.4rem, 6.3vw, 7rem); line-height: .84; }
.post-product-meta { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 19px; }
.post-product-meta p { color: var(--post-subtle); font-weight: 700; }
.post-product-meta strong { font-size: clamp(1.12rem, 2.1vw, 1.62rem); white-space: nowrap; }
.post-buy { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(117px, 1fr); align-items: end; gap: 8px; }
.post-buy .select-wrap select { color: var(--post-ink); border-color: var(--post-border); background: var(--post-bg); }
.post-buy .button { gap: 7px; white-space: nowrap; padding-inline: 10px; }
.post-buy .button svg { width: 17px; height: 17px; }
.post-note { margin: 8px 0 24px; color: var(--post-subtle); font-size: .83rem; }
.post-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--post-border); }
.post-tabs button { min-height: 44px; padding: 0 2px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--post-subtle); font-weight: 800; }
.post-tabs button[aria-selected="true"] { border-bottom-color: var(--post-accent); color: var(--post-ink); }
.post-tab-panel { padding-top: 14px; color: var(--post-ink); overflow-wrap: anywhere; }
.post-tab-panel p + p { margin-top: 9px; color: var(--post-subtle); }
.post-tab-panel details { margin-top: 10px; border-top: 1px solid var(--post-border); padding-top: 11px; }
.post-tab-panel details p { margin-top: 8px; color: var(--post-subtle); }
.post-tab-panel summary { cursor: pointer; font-weight: 700; font-size: .89rem; }
.post-status:not(:empty) { margin-top: 12px; color: var(--post-accent); }
.post-status input { width: 100%; }
.post-recommendations { margin-top: 55px; }
#page-view .post-recommendations h2 { margin-bottom: 19px; font-size: clamp(2.6rem, 5vw, 4.7rem); }
.post-recommendations .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 660px; }
.post-recommendations .product-subtitle { color: var(--post-subtle); }

@media (min-width: 721px) and (max-width: 1050px) {
  .post-wrap { width: min(calc(100% - 32px), 1480px); }
  .post-panel { padding: 17px; }
  .post-buy { grid-template-columns: 1fr; }
  .media-tabs { right: 10px; }
  .media-tab { padding-inline: 7px; }
}
@media (max-width: 720px) {
  .post-wrap { width: 100%; padding-top: 3px; }
  .post-back { margin-inline: var(--gutter); margin-bottom: 4px; }
  .post-layout { grid-template-columns: 1fr; border-inline: 0; }
  .post-media, .post-turntable { height: clamp(460px, calc(100svh - 170px), 670px); }
  .post-panel { padding: 15px var(--gutter) 25px; }
  .post-panel-top { min-height: 27px; }
  .post-desktop-actions { display: none; }
  .post-mobile-actions { display: grid; position: absolute; z-index: 2; right: 10px; bottom: 42px; gap: 12px; }
  .post-mobile-actions .post-action { color: #f5f5f0; filter: drop-shadow(0 1px 2px #000b); }
  .post-mobile-actions .post-action > span:first-child { color: #f5f5f0; background: #111210e8; border-color: #ffffff48; }
  .post-mobile-actions .post-action[data-post-action="buy"] > span:first-child { color: #111111; background: var(--lime); border-color: var(--lime); }
  .post-stage-label { left: 10px; font-size: .72rem; }
  .media-tabs { right: 10px; }
  .media-tab { min-height: 42px; padding-inline: 6px; font-size: .73rem; }
  #page-view .product-post h1 { margin-top: 6px; font-size: clamp(3.6rem, 13vw, 5.2rem); }
  .post-product-meta { margin-bottom: 12px; }
  .post-recommendations { margin-inline: var(--gutter); }
}
@media (max-width: 390px) {
  .post-stage-label { padding-inline: 5px; }
  .media-tabs { max-width: calc(100% - 132px); }
  .post-buy { grid-template-columns: minmax(0, 1fr) minmax(111px, auto); }
  .post-buy .button { padding-inline: 7px; }
}

.studio-page { background: #111210; color: #f5f5f0; padding-block: 25px 68px; min-height: 65vh; }
.studio-page .eyebrow { color: var(--lime); }
#page-view .studio-page h1 { margin: 11px 0 10px; font-size: clamp(3.6rem, 7.5vw, 6.4rem); }
.studio-intro { max-width: 60ch; color: #c7cabd; }
.studio-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(18px, 4vw, 60px); align-items: start; margin-top: 24px; }
.studio-preview { position: sticky; top: 88px; }
.studio-preview-frame { position: relative; height: clamp(380px, 58vh, 620px); background: radial-gradient(ellipse at center, #383f2c, #171a14 75%); border: 1px solid #3b4034; }
.studio-preview-frame canvas { width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
.studio-preview-frame canvas.dragging { cursor: grabbing; }
.studio-preview-frame .post-gesture { top: auto; bottom: 8px; }
.studio-downloads { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.studio-button { min-height: 43px; padding: 8px 12px; border: 1px solid #555c4d; background: #1b1f18; color: #f5f5f0; font-weight: 700; }
.studio-button:hover { border-color: var(--lime); }
.studio-button:disabled { opacity: .55; cursor: default; }
.studio-form { display: grid; gap: 17px; }
.studio-form h2 { font-size: 2.1rem; margin-block: 5px 0; }
.studio-form :is(input,select,textarea):not([type="range"]) { width: 100%; background: #20231c; border: 1px solid #5f6556; color: #f5f5f0; }
.studio-form textarea { min-height: 84px; resize: vertical; padding: 10px 12px; font: inherit; border-radius: 0; }
.studio-form input[type="file"] { font-size: .85rem; }
.studio-form input[type="color"] { padding: 5px; cursor: pointer; }
.studio-form input[type="range"] { accent-color: var(--lime); }
.studio-form .form-note { color: #c7cabd; }
.studio-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.studio-frame-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.studio-page :focus-visible { outline-color: var(--lime); }
.studio-status { color: var(--lime); }
.studio-status a { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 720px) {
  .studio-layout { grid-template-columns: 1fr; }
  .studio-preview { position: static; }
  .studio-preview-frame { height: min(60svh, 500px); }
}
