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

/* Order confirmation style */

strong.wc-item-meta-label {
    display: none;
}

.yith_ctpw_thumb img {
    max-width: 50px;
    border-radius: 12px;
}

/* Product addons accordion */
.wapf-accordion {
  margin-bottom: 20px;
  padding: 0 5px;
}

.wapf-accordion > .wapf-section:first-child {
  background: #d0f1ff;
  border-radius: 12px;
  margin: 0;
  padding: 15px;
  cursor: pointer;
  position: relative;
  transition: all linear 400ms;
}

.wapf-accordion-title .wapf-field-container,
.wapf-accordion-title label,
.wapf-accordion-title .wapf-field-label {
  margin: 0;
  padding: 0;
  cursor: pointer;
  color: #000;
}

.wapf-accordion-title:after {
  content: "";
  position: absolute;
  top: 50%;
  margin-top: -8px;
  right: 10px;
  width: 16px;
  transition: all 0.2s;
  height: 16px;
  background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMjAgNTEyIj48cGF0aCBkPSJNMTQzIDM1Mi4zIDcgMjE2LjNjLTkuNC05LjQtOS40LTI0LjYgMC0zMy45bDIyLjYtMjIuNmM5LjQtOS40IDI0LjYtOS40IDMzLjkgMGw5Ni40IDk2LjQgOTYuNC05Ni40YzkuNC05LjQgMjQuNi05LjQgMzMuOSAwbDIyLjYgMjIuNmM5LjQgOS40IDkuNCAyNC42IDAgMzMuOWwtMTM2IDEzNmMtOS4yIDkuNC0yNC40IDkuNC0zMy44IDB6Ii8+PC9zdmc+)
    center center no-repeat;
}
.wapf-accordion.open .wapf-accordion-title:after {
  transform: rotate(180deg);
}

.wapf-accordion.open .wapf-section:first-child {
    border-radius: 12px 12px 0 0;
}


.wapf-section.wapf-accordion > .wapf-section:last-child {
  display: none;
}

.wapf-accordion-body {
  padding: 15px 0px 0px 15px;
  background: #f3f3f3;
  /* border-top: 1px solid #f5f1ee; */
  border-radius: 0 0 12px 12px;
}

/* Product addons accordion End */

/* Single product gallery image size */
.woocommerce-product-gallery__image img {
  max-height: 600px; /* Adjust this value as needed */
  height: auto;
  width: auto;
  object-fit: cover;
}

/* Subtle white glow under header */
.whb-main-header {
  position: relative;
  z-index: 50;
}

.whb-main-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 25px;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.14) 40%, rgba(255, 255, 255, 0) 100%);
  filter: blur(14px);
  z-index: -1;
}

/* Show short description on product loop */

.wd-hover-with-fade .content-product-imagin {
  display: none !important; /* hide the popover panel */
}

.wd-hover-with-fade .fade-in-block {
  position: static !important;
  inset: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  padding: 0 !important;
  border: 0 !important;
  margin-top: var(--wd-prod-gap) !important; /* tidy spacing */
  gap: 0 !important;
}

/* Grid product style */

.wd-product .product-wrapper {
    border: 1px solid #cdcdcd;
}
.product-element-top.wd-quick-shop {
    border-radius: 12px 12px 0 0;
}

.wd-product {
  transition: all ease-in 160ms;
  border-radius: var(--wd-brd-radius);
}



/*
.wd-product.wd-hover-fw-button .wrap-price {
  padding: 1rem;
}*/
html .wd-product .price, html .wd-product .price > .amount, html .wd-product .price ins > .amount {
    font-size: 2rem;
}

.wd-hover-with-fade .product-element-bottom {
  padding: 0 24px 24px;
  justify-content: space-between;
}
 .icon-bag:before {
  inset: 0;
  align-items: center;
  justify-content: center;
  font-weight: 400;
  font-size: 20px;
  transition: opacity .15s ease, transform .25s ease;
  transform: translateY(100%);
  content: "\f105";
  font-family: "woodmart-font";
}
/* Extra style */

.wd-add-btn-replace .add-to-cart-loop::before {

  content: "\0F147A" !important;
}

/* Topping Notice */
.topping-notice {
  padding: 12px 15px;
  margin: 15px 0;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #155724;
  text-align: center;
  transition: all 0.3s ease;
  position: sticky;
  bottom: 5rem;
}

.popup-quick-view .topping-notice {
  bottom:-1rem;
}

.wd-hover-with-fade .fade-in-block {
  margin-top: 5px !important;
  margin-bottom: 5px !important;
}

html .wd-page-content .wd-product .product-wrapper .wd-entities-title {
  margin-top: 10px;
  margin-bottom: .6rem;
}



.wapf-checkbox.max-reached {
  opacity: 0.6;
  cursor: not-allowed;
}
.wapf-checkbox.max-reached label {
  cursor: not-allowed;
}
.wapf-label-text {
  white-space: nowrap;
}

/* Two columns for checkboxes inside */
.wapf-field-group[data-group="141"] .wapf-checkboxes,
.wapf-field-group[data-group="105"] .wapf-checkboxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 15px;
}

