/* ===== MAIN BAR ===== */
.bar-main {
    display:flex;
    flex-direction:column;
    max-width:1200px;
    margin:80px auto 20px auto; /* dikurangi dari 100px ke 60px supaya naik */
    padding:0 10px;
}

/* SEARCH BAR */
.bar-search .search-form {
    display:flex;
    width:100%;
    margin-bottom:5px; /* beri jarak sedikit dengan filter */
}
.bar-search input[type=text] {
    flex:1;
    padding:10px 12px 10px 35px;
    font-size:15px;
    border-radius:6px 0 0 6px;
    border:1px solid #ccc;
}
.search-btn {
    padding:0 15px;
    border:none;
    background:#0b1d4a;
    color:#fff;
    font-size:16px;
    border-radius:0 6px 6px 0;
    cursor:pointer;
}

/* CATEGORY & FILTER BAR */
.bar-sub {
    display:flex;
    justify-content:space-between;
    gap:10px;
    flex-wrap:wrap;
}
.bar-sub > div {
    flex:1 1 30%; 
}
.bar-kategori select, .bar-filter select {
    width:100%;
    padding:6px 10px;
    font-size:14px;
    border-radius:6px;
    border:1px solid #ccc;
    background:#fff;
    cursor:pointer;
}

/* CAR GRID */
.container { max-width:1200px; margin:20px auto; padding:0 15px; }
h2 { color:#004aad; margin-bottom:10px; }
.result-count { margin-bottom:20px; color:#555; }

/* DESKTOP GRID */
.grid-mobil {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap:20px;
}

.card {
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
    text-decoration:none;
    color:inherit;
}
.card:hover { transform:translateY(-5px); box-shadow:0 10px 25px rgba(0,0,0,0.15); }
.card img { width:100%; height:240px; object-fit:cover; }
.terjual-overlay {
    position:absolute;
    top:10px; left:10px;
    background:rgba(220,53,69,0.85);
    color:#fff;
    font-weight:bold;
    font-size:14px;
    padding:5px 8px;
    border-radius:5px;
    display:flex;
    align-items:center;
    gap:4px;
}
.info { padding:10px 15px; text-align:left; }
.top-info { 
    font-size:12px; 
    color:#333; 
    margin-bottom:5px; 
    font-weight:bold; 
    font-style: oblique;
    font-family: Arial, Helvetica, sans-serif ;
}

.harga { font-size:14px; color:green; font-weight:bold; }

/* RESPONSIVE */
@media(max-width:768px){
    .bar-search .search-form { flex-direction:row; }
    .bar-search input[type=text] { flex:1; border-radius:6px 0 0 6px; }
    .search-btn { border-radius:0 6px 6px 0; }
    .bar-sub { flex-direction:row; gap:5px; }
    .bar-sub > div { flex:1 1 48%; }

    /* MOBILE GRID 2 ITEMS */
    .grid-mobil { grid-template-columns: repeat(2, 1fr); }

    /* MOBILE CARD HEIGHT */
    .card img { height:180px; }
}

.judul-list {
    color: #030e1d;       /* warna biru */
    font-size: 14px;      /* ukuran font */
    font-style: italic;
    font-weight: bold;    /* tebal */
    margin-bottom: 5px;  /* jarak bawah */
}

/* Jumlah hasil */
.result-count {
    font-size: 10px;
    font-style: italic;
    color: #030e1d;
    margin-bottom: 10px;
}
.result-count b {
    color: #610101;       /* highlight angka total */
    font-style: italic;
}

.banner-populer-container {
    margin: 20px auto;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
}

.banner-populer-slider {
    display: flex;
    transition: transform 0.5s linear;
}

.banner-item {
    min-width: 300px;
    margin-right: 15px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    text-decoration: none;
}

.banner-item img {
    width: 100%;
    display: block;
    object-fit: cover;
    height: 200px;
}

.banner-info {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: #fff;
    background: rgba(0,0,0,0.5);
    padding: 5px 8px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* ===== Desktop ===== */
.banner-populer-container {
    margin-left: 25%;
    margin-right: 25%;
    
}

.banner-item {
    min-width: 200px;
}

.banner-item img {
    height: 100px;
}

.banner-info .merk { font-size: 16px; font-weight: 700; }
.banner-info .tahun { font-size: 16px; }
.banner-info .harga { font-size: 16px; font-weight: 600; }

/* ===== Mobile ===== */
@media(max-width:768px){
    .banner-populer-container  {
        margin-left: 5%;
        margin-right: 5%;
    }

    .banner-item { min-width: 50%; }
    .banner-item img { height: 100px; }

    .banner-info .merk { font-size: 12px; }
    .banner-info .tahun { font-size: 10px; }
    .banner-info .harga { font-size: 10px;  }
}


.info-section-horizontal {
    display: flex;
    flex-wrap: nowrap; /* jangan wrap */
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}

.info-section-horizontal .info-item {
    flex: 1 1 0; /* semua item sama lebar */
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-size: 14px;
}

.info-section-horizontal .icon {
    width: 20px;
    height: 20px;
    margin-right: 6px;
    fill: #000;
}
