/*
Theme Name: Astra Child
Theme URI: https://socialflush.in/
Description: A child theme for Astra
Author: Your Name
Author URI: https://socialflush.in/
Template: astra
Version: 4.8.12
Text Domain: astra-child
*/

/* Import Astra's parent theme styles */

#subcategory-list ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

#subcategory-list ul li {
    display: inline-block;
    padding: 0px 10px;
    margin-bottom: 10px;
    font-size: 12px;
    border: 1px solid #ddd;
    border-radius: 50px;
    white-space: nowrap;
    transition: all 0.3s ease;
    
}

#subcategory-list ul li:hover {
    background-color: #00FD9A;
    border-color: #00FD9A;
    color: #000;
    cursor: pointer;
}

#subcategory-list ul li a {
    text-decoration: none;
    color: inherit;
    display: block;
    text-align: center;
}

.trending-product img {
    width: 100%;
    height: 220px !important;
    border-radius: 15px !important;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth animation */
}

/* Zoom-out effect on hover */
.trending-product a:hover img {
    transform: scale(1.1); /* Shrinks image slightly */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Adds a subtle shadow effect */
}
.trending-product a {
    width: 100%;
    height: auto;
    display: block;
}
@media (max-width: 767px) {
    .trending-products-grid {
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 10px !important;
    }
    .trending-product img{
        height: 170px !important;
    }
}

/* Mobile View */
/* Mobile View */
@media (max-width: 767px) {
    .sub-category-list {
        display: none; /* Hide the original list */
    }

    .sub-category-list.slick-initialized {
        display: block; /* Show the slider when initialized */
        position: relative; /* Required for arrow positioning */
    }

    .slick-slide {
        padding: 0 10px; /* Add spacing between slides */
    }

    /* Custom arrow styles */
    .slick-prev,
    .slick-next {
        position: absolute;
        top: 50%; /* Center vertically */
        transform: translateY(-50%); /* Center vertically */
        z-index: 1; /* Ensure arrows are above the slides */
        background: transparent; /* Remove background */
        border: none; /* Remove default border */
        cursor: pointer; /* Add pointer cursor */
        padding: 0; /* Remove padding */
    }

    .slick-prev {
        left: -25px; /* Position previous arrow */
    }

    .slick-next {
        right: -25px; /* Position next arrow */
    }

    .slick-prev svg,
    .slick-next svg {
        width: 40px; /* Set icon size */
        height: 40px; /* Set icon size */
        fill: white; /* Set icon color to white */
    }

    .slick-prev:hover svg,
    .slick-next:hover svg {
        fill: #ccc; /* Change icon color on hover */
    }

    .slick-slide .category-item,
    .slick-slide .subcategory-item {
        margin-bottom: 10px; /* Add spacing between rows */
    }
    .slick-next:focus{
        background: transparent !important;
    }
}

/* Desktop View */
@media (min-width: 768px) {
    .sub-category-list {
        display: block; /* Show the original list */
    }

    .sub-category-list.slick-initialized {
        display: none; /* Hide the slider on desktop */
    }
}

.custom-products-grid {
    display: grid;
    grid-template-columns: 5fr 4fr;
    gap: 20px; /* Space between columns */
    width: 100%;
}
.horizontal-square-container {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 20px;
}
/* Styling for each column */
.column {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Space between items inside each column */
}

/* Styling for the vertical images column */
.column.vertical-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px; /* Space between sub-columns */
}

