
/* Custom Scrollbar */
.category-scroll-wrapper {
    overflow-x: auto;
    padding: 0;
    margin-top: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #78C2AD #f1f1f1;
}

    .category-scroll-wrapper::-webkit-scrollbar {
        height: 8px;
    }

    .category-scroll-wrapper::-webkit-scrollbar-thumb {
        background-color: #78C2AD;
        border-radius: 10px;
    }

    .category-scroll-wrapper::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

/* Category Grid */
.category-grid {
    display: flex;
    gap: 0.4rem;
    min-width: 100%;
    padding-bottom: 0.5rem;
}

.category-card {
    flex: 0 0 auto;
    width: 150px;
    text-align: center;
    border-radius: 8px;
    background-color: #f8f9fa;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    overflow: hidden;
}

    .category-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }

.category-img {
    width: 100%;
    height: 120px;
    background-position: center;
    background-size: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-img {
    transform: scale(1.05);
}

.category-card h3 {
    padding: 0.75rem 0.5rem;
    margin: 0;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Quantity Controls */
.quantity-controls {
    margin-top: auto;
    padding-top: 0;
}

/* Animations */
.changed {
    animation: pulse 0.3s ease;
}

@@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Flash Deals Section */
#flash-deals {
    scroll-margin-top: 20px;
}
