/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
.wrapper {
    padding:0;
    text-align: center;
}

.center-slider .slick-slide {
    background-color: #fff;
    color: #000;
    padding: 20px;
    height: auto;
    margin: 0 -30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
    transition: all 0.4s ease-in-out;
    position: relative;
    border-radius: 10px;
}

.center-slider .slick-center {
    transform: scale(1.1);
    background-color: #f1f1f1;
    z-index: 10;
    padding-top: 40px;
}

.profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial h3, .testimonial p {
    color: #000;
}

/* CSS for ensuring the slides always stay in a loop with no gaps */
.slick-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.slick-track {
    display: flex;
}

.slick-dots {
    bottom: 10px;
}

.center-slider {
    max-width: 90%;
    margin: 0 auto;
}

.testimonial h3, .testimonial p {
    text-align: center;
}

.profile-img {
    margin: 0 auto 15px;
}

/* Hide non-active testimonials on mobile */
@media (max-width: 767px) {
    .center-slider .slick-slide {
        margin: 0;
        transform: scale(1);
        padding: 10px;
    }

    .center-slider .slick-center {
        transform: scale(1);
        padding-top: 40px;
    }

    .slick-dots {
        bottom: 10px;
    }

    .center-slider {
        max-width: 90%;
        margin: 0 auto;
    }

    .testimonial h3, .testimonial p {
        text-align: center;
    }

    .profile-img {
        margin: 0 auto 15px;
    }

    /* Hide non-active testimonials on mobile */
    .slick-slide {
        display: none;
    }

    .slick-center {
        display: flex; /* Only show the center (active) testimonial */
    }
}




/*action boxes in home page---------------------------------------- */
/* Import Poppins font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

/*hair oil-----------------*/
.cta-box-hair-oil {
  position: relative;
  background-image: url('https://growmax.pk/wp-content/uploads/2025/01/hair-oil-category.png');
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif; /* Apply Poppins font */
}

.cta-content {
  text-align: center;
  color: rgb(255, 255, 255);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 2; /* Higher z-index to appear above the overlay */
}

.cta-content h3 {
  color: white;
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 600; /* Bold for headings */
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  font-weight: 400; /* Regular for paragraph */
}

.cta-button {
  padding: 10px 20px;
  background-color: #A04747;
  color: white;
  text-decoration: none;
  font-size: 1rem;
  border-radius: 5px;
  font-weight: 600; /* Bold for buttons */
  transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-button:hover {
  background-color: #ffffff;
  color: #A04747;
  cursor: pointer;
}

.cta-box-hair-oil::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.651);
  opacity: 0; /* Initially hidden */
  visibility: hidden; /* Prevents it from being clickable */
  transition: opacity 0.5s ease, visibility 0.5s ease;
  z-index: 1;
}

.cta-box-hair-oil:hover::before {
  opacity: 1; /* Becomes visible on hover */
  visibility: visible;
}

.cta-box-hair-oil:hover .cta-content {
  opacity: 1;
  transform: translateY(0);
}

/*beard oil----------------*/
.cta-box-beard-oil {
  position: relative;
  background-image: url('https://growmax.pk/wp-content/uploads/2024/11/Beard-Oil-image.png');
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif; /* Apply Poppins font */
}

.cta-content {
  text-align: center;
  color: rgb(255, 255, 255);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 2; /* Higher z-index to appear above the overlay */
}

.cta-content h3 {
  color: white;
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 600; /* Bold for headings */
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  font-weight: 400; /* Regular for paragraph */
}

.cta-button {
  padding: 10px 20px;
  background-color: #A04747;
  color: white;
  text-decoration: none;
  font-size: 1rem;
  border-radius: 5px;
  font-weight: 600; /* Bold for buttons */
  transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-button:hover {
  background-color: #ffffff;
  color: #A04747;
  cursor: pointer;
}

.cta-box-beard-oil::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.651);
  opacity: 0; /* Initially hidden */
  visibility: hidden; /* Prevents it from being clickable */
  transition: opacity 0.5s ease, visibility 0.5s ease;
  z-index: 1;
}

.cta-box-beard-oil:hover::before {
  opacity: 1; /* Becomes visible on hover */
  visibility: visible;
}

.cta-box-beard-oil:hover .cta-content {
  opacity: 1;
  transform: translateY(0);
}

/*Message oil--------------*/

.cta-box-massage-oil {
  position: relative;
  background-image: url('https://growmax.pk/wp-content/uploads/2024/11/Massage-Oil-image.png');
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif; /* Apply Poppins font */
}

.cta-content {
  text-align: center;
  color: rgb(255, 255, 255);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 2; /* Higher z-index to appear above the overlay */
}

.cta-content h3 {
  color: white;
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 600; /* Bold for headings */
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  font-weight: 400; /* Regular for paragraph */
}

