* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: #faf8f6;
    color: #333;
    padding-top: 80px;
}

/* buttons */
.btn {
    display: inline-block;
    padding: 10px 18px;
    background: #c95f5f;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.btn:hover {
    background: #a94f4f;
}

.btn-yellow {
    background: #f4c23d;
    color: #333;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.btn-yellow:hover {
    background: #e5b233;
}

/* back button cart */
.btn-back {
    display: inline-block;
    padding: 10px 18px;
    margin-bottom: 15px;
    background: #888;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: 0.3s;
}

.btn-back:hover {
    background: #666;
}

/* header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 25px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    z-index: 1000;
}

header .logo img {
    width: 100px;
    border-radius: 50%;
}

header nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

header nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
}

.menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

/* home */
.hero {
    height: 70vh;
    background: linear-gradient(to right, #e0b8b8, #ffe4d3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    margin-top: 70px;
}

.hero h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.hero p {
    margin-bottom: 20px;
}

/* about */
.about {
    display: flex;
    padding: 60px 40px;
    align-items: center;
    gap: 30px;
}

.about-img img {
    width: 320px;
    border-radius: 18px;
}

.about-text p {
    line-height: 1.7;
}

/* grid product */
#produk {
    padding: 40px 20px;
}

.section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 25px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 10px 20px;
}

.product-card {
    background: #fff;
    padding: 18px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
}

.product-card:hover {
    transform: translateY(-5px);
}

/* popup detail menu */

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.popup.hidden {
    display: none;
}

.popup-content {
    background: #fff;
    padding: 20px;
    width: 330px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 5px 18px rgba(0,0,0,0.25);
    animation: fadeIn .25s ease-in-out;
    position: relative;
}

.popup-content img {
    width: 220px;
    border-radius: 14px;
    margin-bottom: 10px;
}

.close-btn {
    position: absolute;
    right: 18px;
    top: 10px;
    font-size: 26px;
    cursor: pointer;
    color: #444;
}

.popup-content h2 {
    margin: 10px 0;
}

.popup-content p {
    font-size: 18px;
    font-style: italic;
    margin-bottom: 10px;
}

.popup-detail-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

/* qty box */
.popup .qty-box {
    margin: 15px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.popup .qty-box button {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: #e8b9b9;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.popup .qty-box span {
    font-size: 18px;
    font-weight: bold;
}

/* animasi popup */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* halaman cart */
.cart-container {
    padding: 20px;
    max-width: 500px;
    margin: 110px auto 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    padding: 18px;
    margin-bottom: 15px;
    border-radius: 14px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

.cart-item h3 {
    flex: 1;
    font-size: 16px;
}

.cart-item p {
    font-size: 14px;
    color: #555;
}

.cart-item .btn-small {
    background: #c95f5f;
    color: #fff;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: 0.3s;
}

.cart-item .btn-small:hover {
    background: #a94f4f;
}

.cart-bottom {
    text-align: center;
    margin-bottom: 60px;
}

.cart-bottom h3 {
    margin-bottom: 15px;
}

.cart-bottom .btn {
    margin-top: 15px;
}

/* testimoni */
.testimoni-section {
    padding: 50px 20px;
}

.testi-container {
    max-width: 550px;
    margin: auto;
    position: relative;
}

.testi-slide {
    display: none;
    text-align: center;
    padding: 15px;
}

.testi-slide img {
    width: 400px;
    height: 550px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 10px;
}


.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 45%;
    padding: 10px;
    font-size: 26px;
    color: #555;
}

.prev { left: -10px; }
.next { right: -10px; }

/* contact */
.contact {
    text-align: center;
    padding: 40px 20px;
}

/* footer */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    background: #fff;
}

/* responsive */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    header nav ul {
        position: absolute;
        width: 100%;
        top: 70px;
        left: 0;
        background: #fff;
        padding: 20px 0;
        flex-direction: column;
        gap: 15px;
        display: none;
    }

    header nav ul.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .about {
        flex-direction: column;
        text-align: center;
    }

    .about-img img {
        width: 250px;
    }

    .hero {
        height: auto;
        padding: 100px 20px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
}
