:root {
  --ink: #181512;
  --paper: #f3f6f2;
  --panel: #fbfcf7;
  --line: #d8ded6;
  --brass: #c5964e;
  --red: #9f3830;
  --theme-shell: #e8ece8;
  --theme-panel: #fbfcf7;
  --theme-accent: #9f3830;
  --theme-secondary: #c5964e;
  --theme-border: #cdd4cc;
  --theme-ink: #181512;
  --theme-muted: #5d6863;
}

@font-face {
  font-family: "Remarcle";
  src: url("assets/fonts/Remarcle-lBx0.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

* { box-sizing: border-box; }

html,
body { min-height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: #0a0a0a;
  font-family: "Segoe UI", Arial, "Microsoft YaHei", sans-serif;
}

a { color: inherit; text-decoration: none; }

.detail-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  padding: 0 clamp(20px, 4vw, 58px);
  color: #f5f1e9;
  background: rgba(5, 5, 5, 0.9);
  border-bottom: 1px solid rgba(197, 150, 78, 0.28);
  backdrop-filter: blur(16px);
}

.detail-brand {
  font-family: "Remarcle", Georgia, serif;
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1;
}

.back-link {
  display: flex;
  gap: 10px;
  align-items: center;
  color: rgba(245, 241, 233, 0.75);
  font-weight: 700;
  transition: color 0.2s ease;
}

.back-link:hover { color: var(--brass); }

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(390px, 0.88fr);
  min-height: 100svh;
  padding-top: 78px;
}

.gallery-panel {
  position: relative;
  display: grid;
  min-height: calc(100svh - 78px);
  place-items: center;
  overflow: hidden;
  background: #070707;
}

.gallery-stage {
  width: 100%;
  height: calc(100svh - 78px);
}

