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

.wd-product:not(.wd-hover-small)
  :is(.product-image-link, .hover-img)
  :is(picture, img),
.wd-suggestion-thumb img {
  aspect-ratio: 1/1;
  object-fit: cover;
}

.woocommerce-breadcrumb {
  position: relative;
  z-index: 0;
}

[class*="title-line-"] .wd-product .wd-entities-title {
  height: calc(var(--title-line-count, 1) * var(--title-line-height, 1.4em));
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  -webkit-line-clamp: 2;
}

.wd-suggestion .wd-entities-title,
.blog-design-masonry .wd-post-excerpt,
.wd-post .wd-post-title {
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  height: calc(var(--title-line-count, 2) * var(--title-line-height, 1.4em));
}

div.wd-search-cat > a,
.searchform.wd-with-cat input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.wd-post-thumb img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
}

.searchform.wd-with-cat input[type="text"] {
  color: #fff;
}

.whb-main-header .wd-social-icons.wd-style-colored > a {
  width: 26px;
  height: 26px;
}

.wd-social-icons.wd-style-colored > a .wd-icon {
  margin-bottom: -2px;
}

div.wd-search-cat > a {
  border-inline-color: rgba(255, 255, 255, 0.7);
}

.searchform.wd-with-cat input[type="text"] {
  border-color: rgba(255, 255, 255, 0.7);
}

.wd-load-more {
  border-radius: 40px;
}

[class*="wd-search-full-screen"].wd-opened {
  z-index: 9999;
}

header.whb-sticky-shadow.whb-sticked .whb-row:last-child {
  border-bottom: 1px solid rgba(129, 129, 120, 0.22);
}

.woocommerce-product-gallery
  .wd-gallery-images
  .wd-btn-arrow
  div.wd-arrow-inner {
  box-shadow: 3px 3px 12px -4px rgba(0, 0, 0, 0.54);
  color: var(--wd-arrow-color-dis, var(--color-gray-400));
  background: #fff;
  border-color: var(--wd-arrow-brd-color-dis, var(--wd-arrow-brd-color));
  border-radius: 50%;
  color: var(--wd-primary-color);
}

.woocommerce-product-gallery .wd-disabled .wd-arrow-inner {
  opacity: 0.6;
}

.shipping-free {
  text-transform: uppercase;
}

.shipping-free,
.woocommerce-checkout .form-row label {
  font-weight: bold;
}

a.wd-product-nav-btn:hover,
.shipping-free,
.wd-widget-collapse .widget-title:hover:after,
.wd-widget-collapse .widget-title:hover,
.wd-product .wd-action-btn > a,
.wd-nav-vertical > li > a:hover,
.wd-sub-menu li > a:hover,
.wd-social-icons.wd-style-default > a:hover,
.wd-action-btn > a:hover,
.wd-load-more:hover,
a:hover,
.wd-btn-arrow .wd-arrow-inner:hover,
.wd-disabled.wd-btn-arrow .wd-arrow-inner,
.wd-btn-arrow .wd-arrow-inner,
.wd-nav[class*="wd-style-"]
  > li:is(.current-menu-item, .wd-active, .active)
  > a,
div.wd-tools-element:hover > a,
.wd-nav[class*="wd-style-"].wd-nav-main > li > a:hover,
.wd-nav[class*="wd-style-"] > li > a:hover {
  color: var(--wd-primary-color);
}

.wd-disabled.wd-btn-arrow .wd-arrow-inner {
  opacity: 0.6;
}

.wd-nav[class*="wd-style-"].wd-nav-main > li > a {
  color: #fff;
}

div.wd-buttons .wd-action-btn > a {
  height: 35px;
  width: 35px;
}

.wd-content-layout {
  position: relative;
  z-index: 0;
}

.wd-action-btn > a:before {
  font-size: 16px;
}

.whb-mobile-right .wd-social-icons a:first-child {
  display: none;
}

