:root {
            --tkpd-green: #42b549;
            --tkpd-grey: #f0f3f7;
            --text-main: #31353b;
            --text-sub: #6c727c;
        }

        * { box-sizing: border-box; margin: 0; padding: 0; font-family: sans-serif; }
        body { background-color: var(--tkpd-grey); padding-top: 70px; padding-bottom: 80px; } /* Jarak untuk header & footer */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}
        /* 1. Header & Search Bar */
        header {
            background: white;
            padding: 10px 15px;
            position: fixed;
            top: 0; width: 100%;
            display: flex; align-items: center;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            z-index: 1000;
        }
        .search-bar { flex: 1; display: flex; align-items: center; gap: 12px; }
        .search-bar input { flex: 1; padding: 10px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; }
        .icon-chat { font-size: 24px; cursor: pointer; text-decoration: none; color: var(--text-main); }

        .container { max-width: 100%; margin: 0 auto; padding: 10px; }

        /* 2. Banner Full */
      /* Slider Container */
.banner-slider {
    width: 100%;
    max-width: 100vw;
    margin-left: 0;
    margin-right: 0;
    overflow: hidden;
}

.banner-full {
    width: 100%;
    height: auto; /* Hapus fixed height */
    aspect-ratio: 16 / 5; /* Rasio lebar dibanding tinggi */
    background: linear-gradient(135deg, #42b549, #a8e063);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Khusus di HP, buat rasio agak lebih kotak agar gambar terlihat lebih besar */
@media (max-width: 768px) {
    .banner-full {
        aspect-ratio: 16 / 9; 
    }
}
.banner-image {
    width: 100%;
    height: 100%;
}

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ini kuncinya: Gambar akan memenuhi area tanpa gepeng */
    object-position: center; /* Gambar fokus ke tengah */
    border-radius: 0;
}

/* Biar titik-titik slidernya cakep */
.swiper-pagination-bullet-active {
    background: white !important;
}

/* CSS untuk HP (Layar di bawah 768px) */
@media (max-width: 768px) {
    .banner-full {
        height: 200px; /* Sesuaikan tinggi yang pas untuk HP */
    }
}

/* Pengaturan Umum Gambar */
.img-responsive-banner {
    width: 100%;
    object-fit: cover;
    display: block;
}

/* Tampilan Desktop (Layar Lebar) */
@media (min-width: 769px) {
    .img-responsive-banner {
        height: 368px; 
    }
}

/* Tampilan HP (Layar Kecil) */
@media (max-width: 768px) {
    .img-responsive-banner {
        height: 200px; /* Tinggi akan jadi lebih pendek di HP agar tidak terpotong parah */
        /* Atau gunakan aspect-ratio: 16 / 9; jika ingin lebih modern */
    }
}
        /* 3. Slider Kota Besar */
        .section-title { font-size: 16px; font-weight: bold; margin-bottom: 10px; padding-left: 5px; }
        .city-slider {
            display: flex; gap: 12px; overflow-x: auto;
            padding: 5px; margin-bottom: 25px;
            scrollbar-width: none;
        }
        .city-slider::-webkit-scrollbar { display: none; }
        .city-badge {
            padding: 8px 16px;
            background: white;
            border: 1px solid var(--tkpd-green);
            border-radius: 20px;
            color: var(--tkpd-green);
            font-size: 13px;
            white-space: nowrap;
            font-weight: bold;
        }

        /* 4. Kategori Dinamis */
        .category-scroll {
            display: flex; gap: 20px; overflow-x: auto;
            padding: 10px 5px; margin-bottom: 25px;
            scrollbar-width: none;
        }
        .category-scroll::-webkit-scrollbar { display: none; }
        .category-item { display: flex; flex-direction: column; align-items: center; min-width: 70px; text-decoration: none; color: inherit; }
.category-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%; /* Pakai 50% untuk bulat sempurna */
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    
    /* TAMBAHKAN INI */
    /*//padding: 10px;  Memberi jarak agar gambar tidak menutupi bulatan */
    overflow: hidden; 
}
.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* KUNCI: Menjaga proporsi gambar tetap bagus */
}
        .category-text { font-size: 12px; font-weight: 500; }
.rounded-image {
  border-radius: 25px; /* Apply 25px radius to all four corners */
}

