/* ======================================
   PRODUCTS LISTING PAGE - MODERN DESIGN
   ====================================== */

/* ============================================
   1. CATEGORY HEADER & DESCRIPTION
   ============================================ */

#js-product-list-header .block-category {
  background: #ffffff;
  border: none;
  border-radius: 16px;
  padding: 37px;
  margin-bottom: 41px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

#js-product-list-header .block-category:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.block-category h1.h1 {
  font-size: 36px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.block-category h1.h1::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primaryllw-color, #FF3200);
  border-radius: 2px;
}

.block-category-inner {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-top: 25px;
}

#category-description {
  flex: 1;
  font-size: 16px;
  line-height: 1.7;
  color: #5a6c7d;
}

.category-cover {
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
}

.category-cover img {
  display: block;
  transition: transform 0.4s ease;
}

.category-cover:hover img {
  transform: scale(1.05);
}

/* ============================================
   2. SUBCATEGORIES
   ============================================ */

#subcategories {
  background: #ffffff;
  border: none;
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.subcategory-heading {
  font-size: 26px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.subcategory-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primaryllw-color, #FF3200);
  border-radius: 2px;
}

.subcategories-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  /* Augmenté de 280px à 320px */
  gap: 30px;
  /* Augmenté de 25px à 30px */
}

.subcategories-list>li {
  background: #f8f9fa;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.subcategories-list>li:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  background: #ffffff;
}

.subcategory-image {
  position: relative;
  overflow: hidden;
  height: 320px;
  /* Augmenté de 200px à 320px pour images plus grandes */
  background: #e9ecef;
}

.subcategory-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.subcategories-list>li:hover .subcategory-image img {
  transform: scale(1.1);
}

.subcategories-list h5 {
  padding: 20px 20px 10px;
  margin: 0;
}

.subcategory-name {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s ease;
}

.subcategory-name:hover {
  color: var(--primaryllw-color, #FF3200);
}

.subcategories-list .cat_desc {
  padding: 0 20px 20px;
  font-size: 14px;
  line-height: 1.6;
  color: #6c757d;
}

/* ============================================
   3. FILTERS SIDEBAR (search_filters_wrapper)
   ============================================ */

#search_filters_wrapper {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 20px;
}

#search_filters .text-uppercase.h6 {
  font-size: 20px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--primaryllw-color, #FF3200);
}

/* Filter Sections */
.facet {
  margin-bottom: 30px;
  padding-bottom: 25px;
  border-bottom: 1px solid #e9ecef;
}

.facet:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.facet-title {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.facet ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.facet li {
  margin-bottom: 12px;
}

.facet-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 8px;
  border-radius: 6px;
  margin: 0;
}

.facet-label:hover {
  background: #f8f9fa;
  transform: translateX(3px);
}

