/* ===== NEW CATEGORIES DESIGN ===== */

/* Categories Section */
.categories-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.categories-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(184,134,11,0.1)"/></pattern></defs><rect width="200" height="200" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
}

.categories-showcase {
    position: relative;
    z-index: 2;
}

/* New Category Card Design */
.category-card-new {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.category-card-new:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.category-link-new {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

/* Image Container */
.category-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.category-image-bg {
    display: none;
}

.category-image-new {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.category-card-new:hover .category-image-new {
    transform: scale(1.1);
}

/* Overlay - Disabled */
.category-overlay {
    display: none;
}

.category-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,0.3);
    transform: scale(0.8);
    transition: var(--transition);
}

.category-card-new:hover .category-icon {
    transform: scale(1);
}

.category-icon i {
    font-size: 24px;
    color: var(--white);
}

/* Info Section */
.category-info-new {
    padding: 20px;
    text-align: center;
    position: relative;
}

.category-name-new {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 8px;
    line-height: 1.4;
}

.category-count-new {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
    display: block;
    margin-bottom: 15px;
}

.category-arrow {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    opacity: 0;
    transform: translateX(20px);
    transition: var(--transition);
}

.category-card-new:hover .category-arrow {
    opacity: 1;
    transform: translateX(0);
}

.category-arrow i {
    font-size: 14px;
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 992px) {
    .category-image-container {
        height: 160px;
    }
    
    .category-name-new {
        font-size: 14px;
    }
    
    .category-count-new {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .category-image-container {
        height: 120px;
    }
    
    .category-info-new {
        padding: 15px;
    }
    
    .category-name-new {
        font-size: 13px;
        margin-bottom: 5px;
    }
    
    .category-count-new {
        font-size: 11px;
        margin-bottom: 10px;
    }
    
    .category-arrow {
        width: 30px;
        height: 30px;
    }
    
    .category-arrow i {
        font-size: 12px;
    }
}

/* Animation for categories */
@keyframes categoryFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-card-new {
    animation: categoryFadeIn 0.6s ease-out;
}

.category-card-new:nth-child(1) { animation-delay: 0.1s; }
.category-card-new:nth-child(2) { animation-delay: 0.2s; }
.category-card-new:nth-child(3) { animation-delay: 0.3s; }
.category-card-new:nth-child(4) { animation-delay: 0.4s; }
.category-card-new:nth-child(5) { animation-delay: 0.5s; }

/* Centered layout for 5 categories */
.categories-showcase .row {
    justify-content: center;
}

/* Special responsive for exactly 5 items */
@media (min-width: 992px) {
    .categories-showcase .col-lg-2 {
        flex: 0 0 18%;
        max-width: 18%;
    }
}

@media (min-width: 1200px) {
    .categories-showcase .col-lg-2 {
        flex: 0 0 16%;
        max-width: 16%;
    }
}