/* =====================================================================
   L'Atelier Insoumis — Product page CSS (PDP)
   Direction : Carhartt-WIP × Aimé Leon Dore × Noah NYC × Bernie 2020.
   Palette stricte (héritée d'assets/style.css :root).
   Inter partout. Coins droits. Aucun arrondi sauf cas inputs.
   ===================================================================== */

/* ============================================================
   Conteneur PDP
   ============================================================ */
.mp-pdp {
  background: var(--mp-white);
  color: var(--mp-ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  padding-bottom: 5rem;
}

.mp-pdp__section-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 4rem 2rem;
}
.mp-pdp__section-inner--narrow {
  max-width: 760px;
}

.mp-pdp__section + .mp-pdp__section .mp-pdp__section-inner {
  border-top: 1px solid var(--mp-grey-100);
}

.mp-pdp__section-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mp-ink);
  margin: 0 0 2rem;
}

/* ============================================================
   1) BREADCRUMB
   ============================================================ */
.mp-pdp__breadcrumb {
  background: var(--mp-white);
  border-bottom: 1px solid var(--mp-grey-100);
}
.mp-pdp__breadcrumb-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.85rem 2rem;
}
.mp-breadcrumb,
.mp-breadcrumb a,
.mp-breadcrumb span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--mp-grey-600);
}
.mp-breadcrumb a {
  text-decoration: none;
  color: var(--mp-grey-600);
  transition: color 0.15s ease;
}
.mp-breadcrumb a:hover { color: var(--mp-ink); }
.mp-breadcrumb .breadcrumb_last,
.mp-breadcrumb [aria-current="page"] {
  color: var(--mp-ink);
}

/* ============================================================
   2) HERO 60/40
   ============================================================ */
.mp-pdp__hero {
  max-width: 1320px;
  margin: 0 auto;
  padding: 2rem 2rem 3rem;
}
.mp-pdp__hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 60%) minmax(0, 40%);
  gap: 3rem;
  align-items: start;
}

/* Galerie sticky */
.mp-pdp__gallery {
  position: relative;
}
.mp-pdp__gallery .woocommerce-product-gallery {
  width: 100% !important;
  margin: 0;
  float: none;
}
.mp-pdp__gallery .woocommerce-product-gallery__wrapper {
  margin: 0;
}
.mp-pdp__gallery .woocommerce-product-gallery__image {
  background: var(--mp-grey-50);
}
.mp-pdp__gallery .woocommerce-product-gallery__image img {
  width: 100%;
  height: auto;
  border-radius: 0;
  background: var(--mp-grey-50);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.mp-pdp__gallery .woocommerce-product-gallery__image:hover img {
  transform: scale(1.02);
}
/* Trigger zoom (fullscreen) — discret coin haut-droit */
.mp-pdp__gallery .woocommerce-product-gallery__trigger {
  background: var(--mp-white);
  color: var(--mp-ink);
  border: 1px solid var(--mp-grey-100);
  font-size: 14px;
  text-indent: -9999px;
  width: 36px;
  height: 36px;
  top: 1rem;
  right: 1rem;
  border-radius: 0;
}
.mp-pdp__gallery .woocommerce-product-gallery__trigger::before {
  content: "+";
  font-size: 22px;
  font-weight: 300;
  color: var(--mp-ink);
  line-height: 36px;
  text-indent: 0;
  display: block;
  text-align: center;
}
/* Thumbs (flexslider) en bas de la galerie */
.mp-pdp__gallery .flex-control-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 100px));
  gap: 0.5rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}
.mp-pdp__gallery .flex-control-thumbs li {
  width: 100%;
  margin: 0;
}
.mp-pdp__gallery .flex-control-thumbs img {
  width: 100%;
  height: auto;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.15s ease;
  background: var(--mp-grey-50);
}
.mp-pdp__gallery .flex-control-thumbs img.flex-active,
.mp-pdp__gallery .flex-control-thumbs img:hover {
  opacity: 1;
}

/* Colonne achat sticky */
.mp-pdp__buy {
  position: sticky;
  top: 100px;
  align-self: start;
}
.mp-pdp__buy-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  width: 100%;
  float: none !important;
}

/* Eyebrow */
.mp-pdp__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mp-grey-600);
  margin: 0;
}

