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

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

#js-product-list-header .block-category {
  background: #ffffff;
  border: none;
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 40px;
  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, #222248);
  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;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.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, #222248);
  border-radius: 2px;
}

.subcategories-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.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: 200px;
  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, #222248);
}

.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: static;
  top: 20px;
  margin-bottom: 3%;
}

#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, #222248);
}

/* 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, #222248);
  border-color: var(--primaryllw-color, #222248);
}

.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, #222248);
  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, #222248);
}

.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, #222248);
  margin-bottom: 15px;
  text-align: center;
}

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

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

.ui-slider-handle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--primaryllw-color, #222248);
  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, #222248);
  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, #222248);
  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, #222248);
}

/* ============================================
   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: 30px;
  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, #222248);
  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, #222248);
  padding-left: 20px;
}

.products-sort-order .select-list.current {
  background: var(--primaryllw-color, #222248);
  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(3, 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, #222248);
}

.product-miniature:hover::before {
  opacity: 1;
}

.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, #222248) 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: 10px;
  padding: 12px 24px;
  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);
}

.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, #222248);
  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: 45px;
  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, #222248) 0%, var(--primaryllw-color, #222248) 100%); */
  background-size: 0 2px;
  background-repeat: no-repeat;
  background-position: left bottom;
}

.product-miniature:hover .product-title a {
  color: var(--primaryllw-color, #222248);
  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, #222248);
  letter-spacing: -0.5px;
  display: inline-block;
  position: relative;
}


.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;
}

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

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border-radius: 12px;
  padding: 25px 30px;
  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, #222248);
  border-color: var(--primaryllw-color, #222248);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 50, 0, 0.2);
}

.page-list li.current a {
  background: var(--primaryllw-color, #222248);
  color: #f81700;
  border-color: var(--primaryllw-color, #222248);
  cursor: default;
  box-shadow: 0 4px 15px rgba(255, 50, 0, 0.3);
}

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

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

.page-list li a.disabled:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

.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: 20px;
  }

  .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, #222248);
  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;
}

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


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

/* Active Filters */
#js-active-search-filters {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  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;
}


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

#js-product-list-header .block-category {
  background: #ffffff;
  border: none;
  border-radius: 16px;
  padding: 21px;
  margin-bottom: 26px;
  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: -68px;
}

#category-description {
  flex: 1;
  font-size: 16px;
  line-height: 1.7;
  color: #1f2837 !important;
  margin-top: 10%;
}

.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);
}

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

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

.category-cover {
  box-shadow: none !important;
}

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

}

/* ============================================================
   COLONNE GAUCHE STICKY — Catégories & filtres
   Se déplace avec le scroll sur les pages catégorie/listing
   ============================================================ */

/* Le conteneur parent doit être en display:flex pour que sticky fonctionne */
#left-column {
  align-self: flex-start;
  /* indispensable : empêche l'étirement en hauteur */
}

/* Scrollbar discrète à l'intérieur de la colonne si le menu est très long */
#left-column::-webkit-scrollbar {
  width: 3px;
}

#left-column::-webkit-scrollbar-track {
  background: transparent;
}

#left-column::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 3px;
}

#left-column::-webkit-scrollbar-thumb:hover {
  background: #bbb;
}

/* S'assurer que la row parente est bien en flex (PS8 utilise Bootstrap flex par défaut) */

@media (min-width: 991.98px) {

  #left-column~#content-wrapper,
  .row:has(#left-column) {
    display: flex;
    align-items: flex-start;
  }
}

/* Sur mobile/tablette : désactiver le sticky (colonne pleine largeur) */
@media (max-width: 991.98px) {
  #left-column {
    position: static;
    max-height: none;
    overflow: visible;
  }
}


/* ============================================================
   PRODUCT CARD — Design inspiré référence (dark card)
   À ajouter / remplacer dans products.css
   ============================================================ */

/* ── Reset des anciens styles de card ── */
.product-miniature {
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  border: none;
  display: block;
  height: 100%;
  padding: 0;
  animation: fadeInUp 0.5s ease both;
}

.product-miniature:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

.product-miniature::before {
  display: none;
}

/* ── Lien englobant toute la card ── */
.product-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 0px;
  overflow: hidden;
  text-decoration: none;
  background: #1e2535;
  /* fond sombre comme la référence */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s ease;
}

.product-card-link:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  text-decoration: none;
}

/* ── Zone image ── */
.product-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  /* carré comme la référence */
  background: #0d1117;
  flex-shrink: 0;
}

