/* ==================== 1. RESET & FONT BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: #ffffff;
    color: #333333;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==================== 2. HEADER & NAVIGATION ==================== */
header {
    border-bottom: 1px solid #eeeeee;
    position: sticky;
    top: 0;
    background-color: #ffffff;
    z-index: 1000;
}

/* Baris Utama: Logo, Search, Actions */
.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo img {
    display: block;
    object-fit: contain;
}

.search-bar {
    display: flex;
    align-items: center;
    border: 1px solid #cccccc;
    padding: 6px 12px;
    width: 400px;
    border-radius: 4px;
}

.search-bar input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 14px;
}

.search-bar button {
    border: none;
    background: none;
    color: #888888;
    cursor: pointer;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.action-icon {
    font-size: 20px;
    color: #333333;
}

.login-btn {
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
    background-color: #000000;
    color: #ffffff;
    padding: 8px 16px;
    transition: 0.3s;
}

.login-btn:hover {
    background-color: #333333;
}

/* Baris Kategori Navigasi */
.category-nav {
    display: flex;
    justify-content: center;
    padding: 10px 0;
    background-color: #ffffff;
    border-top: 1px solid #f5f5f5;
}

.category-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.category-nav a {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #555555;
    transition: 0.2s;
}

.category-nav a:hover {
    color: #000000;
}

.category-nav .sale a {
    color: #d9534f; /* Warna merah untuk menu SALE/PROMO */
}

/* --- FITUR DROPDOWN MENU INTERAKTIF --- */

/* Memastikan elemen pembungkus menggunakan posisi relatif */
.category-nav ul li.dropdown {
    position: relative;
}

/* Mengatur kotak menu dropdown yang tersembunyi secara default */
.dropdown-menu {
    position: absolute;
    top: 100%; /* Muncul tepat di bawah menu utama */
    left: 50%;
    transform: translateX(-50%) translateY(10px); /* Geser sedikit ke bawah untuk efek transisi */
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    border: 1px solid #eeeeee;
    z-index: 999;
}

/* Mengatur susunan item di dalam dropdown menjadi vertikal ke bawah */
.category-nav .dropdown-menu {
    display: flex;
    flex-direction: column;
    gap: 0; /* Mengubah susunan horizontal menu utama */
}

/* Mengatur tampilan link di dalam dropdown */
.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 12px;
    color: #666666;
    text-align: left;
    white-space: nowrap; /* Mencegah teks turun ke bawah jika terlalu panjang */
    transition: background-color 0.2s, color 0.2s;
}

/* Efek hover pada item di dalam dropdown */
.dropdown-menu li a:hover {
    background-color: #f9f9f9;
    color: #000000;
}

/* TAMPILKAN DROPDOWN SAAT DI-HOVER */
.category-nav ul li.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0); /* Efek meluncur ke posisi asli */
}


/* ==================== 3. PRODUCT GRID SECTION ==================== */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.view-all {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
    border-bottom: 1px solid #000000;
    padding-bottom: 2px;
}

/* Grid 5 Kolom ala Hijup */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.product-card {
    background-color: #ffffff;
    transition: transform 0.3s;
}

/* Wrapper Gambar & Efek Hover */
.product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 133%; /* Aspek rasio foto fashion (approx 3:4) */
    background-color: #f7f7f7;
    overflow: hidden;
    margin-bottom: 15px;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.03); /* Sedikit zoom saat di-hover */
}

/* Overlay Tombol WhatsApp saat Hover */
.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .hover-overlay {
    opacity: 1;
}

.buy-wa-btn {
    background-color: #25d366; /* Warna khas WhatsApp */
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: bold;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.buy-wa-btn:hover {
    transform: scale(1.05);
    background-color: #1ebd58;
}

/* Informasi Produk */
.product-info {
    padding: 5px 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.price {
    font-size: 15px;
    font-weight: bold;
    color: #000000;
}

.wishlist-icon {
    color: #888888;
    cursor: pointer;
}

.product-name {
    font-size: 13px;
    font-weight: 400;
    color: #444444;
    margin-bottom: 4px;
    line-height: 1.4;
}

.brand-sub {
    font-size: 11px;
    color: #888888;
    letter-spacing: 0.5px;
}

/* Pilihan Ukuran */
.size-options {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.size-options span {
    font-size: 11px;
    border: 1px solid #dddddd;
    padding: 2px 6px;
    cursor: pointer;
    transition: 0.2s;
}

.size-options span:hover, .size-options span.active {
    border-color: #000000;
    background-color: #000000;
    color: #ffffff;
}

/* ==================== 4. BANNER BAWAH ==================== */
.bottom-banners {
    margin-top: 50px;
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.banner-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ==================== 5. WHATSAPP FLOAT BUTTON ==================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: 0.3s;
}

.whatsapp-float:hover {
    background-color: #1ebd58;
    transform: translateY(-5px);
}

/* ==================== 6. FOOTER ==================== */
footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid #eeeeee;
    font-size: 12px;
    color: #888888;
    margin-top: 50px;
}