/* H1 */
.mp-pdp__title,
.mp-pdp .product_title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--mp-ink);
  margin: 0;
}
@media (min-width: 1100px) {
  .mp-pdp__title,
  .mp-pdp .product_title { font-size: 32px; }
}

/* Rating discret sous H1 */
.mp-pdp__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 13px;
  color: var(--mp-grey-600);
  margin: 0;
}
.mp-pdp__rating .star-rating {
  font-size: 12px;
  color: var(--mp-ink);
}
.mp-pdp__rating-count { color: var(--mp-grey-600); }
.mp-pdp__rating:hover .mp-pdp__rating-count { color: var(--mp-ink); }

/* Prix */
.mp-pdp__price,
.mp-pdp .price {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--mp-ink);
  margin: 0;
}
.mp-pdp__price-tva {
  font-size: 12px;
  font-weight: 400;
  color: var(--mp-grey-400);
  margin-left: 0.5rem;
  letter-spacing: 0;
}
.mp-pdp__price del {
  color: var(--mp-grey-400);
  font-weight: 400;
  margin-right: 0.4rem;
}
.mp-pdp__price ins {
  text-decoration: none;
  background: transparent;
  color: var(--mp-ink);
}

/* Sélecteur taille */
.mp-pdp__sizes {
  border: 0;
  padding: 0;
  margin: 0.5rem 0 0;
}
.mp-pdp__sizes-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}
.mp-pdp__sizes-legend {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mp-ink);
  padding: 0;
}
.mp-pdp__sizes-guide {
  font-size: 12px;
  color: var(--mp-grey-600);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mp-pdp__sizes-guide:hover { color: var(--mp-ink); }

.mp-pdp__sizes-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
}
@media (max-width: 480px) {
  .mp-pdp__sizes-grid { grid-template-columns: repeat(3, 1fr); }
}

.mp-size {
  position: relative;
  display: block;
  cursor: pointer;
}
.mp-size input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.mp-size span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border: 1px solid var(--mp-grey-100);
  background: var(--mp-white);
  font-size: 14px;
  font-weight: 500;
  color: var(--mp-ink);
  transition: border-color 0.12s ease, background 0.12s ease;
}
.mp-size:hover span { border-color: var(--mp-ink); }
.mp-size input:checked + span {
  background: var(--mp-ink);
  color: var(--mp-white);
  border-color: var(--mp-ink);
}
.mp-size input:focus-visible + span {
  outline: 2px solid var(--mp-red);
  outline-offset: 2px;
}
.mp-size input:disabled + span {
  color: var(--mp-grey-400);
  background: var(--mp-grey-50);
  text-decoration: line-through;
  cursor: not-allowed;
}

/* Quantité — masquée par défaut (use case rare) */
.mp-pdp__form .quantity {
  display: none;
}

/* Bouton Add To Cart */
.mp-pdp__atc.button.alt,
.mp-pdp .single_add_to_cart_button {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 56px;
  padding: 0 1.5rem !important;
  margin: 0.5rem 0 0 !important;
  background: var(--mp-ink) !important;
  color: var(--mp-white) !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.mp-pdp__atc.button.alt:hover,
.mp-pdp .single_add_to_cart_button:hover {
  background: var(--mp-red) !important;
}
.mp-pdp__atc-arrow {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
  transition: transform 0.15s ease;
}
.mp-pdp__atc.button.alt:hover .mp-pdp__atc-arrow {
  transform: translateX(3px);
}
.mp-pdp__low-stock {
  font-size: 12px;
  color: var(--mp-red);
  margin: 0.4rem 0 0;
}

/* ETA livraison */
.mp-pdp__eta {
  font-size: 13px;
  color: var(--mp-ink);
  margin: 0.25rem 0 0;
  padding: 0.65rem 0.85rem;
  background: var(--mp-cream);
  border-left: 2px solid var(--mp-ink);
}
.mp-pdp__eta strong { font-weight: 600; }

/* Trust ligne sobre */
.mp-pdp__trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  font-size: 12px;
  color: var(--mp-grey-600);
  letter-spacing: 0.02em;
}
.mp-pdp__trust li {
  position: relative;
  padding-left: 1rem;
}
.mp-pdp__trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  background: var(--mp-ink);
  transform: translateY(-50%);
}

/* ============================================================
   3) TABS STICKY
   ============================================================ */
