* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Inter', sans-serif; 
}
        
body { 
    background: #fefaf5; 
    color: #2c2a29; 
}
        
:root { 
    --gold: #c2a575; 
    --gold-light: #e2d4bd; 
    --gold-dark: #a5834e; 
    --sand: #f5ede3; 
    --charcoal: #2e2c2a; 
    --cream: #fffcf8; 
}
        
@keyframes fadeSlideUp { 0% 
    { 
        opacity: 0; 
        transform: translateY(20px); } 
        100% { opacity: 1; transform: translateY(0); } 
    }
        
@keyframes modalFade { 
    from { 
        opacity: 0; 
        transform: scale(0.9); }
         to {
            opacity: 1; 
            transform: scale(1); } 
        }
        
.navbar { 
    background: var(--cream); 
    padding: 1rem 2rem; 
    display: flex; 
    flex-wrap: wrap; 
    align-items: center; 
    justify-content: space-between; 
    border-bottom: 1px solid rgba(194, 165, 117, 0.2); 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    backdrop-filter: blur(10px); 
    background: rgba(255, 252, 248, 0.95); 
    }
        
.logo h1 { 
    font-size: 1.8rem; 
    font-weight: 500; 
    letter-spacing: -0.5px; 
    }
        
.logo span { 
    font-weight: 300; 
    color: var(--gold-dark); 
    }
        
.nav-links { 
    display: flex; 
    gap: 1.5rem; 
    align-items: center; 
    flex-wrap: wrap; 
    position: relative;
    z-index: 300;
    }
        
.nav-links a { 
    text-decoration: none; 
    font-weight: 500; 
    color: #3e3a37; 
    transition: 0.2s; 
    }
        
.nav-links a:hover { 
    color: var(--gold); 
    }

.search-box { 
    display: flex; 
    align-items: center; 
    background: #f0eae3; 
    border-radius: 40px; 
    padding: 0.3rem 0.8rem; 
    }
        
.search-box input { 
    border: none; 
    background: transparent; 
    padding: 0.5rem; 
    outline: none; 
    font-size: 0.85rem; 
    width: 150px; 
    }
        
.search-box button { 
    background: none; 
    border: none; 
    cursor: pointer; 
    color: var(--gold-dark); 
    }

.profile-icon { 
    position: relative; 
    cursor: pointer; 
    font-size: 1.3rem; 
    }
    
.profile-dropdown { 
    position: absolute; 
    top: 35px; 
    right: 0; 
    background: white; 
    border-radius: 16px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    min-width: 180px; 
    display: none; 
    z-index: 200; 
    overflow: hidden; 
    }
        
.profile-dropdown.show { 
    display: block; 
    animation: fadeSlideUp 0.2s ease; 
    }
    
.profile-dropdown a { 
    display: block; 
    padding: 12px 20px; 
    text-decoration: none; 
    color: var(--charcoal); 
    font-size: 0.85rem; 
    transition: 0.2s; 
    }
        
.profile-dropdown a:hover { 
    background: var(--sand); 
    color: var(--gold-dark); 
    }
        
.profile-dropdown .user-info { 
    padding: 12px 20px; 
    border-bottom: 1px solid #eee; 
    font-size: 0.8rem; 
    background: var(--sand); 
    }
        
.cart-icon { 
    position: relative; 
    font-size: 1.3rem; 
    cursor: pointer; 
    }
    
.cart-count, .voucher-badge { 
    position: absolute; 
    top: -8px; 
    right: -12px; 
    background: var(--gold); 
    color: white; 
    font-size: 0.7rem; 
    font-weight: bold; 
    border-radius: 30px; 
    padding: 0.2rem 0.5rem; 
    min-width: 18px; 
    text-align: center; 
    }

.voucher-badge { 
    background: #e76f51; 
    right: -8px; 
    top: -5px; 
    font-size: 0.6rem; 
    }

.modal { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.5); 
    z-index: 1000; 
    justify-content: center; 
    align-items: center; 
    }
        
.modal-content { 
    background: white; 
    padding: 2rem; 
    border-radius: 28px; 
    max-width: 400px; 
    width: 90%; 
    animation: modalFade 0.3s ease; 
    }
    
.modal-content h3 { 
    margin-bottom: 1rem; 
    color: var(--charcoal); 
    }
        