/* Styling for product list */
.custom-products-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Styling for each product item */
.custom-product-item {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

/* Styling for vertical product images to have space between them */
.column.vertical-column .custom-product-item {
    margin-bottom: 20px; /* Adds 10px space between vertical images */
}
.column.square-column .custom-product-item {
    margin-bottom: 20px; /* Adds 10px space between vertical images */
}
.column.horizontal-column .custom-product-item {
    margin-bottom: 20px; /* Adds 10px space between vertical images */
}

/* Styling for product images */
.custom-product-item img {
    width: 100%; /* Makes images responsive */
    height: auto; /* Maintains aspect ratio */
    object-fit: cover; /* Ensures the image covers the area without distortion */
    margin: 0; /* No extra space around images */
    border-radius: 15px !important;
    transition: transform 0.3s ease, opacity 0.3s ease; /* Smooth transition for zoom and opacity */
}

/* Optional: Add hover effects with zoom-in effect */
.custom-product-item:hover img {
    opacity: 0.8; /* Adds a fade effect on hover */
    transform: scale(1.1); /* Zoom in by 10% */
}

/* Responsive styling for mobile view */
/* Responsive styling for mobile view */
@media (max-width: 768px) {
    .custom-products-grid {
        grid-template-columns: 1fr 1fr; /* Two columns for the first and second sections */
        gap: 10px; /* Reduce the space between sections */
    }

    /* Adjust vertical column layout (third column) */
    .column.vertical-column {
        grid-template-columns: 1fr; /* Single column for vertical products */
        gap: 10px; /* Adjust spacing between items */
    }

    /* Ensure all product items are fully responsive */
    .custom-product-item {
        width: 100%; /* Span full container width */
    }

    /* Reduce spacing between images */
    .column.vertical-column .custom-product-item,
    .column.square-column .custom-product-item,
    .column.horizontal-column .custom-product-item {
        margin-bottom: 10px; /* Adjust space between items */
    }
    .horizontal-square-container {
    display: block;
}
}


@media screen and (max-width: 768px) {
.custom-search-container {
   padding: 50px 20px !important;
}
.search-grid{
      grid-template-columns: 1fr !important; 
}
/*.search-results{*/
/*    grid-template-columns: 1fr 1fr !important;*/
/*    gap: 10px !important;*/
/*}*/
.square .product-item img{
   height: auto !important;
   object-fit: cover;
   /*margin-bottom: 10px !important;*/
}
.horizontal .product-item img{
     height: auto !important;
   object-fit: cover;
   /*margin-bottom: 10px !important;*/
}
.vertical .product-item img{
     height: auto !important;
   object-fit: cover;
   /*margin-bottom: 10px !important;*/
}
}
.custom-search-container {
    width: 100%;
    margin: 0 auto;
    padding: 100px 20px;
    margin-bottom: 40px;
    max-width: 1240px !important;
}
.custom-search-container-archive{
    width: 100%;
    margin: 0 auto;
    padding: 100px 0px;
}
.search-grid{
     display: grid;
    grid-template-columns: 1fr 4fr; 
    width: 100%;
    gap: 20px;
    align-items: start;
}
.five-filter{
    background: #D9D9D9;
    border-radius: 15px;
    padding: 35px;
}
@media screen and (max-width: 768px){
   .five-filter{
    margin: 0px 20px;
} 
.custom-search-container-archive{
    padding: 50px 0px !important;
}
}
/*.search-results{*/
/*   display: grid;*/
/*    grid-template-columns: 1fr 1fr 1fr; */
/*    gap: 20px;*/
/*}*/
#filtered-products {
    position: relative;
    height: auto;
    width: 100%;
}

#filtered-products .products-grid.masonry-grid {
    width: 100%;
    height: auto;
}

#filtered-products .product-item {
    width: calc(33.333% - 20px);
    margin-bottom: 20px;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out; /* Add transform transition */
    box-sizing: border-box;
}

#filtered-products .product-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Tablet: 2 columns */
@media (max-width: 768px) {
    #filtered-products .product-item {
        width: calc(50% - 20px) !important;
    }
}

/* Phone: 1 column */
@media (max-width: 480px) {
    #filtered-products .product-item {
        width: 100%;
    }
}

