/* Variabel Warna Tema Premium Gold Alsa Gift */
:root {
    --primary-pink: #D4AF37;    /* Gold Utama (Metallic Gold) */
    --deep-pink: #B8860B;       /* Gold Gelap (Untuk Hover & Tombol Tegas) */
    --soft-pink: #FCF8F2;       /* Krem Sangat Lembut (Untuk Background) */
    --light-pink: #F3E5AB;      /* Champagne Gold (Untuk Border/Hover muda) */
    --white: #FFFFFF;
    --text-dark: #333333;
    --text-muted: #777777;
    --bg-light: #FAFAFA;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* --- STYLE NAVBAR --- */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--deep-pink);
    font-size: 22px;
    font-weight: bold;
    gap: 10px;
}

.nav-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 25px;
}

.nav-menu li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--deep-pink);
}

.nav-cart {
    background-color: var(--soft-pink);
    color: var(--deep-pink) !important;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold !important;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-badge {
    background-color: var(--deep-pink);
    color: var(--white);
    font-size: 12px;
    padding: 2px 7px;
    border-radius: 50%;
}

/* --- STYLE HERO BANNER --- */
.hero-banner {
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(253, 248, 242, 0.8)), url('../img/hero-bg.jpg') no-repeat center center/cover;
    background-color: var(--soft-pink); /* Fallback jika gambar latar belum diupload */
    padding: 100px 20px;
    text-align: center;
}

.hero-content {
    max-width: 700px; 
    margin: 0 auto; 
}

.hero-content h1 {
    font-size: 42px;
    color: var(--deep-pink);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-hero {
    display: inline-block;
    padding: 12px 35px;
    background-color: var(--deep-pink);
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    border-radius: 25px;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4); /* Shadow Gold */
    transition: background 0.3s, transform 0.2s;
}

.btn-hero:hover {
    background-color: #996515; /* Hover Gold Gelap */
    transform: translateY(-2px);
}

/* --- TITLE SECTION --- */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    width: 60px;
    height: 3px;
    background-color: var(--primary-pink);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-title p {
    color: var(--text-muted);
    margin-top: 15px;
}

/* --- PRODUCT GRID & CARD --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid var(--soft-pink);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.25); /* Shadow Gold Hover */
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--deep-pink);
    color: var(--white);
    padding: 5px 12px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 20px;
    z-index: 2;
}

.product-img-box {
    width: 100%;
    height: 260px;
    background-color: #fcfcfc;
    overflow: hidden;
}

.product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-img-box img {
    transform: scale(1.05);
}

.no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eee;
    color: #888;
}

.product-info {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: var(--text-dark);
}

.product-price {
    font-size: 16px;
    font-weight: bold;
    color: var(--deep-pink);
    margin: 0 0 15px 0;
}

.btn-beli {
    display: block;
    padding: 10px;
    background-color: var(--white);
    color: var(--deep-pink);
    text-decoration: none;
    font-weight: bold;
    border: 2px solid var(--deep-pink);
    border-radius: 20px;
    transition: all 0.3s;
    margin-top: auto; /* Memaksa tombol sejajar di bagian bawah card */
}

.btn-beli:hover {
    background-color: var(--deep-pink);
    color: var(--white);
}

.btn-habis {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #e0e0e0;
    color: #a0a0a0;
    border: none;
    border-radius: 20px;
    font-weight: bold;
    margin-top: auto;
    cursor: not-allowed;
}

/* --- STYLE FOOTER --- */
.footer {
    background-color: var(--white);
    border-top: 1px solid var(--soft-pink);
    text-align: center;
    padding: 20px;
    margin-top: 60px;
    color: var(--text-muted);
}

/* --- RESPONSIF DEVICE MOBILE --- */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    .nav-menu {
        gap: 15px;
    }
    .hero-content h1 {
        font-size: 30px;
    }
    .hero-content p {
        font-size: 15px;
    }
}

/* Floating WhatsApp Button */
.btn-floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366; /* Warna Hijau Resmi WA agar pembeli mengenali fungsinya */
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
}

.btn-floating-wa:hover {
    transform: translateY(-5px);
    background-color: #128C7E;
    box-shadow: 0 6px 20px rgba(18, 140, 126, 0.6);
}

.wa-icon {
    font-size: 18px;
}

.product-title-link {
    transition: color 0.3s;
}
.product-title-link:hover {
    color: var(--primary-pink) !important;
}

/* --- TATA LETAK PRODUK BERDASARKAN KATEGORI (HORIZONTAL SCROLL) --- */
.kategori-section {
    margin-bottom: 50px;
}

.kategori-title {
    font-size: 22px;
    color: var(--text-dark);
    border-bottom: 2px solid var(--soft-pink);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: bold;
}

.product-scroll-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 15px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; /* Smooth scroll untuk HP */
}

/* Kustomisasi bentuk Scrollbar agar cantik (Gold) */
.product-scroll-container::-webkit-scrollbar {
    height: 8px;
}
.product-scroll-container::-webkit-scrollbar-track {
    background: #f9f9f9;
    border-radius: 4px;
}
.product-scroll-container::-webkit-scrollbar-thumb {
    background: var(--primary-pink);
    border-radius: 4px;
}

/* Membatasi lebar kartu agar tidak melebar saat di-scroll */
.product-scroll-container .product-card {
    min-width: 260px;
    max-width: 260px;
    flex: 0 0 auto;
    scroll-snap-align: start;
}