/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

@media (width <= 768px) {
  .wd-marquee-item{
    width: 250px;
  }
}

.whb-sticked .whb-header-bottom,
body:is(
    .woocommerce-account,
    .woocommerce-shop,
    .woocommerce-checkout,
    .page-id-32,
    .page-id-25,
  )
  .whb-header-bottom {
  background-color: black;
}
body:is(
    .woocommerce-account,
    .woocommerce-shop,
    .woocommerce-cart,
    .woocommerce-checkout,  
    .single-post
  ) .whb-header-bottom {
  background-color: black;
}
.wd-header-cart .wd-tools-icon.wd-icon-alt:before {
  color: white;
}

body .elementor-widget-wd_single_product_add_to_cart > .elementor-widget-container > p.in-stock{
  display: none;
}

body .elementor-widget-wd_single_product_add_to_cart > .elementor-widget-container form p.in-stock{
  margin-bottom: 4px;
}



.single-product .cart {
 
  .quantity {
    display: none;
  }
}

.surface-input-field{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;

  .row{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    border-top: 1px solid #F3F3F3;
    padding: 14px 0;

    & :is(label, .nombre-paquets-info, .total-price-info){
      font-weight: 600 !important;
    }

    .nombre-paquets-value,.surface-value{
      font-weight: 600;
    }

    .total-price-value{
      font-weight: 600;
      font-size: 18px;
      color: var(--e-global-color-799e63c);
    }

    p,label{
      margin-bottom: 0;
    }
  }
}

.surface-input-buttons{
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  border: 1px solid #F3F3F3;
  width: fit-content;
  border-radius: 99px;
  -webkit-border-radius: 99px;
  -moz-border-radius: 99px;
  -ms-border-radius: 99px;
  -o-border-radius: 99px;

  #surface_souhaitee {
    width: 110px;
  }
}

input#surface_souhaitee {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  -webkit-border-radius: 0;
  -moz-border-radius: 0;
  -ms-border-radius: 0;
  -o-border-radius: 0;

  &::-webkit-inner-spin-button {
    display: none;
  }
}

/* .woocommerce-product-gallery img{
    max-width: 400px;
} */

:is(
    .products-bordered-grid-ins,
    .wd-products-with-bg:not(.products-bordered-grid),
    .wd-products-with-shadow:not(.products-bordered-grid)
  )
  .wd-product.wd-hover-buttons-on-hover
  .product-wrapper {
  border-radius: 0px;
  -webkit-border-radius: 0px;
  -moz-border-radius: 0px;
  -ms-border-radius: 0px;
  -o-border-radius: 0px;
  height: 100%;
}

body
  .wd-nav[class*="wd-style-"]
  > li:is(.current-menu-item, .wd-active, .active)
  > a {
  color: white;
}

body .wd-nav[class*="wd-style-"] > li:hover > a {
  color: var(--wd-primary-color);
}

.list-marques ul {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 50px;
  list-style-type: none;
  margin-bottom: 0;

  li {
    margin-bottom: 0;

    a {
      font-size: 20px;
      color: black;
      font-weight: 700;
    }
  }
}

.pwb-brands-in-loop span {
  margin-right: 8px;
}

.brand-products h3 {
  color: #000000;
  font-family: "Playfair Display", Sans-serif;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 600;
}

.after-hall-download-button {
  font-family: "Quicksand", Sans-serif;
  font-size: 18px;
  fill: #ffffff;
  color: #ffffff;
  background-color: #000000;
  border-style: solid;
  border-width: 1px 1px 1px 1px;
  border-radius: 25px 25px 25px 25px;
  padding: 15px 60px 15px 60px;
}

.wd-toolbar.wd-toolbar-label-show .wd-tools-element a {
  color: black !important;

  &::before {
    color: #000000 !important;
  }
}
.wd-toolbar.wd-toolbar-label-show .wd-tools-element .wd-tools-icon:before {
  color: #000000 !important;
}

@media (width < 1024px) {
  body .wd-header-wishlist .wd-tools-icon:before {
    color: #000000 !important;
  }

  .wd-tools-element .wd-tools-icon:before {
    color: white !important;
  }
}

