/* =========================================
   catalog.css - REVISI MODAL FILTER
   ========================================= */

/* --- LAYOUT UTAMA --- */
/* Tidak ada sidebar lagi, jadi block biasa */
.catalog-layout {
    display: block;
    margin-top: 20px;
}

/* --- FILTER TRIGGER BUTTON (POJOK KANAN ATAS) --- */
.filter-trigger-area {
    display: flex;
    justify-content: flex-end; /* Posisi Kanan */
    margin-bottom: 20px;
    align-items: center;
}

.btn-filter-toggle {
    background: white;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-filter-toggle:hover {
    background: var(--primary-blue);
    color: white;
}

/* --- MODAL FILTER STYLE --- */
.filter-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5); /* Black Overlay */
    backdrop-filter: blur(4px);
}

.filter-modal-content {
    background-color: white;
    margin: 5% auto; /* 5% dari atas */
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 500px; /* Lebar maksimal modal */
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: slideDown 0.3s ease-out;
    overflow: hidden;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.filter-modal-header {
    background: var(--light-bg);
    padding: 15px 25px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-modal-header h3 { margin: 0; color: var(--primary-blue); }
.close-filter-modal { font-size: 1.5rem; cursor: pointer; color: #888; }

.filter-modal-body {
    padding: 25px;
    max-height: 70vh;
    overflow-y: auto;
}

/* Form Groups */
.filter-group { margin-bottom: 25px; }
.filter-group h4 { margin: 0 0 15px 0; font-size: 1rem; color: #333; border-left: 4px solid var(--primary-green); padding-left: 10px; }

/* Custom Checkbox & Radio */
.filter-label {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #555;
}

.filter-label input { margin-right: 10px; transform: scale(1.2); accent-color: var(--primary-blue); }

.filter-modal-footer {
    padding: 15px 25px;
    background: #f9f9f9;
    border-top: 1px solid #ddd;
    text-align: right;
}

.btn-apply {
    background: var(--primary-blue); color: white; border: none;
    padding: 10px 30px; border-radius: 25px; font-weight: bold; cursor: pointer;
    transition: 0.2s;
}
.btn-apply:hover { background: var(--primary-green); }

/* --- PAGINATION (Tetap Sama) --- */
.pagination {
    display: flex; justify-content: center; align-items: center; gap: 15px;
    margin-top: 50px; margin-bottom: 50px;
}
.page-btn {
    display: inline-flex; align-items: center; justify-content: center; height: 45px; padding: 0 25px;
    background: white; border: 2px solid var(--primary-blue); color: var(--primary-blue);
    text-decoration: none; border-radius: 50px; font-weight: bold; transition: 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.page-btn:hover {
    background: var(--primary-blue); color: white; transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0,102,204,0.2);
}
.page-btn.active {
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-green));
    border: none; color: white; padding: 0 30px;
}
.page-btn.disabled {
    background: #f0f0f0; border-color: #ddd; color: #aaa; cursor: not-allowed;
    transform: none; box-shadow: none;
}