/* Page Banner Styles */
.page-banner-wrapper {
    position: relative;
    z-index: 1;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.page-banner {
    padding: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: #fff;
    background-attachment: fixed;
    min-height: 300px;
    display: flex;
    align-items: center;
}

.page-banner-overlay {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    top: 0;
    left: 0;
    z-index: 0;
    border-bottom: 1px solid #c9c9c9;
}

.page-banner-header {
    position: relative;
    z-index: 1;
}

.page-banner-content {
    text-align: center;
}

.page-banner-title {
    color: #fff !important;
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    text-transform: none;
    font-weight: 700;
    line-height: 1.2;
}

.page-banner-description p {
    color: #fff;
    font-size: 20px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
    opacity: 0.95;
}



.page-banner-categories {
    margin-top: 0;
    background-color: #0d0f10;
    position: relative;
    z-index: 2;
    padding: 0;
    border-bottom: 1px solid #c9c9c9;
}

.page-banner-categories .owl-icons {
    position: relative;
    padding: 15px 0 5px;
}

.page-banner-categories .owl-icons a:hover,
.page-banner-categories .owl-icons figure:hover {
    color: #3a3d45 !important;
}

.page-banner-categories .owl-icons figure:hover .f-icon,
.page-banner-categories .owl-icons figure:hover figcaption {
    color: #de0200 !important;
}

.page-banner-categories .owl-icons figure {
    text-align: center !important;
    padding: 0 0 0 !important;
    transition: all 0.3s ease;
}

.page-banner-categories .owl-icons figure:hover .f-icon {
    -moz-transform: scale(1.3) !important;
    -ms-transform: scale(1.3) !important;
    -o-transform: scale(1.3) !important;
    -webkit-transform: scale(1.3) !important;
    transform: scale(1.3) !important;
}

.page-banner-categories .owl-icons figure .f-icon {
    font-size: 70px !important;
    -moz-transition: all .5s !important;
    -o-transition: all .5s !important;
    -webkit-transition: all .5s !important;
    transition: all .5s !important;
    color: #ffffff !important;
    display: block !important;
    margin-bottom: 10px !important;
}

.page-banner-categories .owl-icons figcaption {
    font-family: 'Open Sans', sans-serif !important;
    text-transform: uppercase !important;
    font-size: 12px !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
    width: 100% !important;
    color: #ffffff !important;
}

.page-banner-categories .owl-icons.owl-theme .owl-controls .owl-buttons div span {
    color: #fff !important;
    background: rgba(222, 2, 0, 0.8) !important;
}

.page-banner-categories .owl-icons.owl-theme .owl-controls .owl-buttons .owl-next {
    right: -50px;
}

.page-banner-categories .owl-icons.owl-theme .owl-controls .owl-buttons .owl-prev {
    left: -50px;
}

/* Responsive Styles */
@media (min-width: 992px) {
    .page-banner {
        min-height: 400px;
        background-attachment: fixed;
    }
    
    .page-banner-title {
        font-size: 64px;
    }
    
    .page-banner-categories .owl-icons figcaption {
        font-size: 14px !important;
    }
    
    .page-banner-categories .owl-icons figure .f-icon {
        font-size: 100px !important;
    }
}

@media (max-width: 991px) {
    .page-banner {
        background-attachment: scroll;
        min-height: 350px;
    }
}

@media (max-width: 767px) {
    .page-banner {
        background-attachment: scroll;
        min-height: 250px;
    }
    
    .page-banner-title {
        font-size: 36px;
    }
    
    .page-banner-description p {
        font-size: 16px;
    }
    
    .page-banner-categories .owl-icons figure {
        padding: 8px 0 15px !important;
    }
    
    .page-banner-categories .owl-icons figure .f-icon {
        font-size: 50px !important;
    }
    
    .page-banner-categories .owl-icons figcaption {
        font-size: 10px !important;
    }
}

/* Integration with existing theme styles */
.page-banner-wrapper + .wrapper,
.page-banner-wrapper + .container,
.page-banner-wrapper + section {
    margin-top: 20px;
}

/* Hide old headers when banner is present */
.page-banner-wrapper ~ .main-header,
.page-banner-wrapper ~ .archive-header {
    display: none !important;
}

/* Fix for category page header conflicts */
.page-banner-wrapper + .products .category-header {
    display: none;
}

/* Ensure proper z-index for navigation */
nav.navbar-fixed {
    z-index: 9999;
}

.page-banner-wrapper {
    z-index: 1;
}

/* Fix spacing for content after banner */
.page-banner-wrapper + * {
    padding-top: 10px;
}

/* Fallback grid layout when Owl Carousel is not available */
.page-banner-categories .owl-icons.fallback-grid {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px 0 !important;
}

.page-banner-categories .owl-icons.fallback-grid > a {
    flex: 0 0 auto;
    max-width: 120px;
    text-align: center;
}

@media (max-width: 768px) {
    .page-banner-categories .owl-icons.fallback-grid {
        gap: 15px;
    }
    
    .page-banner-categories .owl-icons.fallback-grid > a {
        max-width: 100px;
    }
}

@media (max-width: 480px) {
    .page-banner-categories .owl-icons.fallback-grid {
        gap: 1px;
    }
    
    .page-banner-categories .owl-icons.fallback-grid > a {
        max-width: 80px;
    }
    .page-banner-wrapper + section {
        margin-top: 0px;
        padding-top: 0px;
    }
    .page-banner-categories .owl-icons.owl-theme .owl-controls .owl-buttons .owl-prev {
        left: -15px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .page-banner-categories .owl-icons.owl-theme .owl-controls .owl-buttons .owl-next {
        right: -15px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .page-banner-categories .owl-icons.owl-theme .owl-controls .owl-buttons div span {
        background-color: #fff;
        color: #232323 !important;
        width: fit-content;
    }
}

/* Hover effect class for JavaScript */
.f-icon.hover-effect {
    transform: scale(1.3) !important;
}

/* Override global section padding for page-banner-wrapper */
@media (min-width: 1200px) {
    .page-banner-wrapper {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

@media (min-width: 992px) {
    .page-banner-wrapper {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

@media (min-width: 768px) {
    .page-banner-wrapper {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

.page-banner-wrapper {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}