/* General Body & Typography */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh; /* Pastikan body setidaknya setinggi viewport */
    display: flex;
    flex-direction: column; /* Mengatur layout utama body */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: 'Dancing Script', cursive;
    color: #8b4513;
    text-align: center;
    margin-bottom: 20px;
}

/* --- LIQUID GLASS BASE STYLE (Reusable) --- */
.glass-effect {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: translateZ(0);
}

/* Header */
.main-header {
    background-color: transparent;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
}


.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.logo a {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5em;
    color: #8b4513;
    text-decoration: none;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.logo a i {
    font-size: 0.8em;
    color: #d2691e;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.main-nav ul li a {
    text-decoration: none;
    color: #5a2c00;
    font-weight: 600;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.main-nav ul li a:hover {
    color: #d2691e;
    text-shadow: 0 0 5px rgba(255,255,255,0.7);
}

/* Burger Menu for Mobile */
.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #8b4513;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Hero Section (Homepage) */
.hero-section {
    position: relative;
    color: white;
    text-align: center;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
}

/* Background Slider di Hero Section */
.background-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    animation: slideBackground 15s infinite ease-in-out;
}

.background-slider .slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: background-image 1s ease-in-out;
    flex-shrink: 0;
}

@keyframes slideBackground {
    0% { transform: translateX(0%); }
    25% { transform: translateX(0%); }
    33% { transform: translateX(-100%); }
    58% { transform: translateX(-100%); }
    66% { transform: translateX(-200%); }
    91% { transform: translateX(-200%); }
    100% { transform: translateX(0%); }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    max-width: 80%;
}

.hero-content h1 {
    font-size: 4.5em;
    margin-bottom: 20px;
    color: white;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
}

.hero-content p {
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto 40px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.button-primary {
    background-color: #d2691e;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.button-primary:hover {
    background-color: #8b4513;
    transform: translateY(-2px);
}

/* About Us Section */
.about-us-section {
    padding: 60px 0;
    background-color: #f8f8f8;
    text-align: center;
}

.about-us-section p {
    max-width: 800px;
    margin: 0 auto 15px;
}

/* --- Social Media Section --- */
.social-media-section {
    padding: 50px 0;
    background: linear-gradient(to bottom, #f0f0f0, #e0e0e0);
    text-align: center;
}

.social-media-section h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #8b4513;
}

.social-tagline {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 30px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 10px;
}

.social-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2em;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    /* Glassmorphism */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.social-icon .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.3);
}

.whatsapp-icon {
    background-color: #25d366;
}

.whatsapp-icon:hover {
    background-color: #128c7e;
}

.instagram-icon {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.instagram-icon:hover {
    filter: brightness(1.1);
}

.social-text {
    font-size: 1em;
    color: #666;
    font-weight: 600;
}

.social-text span {
    margin: 0 10px;
}

/* Catalog Section (Ganti ke Grid Layout) */
.catalog-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f0f0f0, #e0e0e0);
    position: relative;
    flex-grow: 1; /* Penting untuk mendorong footer ke bawah */
}

/* HAPUS EFEK TRANSISI DI PINGGIR KATALOG */
.catalog-section::before,
.catalog-section::after {
    display: none; /* Ini akan menghilangkan efek buram di pinggir */
}

/* --- TAMPILKAN DAFTAR PRODUK (GRID LAYOUT) --- */
/* Menghapus semua aturan slider horizontal */
.product-slider-area,
.product-slider-track,
.product-slider-content,
.slider-button {
    display: none !important; /* Sembunyikan semua elemen slider */
}

.product-grid {
    display: grid;
    /* Akan menampilkan 3 kolom di desktop, menyesuaikan jika ruang kurang */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px; /* Jarak antar card */
    margin-top: 50px;
    justify-content: center; /* Pusatkan grid items jika tidak memenuhi lebar penuh */
    max-width: 1000px; /* Batasi lebar grid di desktop */
    margin-left: auto;
    margin-right: auto; /* Pusatkan grid di desktop */
}

.product-item {
    /* Gaya Liquid Glass tetap dipertahankan */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 6px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-align: center;
    padding: 30px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    min-height: 500px; /* Nilai contoh, sesuaikan jika perlu */
}

/* Perbaikan untuk gambar yang tidak tampil penuh */
.product-item img {
    max-width: 100%;
    height: 220px; /* Pertahankan tinggi tetap */
    object-fit: cover; /* Pastikan gambar mengisi area tanpa distorsi */
    border-radius: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-item h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #6a360f;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.product-description {
    font-size: 0.95em;
    color: #444;
    margin-bottom: 15px;
    flex-grow: 1;
}

