

/********************************************************
			Codezeel Custom Styles
********************************************************/
.cz-carousel {
  display: none;
  position: relative;
  float: left;
  width: 100%;
  margin: 0;
  touch-action: pan-y;
}

.owl-carousel .owl-wrapper {
  display: none;
  position: relative;
  transform: translate3d(0px, 0px, 0px);
}
.owl-carousel .owl-wrapper:after {
  content: ".";
  display: block;
  clear: both;
  visibility: hidden;
  line-height: 0;
  height: 0;
}
.owl-carousel .owl-wrapper-outer {
  overflow: hidden;
  position: relative;
  float: left;
  width: 100%;
}
.owl-carousel .owl-wrapper-outer.autoHeight {
  -webkit-transition: height 500ms ease-in-out;
  -moz-transition: height 500ms ease-in-out;
  -ms-transition: height 500ms ease-in-out;
  -o-transition: height 500ms ease-in-out;
  transition: height 500ms ease-in-out;
}
.owl-carousel .owl-item {
  float: left;
}
.owl-carousel .owl-item .manu_image a {
  display: inline-block;
}
.owl-carousel .owl-item .manu_image a img {
  max-width: 100%;
}
.owl-carousel .owl-item:hover a img {
  border-color: blue;
}
.owl-carousel .owl-wrapper,
.owl-carousel .owl-item {
  /* fix */
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -ms-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
  -ms-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  text-align: center;
}

/* mouse grab icon */
.grabbing {
  cursor: url("../img/codezeel/grabbing.png") 8 8, move;
}
 
.customNavigation {
  position: absolute;
  width: 70px;
  top: -46px;
  right: 0px;
  direction: ltr !important;
  z-index: 4;
}
.customNavigation a {
  font-size: 0;
  position: absolute;
  padding: 0;
  color: #777777;
  cursor: pointer;
  overflow: hidden;
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease 0s;
  -o-transition: all 0.5s ease 0s;
  transition: all 0.5s ease 0s;
  width: 32px;
  height: 32px;
  border: 1px solid #e0e0e0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 13px;
  background-color: #ffffff;
}
.customNavigation a:hover {
  background-color: #FEDD1F;
  border-color: #FEDD1F;
}
.customNavigation a.prev {
  left: 0px;
  background-image: url(../img/codezeel/left-arrow.svg);
}
.customNavigation a.prev:hover  {
  background-image: url(../img/codezeel/left-arrow-hover.svg);
}
.customNavigation a.next {
  right: 0px;
  background-image: url(../img/codezeel/right-arrow.svg);
}
.customNavigation a.next:hover {
  background-image: url(../img/codezeel/right-arrow-hover.svg);
}

#czleftbanner img,
#czrightbanner img{
	max-width: 100%;
}	
#czleftbanner li, #czrightbanner li {
    display: inline-block;
    vertical-align: top;
}
#czleftbanner li a, #czrightbanner li a {
    display: inline-block;
    overflow: hidden;
    position: relative;
}
#czleftbanner li a:before, #czrightbanner li a:before {
    background: rgb(38 38 38 / 18%) none repeat scroll 0 0;
    bottom: 20px;
    content: "";
    left: 20px;
    opacity: 1;
    position: absolute;
    right: 20px;
    top: 20px;
    opacity: 1;
    filter: alpha(opacity=100);
    -webkit-transform: scale(0);
    -ms-transform: scale(0);
    transform: scale(0);
}

#czleftbanner li:hover a:before, #czrightbanner li:hover a:before {
    opacity: 0;
    filter: alpha(opacity=0);
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
    -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
    -o-transition: all 1s ease;
    transition: all 1s ease;
}

.top_button {
  background: url(../img/codezeel/top-arrow.png) no-repeat scroll center center transparent;
  bottom: 20px;
  cursor: pointer;
  height: 54px;
  padding: 0;
  position: fixed;
  right: 20px;
  text-align: center;
  width: 52px;
  z-index: 99;
}

/* Custom Navigation Fix for Mobile */
#custom-nav-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

#custom-nav-wrapper .my-custom-nav {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: nowrap;
}

#custom-nav-wrapper .my-custom-nav li {
  margin: 0 10px;
  flex-shrink: 0;
}

