/* ===================================================================
   1. KONFIGURASI DASAR & VARIABEL WARNA
   =================================================================== */
:root {
    --primary-color: #0a2540; 
    --secondary-color: #d4af37;
    --background-color: #ffffff;
    --surface-color: #f8f9fa;
    --text-color: #333333;
    --text-light-color: #6c757d;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Lato', sans-serif;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.1);
    --border-color: #e5e7eb;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Jarak untuk header saat navigasi internal */
}

body {
    font-family: var(--font-secondary);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-family: var(--font-primary);
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: -30px auto 40px;
    color: var(--text-light-color);
    font-size: 1.1rem;
}

.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #c8a02b;
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}


/* ===================================================================
   2. HEADER & NAVIGASI
   =================================================================== */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    background-color: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.main-header.scrolled {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.4s ease;
}
.main-header:not(.scrolled) .logo {
    color: #ffffff; /* Logo putih saat transparan */
}

/* Navigasi Desktop */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none; /* Tambahkan ini jika menggunakan ul/li */
}

.nav-links a {
    color: #ffffff; /* Teks putih saat header transparan */
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color 0.4s ease;
}
.main-header.scrolled .nav-links a {
    color: var(--text-color); /* Teks gelap saat header solid */
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Tombol Hamburger (hanya muncul di mobile) */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.hamburger-menu .bar {
    width: 2rem;
    height: 3px;
    background-color: #ffffff;
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}
.main-header.scrolled .hamburger-menu .bar {
    background-color: var(--text-color);
}


/* ===================================================================
   3. KONTEN HALAMAN (SECTIONS)
   =================================================================== */

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(10, 37, 64, 0.85), rgba(10, 37, 64, 0.85)), url('https://www.shutterstock.com/image-illustration/new-clean-resin-vinyl-floor-600nw-2413668773.jpg') no-repeat center center/cover;
    color: #ffffff;
    text-align: center;
    padding: 140px 0;
    margin-top: -101px; /* Menarik hero ke belakang header */
}
.hero-title { font-family: var(--font-primary); font-size: 3.8rem; font-weight: 700; margin-bottom: 15px; }
.hero-subtitle { font-size: 1.2rem; max-width: 650px; margin: 0 auto 35px; opacity: 0.9; }

/* Features Section */
.features-section { padding: 80px 0; background-color: var(--surface-color); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.feature-item { text-align: center; padding: 20px; }
.feature-icon { background-color: rgba(10, 37, 64, 0.1); color: var(--primary-color); width: 80px; height: 80px; border-radius: 50%; display: inline-flex; justify-content: center; align-items: center; font-size: 2.5rem; margin-bottom: 20px; }
.feature-item h3 { font-family: var(--font-primary); font-size: 1.3rem; margin-bottom: 10px; color: var(--primary-color); }

/* Product Section */
.product-section { padding: 80px 0; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 35px; }
.product-card { background-color: #fff; border-radius: 10px; box-shadow: var(--shadow); transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); overflow: hidden; position: relative; }
.product-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }
.product-image-container { position: relative; overflow: hidden; aspect-ratio: 1 / 1; }
.product-image { width: 100%; height: 100%; object-fit: contain; transition: transform 0.4s ease; }
.product-card:hover .product-image { transform: scale(1.1); }
.product-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10, 37, 64, 0.5); display: flex; justify-content: center; align-items: center; gap: 15px; opacity: 0; transition: opacity 0.4s ease; }
.product-card:hover .product-overlay { opacity: 1; }
.btn-overlay { background: var(--background-color); color: var(--primary-color); border: none; border-radius: 50%; width: 50px; height: 50px; display: flex; justify-content: center; align-items: center; font-size: 1.1rem; cursor: pointer; transform: translateY(20px); opacity: 0; transition: all 0.3s ease; text-decoration: none; }
.product-card:hover .btn-overlay { transform: translateY(0); opacity: 1; }
.product-card:hover .btn-overlay:nth-child(2) { transition-delay: 0.1s; }
.btn-overlay:hover { background: var(--secondary-color); color: var(--primary-color); }
.product-info { padding: 20px; text-align: center; }
.product-title { font-family: var(--font-primary); font-size: 1.1rem; font-weight: 500; margin-bottom: 8px; }
.product-title a { text-decoration: none; color: var(--text-color); transition: color 0.3s ease; }
.product-title a:hover { color: var(--secondary-color); }
.product-price { font-size: 1.2rem; font-weight: 700; color: var(--primary-color); }
.product-badge { position: absolute; top: 15px; left: 15px; background-color: var(--secondary-color); color: var(--primary-color); padding: 5px 12px; font-size: 0.75rem; font-weight: 700; border-radius: 5px; text-transform: uppercase; }
.empty-message { grid-column: 1 / -1; text-align: center; font-size: 1.2rem; color: var(--text-light-color); }