.gallery-slide {
  --slide-offset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  cursor: zoom-in;
  transform: translateX(var(--slide-offset)) scale(0.985);
  transition: opacity 0.38s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-slide.from-next { --slide-offset: 12%; }
.gallery-slide.from-previous { --slide-offset: -12%; }

.gallery-slide.is-visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.gallery-slide:focus-visible {
  outline: 2px solid var(--theme-accent);
  outline-offset: -4px;
}

.gallery-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: rgba(255, 255, 255, 0.7);
  background: linear-gradient(145deg, #25110f, #721f1c 55%, #120a09);
  font-family: Georgia, serif;
  font-size: clamp(88px, 18vw, 260px);
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 58px;
  height: 74px;
  place-items: center;
  padding: 0 0 7px;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  font-size: 54px;
  font-weight: 200;
  cursor: pointer;
  opacity: 0.25;
  transform: translateY(-50%);
  transition: opacity 0.25s ease, background 0.25s ease;
}

.gallery-arrow:hover { opacity: 1; background: rgba(0, 0, 0, 0.72); }
.gallery-arrow:disabled { opacity: 0.08; cursor: default; }
.gallery-prev { left: 24px; }
.gallery-next { right: 24px; }

.gallery-count {
  position: absolute;
  right: 28px;
  bottom: 22px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(0, 0, 0, 0.46);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.story-column {
  display: grid;
  align-content: center;
  min-height: calc(100svh - 78px);
  padding: clamp(14px, 2vw, 28px);
  background: var(--theme-shell);
  transition: background 0.45s ease;
}

.story-screen {
  position: relative;
  width: 100%;
  height: calc(100svh - 78px - clamp(58px, 6vw, 82px));
  margin: 0 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--theme-accent) transparent;
  scrollbar-width: thin;
  background: var(--theme-panel);
  color: var(--theme-ink);
  border: 1px solid var(--theme-border);
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(24, 21, 18, 0.16), inset 0 0 0 7px rgba(216, 222, 214, 0.35);
  transition: background 0.45s ease, border-color 0.45s ease;
}

.story-screen::-webkit-scrollbar { width: 5px; }
.story-screen::-webkit-scrollbar-thumb { background: var(--theme-accent); border-radius: 8px; }

.story-content { padding: clamp(38px, 5vw, 66px) clamp(28px, 4vw, 58px) 52px; }

.detail-image-stack {
  width: 100%;
  margin: 0;
  background: #050505;
  text-align: center;
}

.detail-image-stack img {
  display: block;
  width: 100%;
  max-width: 790px;
  height: auto;
  margin: 0 auto;
  image-rendering: auto;
}

.story-eyebrow { margin: 0 0 26px; color: var(--theme-secondary); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.story-number { margin: 0 0 8px; color: var(--theme-accent); font-size: 13px; font-weight: 800; letter-spacing: 0.12em; }

h1 {
  display: flex;
  align-items: center;
  min-height: 108px;
  margin: 0;
  color: var(--theme-accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4.6vw, 68px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.product-logo {
  display: block;
  width: auto;
  max-width: min(100%, 520px);
  height: auto;
  max-height: 108px;
  object-fit: contain;
  object-position: left center;
}

.pedal-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
}

.product-purchase {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.product-price {
  margin: 0;
  font-size: clamp(0.9rem, 1.4vw, 1.125rem);
  font-weight: 700;
  white-space: nowrap;
}

.product-price-sold-out {
  color: #686868;
  text-decoration: line-through;
}

.pedal-stock-label {
  display: grid;
  place-items: center;
  min-width: clamp(104px, 11vw, 164px);
  min-height: clamp(48px, 5vw, 68px);
  padding: 6px 12px;
  border: 1px solid currentColor;
  border-radius: 4px;
  color: var(--theme-ink);
  background: transparent;
  font-family: inherit;
  font-size: clamp(1rem, 1.6vw, 1.375rem);
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.pedal-stock-label:not(:disabled):hover {
  color: var(--theme-panel);
  background: var(--theme-ink);
  border-color: var(--theme-ink);
}

.pedal-stock-label:disabled {
  color: #5d5d5d;
  background: #e2e2e2;
  border-color: #b8b8b8;
  pointer-events: none;
}

.pedal-stock-control:has(:disabled) { cursor: not-allowed; }
.pedal-stock-label span { grid-area: 1 / 1; }
.pedal-sold-out-label { visibility: hidden; }
.pedal-stock-control:hover .pedal-sold-out-label { visibility: visible; }
.pedal-stock-control:hover .pedal-stock-label:disabled .pedal-add-label { visibility: hidden; }

.story-rule { width: 72px; height: 3px; margin: 30px 0; background: var(--theme-accent); }
.story-description { color: var(--theme-ink); font-size: 17px; line-height: 1.9; }
.story-description p { margin: 0; }

blockquote {
  margin: 32px 0 0;
  padding: 22px 0;
  color: var(--theme-accent);
  border-top: 1px solid var(--theme-border);
  border-bottom: 1px solid var(--theme-border);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
  text-align: center;
}

blockquote:empty { display: none; }
.story-section { margin-top: 48px; }
.story-section > span { color: var(--theme-secondary); font-size: 11px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; }
.story-section h2 { margin: 8px 0 16px; font-size: 25px; }
.story-section p { margin: 0; color: var(--theme-muted); line-height: 1.8; }

.spec-list { margin: 0; border-top: 1px solid var(--theme-border); }
.spec-list div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--theme-border); }
.spec-list dt { color: var(--theme-muted); }
.spec-list dd { margin: 0; font-weight: 700; }
.story-end { margin: 54px 0 0; color: var(--theme-muted); font-size: 11px; text-align: center; }

.image-lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 28px;
  overflow: hidden;
  background: rgba(4, 4, 4, 0.96);
  border: 0;
}

.image-lightbox[open] {
  display: grid;
  place-items: center;
}

.image-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.88);
}

.image-lightbox img {
  display: block;
  max-width: calc(100vw - 56px);
  max-height: calc(100vh - 56px);
  object-fit: contain;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 2;
  width: 48px;
  height: 48px;
  padding: 0 0 5px;
  color: #fff;
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 900px) {
  .detail-header { height: 68px; }
  .product-detail { grid-template-columns: 1fr; padding-top: 68px; }
  .gallery-panel { min-height: 72svh; }
  .gallery-stage { height: 72svh; }
  .story-column { min-height: auto; padding: 24px 18px 42px; }
  .story-screen { height: 72svh; }
}

@media (max-width: 560px) {
  .detail-brand { font-size: 31px; }
  .back-link { font-size: 13px; }
  .gallery-panel, .gallery-stage { min-height: 62svh; height: 62svh; }
  .gallery-arrow { width: 44px; height: 60px; font-size: 42px; }
  .gallery-prev { left: 10px; }
  .gallery-next { right: 10px; }
  .story-screen { height: 70svh; border-radius: 22px; }
}

.amp-detail {
  --amp-switch-color: #69aaff;
  grid-template-columns: minmax(0, 1fr);
  background: #111010;
}