.modal-content input { 
    width: 100%; 
    padding: 12px; 
    margin: 0.5rem 0; 
    border: 1px solid #ddd; 
    border-radius: 12px; 
    }

    .modal-content button { 
        width: 100%; 
        padding: 12px; 
        background: var(--charcoal); 
        color: white; 
        border: none; 
        border-radius: 40px; 
        margin-top: 1rem; 
        cursor: pointer; 
    }
        
    .close-modal { 
        float: right; 
        cursor: pointer; 
        font-size: 1.5rem; 
    }
        
    .image-modal { 
        display: none; 
        position: fixed; 
        top: 0; 
        left: 0; 
        width: 100%; 
        height: 100%; 
        background: rgba(0,0,0,0.9); 
        z-index: 1100; 
        justify-content: center; 
        align-items: center; 
    }
        
    .image-modal img { 
        max-width: 90%; 
        max-height: 90%; 
        border-radius: 16px; 
    }
        
    .close-image-modal { 
        position: absolute; 
        top: 20px; 
        right: 35px; 
        color: white; 
        font-size: 40px; 
        cursor: pointer; 
    }
        
   .hero { 
    text-align: center; 
    padding: 5rem 1.5rem; 
    background: transparent;
    position: relative; 
}

/* Padam terus hero::before - tak payah letak apa-apa */
        
    .hero h2, .hero p, .hero-buttons { 
        position: relative; 
        z-index: 1;
    }
        
    .hero h2 { 
        color: #2C2A29; 
    }
        
    .hero h2 strong { 
        color: var(--gold-dark); 
    }
        
    .hero p { 
        max-width: 550px; 
        margin: 1rem auto 0; 
        color: #5f5b57; 
    }
        
    .hero-buttons { 
        margin-top: 2rem; 
    }
        
    .btn-primary { 
        background: var(--charcoal); 
        color: white; 
        border: none; 
        padding: 12px 28px; 
        border-radius: 40px; 
        font-weight: 600; 
        cursor: pointer; 
        transition: 0.2s; 
        text-decoration: none; 
        display: inline-block; 
    }
        
    .btn-primary:hover { 
        background: var(--gold); 
        color: #1e1b19; 
    }
        
    .btn-outline { 
        background: transparent; 
        border: 1.5px solid var(--gold); 
        color: var(--charcoal); 
        padding: 12px 28px; 
        border-radius: 40px; 
        font-weight: 600; 
        cursor: pointer; 
        transition: 0.2s; 
        text-decoration: none; 
        display: inline-block; 
        margin-left: 1rem; 
    }
        
    .container { 
        max-width: 1300px; 
        margin: 2rem auto; 
        padding: 0 1.5rem; 
    }
        
    .section-title { 
        font-size: 1.8rem; 
        font-weight: 500; 
        margin: 2rem 0 1.5rem; 
        border-left: 5px solid var(--gold); 
        padding-left: 1rem; 
    }
        
    .product-grid { 
        display: grid; 
        grid-template-columns: 
        repeat(auto-fill, minmax(300px, 1fr)); 
        gap: 2rem; 
    }
        