/* Custom Checkbox */
.custom-checkbox {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.custom-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.custom-checkbox .ps-shown-by-js {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e0;
  border-radius: 4px;
  background: #ffffff;
  transition: all 0.3s ease;
}

.custom-checkbox input[type="checkbox"]:checked+.ps-shown-by-js {
  background: var(--primaryllw-color, #FF3200);
  border-color: var(--primaryllw-color, #FF3200);
}

.custom-checkbox .checkbox-checked {
  font-size: 16px;
  color: #ffffff;
  display: none;
}

.custom-checkbox input[type="checkbox"]:checked+.ps-shown-by-js .checkbox-checked {
  display: block;
}

/* Color Swatches */
.custom-checkbox .color {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #dee2e6;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.custom-checkbox input[type="checkbox"]:checked+.color {
  border-color: var(--primaryllw-color, #FF3200);
  border-width: 3px;
  box-shadow: 0 0 0 2px rgba(255, 50, 0, 0.2);
}

/* Filter Links */
.search-link {
  flex: 1;
  color: #495057;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.search-link:hover {
  color: var(--primaryllw-color, #FF3200);
}

.magnitude {
  font-size: 12px;
  color: #adb5bd;
  font-weight: 600;
}

/* Price Slider */
.faceted-slider {
  padding: 15px 10px;
}

#facet_label_70238 {
  font-size: 14px;
  font-weight: 600;
  color: var(--primaryllw-color, #FF3200);
  margin-bottom: 15px;
  text-align: center;
}

.ui-slider {
  background: #e9ecef;
  border: none;
  border-radius: 10px;
  height: 6px;
}

.ui-slider-range {
  background: var(--primaryllw-color, #FF3200);
  border-radius: 10px;
}

.ui-slider-handle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--primaryllw-color, #FF3200);
  cursor: pointer;
  top: -7px;
  margin-left: -9px;
  transition: all 0.2s ease;
}

.ui-slider-handle:hover {
  transform: scale(1.2);
  box-shadow: 0 2px 8px rgba(255, 50, 0, 0.3);
}

/* Category Tree Sidebar */
.block-categories {
  background: #ffffff;
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.category-top-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-top-menu>li>a.text-uppercase {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
  padding: 15px;
  margin-bottom: 10px;
  background: #f8f9fa;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.category-top-menu>li>a.text-uppercase:hover {
  background: var(--primaryllw-color, #FF3200);
  color: #ffffff;
  transform: translateX(5px);
}

.category-sub-menu {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

.category-sub-menu li {
  margin-bottom: 8px;
}

.category-sub-menu a {
  display: block;
  padding: 10px 15px;
  color: #495057;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 14px;
}

.category-sub-menu a:hover {
  background: #f8f9fa;
  color: var(--primaryllw-color, #FF3200);
  padding-left: 20px;
}

.category-sub-link {
  position: relative;
  padding-left: 25px !important;
}

.category-sub-link::before {
  content: '→';
  position: absolute;
  left: 10px;
  color: var(--primaryllw-color, #FF3200);
}

/* ============================================
   4. PRODUCTS GRID & CARDS
   ============================================ */

/* Force full width on large screens - Break out of PrestaShop container */
#content-wrapper {
  max-width: none !important;
}

#js-product-list-top,
#js-product-list,
.pagination {
  max-width: 1800px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

@media (min-width: 1200px) {

  #js-product-list-top,
  #js-product-list,
  .pagination {
    padding-left: 30px;
    padding-right: 30px;
  }
}


@media (max-width: 1199px) {
  #products {
    margin-top: 30px;
  }
}

/* Products Top Bar */
#js-product-list-top {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px 30px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.total-products p {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
  line-height: 40px;
}

.sort-by-row {
  display: flex;
  align-items: center;
  gap: 15px;
}

.sort-by {
  font-size: 14px;
  font-weight: 600;
  color: #495057;
  white-space: nowrap;
}

.products-sort-order {
  flex: 1;
}

.products-sort-order .select-title {
  width: 100%;
  padding: 10px 20px;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 14px;
  color: #495057;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.products-sort-order .select-title:hover {
  border-color: var(--primaryllw-color, #FF3200);
  background: #ffffff;
}

.products-sort-order .dropdown-menu {
  width: 100%;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  margin-top: 5px;
}

.products-sort-order .select-list {
  display: block;
  padding: 10px 15px;
  color: #495057;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.products-sort-order .select-list:hover {
  background: #f8f9fa;
  color: var(--primaryllw-color, #FF3200);
  padding-left: 20px;
}

.products-sort-order .select-list.current {
  background: var(--primaryllw-color, #FF3200);
  color: #ffffff;
  font-weight: 600;
}

/* Products Grid - Structure Responsive */
.products.row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin: 0;
  padding: 0;
  width: 100%;
}

/* Très Grand Écran - 4 colonnes */
@media (min-width: 1400px) {
  .products.row {
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
  }
}

/* Grand Écran - 3 colonnes (par défaut maintenu) */
@media (min-width: 992px) and (max-width: 1399px) {
  .products.row {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }
}

/* Tablette - 2 colonnes */
@media (min-width: 768px) and (max-width: 991px) {
  .products.row {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* Mobile Large - 2 colonnes */
@media (min-width: 576px) and (max-width: 767px) {
  .products.row {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

/* Mobile - 1 colonne */
@media (max-width: 575px) {
  .products.row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

.products.row {
  display: grid !important;
}

.js-product {
  padding: 0;
  margin: 0;
  width: 100%;
  min-width: 0;
}

/* Product Card - Redesign Moderne */
.product-miniature {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid #f0f0f0;
}

.product-miniature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(135deg, transparent, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.product-miniature:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  border-color: var(--primaryllw-color, #FF3200);
}

.product-miniature:hover::before {
  opacity: 1;
  background: linear-gradient(135deg, var(--primaryllw-color, #FF3200), #ff6b4a);
}

.thumbnail-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Product Image */
.thumbnail-top {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  aspect-ratio: 1;
}

.thumbnail-top::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.02) 100%);
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.product-miniature:hover .thumbnail-top::after {
  opacity: 0;
}

.product-thumbnail {
  display: block;
  width: 100%;
  height: 100%;
}

.product-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(1);
}

.product-miniature:hover .product-thumbnail img {
  transform: scale(1.08);
  filter: brightness(1.05);
}

/* Product Flags */
.product-flags {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-flag {
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 20px;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.product-flag::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.product-miniature:hover .product-flag::before {
  left: 100%;
}

.product-flag.on-sale {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: #ffffff;
}

.product-flag.online-only {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: #ffffff;
}

.product-flag.new {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  color: #ffffff;
}

.product-flag.pack {
  background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
  color: #ffffff;
}

.product-flag.discount {
  background: linear-gradient(135deg, var(--primaryllw-color, #FF3200) 0%, #e02900 100%);
  color: #ffffff;
}

/* Quick View & Variants */
.highlighted-informations {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
  padding: 25px 20px 20px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(5px);
}

.product-miniature:hover .highlighted-informations {
  transform: translateY(0);
}

.quick-view {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: #ffffff;
  color: #2c3e50;
  text-decoration: none;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.quick-view::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: #ffffff;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  z-index: -1;
}

.quick-view:hover {
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(255, 50, 0, 0.4);
}

.quick-view:hover::before {
  width: 300px;
  height: 300px;
}

.quick-view .material-icons {
  font-size: 18px;
}

/* Variant Links (Colors) */
.variant-links {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.variant-links .color {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3), inset 0 1px 3px rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.variant-links .color::after {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  border: 2px solid var(--primaryllw-color, #FF3200);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.variant-links .color:hover {
  transform: scale(1.15);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4), inset 0 1px 3px rgba(255, 255, 255, 0.5);
}

.variant-links .color:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* Product Description */
.product-description {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
}

.product-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.5;
  min-height: 34px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-title a {
  color: #2c3e50;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline;
  /* background: linear-gradient(to right, var(--primaryllw-color, #FF3200) 0%, var(--primaryllw-color, #FF3200) 100%); */
  background-size: 0 2px;
  /* font-size: 1rem; */
  background-repeat: no-repeat;
  background-position: left bottom;
}

.product-miniature:hover .product-title a {
  color: var(--primaryllw-color, #FF3200);
  background-size: 100% 2px;
}

/* Product Price */
.product-price-and-shipping {
  margin: auto 0 15px 0;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
}

.product-price-and-shipping .price {
  font-size: 26px;
  font-weight: 800;
  color: var(--primaryllw-color, #FF3200);
  letter-spacing: -0.5px;
  display: inline-block;
  position: relative;
  /* text-decoration: none !important; */
}

.product-price-and-shipping .price::after {
  content: '';
  /* position: absolute; */
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primaryllw-color, #FF3200);
  transition: width 0.3s ease;
}

.product-miniature:hover .product-price-and-shipping .price::after {
  width: 100%;
}

/* Product Reviews */
.product-list-reviews {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.grade-stars {
  display: flex;
  gap: 3px;
}

.grade-stars::before {
  content: '★★★★★';
  letter-spacing: 3px;
  background: linear-gradient(90deg, #ffc107 0%, #ffc107 60%, #e0e0e0 60%, #e0e0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 14px;
}

.comments-nb {
  font-size: 11px;
  color: #95a5a6;
  font-weight: 600;
  background: #f8f9fa;
  padding: 3px 8px;
  border-radius: 10px;
}

/* Add to Cart Button */
.product-add-to-cart {
  margin-top: 15px;
}

.add-to-cart-form {
  width: 100%;
}

.btn-add-to-cart {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 21px;
  background: linear-gradient(135deg, var(--primaryllw-color, #FF3200) 0%, #e02900 100%);
  color: #ffffff;
  border: none;
  border-radius: 0 0 10px 10px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(255, 50, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-add-to-cart::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-add-to-cart:hover {
  /* transform: translateY(-3px); */
  /* box-shadow: 0 8px 25px rgba(255, 50, 0, 0.4); */
  /* background: linear-gradient(135deg, #e02900 0%, #c02400 100%); */
}

.btn-add-to-cart:hover::before {
  width: 300px;
  height: 300px;
}

.btn-add-to-cart:active {
  /* transform: translateY(-1px); */
  /* box-shadow: 0 4px 15px rgba(255, 50, 0, 0.3); */
}

.btn-add-to-cart .material-icons {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.btn-add-to-cart:hover .material-icons {
  transform: scale(1.1) rotate(5deg);
}

.btn-add-to-cart span {
  position: relative;
  z-index: 1;
}

/* Animation d'ajout au panier réussi */
@keyframes cartSuccess {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.95);
  }

  100% {
    transform: scale(1);
  }
}

.btn-add-to-cart.adding {
  pointer-events: none;
  opacity: 0.7;
}

.btn-add-to-cart.added {
  animation: cartSuccess 0.6s ease;
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.btn-add-to-cart.added .material-icons {
  content: 'check_circle';
}

/* ============================================
   5. PAGINATION
   ============================================ */

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border-radius: 12px;
  padding: 25px 40px;
  margin-top: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.pagination .col-md-4 {
  font-size: 14px;
  color: #6c757d;
  font-weight: 500;
}

.page-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.page-list li a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 45px;
  height: 45px;
  padding: 0 15px;
  background: #f8f9fa;
  color: #495057;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.page-list li a:hover {
  background: #ffffff;
  color: var(--primaryllw-color, #FF3200);
  border-color: var(--primaryllw-color, #FF3200);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 50, 0, 0.2);
}

.page-list li.current a {
  background: var(--primaryllw-color, #FF3200);
  color: var(--primaryllw-color);
  border-color: var(--primaryllw-color, #FF3200);
  cursor: default;
  box-shadow: 0 4px 15px rgb(255 50 0 / 76%);
}

.page-list li.current a:hover {
  transform: none;
}

.page-list li a.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #e9ecef00;
}


.page-list li a.next,
.page-list li a.previous {
  gap: 5px;
}

.page-list .material-icons {
  font-size: 18px;
}

/* ============================================
   6. RESPONSIVE DESIGN
   ============================================ */

/* Tablet Large (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .block-category-inner {
    flex-direction: column;
  }

  .category-cover {
    align-self: center;
  }

  #js-product-list-header .block-category {
    padding: 30px;
  }

  #subcategories {
    padding: 30px;
  }

  .subcategories-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  #js-product-list-header .block-category {
    padding: 25px;
  }

  .block-category h1.h1 {
    font-size: 30px;
  }

  #subcategories {
    padding: 25px;
  }

  .subcategory-heading {
    font-size: 22px;
  }

  #search_filters_wrapper {
    position: static;
    margin-bottom: 30px;
  }

  .pagination {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .pagination .col-md-4,
  .pagination .col-md-6 {
    width: 100%;
  }

  .page-list {
    justify-content: center;
  }
}

/* Mobile Large (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
  #js-product-list-header .block-category {
    padding: 20px;
    border-radius: 12px;
  }

  .block-category h1.h1 {
    font-size: 26px;
  }

  #category-description {
    font-size: 14px;
  }

  #subcategories {
    padding: 20px;
    border-radius: 12px;
  }

  .subcategory-heading {
    font-size: 20px;
  }

  .subcategories-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .subcategory-image {
    height: 180px;
  }

  #js-product-list-top {
    padding: 15px 20px;
  }

  .sort-by {
    display: none;
  }

  .product-miniature {
    border-radius: 12px;
  }

  .product-title {
    font-size: 15px;
  }

  .product-price-and-shipping .price {
    font-size: 20px;
  }

  #search_filters_wrapper {
    padding: 20px;
    border-radius: 12px;
  }

  .pagination {
    padding: 20px;
    border-radius: 10px;
  }

  .page-list li a {
    min-width: 40px;
    height: 40px;
    font-size: 13px;
  }
}

/* Mobile Small (< 576px) */
@media (max-width: 575px) {
  #js-product-list-header .block-category {
    padding: 15px;
    margin-bottom: 20px;
  }

  .block-category h1.h1 {
    font-size: 22px;
  }

  .block-category h1.h1::after {
    width: 40px;
    height: 3px;
  }

  #subcategories {
    padding: 15px;
    margin-bottom: 20px;
  }

  .subcategory-heading {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .subcategory-image {
    height: 160px;
  }

  .subcategories-list h5 {
    padding: 15px 15px 8px;
  }

  .subcategories-list .cat_desc {
    padding: 0 15px 15px;
    font-size: 13px;
  }

  #search_filters_wrapper {
    padding: 15px;
  }

  #search_filters .text-uppercase.h6 {
    font-size: 18px;
  }

  .facet {
    margin-bottom: 20px;
    padding-bottom: 20px;
  }

  .product-description {
    padding: 15px;
  }

  .product-flags {
    top: 10px;
    left: 10px;
  }

  .product-flag {
    padding: 5px 10px;
    font-size: 10px;
  }

  .page-list {
    gap: 6px;
    flex-wrap: wrap;
  }

  .page-list li a {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }
}

/* Mobile Extra Small (< 480px) */
@media (max-width: 480px) {

  #js-product-list-header .block-category,
  #subcategories,
  #search_filters_wrapper,
  #js-product-list-top,
  .pagination {
    border-radius: 10px;
  }

  .block-category h1.h1 {
    font-size: 25px;
  }

  .subcategory-heading {
    font-size: 16px;
  }

  .product-miniature {
    border-radius: 10px;
  }

  .page-list li a.next,
  .page-list li a.previous {
    font-size: 0;
    min-width: 36px;
    padding: 0;
  }

  .page-list li a.next .material-icons,
  .page-list li a.previous .material-icons {
    font-size: 16px;
    margin: 0;
  }
}

/* ============================================
   7. ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-miniature {
  animation: fadeInUp 0.5s ease both;
}

.product-miniature:nth-child(1) {
  animation-delay: 0.1s;
}

.product-miniature:nth-child(2) {
  animation-delay: 0.15s;
}

.product-miniature:nth-child(3) {
  animation-delay: 0.2s;
}

.product-miniature:nth-child(4) {
  animation-delay: 0.25s;
}

.product-miniature:nth-child(5) {
  animation-delay: 0.3s;
}

.product-miniature:nth-child(6) {
  animation-delay: 0.35s;
}

.product-miniature:nth-child(7) {
  animation-delay: 0.4s;
}

.product-miniature:nth-child(8) {
  animation-delay: 0.45s;
}

.product-miniature:nth-child(9) {
  animation-delay: 0.5s;
}

.product-miniature:nth-child(10) {
  animation-delay: 0.55s;
}

.product-miniature:nth-child(11) {
  animation-delay: 0.6s;
}

.product-miniature:nth-child(12) {
  animation-delay: 0.65s;
}

/* ============================================
   8. UTILITIES
   ============================================ */

.hidden-sm-down,
.hidden-md-up {
  /* Géré par Bootstrap */
}

/* Back to top button */
.up .btn-secondary {
  background: var(--primaryllw-color, #FF3200);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white !important;
}

.up .btn-secondary:hover {
  background: #e02900;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 50, 0, 0.3);
}

/* Active Filters */
#js-active-search-filters {
  background: #ffffff;
  border-radius: 12px;
  padding: 0px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

#js-active-search-filters .h6 {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 15px;
}

@media (max-width:768px) {
  .page-category .block-categories {
    display: none;
  }
}

.category-notre-carte #subcategories {
  display: none;

}

.category-pizzas .category-cover {
  display: none;
}


.category-pizz--wish .category-cover {
  display: none;
}

.category-pizzas #subcategories {
  display: none;
}


#js-product-list-header .block-category p {
  font-size: 0.9rem;
}

@media (max-width:768px) {
  .pagination {
    display: flex;
    justify-content: space-between;
    flex-direction: column-reverse;
  }

  .page-category .hidden-md-up.text-xs-right.up{
        text-align-last: center;
  }

}