/* Location Section */
.location-section { padding: 80px 0; background-color: var(--surface-color); }
.location-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.location-card { text-align: center; padding: 30px; border: 1px solid var(--border-color); border-radius: 10px; }
.location-card i { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 15px; }
.location-card h3 { font-family: var(--font-primary); font-size: 1.3rem; margin-bottom: 10px; color: var(--primary-color); }

/* CTA Section */
.cta-section { padding: 80px 0; background-color: var(--primary-color); color: #ffffff; text-align: center; }
.cta-section h2 { font-family: var(--font-primary); font-size: 2.5rem; margin-bottom: 15px; }
.cta-section p { max-width: 500px; margin: 0 auto 30px; opacity: 0.9; }


/* ===================================================================
   4. FLOATING CART BUTTON (FAB)
   =================================================================== */
.floating-cart-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 999;
    text-decoration: none;
    transition: transform 0.3s ease;
    animation: fadeInUp 0.5s 0.5s ease-out backwards;
}

.floating-cart-btn:hover {
    transform: scale(1.1);
}

.floating-cart-btn .cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.8rem;
    display: none; /* Diatur oleh JS */
    justify-content: center;
    align-items: center;
    font-weight: bold;
    border: 2px solid white;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ===================================================================
   5. FOOTER
   =================================================================== */
.main-footer { background-color: #051322; color: #ffffff; padding: 40px 0; }
.main-footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-info h3 { font-family: var(--font-primary); font-size: 1.5rem; color: #fff; margin-bottom: 10px; }
.footer-info p { margin: 0; color: #a0aec0; max-width: 300px; }
.footer-info .footer-contact { margin-top: 15px; font-weight: 500; color: #fff; }
.social-links a { color: #ffffff; margin-left: 20px; font-size: 1.3rem; transition: color 0.3s ease; }
.social-links a:hover { color: var(--secondary-color); }


/* ===================================================================
   6. RESPONSIVE (MEDIA QUERIES)
   =================================================================== */
@media (max-width: 768px) {
    /* Tampilkan hamburger & sembunyikan nav desktop */
    .hamburger-menu {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Sembunyikan di luar layar */
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transform: translateX(0);
        transition: right 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

    /* Teks menu selalu gelap di menu mobile */
    .nav-links a,
    .main-header:not(.scrolled) .nav-links a {
        color: var(--primary-color);
    }
    
    .nav-links.nav-active {
        right: 0; /* Munculkan menu mobile saat aktif */
    }
    
    /* Animasi hamburger menjadi 'X' */
    .hamburger-menu.is-active .bar:nth-child(1) {
        transform: rotate(45deg);
    }
    .hamburger-menu.is-active .bar:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }
    .hamburger-menu.is-active .bar:nth-child(3) {
        transform: rotate(-45deg);
    }

    /* Penyesuaian lain untuk mobile */
    .hero-title { font-size: 2.5rem; }
    .main-footer .container { flex-direction: column; text-align: center; gap: 30px; }
    .social-links { margin-top: 10px; }
    .social-links a { margin: 0 15px; }
}

/* ===================================================================
   7. STYLING UNTUK FORM (REGISTER, CHECKOUT, DLL)
   =================================================================== */

/* Menggunakan kembali class dari checkout untuk konsistensi */
.checkout-section {
    padding: 60px 0;
    background-color: var(--surface-color);
}

.checkout-card {
    background: var(--background-color);
    border-radius: 12px;
    padding: 30px 40px;
    box-shadow: var(--shadow);
}

.checkout-card h2 {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 10px;
}

.checkout-card p {
    text-align: center;
    color: var(--text-light-color);
    margin-bottom: 30px;
}

/* Style untuk semua grup form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

/* Style untuk semua input, textarea, dan select */
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Lato', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2); /* Efek glow */
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* Tombol Aksi di dalam Form (seperti tombol submit) */
.btn-save {
    background-color: var(--success-color);
}

/* ===================================================================
   STYLING BARU UNTUK HALAMAN DEPAN
   =================================================================== */

/* Penyesuaian Hero Section */
.hero-section .btn-secondary {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}
.hero-section .btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
}
.hero-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; /* Memberi jarak antar tombol */
}

/* Section PayLater Baru */
.paylater-section {
    padding: 80px 0;
    background-color: var(--surface-color);
}
.paylater-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.paylater-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
}
.paylater-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}
.paylater-features {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
}
.paylater-features li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}
.paylater-features li i {
    color: var(--success-color);
    font-size: 1.2rem;
    margin-top: 4px;
}

