:root {
  --detail-panel: #0f0f0f;
  --detail-line: #242424;
  --detail-muted: #bdbdbd;
}

.product-detail-main {
  background: linear-gradient(180deg, #060606 0%, #0a0a0a 45%, #070707 100%);
}

.product-detail-section {
  padding-top: 2.4rem;
}

.product-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #c5c5c5;
}

.product-breadcrumbs a {
  color: #dcdcdc;
}

.product-breadcrumbs a:hover,
.product-breadcrumbs a:focus-visible {
  color: #ffffff;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 1.2rem;
  align-items: start;
}

.product-gallery {
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.product-gallery-main {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--detail-line);
  background: #0e0e0e;
  min-height: 560px;
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.product-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.product-gallery-thumbs button {
  border: 1px solid var(--detail-line);
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  background: #0f0f0f;
  cursor: pointer;
}

.product-gallery-thumbs button.is-active {
  border-color: rgba(191, 238, 255, 0.9);
}

.product-gallery-thumbs img {
  width: 100%;
  height: 96px;
  object-fit: cover;
}

.product-panel {
  border: 1px solid var(--detail-line);
  border-radius: 18px;
  background: var(--detail-panel);
  padding: 1.8rem;
  display: grid;
  gap: 1rem;
}

.product-panel h1 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
}

.product-subtitle {
  color: var(--detail-muted);
  max-width: 58ch;
}

.product-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

.current-price {
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.55rem, 3.1vw, 2.1rem);
  line-height: 1;
}

.old-price {
  color: #a7a7a7;
  text-decoration: line-through;
}

.price-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.36rem 0.65rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(120deg, rgba(216, 244, 255, 0.9), rgba(255, 215, 238, 0.88), rgba(255, 249, 207, 0.9));
  color: #151515;
}

.product-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.product-cta-row .btn {
  flex: 1 1 220px;
}

.product-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.product-meta-card {
  border: 1px solid var(--detail-line);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  background: #141414;
}

.product-meta-card h2 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #bababa;
  margin-bottom: 0.36rem;
}

.product-meta-card p {
  font-size: 0.95rem;
}

.product-accordions {
  display: grid;
  gap: 0.65rem;
}

.product-accordions details {
  border: 1px solid var(--detail-line);
  border-radius: 12px;
  background: #121212;
  overflow: hidden;
}

.product-accordions summary {
  list-style: none;
  cursor: pointer;
  padding: 0.92rem 1rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-accordions summary::-webkit-details-marker {
  display: none;
}

.product-accordions summary::after {
  content: "+";
  font-size: 1rem;
  line-height: 1;
}

.product-accordions details[open] summary::after {
  content: "-";
}

.product-accordions .detail-copy {
  color: var(--detail-muted);
  border-top: 1px solid var(--detail-line);
  padding: 0.9rem 1rem 1rem;
}

.product-detail-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1.1rem;
  margin-top: 1.1rem;
}

.product-story,
.product-related {
  border: 1px solid var(--detail-line);
  border-radius: 18px;
  background: #101010;
  padding: 1.55rem;
}

.product-story h2,
.product-related h2 {
  font-size: clamp(1.5rem, 2.7vw, 2.25rem);
  margin: 0.75rem 0;
}

.product-story p {
  color: var(--detail-muted);
}

.related-grid {
  display: grid;
  gap: 0.55rem;
}

.related-grid a {
  display: block;
  border: 1px solid var(--detail-line);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  background: #151515;
  color: #ececec;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.related-grid a:hover,
.related-grid a:focus-visible {
  border-color: rgba(191, 238, 255, 0.75);
  transform: translateY(-1px);
  outline: none;
}

.related-grid strong {
  display: block;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.2rem;
  margin-bottom: 0.15rem;
}

.related-grid span {
  color: #b9b9b9;
  font-size: 0.9rem;
}

.detail-link-row {
  margin-top: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.detail-link-row a {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(120deg, var(--cmyk-cyan-light) 0%, var(--cmyk-magenta-light) 58%, var(--cmyk-yellow-light) 100%);
  color: #151515;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: 600;
  padding: 0.55rem 0.9rem;
}

.detail-link-row a:hover,
.detail-link-row a:focus-visible {
  filter: brightness(1.04);
  outline: none;
}

@media (max-width: 1080px) {
  .product-layout,
  .product-detail-lower {
    grid-template-columns: 1fr;
  }

  .product-gallery-main,
  .product-gallery-main img {
    min-height: 460px;
  }
}

@media (max-width: 760px) {
  .product-detail-section {
    padding-top: 1.4rem;
  }

  .product-gallery-main,
  .product-gallery-main img {
    min-height: 340px;
  }

  .product-panel {
    padding: 1.15rem;
  }

  .product-meta-grid {
    grid-template-columns: 1fr;
  }

  .product-gallery-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-gallery-thumbs img {
    height: 108px;
  }

  .product-story,
  .product-related {
    padding: 1.2rem;
  }
}
