/* ============================================
   Sister Product Filter - Styles
   ============================================ */

.sister-filter-wrapper {
    background: #f9f9f9;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 30px;
}

.sister-filter-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sister-filter-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}

.sister-filter-group {
    flex: 1;
    min-width: 150px;
    max-width: 200px;
}

/* Select dropdown styling - Flatsome style */
.sister-filter-select {
    width: 100%;
    height: 39px;
    padding: 0 32px 0 12px;
    font-size: 14px;
    font-weight: 400;
    color: #555;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 10px center;
    border: 1px solid #ddd;
    border-radius: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    outline: none;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.sister-filter-select:hover {
    border-color: #315a39;
}

.sister-filter-select:focus {
    border-color: #315a39;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1), 0 0 0 2px rgba(49, 90, 57, 0.15);
}

/* Actions row: cùng hàng với select */
.sister-filter-actions {
    display: flex;
    align-items: stretch;
    gap: 6px;
    flex: 0 0 auto;
    align-self: stretch;
    padding-top: 0;
}

.sister-filter-apply,
.sister-filter-reset-btn {
    height: 39px;
    padding: 0 22px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    line-height: 39px;
    text-decoration: none;
    display: inline-block;
}

.sister-filter-apply {
    background: #315a39;
    color: #fff;
}

.sister-filter-apply:hover {
    background: #25462d;
    color: #fff;
}

.sister-filter-reset-btn {
    background: #f0f0f0;
    color: #666;
}

.sister-filter-reset-btn:hover {
    background: #ddd;
    color: #333;
}

/* Ẩn dropdown sắp xếp mặc định của WooCommerce */
.woocommerce-ordering {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .sister-filter-wrapper {
        padding: 12px 15px;
    }

    .sister-filter-groups {
        flex-direction: column;
        gap: 8px;
    }

    .sister-filter-group {
        min-width: 100%;
        max-width: 100%;
    }

    .sister-filter-actions {
        flex-direction: row;
        width: 100%;
        align-self: auto;
    }

    .sister-filter-apply,
    .sister-filter-reset-btn {
        flex: 1;
        text-align: center;
    }
}