.cta-button {
  padding: 10px 20px;
  background-color: #A04747;
  color: white;
  text-decoration: none;
  font-size: 1rem;
  border-radius: 5px;
  font-weight: 600; /* Bold for buttons */
  transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-button:hover {
  background-color: #ffffff;
  color: #A04747;
  cursor: pointer;
}

.cta-box-massage-oil::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.651);
  opacity: 0; /* Initially hidden */
  visibility: hidden; /* Prevents it from being clickable */
  transition: opacity 0.5s ease, visibility 0.5s ease;
  z-index: 1;
}

.cta-box-massage-oil:hover::before {
  opacity: 1; /* Becomes visible on hover */
  visibility: visible;
}

.cta-box-massage-oil:hover .cta-content {
  opacity: 1; /* Make text visible when hovering over any part of the box */
  transform: translateY(0);
}

/*shampoo------------*/

.cta-box-shampoo {
  position: relative;
  background-image: url('https://growmax.pk/wp-content/uploads/2025/01/shampoo-category.png');
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif; /* Apply Poppins font */
}

.cta-content {
  text-align: center;
  color: rgb(255, 255, 255);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 2; /* Higher z-index to appear above the overlay */
}

.cta-content h3 {
  color: white;
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 600; /* Bold for headings */
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  font-weight: 400; /* Regular for paragraph */
}

.cta-button {
  padding: 10px 20px;
  background-color: #A04747;
  color: white;
  text-decoration: none;
  font-size: 1rem;
  border-radius: 5px;
  font-weight: 600; /* Bold for buttons */
  transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-button:hover {
  background-color: #ffffff;
  color: #A04747;
  cursor: pointer;
}

.cta-box-shampoo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.651);
  opacity: 0; /* Initially hidden */
  visibility: hidden; /* Prevents it from being clickable */
  transition: opacity 0.5s ease, visibility 0.5s ease;
  z-index: 1;
}

.cta-box-shampoo:hover::before {
  opacity: 1; /* Becomes visible on hover */
  visibility: visible;
}

.cta-box-shampoo:hover .cta-content {
  opacity: 1;
  transform: translateY(0);
}

/*energy booster-----------*/

.cta-box-energy-booster {
  position: relative;
  background-image: url('https://growmax.pk/wp-content/uploads/2024/11/Energy-Booster-image.png');
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif; /* Apply Poppins font */
}

.cta-content {
  text-align: center;
  color: rgb(255, 255, 255);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 2; /* Higher z-index to appear above the overlay */
}

.cta-content h3 {
  color: white;
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 600; /* Bold for headings */
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  font-weight: 400; /* Regular for paragraph */
}

.cta-button {
  padding: 10px 20px;
  background-color: #A04747;
  color: white;
  text-decoration: none;
  font-size: 1rem;
  border-radius: 5px;
  font-weight: 600; /* Bold for buttons */
  transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-button:hover {
  background-color: #ffffff;
  color: #A04747;
  cursor: pointer;
}

.cta-box-energy-booster::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.651);
  opacity: 0; /* Initially hidden */
  visibility: hidden; /* Prevents it from being clickable */
  transition: opacity 0.5s ease, visibility 0.5s ease;
  z-index: 1;
}

.cta-box-energy-booster:hover::before {
  opacity: 1; /* Becomes visible on hover */
  visibility: visible;
}

.cta-box-energy-booster:hover .cta-content {
  opacity: 1;
  transform: translateY(0);
}

/*see all shop------------*/

.cta-box-see-all {
  position: relative;
  background-image: url('https://growmax.pk/wp-content/uploads/2024/11/coming-soon.png');
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif; /* Apply Poppins font */
}

.cta-content {
  text-align: center;
  color: rgb(255, 255, 255);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 2; /* Higher z-index to appear above the overlay */
}

.cta-content h3 {
  color: white;
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 600; /* Bold for headings */
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  font-weight: 400; /* Regular for paragraph */
}

.cta-button {
  padding: 10px 20px;
  background-color: #A04747;
  color: white;
  text-decoration: none;
  font-size: 1rem;
  border-radius: 5px;
  font-weight: 600; /* Bold for buttons */
  transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-button:hover {
  background-color: #ffffff;
  color: #A04747;
  cursor: pointer;
}

.cta-box-see-all::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.651);
  opacity: 0; /* Initially hidden */
  visibility: hidden; /* Prevents it from being clickable */
  transition: opacity 0.5s ease, visibility 0.5s ease;
  z-index: 1;
}

.cta-box-see-all:hover::before {
  opacity: 1; /* Becomes visible on hover */
  visibility: visible;
}

.cta-box-see-all:hover .cta-content {
  opacity: 1; /* Make text visible when hovering over any part of the box */
  transform: translateY(0);
}

/*custom post tpe seller data---------------------------------------------------------------------------------------------------------------- */
/* General Reset */
/* body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
} */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.title {
    text-align: center;
    margin-bottom: 20px;
}

.content {
    display: flex;
    gap: 20px;
}

/* Sidebar Styling */
.filter {
    flex: 1;
    background: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
}

.filter h2 {
    margin-bottom: 10px;
}

.filter .tags {
    list-style: none;
    padding: 0;
}