#custom-nav-wrapper .my-custom-nav li a {
  text-decoration: none;
  font-weight: bold;
  color: #333;
  font-size: 16px;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

#custom-nav-wrapper .my-custom-nav li a:hover {
  color: #e9da0a;
}

/* Mobile Navigation Fix - Forces emoji + text to stay together */
@media (max-width: 767px) {
  .my-custom-nav {
    white-space: nowrap; /* Prevent wrapping */
    overflow-x: auto; /* Enable horizontal scrolling if needed */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    display: block; /* Override flex for mobile */
    padding: 0 10px;
  }
  
  .my-custom-nav li {
    display: inline-block !important; /* Force inline display */
    white-space: nowrap !important; /* Prevent line breaks */
    margin: 0 8px !important; /* Adjust spacing */
  }
  
  .my-custom-nav li a {
    display: inline !important; /* Keep emoji + text together */
    word-break: keep-all !important; /* Prevent word breaks */
  }
  
  /* Fix for iOS Safari */
  @supports (-webkit-touch-callout: none) {
    .my-custom-nav li a {
      display: inline-flex !important;
      align-items: center;
    }
  }
}

/********************************************************
  Carousel Slider Custom Styles - Flexslider Jaune/Black
********************************************************/
/* Bouton COMMENCER - Jaune par défaut avec texte BLANC */
.banner-btn.btn.btn-primary,
a.banner-btn.btn.btn-primary {
    background-color: #FEDD1F !important;
    border-color: #FEDD1F !important;
    color: #fff !important;
}

/* Bouton COMMENCER - Noir au hover avec texte BLANC */
.banner-btn.btn.btn-primary:hover,
a.banner-btn.btn.btn-primary:hover {
    background-color: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
    box-shadow: inset 0px -3rem 0px 18px #000 !important;
}

/* Flèches du carrousel - Jaune par défaut */
.flexslider .flex-next,
.flexslider .flex-prev,
.flex-direction-nav .flex-next,
.flex-direction-nav .flex-prev {
    background-color: #FEDD1F !important;
    border-color: #FEDD1F !important;
}

/* Flèches du carrousel - Noir au hover */
.flexslider .flex-next:hover,
.flexslider .flex-prev:hover,
.flex-direction-nav .flex-next:hover,
.flex-direction-nav .flex-prev:hover {
    background-color: #000 !important;
    border-color: #000 !important;
}

/* Points du carrousel - Jaune */
.flex-control-nav.flex-control-paging li a,
.flex-control-paging li a {
    background-color: #FEDD1F !important;
    border-color: #FEDD1F !important;
}

/* Point actif du carrousel - NOIR */
.flex-control-nav.flex-control-paging li a.flex-active,
.flex-control-paging li a.flex-active {
    background-color: #000 !important;
    border-color: #000 !important;
    opacity: 1 !important;
}

/********************************************************
  Mobile Touch Fix - Marketplace Top Sellers Clearfix
********************************************************/
/* Fix: home-top-sellers blocks clicks on mobile due to float collapse */
.home-top-sellers,
#page_home_top_seller,
#page_home_followed_seller {
    overflow: hidden !important; /* Contains floated children */
    clear: both !important;
}

/* Additional clearfix using :after pseudo-element */
.home-top-sellers:after,
#page_home_top_seller:after,
#page_home_followed_seller:after {
    content: "" !important;
    display: table !important;
    clear: both !important;
}

/* Ensure proper height calculation on mobile */
@media (max-width: 767px) {
    .home-top-sellers {
        min-height: auto !important;
        height: auto !important;
    }
    
    #page_home_top_seller,
    #page_home_followed_seller {
        display: flow-root !important; /* Modern clearfix alternative */
    }
}

/********************************************************
  Fix: Seller Name Text Wrapping in Cards
********************************************************/
/* Allow seller names to wrap on multiple lines with smaller font */
.seller-miniature .seller-name,
#page_home_top_seller .seller-name,
#page_home_followed_seller .seller-name {
    font-size: 10px !important; /* Taille encore plus réduite */
    line-height: 1.25 !important;
    margin-bottom: 5px !important;
    font-weight: 600 !important; /* Plus gras pour compenser la petite taille */
}

