/* ===== STYLES SPÉCIFIQUES À LA BOUTIQUE ===== */

.boutique-header {
  text-align: center;
  margin: 3rem 0 2rem;
}

.boutique-header h1 {
  font-size: 2.8rem;
  color: var(--texte-fonce);
  margin-bottom: 0.5rem;
}

.boutique-header p {
  color: var(--texte-moyen);
  font-size: 1.2rem;
}

.boutique-header i {
  color: var(--violet-soutenu);
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Catégories */
.categories {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.category-btn {
  background: var(--gris-fond);
  border: 2px solid transparent;
  padding: 0.8rem 1.8rem;
  border-radius: 60px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
  color: var(--texte-fonce);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
}

.category-btn:hover {
  background: var(--violet-lavande);
}

.category-btn.active {
  background: var(--violet-soutenu);
  color: white;
  border-color: var(--violet-soutenu);
}

/* Grille des produits */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.product-card {
  background: white;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: var(--ombre-elegante);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 50px -12px rgba(179,155,200,0.4);
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--violet-soutenu);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}

.product-badge.nouveau {
  background: var(--vert-succes);
}

.product-badge.promo {
  background: var(--orange);
}

.product-image {
  height: 250px;
  background: linear-gradient(145deg, var(--rose-poudre), var(--violet-lavande));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-image i {
  font-size: 5rem;
  color: var(--violet-soutenu);
  opacity: 0.8;
}

.product-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(to top, rgba(255,255,255,0.8), transparent);
}

.product-info {
  padding: 1.5rem;
}

.product-category {
  color: var(--violet-soutenu);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.product-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--texte-fonce);
}

.product-description {
  color: var(--texte-moyen);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--violet-soutenu);
}

.product-price small {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--texte-moyen);
  text-decoration: line-through;
  margin-left: 0.5rem;
}

.btn-add {
  background: var(--violet-lavande);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  color: var(--texte-fonce);
  font-size: 1.2rem;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-add:hover {
  background: var(--violet-soutenu);
  color: white;
  transform: scale(1.1);
}

/* Panier flottant */
.cart-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--violet-soutenu);
  color: white;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 10px 25px rgba(179,155,200,0.5);
  cursor: pointer;
  transition: 0.3s;
  z-index: 100;
  border: 3px solid white;
}

.cart-float:hover {
  transform: scale(1.1);
  background: #a185bc;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--rouge-erreur);
  color: white;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  border: 2px solid white;
}

/* Message d'ajout */
.add-message {
  position: fixed;
  bottom: 120px;
  right: 30px;
  background: var(--vert-succes);
  color: white;
  padding: 1rem 2rem;
  border-radius: 60px;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  animation: slideIn 0.3s ease;
  z-index: 99;
  display: none;
}

@keyframes slideIn {
  from {
    transform: translateX(100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ===== MODAL PANIER ===== */
.cart-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.cart-modal-overlay.active {
  display: flex;
}

.cart-modal-content {
  background: white;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 50px;
  padding: 2rem;
  position: relative;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cart-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--violet-lavande);
}

.cart-modal-header h2 {
  font-size: 1.5rem;
  color: var(--violet-soutenu);
}

.cart-modal-header h2 i {
  margin-right: 0.5rem;
}

.cart-modal-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--texte-moyen);
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.cart-modal-close:hover {
  background: var(--gris-fond);
  transform: rotate(90deg);
}

.cart-empty {
  text-align: center;
  padding: 3rem;
  color: var(--texte-moyen);
}

.cart-empty i {
  font-size: 4rem;
  color: var(--violet-lavande);
  margin-bottom: 1rem;
}

/* Articles du panier */
.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--violet-lavande);
}

.cart-item-image {
  width: 60px;
  height: 60px;
  background: var(--gris-fond);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--violet-soutenu);
  font-size: 1.5rem;
}

.cart-item-details {
  flex: 1;
}