.filter .tags li {
    margin-bottom: 0px !important;
    font-size: 18px;
    list-style: none;
}
.filter .tags li label:hover{
    color: #a04747;
    cursor: pointer;
    
}
button#clear-filters {
    background-color: #a04747;
    color: white;
    text-transform: capitalize;
    font-size: 14px;
}
/* Main Data Section */
.data-list {
    flex: 3;
}

.data-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
     position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.data-item img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}

.data-item .details {
    flex: 1;
}

.data-item .details .category {
    font-size: 0.8em;
    color: white;
    background-color: #a04747;
    width: fit-content;
    margin-bottom: 15px;
    padding: 5px 8px;
    border-radius: 3px;
}

.data-item .details h2 {
    margin-bottom: 3px !important;
    
}

.data-item .details h2 a{
    font-size: 1em;
    color: #000;
}

.data-item .details h2 a:hover{
      color: #a04747;
}

.data-item .details p {
    margin: 0;
    font-size: 0.95em;
}
/* Hover effect: Add light shadow and scale */
.data-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
        cursor: pointer;
}

/* Add red arrow on hover */
.data-item::after {
    content: '\2192'; /* Unicode for right arrow */
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 20px;
    color: transparent;
    transition: color 0.3s ease, transform 0.3s ease;
    transform: translateX(5px);
}

/* Arrow becomes visible on hover */
.data-item:hover::after {
    color: #a04747; /* Red color */
    transform: translateX(0);
}
/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

span.page-numbers.current {
    background-color: #a04747;
    color: white;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.pagination a.page-numbers{
    padding: 8px 12px;
    text-decoration: none;
    color: black;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
}

.pagination a.page-numbers:hover {
    background: #a04747;
    color: #fff;
    border-color: #a04747;
}


/* single seller data  */

/* Banner Section */
.banner {
    position: relative;
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden; /* Ensure the content stays inside */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box; /* Prevent padding from affecting size */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2));
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    text-align: left;
    padding: 20px; /* Space between the text and edges */
}


.overlay .category {
    font-size: 1.2em;
    font-weight: 500;
    margin-bottom: -5px;
}

.overlay .title {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Description Section */
.description {
    margin-top: 20px;
}

.description h2 {
    margin-bottom: 15px;
}

.description p {
    font-size: 1em;
    color: #555;
    margin-bottom: 15px;
}

/* Map Section */
.map-section {
    margin-top: 30px;
}

.map-section h2 {
    margin-bottom: 15px;
}


/* Responsive Design for Mobile */
@media (max-width: 768px) {
    .banner {
        height: 250px; /* Reduce banner height for smaller screens */
    }

    .overlay {
        justify-content: flex-end; /* Ensure content stays at the bottom */
        align-items: flex-start; /* Align content to the left */
        padding: 15px; /* Adjust padding for smaller screens */
    }

    .overlay .category {
        font-size: 1em; /* Smaller font size for category */
        margin-bottom: -10px;
        color:white;
        font-weight:700;
    }

    .overlay .title {
        font-size: 1.5em; /* Smaller font size for title */
        line-height: 1.2; /* Adjust line height for better readability */
        margin-bottom: 10px;
        text-align: left;
    }

    .description h2,
    .map-section h2 {
        font-size: 1.5em; /* Adjust heading size for sections */
    }

    .description p {
        font-size: 0.9em; /* Adjust paragraph text size */
    }
}
.related-posts-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.related-post-item {
    /*flex: 1 1 calc(25% - 20px); */
    /* Adjust for the number of posts per row */
    text-align: left;
    background-color: #fff;
    border: 1px solid #f2f2f2;
    padding: 20px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.related-post-item h3{
    margin-top: 10px;
    font-size:16px;
}

.related-post-item .thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}
.related-post-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px); /* Slight lift effect on hover */
    cursor: pointer; /* Pointer cursor */
}

/* Arrow on Hover */
.related-post-item::after {
    content: '→'; /* Right arrow */
    font-size: 20px;
    color: #a04747;
    position: absolute;
    bottom: 10px;
    right: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.related-post-item:hover::after {
    opacity: 1;
}

/* Title Color Change on Hover */
.related-post-item h3 {
    color: #333; /* Default color */
    transition: color 0.3s ease;
}

.related-post-item:hover h3 {
    color: #a04747; /* Hover color */
}

/*--------------------------------------*/

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
    .content {
        flex-direction: column;
    }

    .data-item {
        flex-direction: row;
        gap: 10px;
    }

    .data-item img {
        width: 100px;
        height: 100px;
        object-fit: cover;
        border-radius: 5px;
    }

    .data-item .details {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* Adjust font sizes for mobile */
    .title {
        font-size: 1.5em;
    }

    .data-item .details .category {
        font-size: 0.8em;
        width: fit-content;
    }

    .data-item .details h2 {
        font-size: 1em;
    }

    .data-item .details p {
        font-size: 0.85em;
    }

    .filter h2{
        font-size: 18px;
    }
    .filter .tags li label {
        font-size: 16px;
    }

    /*.page-link {*/
    /*    font-size: 0.85em;*/
    /*    padding: 6px 10px;*/
    /*}*/


}