.seller-miniature .seller-name a,
#page_home_top_seller .seller-name a,
#page_home_followed_seller .seller-name a {
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: keep-all !important; /* Force à garder les mots entiers */
    hyphens: none !important;
    line-height: 1.25 !important;
    max-width: 100% !important;
    display: block !important;
    font-size: 10px !important;
    padding: 0 3px !important; /* Padding minimal */
    font-weight: 600 !important;
    letter-spacing: -0.2px !important; /* Légère compression pour gagner de l'espace */
}

/* Ensure seller description container can accommodate multi-line text */
.seller-miniature .seller-description {
    min-height: auto !important;
    height: auto !important;
    padding: 12px 3px !important; /* Padding minimal sur les côtés */
}

/* Ensure thumbnail container maintains proper height */
.seller-miniature .thumbnail-container {
    height: auto !important;
    min-height: 300px !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 10px 5px 15px !important; /* Réduit le padding du conteneur */
}

/* Make seller-thumbnail area flexible */
.seller-miniature .seller-thumbnail {
    flex-shrink: 0 !important;
}

/* Seller description fills remaining space */
.seller-miniature .seller-description {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

/* Number of products - smaller font too */
.seller-miniature .number-product {
    font-size: 10px !important;
    margin-top: 3px !important;
    color: #666 !important;
}

/* Adjust for mobile */
@media (max-width: 767px) {
    .seller-miniature .thumbnail-container {
        min-height: 280px !important;
        padding: 8px 3px 12px !important;
    }
    
    .seller-miniature .seller-name,
    .seller-miniature .seller-name a {
        font-size: 9px !important; /* 9px sur mobile */
        letter-spacing: -0.3px !important;
    }
    
    .seller-miniature .number-product {
        font-size: 9px !important;
    }
}

/********************************************************
  Réduction de la hauteur des cartes TOP BOUTIQUES 
  uniquement pour la section (thème Habillement)
********************************************************/
/* Réduction directe pour le thème Habillement */
#page_home_top_seller .seller-miniature,
.home-top-sellers #page_home_top_seller .seller-miniature,
div#page_home_top_seller .seller-miniature {
    min-width: 220px !important;
    width: auto !important;
}

#page_home_top_seller .seller-miniature .thumbnail-container,
.home-top-sellers #page_home_top_seller .seller-miniature .thumbnail-container,
div#page_home_top_seller .seller-miniature .thumbnail-container,
.home-top-sellers div#page_home_top_seller .seller-miniature .thumbnail-container {
    min-height: 150px !important;
    max-height: 150px !important;
    height: 150px !important;
    padding: 5px 10px 8px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Réduction de la hauteur de l'image */
#page_home_top_seller .seller-miniature .seller-thumbnail,
#page_home_top_seller .seller-miniature .seller-thumbnail img,
.home-top-sellers #page_home_top_seller .seller-miniature .seller-thumbnail,
.home-top-sellers #page_home_top_seller .seller-miniature .seller-thumbnail img,
div#page_home_top_seller .seller-miniature .seller-thumbnail img {
    max-height: 80px !important;
    max-width: 100% !important;
    height: auto !important;
    width: auto !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    display: block !important;
}

/* Réduction de l'espacement dans la description */
#page_home_top_seller .seller-miniature .seller-description,
.home-top-sellers #page_home_top_seller .seller-miniature .seller-description,
div#page_home_top_seller .seller-miniature .seller-description {
    padding: 5px 5px !important;
    margin-top: 3px !important;
    flex: 0 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    min-height: auto !important;
    height: auto !important;
    width: 100% !important;
}

/* Réduction de la taille du nom de la boutique */
#page_home_top_seller .seller-miniature .seller-name,
#page_home_top_seller .seller-miniature .seller-name a,
.home-top-sellers #page_home_top_seller .seller-miniature .seller-name,
.home-top-sellers #page_home_top_seller .seller-miniature .seller-name a {
    font-size: 11px !important;
    line-height: 1.2 !important;
    margin-bottom: 3px !important;
    text-align: center !important;
    width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

/* Réduction de la taille du nombre de produits */
#page_home_top_seller .seller-miniature .number-product,
.home-top-sellers #page_home_top_seller .seller-miniature .number-product {
    font-size: 9px !important;
    margin-top: 2px !important;
    text-align: center !important;
    width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
}

