:root {
  --product-bg: hsl(40 20% 98%);
  --product-white: #ffffff;
  --product-black: #0b0b0b;
  --product-black-soft: #171717;
  --product-text: #111111;
  --product-muted: #6f6f6f;
  --product-muted-2: #9a9a9a;
  --product-line: rgba(0, 0, 0, 0.1);
  --product-line-strong: rgba(0, 0, 0, 0.18);
  --product-soft: rgba(0, 0, 0, 0.035);
  --product-green: #1f7a4d;
  --product-red: #a13d34;
  --product-radius-xl: 28px;
  --product-radius-lg: 20px;
  --product-radius-md: 14px;
  --product-shadow: 0 22px 70px rgba(0, 0, 0, 0.08);
  --product-shadow-soft: 0 12px 34px rgba(0, 0, 0, 0.045);
}

body.productPage {
  margin: 0;
  min-height: 100vh;
  color: var(--product-text);
  background: var(--product-bg);
}

.productShell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 76px;
}

.productBreadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 26px;
  color: var(--product-muted);
  font-size: 13px;
  font-weight: 800;
}

.productBreadcrumbs a {
  color: var(--product-muted);
  text-decoration: none;
}

.productBreadcrumbs a:hover {
  color: var(--product-black);
}

.productBreadcrumbs span {
  color: var(--product-muted-2);
}

.productTop {
  display: block;
  margin-bottom: 24px;
}

.productEyebrow {
  margin: 0 0 12px;
  color: var(--product-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 900;
}

.productIntro h1 {
  margin: 0;
  max-width: 880px;
  color: var(--product-black);
  font-size: clamp(36px, 5.8vw, 70px);
  line-height: 0.96;
  letter-spacing: -0.065em;
  font-weight: 950;
}

.productCategories {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 1px 24px;
  margin-bottom: 10px;
  scrollbar-width: none;
}

.productCategories::-webkit-scrollbar {
  display: none;
}

.productCategories a {
  flex: 0 0 auto;
  color: var(--product-muted);
  background: transparent;
  border: 1px solid var(--product-line);
  border-radius: 999px;
  padding: 10px 15px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 850;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.productCategories a:hover {
  color: var(--product-black);
  border-color: var(--product-line-strong);
}

.productCategories a.is-active {
  color: var(--product-white);
  background: var(--product-black);
  border-color: var(--product-black);
}

.productLayout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 26px;
  align-items: start;
}

.productGallery {
  min-width: 0;
}

.productImageFrame {
  position: relative;
  overflow: hidden;
  min-height: 610px;
  border-radius: var(--product-radius-xl);
  border: 1px solid var(--product-line);
  background: var(--product-white);
  box-shadow: var(--product-shadow-soft);
}

.productImageFrame::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: calc(var(--product-radius-xl) - 12px);
  border: 1px solid rgba(0, 0, 0, 0.055);
  pointer-events: none;
  z-index: 2;
}

.productImageFrame img {
  display: block;
  width: 100%;
  height: 610px;
  object-fit: contain;
  padding: 42px;
  position: relative;
  z-index: 1;
}

.productImageEmpty {
  min-height: 610px;
  display: grid;
  place-items: center;
  color: var(--product-muted);
  font-weight: 850;
}

.productThumbs {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
}

