body {
    font-family: 'Poppins', sans-serif;
    background-color: #fce4ec; 
    margin: 0;
    padding: 20px;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: auto;
    background-color: #fff0f5; 
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.main-page {
    text-align: center;
}

h1 {
    color: #d81b60; 
    margin-bottom: 40px;
    font-size: 2.5em;
    text-align: center;
}

.category-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.category-card {
    text-decoration: none;
    color: #333;
    background-color: #ffffff;
    border: 1px solid #f06292;
    border-radius: 10px;
    overflow: hidden;
    width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.category-card h2 {
    font-size: 1.8em;
    padding: 15px 0;
    margin: 0;
    color: #e91e63;
    text-align: center;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    background-color: #ffffff;
    border: 1px solid #f06292; 
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* --- Gaya untuk Carousel Gambar --- */
.product-images {
    position: relative;
    width: 100%;
    height: 250px; /* Atur tinggi tetap agar semua box sama */
    overflow: hidden;
}

.product-images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none; /* Sembunyikan semua gambar secara default */
    cursor: pointer;
    transition: opacity 0.5s ease;
}

.product-images img.active {
    display: block; /* Tampilkan gambar yang aktif saja */
}

/* Tombol navigasi */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 10px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
    transform: translateY(-50%);
    z-index: 5;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}
/* --- Akhir Gaya Carousel --- */


.product-info {
    padding: 15px;
}

.product-info h3 {
    font-size: 1.4em;
    margin: 10px 0;
    color: #d81b60;
}

.product-description {
    font-size: 0.9em;
    color: #666;
    margin: -10px 0 10px;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-align: center;
}

.product-info .price {
    font-size: 1.2em;
    color: #e91e63;
    font-weight: 600;
    margin-bottom: 15px;
}

.checkout-button {
    display: block;
    width: 90%;
    margin: 0 auto 15px;
    background-color: #f06292;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.checkout-button:hover {
    background-color: #d81b60;
    transform: translateY(-2px);
}

.back-button {
    display: inline-block;
    margin-bottom: 20px;
    text-decoration: none;
    color: #e91e63;
    font-weight: 600;
}

/* Gaya untuk Pop-up */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    padding-top: 60px;
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform: scale(0)} 
    to {transform: scale(1)}
}

.close-button {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@media only screen and (max-width: 700px){
    .modal-content {
        width: 100%;
    }
}