/* produk.html > produk.css */
header {
    padding: 100px 20px 20px 20px;
    text-align: center;
    cursor: default;
}

header h1 {
    font-size: 38px;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
    color: #4a2c40;
}

.grid-produk {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 15px;
    padding: 20px;
}

.card {
    background-color: white;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.card-info {
    display: flex;
    flex-direction: column;
    padding: 10px; 
    gap: 3px;
}

.card-info h3 {
    font-size: 13px; 
    color: #4a2c40;
    font-family: 'Poppins', sans-serif;
}

.card-info p {
    font-size: 12px; 
    font-family: 'Poppins', sans-serif;
    color: #6d4c62;
}

/* CSS POP-UP*/
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: white;
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.modal-body {
    padding: 20px;
}

.modal-body h3 {
    font-size: 20px;
    margin-bottom: 5px;
    font-family: 'Playfair Display', sans-serif;
    color: #4a2c40;
}

.modal-body .harga {
    font-size: 18px;
    font-weight: bold;
    color: #d63384;
    margin-bottom: 15px;
}

.modal-body .deskripsi {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
}

.btn-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 15px;
    transition: background-color 0.3s;
}

.btn-wa img {
    width: 20px;
    height: 20px;
}

.btn-wa:hover {
    background-color: #1ebe5d;
}

.btn-tutup {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* TABLET */
@media (min-width: 768px) {
    header {
        padding: 150px 20px 20px 20px;
    }

    .grid-produk {
        grid-template-columns: repeat(3, 1fr); /* 3 per baris */
        gap: 20px;
        padding: 30px;
    }

    .card-info h3 { font-size: 14px; }
    .card-info p { font-size: 13px; }
}

/* DESKTOP */
@media (min-width: 1200px) {
    .grid-produk {
        grid-template-columns: repeat(5, 1fr);
        gap: 25px;
        padding: 50px;
    }

    .card-info {
        padding: 15px;
    }
    
    .card-info h3 { font-size: 18px; }
    .card-info p { font-size: 16px; }
}