.wapf-field-group[data-group="141"] .wapf-checkbox,
.wapf-field-group[data-group="105"] .wapf-checkbox {
  margin-bottom: 0 !important;
  break-inside: avoid;
}

span.item-variation-name {
    display: none;
}


/*
.wd-product.wd-hover-fw-button .wd-add-btn>a {
    width: 50% !important;
}

.wd-product.wd-hover-fw-button .wd-add-btn {
    display: flex;
    justify-content: flex-start;
}

.wd-product.wd-hover-fw-button {
    --text-align: start;
    --wd-more-desc-lines: 4em;
    background: #fff1d6;
    border-radius: 12px;
    padding: 12px;
}*/
.price-add-to-cart-wrapper {
display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top:auto;
}


/* Mobile CSS */

@media (max-width: 767px) {
   /*Mobile full width for checkboxes inside */
    .wapf-field-group[data-group="141"],
    .wapf-field-group[data-group="105"] {
        width: 100%;
        margin-right: 0;
    }
    
    .wapf-field-group[data-group="141"] .wapf-checkboxes,
    .wapf-field-group[data-group="105"] .wapf-checkboxes {
        grid-template-columns: 1fr;
        max-height: 48vh;
    overflow-y: scroll;
    }
  .wd-product:hover,
  .wd-product:focus {
    box-shadow: none !important;
    padding: 0 !important;
    transform: none !important;
  }

  .wd-product.wd-hover-fw-button .wrap-price {
  padding: .5rem .2rem;
  }
  .price-add-to-cart-wrapper {
  margin-top: auto !important;
  }
  .wd-product .product-wrapper {
  height: 100%;
 }
 .wd-hover-with-fade .product-element-bottom {
  padding: 0 2vw 2vw;
}
.price-add-to-cart-wrapper {
    gap: 1vw;
}
 html .wp-theme-woodmart .wd-product .price, 
 html .wp-theme-woodmart .wd-product .price > .amount, 
 html .wp-theme-woodmart .wd-product .price ins > .amount {
    font-size: clamp(14px, 5cqw, 18px);
 }
  .wp-theme-woodmart .wd-products[class*="wd-stretch-cont"] .wd-product :is(.price,.wrap-price,.product-rating-price) {
    margin-top: 0;
  }
}

.whb-header .whb-general-header {
    box-shadow: 0px 10px 10px 0px rgba(0,0,0,0.54);
}

/* Real noise texture overlay on header */
.whb-header .whb-general-header {
    position: relative;
    overflow: hidden; /* keep noise inside header */
}

.whb-header .whb-general-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAAAAABWESUoAAAECElEQVR4nAXB+08adwAA8PvewR0ciLxfikB0PIaKWqRqa9VaW9l0bZZ1icuy/eKy/2j7YcvSP8w3H8DmJycnJycnJydn+9cv/wlBsZqbZ0utX6W12T4ndbq7Vb6sZqf1g+U7S7bLrdO77Xb7PZ7HYbDYbDYbDYbDYbDYbDZfLpfL5fL5fL5fL5fL5fL5fL5fL5fL5fL7e7b7bbLbLbLbbfb7ff79/v9/v9/v9/v9/v9/v9/v9/v9/v+3y+/2+32+32+32+32+32+32+32+32+39/v9/v9/v9/v9/v9/v9/v9/v9/v9Pv9/v9/v9/v9/v9/v9/v9/v9/v9/v9/v96TJ+z0SqVSoVCqVSoVCqVSoVCqVSoVCqVSoVCqVSoVCqVSpVKpVKpVKpVKpVKpVKpVKpVKpVKpVKp9Pp9Pp9Pp9Pp9Pp9Pp9Pp9Pp9Pp9Pr9fr9fr9fr9fr9fr9fr9fr9fr9fr9fr8fj8fj8fj8fj8fj8fj8fj8fj8fj8fj+fz+fz+fz+fz+fz+fz+fz+fz+fz+fz+f1+v1+v1+v1+v1+v1+v1+v1+v1+v1+v3+/3+/3+/3+/3+/3+/3+/3+/3+/3+3y93u92u92u92u92u92u92u92u92u92+3293u93u93u93u93u93u93u93u93u93e73e73e73e73e73e73e73e73e73e7/f7/f7/f7/f7/f7/f7/f7/f7/f79/v9/v9/v9/v9/v9/v9/v9/v9/v/3+Pz+Pz+Pz+Pz+Pz+Pz+Pz+Pz+Pz+fz8/n8/n8/n8/n8/n8/n8/n8/n8/n8/v9/v9/v9/v9/v9/v9/v9/v9/v9/v39/v9/v9/v9/v9/v9/v9/v9/v9/v9fv9/v9/v9/v9/v9/v9/v9/v9/v9/v9vv7/f7/f7/f7/f7/f7/f7/f7/f7/f79/v9/v9/v9/v9/v9/v9/v9/v9/v9/w8PDw8PDw8PDw8PDw8PDw8PDw8PDw8PDw8P/AAAAAElFTkSuQmCC");
    background-repeat: repeat;
    opacity: 0.20; /* adjust intensity: 0.10 subtle, 0.30 stronger */
    mix-blend-mode: soft-light; /* keeps your original color visible */
}