.product-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(194, 165, 117, 0.15);
    height: 380px; /* Sparkle size */
    display: flex;
    flex-direction: column;
}
    
    .product-card:hover { 
        transform: translateY(-6px); 
        box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.12);
    }
        
    .card-img {
    background: #f8f2ea;
    height: 240px;              /* ← turunkan dari 320px ke 240px */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
        
    .card-img img { 
        width: 100%; 
        height: 100%; 
        object-fit: cover; 
        transition: transform 0.5s ease; 
    }
        
    .product-card:hover .card-img img { 
        transform: scale(1.03); 
    }
    
    .badge-new { 
        position: absolute; 
        top: 14px; 
        left: 14px; 
        background: var(--gold); 
        color: white; 
        padding: 4px 12px; 
        border-radius: 50px; 
        font-size: 0.7rem; 
        font-weight: 600; 
    }
        
    .stock-badge { 
        position: absolute; 
        top: 14px; 
        right: 14px; 
        background: rgba(255, 255, 245, 0.95); 
        backdrop-filter: blur(4px); 
        padding: 4px 10px; 
        border-radius: 50px; 
        font-size: 0.7rem; 
        font-weight: 600; 
    }
        
    .card-content { 
        padding: 0.8rem 0.8rem 1rem;  /* ← kurang padding */
    }
    
    .product-name { 
        font-weight: 700; 
        font-size: 0.95rem; 
        margin-bottom: 0.2rem; 
    }
        
    .product-brand { 
        font-size: 0.7rem; 
        color: var(--gold-dark); 
        margin-bottom: 0.3rem; 
    }
        
    .color-swatches { 
        display: flex; 
        gap: 6px; 
        margin: 6px 0; 
        flex-wrap: wrap; 
    }
    
    .color-swatch { 
        width: 24px; 
        height: 24px; 
        border-radius: 50%; 
        cursor: pointer; 
        border: 2px solid transparent; 
        transition: 0.2s; 
        position: relative; 
    }
        
    .color-swatch:hover { 
        transform: scale(1.1); 
        border-color: var(--gold); 
    }
    
    .color-swatch.active { 
        border-color: var(--gold-dark); 
        box-shadow: 0 0 0 2px white, 0 0 0 4px var(--gold); 
    }
     
    .color-swatch .color-label { 
        position: absolute; 
        bottom: -20px; 
        left: 50%;
        transform: translateX(-50%); 
        background: var(--charcoal); 
        color: white; 
        font-size: 0.6rem; 
        padding: 2px 6px; 
        border-radius: 10px; 
        white-space: nowrap; 
        display: none; 
    }
        
    .color-swatch:hover .color-label { 
        display: block; 
    }
    
    .product-meta { 
        display: flex; 
        flex-wrap: wrap; 
        gap: 0.5rem; 
        font-size: 0.7rem; 
        color: #6b625c; 
        margin: 0.3rem 0; 
    }
    
    .product-price { 
        font-weight: 700; 
        font-size: 1rem; 
        color: var(--gold-dark); 
        margin: 0.3rem 0; 
    }
        
.btn-group {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.add-to-cart-btn { 
    flex: 1;
    background: var(--charcoal); 
    border: none; 
    padding: 8px 12px; 
    border-radius: 40px; 
    color: white; 
    font-weight: 600; 
    font-size: 0.75rem; 
    cursor: pointer; 
    transition: 0.2s; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 6px; 
}

.view-btn {
    flex: 1;
    background: transparent;
    border: 1.5px solid var(--gold);
    border-radius: 40px;
    color: var(--gold-dark);
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    transition: 0.2s;
}

.view-btn:hover {
    background: var(--gold-light);
    border-color: var(--gold-dark);
    color: var(--charcoal);
}

.add-to-cart-btn:hover:not(:disabled) { 
    background: var(--gold); 
    color: #1e1b19; 
}
    
    .add-to-cart-btn:hover { 
        background: var(--gold); 
        color: #1e1b19; 
    }
    
    .add-to-cart-btn:disabled { 
        background: #ccc; 
        cursor: not-allowed; 
    }
        
    footer { 
        background: #2c2a29; 
        color: #d4c9bf; 
        padding: 3rem 2rem 1rem; 
        margin-top: 4rem; 
    }
        
    .footer-container { 
        max-width: 1300px; 
        margin: 0 auto; 
        display: grid; 
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
        gap: 2rem; 
    }
    
    .footer-col h4 { 
        color: var(--gold); 
        margin-bottom: 1rem; 
        font-size: 1.1rem; 
    }
    
    .footer-col p { 
        line-height: 1.6; 
        font-size: 0.85rem; 
    }
    
    .footer-col a { 
        color: #d4c9bf; 
        text-decoration: none; 
        display: block; 
        margin: 0.5rem 0; 
        font-size: 0.85rem; 
        transition: 0.2s; 
    }
        
    .footer-col a:hover { 
        color: var(--gold); 
    }
        
    .social-icons { 
        display: flex; 
        gap: 1rem; 
        margin-top: 1rem; 
    }
        
    .social-icons a { 
        font-size: 1.3rem; 
    }
        
    .newsletter input { 
        padding: 10px; 
        border: none; 
        border-radius: 40px; 
        width: 70%; 
        margin-right: 0.5rem; 
    }
        
    .newsletter button { 
        background: var(--gold); 
        border: none; 
        padding: 10px 15px; 
        border-radius: 40px; 
        cursor: pointer; 
    }
        
    .instagram-section { 
        text-align: center; 
        padding: 3rem; 
        background: var(--sand); 
        margin-top: 2rem; 
    }
        
    .instagram-section h3 { 
        font-size: 1.8rem; 
        margin-bottom: 0.5rem; 
    }
        
    .instagram-section .btn-view { 
        background: var(--charcoal); 
        color: white; 
        padding: 10px 30px; 
        border-radius: 40px; 
        text-decoration: none; 
        display: inline-block; 
        margin-top: 1rem; 
    }
        
    .copyright { 
        text-align: center; 
        padding-top: 2rem; 
        margin-top: 2rem; 
        border-top: 1px solid rgba(255,255,255,0.1); 
        font-size: 0.75rem; 
    }
    
    .toast { 
        position: fixed; 
        bottom: 30px; 
        left: 50%; 
        transform: translateX(-50%); 
        background: #2c2a29; 
        color: #f8e5d4; 
        padding: 12px 24px; 
        border-radius: 50px; 
        font-size: 0.85rem; 
        z-index: 1000; 
    }
       
    @media (max-width: 768px) { 
        .navbar { 
            flex-direction: column; 
            gap: 1rem; 
        } 
        .nav-links { 
            gap: 1rem; 
        } 
        .hero h2 { 
            font-size: 1.8rem; 
        } 
    }

.view-btn {
    flex: 1;
    background: transparent;
    border: 1.5px solid var(--gold);
    border-radius: 40px;
    color: var(--gold-dark);
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    transition: 0.2s;
    text-decoration: none;
    text-align: center;
}

.view-btn:hover {
    background: var(--gold-light);
    border-color: var(--gold-dark);
    color: var(--charcoal);
    text-decoration: none;
}

/* Enhanced Mobile Responsiveness */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--charcoal);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.nav-links {
    position: relative;
}

.nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cream);
    padding: 5rem 2rem 2rem;
    gap: 1rem;
    overflow-y: auto;
    transform: translateX(0);
    animation: slideIn 0.3s ease;
}