/* Ajustement pour mobile dans la section */
@media (max-width: 767px) {
    #page_home_top_seller .seller-miniature .thumbnail-container,
    .home-top-sellers #page_home_top_seller .seller-miniature .thumbnail-container,
    div#page_home_top_seller .seller-miniature .thumbnail-container {
        min-height: 140px !important;
        max-height: 140px !important;
        padding: 4px 3px 6px !important;
    }
    
    /* Réduction supplémentaire de l'image sur mobile */
    #page_home_top_seller .seller-miniature .seller-thumbnail img,
    .home-top-sellers #page_home_top_seller .seller-miniature .seller-thumbnail img,
    div#page_home_top_seller .seller-miniature .seller-thumbnail img {
        max-height: 80px !important;
    }
    
    #page_home_top_seller .seller-miniature .seller-name,
    #page_home_top_seller .seller-miniature .seller-name a {
        font-size: 10px !important;
    }
    
    #page_home_top_seller .seller-miniature .number-product {
        font-size: 8px !important;
    }
}

/* Flexslider */

#index .spinner {
  background: url(../img/codezeel/loading.gif) no-repeat center center #f6f6f6;
  z-index: 100000;
  min-height: 600px;
  width: 100%;
}
@media (max-width: 1600px) {
  #index .spinner {
    min-height: 500px;
  }
}
@media (max-width: 1199px) {
  #index .spinner {
    min-height: 400px;
  }
}
@media (max-width: 991px) {
  #index .spinner {
    min-height: 340px;
  }
}
@media (max-width: 767px) {
  #index .spinner {
    min-height: 230px;
  }
}
@media (max-width: 480px) {
  #index .spinner {
    min-height: 180px;
    background-size: 8%;
  }
}
@media (max-width: 380px) {
  #index .spinner {
    min-height: 120px;
  }
}
.product-attributes {
  margin-top: 5px;
  font-size: 14px;
}

.size-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 5px 0 0;
}

.size-option {
  background: #f5f5f5;
  border: 1px solid #ddd;
  padding: 5px 10px;
  margin-right: 5px;
  border-radius: 3px;
  cursor: pointer;
}

.size-option:hover {
  background: #ddd;
}

/********************************************************
	Product Card Alignment Fix - Flexbox Solution
********************************************************/

