.product-image-link {
  width: 100%;
  height: 100%;
  display: block;
}

.product-info h3 a {
  color: inherit;
  text-decoration: none;
}

.product-info h3 a::after {
  position: absolute;
  content: "";
}

.product-card-colors {
  display: flex;
  gap: 7px;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
}

.product-card-colors li {
  margin: 0;
}

.product-info .product-card-color-swatch {
  width: 17px;
  height: 17px;
  display: block;
  margin: 0;
  overflow: hidden;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(66, 47, 14, 0.2);
}

.product-card-colors .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.product-page {
  --product-ink: #422f0e;
  --product-muted: #786154;
  --product-coral: #d9833a;
  --product-accent-text: #984d18;
  --product-paper: #fffaf4;
  --product-line: rgba(66, 47, 14, 0.14);
  min-height: 100dvh;
  padding-bottom: clamp(3rem, 8vw, 7rem);
  background-color: #f6d9d7;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 253, 249, 0.2) 0,
    rgba(255, 253, 249, 0.2) 24px,
    rgba(255, 253, 249, 0.02) 24px,
    rgba(255, 253, 249, 0.02) 48px
  );
  background-size: 48px 100%;
  color: var(--product-ink);
}

.product-page-header {
  min-height: 76px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--product-line);
  background: rgba(255, 250, 244, 0.88);
  backdrop-filter: blur(14px);
}

.product-page-header .brand {
  position: static;
}