.cart-item-title {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.cart-item-price {
  color: var(--violet-soutenu);
  font-weight: 600;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quantity-btn {
  background: var(--gris-fond);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
  font-weight: 600;
}

.quantity-btn:hover {
  background: var(--violet-lavande);
}

.quantity-number {
  min-width: 30px;
  text-align: center;
  font-weight: 600;
}

.cart-item-remove {
  color: var(--rouge-erreur);
  cursor: pointer;
  font-size: 1.2rem;
  transition: 0.3s;
}

.cart-item-remove:hover {
  transform: scale(1.2);
}

/* Footer du panier */
.cart-modal-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 2px solid var(--violet-lavande);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.cart-total-price {
  color: var(--violet-soutenu);
  font-size: 1.5rem;
}

/* Formulaire de commande */
.checkout-form {
  margin-top: 1.5rem;
}

.checkout-form h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--texte-fonce);
}

.checkout-form .form-group {
  margin-bottom: 1rem;
}

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  padding: 0.8rem 1.2rem;
  border: 2px solid var(--violet-lavande);
  border-radius: 60px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  transition: 0.3s;
}

.checkout-form input:focus,
.checkout-form textarea:focus {
  outline: none;
  border-color: var(--violet-soutenu);
  box-shadow: 0 0 0 4px rgba(179,155,200,0.2);
}

.checkout-form textarea {
  border-radius: 30px;
  min-height: 80px;
  resize: vertical;
}

.btn-checkout {
  width: 100%;
  background: var(--violet-soutenu);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 60px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 1rem;
}

.btn-checkout:hover {
  background: #a185bc;
  transform: translateY(-3px);
}

/* Message de confirmation de commande */
.order-success {
  text-align: center;
  padding: 2rem;
}

.order-success i {
  font-size: 4rem;
  color: var(--vert-succes);
  margin-bottom: 1rem;
}

.order-success h3 {
  color: var(--texte-fonce);
  margin-bottom: 0.5rem;
}

.order-success p {
  color: var(--texte-moyen);
}

/* Responsive */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
  }
  
  .boutique-header h1 {
    font-size: 2.2rem;
  }
  
  .cart-float {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    bottom: 20px;
    right: 20px;
  }
  
  .add-message {
    bottom: 100px;
    right: 20px;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .cart-modal-content {
    width: 95%;
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .boutique-header {
    margin: 2rem 0 1.5rem;
  }

  .boutique-header h1 {
    font-size: 1.8rem;
  }

  .boutique-header p {
    font-size: 1rem;
  }

  .categories {
    gap: 0.6rem;
  }

  .category-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .product-image {
    height: 200px;
  }

  .cart-float {
    width: 54px;
    height: 54px;
    font-size: 1.3rem;
    bottom: 16px;
    right: 16px;
  }

  .add-message {
    left: 16px;
    right: 16px;
    bottom: 85px;
    text-align: center;
  }

  .cart-modal-content {
    padding: 1.2rem;
    border-radius: 30px;
  }

  .cart-item {
    flex-wrap: wrap;
  }

  .cart-item-quantity {
    margin-left: auto;
  }
}

/* ===== MODAL PRODUIT AVEC GALERIE ===== */
.product-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.product-modal-overlay.active {
  display: flex;
}

.product-modal-content {
  background: white;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 40px;
  padding: 2rem;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.product-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gris-fond);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: 0.3s;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-modal-close:hover {
  background: var(--violet-lavande);
  transform: rotate(90deg);
}

.product-modal-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-image {
  background: var(--gris-fond);
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail-list {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.3s;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail.active {
  border-color: var(--violet-soutenu);
  transform: scale(1.05);
}

.product-modal-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-modal-info h2 {
  font-size: 1.8rem;
  color: var(--texte-fonce);
}

.product-modal-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--violet-soutenu);
}

.product-modal-price small {
  font-size: 1rem;
  color: var(--texte-moyen);
  text-decoration: line-through;
  margin-left: 0.5rem;
}

.product-modal-info p {
  color: var(--texte-moyen);
  line-height: 1.6;
}

.btn-add-cart {
  background: var(--violet-soutenu);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 60px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 1rem;
}

.btn-add-cart:hover {
  background: #a185bc;
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
  .product-modal-content {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
  
  .thumbnail {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .product-modal-content {
    padding: 1.2rem;
    border-radius: 25px;
  }

  .product-modal-info h2 {
    font-size: 1.4rem;
  }

  .product-modal-price {
    font-size: 1.4rem;
  }

  .thumbnail {
    width: 50px;
    height: 50px;
  }
}