.categories-page {
    min-height: 100vh;
    padding: 2rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.categories-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 1rem;
}

.categories-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 1rem 0;
}

.categories-header p {
    font-size: 1.1rem;
    color: #64748b;
    margin: 0;
}

.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
}

.categories-scroll-container {
    position: relative;
    width: 100%;
    padding: 0 1rem;
}

.categories-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #0ea5e9 #f1f5f9;
    padding: 1.5rem 0;
    margin: 0 3rem;
}

.categories-scroll::-webkit-scrollbar {
    height: 8px;
}

.categories-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.categories-scroll::-webkit-scrollbar-thumb {
    background: #0ea5e9;
    border-radius: 4px;
}

.categories-scroll::-webkit-scrollbar-thumb:hover {
    background: #0284c7;
}

.categories-track {
    display: flex;
    gap: 1.5rem;
    padding: 0 1rem;
    min-width: min-content;
}

.category-card {
    flex: 0 0 auto;
    width: 320px;
}

.category-button {
    width: 100%;
    height: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.category-button:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    border-color: #0ea5e9;
}

.category-image-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-button:hover .category-image {
    transform: scale(1.05);
}

.category-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.placeholder-icon {
    width: 120px;
    height: 120px;
}

.category-content {
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.category-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
}

.category-description {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
    min-height: 2.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    margin-top: auto;
}

.category-button:hover .category-action {
    background: #0369a1;
    color: #fff;
}

.category-action i {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.category-button:hover .category-action i {
    transform: translateX(4px);
}

.scroll-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e5e7eb;
    color: #0f172a;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 1.25rem;
}

.scroll-button:hover {
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
    border-color: #0ea5e9;
}

.scroll-button.left {
    left: 0;
}

.scroll-button.right {
    right: 0;
}

.no-categories {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    text-align: center;
    padding: 2rem;
}

.no-categories h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0f172a;
    margin: 1rem 0 0.5rem 0;
}

.no-categories p {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .category-card {
        width: 300px;
    }
}

@media (max-width: 768px) {
    .categories-page {
        padding: 1.5rem 0.75rem;
    }

    .categories-header {
        margin-bottom: 2rem;
        padding: 1.5rem 0.75rem;
    }

    .categories-header h1 {
        font-size: 2rem;
    }

    .categories-header p {
        font-size: 1rem;
    }

    .categories-scroll-container {
        padding: 0 0.5rem;
    }

    .categories-scroll {
        margin: 0 2.5rem;
    }

    .categories-track {
        gap: 1.25rem;
        padding: 0 0.5rem;
    }

    .category-card {
        width: 280px;
    }

    .category-image-container {
        height: 200px;
    }

    .category-content {
        padding: 1.25rem;
    }

    .category-name {
        font-size: 1.15rem;
    }

    .placeholder-icon {
        width: 100px;
        height: 100px;
    }

    .scroll-button {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .categories-track {
        gap: 1rem;
    }

    .category-card {
        width: 260px;
    }

    .category-image-container {
        height: 180px;
    }

    .category-content {
        padding: 1rem;
    }

    .category-name {
        font-size: 1.1rem;
    }

    .category-description {
        font-size: 0.9rem;
    }

    .category-action {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }

    .placeholder-icon {
        width: 90px;
        height: 90px;
    }

    .scroll-button {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.9rem;
    }
}