.mp-pdp__tabs {
  position: sticky;
  top: 60px;
  z-index: 30;
  background: var(--mp-white);
  border-top: 1px solid var(--mp-grey-100);
  border-bottom: 1px solid var(--mp-grey-100);
}
.mp-pdp__tabs-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mp-pdp__tabs-inner::-webkit-scrollbar { display: none; }

.mp-pdp__tabs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
  white-space: nowrap;
}
.mp-tab {
  display: inline-block;
  padding: 1rem 0;
  text-decoration: none;
  color: var(--mp-grey-600);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.mp-tab:hover { color: var(--mp-ink); }
.mp-tab.is-active {
  color: var(--mp-ink);
  border-bottom-color: var(--mp-ink);
}

/* ============================================================
   4) STORY (prose éditoriale)
   ============================================================ */
.mp-pdp__prose {
  font-size: 16px;
  line-height: 1.7;
  color: var(--mp-ink);
}
.mp-pdp__prose p { margin: 0 0 1.1em; }
.mp-pdp__prose p:last-child { margin-bottom: 0; }

/* Drop-cap style ALD — première lettre du premier paragraphe */
.mp-pdp__prose > p:first-of-type::first-letter {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 3.6em;
  line-height: 0.85;
  font-weight: 600;
  float: left;
  margin: 0.05em 0.12em 0 0;
  color: var(--mp-ink);
}
.mp-pdp__prose strong { font-weight: 600; }
.mp-pdp__prose em { font-style: italic; }
.mp-pdp__prose a {
  color: var(--mp-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.mp-pdp__prose a:hover { color: var(--mp-red); }

/* ============================================================
   5) DÉTAILS / SPECS
   ============================================================ */
.mp-pdp__specs {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--mp-grey-100);
}
.mp-spec {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--mp-grey-100);
}
.mp-spec dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mp-grey-600);
  margin: 0;
}
.mp-spec dd {
  font-size: 15px;
  color: var(--mp-ink);
  margin: 0;
  line-height: 1.55;
}
.mp-spec dd a { color: var(--mp-ink); }
@media (max-width: 600px) {
  .mp-spec { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* ============================================================
   6) GUIDE TAILLES
   ============================================================ */
.mp-pdp__sizes-details {
  border-top: 1px solid var(--mp-grey-100);
}
.mp-pdp__sizes-details:last-of-type {
  border-bottom: 1px solid var(--mp-grey-100);
}
.mp-pdp__sizes-details summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mp-ink);
  position: relative;
  padding-right: 2rem;
}
.mp-pdp__sizes-details summary::-webkit-details-marker { display: none; }
.mp-pdp__sizes-details summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 300;
  color: var(--mp-ink);
}
.mp-pdp__sizes-details[open] summary::after { content: "−"; }

.mp-pdp__sizes-table-wrap {
  padding: 0 0 1.25rem;
  overflow-x: auto;
}
.mp-pdp__sizes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: var(--mp-ink);
}
.mp-pdp__sizes-table th,
.mp-pdp__sizes-table td {
  padding: 0.7rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--mp-grey-100);
}
.mp-pdp__sizes-table thead th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mp-grey-600);
  border-bottom-color: var(--mp-ink);
}
.mp-pdp__sizes-table tbody th {
  font-weight: 600;
  background: var(--mp-grey-50);
}

.mp-pdp__sizes-howto {
  list-style: none;
  margin: 0;
  padding: 0 0 1.25rem;
  font-size: 14px;
  color: var(--mp-ink);
}
.mp-pdp__sizes-howto li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--mp-grey-100);
}
.mp-pdp__sizes-howto li:last-child { border-bottom: 0; }

/* ============================================================
   7) AVIS
   ============================================================ */
.mp-pdp__reviews .commentlist,
.mp-pdp__reviews #comments {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mp-pdp__reviews .commentlist li {
  border-top: 1px solid var(--mp-grey-100);
  padding: 1.25rem 0;
}
.mp-pdp__reviews .commentlist li:first-child { border-top: 0; }
.mp-pdp__reviews .star-rating { font-size: 12px; }

.mp-pdp__empty {
  font-size: 14px;
  color: var(--mp-grey-600);
  margin: 0;
}

/* ============================================================
   8) CROSS-SELL & RECENTLY VIEWED
   ============================================================ */
