/* Category Banner Styles */
.category-banner-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.category-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 200px;
    transition: all 0.3s ease;
}

/* Textual Banner Specific Styles */
.textual-banner .category-banner {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.textual-banner.banner-shadow .category-banner {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.textual-banner .category-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Pattern overlay for textual banners */
.banner-pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
    background-image: radial-gradient(circle, #000 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 1;
    pointer-events: none;
}

.banner-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 60px 0;
}

.banner-inner {
    max-width: 800px;
    margin: 0 auto;
}

.banner-subtitle {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: inherit;
}

.banner-title {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
    color: inherit;
}

/* Textual banner specific typography */
.textual-banner .banner-title {
    font-size: 32px;
    font-weight: 600;
}

.textual-banner .banner-subtitle {
    font-size: 13px;
    font-weight: 500;
}

.banner-description {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 25px;
    line-height: 1.6;
    opacity: 0.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: inherit;
}

.textual-banner .banner-description {
    font-size: 15px;
    line-height: 1.5;
}

.banner-button-wrapper {
    margin-bottom: 20px;
}

.banner-button {
    display: inline-block;
    padding: 12px 25px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    background-color: #007cba;
    color: #ffffff;
    border: 2px solid #007cba;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.banner-button:hover {
    background-color: #005a87;
    color: #ffffff;
    border-color: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

/* Textual banner button variants */
.textual-banner .banner-button {
    background-color: #333333;
    border-color: #333333;
}

.textual-banner .banner-button:hover {
    background-color: #555555;
    border-color: #555555;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.category-stats {
    margin-top: 20px;
    opacity: 0.8;
}

.product-count {
    font-size: 14px;
    font-weight: 500;
    padding: 5px 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.banner-breadcrumbs {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    z-index: 3;
}

.banner-breadcrumbs .woocommerce-breadcrumb {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.banner-breadcrumbs .woocommerce-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.banner-breadcrumbs .woocommerce-breadcrumb a:hover {
    color: #ffffff;
}

/* Text Alignment Classes */
.banner-content.text-left {
    text-align: left;
}

.banner-content.text-left .banner-inner {
    margin-left: 0;
}

.banner-content.text-left .banner-description {
    margin-left: 0;
}

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

.banner-content.text-right {
    text-align: right;
}

.banner-content.text-right .banner-inner {
    margin-right: 0;
}

.banner-content.text-right .banner-description {
    margin-right: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .banner-title {
        font-size: 40px;
    }
    
    .banner-description {
        font-size: 16px;
    }
    
    .banner-content {
        padding: 40px 0;
    }
}

@media (max-width: 768px) {
    .category-banner {
        min-height: 250px;
    }
    
    .banner-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    .banner-subtitle {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .banner-description {
        font-size: 15px;
        margin-bottom: 25px;
    }
    
    .banner-button {
        padding: 12px 25px;
        font-size: 15px;
    }
    
    .banner-content {
        padding: 30px 15px;
    }
    
    .banner-breadcrumbs {
        bottom: 10px;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .category-banner {
        min-height: 200px;
    }
    
    .banner-title {
        font-size: 28px;
    }
    
    .banner-description {
        font-size: 14px;
    }
    
    .banner-button {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .banner-content {
        padding: 25px 10px;
    }
}

/* Animation Effects */
.category-banner-wrapper {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner-title {
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.banner-subtitle {
    animation: slideInUp 0.8s ease-out 0.1s both;
}

.banner-description {
    animation: slideInUp 0.8s ease-out 0.3s both;
}

.banner-button-wrapper {
    animation: slideInUp 0.8s ease-out 0.4s both;
}

.category-stats {
    animation: slideInUp 0.8s ease-out 0.5s both;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Special Effects */
.category-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    z-index: 2;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Parallax Effect (Optional) */
.category-banner.parallax {
    background-attachment: fixed;
}

/* Dark/Light Theme Support */
.category-banner.dark-theme {
    color: #ffffff;
}

.category-banner.light-theme {
    color: #333333;
}

.category-banner.light-theme .banner-button {
    background-color: #333333;
    border-color: #333333;
}

.category-banner.light-theme .banner-button:hover {
    background-color: transparent;
    color: #333333;
    border-color: #333333;
}