.search-results ul{
    list-style: none;
    margin: 0px;
}
.product-item img{
    width: 100%;
    /*margin-bottom: 20px;*/
    border-radius: 15px;
    transition: transform 0.3s ease, height 0.3s ease; /* Transition for zoom and height */

}
.product-item a{
    width: 100%;
    height: auto;
    display: block;
}
.product-item a:hover img {
    transform: scale(1.1); /* Zoom effect on hover */
    height: auto; /* Allow the height to adjust to content */
}

.search-page-container{
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}
.custom-search-containerpage-form{
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 15px;
}
.custom-search-containerpage-form select,
.custom-search-containerpage-form input[type="text"],
.custom-search-containerpage-form [type="submit"] {
    border-radius: 50px;
    padding: 5px 15px; /* Consistent padding */
    font-size: 14px;
    font-weight: 600;
    border: 2px solid #000;
    width: 100%; 
    box-sizing: border-box; /* Ensures consistent sizing with padding */
    line-height: 1.6; /* Adjust line height for consistent height */
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}
.custom-search-containerpage-form [type="submit"]:hover{
    transform: scale(0.9);
    box-shadow: 0 5px 15px rgb(2 2 2 / 15%);
}
.custom-search-containerpage-form [type="submit"] {
    background: #000;
    border: 1px solid #000;
    text-transform: capitalize;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
    width: auto; /* Button width adapts to content */
}


/* Related Tag On Search Page */
.related-tags {
    margin: 40px 40px;
    position: relative;
}
@media screen and (max-width: 768px){
.related-tags {
    margin: 40px 20px !important;
}
    
}
.glide {
    position: relative;
    padding: 10px;
}

.glide__slides {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 0;
    list-style: none;
}

.tag {
    display: inline-block;
    white-space: nowrap !important;
    padding: 0px 10px;
    font-size: 12px;
    border: 1px solid #000;
    border-radius: 50px;
    background: #000;
    color: #fff;
    text-align: center;
    width: auto !important;
}

.tag a {
    color: #fff;
    text-decoration: none;
}

/* Navigation Buttons */
.glide__arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    padding: 0px;
    color: #000;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    cursor: pointer;
}

.glide__arrow--left { left: -25px; }
.glide__arrow--right { right: -25px; }


#filter-form select {
   padding: 5px 15px;
    border-radius: 50px;
    font-size: 14px;
    display: block;
    margin-bottom: 15px;
    width: 100%;
    border: 2px solid #000;
    color: #000;
}

#filter-form button {
    padding: 8px 20px;
    font-size: 14px;
    text-transform: capitalize;
    border-radius: 50px;
    background: #000;
    border: 1px solid #000;
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}
#filter-form button:hover{
    transform: scale(0.9);
    box-shadow: 0 5px 15px rgb(2 2 2 / 15%);
    color: #fff;
}

.product-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 20px !important;
}
.orientation-Vertical {
    width: 50%;
    text-align: center;
    margin: 0 auto;
}
@media screen and (max-width: 768px){
    .orientation-Vertical {
    width: 70% !important;
}
}
.category-product-tags {
    text-align: center; /* Center the entire block */
    margin: 20px auto; /* Add spacing around the tags */
}

.category-product-tags ul {
    display: flex;
    flex-wrap: wrap; /* Allow tags to wrap to the next line on smaller screens */
    justify-content: center; /* Center-align tags */
    padding: 0;
    list-style: none;
    margin: 0;
    font-size: 12px;
}

.category-product-tags ul li {
    background: #000;
    color: #fff; /* Ensure text is visible */
    padding: 2px 15px; /* Add some padding for better spacing */
    border-radius: 50px; /* Rounded pill-shaped tags */
    white-space: nowrap; /* Prevent text from breaking inside tags */
    font-size: 12px; /* Slightly increase font size for better readability */
    transition: all 0.3s ease-in-out; /* Add hover effect */
    width: auto !important;
    margin-left: 5px;
    margin-right: 5px;
}

