/* =========================================================
   CATALOGUE.CSS - Page catalogue uniquement
   ========================================================= */

.catalogue-page {
  padding: 40px 0 80px;
  min-height: 70vh;
}

.catalogue-header {
  margin-bottom: 32px;
  text-align: center;
}

.catalogue-title {
  font-size: 42px;
  font-weight: 900;
  margin: 0 0 8px;
  background: linear-gradient(135deg, #0F51AF, #0B2F7A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.catalogue-subtitle {
  font-size: 16px;
  font-weight: 700;
  color: #5A677B;
  margin: 0;
}

/* =========================
   FILTERS BAR
   ========================= */
.filters-bar {
  background: #FFFFFF;
  border: 1px solid rgba(12, 18, 32, 0.10);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 40px;
  box-shadow: 0 18px 55px rgba(12, 18, 32, 0.10);
}

.filters-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

.filter-search {
  flex: 2;
  min-width: 280px;
}

.filter-input,
.filter-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(12, 18, 32, 0.10);
  border-radius: 14px;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  background: #FFFFFF;
}

.filter-input:focus,
.filter-select:focus {
  outline: none;
  border-color: #0F51AF;
  box-shadow: 0 0 0 4px rgba(15, 81, 175, 0.1);
}

/* =========================
   PRODUCTS GRID
   ========================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: #FFFFFF;
  border: 1px solid rgba(12, 18, 32, 0.10);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 18px 55px rgba(12, 18, 32, 0.10);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 64px rgba(12, 18, 32, 0.16);
}

/* =========================
   PRODUCT CARD IMAGE
   ========================= */
.product-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: rgba(15, 81, 175, 0.04);
}

.product-card-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.08);
}

/* =========================
   BADGES
   ========================= */
.product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
}

.product-card .badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.3px;
  backdrop-filter: blur(10px);
}

.badge-new {
  background: rgba(16, 185, 129, 0.92);
  color: #fff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.badge-promo {
  background: rgba(220, 38, 38, 0.92);
  color: #fff;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3);
}

/* =========================
   PRODUCT CARD BODY
   ========================= */
.product-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-name {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 900;
  text-transform: capitalize;
  line-height: 1.4;
}

.product-card-name a {
  color: #0C1220;
  text-decoration: none;
  transition: color 0.2s ease;
}

.product-card-name a:hover {
  color: #0F51AF;
}

/* =========================
   PRICE
   ========================= */
.product-card-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.price-current {
  font-size: 20px;
  font-weight: 900;
  color: #0F51AF;
}

.price-old {
  font-size: 14px;
  font-weight: 700;
  color: #5A677B;
  text-decoration: line-through;
}

/* =========================
   STOCK
   ========================= */
.product-card-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
  width: fit-content;
}

.product-card-stock.in-stock {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
}

.product-card-stock.out-stock {
  background: rgba(220, 38, 38, 0.08);
  color: #DC2626;
}

/* =========================
   ACTIONS
   ========================= */
.product-card-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

/* =========================
   EMPTY STATE
   ========================= */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}

.empty-icon {
  font-size: 80px;
  color: #5A677B;
  margin-bottom: 24px;
  opacity: 0.5;
}

.empty-title {
  font-size: 28px;
  font-weight: 900;
  margin: 0 0 12px;
  color: #0C1220;
}

.empty-text {
  font-size: 16px;
  font-weight: 700;
  color: #5A677B;
  margin: 0 0 32px;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 768px) {
  .catalogue-title {
    font-size: 32px;
  }
  
  .filters-form {
    flex-direction: column;
  }
  
  .filter-group,
  .filter-search {
    width: 100%;
    min-width: 100%;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }
  
  .product-card-body {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .catalogue-page {
    padding: 24px 0 60px;
  }
  
  .catalogue-title {
    font-size: 28px;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
}