/* Auto Parts Filter – Desktop: 5 dropdowns in 1 row + Button below | Mobile: Stacked */
.auto-parts-filter {
    max-width: 1400px;
    margin: 15px 10px;
    padding: 0 15px;
    font-family: Arial, sans-serif;
}

.cascading-filter form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ========== DESKTOP: 5 DROPDOWNS IN ONE ROW ========== */
@media (min-width: 1024px) {
    .cascading-filter .apf-row {
        display: flex;
        flex-wrap: nowrap;
        gap: 15px;
        align-items: flex-end;
    }

    .cascading-filter .apf-col {
        flex: 1;
        min-width: 160px;
    }
}

/* ========== TABLET & MOBILE: STACK VERTICALLY ========== */
@media (max-width: 1023px) {
    .cascading-filter .apf-row {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .cascading-filter .apf-col {
        width: 100%;
    }
}

/* Common dropdown styling */
.cascading-filter .apf-col label {
    display: block;
    margin-bottom: 8px;
    font-weight: 300;
    font-size: 14px;
    color: #e7e7e7;
}
.btn.primary
 {
    white-space: nowrap;
    min-width: auto !important;
    height: auto !important;
    padding: 10px 20px !important;
	margin-bottom : 3px;
}
.cascading-filter .apf-col select {
    width: 100%;
    height: 40px;
    padding: 0 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    box-sizing: border-box;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

/* Button – centered on desktop, full-width on mobile */
.cascading-filter .apf-actions {
    display: flex;
    justify-content: center;
}

.cascading-filter .cascading-submit {
	margin-bottom: 4px;
    min-width: 180px;
    height: 40px;
    background: var(--color-primary-dark);
    color: white;
    font-size: 17px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    padding: 0 30px;
	width:inherit;
	
}
.cascading-filter .cascading-submit-used {
    min-width: 180px;
    height: 40px;
    background: var(--color-secondary);
    color: white;
    font-size: 17px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    padding: 0 30px;
	width: inherit;
}
@media (max-width: 1023px) {
    .cascading-filter .cascading-submit {
        width: 100%;
        max-width: 400px;
    }
}

.cascading-filter .cascading-submit:hover {
    background: #c1121f;
}
.cascading-filter .cascading-submit-used:hover {
    background: #07a2b5;
}
/* Selected info */
.apf-result {
    margin-top: 10px;
    text-align: center;
    font-size: 15px;
    color: #444;
    padding: 10px;
    background: #f7f7f7;
    border-radius: 8px;
}
.widget .auto-parts-filter .apf-row,
.sidebar .auto-parts-filter .apf-row,
#secondary .auto-parts-filter .apf-row,
.footer-widgets .auto-parts-filter .apf-row {
    flex-direction: column !important;
    gap: 18px;
}
.widget .auto-parts-filter .apf-col,
.sidebar .auto-parts-filter .apf-col {
    width: 100% !important;
}
.widget .auto-parts-filter .apf-buttons {
    flex-direction: column !important;
}
.widget .auto-parts-filter .apf-buttons button {
    width: 100% !important;
}