/* Make product miniature a flex container with column direction */
.products .product-miniature {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

/* Make product description fill available space */
.products .product-description {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    min-height: auto !important; /* Override existing min-height */
}

/* Ensure product title has consistent space */
.products .product-description .product-title {
    min-height: 3em !important; /* Approximate 2 lines height */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

/* Container for variable content (availability, variants) */
.products .product-description .highlighted-informations {
    min-height: 2.5em !important; /* Reserve space for content like "RUPTURE DE STOCK" */
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
}

/* Ensure review/seller section has fixed height with ellipsis */
.products .product-description .product-reviews,
.products .product-description .product_list_shop_by {
    min-height: 2em !important; /* Reserve space for "Par : Vendeur" */
    max-width: 100% !important; /* Required for ellipsis */
    overflow: visible !important; /* Changed to visible for hover effect */
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    display: flex !important; /* Changed to flex for vertical alignment */
    align-items: center !important; /* Vertical center alignment */
    position: relative !important; /* For tooltip positioning */
    line-height: 1.5 !important;
}

/* Apply ellipsis to seller name link */
.products .product-description .product_list_shop_by a {
    display: inline-block !important;
    max-width: 80% !important; /* Limit seller name width */
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
    transition: all 0.3s ease !important;
}

/* Hover effect - show full text */
.products .product-description .product_list_shop_by:hover {
    overflow: visible !important;
    z-index: 10 !important;
}

.products .product-description .product_list_shop_by:hover a {
    max-width: none !important;
    overflow: visible !important;
    white-space: normal !important;
    background: #ffffff !important;
    padding: 5px 10px !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    position: relative !important;
    z-index: 11 !important;
    display: inline-block !important;
}

/* Price section should have consistent space */
.products .product-description .product-price-and-shipping {
    min-height: 3em !important;
    margin-bottom: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
}

/* Push product actions (buttons) to the bottom */
.products .product-description .product-actions {
    margin-top: auto !important; /* This pushes the button to the bottom */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Keep product detail hidden or at bottom if shown */
.products .product-description .product-detail {
    margin-top: auto !important;
}

/* Make sure list items have equal height */
.products .product_list.gridcount li.product_item,
.products .product_list.grid li.product_item {
    display: flex !important;
    flex-direction: column !important;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .products .product-description .product-title {
        min-height: 2.5em !important;
    }
    
    .products .product-description .highlighted-informations {
        min-height: 2em !important;
    }
}

/********************************************************
	Product Card Responsive Grid Fix
********************************************************/

/* Ensure product list container is properly structured */
.products .product_list.grid,
.products .product_list.gridcount {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Fix product items width and flex behavior */
.products .product_list.grid li.product_item,
.products .product_list.gridcount li.product_item,
.products .product_list.grid li.item,
.products .product_list.gridcount li.item {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Ensure product miniature takes full height */
.products .product_list li.product_item .product-miniature,
.products .product_list li.item .product-miniature {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Fix thumbnail container */
.products .product_list li.product_item .thumbnail-container,
.products .product_list li.item .thumbnail-container {
    width: 100% !important;
    position: relative !important;
    overflow: hidden !important;
    padding-top: 15px !important;
    text-align: center !important;
}

/* Responsive breakpoints for product grid */
/* Mobile - 1 column */
@media (max-width: 575px) {
    .products .product_list.grid li.product_item,
    .products .product_list.gridcount li.product_item,
    .products .product_list.grid li.item {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* Small tablets - 2 columns */
@media (min-width: 576px) and (max-width: 767px) {
    .products .product_list.grid li.product_item,
    .products .product_list.gridcount li.product_item,
    .products .product_list.grid li.item {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    
    .products .product_list.grid li.product_item:nth-child(2n),
    .products .product_list.gridcount li.product_item:nth-child(2n) {
        border-right: 0 !important;
    }
}

/* Tablets - 3 columns */
@media (min-width: 768px) and (max-width: 991px) {
    .products .product_list.grid li.product_item,
    .products .product_list.gridcount li.product_item,
    .products .product_list.grid li.item {
        width: 33.333333% !important;
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
    }
    
    .products .product_list.grid li.product_item:nth-child(3n),
    .products .product_list.gridcount li.product_item:nth-child(3n) {
        border-right: 0 !important;
    }
}

/* Desktop - 4 columns */
@media (min-width: 992px) and (max-width: 1199px) {
    .products .product_list.grid li.product_item,
    .products .product_list.gridcount li.product_item,
    .products .product_list.grid li.item {
        width: 25% !important;
        flex: 0 0 25% !important;
        max-width: 25% !important;
    }
    
    .products .product_list.grid li.product_item:nth-child(4n),
    .products .product_list.gridcount li.product_item:nth-child(4n) {
        border-right: 0 !important;
    }
}

/* Large Desktop - 4 columns (keep same as desktop) */
@media (min-width: 1200px) {
    .products .product_list.grid li.product_item,
    .products .product_list.gridcount li.product_item,
    .products .product_list.grid li.item {
        width: 25% !important;
        flex: 0 0 25% !important;
        max-width: 25% !important;
    }
    
    .products .product_list.grid li.product_item:nth-child(4n),
    .products .product_list.gridcount li.product_item:nth-child(4n) {
        border-right: 0 !important;
    }
}

/* Fix for product images to maintain aspect ratio */
.products .product_list li.product_item .thumbnail-container img,
.products .product_list li.item .thumbnail-container img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: cover !important;
}

/* Ensure product description doesn't overflow */
.products .product_list li.product_item .product-description,
.products .product_list li.item .product-description {
    width: 100% !important;
    padding: 15px !important;
    box-sizing: border-box !important;
}

/* Reduce button width on desktop only to stay inside card */
@media (min-width: 992px) {
    .products .product-description .product-actions form,
    .products .product-description .product-actions button {
        max-width: calc(100% - 30px) !important;
        margin-left: 15px !important;
        margin-right: 15px !important;
    }
    
    .products .product-description .product-actions button {
        font-size: 12px !important;
        padding: 8px 10px !important;
        white-space: normal !important;
        line-height: 1.3 !important;
    }
}
