body {
    background-color: #f5f7fa;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

/* CARD CATEGORY */
.category-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
    margin-bottom: 25px; /* ⬅️ JARAK BAWAH */
}

/* MOBILE – scroll horizontal */
@media (max-width: 768px) {
    .category-grid {
        display: flex;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 10px;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    .category-elegant {
        min-width: 90px;  /* ukuran card saat scroll */
        flex-shrink: 0;   /* supaya tidak mengecil */
    }

    /* Hilangkan scrollbar (opsional) */
    .category-grid::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr); /* HP kecil: 3 per baris */
    }
}

.category-elegant {
    background: linear-gradient(135deg, #ff9a3c, #ff5f6d);
    border-radius: 18px;
    padding: 12px;
    height: 95px; /* FIX - tinggi sama */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: 0.25s;
    cursor: pointer;
}

.category-elegant:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.25);
}

.cat-icon {
    font-size: 26px;
}

.cat-name {
    font-size: 13px;
    margin-top: 6px;
    font-weight: 600;
}

/* Biar semua card food punya tinggi yang sama */
.food-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    height: 100%;               /* penting */
    display: flex;              /* penting */
    flex-direction: column;     /* penting */
}

.food-card img {
    height: 160px;
    width: 100%;
    object-fit: cover;
}

.food-card .card-body {
    flex: 1;                    /* isi card menyesuaikan */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* harga tetap di bawah */
}

/* Banner Area */
.banner-area {
    width: 100%;
    max-width: 900px;
    margin: auto;
}

/* Banner Image */
.banner-img {
    width: 100%;
    height: 230px;
    object-fit: cover; 
    border-radius: 18px;
}

/* ===== Banner ===== */
/* ===== Carousel Wrapper ===== */
.elegant-carousel {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
}

/* ===== Beautiful Banner Images ===== */
.banner-img {
    height: 230px;
    object-fit: cover;
    border-radius: 18px;
}

/* ===== Soft Shadow Under Banner ===== */
.elegant-carousel {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* ===== Indicators (Dots) ===== */
.carousel-indicators li {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    margin: 5px;
}

.carousel-indicators .active {
    background: #ff6600; /* warna Shopee */
    width: 12px;
    height: 12px;
}

/* ===== Hide Controls but Show on Hover ===== */
.carousel-control-prev,
.carousel-control-next {
    opacity: 0;
    transition: .3s;
}

.elegant-carousel:hover .carousel-control-prev,
.elegant-carousel:hover .carousel-control-next {
    opacity: 0.9;
}

/* ===== Modern Navigation Arrows ===== */
.modern-control {
    background-color: rgba(0,0,0,0.35);
    border-radius: 50%;
    padding: 18px;
    background-size: 50%;
}

/* Hide default blue arrow icon edge */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: brightness(0) invert(1);
}

/* ===== Slider Kantin ===== */
.kantin-wrapper {
    margin-top: 10px;
    margin-bottom: 20px;
}

.kantin-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 15px;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;

    /* HAPUS INI -> white-space: nowrap; */

    scroll-snap-type: x mandatory; /* tambah */
}

.kantin-card {
    flex: 0 0 auto;        /* biar tidak mengecil */
    scroll-snap-align: start; 
}

/* ===== Card ===== */
.kantin-card {
    display: inline-block;
    width: 120px;
    background: #fff;
    border-radius: 15px;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    flex: 0 0 auto;
    user-select: none;     /* ⛔ teks tidak bisa ke-block */
    cursor: grab;          /* drag friendly */
}

.kantin-card:active {
    cursor: grabbing;
}

.kantin-card:hover {
    transform: translateY(-4px);
}

/* Logo */
.kantin-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.kantin-name {
    margin-top: 8px;
    font-size: 14px;
}

/* Link fix */
.kantin-link {
    text-decoration: none !important;
    color: inherit !important;
}

/* HANYA untuk perangkat MOBILE */
@media (max-width: 768px) {

    .kantin-footer {
        padding-bottom: 60px; /* contoh beda styling */
    }
}

.icon-badge {
    position: relative;
    display: inline-block;
}
.icon-badge .badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: red;
    color: white;
    font-size: 11px;
    padding: 2px 5px;
    border-radius: 50%;
    font-weight: bold;
    line-height: 1;
    min-width: 18px;
    text-align: center;
}

.icon-badge1 {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.icon-badge1 i {
    position: relative;
}

.icon-badge1 .badge1 {
    position: absolute;
    top: 2px;
    right: 74px;
    background: red;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
    line-height: 1;
    min-width: 18px;
    text-align: center;
}

.icon-badge-container {
    position: relative;
    display: inline-block;
    font-size: 14px;
}

.icon-badge-container .badge2 {
    position: absolute;
    top: -6px;
    right: -10px;
    background: red;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
    line-height: 1;
    min-width: 18px;
    text-align: center;
}