.product-account-link {
  color: var(--product-ink);
  font-size: 12px;
  font-weight: 720;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.product-breadcrumb {
  width: min(1180px, 90vw);
  margin: 28px auto 18px;
  display: flex;
  gap: 8px;
  align-items: center;
  overflow: hidden;
  color: var(--product-muted);
  font-size: 11px;
  white-space: nowrap;
}

.product-breadcrumb a {
  color: var(--product-ink);
}

.product-breadcrumb span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-detail {
  width: min(1180px, 90vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, 0.94fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.product-detail-media {
  position: relative;
  min-height: 0;
  aspect-ratio: 0.86;
  overflow: hidden;
  border-radius: 24px;
  background: #eee8df;
  box-shadow: 0 20px 54px rgba(117, 67, 51, 0.11);
}

.product-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.94);
  color: var(--product-ink);
  font-size: 10px;
  font-weight: 780;
}

.product-detail-copy {
  margin-top: clamp(0rem, 3.5vw, 2.5rem);
  padding: clamp(1.6rem, 3.5vw, 3rem);
  border: 1px solid rgba(66, 47, 14, 0.12);
  border-radius: 28px;
  background: rgba(255, 250, 244, 0.82);
  box-shadow: 0 18px 52px rgba(108, 66, 58, 0.08);
  backdrop-filter: blur(10px);
}

.product-detail-category {
  margin: 0 0 10px;
  color: var(--product-accent-text);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product-detail-copy h1 {
  margin: 0;
  font-family: var(--font-display), Georgia, serif;
  font-size: clamp(3.2rem, 6vw, 6rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.product-detail-price {
  margin: 22px 0 0;
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 560;
}

.product-detail-description {
  max-width: 58ch;
  margin: 18px 0 0;
  color: var(--product-muted);
  font-size: 14px;
  line-height: 1.75;
}

.product-choice {
  margin-top: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--product-line);
  border-bottom: 1px solid var(--product-line);
  background: transparent;
}

.product-choice + .product-choice {
  margin-top: 0;
  border-top: 0;
}

.product-choice > p {
  margin: 0 0 9px;
  color: var(--product-muted);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-color-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-color-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--product-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  font-size: 11px;
}

.product-color-swatch {
  width: 20px;
  height: 20px;
  display: block;
  overflow: hidden;
  border: 2px solid white;
  border-radius: 50%;
  background-color: #f4eee6;
  box-shadow: 0 0 0 1px rgba(66, 47, 14, 0.22);
}

.product-availability {
  margin: 20px 0 0;
  color: #397247;
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-availability.is-sold-out {
  color: #9b2f25;
}

.product-primary-action {
  width: 100%;
  min-height: 52px;
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid rgba(126, 63, 19, 0.28);
  border-radius: 16px;
  background: var(--product-coral);
  color: var(--product-ink);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.product-primary-action:hover,
.product-primary-action:focus-visible {
  border-color: rgba(126, 63, 19, 0.46);
  background: #c56f2c;
}

.product-primary-action.is-disabled {
  background: #7d6a60;
  color: var(--product-paper);
  cursor: not-allowed;
}

.product-back-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--product-ink);
  font-size: 11px;
  font-weight: 720;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 760px) {
  .product-page-header {
    min-height: 68px;
  }

  .product-page-header .brand-name {
    display: none;
  }

  .product-detail {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .product-detail-media {
    aspect-ratio: 0.92;
    border-radius: 18px;
  }

  .product-detail-copy {
    margin-top: 0;
    padding: 1.4rem;
    border-radius: 20px;
  }

  .product-detail-copy h1 {
    font-size: clamp(2.7rem, 15vw, 4.6rem);
  }
}

/* Galerie et choix de variantes. */
.product-image-link {
  position: relative;
  overflow: hidden;
}

.product-image-link .product-card-variant-image {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 650ms cubic-bezier(0.16, 1, 0.3, 1), transform 350ms ease;
}

.product-image-link .product-card-variant-image.is-active {
  opacity: 1;
}

.product-card-carousel-track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.product-image-link .product-card-carousel-track .product-card-variant-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: cover;
  transition: opacity 760ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity;
}

.product-image-link .product-card-carousel-track .product-card-variant-image.is-active {
  opacity: 1;
}

.product-variant-gallery {
  min-width: 0;
}

.product-gallery-controls {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: var(--product-ink);
  pointer-events: none;
}

.product-gallery-controls button {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background: rgba(255, 250, 244, 0.88);
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 24px;
  font-weight: 650;
  line-height: 1;
  pointer-events: auto;
  transform: translateY(-50%);
  box-shadow: 0 8px 24px rgba(66, 47, 14, 0.13);
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.product-gallery-controls button:first-child {
  left: 16px;
}

.product-gallery-controls button:last-child {
  right: 16px;
}

.product-gallery-controls button:hover,
.product-gallery-controls button:focus-visible {
  border-color: rgba(217, 131, 58, 0.7);
  background: #fffaf4;
  transform: translateY(-50%) scale(1.04);
}

.product-option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.product-option-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid var(--product-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--product-ink);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
}

.product-option-button .product-mounting-dot,
.product-option-button .product-color-swatch {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
}

.product-option-button.is-selected {
  border-color: var(--product-coral);
  background: rgba(255, 250, 244, 0.96);
  box-shadow: 0 0 0 2px rgba(217, 131, 58, 0.15);
}

.product-option-button:active {
  transform: translateY(1px);
}

.product-option-button:disabled,
.product-option-button.is-unavailable {
  cursor: not-allowed;
  opacity: 0.38;
}

.product-selection-summary {
  margin: 14px 0 0;
  color: var(--product-muted);
  font-size: 11px;
  line-height: 1.5;
}

@media (min-width: 1180px) {
  .product-detail.has-creator-note .product-variant-gallery {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

}

@media (max-width: 760px) {
  .product-gallery-controls button {
    width: 40px;
    height: 40px;
    font-size: 21px;
  }

  .product-gallery-controls button:first-child {
    left: 10px;
  }

  .product-gallery-controls button:last-child {
    right: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-image-link .product-card-variant-image {
    transition: none;
  }

}

/* Fiche produit v26 : deux panneaux alignés et titre sur une ligne. */
.product-detail {
  align-items: stretch;
}

.product-detail-copy {
  height: auto;
  margin-top: 0;
}

.product-detail-copy h1 {
  color: var(--product-coral);
  font-size: clamp(2.8rem, 5vw, 4.9rem);
  line-height: 0.98;
  white-space: nowrap;
}

.product-back-link,
.product-back-link:hover,
.product-back-link:focus-visible {
  text-decoration: none;
}

@media (max-width: 760px) {
  .product-detail-copy h1 {
    white-space: normal;
  }
}
