/* Categories Section Styles */
.categories-section {
    background-color: var(--background);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.categories-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05) 0%, rgba(255, 160, 0, 0.05) 100%);
    z-index: 1;
}

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

.categories-wrapper {
    position: relative;
    margin-bottom: 60px;
}

/* Carousel Styles */
.categories-slider {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    height: 500px;
}

.categories-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.category-item {
    min-width: 100%;
    flex: 0 0 100%;
    height: 100%;
    position: relative;
    background-color: var(--background);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.category-item.active {
    opacity: 1;
}

.category-image {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.category-item:hover .category-image img {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    color: white;
    z-index: 2;
}

.category-content h3 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: white;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.category-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
}

.category-content p {
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.category-link {
    display: inline-flex;
    align-items: center;
    background-color: transparent;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.category-link i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.category-link:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.category-link:hover i {
    transform: translateX(5px);
}

/* Navigation Arrows */
.categories-nav {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
}

.nav-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
    transition: all 0.3s ease;
    pointer-events: auto;
}

.nav-arrow:hover {
    background-color: var(--primary-color);
    color: white;
}

.nav-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Category Dots */
.category-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Categories Grid Preview */
.categories-grid-preview {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.preview-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 180px;
}

.preview-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.preview-image {
    height: 100%;
    width: 100%;
}

.preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.preview-item:hover .preview-image img {
    transform: scale(1.1);
}

.preview-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    color: white;
    transition: all 0.3s ease;
}

.preview-content h4 {
    font-size: 1rem;
    color: white;
    margin: 0;
    font-weight: 500;
}

.preview-item.view-all {
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.view-all-content {
    padding: 20px;
    color: white;
}

.view-all-icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 10px;
}

.view-all-content h4 {
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .categories-grid-preview {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .categories-slider {
        height: 400px;
    }
    
    .category-content h3 {
        font-size: 2rem;
    }
    
    .category-content p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .categories-grid-preview {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-content {
        padding: 30px;
    }
    
    .category-content h3 {
        font-size: 1.75rem;
    }
    
    .categories-slider {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .categories-section {
        padding: 60px 0;
    }
    
    .categories-slider {
        height: 350px;
    }
    
    .category-content h3 {
        font-size: 1.5rem;
    }
    
    .nav-arrow {
        width: 40px;
        height: 40px;
    }
    
    .categories-grid-preview {
        grid-template-columns: 1fr;
    }
}