﻿body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

header, footer {
    background-color: #e0e0e0;
    padding: 20px;
    text-align: center;
}

    header img {
        width: 100px;
        height: 100px;
    }

.intro {
    padding: 20px;
    text-align: left;
    background-color: #fff;
}

    .intro video {
        width: 80%;
        max-width: 600px;
        margin-top: 20px;
    }

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding: 20px;
    background-color: #fff;
}

.product {
    border: 1px solid #ccc;
    padding: 10px;
    background-color: #fefefe;
    border-radius: 5px;
    text-align: center;
}

    .product img {
        width: 100px;
        height: 100px;
        object-fit: cover;
    }

.form-section {
    padding: 20px;
    background-color: #fff;
    text-align: center;
}

form {
    max-width: 400px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

input[type="text"], input[type="email"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.captcha {
    background-color: #ddd;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
}

button {
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

    button:hover {
        background-color: #0056b3;
    }

footer p {
    margin: 5px 0;
}

.form-check {
    padding-left: 0 !important;
}

.grid-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    justify-content: center; /* Ini yang memastikan baris terakhir tetap di tengah */
    gap: 20px;
    padding: 20px;
}

.grid-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    justify-content: center; /* Ini yang membuat grid berada di tengah */
    gap: 20px;
    padding: 20px;
}

/* Default: 1 kolom */
.grid-gallery {
    grid-template-columns: repeat(1, 1fr);
}

/* ≥481px: 2 kolom */
@media (min-width: 481px) {
    .grid-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ≥768px: 2 kolom */
@media (min-width: 768px) {
    .grid-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ≥992px: 3 kolom */
@media (min-width: 992px) {
    .grid-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ≥1200px: 6 kolom */
@media (min-width: 1200px) {
    .grid-gallery {
        grid-template-columns: repeat(5, 1fr);
    }
}

.product-card {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
    background-color: #fff;
    border-radius: 6px;
}

    .product-card img {
        width: 100px;
        height: 100px;
        object-fit: cover;
        margin-bottom: 10px;
    }

    .product-card .diskon {
        color: red;
        font-weight: bold;
    }

.position-relative {
    position: relative;
}

.toggle-eye {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
}
