/* Page Produit - bloc recodé (classes pdp-*), aucun conflit avec style.css */

.pdp-section {
  background: linear-gradient(180deg, #fafafa 0%, #f0f0f0 100%);
  padding: 48px 24px 56px;
  margin: 0;
  width: 100%;
}

.pdp {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Zone slides : hauteur fixe, overflow caché */
.pdp__slider {
  position: relative;
  width: 100%;
  height: 440px;
  overflow: hidden;
  flex-shrink: 0;
}

.pdp__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  transition: opacity 0.25s ease-out;
}

.pdp__slide--active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pdp__card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  min-height: 100%;
  padding: 32px 40px 32px 44px;
  box-sizing: border-box;
}

.pdp__info {
  padding-right: 16px;
}

.pdp__label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e30613;
  margin-bottom: 10px;
}

.pdp__title {
  color: #1a1a1a;
  font-size: 1.6rem;
  line-height: 1.25;
  margin-bottom: 12px;
  font-family: "TCCC-UnityHeadline", "Montserrat", Arial, sans-serif;
  font-weight: 700;
}

.pdp__accent {
  color: #e30613;
}

.pdp__desc {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 18px;
  line-height: 1.6;
}

.pdp__nutri {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #eee;
  max-width: 100%;
  background: #fff;
}

.pdp__nutri-row {
  display: grid;
  grid-template-columns: 1fr repeat(4, 1fr);
  background: #fafafa;
  border-bottom: 1px solid #eee;
}

.pdp__nutri-row:last-child {
  border-bottom: none;
}

.pdp__nutri-header {
  background: #1a1a1a;
  color: #fff;
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pdp__nutri-header > div {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdp__nutri-row > div {
  padding: 10px 8px;
  text-align: center;
  font-size: 0.85rem;
}

.pdp__nutri-row:not(.pdp__nutri-header) > div:first-child {
  font-weight: 600;
  color: #333;
}

.pdp__nutri-pct {
  background: #fff5f5;
  color: #e30613;
  font-weight: 600;
  font-size: 0.8rem;
}

.pdp__media {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 220px;
  padding: 20px;
  background: linear-gradient(145deg, #fafafa 0%, #f0f0f0 100%);
  border-radius: 14px;
}

.pdp__mini {
  position: relative;
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
}

.pdp__mini-track {
  position: relative;
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.pdp__mini-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 70%;
  max-height: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
  object-fit: contain;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.1));
}

.pdp__mini-img--active {
  opacity: 1;
}

.pdp__mini-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.pdp__mini-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.pdp__mini-dot--active,
.pdp__mini-dot:hover {
  background: #e30613;
}

.pdp__mini-dot--active {
  transform: scale(1.2);
}

/* Barre de navigation produit : toujours visible en bas du bloc */
.pdp__nav {
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  gap: 10px;
  height: 88px;
  padding: 0 24px;
  background: #fff;
  border-top: 1px solid #eee;
}

.pdp__nav-btn {
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid #e5e5e5;
  padding: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  border-radius: 12px;
}

.pdp__nav-btn:hover {
  border-color: #ccc;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.pdp__nav-btn--active {
  border: 1px solid #e30613;
  box-shadow: 0 1px 8px rgba(227, 6, 19, 0.15);
}

.pdp__nav-btn img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
}

/* Responsive */
@media (max-width: 900px) {
  .pdp__slider {
    height: 520px;
  }

  .pdp__card {
    grid-template-columns: 1fr;
    padding: 24px 24px 20px;
    gap: 24px;
  }

  .pdp__info {
    order: 1;
    padding-right: 0;
  }

  .pdp__media {
    order: 0;
    min-height: 200px;
  }

  .pdp__mini-track {
    height: 200px;
  }

  .pdp__nutri-row > div {
    padding: 8px 6px;
    font-size: 0.8rem;
  }
}

@media (max-width: 600px) {
  .pdp-section {
    padding: 24px 16px 40px;
  }

  .pdp__slider {
    height: 480px;
  }

  .pdp__card {
    padding: 20px 16px;
  }

  .pdp__title {
    font-size: 1.3rem;
  }

  .pdp__nav {
    height: 80px;
    padding: 0 16px;
    gap: 8px;
  }

  .pdp__nav-btn img {
    width: 44px;
    height: 44px;
  }
}
