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

/* Scoate fundalul alb + umbra de pe containerul butoanelor (wishlist etc.) */
.wd-buttons.wd-pos-r-t{
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

.product-label.new {
	background-color: black !important;
}

/* CART: ascunde zona de cupon */
.woocommerce-cart .coupon,
.woocommerce-cart form.woocommerce-cart-form .coupon,
.woocommerce-cart .woocommerce-cart-form__contents .coupon {
  display: none !important;
}

/* CHECKOUT: ascunde zona "Have a coupon?" + formularul */
.woocommerce-checkout .woocommerce-form-coupon-toggle,
.woocommerce-checkout form.checkout_coupon {
  display: none !important;
}

/* CHECKOUT: ascunde un div gol de sub cart */
.e-cart-totals.e-cart-section {
    display: none;
}

/* WD - buton add to cart din arhiva produse: doar semnul + */

.product-grid-item .wd-add-btn,
.product-grid-item .wd-add-btn .add-to-cart-loop {
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-flex !important;
}

.product-type-variation .wd-add-btn {
    display: none !important;
}

.products .product .add-to-cart-loop {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 14px !important;
    background: transparent !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 6px 18px rgba(0,0,0,.12) !important;
    transition: all .25s ease !important;
}

.products .product .add-to-cart-loop:hover,
.products .product .add-to-cart-loop:focus,
.products .product .add-to-cart-loop:active {
    background: transparent !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 24px rgba(0,0,0,.18) !important;
}

/* ascunde textul */
.products .product .add-to-cart-loop .wd-action-text {
    display: none !important;
}

/* container icon */
.products .product .add-to-cart-loop .wd-action-icon {
    position: relative !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
}

/* ascunde complet iconita nativa */
.products .product .add-to-cart-loop .wd-check-icon,
.products .product .add-to-cart-loop .wd-action-icon *,
.products .product .add-to-cart-loop .wd-action-icon *::before,
.products .product .add-to-cart-loop .wd-action-icon *::after,
.products .product .add-to-cart-loop i,
.products .product .add-to-cart-loop svg,
.products .product .add-to-cart-loop::before,
.products .product .add-to-cart-loop::after {
    display: none !important;
    content: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    background: none !important;
    box-shadow: none !important;
}

/* afiseaza doar semnul + */
.products .product .add-to-cart-loop .wd-action-icon::before {
    content: "+" !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    inset: 0 !important;
    font-size: 28px !important;
    line-height: 1 !important;
    font-weight: 400 !important;
    color: black !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    background: none !important;
}

/* pastreaza + si la hover */
.products .product .add-to-cart-loop:hover .wd-action-icon::before,
.products .product .add-to-cart-loop:focus .wd-action-icon::before,
.products .product .add-to-cart-loop:active .wd-action-icon::before {
    content: "+" !important;
    display: flex !important;
    color: black !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* optional: fara animatii interne WD */
.products .product .add-to-cart-loop .wd-action-icon,
.products .product .add-to-cart-loop .wd-action-icon::before {
    transform: none !important;
    animation: none !important;
    transition: none !important;
}

@media (max-width: 767px) {
  .moze-mobile-stretch {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
  }
  .moze-mobile-stretch .swiper,
  .moze-mobile-stretch .swiper-container,
  .moze-mobile-stretch .wd-carousel,
  .moze-mobile-stretch .woodmart-carousel {
    width: 100% !important;
  }
}

.e-con-inner:has(.woocommerce-order) .moze-checkout-cart {
	display: none !important;
}

/* Mărimi fără stoc, numai pe produsele Back in stock */
body.moze-bis-enabled-product
.wd-swatches-product[data-id="pa_size"]
.wd-swatch.wd-disabled {
	border-color: #d7b8f3 !important;
	box-shadow: 0 0 0 1px #d7b8f3 !important;
	background-color: #f8f2fc !important;
	opacity: 1 !important;
}

/* Mărimea fără stoc selectată */
body.moze-bis-enabled-product
.wd-swatches-product[data-id="pa_size"]
.wd-swatch.wd-disabled.wd-active {
	border-color: #a96fd3 !important;
	box-shadow: 0 0 0 2px #d7b8f3 !important;
	background-color: #efe1f8 !important;
}

/* ascundem cele 3 bari orizontale de la filtrare */
.wd-off-canvas-btn.wd-burger-icon .wd-action-icon {
    display: none !important;
}
