/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* Navigation Dropdown Fixes */
/* Ensure header containers allow dropdowns to overflow */
.elementor-location-header,
.elementor-location-header .elementor,
.elementor-location-header .elementor-section,
.elementor-location-header .elementor-container,
.elementor-location-header .elementor-column,
.elementor-location-header .elementor-column-wrap,
.elementor-location-header .elementor-widget-wrap {
    overflow: visible !important;
    z-index: 9999 !important;
}

/* Navigation menu containers */
.elementor-widget-nav-menu,
.elementor-widget-nav-menu .elementor-widget-container,
.elementor-nav-menu,
.elementor-nav-menu__container {
    overflow: visible !important;
    z-index: 9999 !important;
    position: relative;
}

/* Parent menu items - establish positioning context */
.elementor-nav-menu > li,
.elementor-nav-menu__container > li,
.menu-item-has-children {
    position: relative;
    overflow: visible !important;
}

/* Dropdown menus - absolute positioning to overlay content */
.elementor-nav-menu .sub-menu,
.elementor-menu-dropdown,
.elementor-menu-dropdown .sub-menu,
.menu-item-has-children .sub-menu {
    position: absolute !important;
    z-index: 10000 !important;
    top: 100% !important;
    left: 0 !important;
    min-width: 100%!important;
    white-space: nowrap;
}

/* Sticky header support */
.elementor-sticky,
.elementor-sticky .elementor-section,
.elementor-sticky .elementor-container,
.elementor-sticky .elementor-widget-nav-menu,
.elementor-sticky__effects--entered {
    overflow: visible !important;
    z-index: 9999 !important;
}

.elementor-sticky .elementor-nav-menu .sub-menu {
    z-index: 10000 !important;
}

/* Two-column layout: sidebar + products */
.content-with-sidebar {
    display: flex;
    gap: 40px;
    max-width: 100%;
}

/* Wrap main Woo content + sidebar */
.content-with-sidebar .shop-main {
    flex: 1 1 auto;
    min-width: 0; /* Prevents flex item from overflowing */
    padding-left: 0 !important;
}

/* Remove padding from WooCommerce wrappers */
.woocommerce .shop-main,
.woocommerce-page .shop-main,
.woocommerce .shop-main > *,
.woocommerce-page .shop-main > * {
    padding-left: 0 !important;
}

/* Target WooCommerce's default wrapper */
.woocommerce .woocommerce-products-header ~ *,
.woocommerce-page .woocommerce-products-header ~ * {
    padding-left: 0 !important;
}

.content-with-sidebar .shop-sidebar {
    width: 260px;
    flex: 0 0 auto;
}

/* Ensure WooCommerce container wraps everything */
.woocommerce .woocommerce-products-header,
.woocommerce .content-with-sidebar {
    max-width: 100%;
    padding-bottom: 120px;
}

/* Category Navigation Styles */
.category-navigation {
    margin-bottom: 30px;
}

.category-nav-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

/* Category Accordion Styles */
.category-accordion {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.category-accordion-item {
    border-bottom: 1px solid #e0e0e0;
}

.category-accordion-item:last-child {
    border-bottom: none;
}

.category-accordion-item.active {
    background-color: #f9f9f9;
}

.category-accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
}

.category-accordion-header:hover {
    background-color: #f5f5f5;
}

.category-accordion-item.active .category-accordion-header {
    background-color: #f0f0f0;
    color: #000;
}

.category-accordion-title {
    flex: 1;
}

.category-accordion-icon {
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease;
    min-width: 20px;
    text-align: center;
}

.category-accordion-item.active .category-accordion-icon {
    color: #000;
}

.category-accordion-content {
    padding: 0;
    background-color: #fff;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.category-accordion-content.show {
    display: block;
}

