/*
 Theme Name:   Woostify Child
 Theme URI:    https://woostify.com/
 Description:  Child theme for Woostify
 Author:       Your Name
 Author URI:   https://yourwebsite.com
 Template:     woostify
 Version:      1.0.0
*/

/* Import parent styles */
@import url("../woostify/style.css");



/* Fix wishlist heart icon positioning on mobile */
@media (max-width: 768px) {
  .yith-wcwl-add-button,
  .yith-wcwl-wishlistaddedbrowse,
  .yith-wcwl-wishlistexistsbrowse {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 99;
  }

  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product {
    position: relative; /* Make sure icon can position itself relative to the product box */
    overflow: hidden;
  }
}

/* Make logo smaller on screens 768px and below */
@media (max-width: 768px) {
  .site-branding .custom-logo {
    max-width: 180px;
    height: auto;
  }
}

 .custom-search-wrapper {
  background-color: rgba(255, 255, 255, 0.8); /* white with 90% opacity */
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  justify-content: center;
}

.custom-search-wrapper select,
.custom-search-wrapper button {
  flex: 1 1 180px;
  min-width: 160px;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  appearance: none;
  background-color: #f9f9f9;
  box-sizing: border-box;
}

.custom-search-wrapper button {
  background-color: #333333; /* default btn color (change later) */
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.custom-search-wrapper button:hover {
  background-color: #222222;
}

.entry-header-item.post-cover-image {
  position: relative;
  width: 100%;
  height: 200px; /* Set desired height */
  overflow: hidden;
}

.entry-header-item.post-cover-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px; /* You can adjust this value */
}

.entry-header-item.entry-title {
  font-size: 200% !important; /* Increase size */
  font-weight: bold;  /* Optional: make it bolder */
  line-height: 1.2;   /* Optional: adjust spacing */
  margin-bottom: 1rem;
}