.amp-detail:has(.amp-hero:hover) { --amp-switch-color: #ff4040; }

.amp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
  padding: clamp(12px, 1.3vw, 24px) clamp(20px, 6vw, 96px) 0;
  color: #f5f1e9;
  background: radial-gradient(ellipse at 25% 45%, #342622, #111010 72%);
}

.amp-hero-photos { position: relative; }

.amp-hero-image {
  display: block;
  width: 100%;
  height: auto;
}

.amp-hero-image-red {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 240ms ease;
}

.amp-hero:hover .amp-hero-image-red { opacity: 1; }

.amp-hero-copy h1 {
  display: block;
  font-size: clamp(2.25rem, 5vw, 5.75rem);
}

.amp-model-numeral,
.amp-channel-count {
  color: var(--amp-switch-color);
  transition: color 240ms ease;
}
.amp-hero-purchase {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 20px;
}

.amp-hero-order {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.amp-standard-price {
  display: none;
  margin: 0;
  line-height: 1.4;
}

html[lang="en"] .amp-standard-price { display: block; }
.amp-standard-price strong { display: block; font-size: 1rem; }
.amp-standard-price span { color: #d8cdc1; font-size: 0.875rem; }

.amp-inquiry-button {
  min-height: 48px;
  padding: 8px 24px;
  border: 1px solid #c5964e;
  border-radius: 4px;
  color: #f5f1e9;
  background: rgba(20, 16, 14, 0.65);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.amp-inquiry-button:is(:hover, :focus-visible) {
  color: #15110b;
  background: #c5964e;
}

.amp-inquiry { width: min(580px, calc(100% - 32px)); }
.cart-confirm.amp-inquiry form { display: block; text-align: start; }
.amp-inquiry .amp-inquiry-response { margin: 16px 0 0; font-size: 0.875rem; line-height: 1.5; }
.amp-inquiry-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.amp-inquiry textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid #d8ded6;
  border-radius: 4px;
  color: inherit;
  background: #fff;
  font: inherit;
  resize: vertical;
}
.amp-inquiry button[value="email"] {
  border-color: #c5964e;
  background: #c5964e;
  color: #15110b;
}

.amp-hero-channel { margin: 0; font-size: clamp(1rem, 2vw, 1.6rem); font-weight: 700; }
.amp-hero-spec { margin: 8px 0 0; font-size: clamp(1rem, 2vw, 1.6rem); }

@media (prefers-reduced-motion: reduce) {
  .amp-hero-image-red,
  .amp-model-numeral,
  .amp-channel-count { transition: none; }
}

@media (max-width: 700px) {
  .amp-hero { grid-template-columns: minmax(0, 1fr); }
  .amp-hero-copy { padding-bottom: 20px; }
}

.amp-detail .story-column {
  min-height: 0;
  padding: 0 clamp(20px, 6vw, 96px);
  background: transparent;
}

.amp-detail .story-screen {
  max-width: 1080px;
  height: auto;
  overflow: visible;
  background: transparent;
  color: #f5f1e9;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.amp-detail .story-content {
  padding: clamp(42px, 7vw, 96px) 0;
}

.amp-detail .amp-hero h1 {
  min-height: 0;
  color: inherit;
}

.amp-detail .story-eyebrow { color: var(--brass); }
.amp-intro-title {
  margin: 0 0 18px;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.15;
  text-align: center;
}

.amp-detail .story-description {
  color: #e2d9ce;
  font-size: clamp(1.125rem, 1.3vw, 1.25rem);
}

.amp-detail .story-description p { text-indent: 2em; }

.amp-channels {
  padding-bottom: clamp(32px, 6vw, 72px);
}

.amp-channels .gallery-panel {
  min-height: 0;
}

.amp-channels .gallery-arrow:not(:disabled) {
  opacity: 1;
  background: rgba(0, 0, 0, 0.76);
  border-color: rgba(255, 255, 255, 0.65);
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.amp-channels .gallery-arrow:not(:disabled):is(:hover, :focus-visible) {
  background: #080808;
  border-color: #fff;
}

.amp-channels .gallery-stage {
  height: auto;
  aspect-ratio: 3 / 2;
}

.amp-channels .gallery-slide {
  display: block;
  position: absolute;
  inset: 0;
}

.amp-channels ul {
  margin: 24px 0 0;
  padding-inline-start: 1.4em;
  font-size: clamp(1.125rem, 1.3vw, 1.25rem);
  line-height: 1.9;
}

.amp-channels li + li { margin-top: 8px; }

.amp-specifications {
  margin-top: clamp(32px, 5vw, 60px);
  padding-top: 24px;
  border-top: 1px solid #51423b;
}

.amp-specifications h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.amp-specification-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 64px);
}

.amp-specification-note {
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px solid #51423b;
  color: #c6bbb1;
  font-size: 0.875rem;
  line-height: 1.7;
  text-align: center;
}

@media (max-width: 700px) {
  .amp-specification-columns { grid-template-columns: minmax(0, 1fr); }
  .amp-specification-columns ul + ul { margin-top: 8px; }
}
