/* ============================================================
   RBC Créations — Page Boutique / Nos Créations
   Style prêt-à-porter e-commerce
   ============================================================ */

/* --- Header boutique --- */
.shop-header {
  padding: 100px 1.5rem 3rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  text-align: center;
}
.shop-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.shop-header p {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 550px;
  margin: 0 auto;
}

/* --- Barre de filtres + tri --- */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}
.shop-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.shop-filter-btn {
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--gray-200);
  border-radius: 50px;
  background: var(--white);
  color: var(--gray-600);
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.shop-filter-btn:hover,
.shop-filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(59,130,246,0.05);
}
.shop-filter-btn .count {
  background: var(--gray-100);
  color: var(--gray-500);
  font-size: 0.75rem;
  padding: 1px 8px;
  border-radius: 50px;
  font-weight: 600;
}
.shop-filter-btn.active .count {
  background: rgba(59,130,246,0.1);
  color: var(--accent);
}

/* --- Filtres Genre --- */
.shop-genre-filters {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  width: 100%;
  padding-top: 0.25rem;
}
.shop-genre-btn {
  padding: 0.4rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 50px;
  background: var(--white);
  color: var(--gray-500);
  font-weight: 500;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.shop-genre-btn i {
  font-size: 0.75rem;
}
.shop-genre-btn:hover,
.shop-genre-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(139,92,246,0.06);
}

.shop-sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.shop-sort label {
  font-size: 0.85rem;
  color: var(--gray-500);
  white-space: nowrap;
}
.shop-sort select {
  padding: 0.5rem 0.75rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--gray-700);
  background: var(--white);
  cursor: pointer;
}
.shop-results-count {
  font-size: 0.85rem;
  color: var(--gray-400);
  width: 100%;
}

/* --- Grille produits --- */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

/* --- Carte produit boutique --- */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

/* Badges */
.product-card .badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 3;
}
.badge-new {
  background: var(--accent);
  color: var(--white);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-promo {
  background: #ef4444;
  color: var(--white);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
}
.badge-rupture {
  background: var(--gray-600);
  color: var(--white);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
}
.badge-genre {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  background: rgba(255,255,255,0.92);
  color: var(--gray-600);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

/* Wishlist button */
.product-wish {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  z-index: 3;
  color: var(--gray-400);
  font-size: 1rem;
}
.product-wish:hover {
  color: #ef4444;
  transform: scale(1.1);
}
.product-wish.liked {
  color: #ef4444;
}

/* Image */
.product-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--gray-100);
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-card-img img {
  transform: scale(1.05);
}
/* Seconde image en hover */
.product-card-img .img-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.product-card:hover .product-card-img .img-hover {
  opacity: 1;
}

/* Quick actions overlay */
.product-card-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.product-card:hover .product-card-actions {
  transform: translateY(0);
}
.quick-action-btn {
  padding: 0.5rem 1rem;
  border-radius: 50px;
  border: none;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.quick-view-btn {
  background: var(--white);
  color: var(--gray-800);
}
.quick-view-btn:hover {
  background: var(--gray-100);
}
.quick-buy-btn {
  background: var(--accent);
  color: var(--white);
}
.quick-buy-btn:hover {
  background: var(--primary);
}

/* Infos sous image */
.product-card-info {
  padding: 1rem 1.25rem 1.25rem;
}
.product-card-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.product-card-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}
.product-card-desc {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.product-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-card-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
}
.product-card-price .old-price {
  font-size: 0.85rem;
  color: var(--gray-400);
  text-decoration: line-through;
  font-weight: 400;
  margin-left: 0.35rem;
}
.product-card-colors {
  display: flex;
  gap: 4px;
}
.product-card-color-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-200);
}

/* --- Modal produit détail --- */
.product-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.product-modal-overlay.active {
  display: flex;
}
.product-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 950px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.3s ease;
}
.product-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gray-100);
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--gray-500);
}
.product-modal-close:hover {
  background: var(--gray-200);
  color: var(--gray-800);
}
.product-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}
@media (max-width: 768px) {
  .product-modal-grid {
    grid-template-columns: 1fr;
  }
}

/* Modal image gallery */
.modal-gallery {
  position: relative;
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  overflow: hidden;
}
.modal-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--gray-500);
}
.modal-gallery-nav:hover {
  background: var(--accent);
  color: var(--white);
}
.modal-gallery-prev { left: 0.75rem; }
.modal-gallery-next { right: 0.75rem; }
.modal-gallery-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.modal-gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition);
}
.modal-gallery-dot.active {
  background: var(--white);
  width: 20px;
  border-radius: 4px;
}

/* Modal détails */
.modal-details {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.modal-category {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  font-weight: 700;
}
.modal-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0.5rem 0;
}
.modal-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.modal-current-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gray-900);
}
.modal-old-price {
  font-size: 1.1rem;
  color: var(--gray-400);
  text-decoration: line-through;
}
.modal-discount {
  font-size: 0.8rem;
  background: #fef2f2;
  color: #ef4444;
  padding: 2px 10px;
  border-radius: 50px;
  font-weight: 600;
}
.modal-description {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.modal-section-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
}

/* Couleurs modal */
.modal-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.modal-color-chip {
  padding: 0.35rem 0.75rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--gray-600);
  cursor: pointer;
  transition: var(--transition);
}
.modal-color-chip:hover,
.modal-color-chip.selected {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(59,130,246,0.05);
}

/* Tailles modal */
.modal-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.modal-size-chip {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: var(--transition);
}
.modal-size-chip:hover,
.modal-size-chip.selected {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(59,130,246,0.05);
}

/* Quantité modal */
.modal-qty-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Détails/caractéristiques */
.modal-features {
  list-style: none;
  margin-bottom: 1.25rem;
}
.modal-features li {
  padding: 0.35rem 0;
  font-size: 0.85rem;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.modal-features li i {
  color: var(--success);
  font-size: 0.75rem;
}

/* Tags */
.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.modal-tag {
  background: var(--gray-100);
  color: var(--gray-500);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
}

/* Actions modal */
.modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
}
.modal-add-cart {
  flex: 1;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius);
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--primary-light));
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.modal-add-cart:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.modal-add-cart:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.modal-customize-btn {
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid var(--accent);
  background: var(--white);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.modal-customize-btn:hover {
  background: rgba(59,130,246,0.05);
}

/* Stock indicator */
.stock-indicator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}
.stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.stock-dot.in-stock { background: var(--success); }
.stock-dot.out-stock { background: #ef4444; }
.stock-text.in-stock { color: var(--success); font-weight: 600; }
.stock-text.out-stock { color: #ef4444; font-weight: 600; }

/* --- Section vedette --- */
.featured-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  color: var(--white);
  margin-bottom: 3rem;
  overflow: hidden;
  position: relative;
}
@media (max-width: 768px) {
  .featured-banner { grid-template-columns: 1fr; padding: 2rem; }
}
.featured-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.featured-info h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.featured-info p {
  opacity: 0.85;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.featured-images {
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.featured-images img {
  width: 200px;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* --- Pagination --- */
.shop-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}
.page-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--gray-600);
  transition: var(--transition);
}
.page-btn:hover,
.page-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(59,130,246,0.05);
}