/* ✅ Mobile stacking and centering */@media (max-width: 768px) {
  /* Remove padding/margin from Elementor containers on mobile */
  .elementor-section,
  .elementor-column,
  .elementor-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Fix your form wrapper */
  .custom-search-wrapper {
    flex-direction: column;
    align-items: center;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .custom-search-wrapper select,
  .custom-search-wrapper button {
    flex: none;
    width: 100% !important;
    max-width: 300px !important;
  }
	
	.woocommerce .woocommerce-ordering {
   display:none;
  }

  .woocommerce .woocommerce-ordering select.orderby {
   display:none;
  }
}

/* Make icons evenly spaced */
.site-tools {
  display: flex;
  align-items: center;
  gap: 18px; /* adjust spacing between icons */
}

/* Push the My Account (Create Account) icon to the very end */
.site-tools .my-account {
  order: 99;
}

/* Reduce only product image size in loop cards */
.product-loop-wrapper .product-loop-image-wrapper {
  height: 180px !important;              /* adjust height */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

.product-loop-wrapper .product-loop-image-wrapper img.product-loop-image {
  max-height: 150px !important;          /* shrink the image */
  width: auto !important;
  object-fit: contain !important;
}

/* footer styles */

/* ========================================
   Professional Footer Styles (Child Theme)
   ======================================== */

/* ===============================
   Professional Footer Styles
   =============================== */

/* Root variables */
:root {
  --footer-bg-color: #f9f7ef; /* very light gray */
  --footer-text-color: #000;
  --footer-link-color: #444;
  --footer-link-hover: #EDA621;
  --footer-title-color: #EDA621; /* gold titles */
  --social-icon-bg: #EDA621;
  --social-icon-color: #fff;
}

/* Base Footer */
.site-footer {
  background-color: #F0F0F0 !important;
  color: #000 !important;
  font-family: 'Inter', sans-serif;
  padding: 3rem 0 2rem 0;
  margin-top: 50px; /* space above footer */
}

.footer-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 2rem;
  align-items: flex-start;
  padding-bottom: 2rem;
  border-bottom: 1px solid #ddd;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Logo + Description */
.footer-logo {
  max-width: 150px;
  height: auto;
  margin-bottom: 0.5rem;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Titles */
.footer-title {
  color: var(--footer-title-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Links */
.footer-links,
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a,
.footer-contact-list a {
  color: #000 !important;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease-in-out;
  display: block;
  padding: 0.25rem 0;
}

.footer-links a:hover,
.footer-contact-list a:hover {
  color: var(--footer-link-hover);
}

/* Contact Info */
.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-contact-list .icon {
  width: 20px;
  height: 20px;
  stroke: var(--social-icon-bg);
  transition: stroke 0.3s ease-in-out;
}

.footer-contact-list a:hover .icon {
  stroke: var(--footer-link-hover);
}

/* Location */
.footer-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.footer-location svg {
  stroke: var(--social-icon-bg);
  width: 20px;
  height: 20px;
}

/* Social */
.footer-socials {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--social-icon-bg);
  transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.footer-socials a:hover {
  transform: translateY(-3px) scale(1.05);
}

.footer-socials svg {
  width: 20px;
  height: 20px;
  stroke: var(--social-icon-color);
}

.footer-socials a:hover svg {
  stroke: var(--footer-link-hover);
}

/* Bottom */
.footer-bottom {
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
}

.bottom-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-meta-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1rem;
}

.footer-meta-links a {
  color: var(--footer-text-color);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease-in-out;
}

.footer-meta-links a:hover {
  color: var(--footer-link-hover);
}

/* Responsive */
@media (min-width: 768px) {
  .footer-bottom {
    text-align: left;
  }
  .bottom-container {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-col.about {
    order: -1;
  }
  .footer-bottom {
    text-align: center;
  }
  .footer-contact-list li,
  .footer-location,
  .footer-socials {
    justify-content: center;
  }
}
/* payments icons */
/* Footer Bottom */
.footer-bottom {
    padding: 1.5rem 0 2rem 0;
}

.bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-meta-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0.5rem;
}

.footer-meta-links li img {
    height: 30px;
    width: auto;
}
/* hide comments */
.single-post .comments-area,
.single-post #respond,
.single-post .comment-respond {
  display: none !important;
}

/* related posts */

.related-posts {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}
.related-posts h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
  font-weight: 600;
}
.related-posts ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
}
.related-posts li {
  flex: 1;
}
.related-posts img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 8px;
}
/*unknown author*/
.single-post .post-meta-item.vcard.author {
    display: none !important;
}
/* fix footer behavior */
/* 1) Force footer to full viewport width */
#site-footer {
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;   /* pull to left edge of viewport */
  box-sizing: border-box;
  z-index: 1;
}

/* keep internal footer content centered/boxed as you want */
#site-footer .footer-container {
  max-width: 1200px;   /* adjust to your site width */
  margin: 0 auto;
  padding: 28px 20px;
  box-sizing: border-box;
}

/* target only problem templates (safer) */
.single-product #site-footer,
.post-type-archive-product #site-footer,
.single-post #site-footer,
.search-results #site-footer,
.search #site-footer {
  /* same rules above if you want to scope the change */
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  box-sizing: border-box;
}
/* testing the footer width and gaps ###################################################################################*/
/* Container for the cards with a fixed max-width for desktop */
.custom-blog-cards {
  display: flex;
  justify-content: space-between;
  gap: 20px; /* Adjust spacing between cards */
  max-width: 1140px; /* Ensures the cards fit within a consistent desktop width */
  margin: 0 auto; /* Centers the container */
  flex-wrap: wrap; /* Allows cards to wrap on smaller screens */
}

/* Individual Card Styling */
.custom-blog-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 23%; /* Distributes 4 cards evenly across the row */
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 450px; /* Consistent card height */
}

.custom-blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Image container and positioning using background-image */
.custom-blog-card-image {
  flex: 0 0 40%; /* Image takes up 40% of the card height */
  background-size: cover; /* Zooms the image to fill the container */
  background-position: center center; /* Centers the image to ensure the subject is visible */
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
  transform: scale(1);
}

.custom-blog-card:hover .custom-blog-card-image {
  transform: scale(1.05); /* Slight zoom effect on hover */
}

