/* Efek Scroll Halus pas menu diklik */
html {
    scroll-behavior: smooth;
}

/* Reset CSS dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f4f6f9;
    color: #333;
    max-width: 480px; 
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

/* --- SIDEBAR MENU --- */
.sidebar-overlay {
    position: fixed;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    top: 0; right: -300px; 
    width: 260px;
    height: 100vh;
    background: #fff;
    z-index: 1000;
    transition: 0.3s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
}

.sidebar.active { right: 0; }
@media (min-width: 481px) {
    .sidebar.active { right: calc(50% - 240px); } 
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.close-btn {
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

.sidebar-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-links a {
    text-decoration: none;
    color: #000;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: color 0.2s;
}

.sidebar-links a:hover {
    color: #e60000;
}

.sidebar-links a i {
    font-size: 18px;
    width: 25px;
    text-align: center;
}

/* --- HEADER (UPDATE MELAYANG / STICKY) --- */
.header-wrapper {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    padding: 0 15px;
    z-index: 900;
}

header {
    background: #ffffff;
    border-radius: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.menu-btn {
    font-size: 22px;
    color: #e60000;
    cursor: pointer;
}

/* --- HERO SECTION (BANNER SLIDER) --- */
.hero {
    position: relative;
    width: 100%;
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #eee;
    overflow: hidden; 
}

.slider-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0; 
    transition: opacity 1s ease-in-out; 
}

.slide.active {
    opacity: 1; 
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.3); 
    z-index: 2;
}

/* --- POSISI TOMBOL PILIH MOBIL (UPDATE KE BAWAH) --- */
.hero .btn-wrapper {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.btn-pilih-mobil {
    background: rgba(255, 255, 255, 0.85);
    padding: 10px 40px;
    border-radius: 25px;
    font-weight: 800;
    font-size: 13px;
    color: #000;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    cursor: pointer;
    backdrop-filter: blur(4px);
}

/* --- PRODUCT GRID --- */
.katalog-container {
    padding: 15px;
    background: #fdfdfd;
}

.grid-mobil {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.card-mobil {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

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

.card-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.nama-mobil {
    font-size: 11px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
    flex-grow: 1;
}

.harga-mobil {
    font-size: 13px;
    font-weight: 800;
    color: #f5a623; 
    margin-bottom: 12px;
}

.btn-detail {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 8px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    display: block;
}

.btn-lihat-semua {
    display: inline-block;
    background: #e60000;
    color: #fff;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(230, 0, 0, 0.3);
    margin-top: 15px;
}

/* --- FOOTER SECTION --- */
.footer-section {
    background-color: #1e1e1e; 
    border-radius: 40px 40px 0 0; 
    padding: 35px 20px 80px 20px; 
    margin-top: 25px;
    color: #fff;
    border-top: 4px solid #fbc531; 
}

.footer-block {
    margin-bottom: 30px;
}

.footer-title {
    color: #fbc531;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.footer-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background-color: #fbc531;
    margin-right: 10px;
    border-radius: 2px;
}

.footer-text {
    font-size: 12px;
    color: #d1d1d1;
    line-height: 1.6;
}

/* --- KARTU LOKASI --- */
.location-card {
    background-color: #2a2a2c;
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 12px;
}

.loc-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 18px;
    margin-right: 15px;
    flex-shrink: 0;
}

.bg-red { background-color: #ff4757; }
.bg-yellow { background-color: #fbc531; color: #1e1e1e; }

.loc-info h4 {
    color: #fbc531;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 3px;
}

.loc-info p {
    color: #a4a4a4;
    font-size: 10px;
    line-height: 1.4;
}

/* --- NAVIGASI --- */
.nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.nav-grid a {
    color: #d1d1d1;
    text-decoration: none;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-grid a:hover {
    color: #fbc531;
}

.nav-grid a i {
    color: #fbc531;
    font-size: 11px;
}

/* --- COPYRIGHT --- */
.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 18px;
    margin-top: 10px;
    font-size: 10px;
    color: #666;
}

/* --- WHATSAPP FAB --- */
.wa-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    transform: translateX(0);
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    width: 55px;
    height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    text-decoration: none;
}

@media (min-width: 481px) {
    .wa-float {
        right: calc(50% - 220px); 
    }
}

/* --- UKURAN GAMBAR LOGO --- */
.logo-img {
    height: 30px; 
    width: auto;
    display: block;
}