/*
 Theme Name:   Rasm Child  
 Theme URI:    https://themeholy.com/wordpress/rasm/
 Description:  This is a child theme for Rasm - WordPress Theme
 Author:       Themeholy
 Author URI:   https://themeforest.net/user/themeholy 
 Template:     rasm
 Version:      1.0
 Tags:         two-columns, three-columns, left-sidebar, right-sidebar, flexible-header, custom-background, custom-colors, custom-header, custom-menu, theme-options, editor-style, featured-images, microformats, post-formats,  sticky-post, threaded-comments, translation-ready
 Text Domain:  rasm-child
*/

/*  [ Add your custom css below ]
- - - - - - - - - - - - - - - - - - - - */ 

/* categories  */
.product-category-filter {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
}

.product-category-filter h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}

.category-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-filter-list li a {
    display: inline-block;
    padding: 8px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.category-filter-list li a:hover {
    background: #333;
    color: #fff;
    border-color: #333;
}

.category-filter-list li.active a {
    background: #831f75;
    color: #fff;
    border-color: #0073aa;
}

/* Category Custom Content Container with Background Image */
.category-custom-content {
    margin-bottom: 30px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
}

/* Overlay to make text readable on background image */
.category-content-overlay {
    background: rgba(0, 0, 0, 0.5);
    padding: 40px;
    text-align: center;
    width: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* If no banner image, remove the overlay effect */
.category-custom-content:not([style*="background-image"]) .category-content-overlay {
    background: #f9f9f9;
    border-left: 4px solid #0073aa;
}

/* Category Heading */
.category-custom-heading {
    margin: 0 0 15px 0;
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
}

/* Dark heading if no background image */
.category-custom-content:not([style*="background-image"]) .category-custom-heading {
    color: #333;
    text-shadow: none;
}

/* Category Description */
.category-custom-description {
    margin: 0;
    color: #ffffff;
    line-height: 1.6;
    font-size: 16px;
    max-width: 800px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.category-custom-description p {
    margin: 0 0 10px 0;
}

.category-custom-description p:last-child {
    margin-bottom: 0;
}

/* Dark description if no background image */
.category-custom-content:not([style*="background-image"]) .category-custom-description {
    color: #666;
    text-shadow: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .category-custom-content {
        min-height: 250px;
    }
    
    .category-content-overlay {
        padding: 30px 20px;
        min-height: 250px;
    }
    
    .category-custom-heading {
        font-size: 24px;
    }
    
    .category-custom-description {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .category-custom-content {
        min-height: 200px;
    }
    
    .category-content-overlay {
        padding: 20px 15px;
        min-height: 200px;
    }
    
    .category-custom-heading {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .category-custom-description {
        font-size: 13px;
    }
}

.category-filter-list .count {
    font-size: 0.9em;
    opacity: 0.7;
}
.category-custom-description p {
    color: white !important;
}