/* Content area styling */
.custom-blog-card-content {
  flex: 1; /* Content takes the remaining height */
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.custom-blog-card-content h3 {
  font-size: 1.3rem;
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.custom-blog-card-content p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: auto; /* Pushes the button to the bottom */
}

/* Button styling */
.custom-button {
  display: inline-block;
  background-color: #CE8500; /* Sets the button's background color */
  color: #fff; /* Sets the default text color to white */
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  text-align: center;
  margin-top: 15px; /* Spacing from description */
  align-self: flex-start; /* Aligns the button to the left */
  transition: background-color 0.3s ease, color 0.3s ease;
}

.custom-button:hover {
  background-color: #A96E00; /* Darker shade for hover effect */
  color: #fff; /* Ensures text remains white on hover */
}

/* Media queries for responsiveness */
@media (max-width: 1140px) {
  .custom-blog-card {
    flex: 1 1 calc(50% - 10px); /* Two cards per row on tablets */
  }
}

@media (max-width: 768px) {
  .custom-blog-card {
    flex: 1 1 100%; /* One card per row on mobile */
  }
}
/* strip patch */
/* Bottom strip patch under footer */
/* Gray bottom strip */
#bottom-strip {
    width: 100% !important;
    height: 100px !important;
    background-color: #f0f0f0 !important; /* adjust gray */
    margin: 0 !important;
    padding: 0 !important;
}

/* Optional: ensure it’s at the very bottom */
body {
    position: relative !important;
    min-height: 100vh !important;
}

#bottom-strip {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
}

/* Hide WordPress search block */
.wp-block-search__button-outside.wp-block-search__text-button.wp-block-search {
    display: none !important;
}
/* hide related posts */
.related-box {
    display: none !important;
}

.custom-search-title-bar {
    max-width: 1140px;
    width: 100%;
    margin: 20px auto 30px auto; /* space above and below */
    padding: 12px 20px;
    background: #f8f8f8;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
    box-sizing: border-box;
    display: block;
    clear: both;
}

.custom-search-title-bar a {
    margin-left: 15px;
    font-size: 0.9em;
    color: #0071a1;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .custom-search-title-bar {
        display: none;
    }
}

/* Push WooCommerce notices and results down */
.woocommerce-page .custom-search-title-bar + .woocommerce-notices-wrapper,
.woocommerce-page .custom-search-title-bar + .woocommerce-products-header,
.woocommerce-page .custom-search-title-bar + .woocommerce-result-count {
    margin-top: 30px;
}

/* Hide WooCommerce result count */
.woocommerce-page .woocommerce-result-count {
    display: none !important;
}


/* Add clean SVG icon inside the search button */
.custom-filter-button {
	background-color: #EDA621 !important;
	color: gray;
    display: flex;
    align-items: center;
    justify-content: center; /* center text + icon */
    gap: 6px; /* space between icon and text */
    padding: 8px 16px; /* optional: make button comfortable */
}

/* fix spacing in product views */
/* Remove unwanted top spacing inside shop main container */
main.site-main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Specifically target the WooCommerce product header spacing */
.woocommerce-products-header {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Also fix the inner wrapper if the toolbar area adds extra padding */
.woostify-sorting {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Optional: ensure the custom search title bar sits flush */
.custom-search-title-bar {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Align the sorting dropdown to the top level with title and filters */
.woocommerce-ordering {
  margin-top: 0 !important;
  padding-top: 0 !important;
  display: flex !important;
  align-items: center !important;
}

/* Hide the WooCommerce "Sort by" dropdown */
.woocommerce-ordering {
  display: none !important;
}

/* top footer gap */
/* Align footer with boxed layout */
.footer-container {
    width: 100%;
    max-width: 1200px; /* Adjust based on your content width */
    margin: 0 auto;
    padding: 0 15px; /* Optional: Adjust padding as needed */
}

/* Add top margin to footer */
.footer-container {
    margin-top: 50px; /* Adjust to create desired gap */
}
/* search title #################################################################################################### */
.sidebar-title-wrapper {
    margin-bottom: 15px;
    text-align: center;
}

.sidebar-title {
    background-color: #ff7f00; /* Orange background */
    color: #fff; /* White text */
    font-size: 16px;
    font-weight: 700;
    padding: 10px 0;
    border-radius: 4px;
    margin: 0;
    letter-spacing: 1px;
}