/**
 * Custom CSS to make Bootstrap containers match Elementor container width
 */

/* Prevent horizontal scrollbar */
body {
  overflow-x: hidden !important;
}
.product-miniature .thumbnail-container .product-thumbnail img,.product-miniature .thumbnail-container .product-thumbnail img{
  height:160px !important;
  width: 100%;
}

/* Set standard Bootstrap container width to match Elementor's 1408px width */
.container {
  max-width: 1408px !important;
  width: 1408px !important;
}


/* Style de pagination amélioré */
.page-list li:not(.current) a {
  color: #7a7a7a !important;
  font-weight: normal !important;
}


/* Responsive adjustments for different screen sizes */
@media (max-width: 1440px) {
  .container {
    max-width: 1408px !important;
    width: 100% !important;
  }
}

@media (max-width: 992px) {
  .container {
    max-width: 960px !important;
    width: 100% !important;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 720px !important;
    width: 100% !important;
  }
}

@media (max-width: 576px) {
  .container {
    max-width: 540px !important;
    width: 100% !important;
  }
}

/* Override for specific container classes if needed */
.page-container .container,
#content .container,
#wrapper .container,
#columns .container {
  max-width: 1408px !important;
}

/* Full width category image styles */
#js-product-list-header {
  width: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.category-cover-full-width {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-bottom: 20px;
  overflow: hidden;
  max-width: 100vw;
  box-sizing: border-box;
}
#wrapper .breadcrumb li:last-child {
  color: #dedc4f !important;
}
.category-cover-full-width img {
  width: 100% !important;
  height: auto !important;
  max-height: 200px;
  object-fit: cover;
  display: block;
}

/* Category title overlay */
.category-title-overlay {
  position: absolute;
  top: calc(50% - 3em);
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 20px 30px;
  background: rgba(0, 0, 0, 0.5);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.7));
}

.category-title-overlay h1 {
  color: white;
  font-size: 36px;
  font-weight: 700;
  margin: 0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  max-width: 1408px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.category-title-container {
  padding: 30px 0;
  margin-bottom: 20px;
}

.category-title-container h1 {
  font-size: 36px;
  font-weight: 700;
  margin: 0;
}

/* Category header styling */
.block-category {
  margin-bottom: 25px;
  box-shadow: none;
  border: none;
  padding: 0;
}

#js-product-list-header .card.card-block {
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 0;
}

#js-product-list-header h1 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 15px;
}

#category-description {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.5;
}

/* Filter panel styling */
.facet-title {
  font-weight: 600;
  font-size: 18px;
  border-bottom: 1px solid #ebebeb;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

#search_filters {
  box-shadow: none;
  border: 1px solid #ebebeb;
  border-radius: 5px;
  padding: 15px 20px;
}

.filter-button {
  margin-bottom: 20px;
}

/* Product list styling */

.product-description {
  padding: 15px;
}

.product-title {
  font-weight: 600;
  height: auto;
  margin-bottom: 10px;
}

.product-price-and-shipping {
  font-weight: 600;
  font-size: 18px;
}

.divider {
  margin: 0 0 30px;
}

.divider-separator {
  display: block;
  height: 1px;
  background-color: #ebebeb;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 768px) {
  .category-cover-full-width img {
    max-height: 250px;
  }
  
  .category-title-overlay h1 {
    font-size: 24px;
  }
  
  .category-title-container h1 {
    font-size: 24px;
  }
  
  #js-product-list-header h1 {
    font-size: 24px;
  }
  
  #category-description {
    font-size: 14px;
  }
}

/* Cacher le bouton wishlist sur les pages de catalogue */

body#category a.wishlist-button-add {
  display: none !important;
} 