.newarrivals-container {
        max-width: 1200px;
        margin: 40px auto;
        padding: 0 20px;
    }

.newarrivals-header {
        text-align: center;
        margin-bottom: 40px;
    }

    .newarrivals-header h1 {
        font-size: 32px;
        font-weight: 700;
        color: #2c2a29;
        margin-bottom: 10px;
    }

    .newarrivals-header p {
        color: #666;
        font-size: 14px;
    }

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.search-box {
    order: 3;
    width: 100%;
    max-width: 300px;
}

@media (max-width: 768px) {
    .hamburger-btn {
        display: block;
        order: 2;
    }
    
    .nav-links:not(.mobile-open) {
        display: none;
    }
    
    .navbar {
        padding: 1rem;
        gap: 1rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 3rem 1rem;
    }
    
    .hero h2 {
        font-size: clamp(1.4rem, 6vw, 2rem); /* Kecilkan */
    }
    
    .hero p {
        font-size: 0.85rem; /* Kecilkan paragraph */
    }
}
    
    .hero-buttons {
        display: flex;        /* Pastikan guna flex */
        flex-direction: column; 
        gap: 12px;            /* Kurangkan gap supaya nampak rapat & kemas */
        align-items: center;
        margin-top: 1.5rem;   /* Kurangkan sedikit margin atas */
    }
    
    .btn-primary, .btn-outline {
        width: 100%;
        max-width: 250px;     /* Kecilkan sikit lebar butang supaya nampak seimbang */
        margin: 0 !important; /* WAJIB: Buang margin asal supaya gap 12px tu bekerja dengan tepat */
        display: block;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .newsletter {
        flex-direction: column;
        gap: 1rem;
    }
    
    .newsletter input {
        width: 100%;
    }

        .newarrivals-container {
            margin: 30px auto;
            padding: 0 15px;
        }    

    .newarrivals-header h1 {
            font-size: 26px;
        }

        .newarrivals-header p {
            font-size: 13px;
        }
}

@media (max-width: 480px) {
    .product-card {
        height: auto;
        min-height: 340px;
    }
    
    .card-img {
        height: 200px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .toast {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        transform: none;
        max-width: none;
    }
}

/* Close button for mobile nav */
.nav-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--charcoal);
    cursor: pointer;
}

.newarrivals-container {
            margin: 20px auto;
            padding: 0 12px;
        }

.newarrivals-header h1 {
    font-size: 22px;
}