.product-card-img picture,
.product-card-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card-link:hover .product-card-img img {
  transform: scale(1.07);
}

/* Dégradé bas d'image pour adoucir la transition image → contenu */
.product-card-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to bottom, transparent, rgba(30, 37, 53, 0.6));
  pointer-events: none;
}

/* ── Flags (Nouveau, Promo…) ── */
.product-card-img .product-flags {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-card-img .product-flag {
  padding: 5px 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ── Contenu bas de card ── */
.product-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #1e2535;
}

/* Nom du produit */
.product-card-name {
  margin-bottom: 10px;
}

.product-card-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #ffffff;
  margin: 0;
  line-height: 1.35;
}

/* ── Ligne basse : prix + bouton ── */
.product-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

/* Sous-titre (ex: "3 pièces") */
.product-card-subtitle {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #b5895a;
  /* brun/doré comme la référence */
  margin-bottom: 4px;
}

/* Prix */
.product-card-price {
  font-size: 18px;
  font-weight: 500;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.1;
}

.product-card-old-price {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: line-through;
  margin-bottom: 2px;
}

/* Bouton + */
.product-card-add {
  flex-shrink: 0;
}

.product-card-btn-add,
a.product-card-btn-add,
a.product-card-btn-add:link,
a.product-card-btn-add:visited {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: 50%;
  background: #ffffff !important;
  color: #1e2535 !important;
  font-size: 24px;
  font-weight: 300;
  line-height: 38px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  text-decoration: none !important;
  border: none;
  flex-shrink: 0;
  padding: 0;
  box-sizing: border-box;
  aspect-ratio: 1 / 1;
}



a.product-card-btn-add:hover span,
a.product-card-btn-add:focus span {
  color: #040404 !important;
}

/* ── Lien du titre produit ── */
.product-card-title-link {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
  display: block;
}

.product-card-title-link:hover {
  color: #b5895a;
  text-decoration: none;
}

/* Curseur normal sur la carte, pointeur sur les éléments cliquables */
.product-card-link {
  cursor: default;
}

.product-card-title-link,
.product-card-btn-add {
  cursor: pointer;
}

/* ── Suppression des anciens éléments inutilisés ── */
.thumbnail-container,
.thumbnail-top,
.product-description,
.highlighted-informations,
.product-title {
  /* Ces éléments n'existent plus dans le nouveau TPL */
  display: none !important;
}

/* ── Responsive ── */
@media (max-width: 767px) {
  .product-card-title {
    font-size: 12px;
  }

  .product-card-price {
    font-size: 16px;
  }

  .product-card-btn-add {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }

  .product-card-body {
    padding: 12px 14px 14px;
  }
}

@media (max-width: 480px) {
  .product-card-title {
    font-size: 11px;
  }

  .product-card-price {
    font-size: 15px;
  }
}

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


/* --- COLONNE GAUCHE : LOOK PRESTA-SUSHI COMPLET --- */

#left-column {
  padding: 10px !important;
}

/* Titres de section (Filtrer par / Notre Carte) */
#left-column .h6,
#left-column .facet-title,
.block-categories .text-uppercase.h6 {
  color: #a3896b !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: 1.2px;
  border-bottom: 2px solid #222248;
  padding-bottom: 12px;
  margin-bottom: 20px !important;
  display: block;
}

/* --- 1. SLIDER DE PRIX (LE RETOUR DU LOOK DARK) --- */
.faceted-slider li {
  padding: 15px 10px !important;
}

#facet_label_59348 {
  /* Le texte du prix "5,00€ - 18,00€" */
  color: #222248 !important;
  font-weight: 700;
  margin-bottom: 15px;
  display: block;
}

.ui-slider-horizontal {
  background: #222248 !important;
  /* Barre de fond sombre */
  height: 6px !important;
  border: none !important;
  border-radius: 10px !important;
  margin: 20px 10px !important;
}

.ui-slider-range {
  background: #a3896b !important;
  /* Zone sélectionnée en Bronze */
  border-radius: 10px !important;
}

.ui-slider-handle {
  background: #ffffff !important;
  /* Curseur blanc */
  border: 3px solid #a3896b !important;
  /* Cercle bronze autour */
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  top: -8px !important;
  cursor: pointer !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}

/* --- 2. MENU DES CATÉGORIES (ALIGNEMENT PARFAIT) --- */
.category-sub-menu {
  padding: 0 !important;
}

