* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 8px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    background-color: white;
    padding: 5px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
  
}

.header-text {
    margin-bottom: 20px;
    animation: fadeIn 2s ease-in-out;
}

.header-text h2 {
    font-size: 28px;
    color: #333;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.logo {
    margin-bottom: 20px;
}

.logo img {
    
    width: 100%;
    height: auto;
}

h1 {
    color: #333;
    margin-bottom: 20px;
    font-size: 28px;
}

.search-container {
    margin-bottom: 20px;
}

#searchInput {
    width: 80%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#searchInput:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.3);
}

/* Grid produk yang menampilkan 5 produk dalam satu baris */
#productList {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    list-style-type: none;
    padding: 0;
    margin: 0 auto;
    max-width: 1200px;
    font-size: 15px;
}

/* Kartu produk yang konsisten */
#productList li {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
        border: 8px double black;
            /* Border hitam dengan efek ganda */
           
            /* Tambahkan border hitam */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 0;
    height: auto;
    max-width: 300px;
    margin: 0 auto;
}

#productList li:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

#productList li img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #ddd;
}

#productList li a {
    text-decoration: none;
    color: #333;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

#productList li .product-info {
    flex-grow: 1;
}

#productList li .product-title {
    font-size: 18px;
    font-weight: 700; /* Menambahkan ketebalan pada teks */
    color: #2c3e50;
    margin-bottom: 8px;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;

    /* Pengaturan untuk teks panjang */
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;       /* Mengatur teks menjadi satu baris */
    word-wrap: break-word;
    max-height: 3.6em;         /* Batasi tinggi untuk dua baris */
    line-height: 1.8em;        /* Tentukan tinggi setiap baris */
}
.span {
    font-size: 18px;
    font-weight: 700; /* Menambahkan ketebalan pada teks */
    color: #2c3e50;
    margin-bottom: 8px;
    margin-top: 8px;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;

    /* Pengaturan untuk teks panjang */
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;       /* Mengatur teks menjadi satu baris */
    word-wrap: break-word;
    max-height: 3.6em;         /* Batasi tinggi untuk dua baris */
    line-height: 1.8em;        /* Tentukan tinggi setiap baris */
}

#productList li:hover .product-title {
    color: #007bff;
}

/* Gaya artis produk */
#productList li .product-artist {
    color: #888;
    font-size: 14px;
    margin-bottom: 10px;
    font-style: italic;
    line-height: 1.4;
}

/* Harga produk */
#productList li .product-price {
    font-size: 16px;
    color: #d9534f;
    font-weight: 700;
}

/* Tombol tambah ke keranjang */
#productList li .add-to-cart-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    width: 100%;
    border-radius: 0 0 12px 12px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

#productList li .add-to-cart-btn:hover {
    background-color: #218838;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.pagination button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 0 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.pagination button:hover {
    background-color: #0056b3;
}

.pagination button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#pageNumber {
    font-size: 16px;
    font-weight: bold;
}

/* Responsif untuk perangkat kecil */
@media (max-width: 768px) {
    #productList {
        grid-template-columns: repeat(2, 1fr);
    }

    h1 {
        font-size: 22px;
    }

    #productList li .product-title {
        font-size: 16px;
    }

    .header-text h2 {
        font-size: 20px;
    }
        #productList {
           
            font-size: 13px;
        }
}