.mp-pdp__cross-grid,
.mp-pdp__recent .products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.5rem;
  list-style: none;
  margin: 0 !important;
  padding: 0;
}
@media (max-width: 880px) {
  .mp-pdp__cross-grid,
  .mp-pdp__recent .products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

.mp-pdp__cross-grid li.product,
.mp-pdp__recent .products li.product {
  margin: 0 !important;
  width: 100% !important;
  padding: 0 !important;
  text-align: left !important;
  background: transparent !important;
  list-style: none;
  float: none !important;
}

.mp-pdp__cross-grid li.product img,
.mp-pdp__recent .products li.product img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--mp-grey-50);
  margin: 0 !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mp-pdp__cross-grid li.product:hover img,
.mp-pdp__recent .products li.product:hover img {
  transform: scale(1.02);
}

.mp-pdp__cross-grid .woocommerce-loop-product__title,
.mp-pdp__recent .products .woocommerce-loop-product__title {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--mp-ink) !important;
  padding: 0.65rem 0 0.15rem !important;
  margin: 0 !important;
  letter-spacing: 0;
}

.mp-pdp__cross-grid .price,
.mp-pdp__recent .products .price {
  font-size: 13px !important;
  color: var(--mp-grey-600) !important;
  font-weight: 400 !important;
  margin: 0 !important;
}

.mp-pdp__cross-grid li.product .button,
.mp-pdp__recent .products li.product .button,
.mp-pdp__cross-grid li.product .added_to_cart,
.mp-pdp__recent .products li.product .added_to_cart {
  display: none !important;
}

.mp-pdp__cross-grid a,
.mp-pdp__recent .products a {
  text-decoration: none;
}

/* ============================================================
   9) STICKY ATC MOBILE
   ============================================================ */
.mp-pdp__sticky-atc {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--mp-white);
  border-top: 1px solid var(--mp-grey-100);
  z-index: 50;
  padding: 0.75rem 1rem;
  box-shadow: 0 -4px 20px rgba(17, 17, 17, 0.06);
}
.mp-pdp__sticky-atc[hidden] { display: none; }
.mp-pdp__sticky-atc-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}
.mp-pdp__sticky-atc-price {
  font-size: 16px;
  font-weight: 600;
  color: var(--mp-ink);
}
.mp-pdp__sticky-atc-price del { color: var(--mp-grey-400); font-weight: 400; }
.mp-pdp__sticky-atc-price ins { text-decoration: none; }
.mp-pdp__sticky-atc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 44px;
  padding: 0 1.5rem;
  background: var(--mp-ink);
  color: var(--mp-white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.mp-pdp__sticky-atc-btn:hover {
  background: var(--mp-red);
  color: var(--mp-white);
}

@media (min-width: 881px) {
  .mp-pdp__sticky-atc { display: none !important; }
}

/* ============================================================
   10) MENTION LÉGALE (footer PDP)
   ============================================================ */
.mp-pdp__legal {
  max-width: 1320px;
  margin: 2rem auto 0;
  padding: 1.5rem 2rem;
  font-size: 12px;
  color: var(--mp-grey-400);
  text-align: center;
  border-top: 1px solid var(--mp-grey-100);
  letter-spacing: 0.02em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .mp-pdp__hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .mp-pdp__buy {
    position: static;
  }
  .mp-pdp__section-inner {
    padding: 3rem 1.25rem;
  }
  .mp-pdp__hero {
    padding: 1.5rem 1.25rem 2.5rem;
  }
  .mp-pdp__breadcrumb-inner,
  .mp-pdp__tabs-inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .mp-pdp__tabs-list {
    gap: 1.25rem;
  }
  .mp-pdp__tabs {
    top: 56px;
  }
  /* Marge bas pour ne pas cacher contenu derrière sticky ATC mobile */
  .mp-pdp {
    padding-bottom: 6.5rem;
  }
}

@media (max-width: 600px) {
  .mp-pdp__title,
  .mp-pdp .product_title { font-size: 24px; }
  .mp-pdp__section-title { font-size: 16px; margin-bottom: 1.5rem; }
}

/* ============================================================
   A11Y
   ============================================================ */
.mp-pdp a:focus-visible,
.mp-pdp button:focus-visible,
.mp-pdp summary:focus-visible {
  outline: 2px solid var(--mp-red);
  outline-offset: 2px;
}