.productThumb {
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  border: 1px solid var(--product-line);
  border-radius: 18px;
  background: var(--product-white);
  cursor: pointer;
  overflow: hidden;
  padding: 8px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.productThumb:hover,
.productThumb:focus-visible {
  transform: translateY(-1px);
  border-color: var(--product-black);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  outline: none;
}

.productThumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.productBuyBox {
  position: static;
  border-radius: var(--product-radius-xl);
  background: var(--product-white);
  border: 1px solid var(--product-line);
  box-shadow: var(--product-shadow-soft);
  overflow: hidden;
}

.buyBoxInner {
  position: static;
  padding: 24px;
}

.buyBoxHeader {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.buyBoxLabel {
  display: block;
  margin-bottom: 8px;
  color: var(--product-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.buyBoxHeader strong {
  color: var(--product-black);
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 950;
}

.availability {
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid currentColor;
  background: transparent;
}

.availability--yes {
  color: var(--product-green);
}

.availability--no {
  color: var(--product-red);
}

.buyBoxStock {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 0 0;
  color: var(--product-muted);
  font-size: 13px;
  font-weight: 850;
}

.buyBoxStock strong {
  color: var(--product-black);
  font-size: 14px;
  font-weight: 950;
}

.buyBoxDivider {
  height: 1px;
  background: var(--product-line);
  margin: 22px 0;
}

.quantityField {
  display: grid;
  gap: 9px;
}

.quantityField span {
  color: var(--product-black);
  font-size: 13px;
  font-weight: 900;
}

.quantityField input {
  width: 100%;
  height: 52px;
  border: 1px solid var(--product-line);
  border-radius: 14px;
  background: var(--product-bg);
  color: var(--product-black);
  padding: 0 15px;
  font-size: 15px;
  font-weight: 850;
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.quantityField input:focus {
  border-color: var(--product-black);
  background: var(--product-white);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.055);
}

.quantityField input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.productActions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 15px;
}

.productBtn {
  width: 100%;
  min-height: 54px;
  border-radius: 15px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 950;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.productBtn:hover {
  transform: translateY(-1px);
}

.productBtn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.productBtn--primary {
  color: var(--product-white);
  background: var(--product-black);
  border: 1px solid var(--product-black);
}

.productBtn--primary:hover {
  background: var(--product-black-soft);
  border-color: var(--product-black-soft);
}

.productBtn--ghost {
  color: var(--product-black);
  background: transparent;
  border: 1px solid var(--product-line-strong);
}

.productBtn--ghost:hover {
  background: var(--product-soft);
}

.buyBoxNote {
  margin: 13px 0 0;
  color: var(--product-muted);
  font-size: 13px;
  line-height: 1.45;
}

.productDescription {
  margin-top: 28px;
  padding: 24px;
  border-radius: var(--product-radius-xl);
  background: var(--product-white);
  border: 1px solid var(--product-line);
  box-shadow: var(--product-shadow-soft);
}

.descriptionHeader {
  margin: 0 0 6px;
  padding: 0;
}

.descriptionHeader span {
  display: block;
  margin: 0;
  color: var(--product-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 900;
}

.descriptionBody {
  margin: 0;
  padding: 0;
  color: var(--product-black);
  font-size: 15px;
  line-height: 1.65;
  white-space: pre-line;
}

@media (max-width: 980px) {
  .productShell {
    width: min(100% - 24px, 760px);
    padding-top: 24px;
  }

  .productLayout {
    grid-template-columns: 1fr;
  }

  .productImageFrame,
  .productImageFrame img,
  .productImageEmpty {
    min-height: 520px;
    height: 520px;
  }
}

@media (max-width: 640px) {
  .productShell {
    width: min(100% - 18px, 520px);
    padding-bottom: 50px;
  }

  .productIntro h1 {
    font-size: clamp(32px, 12vw, 48px);
    letter-spacing: -0.055em;
  }

  .productCategories {
    padding-bottom: 16px;
  }

  .productImageFrame {
    border-radius: 22px;
  }

  .productImageFrame::before {
    inset: 10px;
    border-radius: 16px;
  }

  .productImageFrame,
  .productImageFrame img,
  .productImageEmpty {
    min-height: 380px;
    height: 380px;
  }

  .productImageFrame img {
    padding: 24px;
  }

  .productThumb {
    flex-basis: 76px;
    width: 76px;
    height: 76px;
    border-radius: 15px;
  }

  .buyBoxInner {
    padding: 20px;
  }

  .buyBoxHeader {
    flex-direction: column;
  }

  .buyBoxHeader strong {
    font-size: 30px;
  }

  .productDescription {
    padding: 20px;
    border-radius: 22px;
  }
}