.categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    padding: 40px 20px;
    background-color: #fff;
}

.category-item {
    text-align: center;
    max-width: 140px;
    transition: transform 0.3s ease;
}

.category-item:hover {
    transform: translateY(-5px);
}

.category-icon {
    background-color: #e6f8ee;
    /* Hijau muda */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.category-icon img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.category-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2c2c2c;
    margin: 0 0 6px;
}

.category-item p {
    font-size: 14px;
    color: #999;
    margin: 0;
}


@media (max-width: 768px) {
    .categories {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 20px;
    }

    .category-item {
        flex: 0 0 auto;
    }
}


/* sektion 2 */
.promo-section {
    display: flex;
    gap: 24px;
    padding: 40px 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.promo-card {
    flex: 0 0 600px;
    display: flex;
    align-items: center;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    scroll-snap-align: start;
}

.promo-image {
    width: 200px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

.promo-content {
    flex: 1;
    padding-left: 24px;
}

.promo-logo {
    width: 50px;
    margin-bottom: 12px;
}

.promo-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1e1e2f;
    margin-bottom: 8px;
}

.promo-content p {
    color: #444;
    font-size: 14px;
    margin-bottom: 16px;
}

.expire {
    margin-left: 10px;
    color: #888;
}

.green-text {
    color: #1bbf73;
}

.btn-promo {
    display: inline-block;
    padding: 10px 18px;
    font-size: 14px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-promo.green {
    background-color: #1bbf73;
    color: white;
}

.btn-promo.white {
    background-color: white;
    border: 1px solid #ccc;
    color: #1e1e2f;
}


/* Hasil Pencarian */
@media (min-width: 576px) {
    .flex-sm-nowrap {
        flex-wrap: nowrap !important;
    }
}