/*
Theme Name: Woostify Child
Theme URI:  /woostify-child/
Description: Child theme for Woostify — safe customizations.
Author:      Atul Chambyal
Template:    woostify
Version:     1.0.0
*/

/* = Your custom styles start below = */

/* ================================================
   🛍️ WOO PRODUCT & LAYOUT STYLING (POLISHED)
   ================================================ */

.buy-now-button {
    background: #ff5722 !important;
    color: #fff !important;
    padding: 12px 26px !important;
    border-radius: 50px !important;
    font-weight: 600;
    transition: 0.3s;
}

.buy-now-button:hover {
    background: #e64a19 !important;
}

/* --- Hide product count in category view --- */
.woocommerce .product-category mark.count {
  display: none !important;
}
#content .woostify-container{
    padding-left: 0px !important;
}

/* --- Product gallery thumbnail row --- */
.product-gallery.wc-default-gallery .flex-control-thumbs {
  display: flex !important;
}
.product-gallery.wc-default-gallery .flex-control-thumbs li {
  margin-right: 4px;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-gallery.wc-default-gallery .flex-control-thumbs li:hover {
  transform: scale(1.05);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

/* --- Product title --- */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 11px;
  font-weight: 600;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  padding: 0 2px;
  transition: color 0.2s ease;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title:hover {
  color: #007bff;
}

/* --- Product price --- */
.woocommerce ul.products li.product .price {
  font-size: 11px;
  font-weight: 600;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 3px;
  display: block;
  letter-spacing: 0.2px;
}

/* --- Product category titles --- */
.woocommerce ul.products li.product-category h2.woocommerce-loop-category__title {
  font-size: 14px !important;
  font-weight: 700;
  color: #333;
  text-transform: capitalize;
  letter-spacing: 0.3px;
  transition: color 0.3s ease;
}
.woocommerce ul.products li.product-category:hover h2.woocommerce-loop-category__title {
  color: #007bff;
}

/* --- Product tags cleanup --- */
.widget_product_tag_cloud .tagcloud a:nth-child(n+10) {
  display: none;
}
.widget_product_tag_cloud .tagcloud a {
  font-size: 9px;
  color: #444;
  background: #f3f3f3;
  padding: 3px 8px;
  border-radius: 12px;
  margin: 3px;
  display: inline-block;
  transition: all 0.2s ease;
}
.widget_product_tag_cloud .tagcloud a:hover {
  background: #007bff;
  color: #fff;
}

/* --- Hide My Account Sidebar --- */
.woocommerce-MyAccount-navigation {
  display: none;
}

/* ================================================
   💸 SALE BADGE
   ================================================ */
.woocommerce ul.products li.product .onsale {
  display: inline-block !important;
  position: absolute;
  top: 6px;
  left: 6px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 7px;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
}
.woocommerce ul.products li.product:hover .onsale {
  transform: scale(1.05);
  background: linear-gradient(135deg, #0056b3, #007bff);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}
ul.products li.product .tinvwl_add_to_wishlist_button {
  position: relative;
  z-index: 3;
}

/* ================================================
   🧩 PRODUCT CARD POLISH
   ================================================ */
ul.products li.product {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  text-align: center !important;
}
ul.products li.product:hover {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}
ul.products li.product img {
  border-radius: 8px;
  transition: transform 0.3s ease;
}
ul.products li.product:hover img {
  transform: scale(1.05);
}

/* ================================================
   🛒 ADD TO CART BUTTON (CENTERED + REFINED)
   ================================================ */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button {
  display: inline-block !important;
  position: absolute;
	bottom:0px;
  margin: 6px auto 0 auto !important;
  text-align: center;
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: #fff !important;
  font-size: 10px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: all 0.25s ease-in-out;
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .add_to_cart_button:hover {
  background: linear-gradient(135deg, #0056b3, #007bff);
  box-shadow: 0 3px 8px rgba(0, 123, 255, 0.25);
}
.woocommerce ul.products li.product .added_to_cart {
  display: inline-block !important;
  margin-top: 4px;
  background: #28a745;
  color: #fff !important;
  padding: 4px 9px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.3s ease;
}
.woocommerce ul.products li.product .added_to_cart:hover {
  background: #23923d;
  transform: translateY(-1px);
}

/* ================================================
   📱 MOBILE + TABLET OPTIMIZATION
   ================================================ */
@media (max-width: 1024px) {
  .woocommerce-product-details__short-description,
  .woocommerce ul.products li.product .yith-wcwl-add-to-wishlist,
  .woocommerce ul.products li.product .star-rating {
    display: none !important;
  }

  .woocommerce ul.products li.product {
    padding: 5px;
  }

  .woocommerce ul.products li.product img {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 3px;
    border-radius: 8px;
  }

  ul.products li.product .product-loop-image-wrapper .tinvwl_add_to_wishlist_button {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    transition: background-color 0.3s ease;
  }
  ul.products li.product .product-loop-image-wrapper .tinvwl_add_to_wishlist_button:hover {
    background-color: #007bff;
    color: #fff;
  }

  .woo-variation-swatches
    .wvs-style-squared.variable-items-wrapper
    .variable-item:not(.radio-variable-item).button-variable-item {
    font-size: 12px;
  }
}

/* ================================================
   📱 EXTRA SMALL SCREENS
   ================================================ */
@media (max-width: 576px) {
  .product-summary {
    margin-top: 0;
  }

  .woocommerce .product .product-loop-meta .price .woocommerce-Price-amount,
  .woocommerce .product .product-loop-meta .price del {
    font-size: 8px;
  }

  .woocommerce ul.products li.product-category h2.woocommerce-loop-category__title {
    font-size: 9px !important;
  }

  .site-footer-widget {
    display: none;
  }

  ul.products li.product {
    border-radius: 8px;
  }
}

/* ================================================
   🧩 RESPONSIVE PRODUCT GRID (PAGE 137)
   ================================================ */
.page-id-137 ul.products {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto;
  padding: 0;
  gap: 10px;
}
.page-id-137 ul.products li.product {
  box-sizing: border-box;
  margin: 0;
  padding: 6px 4px !important;
}
@media (max-width: 600px) {
  .page-id-137 ul.products li.product {
    flex: 0 0 calc(33.33% - 10px);
    max-width: 380px;
  }
  .page-id-137 ul.products {
    justify-content: center;
  }
  .page-id-137 .product-loop-content {
    padding: 8px 5px !important;
  }
}

/* Subtle hover glow effect */
ul.products li.product:hover {
  border: 1px solid #e0e0e0;
  box-shadow: 0 3px 10px rgba(0, 123, 255, 0.1);
}
/* === Sticky Fibosearch Bar === */
.elementor-element-2ac996c {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99999 !important;
  background: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 6px 10px !important; /* compact height */
  margin: 0 !important;
  transition: all 0.3s ease-in-out;
}

/* === Fibosearch input styling === */
.dgwt-wcas-search-wrapp {
  max-width: 100% !important;
}

.dgwt-wcas-search-input {
  height: 28px !important;
  font-size: 14px !important;
  border-radius: 10px !important;
  border: 1px solid #ddd !important;
  padding: 18px 40px !important;
  background: #f8f8f8 !important;
  transition: all 0.2s ease;
}

.dgwt-wcas-search-input:focus {
  background: #fff !important;
  border-color: #999 !important;
  outline: none !important;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.08);
}

/* Search icon/button style */
.dgwt-wcas-search-submit {
  height: 38px !important;
  width: 38px !important;
	/* brand color */
  color: #fff !important;
  border-radius: 10px !important;
  transition: background 0.2s ease;
	top:12px !important;
	left:12px !important;
}

.dgwt-wcas-search-submit:hover {
  background: #e6004c !important;
}

/* Optional: sticky only on mobile */
@media (min-width: 768px) {
  .elementor-element-2ac996c {
    position: static !important;
    box-shadow: none !important;
  }
}
.e-con-inner{
	padding:0px !important;
}
.e-con{
	padding:0px !important;
}

/* checkout page address section */
.col-1{
	width:100%;
}
.col-2{
	width:100%;
}
/* shop page */
@media (max-width: 600px) {
    .products.mobile-columns-3 .product {
			    margin-right: 5px;
			  width: calc((100% - 10px) / 3 - 0.01px);
	}
	.product-loop-content {
		padding:0px 2px;
	}
}
/* // account page is set to hidden */
.woocommerce form.register {
/*     display: none !important; */
}
.dgwt-wcas-sf-wrapp{
	border-radius:0 !important;
	background-color: #fef7ef !important;
}
.section-title {
    font-size: 20px;
    font-weight: 700;
    margin: 20px 0 10px;
}
.homepage-section {
    padding: 10px;
}
.woocommerce ul.products li.product a img {
    border-radius: 10px;
}
