/* ==========================================================================
   Category Sections Styling
   ========================================================================== */

/* Boxed Container Categories with Accordion Hover Effect */
.selected-cats-section,
.activity-cats-section {
    /* background: #f8f9fa; */
    padding: 80px 0;
}
section.homepage-section.selected-cats-section > .container,
section.new-page-section.product-carousel-section.woocommerce .container{
    max-width: 1510px;
}
.selected-cats-section .section-title,
.activity-cats-section .section-title {
    font-size: 32px;
    font-weight: 700;
    color: #1B1B1B;
    margin-bottom: 30px;
    position: relative;
    text-align: start;
}

/* Boxed Container for Categories */
.selected-cats-container,
.activity-cats-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 0px;
}

.selected-cats-grid,
.activity-cats-grid {
    display: flex;
    gap: 0;
    height: 530px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    background: #fff;
}

.selected-cats-grid .cat-card,
.activity-cats-grid .cat-card {
    flex: 1;
    min-width: 100px;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    transition: all 0.4s ease;
    filter: grayscale(100%);
    text-decoration: none;
    color: #fff;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.selected-cats-grid:hover .cat-card,
.activity-cats-grid:hover .cat-card {
    flex: 1;
}

.selected-cats-grid .cat-card:hover,
.activity-cats-grid .cat-card:hover {
    flex: 4;
    filter: grayscale(0%);
}

.cat-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(180deg, transparent 0%, rgba(224, 25, 46, 0.9) 100%);
    text-align: center;
    transition: all 0.3s ease;
    white-space: nowrap;
    transform: translateY(calc(100% - 70px));
}

.cat-card:hover .cat-card-overlay {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    transform: none;
    white-space: normal;
}

.cat-card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cat-card-desc {
    display: block;
    margin: auto;
    font-size: 14px;
    transition: 0.3s all ease;
    margin-top: 10px;
    line-height: 1.4;
    opacity: 0;
    color: rgba(255, 255, 255, 0.9);
}

.cat-card-btn {
    margin: auto;
    display: block;
    margin-top: 15px;
    padding: 8px 20px;
    border: 2px solid #fff;
    border-radius: 30px;
    font-size: 14px;
    opacity: 0;
    transition: 0.3s all ease;
    background: transparent;
    color: #fff;
    text-decoration: none;
    display: inline-block;
}

.cat-card-btn:hover {
    background: #fff;
    color: #e0192e;
    text-decoration: none;
}

.cat-card:hover .cat-card-desc,
.cat-card:hover .cat-card-btn {
    opacity: 1;
}

/* Fallback background for categories without images */
.selected-cats-grid .cat-card:nth-child(1) { background-color: #e0192e; }
.selected-cats-grid .cat-card:nth-child(2) { background-color: #c01729; }
.selected-cats-grid .cat-card:nth-child(3) { background-color: #a01525; }
.selected-cats-grid .cat-card:nth-child(4) { background-color: #801220; }

.activity-cats-grid .cat-card:nth-child(1) { background-color: #2c3e50; }
.activity-cats-grid .cat-card:nth-child(2) { background-color: #34495e; }
.activity-cats-grid .cat-card:nth-child(3) { background-color: #3c5a6e; }
.activity-cats-grid .cat-card:nth-child(4) { background-color: #44677e; }

/* Responsive Design for Categories */
@media (max-width: 991px) {
    .selected-cats-section,
    .activity-cats-section {
        padding: 60px 0;
    }
    
    .selected-cats-section .section-title,
    .activity-cats-section .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .selected-cats-grid,
    .activity-cats-grid {
        height: 350px;
    }
    
    .cat-card-overlay {
        padding: 15px;
        transform: translateY(calc(100% - 60px));
    }
    
    .cat-card-title {
        font-size: 16px;
    }
    
    .cat-card-desc {
        font-size: 13px;
        margin-top: 8px;
    }
    
    .cat-card-btn {
        padding: 6px 16px;
        font-size: 13px;
        margin-top: 12px;
    }
}

@media (max-width: 767px) {
    .selected-cats-section,
    .activity-cats-section {
        padding: 20px 0;
    }
    
    .selected-cats-section .section-title,
    .activity-cats-section .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .selected-cats-container,
    .activity-cats-container {
        padding: 0 15px;
    }
    
    .selected-cats-grid,
    .activity-cats-grid {
        flex-direction: column;
        height: auto;
    }
    
    .selected-cats-grid .cat-card,
    .activity-cats-grid .cat-card {
        min-width: 100%;
        height: 200px;
        filter: grayscale(0%);
    }
    
    .selected-cats-grid .cat-card:hover,
    .activity-cats-grid .cat-card:hover {
        flex: 1;
    }
    
    .cat-card-overlay {
        transform: translateY(calc(100% - 50px));
        padding: 12px;
    }
    
    .cat-card-title {
        font-size: 15px;
    }
    
    .cat-card-desc {
        font-size: 12px;
        margin-top: 6px;
    }
    
    .cat-card-btn {
        padding: 5px 14px;
        font-size: 12px;
        margin-top: 10px;
    }
}

@media (max-width: 575px) {
    .selected-cats-grid .cat-card,
    .activity-cats-grid .cat-card {
        height: 180px;
    }
    
    .cat-card-title {
        font-size: 14px;
    }
    
    .cat-card-overlay {
        transform: translateY(calc(100% - 45px));
        padding: 10px;
    }
}