.category-sub-menu li {
  position: relative;
  padding: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.category-sub-menu li>a {
  display: inline-block;
  padding: 12px 45px 12px 0;
  /* Espace pour l'icône à droite */
  color: #222248 !important;
  font-size: 14px;
  font-weight: 600;
  width: 100%;
  transition: all 0.3s ease;
}

.category-sub-menu li a:hover {
  color: #a3896b !important;
  padding-left: 8px;
}

/* Icônes de déploiement + / - */
.category-sub-menu .collapse-icons {
  position: absolute;
  right: 0;
  top: 0;
  height: 45px;
  /* Aligné sur la hauteur du lien */
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: right;
  cursor: pointer;
}

.category-sub-menu .collapse-icons i {
  font-size: 20px !important;
  color: #a3896b !important;
}

/* Sous-menus ouverts */
.category-sub-menu .collapse.in,
.category-sub-menu .collapse.show {
  background: rgba(163, 137, 107, 0.05);
  /* Fond très léger bronze */
  border-left: 3px solid #a3896b;
  margin: 5px 0 10px 5px;
}

/* --- 3. FILTRES CHECKBOX --- */
.facet {
  background: #fdfdfd;
  border: 1px solid #eee;
  border-radius: 12px;
  margin-bottom: 15px;
  padding: 15px !important;
}

.custom-checkbox .ps-shown-by-js {
  border: 2px solid #222248 !important;
  border-radius: 4px !important;
  background: #fff;
}

.custom-checkbox input[type="checkbox"]:checked+.ps-shown-by-js {
  background: #a3896b !important;
  border-color: #a3896b !important;
}

.magnitude {
  /* background: #222248; */
  /* color: #fff !important; */
  /* Ici le blanc est ok car le fond est sombre */
  /* padding: 1px 6px; */
  /* border-radius: 10px; */
  /* font-size: 10px; */
  /* font-weight: 700; */
}


/* --- BARRE DE TRI & NOMBRE DE PRODUITS --- */

@media (min-width: 991.98px) {
  .products-selection {
    display: flex;
  }
}

@media (max-width: 786px) {
  .block-category h1.h1 {
    margin-bottom: 55px;
  }
}

.products-selection {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 25px !important;

  align-items: center;
}

.total-products p {
  color: #222248;
  font-weight: 700;
  margin: 0;
}

.sort-by {
  color: #57606f !important;
  font-weight: 600;
}

/* Le bouton de dropdown */
.products-sort-order .select-title {
  background: #ffffff !important;
  border: 1px solid #dcdde1 !important;
  border-radius: 8px;
  padding: 8px 15px !important;
  color: #222248 !important;
  font-weight: 600;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Le menu déroulant du tri */
.products-sort-order .dropdown-menu {
  background: #ffffff;
  border: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 10px 0;
}

.products-sort-order .dropdown-menu a {
  color: #222248 !important;
  padding: 10px 20px;
  font-weight: 500;
}

.products-sort-order .dropdown-menu a:hover,
.products-sort-order .dropdown-menu a.current {
  background: #f1f2f6;
  color: #a3896b !important;
}

/* --- FILTRES ACTIFS (BADGES) --- */
.active_filters {
  background: transparent;
  padding: 0;
  margin-bottom: 20px;
}

.active-filter-title {
  color: #222248 !important;
  font-weight: 700;
  font-size: 13px !important;
  text-transform: uppercase;
}

.active_filters ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.active_filters .filter-block {
  background: #222248 !important;
  /* Badge sombre */
  color: #ffffff !important;
  /* Ici le texte blanc est nécessaire sur le badge sombre */
  padding: 6px 15px !important;
  border-radius: 30px;
  font-size: 12px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 10px rgba(34, 34, 72, 0.2);
}

.active_filters .filter-block a {
  color: #a3896b !important;
  /* La croix en bronze */
  margin-left: 8px;
}

.active_filters .filter-block a:hover i {
  color: #ff4757 !important;
  /* Rouge au survol pour supprimer */
}

/* 1. Cache uniquement les petites flèches natives (triangles) sans cacher les boutons */
.modal-body .bootstrap-touchspin-up i.touchspin-up,
.modal-body .bootstrap-touchspin-down i.touchspin-down {
    display: none !important;
}

/* 2. Force l'apparition du + et du - via le contenu CSS */
.modal-body .bootstrap-touchspin-up::before {
    content: "+" !important;
    font-size: 22px !important;
    font-weight: 400 !important;
}

.modal-body .bootstrap-touchspin-down::before {
    content: "—" !important; /* Tiret long pour le moins */
    font-size: 16px !important;
    font-weight: 700 !important;
}

/* 3. Structure du sélecteur (Pill Style) */
.modal-body .bootstrap-touchspin {
    display: flex !important;
    align-items: center !important;
    width: 140px !important;
    height: 48px !important;
    border: 1px solid #d1d1d1 !important;
    border-radius: 50px !important;
    overflow: hidden !important;
    background: #fff !important;
    position: relative !important;
}

/* 4. Positionnement des boutons de chaque côté */
.modal-body .input-group-btn-vertical {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    justify-content: space-between !important;
    flex-direction: row !important; /* Force l'horizontal */
}

.modal-body .btn-touchspin {
    position: relative !important;
    width: 45px !important;
    height: 100% !important;
    background: #f8f9fa !important;
    border: none !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: #333 !important;
}

/* On inverse l'ordre pour avoir le - à gauche et le + à droite */
.modal-body .bootstrap-touchspin-down {
    order: 1 !important;
}
.modal-body .bootstrap-touchspin-up {
    order: 3 !important;
}

/* 5. L'Input au centre */
.modal-body #quantity_wanted {
    order: 2 !important;
    width: 50px !important;
    height: 100% !important;
    border: none !important;
    text-align: center !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    padding: 0 !important;
    margin: 0 auto !important;
    background: transparent !important;
    z-index: 10 !important;
}

/* 6. Centrage vertical global (Ligne Quantité + Bouton Panier) */
.modal-body .product-quantity {
    display: flex !important;
    align-items: center !important; /* Aligne le milieu du sélecteur avec le milieu du bouton */
    gap: 20px !important;
    margin-top: 20px !important;
}

.modal-body .add-to-cart {
    height: 48px !important; /* Même hauteur que le sélecteur */
    border-radius: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 25px !important;
}

/* Fix mobile */
@media (max-width: 575px) {
    .modal-body .product-quantity {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .modal-body .bootstrap-touchspin, .modal-body .add-to-cart {
        width: 100% !important;
    }
}


/* --- Global Modal Style --- */
.modal-content {
    border-radius: 20px !important;
    border: none !important;
    box-shadow: 0 15px 50px rgba(0,0,0,0.2) !important;
    overflow: hidden;
}

.modal-header {
    border: none !important;
    padding: 15px 20px 0 !important;
    position: absolute !important;
    right: 0;
    z-index: 999;
}

.modal-header .close {
    background: #fff !important;
    opacity: 1 !important;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.modal-header .close:hover {
    transform: scale(1.1);
}

/* --- Image & Thumbs --- */
.modal-body .images-container {
    padding-right: 15px;
}

.modal-body .product-cover img {
    border-radius: 15px !important;
    width: 100% !important;
    height: auto !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.modal-body .js-qv-mask {
    margin-top: 15px !important;
}

.modal-body .thumb-container {
    margin-right: 8px !important;
}

.modal-body .thumb-container img {
    border-radius: 8px !important;
    border: 2px solid transparent !important;
    transition: all 0.3s ease;
    cursor: pointer;
}

.modal-body .thumb-container img.selected, 
.modal-body .thumb-container img:hover {
    border-color: #2c3e50 !important; /* Couleur sombre pro */
}

/* --- Product Info Content --- */
.modal-body h1.h1 {
    font-family: 'Poppins', sans-serif; /* Assurez-vous d'avoir une police moderne */
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 5px !important;
}

.modal-body .product-prices {
    margin-bottom: 15px !important;
}

.modal-body .current-price-value {
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
}

.modal-body .tax-shipping-delivery-label {
    font-size: 11px !important;
    color: #999 !important;
    text-transform: uppercase;
    margin-top: -5px;
}

/* --- Badge "Pièce" / Description courte --- */
.modal-body #product-description-short {
    display: inline-block !important;
    background: #f0f2f5 !important;
    padding: 4px 12px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    color: #4a5568 !important;
    margin-bottom: 25px !important;
}

/* --- Label "Quantité" --- */
.modal-body .control-label {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #718096 !important;
    margin-bottom: 10px !important;
    display: block !important;
}

/* --- Footer --- */
.modal-footer {
    border: none !important;
    padding: 0 30px 20px !important;
}

/* --- Responsive Layout --- */
@media (max-width: 767px) {
    .modal-body {
        padding: 20px !important;
    }
    
    .modal-body h1.h1 {
        font-size: 22px !important;
        margin-top: 15px !important;
    }
    
    .modal-body .images-container {
        padding-right: 0;
    }
}
/* ==========================================================================
   1. AJUSTEMENTS RESPONSIVE & COMPACITÉ MOBILE
   ========================================================================== */

@media (max-width: 767px) {
    /* Rend la div moins haute et plus compacte */
    .modal-body {
        padding: 10px 15px !important; /* Réduit les espacements internes */
    }

    .modal-body h1.h1 {
        font-size: 18px !important; /* Titre plus petit */
        margin-top: 5px !important;
        margin-bottom: 2px !important;
    }

    .modal-body .product-prices {
        margin-bottom: 5px !important;
    }

    .modal-body #product-description-short {
        margin-bottom: 10px !important; /* Réduit l'espace sous "pièce" */
    }

    .modal-body .images-container {
        margin-bottom: 10px !important;
    }

    /* QUANTITÉ MOBILE : 100% de large */
    .modal-body .bootstrap-touchspin {
        width: 100% !important; 
        height: 44px !important; /* Un peu moins haut pour gagner de la place */
    }

    .modal-body #quantity_wanted {
        width: 100% !important; /* Prend tout l'espace entre les boutons */
    }

    .modal-body .add-to-cart {
        height: 44px !important;
        width: 100% !important;
    }
    
    .modal-body .product-quantity {
        gap: 10px !important; /* Espace réduit entre les blocs */
    }
}

/* ==========================================================================
   2. FIX ZONE CRITIQUE (769px à 908px) 
   Empêche le bouton de sortir de la div ou de se chevaucher
   ========================================================================== */

@media (min-width: 768px) and (max-width: 908px) {
    .modal-body .product-quantity {
        flex-direction: column !important; /* Empile les éléments car l'espace est trop étroit */
        align-items: flex-start !important;
    }

    .modal-body .add, .modal-body .add-to-cart {
        width: 100% !important; /* Le bouton prend toute la largeur de sa colonne */
    }

    .modal-body .bootstrap-touchspin {
        width: 120px !important; /* On garde le sélecteur compact */
    }
}

/* ==========================================================================
   3. RESTE DU CODE (SÉCURISATION & NETTOYAGE)
   ========================================================================== */

/* On s'assure que les boutons + et - restent bien cliquables malgré le 100% width */
.modal-body .btn-touchspin {
    z-index: 15 !important;
    min-width: 45px !important;
}

/* Supprime les marges inutiles du footer sur mobile pour compacité */
.modal-footer {
    padding: 0 15px 10px !important;
    min-height: auto !important;
}

/* Réduction de la taille de l'image de couverture sur petit mobile si besoin */
@media (max-width: 480px) {
    .modal-body .product-cover img {
        max-height: 200px !important;
        object-fit: cover !important;
    }
}


.page-category div#left-column {
  overflow: scroll;
}

