/* ==============================
   GLOBAL STYLE
   ============================== */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background: #f7f9fc;
    color: #000;
}

/* SATU-SATUNYA PENGATUR LEBAR */
.container {
    max-width: 1200px;
    margin:10px auto 80px auto;
    padding: 0 15px;
    width: 100%;
    
}

/* ==============================
   SEARCH BAR
   ============================== */
.bar-main {
    width: 100%;
    max-width: 900px;     
    margin: 80px auto 10px auto; /* auto bikin center horizontal */
    text-align: center;          /* isi di tengah */
    align-items: center;         /* pastikan konten rata tengah */
    gap: 10px;                   /* beri jarak antar elemen dalam bar-main */
}

.bar-search .search-form {
    display: flex;
    width: 100%;
    margin-bottom: 10px;
}

.bar-search input[type=text] {
    flex: 1;
    padding: 10px 12px 10px 35px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 6px 0 0 6px;
    outline: none;
}

.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;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.bar-sub > div {
    flex: 1 1 30%;
}

.bar-sub select {
    width: 100%;
    padding: 6px 10px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
}

/* ==============================
   GRID MOBIL
   ============================== */
.grid-mobil {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    
}

.card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
    position: relative;
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* ==============================
   LABELS
   ============================== */


.label-year {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #2a8008;
    color: #fff;
    padding: 3px 10px;
    border-radius: 5px;
    font-weight: 800;
    font-size: 12px;
    font-style: italic;
}

.label-kategori {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,74,173,0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
}

/* ==============================
   INFO CARD
   ============================== */
.info {
    padding: 10px;
    background: #fff;
}

.info .harga {
    font-weight: bold;
    font-size: 14px;
    color: rgb(180, 48, 15);
}

/* ==============================
   ADD TO CART BUTTON
   ============================== */
.btn-add-cart {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #0b1d4a;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

.btn-add-cart:hover {
    background: #142b70;
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 768px) {
    .grid-mobil {
        grid-template-columns: repeat(2, 1fr);
    }

    .card img {
        height: 180px;
    }

    .bar-main {
        width: 95%;
        margin-top: 70px;
        gap: 10px;
    }

    .bar-search .search-form {
        flex-direction: row;
    }

    .bar-sub {
        flex-direction: row;
        gap: 8px;
    }

    .bar-sub > div {
        flex: 1;
    }

    .bar-sub select {
        font-size: 13px;
        padding: 8px;
    }
}