.chart-color-icon {
  border-radius: 99px;
  -webkit-border-radius: 99px;
  -moz-border-radius: 99px;
  -ms-border-radius: 99px;
  -o-border-radius: 99px;
  text-transform: none;

  &::before {
    content: "";
    background-image: url(./chart-icon.svg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
    display: inline-block;
    margin-right: 4px;
  }
}

.fpmp_shop_button {
  width: max-content !important;
  font-size: 12px !important;
}

.price-suffix-paquet {
  line-height: 1;
  margin-bottom: 0;
  font-size: 16px;
  color: #aaa;
}

.product-wrapper {
  .wrap-price {
    .price {
      .price-info {
        bdi {
          font-size: clamp(24px, 2vw, 34px) !important;
        }
      }
    }
  }
}

.suggestion-content {
  .price-info {
    .woocommerce-Price-amount {
      font-size: clamp(20px, 2vw, 28px) !important;
    }
  }
}
.price-info {
  line-height: 1;
  margin-bottom: 0;
  font-size: 18px;
  color: #aaa;
  .woocommerce-Price-amount {
    font-size: clamp(26px, 2vw, 42px) !important;
  }
}

:is(ins, del) .woocommerce-Price-amount {
  font-size: unset !important;
  bdi {
    color: black !important;
  }
}

ins .woocommerce-Price-amount bdi {
  font-size: 20px !important;
}
del {
  color: black !important;
  .woocommerce-Price-amount bdi {
    font-size: 18px !important;
  }
}

.woocommerce-price-suffix,
.wd-price-unit {
  display: none !important;
}

.img_cat {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  overflow: hidden;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.product-wrapper .product-element-bottom .wrap-price {
  flex-direction: column;
  align-items: flex-start !important;
  gap: 0 !important;
  margin-bottom: 16px;
}

.wd-carousel-item .product {
  .wd-product-footer {
    flex-wrap: wrap;
  }
}

body .wd-toolbar>a, body .wd-toolbar>div{
  flex: 1 1 20% !important;

  .wd-toolbar-label{
    @media (width <= 768px) {
      display: none !important;
    }
  }

}

body .wd-toolbar.wd-toolbar-label-show>a, body .wd-toolbar.wd-toolbar-label-show>div a{
  @media (width <= 768px) {
    padding-bottom: 0 !important;
  }
}

body .wd-toolbar-search{
  order: 3;
}
body .wd-toolbar-link {
  order: 2;
}
body .wd-header-my-account {
  order: 5;
}
body .wd-header-wishlist {
  order: 2;
}
body .wd-header-cart {
  order: 4;
}



/* @media (768px <= width <= 1200px) {
  .wd-carousel-item {
    flex: 0 0 calc(100% / 2.5) !important;
    max-width: calc(100% / 2.5) !important;
  }
} */

/* @media (width <= 768px) {
  .wd-carousel-item{
    flex: 0 0 calc(100% / 1.5) !important;
    max-width: calc(100% / 1.5) !important;
  }
} */


.product-labels .product-label.onsale.after-hall-promo{
  background-color: var(--wd-primary-color) ;
  color: white ;
  font-weight: 600 ;
  
}

.surface-info-rouleau{
  font-family: "Playfair Display", Arial, Helvetica, sans-serif;
  margin-top: 8px;
  bdi{
    font-weight: 400;
  }
  
}

.after-hall-promo-container{
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 10px;
  width: 100%;
  background-color: var(--wd-primary-color);
  color: white;
  text-align: center;
  font-weight: 600;
  transition: all .3s ease;
  -webkit-transition: all .3s ease;
  -moz-transition: all .3s ease;
  -ms-transition: all .3s ease;
  -o-transition: all .3s ease;
}

.wd-product{
  &:hover{
    .after-hall-promo-container{
      transform: translateY(calc(var(--wd-trans-h) * -1));
      -webkit-transform: translateY(calc(var(--wd-trans-h) * -1));
      -moz-transform: translateY(calc(var(--wd-trans-h) * -1));
      -ms-transform: translateY(calc(var(--wd-trans-h) * -1));
      -o-transform: translateY(calc(var(--wd-trans-h) * -1));
}
  }
}

.single-post .wd-page-content{
  /* margin-top: 200px; */

  .container{
    min-width: 100%;
    padding-inline: 0;
  }
}

@media (width <= 992px) {
  .single-post .wd-page-content{
    /* margin-top: 100px; */

    .container{
      padding-inline: 16px;
    }
  }
}

.woocommerce-cart-form__contents th.product-quantity::before {
    content: 'Nombre de paquets';
    color: #242424;
    font-size: 16px;
}
.woocommerce-cart-form__contents th.product-quantity {
    font-size: 0;
    color: transparent;
}
.pro-price-request-wrapper {
  background: #f7f7f7;
  padding: 20px;
  border-radius: 4px;
  margin-bottom: 20px;
}
.siret-form {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}
#siret_number, #siret_mail, #siret_phone {
  flex: 1 1 25%;
  padding: 8px;

  @media (width <= 1024px) {
    flex: 1 1 40%;
  }
  @media (width <= 768px) {
    flex: 1 1 100%;
  }
}

#verify_siret, #request_pro_price {
  background-color: #000;
  color: #fff;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 99px;
  transition: background-color 0.3s;
}
#verify_siret:hover, #request_pro_price:hover {
  background-color: #333;
}
#verify_siret:disabled {
  background-color: #4CAF50;
  cursor: not-allowed;
}



/* Search Styles */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.search-overlay.active {
  opacity: 1;
}

.search-content {
  width: 90%;
  max-width: 600px;
  position: relative;
  padding: 20px;
  background: white;
  border-radius: 8px;
  transform: translateY(-20px);
  transition: transform 0.3s ease-in-out;
}

.search-overlay.active .search-content {
  transform: translateY(0);
}

.search-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 32px;
  cursor: pointer;
  padding: 5px;
}

.search-form {
  display: flex;
  gap: 10px;
}

.search-input {
  flex: 1;
  padding: 6px 20px !important;
  border: 2px solid #e6e6e6 !important;
  height: unset !important;
}

.search-button {
  padding: 12px 24px;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.search-button:hover {
  background-color: #555;
}

.wd-toolbar-search .wd-tools-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wd-toolbar-search svg {
  width: 20px;
  height: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .search-content {
      width: 95%;
      padding: 15px;
  }
  
  .search-form {
      flex-direction: column;
  }
  
  .search-button {
      width: 100%;
  }
} 

.product-labels{
  left: unset !important;
    inset: 0 0 0 0 !important;
    top: unset !important;
  height: 100%;
  width: 100%;
  max-width: 100% !important;

    .onsale {
      margin: 8px 0 0 8px;
    }
}
.product-labels .product-label.out-of-stock{
  position: absolute;
    bottom: 0px;
    width: 100% !important;
    background-color: var(--wd-primary-color) !important;
    color: white !important;
    text-align: center;
    font-weight: 600;
    padding: 10px;
    transition: 0.3s;
    width: 100%;
    border-radius: 0;
}