/* Police moderne */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Montserrat:wght@400;700&display=swap');

/* Modal produit en mode page entière */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  overflow-y: auto;
  overflow-x: hidden;
  font-family: 'Inter', 'Montserrat', Arial, sans-serif;
  animation: modalFadeIn 0.4s cubic-bezier(0.4,0,0.2,1);
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: none; }
}
.modal-content {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  margin: 0 auto;
  max-width: 1200px;
  width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: visible;
}
@media (min-width: 900px) {
  .modal-content {
    flex-direction: row;
    min-height: 100vh;
    align-items: stretch;
  }
}
.modal-left {
  /*background: #fafafa;*/
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  width: 100%;
  max-width: 700px;
  padding: 3rem 2rem 2rem 0.5rem;
  position: relative;
}
.modal-main-image {
  width: 100%;
  max-width: 700px;
  height: 87%;
  object-fit: cover;
  border-radius: 1.2rem;
  background: #f3f3f3;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  margin-bottom: 1.5rem;
  transition: box-shadow 0.2s;
}
.modal-main-image:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.16);
}
.modal-thumbnails {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  justify-content: center;
}
.modal-thumbnail {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 0.7rem;
  border: 2px solid transparent;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: border 0.2s, box-shadow 0.2s, transform 0.2s;
  background: #fff;
}
.modal-thumbnail.active,
.modal-thumbnail:hover {
  border: 2.5px solid #e11d48;
  box-shadow: 0 4px 16px rgba(225,29,72,0.10);
  transform: scale(1.07);
}
.modal-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  width: 100%;
  max-width: 600px;
  padding: 3rem 3rem 2rem 2rem;
}
.close {
  font-size: 2.5rem;
  color: #bbb;
  cursor: pointer;
  margin: 2rem 2rem 0 0;
  align-self: flex-end;
  transition: color 0.2s, background 0.2s;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 10;
  background: none;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.close:hover {
  color: #e11d48;
  background: #f3f3f3;
}
#modalProductTitle {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: #222;
  font-family: 'Montserrat', 'Inter', Arial, sans-serif;
  letter-spacing: -1px;
}
#modalProductPrice {
  color: #e11d48;
  font-size: 2rem;
  font-weight: 700;
  margin-right: 1rem;
}
#modalProductOldPrice {
  color: #bdbdbd;
  font-size: 1.3rem;
  text-decoration: line-through;
  margin-left: 0.5rem;
}
#modalProductStock {
  color: #666;
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
}
/* Sélecteur de quantité moderne */
#modalQtyInput {
  width: 56px;
  height: 48px;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.7rem;
  text-align: center;
  font-size: 1.2rem;
  margin: 0 0.7rem;
  font-weight: 600;
  color: #222;
}
#modalQtyMinus, #modalQtyPlus {
  width: 48px;
  height: 48px;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.7rem;
  background: #fff;
  font-size: 1.7rem;
  color: #222;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
  font-weight: 700;
}
#modalQtyMinus:hover, #modalQtyPlus:hover {
  background: #f3f3f3;
  color: #e11d48;
  border: 1.5px solid #e11d48;
}
#modalAddToCartBtn, #modalSoldOutBtn, #modalViewProductBtn {
  width: 100%;
  padding: 1.1rem 0;
  border-radius: 1.2rem;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  letter-spacing: 0.5px;
  cursor: pointer;
}
#modalAddToCartBtn,
#modalViewProductBtn {
  background: #222;
  color: #fff;
  border: none;
}
#modalAddToCartBtn:hover,
#modalViewProductBtn:hover {
  background: #e11d48;
  color: #fff;
  box-shadow: 0 4px 16px rgba(225,29,72,0.10);
}
#modalSoldOutBtn {
  background: #e5e7eb;
  color: #888;
  border: none;
}
/* PayPal bouton stylé */
#modalPaypalBtn {
  width: 100%;
  background: #ffc439;
  color: #222;
  border-radius: 1.2rem;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 1.1rem 0;
  margin-bottom: 1.1rem;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: background 0.2s, color 0.2s;
}
#modalPaypalBtn img {
  height: 1.7rem;
  margin-right: 0.7rem;
}
#modalPaypalBtn:hover {
  background: #ffe082;
  color: #222;
}
#modalProductDescription {
  color: #444;
  font-size: 1.2rem;
  margin-top: 2rem;
  line-height: 1.8;
  letter-spacing: 0.01em;
  font-family: 'Inter', Arial, sans-serif;
}
@media (max-width: 900px) {
  .modal-content {
    flex-direction: column;
    padding: 0.5rem;
  }
.modal-right {
    padding: 1.5rem;
    max-width: 100vw;
  }
  .modal-main-image {
    height: 70%;
    max-width: 100%;
    object-position: 0 20%;
  }
  .modal-thumbnail {
    width: 44px;
    height: 44px;
  }
  #modalProductTitle {
    font-size: 1.5rem;
  }
  #modalProductPrice {
    font-size: 1.2rem;
  }
  .modal-left {
    align-items: center;
    padding: 1.5rem;
    max-width: 100vw;
    height: fit-content;
  }
}
