/* Carte hero produit — 2 colonnes — Figma node 191:1688
   1088×888, r=24, bg blanc, border #EAEAEA, 2 colonnes 543×886. */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  overflow: hidden;
}

/* Inversion : image à GAUCHE, info à DROITE (cf. maquette Figma) */
.product-detail__image { order: 1; }
.product-detail__info  { order: 2; }

/* --- Colonne info (gauche) --- */
.product-detail__info {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 64px;
}

.product-detail__header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-detail__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 48px;
  line-height: 48px;
  color: var(--color-text-dark);
  margin: 0;
}

.product-detail__rating {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-detail__rating-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  color: var(--color-text-dark);
}

.product-detail__price-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 10px;
  width: 100%;
}

.product-detail__price {
  font-family: var(--font-price);
  font-weight: 400;
  font-size: 30px;
  line-height: 36px;
  color: var(--color-text-dark);
}

.product-detail__price-vat {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-text-grey);
}

.product-detail__volume {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  color: var(--color-accent-gold);
  margin-left: auto;
}

.product-detail__attrs {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.product-detail__actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: auto;
}

.product-detail__qty-line {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.product-detail__qty-line .btn { flex: 1; min-width: 200px; }

.product-detail__compose {
  width: 100%;
  justify-content: center;
}

.product-detail__tech-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-text-grey);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.product-detail__tech-link:hover { color: var(--color-accent-gold); }

.product-detail__tech-link svg {
  width: 13.6px;
  height: 14px;
  flex-shrink: 0;
}

/* --- Colonne image (gauche selon maquette) --- */
.product-detail__image {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 24px 32px 32px;
  background-color: var(--color-surface);
  min-height: 720px;
  overflow: hidden;
}

/* Image bouteille : object-fit contain pour préserver les proportions
   (la bouteille s'affiche en entier, centrée, sans crop) */
.product-detail__bottle {
  display: block;
  width: 100%;
  height: 100%;
  flex: 1;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  position: relative;
  z-index: 1;
}

/* Gradient overlay sur le bord droit — fade de transparent (gauche)
   vers cream (droite). Reproduit le "Decorative Glow" Figma 191:1762.
   Crée une transition visuelle douce vers la colonne info. */
.product-detail__image-glow {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 120px;
  background: linear-gradient(
    to right,
    rgba(251, 249, 244, 0) 0%,
    var(--color-bg-cream) 100%
  );
  pointer-events: none;
  z-index: 2;
}


.product-detail__badges {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 3;
  flex-shrink: 0;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .product-detail { grid-template-columns: 1fr; }
  .product-detail__info  { padding: 32px; gap: 24px; }
  .product-detail__image { padding: 32px; min-height: 480px; }
  .product-detail__title { font-size: 36px; line-height: 40px; }
  /* Mobile : image au-dessus, info en dessous (UX e-commerce standard) */
  .product-detail__image { order: 1; }
  .product-detail__info  { order: 2; }
  /* Mobile : gradient horizontal devient gradient vertical (bottom) */
  .product-detail__image-glow {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(
      to bottom,
      rgba(251, 249, 244, 0) 0%,
      var(--color-bg-cream) 100%
    );
  }
}