.category-nav-list {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.category-nav-list li {
    margin: 0;
}

.category-nav-list li a {
    display: block;
    padding: 10px 20px 10px 40px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.category-nav-list li a:hover {
    background-color: #f9f9f9;
    color: #000;
    padding-left: 45px;
}

.category-nav-list li.active a {
    background-color: #f0f0f0;
    color: #000;
    font-weight: 500;
    border-left-color: #000;
    padding-left: 45px;
}

/* Category Grid Styles */

.woocommerce .woocommerce-breadcrumb {
    margin-top: 20px;
}

/* Main Category Header in Breadcrumb Area */
.main-category-header {
    margin: 100px 0 60px 0;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.main-category-title {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
    text-align: center;
}

.main-category-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-top: 10px;
    text-align: center;
}

/* Rotating Banner Styles */
.rotating-banner-container {
    position: relative;
    width: 100%;
    margin: 0 0 60px 0;
    overflow: hidden;
    z-index: 1; /* Lower than navigation to ensure dropdowns appear above */
    cursor: grab;
}

.rotating-banner-container:active {
    cursor: grabbing;
}

/* WooCommerce Products Flexbox Layout */
.woocommerce ul.products,
.woocommerce-page ul.products {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    padding: 0 !important;
    margin: 0 !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    width: 100%;
    position: relative;
}

/* Remove WooCommerce clearfix pseudo-elements that cause padding */
.woocommerce ul.products::before,
.woocommerce-page ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::after {
    content: none !important;
    display: none !important;
}

/* Force first product to align left - use negative margin if padding persists */
.woocommerce ul.products li.product:first-child,
.woocommerce-page ul.products li.product:first-child {
    padding-left: 0 !important;
    margin-left: 0 !important;
    position: relative;
    left: 0 !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    flex: 0 0 calc(25% - 15px);
    margin: 0 !important;
    padding: 0 !important;
    max-width: calc(25% - 15px);
    list-style: none;
}

.woocommerce ul.products li.product:first-child,
.woocommerce-page ul.products li.product:first-child {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* Remove padding from any wrapper around products */
.woocommerce .products-wrapper,
.woocommerce-page .products-wrapper,
.woocommerce .woocommerce-loop-container,
.woocommerce-page .woocommerce-loop-container,
.woocommerce .products-container,
.woocommerce-page .products-container {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* Target common WooCommerce wrapper classes */
.woocommerce .woocommerce-loop,
.woocommerce-page .woocommerce-loop,
.woocommerce .products-wrapper,
.woocommerce-page .products-wrapper {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* Ensure shop-main and its direct children have no left padding */
.shop-main,
.shop-main > div,
.shop-main > section {
    padding-left: 0 !important;
}

/* Override any WooCommerce default styles */
body.woocommerce .shop-main ul.products,
body.woocommerce-page .shop-main ul.products {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* Responsive product columns */
@media (max-width: 1024px) {
    .woocommerce ul.products li.product,
    .woocommerce-page ul.products li.product {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

@media (max-width: 560px) {
    .woocommerce ul.products li.product,
    .woocommerce-page ul.products li.product {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.rotating-banner-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out;
    z-index: 1;
    will-change: transform;
}

.banner-slide.active {
    transform: translateX(0) !important;
    z-index: 2;
}

.banner-slide.prev {
    transform: translateX(-100%);
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Banner Text Overlay */
.banner-text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
}

.banner-text-content {
    padding: 20px;
    max-width: 80%;
}

.banner-text-content p {
    font-family: "Lato", Sans-serif;
    text-align: center;
    color: #fff;
    font-size: 36px;
    font-weight: 300;
    line-height: 1.4;
}

/* Navigation Arrows */
.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 0;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
}

.banner-nav::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-top: 3px solid #fff;
    border-left: 3px solid #fff;
}

.banner-prev::before {
    transform: rotate(-45deg);
}

.banner-next::before {
    transform: rotate(135deg);
}

.banner-nav:hover,
.banner-nav:focus {
    background: transparent;
}

.banner-prev {
    left: 0;
}

.banner-next {
    right: 0;
}

/* Dot Indicators */
.banner-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.banner-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(000, 000, 000, 0.5);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    border: none;
}

.banner-dot:hover {
    background: rgba(000, 000, 000, 1);
}

.banner-dot.active {
    background: rgba(255, 255, 255, 1);
}

/* Responsive adjustments for banner */
@media (max-width: 768px) {
    .rotating-banner-slider {
        height: 250px;
    }
    
    .banner-text-content {
        font-size: 20px;
        padding: 15px;
        max-width: 90%;
    }

    .banner-text-content p {
        font-size: 20px;
        line-height: 1.4;
    }
}

/* Category Grid Flexbox */
.woocommerce-category-grid .products {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-category-grid .products li.product {
    flex: 0 0 calc(25% - 23px);
    max-width: calc(25% - 23px);
    padding: 0 !important;
    margin: 0 !important;
    list-style: none;
}

.woocommerce-category-grid .products li.product:first-child {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

@media (max-width: 1024px) {
    .woocommerce-category-grid .products li.product {
        flex: 0 0 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
}

@media (max-width: 560px) {
    .woocommerce-category-grid .products li.product {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.woocommerce-category-grid .woocommerce-loop-category__title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
}

.woocommerce-category-grid .category-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Category Archive Content */
.category-archive-content {
    width: 100%;
}

.category-archive-content .woocommerce-products-header__title {
    margin-bottom: 20px;
}

.category-archive-content .term-description {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

/* Related Products Section */
.woocommerce section.related.products,
.woocommerce section.up-sells.upsells.products {
    clear: both;
    width: 100%;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.woocommerce section.related.products h2 {
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
}

.woocommerce-result-count, .woocommerce-ordering {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .woocommerce .content-with-sidebar {
        flex-direction: column;
    }
    
    .woocommerce .content-with-sidebar .shop-sidebar {
        width: 100%;
    }
    
    /* Category grid products flexbox */
    .woocommerce-category-grid .products {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .woocommerce-category-grid .products li.product {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .woocommerce section.related.products {
        margin-top: 40px;
        padding-top: 30px;
    }
}

/* Post Navigation (Previous/Next Buttons) */
.post-navigation {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
}

.post-navigation-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* .post-nav-item {
    flex: 1;
    max-width: 48%;
} */

.post-nav-item.post-nav-empty {
    flex: 0;
    max-width: none;
}

.post-nav-link {
    display: block;
    padding: 15px 20px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none!important;
    color: #333;
    transition: all 0.3s ease;
}

.post-nav-link:hover {
    background-color: #0073aa;
    color: #fff!important;
    border-color: #0073aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.post-nav-prev .post-nav-link {
    text-align: left;
}

.post-nav-next .post-nav-link {
    text-align: right;
}

.post-nav-label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

/* Responsive Post Navigation */
@media (max-width: 768px) {
    .post-navigation-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .post-nav-item {
        max-width: 100%;
        width: 100%;
    }
    
    .post-nav-prev .post-nav-link,
    .post-nav-next .post-nav-link {
        text-align: center;
    }
    
    .post-nav-link {
        padding: 12px 15px;
    }
    
    .post-nav-label {
        font-size: 14px;
    }
}

.post-tags {
    display: none;
}