.catalog-page .site-header {
  background: rgba(10, 10, 10, 0.94);
}

.product-page {
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 4rem;
}

.product-hero {
  max-width: 1200px;
  margin: 0 auto 1.75rem;
  padding: 0 1.25rem;
}

.product-hero h1 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.product-lead {
  margin: 0;
  max-width: 36rem;
  color: rgba(20, 20, 20, 0.72);
  font-size: 1.02rem;
  font-weight: 300;
}

.product-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  justify-content: start;
}

@media (min-width: 720px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 240px));
    gap: 1rem;
  }
}

.product-card {
  display: grid;
  gap: 0.45rem;
  align-content: start;
  padding: 0.7rem 0.65rem 0.85rem;
  background: var(--paper);
  border: 1px solid transparent;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
  font: inherit;
  color: inherit;
  min-width: 0;
}

@media (min-width: 720px) {
  .product-card {
    gap: 0.55rem;
    padding: 0.85rem 0.85rem 1rem;
  }
}

.product-card:hover,
.product-card:focus-visible {
  border-color: var(--red);
  transform: translateY(-2px);
  outline: none;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1;
  max-height: 180px;
  object-fit: contain;
  display: block;
  background: #fff;
  transition: opacity 0.18s ease;
}

.product-card img.is-swapping {
  opacity: 0.35;
}

.product-card strong {
  font-family: var(--font-display);
  font-size: clamp(0.92rem, 3.6vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
}

.product-card > span:not(.product-card-cta) {
  font-size: clamp(0.72rem, 2.8vw, 0.82rem);
  font-weight: 300;
  color: rgba(20, 20, 20, 0.62);
  line-height: 1.35;
}

.product-card-cta {
  margin-top: 0.15rem;
  font-size: clamp(0.62rem, 2.4vw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
}

/* Detail dialog */
.product-dialog {
  width: min(920px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: none;
  background: transparent;
}

.product-dialog::backdrop {
  background: rgba(10, 10, 10, 0.55);
}

.product-dialog-inner {
  position: relative;
  background: var(--white);
  padding: 1.25rem;
  overflow: auto;
  max-height: calc(100vh - 2rem);
}

.product-dialog-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: var(--black);
}

.product-dialog-close:hover {
  color: var(--red);
}

.product-dialog-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .product-dialog-grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 1.75rem;
    align-items: start;
  }
}

.product-gallery {
  padding: 0.75rem;
  background: var(--paper);
}

.product-main-img {
  width: 100%;
  aspect-ratio: 1;
  max-height: 340px;
  object-fit: contain;
  display: block;
  background: #fff;
  margin: 0 auto;
}

.product-main-img--tall {
  aspect-ratio: 4 / 5;
  max-height: 420px;
  object-fit: contain;
}

.product-thumbs {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.55rem;
  justify-content: center;
}

.product-thumb {
  width: 3rem;
  height: 3rem;
  padding: 0.2rem;
  border: 1px solid transparent;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-thumb.is-active,
.product-thumb:hover,
.product-thumb:focus-visible {
  border-color: var(--red);
  outline: none;
}

.product-info {
  display: grid;
  gap: 0.7rem;
  align-content: start;
  padding-right: 1.5rem;
}

.product-info h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.05;
}

.product-copy {
  display: grid;
  gap: 0.7rem;
  max-height: min(42vh, 22rem);
  overflow: auto;
  padding-right: 0.35rem;
}

.product-copy p,
.product-copy li {
  margin: 0;
  color: rgba(20, 20, 20, 0.72);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.5;
}

.product-copy h3 {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
}

.product-copy ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.25rem;
}

.product-note {
  padding: 0.65rem 0.75rem;
  background: var(--paper);
  border-left: 3px solid var(--red);
}

.product-option-label {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}

.product-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.product-color {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.65rem 0.4rem 0.4rem;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: border-color 0.2s ease;
}

.product-color:hover,
.product-color:focus-visible {
  border-color: rgba(20, 20, 20, 0.45);
  outline: none;
}

.product-color.is-active {
  border-color: var(--black);
  box-shadow: inset 0 0 0 1px var(--black);
}

.product-color-swatch {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.product-color-swatch--yellow {
  background: #f5c400;
}

.product-color-swatch--black {
  background: #1a1a1a;
}

.product-color-swatch--red {
  background: #d32f2f;
}

.product-selected {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(20, 20, 20, 0.6);
}

.product-selected strong {
  color: var(--black);
  font-weight: 600;
}

.product-info .btn {
  margin-top: 0.25rem;
  width: fit-content;
}
