/* CATEGORIES */
.cat-featured-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 10px;
  padding: 25px 25px 25px;
  background-color: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 5px;
  margin-bottom: 25px;
}
.cat-featured-image-wrapper {
  flex: 0 0 240px; /* largeur fixe */
  text-align: left;
  margin-bottom: 10px;
}
.wc-cat-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  border-left: 5px solid #fd6816;
  padding-left: 10px;
}
.wc-cat-title a {
  color: inherit;
}
.wc-cat-title a:hover {
  color: #fd6816;
}
.discover-cat-btn {
  position: relative;
  float: right;
  background-color: #fd6816;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  margin-bottom: 10px;
}

.discover-cat-btn:hover {
  background-color: orange;
  color: #fff;
}
#content hr {
  border: 0;
  background-color: #F2F2F2;
  height: 1px;
}
/* Custom product style 2 */
.woosw-btn,
.woosq-btn,
.woosc-btn {
    display: none!important;
}
.woocommerce-loop-product__title {
    bottom: -60px!important;
    top: auto!important;
    left: auto!important;
    right: auto!important;
    padding: 5px 15px 4px;
    margin-bottom: 28px;
    /*border: 1px solid #ccc;
    border-top: 0;*/
    background: #fff;
}
.product-block .product-transition {
    overflow: visible!important;
}
.slick-slide {
    height: 400px!important;
}


/* SLIDER */
.chs-slider-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 15px;
}
.chs-slider {
  display: flex;
  /*height: 450px;*/
  transition: transform 300ms ease-in-out;
}
.chs-slide {
  flex: 0 0 100%;
}
.chs-slide img {
  width: 100%;
  border-radius: 15px;
}

/* BANNERS */
.chs-banners {
    display: flex;
    gap: 20px;
    margin: 40px 0;
    width: 100%;
    flex-wrap: wrap;
}
.chs-banner-item {
    flex: 1 1 48%;
    border-radius: 10px;
}
.chs-banner-item img {
  width: 100%;
  transition: transform 0.3s ease;
  border-radius: 15px;
}
.chs-banner-item:hover img {
    transform: scale(1.02);
}

/* CAT SIDE MENU */
ul.chs-cat-level, 
ul.chs-cat-level li {
  list-style: none;
}
.chs-cat-sidebar { 
  position: relative; 
  width: 100%; 
  background: #fff; 
  border: 1px solid #eee; 
  border-radius: 15px 15px 0 0; 
  padding: 25px; 
  font-family: inherit; 
}
.chs-cat-heading { 
  margin: 0;
  padding: 0; 
  text-transform: uppercase;
  font-size: 18px; 
  font-weight: 600; 
  color: #222; 
}
.title-row {
  padding: 0 25px 10px 0;
  display: flex;
  align-items: center; 
  gap: 15px;
  border-bottom: 1px solid #F0F0F0;
}

.title-row i {
  font-size: 20px;
  flex-shrink: 0;      /* Empêche le SVG de se compresser */
}

.chs-cat-level {  
  margin: 0!important;
  min-width: 180px;
  /*max-width: 380px;*/
  white-space: nowrap;
}
.chs-cat-item { 
  position: relative; 
  margin: 2px 0 0; 
  padding-right: 15px;
  border-bottom: 1px solid #F0F0F0;
}
.chs-cat-item > a { 
  display:flex; 
  align-items:center; 
  justify-content:space-between; 
  padding:8px 0 8px 15px; 
  color:#575757!important; 
  text-decoration:none; 
  border-left:5px solid transparent; 
  border-radius:4px; 
  transition: all .18s ease; 
}
.chs-cat-item > a:hover { 
  color: #222b64!important;
  background:#f9f9f9; 
  border-left-color:#ff7a00; 
}
.chs-cat-title { 
  font-weight:600;
  font-size: 14px;
}
.chs-cat-arrow { 
  color: #999; 
  font-size: 20px; 
  font-weight: 600; 
  margin-left: 15px; 
  margin-right: 15px;
  transition: transform .18s ease; 
}
.chs-cat-item:hover > a .chs-cat-arrow { 
  transform: translateX(-5px); 
  color:#ff7a00; 
}

