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


input[type=button], input[type=submit], input[type=reset] {
  
      font-size: 18px !important;
      font-weight: 400 !important;
	
}
.single_add_to_cart_button, #wd-add-to-cart {
	  font-size: 18px !important;
      font-weight: 400 !important;
	
}
#wd-add-to-cart{background: #5f90a5;}

.dynamic-product-category-menu li {
    margin: 0;
    padding: 10px 15px;
    border-bottom: 1px solid #ddd; /* Adjust border as needed */
}

.dynamic-product-category-menu li a {
    text-decoration: none;
    color: #333; /* Menu item color */
    font-size: 16px; /* Font size */
    display: block;
}

.dynamic-product-category-menu li a:hover {
    color: #0073e6; /* Hover color */
    background-color: #f4f4f4; /* Background on hover */
}

.dynamic-product-category-menu li:last-child {
    border-bottom: none; /* Remove border from last item */
}

/* Checkout page 2 column */
form.woocommerce-checkout {
		display: flex;
		align-items: flex-start;
		flex-wrap: wrap;
		column-gap: 30px;
}

form.woocommerce-checkout > *:not(:is(.customer-details, .checkout-order-review)) {
		width: 100%;
}

form.woocommerce-checkout > *:not(:is(.customer-details, .checkout-order-review)) [role="alert"] {
		margin-bottom: 30px;
}


/* General styles for menu */
.menu-mega-menu-container {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
background: #fff;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  background-color: #CED5C3;
  background-color: #fff;
}

.nav-menu > li {
  position: relative;
  padding: 10px 10px;
  display: flex;
  align-items: center;
  margin: 0;
}

.nav-menu > li::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 13px;
  background-color: #d3d3d3;
  margin-left: 15px;
}

.nav-menu > li:last-child::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 20px;
  background-color: transparent;
  margin-left: 15px;
}

.nav-menu > li > a {
  color: #7a7a7a;
  text-decoration: none;
  padding: 0px 20px;
  display: block;
  position: relative;
  font-family: "Poppins", Sans-serif;
  font-size: 16px;
  font-weight: 400;
  text-transform: capitalize;
  transition: color 0.3s ease;
}

/* Arrow for submenu items */
.menu-item-has-children > a::after {
  content: "";
  display: var(--arrow-display, inline-block); /* Use CSS variable for display */
  margin-left: 10px;
  width: 16px;
  height: 16px;
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"/></svg>') no-repeat center;
  background-color: #7a7a7a;
}

.nav-menu > li:first-child:after {
  display: none;
}

.nav-menu > li:hover > a {
  color: #5f90a5;
}

.nav-menu > li > a::before {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background-color: #d3df46;
  position: absolute;
  bottom: -2px;
  left: 0;
  transition: width 0.3s ease;
}

.nav-menu > li:hover > a::before {
  width: 100%;
}

/* Submenu styles */
.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffff;
  list-style: none;
  margin: 0;
  padding: 10px;
  min-width: 220px;
  z-index: 1000;
}

.sub-menu li {
  position: relative;
}

.sub-menu li a {
  color: #16163f;
  padding: 10px;
  display: block;
  text-decoration: none;
  font-family: "Montserrat", Sans-serif;
  font-size: 16px;
}

.sub-menu li a:hover {
  color: #d3b574;
}

.wd-text-block li a {
  color: #b4c222;
}

.wd-text-block li a:hover {
  color: #5f90a5;
}

.menu-item-has-children:hover > .sub-menu {
  display: block;
}

.sub-menu .sub-menu {
  top: 0;
  left: 100%;
  display: none;
}

.sub-menu li:hover > .sub-menu {
  display: block;
}

/* Burger Icon */
.burger-icon {
  display: none;
  cursor: pointer;
  margin-bottom: 15px;
}

.burger-icon svg {
  fill: #000;
  transition: transform 0.5s ease;
}

.burger-line {
  transition: transform 0.5s ease, opacity 0.5s ease;
}

/* Transform to X when open */
.burger-svg.open .line1 {
    transform: translateY(0px) translateX(7px) rotate(45deg);
}

.burger-svg.open .line2 {
  opacity: 0;
}

.burger-svg.open .line3 {
transform: translateY(8px) translatex(-10px) rotate(-45deg);
}

/* Responsive Menu */
@media (max-width: 1024px) {
  .nav-menu {
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    text-align: center;
    transition: max-height 0.5s ease;
  }

  .nav-menu.active {
    max-height: 500px;
    width: 100%;
  }

  .nav-menu > li {
    margin: 5px auto;
  }

  .nav-menu > li::after {
    display: none;
  }

  .burger-icon {
    display: block;
  }
}

.quick-shop-wrapper .woocommerce-variation-description {
    max-height: 80px; /* Limit the height of the description */
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    cursor:pointer;
}
.read-more-btn {
    display: inline-block;
    margin-top: 10px;
    cursor: pointer;
    color: #0073aa;
    text-decoration: underline;
}

.read-more-btn:focus, .read-more-btn:hover {
    color: #005077;
}

.product-feature-images {
    display: flex;
    overflow-x: auto; /* Allows scrolling on smaller screens */
    gap: 20px;
    padding: 10px 0;
    scroll-snap-type: x mandatory; /* Optional: for snap scrolling effect */
}

.feature-block {
    flex: 0 0 auto; /* Prevent shrinking, allow scrolling */
    width: 300px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    scroll-snap-align: start;
}

.feature-image-wrap img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.feature-title {
    font-size: 18px;
    margin-top: 10px;
    margin-bottom: 5px;
}

.feature-description {
    font-size: 14px;
    line-height: 1.5;
}
/*gab */
.product-feature-images {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 10px 0;
    overflow-x: hidden;
    justify-content: center; /* default: center items */
}

.feature-block {
    flex: 1 1 calc(25% - 15px);
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    max-width: calc(25% - 15px);
}

/* Specific styling when there are exactly 5 blocks */
.product-feature-images:has(.feature-block:nth-child(5)) {
    justify-content: flex-start;
}

.product-feature-images:has(.feature-block:nth-child(5)) .feature-block {
    flex: 0 0 calc(33.333% - 14px); /* 3 per row on top */
    max-width: calc(33.333% - 14px);
}

/* Target the 4th and 5th item for centering in the second row */
.product-feature-images:has(.feature-block:nth-child(5)) .feature-block:nth-child(4),
.product-feature-images:has(.feature-block:nth-child(5)) .feature-block:nth-child(5) {
    margin-left: auto;
    margin-right: auto;
}