.category-product-tags ul li:hover {
    background: #242424; /* Change background on hover */
    transform: scale(1.05); /* Slightly enlarge the tag on hover */
}

.premium-icon {
    position: absolute;
    top: 10px;
    left: 10px;
}
svg.\$w-\[1em\].\$h-\[1em\].\$fill-current.\$text-sm.\$text-yellowPremium {
    color: #fff;
    padding: 5px;
    background: #ffffff5e;
    border-radius: 5px;
    fill: goldenrod;
}

.orientation-products .orientation-grid {
    display: grid;
    grid-template-columns: 5fr 2fr; /* Three equal columns */
    gap: 20px;
}
.orientation-left-column {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 20px;
}
.product-image img {
    border-radius: 20px !important;
    margin-bottom: 20px;
}
@media screen and (max-width: 768px) {
.orientation-products .orientation-grid {
    grid-template-columns: 1fr 1fr; /* Three equal columns */
    gap: 10px !important;

}
.orientation-left-column{
    grid-template-columns: 1fr; 
    gap: 0px !important;
} 
.product-image img{
    margin-bottom: 10px !important;
}
}
.custom-reset-password-form input{
     padding: 5px 10px;
    width: 100%;
    border-radius: 50px !important;
    margin-top: 5px;
    font-size: 12px;
    color: #000 !important;
}
.custom-reset-password-form label{
     font-size:12px;
    margin-left: 5px;
}
.custom-lost-password-form input {
    padding: 5px 10px;
    width: 100%;
    border-radius: 50px !important;
    margin-top: 5px;
    font-size: 12px;
    color: #000 !important;
}
.custom-lost-password-form label{
    font-size:12px;
    margin-left: 5px;
}
.custom-error{
    font-size: 14px;
    line-height: 20px;
}
.custom-success{
    font-size: 14px;
    line-height: 20px;
}
.custom-submit-btn,input[type="submit"] {
    border: none !important;
    color: #fff !important;
    padding: 8px 10px !important;
    background-color: transparent !important;
    background-image: linear-gradient(215deg, #FF0000 0%, var(--e-global-color-secondary) 100%) !important;
}
.custom-submit-btn,input[type="submit"]:hover{
    background-color: transparent !important;
    background-image: linear-gradient(90deg, #FF0000 0%, var(--e-global-color-text) 100%) !important;
}
.slick-prev, .slick-next {
    background: #000 !important;
    padding: 5px !important;
    border-radius: 50px !important;
    height: 30px !important;
    width: 30px !important;
    top: 25% !important;
}

.slick-next {
    display: none !important;
    right: 0px !important;
}
.slick-prev {
    display: none !important;
    left: 0px !important;
}
@media screen and (max-width: 768px){
    .slick-prev, .slick-next {
    top: 50% !important;
}}
.product-image-wrapper a{
    display: inline-block;
    width: 100%;
    height: auto;
}

.all-tags {
    grid-template-columns: 1fr 1fr;
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 0;
}

.all-tags li a {
    background: #90C089;
    font-size: 12px;
    border-radius: 50px;
    text-align: center;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    padding: 0px 5px;
    display: inline-block;

}
@media screen and (max-width: 768px){
    .all-tags li a{
        padding: 8px 10px !important;
    }
    .posts-by-month li a{
        padding: 8px 35px !important;
    }
    .posts-by-year li a{
        padding: 8px 45px !important;
    }
}

/* Hover effect for zoom-in animation */
.all-tags li a:hover {
    transform: scale(0.9) !important;
    box-shadow: 0 5px 15px rgb(2 2 2 / 15%) !important;

}

.posts-by-month {
    grid-template-columns: 1fr 1fr; /* Two columns */
    display: grid;
    gap: 10px; /* Space between items */
    list-style: none;
    margin: 0;
    padding: 0;
}

.posts-by-month li a {
   background: #90C089;
    font-size: 12px;
    border-radius: 50px;
    text-align: center;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    padding: 0px 35px;
    display: inline-block;

}

/* Hover effect for zoom-in animation */
.posts-by-month li a:hover {
    transform: scale(0.9) !important;
    box-shadow: 0 5px 15px rgb(2 2 2 / 15%) !important;
}


.posts-by-year {
    grid-template-columns: 1fr 1fr; /* Two-column grid */
    display: grid;
    gap: 10px; /* Space between items */
    list-style: none;
    margin: 0;
    padding: 0;
}

.posts-by-year li a {
    background: #90C089;
    font-size: 12px;
    border-radius: 50px;
    text-align: center;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    padding: 0px 45px;
    display: inline-block;

}

/* Hover effect for zoom-in animation */
.posts-by-year li a:hover {
    transform: scale(0.9) !important;
    box-shadow: 0 5px 15px rgb(2 2 2 / 15%) !important;
}
/* Product image wrapper */
/*.orientation-products .product-image {*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    align-items: center;*/
/*    position: relative;*/
/*    overflow: hidden;*/
/*}*/
/*.product-image img {*/
/*    height: 280px !important;*/
/*    object-fit: cover;*/
/*    border-radius: 15px !important;*/
/*}*/
/*.vertical .product-image img {*/
/*    height: 570px !important;*/
/*}*/
.custom-tag-features-img img {
    border-radius: 20px !important;
    width: 100%;
    height: 230px !important;
    display: block;
    object-fit: cover;
}

.current-tag-posts {
    display: grid;
    grid-template-columns: 2fr 5fr;
    background: #fff;
    padding: 20px;
    border-radius: 20px;
}

.custom-tag-text {
    padding: 15px;
    color: #354333;
    display: grid;
}

.custom-tag-text a {
    color: #354333;
}

.custom-tag-text h3 {
    font-size: 18px;
    margin-bottom: 10px !important;
    font-weight: 600;
}

.custom-tag-text p {
    font-size: 15px;
    color: #000;
}

.custom-post-meta {
    display: flex;
    align-items: end;
    justify-content: end;
    gap: 10px;
    font-size: 14px;
}

@media screen and (max-width: 768px) {
    .current-tag-posts {
        grid-template-columns: 1fr !important;
        margin-left: 20px;
        margin-right: 20px;
    }
    .custom-post-meta {
    display: block !important;
}
.custom-tag-text{
    padding: 15px 0px !important;
}
}

.load-more-btn{
    display: flex;
    justify-content: center;
    align-items: center;
}
.load-more-btn button {
    background: black;
    border-radius: 50px;
    padding: 10px 20px;
    text-transform: capitalize;
    transition: transform 0.3s ease-in-out; /* Added transition */
}

.load-more-btn button:hover {
    color: #fff;
    transform: scale(0.9); /* Zoom in effect */
}

/* Container for search suggestions */
#search-suggestions-box {
    position: absolute;
    top: 240px;
    left: 80px;
    right: 0;
    background: #fdfdfd;
    border-top: none;
    z-index: 9999;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 2px;
    padding: 0;
    list-style: none;
    width: 320px;
    margin: 0 auto;
    text-align: left;
    color: #000;
}
@media (max-width: 767px) {
  #search-suggestions-box {
      width: 300px !important;
      top: 4% !important;
      left: 0px !important;
  }
}

/* Each suggestion item */
#search-suggestions-box li {
      padding: 5px 10px;
    cursor: pointer;
    text-transform: capitalize;
    font-size: 14px;
}
.load-more-btn button:focus{
    color: #fff !important;
}
.custom-category-container{
    width: 100%;
    margin: 0 auto;
    padding: 100px 0px;
    margin-bottom: 40px;
    max-width: 1240px !important;
}
@media screen and (max-width: 768px) {
.custom-category-container{
   padding: 50px 0px !important;
}
#filtered-products{
    width: 107% !important;
}   
    
}