.product-price {
    font-size: 1.3em;
    color: #5a2c00;
    font-weight: bold;
    margin-bottom: 25px;
}

/* Product Tag Styles */
.product-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #d2691e;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Specific Tag Colors */
.terlaris { background-color: #e74c3c; }
.populer { background-color: #2ecc71; }
.baru { background-color: #3498db; }

.button-secondary {
    background-color: #25d366;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    display: inline-block;
    width: fit-content;
    margin: 0 auto;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.button-secondary:hover {
    background-color: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Footer */
.main-footer {
    background-color: transparent;
    color: #5a2c00;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0; /* Penting agar footer tidak ikut mengecil */
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
}

.main-footer p {
    position: relative;
    z-index: 1;
}

/* --- MEDIA QUERIES FOR RESPONSIVENESS --- */

/* Tablet & Mobile */
@media (max-width: 768px) {
    /* General body layout */
    body {
        min-height: auto; /* Hapus min-height untuk mobile agar konten bisa scroll */
        display: block; /* Kembali ke block display untuk mobile */
    }

    .main-header .container {
        flex-wrap: nowrap;
        justify-content: space-between;
        padding: 0 15px;
    }

    .logo {
        width: auto;
        text-align: left;
        margin-bottom: 0;
    }

    .logo a {
        font-size: 2em;
    }

    .logo a i {
        font-size: 0.7em;
    }

    .main-nav .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100%;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        transition: right 0.3s ease-in-out;
        padding-top: 60px;
        z-index: 999;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid rgba(255, 255, 255, 0.5);
        align-items: center;
        justify-content: flex-start;
    }

    .main-nav .nav-links.active {
        right: 0;
    }

    .main-nav ul li {
        margin: 20px 0;
    }

    .main-nav ul li a {
        font-size: 1.3em;
        color: #8b4513;
        font-weight: 700;
        display: block;
        padding: 10px 0;
    }

    .burger {
        display: flex;
        z-index: 1001;
    }

    /* Burger animation */
    .burger.toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .burger.toggle .line2 {
        opacity: 0;
    }
    .burger.toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-content {
        padding: 30px;
    }

    .hero-content h1 {
        font-size: 2.8em;
    }

    .hero-content p {
        font-size: 1em;
    }

    /* Katalog di Mobile: Satu Kolom */
    .product-grid {
        grid-template-columns: 1fr; /* Satu kolom untuk mobile */
        gap: 30px; /* Jarak antar card */
        max-width: 90%; /* Batasi lebar grid di mobile */
    }

    .product-item {
        min-width: 280px; /* Lebar item di mobile */
        max-width: 100%; /* Fleksibilitas */
        min-height: 450px; /* Sesuaikan tinggi agar gambar dan teks tidak terpotong */
    }

    .product-item img {
        height: 200px; /* Sedikit lebih kecil di mobile */
    }

    .product-item h3 {
        font-size: 1.6em;
    }

    .product-description {
        font-size: 0.9em;
    }

    .product-price {
        font-size: 1.2em;
    }

    .product-tag {
        top: 10px;
        left: 10px;
        font-size: 0.7em;
        padding: 4px 8px;
    }

    /* Social Media Section Responsif */
    .social-media-section {
        padding: 40px 0;
    }

    .social-media-section h2 {
        font-size: 2em;
        margin-bottom: 20px;
    }

    .social-tagline {
        font-size: 1em;
    }

    .social-icons {
        gap: 20px;
    }

    .social-icon {
        width: 50px;
        height: 50px;
        font-size: 1.8em;
    }

    .social-text {
        font-size: 0.9em;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .hero-content {
        padding: 20px;
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .hero-content p {
        font-size: 0.85em;
    }

    .button-primary,
    .button-secondary {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .logo a {
        font-size: 1.8em;
    }

    .product-item {
        min-width: 250px;
        min-height: 400px; /* Lebih kecil untuk HP sangat kecil */
    }

    .product-item img {
        height: 180px;
    }
}


/* --- Loading Screen Styles --- */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    opacity: 1;
    visibility: visible;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.dot {
    width: 25px;
    height: 25px;
    background-color: #d2691e;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }
.dot:nth-child(3) { animation-delay: 0s; }
.dot:nth-child(4) { animation-delay: 0.16s; }

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

#loading-screen p {
    margin-top: 20px;
    font-size: 1.2em;
    color: #5a2c00;
    font-weight: 600;
}

/* Optimasi gambar untuk performa */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* CSS untuk mencegah scroll saat menu mobile aktif */
body.no-scroll {
    overflow: hidden;
}

/* Pastikan main content bisa mengambil ruang fleksibel agar footer tetap di bawah */
main {
    flex-grow: 1;
}