/* Sous-menu */
.chs-cat-item.has-children > ul.chs-cat-level {
  position: absolute; 
  top: 0; 
  left: 105%; 
  background: #fff; 
  border: 1px solid #eee; 
  border-radius: 6px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08); 
  opacity: 0; 
  visibility: hidden; 
  transform: translateX(10px);
  transition: all .18s ease; z-index: 60;
}
.chs-cat-item.has-children:hover > ul.chs-cat-level { 
  opacity:1; 
  visibility:visible; 
  transform: translateX(0); 
}

/* Ajustements pour les sous-niveaux (déplacement vers la droite) */
.chs-cat-item.has-children > ul.chs-cat-level .chs-cat-item.has-children > ul.chs-cat-level { 
  left: 100%; 
  top: 0; 
}

.home-features {
    display: flex;
    gap: 15px;
    align-items:bottom; 
    justify-content: center;
    background: #fff;
    color: #222B64;
    font-weight: 600;
    padding: 25px;
    border: 1px solid #e2e2e2;
    border-radius: 5px;
}
.home-features i {
    font-size: 50px;
    color: #ED4D0A;
}

.product-pdf-sheet-btn {
    background: #ED4D0A;
    padding-top: 10px;
    padding-bottom: 10px;
    width: 100%;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
}
.product-pdf-sheet-btn a {
    color: #fff;
    font-weight: 600;
}
.product-pdf-sheet-btn:hover a {
    color: #fff;
}

.single-product div.product .woocommerce-product-gallery .product-video-360 {
    bottom: auto!important;
    right: auto!important;
    left: calc(80% / 2);
    top: calc(70% / 2);
}
i.allegro2-icon-video {
    font-size: 4rem!important;
    color: #ED4D0A;
}
.btn-video {
    margin-right: 0!important;
    padding: 5px;
    background: rgb(255,255,255,0.6);
}
.btn-video span {
    color: #ED4D0A;
}

/* Responsive mobile */
@media (max-width: 768px) {
  .cat-featured-row {
    flex-direction: column;
  }
  .cat-featured-image-wrapper,
  .cat-featured-products {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .cat-featured-image-wrapper img {
    display: none;
  }
  .cat-featured-products {
    margin-top: 0;
  }
  .discover-cat-btn {
    display: none;
  }
  .chs-banners {
    flex-direction: column;
    gap: 15px;
  }
  .chs-banner-item {
    flex: 1 1 100%;
  }
  ul.products li.product {
      margin-bottom: 65px;
  }
}

/* home_wc_catigories shortcode CSS */
.idea-category {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fff;
}

.idea-category-parent {
    position: relative;
    text-align: center;
    margin-bottom: 15px;
}

.idea-category-parent img {
    width: 100%;
    height: 200px;
    object-fit: cover;   /* remplit sans déformer */
    margin-bottom: 25px;
    filter: brightness(0.6); /* 1 = normal, <1 = plus sombre */
}

.idea-subcategories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.idea-subcat-btn {
    text-align: center;
    width: 199px;
    height: 120px;
    padding: 0;
    background: #fff;
    color: #000;
}

.idea-subcat-btn img {
    border: 1px solid #ccc;
    margin: 0;
    width: 100%;
    height: 95px;
    object-fit: cover;
    transition: all ease 0.3s;
}
.idea-subcat-btn:hover img {
    height: 120px;
}
.idea-subcat-btn span {
    position: relative;
    display: block;
    width: 100%;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all ease 0.2s;
    border: 1px solid #ff6700;
}
.idea-subcat-btn:hover span:not(.no-image) {
    font-size: 0;
}
.no-image {
    transition: none;
}

/* Titre centré */
.idea-category-parent h3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    color: #fff;
    font-size: 48px;
    text-align: center;
    margin: 0;
    z-index: 2;
}

@media (max-width: 768px) {

    /* Titre plus petit */
    .idea-category-parent h3 {
        font-size: 28px;
        padding: 0 10px;
    }

    /* Sous-catégories en colonne */
    .idea-subcategories {
        flex-direction: column;
        gap: 8px;
    }

    /* Boutons pleine largeur */
    .idea-subcat-btn {
        width: 100%;
        text-align: center;
        display: block;
    }
    .idea-subcat-btn span {
        font-size: 15px;
    }
}

/** BRANDS Shortcode CSS **/
.idea-brands {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fff;
}

.idea-brand {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    background: #243458;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: 0.3s;
}

/* Hover propre */
.idea-brand:hover {
    background: #333;
}

.idea-img-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px; /* hauteur fixe du bloc */
    border: 1px solid #f9f9f9;
    border-radius: 5px;
}

.idea-img-brand img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}