/* Container untuk Scroll Produk Premium */
.product-scroll-premium {
    display: flex;             /* Ganti grid ke flex untuk scroll samping */
    gap: 12px;
    overflow-x: auto;          /* Aktifkan scroll horizontal */
    padding: 10px 5px;
    scrollbar-width: none;     /* Sembunyikan scrollbar di Firefox */
    -ms-overflow-style: none;  /* Sembunyikan scrollbar di IE/Edge */
}

.product-scroll-premium::-webkit-scrollbar {
    display: none;             /* Sembunyikan scrollbar di Chrome/Safari (Samsung A55) */
}

/* Ukuran Kartu Produk di dalam Scroll */
.product-scroll-premium .product-card {
    min-width: 150px;          /* KUNCI: Paksa lebar kartu agar tidak gepeng */
    max-width: 150px;
    background: white;
    border-radius: 10px;
    flex-shrink: 0;            /* Mencegah kartu menyusut */
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0; /* Tambah border tipis agar terlihat premium */
}

/* Sesuaikan tinggi gambar agar pas di scroll */
.product-scroll-premium .product-card img {
    height: 140px; 
    object-fit: cover;
}

        /* Grid Produk */
        .product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
        .product-card { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
        .product-card img { width: 100%; height: 160px; object-fit: cover; }
        .product-info { padding: 10px; }
        .product-name { font-size: 13px; color: var(--text-main); margin-bottom: 4px; height: 32px; overflow: hidden; }
        .product-price { font-weight: bold; font-size: 15px; color: var(--text-main); }

/* Pengaturan untuk Desktop (Layar > 768px) */
@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr); /* Menjadi 4 kolom */
        gap: 20px; /* Jarak antar kartu sedikit diperlebar agar lebih lega */
    }

    .product-card img {
        height: 200px; /* Opsional: Menyesuaikan tinggi gambar agar lebih proporsional di desktop */
    }

    .product-name {
        font-size: 15px; /* Sedikit memperbesar teks judul di desktop */
        height: auto;   /* Memberikan ruang lebih bebas untuk teks */
        max-height: 40px;
    }
}

       /* 5. STICKY BOTTOM NAVIGATION (VERSI PERBAIKAN) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #ffffff;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid #f0f0f0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.03);
    z-index: 1000;
}

.nav-item {
    text-decoration: none;
    color: #888; /* Warna saat tidak aktif */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    transition: all 0.2s ease;
}

.nav-item span.material-symbols-outlined {
    font-size: 24px;
    /* Efek halus saat transisi */
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Styling saat Nav Item Aktif */
.nav-item.active {
    color: #42b549; /* Hijau khas Flo.web.id */
}

.nav-item.active span.material-symbols-outlined {
    /* Ikon jadi 'terisi' (Filled) saat aktif */
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.nav-item span:last-child {
    font-size: 11px;
    font-weight: 500;
}
       
        .main-footer {
    background: white;
    margin-top: 40px;
    padding: 30px 0 30px 0; /* Padding bawah lebih besar karena ada sticky nav */
    border-top: 1px solid #e0e0e0;
    color: var(--text-main);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-section {
    flex: 2;
    min-width: 280px;
}

.footer-logo {
    font-size: 24px;
    color: var(--tkpd-green);
    margin-bottom: 15px;
}

.footer-logo span {
    color: var(--text-main);
}

.footer-desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-sub);
    text-align: justify;
}

.footer-links {
    flex: 2;
    display: flex;
    justify-content: space-around;
    min-width: 250px;
}

.link-group h4, .footer-social h4 {
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: bold;
}

.link-group a {
    display: block;
    text-decoration: none;
    color: var(--text-sub);
    font-size: 13px;
    margin-bottom: 8px;
}

.footer-social {
    flex: 1;
    min-width: 150px;
}

.social-icons {
    display: flex;
    gap: 15px;
    font-size: 20px;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    font-size: 12px;
    color: var(--text-sub);
}

/* Responsif untuk HP */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
    }
    .footer-links {
        justify-content: flex-start;
        gap: 50px;
    }
}

.badge-notif {
    position: absolute;
    top: 0;      /* Atur naik turunnya dari sini */
    right: 20;    /* Atur kiri kanannya dari sini */
    background-color: red;
    color: white;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    line-height: 14px; /* Sesuaikan agar angka di tengah */
    text-align: center;
    border-radius: 50%;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}