/* 1. On cible UNIQUEMENT les liens qui sont suivis d'un bouton de menu (toggler) */
/* Cela laisse les liens terminaux comme "Vin blanc" cliquables normalement */

.category-sub-menu li[data-depth="0"] > a:has(+ .navbar-toggler),
.category-sub-menu li[data-depth="1"] > a:has(+ .arrows),
.category-sub-menu li[data-depth="1"] > a:has(+ .navbar-toggler) {
    pointer-events: none !important;
    cursor: default;
}

/* 2. On s'assure que l'icône de déploiement (le + ou la flèche) 
      prend toute la place pour capter le clic sur le texte */

.category-sub-menu  .navbar-toggler, .arrows {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    display: flex !important;
    align-items: center;
    justify-content: flex-end; /* Garde l'icône visible à droite */
    padding-right: 15px;
    background: transparent;
}

/* 3. On remet du z-index sur les liens simples (ceux qui n'ont pas de sous-menu) 
      pour qu'ils repassent au-dessus et soient cliquables */
.category-sub-menu  li:not(:has(.collapse)) > a {
    position: relative;
    z-index: 5;
    pointer-events: auto !important;
}

/* 4. Correctif pour les parents pour éviter les chevauchements */
.category-sub-menu li {
    position: relative;
}

.block-categories .category-sub-menu li:not([data-depth="0"]):not([data-depth="1"])::before {
    margin-right: .3125rem;
    content: " " !important;
}