/* --- GOOGLE FONTS & VARIABEL --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Poppins:wght@300;400;600&display=swap');

:root {
    --primary-mauve: #9b6d9d;
    --primary-hover: #835a85;
    --soft-mauve: rgba(155, 109, 157, 0.1); 
    --wa-green: #25d366;
    --wa-hover: #1eb954;
    --dark-text: #222;
    --light-bg: #f8f9fa;
}

/* --- DASAR --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Poppins', sans-serif; 
    background-color: #ffffff; 
    color: #333; 
    overflow-x: hidden; 
    line-height: 1.6;
}

/* --- HEADER & NAVIGATION --- */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 5%;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.logo a { 
    font-family: 'Playfair Display', serif;
    font-size: 32px !important;
    text-decoration: none; 
    color: #000; 
    font-weight: 700;
}

.search-container {
    flex: 0 0 40%;
    margin: 0 30px;
    position: relative;
    display: flex;
    align-items: center;
    background: transparent !important;
}

.search-container input {
    width: 100%;
    padding: 10px 45px 10px 20px;
    border: 1px solid #eee;
    border-radius: 30px; 
    background: #fdfdfd;
    outline: none;
    font-size: 13px;
    transition: 0.3s;
    height: 40px; 
    box-sizing: border-box;
}

.search-container input:focus {
    border-color: var(--primary-mauve);
    box-shadow: 0 0 0 3px var(--soft-mauve);
}

.search-container button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-mauve);
    color: white !important;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none !important;
    cursor: pointer;
    outline: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    z-index: 2;
}


.main-menu {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.main-menu ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

.main-menu li a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #444;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: 0.3s;
}

.main-menu li a:hover { color: var(--primary-mauve); }

/* --- HERO SECTION --- */
.hero {
    display: flex;
    align-items: center;
    background: #f4f4f4;
    padding: 30px 8%;
    min-height: 420px;
    margin-bottom: 40px;
}

.hero-text { flex: 1; }

.hero-text h1 { 
    font-size: 60px !important;
    font-family: 'Playfair Display', serif;
    margin-bottom: 10px;
    line-height: 1.1;
    color: var(--dark-text);
}

.hero-text p { font-size: 15px; color: #666; max-width: 400px; margin-bottom: 25px; }

.hero-img { flex: 1; display: flex; justify-content: flex-end; }

.hero-img img { 
    max-height: 450px; 
    width: auto;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: -20px 20px 0px var(--soft-mauve);
}

/* --- PRODUCT GRID --- */
.container { padding: 20px 5% 60px; }

.section-header { text-align: center; margin-bottom: 35px; }

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--dark-text);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    border: 1px solid #eee;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.card:hover { 
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); 
    transform: translateY(-5px); 
}

.card img {
    width: 100%;
    height: 280px; 
    object-fit: cover;
}

.card-content { padding: 15px; flex-grow: 1; }

.cat-tag {
    font-size: 10px;
    color: var(--primary-mauve);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
}

.card-content h3 { font-size: 15px; margin-bottom: 8px; color: #333; }

.price { font-weight: bold; color: #444; margin-bottom: 15px; font-size: 14px; }

/* --- TOMBOL --- */
.btn-beli {
    background: var(--primary-mauve);
    color: white;
    text-align: center;
    padding: 10px;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.btn-beli:hover { background: var(--primary-hover); }

/* --- WHATSAPP FLOAT --- */
.wa-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--wa-green);
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    text-decoration: none;
    transition: 0.3s;
}

/* --- HALAMAN DETAIL PRODUK (TAMBAHAN PERBAIKAN) --- */
.product-detail-container {
    display: flex;
    gap: 40px;
    padding: 40px 10%;
    align-items: flex-start;
}

.product-detail-img {
    flex: 1;
    max-width: 450px; /* Batasi lebar gambar agar tidak raksasa */
}

.product-detail-img img {
    width: 100%;
    max-height: 550px; /* Batasi tinggi gambar */
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.product-detail-info {
    flex: 1;
}

.product-detail-info h1 {
    font-family: 'Playfair Display', serif;
    font-size: 32px; /* Ukuran teks judul yang proposional */
    margin-bottom: 15px;
}

.product-detail-info .price {
    font-size: 24px;
    color: var(--primary-mauve);
    margin-bottom: 20px;
}

.product-detail-info p {
    color: #666;
    margin-bottom: 25px;
    font-size: 14px;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 350px; /* Batasi lebar tombol */
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    .hero { flex-direction: column; text-align: center; padding: 40px 5%; }
    .hero-img { margin-top: 30px; justify-content: center; }
    .search-container { flex: 0 0 100%; width: 100%; margin: 0;   }
    .top-nav { flex-direction: column; gap: 15px; }
    .product-detail-container { flex-direction: column; padding: 20px 5%; }
    .product-detail-img { max-width: 100%; }
}

/*footer*/
/* --- FOOTER SECTION --- */
footer {
    background-color: #1a1a1a; /* Warna hitam elegan */
    color: #ffffff;
    padding: 60px 5% 30px;
    margin-top: 50px;
    font-size: 14px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    margin-bottom: 20px;
    color: #9b6d9d; /* Warna ungu mauve khas tokomu */
}

.footer-box p {
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 15px;
}

.footer-box ul {
    list-style: none;
}

.footer-box ul li {
    margin-bottom: 10px;
}

.footer-box ul li a {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
}

.footer-box ul li a:hover {
    color: #9b6d9d;
    padding-left: 5px;
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.footer-socials a {
    color: white;
    font-size: 20px;
    transition: 0.3s;
}

.footer-socials a:hover {
    color: #9b6d9d;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid #333;
    color: #777;
    font-size: 12px;
}