/* --- 1. IMPOR SWIPER CSS (Wajib) --- */
    @import url('https://unpkg.com/swiper/swiper-bundle.min.css');

    /* --- 2. STYLE UMUM APLIKASI --- */
    .product-card {
        border: none;
        transition: transform 0.2s;
    }
    .product-card:hover {
        transform: translateY(-5px);
    }
    .koin-widget {
        background-color: #fff;
        border-radius: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        padding: 1.5rem;
    }
    .flash-sale-container {
        background-color: #fff3f3;
        border-radius: 1rem;
        padding: 1.5rem;
    }
    .promo-popup {
        background-color: rgba(0, 0, 0, 0.5);
    }
    .popup-content {
        border-radius: 1rem;
    }
    .scrollable-row {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    .scrollable-item {
        flex-shrink: 0;
        width: 150px; 
    }
    .slider-image {
        margin-top: 42px;
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 12px;
    }
    .product-image {
        width: 100%;
        height: 150px;
        object-fit: cover;
        border-top-left-radius: 6px;
        border-top-right-radius: 6px;
    }
    /* --- END STYLE UMUM --- */

    /* --- 3. SWIPER PROMO STYLES (INTI) --- */

    /* Kontainer Swiper - HANYA ATUR PADDING/MARGIN */
    .promo-slider-container {
        /* Menghapus display: flex, overflow-x: auto, dll. yang bertentangan dengan Swiper */
        padding-bottom: 0.5rem;
    }

    /* Item Promo (swiper-slide) */
    .promo-item.card {
        flex-shrink: 0; 
        width: 280px; /* Lebar default item, akan disesuaikan oleh Swiper JS */
        height: auto; 
        border-radius: 8px; 
        overflow: hidden; 
    }

    .promo-image {
        width: 100%;
        height: 150px; 
        object-fit: cover; 
        border-radius: 8px 8px 0 0; 
    }

    .promo-item .card-body {
        padding: 0.5rem 0.75rem; 
        text-align: left;
        background-color: #ffffff;
        border-radius: 0 0 8px 8px; 
    }

    /* --- 4. STYLING PAGINATION (TITIK BAWAH) --- */
    .promo-pagination {
        position: relative; 
        bottom: unset; 
        margin-top: 10px; 
        text-align: center;
    }
    .promo-pagination .swiper-pagination-bullet {
        background: #ced4da; 
        opacity: 1;
        width: 8px;
        height: 8px;
        margin: 0 4px;
        transition: background-color 0.3s ease;
    }
    .promo-pagination .swiper-pagination-bullet-active {
        background: #007bff; 
    }

    /* Sembunyikan tombol secara default di mobile */
    .swiper-button-prev,
    .swiper-button-next {
        display: none !important; 
        /* !important digunakan untuk memastikan menimpa style default dari Swiper */
    }

    /* Style untuk Baris yang Bisa Digulir */
    .scrollable-row {
        /* Wajib: membuat baris bisa digulir secara horizontal */
        overflow-x: auto;
        /* Mencegah scroll vertikal yang tidak perlu */
        overflow-y: hidden; 
        /* Tambahan: mempertahankan ruang padding bawah */
        padding-bottom: 5px; 
        /* Mencegah pemilihan teks saat menggulir */
        -webkit-user-select: none;
        -moz-user-select: none;
        user-select: none;
    }

    /* Untuk Chrome, Safari, dan Opera */
    .scrollable-row::-webkit-scrollbar {
        display: none;
    }

    /* Untuk Internet Explorer dan Edge */
    .scrollable-row {
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }

    /* 1. Efek Glassmorphism */
.glass-modal {
    background-color: rgba(255, 255, 255, 0.6); /* Semi-transparan */
    backdrop-filter: blur(8px); /* Efek kaca buram */
    -webkit-backdrop-filter: blur(8px); /* Kompatibilitas Safari */
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* 2. Efek Bounce-In (menggantikan fade default Bootstrap) */
.modal.show .modal-dialog.modal-bounce {
    /* Posisi awal: sedikit di atas dan mengecil */
    transform: translate(0, -50px) scale(0.9);
    opacity: 0;
    /* Transisi elastis (bounce) */
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.4s;
}

.modal.show .modal-dialog.modal-bounce {
    /* Posisi akhir: di tengah dan ukuran normal */
    transform: translate(0, 0) scale(1);
    opacity: 1;
}

/* Teks dan elemen lain */
.modal-header, .modal-footer {
    border-bottom: none !important;
    border-top: none !important;
}
    /* Mobile / Layar Kecil (<= 576px) */
    @media (max-width: 576px) {
        /* Hapus aturan promo-slider-container yang bertentangan */
        
        .promo-item.card {
            /* Lebar akan dihitung oleh JS (slidesPerView: 1.2), ini hanya fallback */
            width: 85vw; 
        }

        .promo-image {
            height: 130px; 
            border-radius: 8px 8px 0 0; 
        }

        .promo-item .card-body {
            padding: 0.3rem 0.5rem;
            background-color: #f8f9fa; 
        }
        .swiper-button-prev,
        .swiper-button-next {
            /* Properti yang diperlukan agar tombol terlihat dan berfungsi */
            display: flex !important;
            align-items: center; /* Untuk memposisikan ikon Swiper di tengah vertikal */
            justify-content: center; /* Untuk memposisikan ikon Swiper di tengah horizontal */
            
            /* Hapus width dan height spesifik, ganti dengan padding */
            width: auto; 
            height: auto;
            padding: 8px 10px; /* Padding ditambahkan: 8px atas/bawah, 10px kiri/kanan */
            background-color: #ffffff; /* Latar belakang putih penuh */
            border-radius: 7px; /* Sudut membulat 7px (bentuk kotak membulat) */
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
            color: #000; 
            --swiper-navigation-color: #000; 
            --swiper-navigation-size: 16px; /* Disesuaikan sedikit lebih besar agar terlihat jelas */
            top: 10%;
            transform: translateY(-50%);
        }

        .swiper-button-next {
            right: 5px;
        }
    }

    /* Desktop / Layar Besar (> 577px) */
    @media (min-width: 577px) {
        .promo-slider-container {
            padding: 0;
        }
        .promo-item.card {
            width: 329px; 
            height: auto; 
            border-radius: 12px;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1); 
        }
        .promo-image {
            height: 160px; 
            border-radius: 12px 12px 0 0;
        }
        .promo-item .card-body {
            padding: 0.5rem 0.75rem;
            background-color: #ffffff;
            border-radius: 0 0 12px 12px;
        }
        .promo-pagination {
            display: block; 
        }

        .swiper-button-prev,
        .swiper-button-next {
            /* Properti yang diperlukan agar tombol terlihat dan berfungsi */
            display: flex !important;
            align-items: center; /* Untuk memposisikan ikon Swiper di tengah vertikal */
            justify-content: center; /* Untuk memposisikan ikon Swiper di tengah horizontal */
            
            /* Hapus width dan height spesifik, ganti dengan padding */
            width: auto; 
            height: auto;
            
            /* --- PERUBAHAN TAMPILAN SESUAI PERMINTAAN --- */
            padding: 8px 10px; /* Padding ditambahkan: 8px atas/bawah, 10px kiri/kanan */
            background-color: #ffffff; /* Latar belakang putih penuh */
            border-radius: 7px; /* Sudut membulat 7px (bentuk kotak membulat) */
            /* ------------------------------------------- */
            
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
            color: #000; 

            /* Ukuran ikon di dalam tombol (tetap kecil agar tombol terlihat berisi) */
            --swiper-navigation-color: #000; 
            --swiper-navigation-size: 16px; /* Disesuaikan sedikit lebih besar agar terlihat jelas */
            
            /* Posisikan tombol agar berada di tengah vertikal */
            top: 50%;
            transform: translateY(-50%);
        }

        .swiper-button-prev {
            left: 10px; 
        }

        .swiper-button-next {
            right: 10px;
        }
    }