/* Tombol Navigasi di Header (Login/Akun) */
.btn-nav, .btn-nav-logout {
    background-color: var(--secondary-color);
    color: var(--primary-color) !important; /* Paksa warna agar menonjol */
    padding: 8px 20px !important;
    border-radius: 5px;
    transition: all 0.3s ease;
}
.btn-nav-logout {
    background-color: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color) !important;
}
.main-header:not(.scrolled) .btn-nav-logout {
    border-color: white;
    color: white !important;
}
.btn-nav:hover, .btn-nav-logout:hover {
    transform: translateY(-2px);
}
.mobile-divider { /* Garis pemisah di menu mobile */
    display: none !important;
}

/* Penyesuaian CTA Section */
.cta-section a.btn-primary {
    background-color: white;
    color: var(--primary-color);
}
.cta-section a.btn-primary:hover {
    background-color: #f0f0f0;
}


/* Penyesuaian Responsif */
@media (max-width: 992px) {
    .paylater-content {
        grid-template-columns: 1fr;
    }
    .paylater-image {
        order: -1; /* Pindahkan gambar ke atas di mobile */
    }
}
@media (max-width: 768px) {
    /* Tampilkan pemisah dan style tombol di menu mobile */
    .mobile-divider {
        display: block !important;
    }
    .btn-nav, .btn-nav-logout {
        width: 80%;
        text-align: center;
        justify-content: center;
        background-color: var(--secondary-color) !important;
        color: var(--primary-color) !important;
        border: none !important;
    }
}
/* ===================================================================
   STYLING BARU UNTUK KALKULATOR SIMULASI
   =================================================================== */

.calculator-section {
    padding: 80px 0;
}

.calculator-card {
    max-width: 700px;
    margin: 0 auto;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.calculator-form {
    padding: 30px;
    background-color: var(--surface-color);
}

.calculator-result {
    padding: 30px;
    text-align: center;
    background-color: var(--primary-color);
    color: white;
}

.calculator-result p {
    margin-top: 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

.calculator-result h3 {
    font-family: var(--font-primary);
    font-size: 2.8rem;
    margin: 10px 0;
    color: var(--secondary-color);
}

.calculator-result small {
    opacity: 0.8;
}

.calculator-cta {
    padding: 30px;
    text-align: center;
}