/* Sticky on desktop */
.tab-sticky-wrapper {
  margin-top: -40px;
  position: relative;
  height: 60px;
  margin-bottom: 30px;
}

/* Keyframes for sliding from top */
@keyframes slideDownFromTop {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(0);
    border-bottom: 1px solid var(--brdcolor-gray-300);
  }
}

.tab-sticky-wrapper .wd-nav-wrapper {
  position: absolute;
  left: 0;
  width: 100%;
  background-color: var(--wd-main-bgcolor);
  transition: all 0.3s ease;
}

.tab-sticky-wrapper .wd-nav-wrapper.product-tab-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  animation: slideDownFromTop 0.3s ease forwards;
}

/* Optional: hide when scrolling down, show when scrolling up */
.wd-nav-wrapper.product-tab-fixed.scrolling-down {
  top: 0;
}
.wd-nav-wrapper.product-tab-fixed.scrolling-up {
  top: 50px;
}

@media (min-width: 1024px) {
  body.admin-bar .wd-nav-wrapper.product-tab-fixed.scrolling-down {
    top: 32px;
  }

  body.admin-bar .wd-nav-wrapper.product-tab-fixed.scrolling-up {
    top: 82px;
  }
  .whb-sticked .whb-general-header {
    display: none;
  }

  div.wd-search-full-screen .wd-suggestion {
    flex-basis: 20%;
  }
}

body.rtl  .wd-nav-tabs[class*="wd-style-underline"] .wd-nav-link{
  font-size: 18px;
}

@media (max-width: 1024px) {
  .tab-sticky-wrapper {
    margin-top: 0;
    margin-bottom: 0;
    height: 0;
  }
  .wd-content-layout {
    z-index: auto;
  }

  .woocommerce-product-gallery .wd-nav-arrows.wd-pos-sep,
  .wd-product .wd-buttons {
    display: none;
  }

  .product-tabs-wrapper iframe {
    height: 190px;
  }

  .tab-sticky-wrapper .wd-nav-wrapper {
    opacity: 0;
  }
  .tab-sticky-wrapper .wd-nav-wrapper.product-tab-fixed {
    opacity: 1;
    border-bottom-color: var(--wd-primary-color) !important;
    z-index: 4;
    mask-image: none;
  }

  .tab-sticky-wrapper .wd-nav-wrapper .wd-nav-tabs {
    gap: 10px;
  }
  .tab-sticky-wrapper .wd-nav-wrapper .wd-nav-link {
    font-size: 12px;
    color: #fff;
  }

  body.rtl  .wd-nav-tabs[class*="wd-style-underline"] .wd-nav-link{
    font-size: 16px;
  }
}

a.social-whatsapp {
  --wd-social-brand-color: #25d366;
}

.wd-nav[class*="wd-style-"] > li > a {
  color: rgba(255, 255, 255, 0.7);
}

.wd-brands.wd-with-bg div.wd-brand-item {
  background-color: rgba(255, 255, 255, 1);
}

.wd-search-full-screen .wd-suggestions-group {
  max-width: var(--wd-container-w);
  margin: 0 auto;
}

.wd-product-brands a {
  background-color: #fff !important;
}

.wd-nav-pagin-wrap[class*="wd-style-shape"] li.wd-active span {
  width: 24px;
}

@media (max-width: 768.98px) {
  .related-and-upsells .wd-nav-pagin-wrap {
    display: flex !important;
  }
}

body.rtl .wpcf7 {
  direction: rtl !important;
}
body.rtl .wd-nav[class*="wd-style-"].wd-nav-main > li > a,
body.rtl .wd-header-cats .menu-opener .menu-open-label{
  font-size: 15px;
}


.wc-tabs-wrapper .woocommerce-Tabs-panel{
  overflow: hidden;
}

.about-box-he,
body.rtl #tab-pro_reviews .wd-entry-content,
body.rtl #tab-description .wd-entry-content{
  direction: ltr;
}

