/* ==========================================================================
   PAGE BOUTIQUE & FICHE PRODUIT — FEUILLE DE STYLE DÉDIÉE
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO SECTION (Cohérence avec page contact)
   -------------------------------------------------------------------------- */
.shop-hero {
  background: radial-gradient(circle at 15% 30%, rgba(83, 183, 48, 0.18) 0%, transparent 60%), var(--color-primary);
  padding: 120px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.shop-hero-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.shop-hero-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 54px;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 24px 0;
}

.shop-hero-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--color-sectors-desc); /* Bleu-gris #668AA4 */
  line-height: 1.6;
  margin: 0;
}

/* --------------------------------------------------------------------------
   2. SECTION BOUTIQUE (Filtres, Recherche, Grille)
   -------------------------------------------------------------------------- */
.shop-section {
  padding: 80px 24px;
  background-color: var(--bg-white);
}

.shop-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Barre de filtres et Recherche */
.shop-filters-row {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

@media (min-width: 992px) {
  .shop-filters-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* Recherche */
.search-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-sectors-desc);
  background: var(--bg-white);
  max-width: 400px;
  width: 100%;
}

.search-box input {
  border: none;
  background: transparent;
  height: 54px;
  padding: 0 16px;
  font-family: var(--font-family);
  font-size: 16px;
  color: var(--color-primary);
  width: 100%;
  outline: none;
}

.search-box button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0 16px;
  color: var(--color-sectors-desc);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-box button svg {
  width: 20px;
  height: 20px;
}

/* Onglets de Catégories */
.categories-filter {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.category-btn {
  background: #F1F5F9;
  border: none;
  padding: 12px 20px;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-normal);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  border-radius: 0; /* Style industriel */
}

.category-btn:hover {
  background: #E2E8F0;
}

.category-btn.active {
  background: var(--color-primary);
  color: var(--text-white);
}

/* Statut et décompte */
.shop-status-row {
  margin-bottom: 24px;
  font-family: var(--font-family);
  font-size: 15px;
  color: var(--text-muted);
}

/* Grille de Produits (4 colonnes) */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 576px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Cartes Produits */
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border: 1px solid #E2E8F0;
  transition: all var(--transition-normal);
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-sectors-desc);
}

.product-card-image-wrap {
  position: relative;
  display: block;
  width: 100%;
  height: 220px;
  background-color: #F8FAFC;
  overflow: hidden;
  border-bottom: 1px solid #E2E8F0;
}

.product-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* padding: 16px; */
  transition: transform var(--transition-normal);
}

.product-card:hover .product-card-image-wrap img {
  transform: scale(1.05);
}

.product-card-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(2, 24, 43, 0.95);
  color: var(--text-white);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.product-card-title a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.product-card-title a:hover {
  color: var(--color-accent);
}

.product-card-desc {
  font-size: 14px;
  color: var(--text-normal);
  line-height: 1.5;
  margin: 0 0 20px 0;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Actions des cartes */
.product-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-card-view, .btn-card-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border-radius: 0;
}

.btn-card-view {
  background: var(--bg-white);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn-card-view:hover {
  background: var(--color-primary);
  color: var(--text-white);
}

.btn-card-order {
  background: var(--color-partners-green); /* Vert WhatsApp officiel */
  color: var(--text-white);
  border: none;
}

.btn-card-order:hover {
  background: #439a25;
  transform: translateY(-1px);
}

.wa-icon {
  width: 16px;
  height: 16px;
}

/* Pagination */
.pagination-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 50px;
}

.page-num, .page-arrow {
  background: var(--bg-white);
  border: 1px solid #CBD5E1;
  color: var(--text-normal);
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 600;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  border-radius: 0;
}

.page-num:hover, .page-arrow:hover:not(:disabled) {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: #F8FAFC;
}

.page-num.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--text-white);
}

.page-arrow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* États vides/erreurs */
.shop-empty-state, .shop-error-message {
  text-align: center;
  padding: 60px 24px;
  grid-column: 1 / -1;
  background: #F8FAFC;
  border: 1px dashed var(--color-sectors-desc);
}

.shop-empty-state h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.shop-empty-state p {
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   3. DETAIL DE LA FICHE PRODUIT
   -------------------------------------------------------------------------- */

/* Fil d'ariane */
.breadcrumb-container {
  background-color: #F8FAFC;
  padding: 16px 24px;
  border-bottom: 1px solid #E2E8F0;
}

.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  font-family: var(--font-family);
  font-size: 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb .separator {
  color: var(--text-light);
}

.breadcrumb .current-item {
  color: var(--color-primary);
  font-weight: 600;
}

/* Structure détails */
.product-detail-section {
  padding: 80px 24px;
}

.detail-container {
  max-width: 1200px;
  margin: 0 auto;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
}

@media (min-width: 992px) {
  .product-detail-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Colonne Image */
.detail-image-col {
  display: flex;
  flex-direction: column;
}

.detail-image-card {
  position: relative;
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  height: 100%;
}

.detail-image-card img {
  max-width: 100%;
  max-height: 450px;
  object-fit: contain;
  padding: 30px;
}

.detail-category-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--color-primary);
  color: var(--text-white);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Colonne Info */
.detail-info-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-product-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 10px 0;
  letter-spacing: -0.02em;
}

.detail-category-label {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.detail-category-label strong {
  color: var(--color-primary);
}

.section-sub-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-primary);
}

.detail-desc-paragraph {
  font-size: 16px;
  color: var(--text-normal);
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Tableau de Spécifications */
.specs-table-wrap {
  margin-bottom: 40px;
}

.specs-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-primary);
  border-bottom: 2px solid #E2E8F0;
  padding-bottom: 8px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-family);
  font-size: 14px;
}

.specs-table tr {
  border-bottom: 1px solid #F1F5F9;
}

.specs-table td {
  padding: 12px 8px;
}

.spec-label {
  font-weight: 700;
  color: var(--text-dark);
  width: 40%;
}

.spec-value {
  color: var(--text-normal);
}

/* Bouton Commander WhatsApp */
.btn-detail-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 66px;
  padding: 0 40px;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 700;
  background-color: var(--color-partners-green);
  color: var(--text-white);
  text-decoration: none;
  border-radius: 0;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(83, 183, 48, 0.4);
}

.btn-detail-order:hover {
  background-color: #439a25;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(83, 183, 48, 0.5);
}

.wa-icon-large {
  width: 24px;
  height: 24px;
}

/* --------------------------------------------------------------------------
   4. SECTION PRODUITS SIMILAIRES (8 cartes, 4 colonnes, 2 lignes)
   -------------------------------------------------------------------------- */
.similar-products-section {
  padding: 80px 24px;
  background-color: #F8FAFC;
  border-top: 1px solid #E2E8F0;
}

.similar-container {
  max-width: 1200px;
  margin: 0 auto;
}

.similar-header {
  text-align: center;
  margin-bottom: 50px;
}

.similar-section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.similar-section-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Grille de 8 cartes */
.similar-products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 576px) {
  .similar-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .similar-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .similar-products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
