/* Child Theme Filter Styles */
.oceanwp-child-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #ddd;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 20px;
    border-radius: 4px;
    transition: all 0.3s;
}

.oceanwp-child-filter-toggle:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

/* Hide Old Plugin Toggle */
.yuef-toggle {
    display: none !important;
}

.oceanwp-child-filter-panel {
    position: fixed;
    top: 0;
    left: -320px; /* Hidden by default */
    width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 99999;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
}

.oceanwp-child-filter-panel.open {
    left: 0;
}

.filter-panel-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9f9f9;
}

.filter-panel-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

#filter-panel-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    color: #666;
}

.filter-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.filter-section {
    margin-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-section h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    color: #333;
}

.filter-options label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

.filter-options input[type="checkbox"],
.filter-options input[type="radio"] {
    margin-right: 8px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-inputs input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.filter-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.filter-actions button {
    flex: 1;
    padding: 10px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    border: 1px solid #ddd;
    background: #fff;
}

.filter-actions button.primary {
    background: #13aff0;
    color: #fff;
    border-color: #13aff0;
}

.filter-actions button.primary:hover {
    background: #0b98d4;
}

#oceanwp-child-filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99998;
    display: none;
}

#oceanwp-child-filter-overlay.open {
    display: block;
}

/* Active Filters */
.active-filters {
    display: none;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.active-filter-tag {
    display: inline-block;
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    color: #333;
    margin-right: 5px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.active-filter-tag:hover {
    background: #e0e0e0;
    color: #000;
}

/* YUEF Price Filter Style */
.yuef-price-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.yuef-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.yuef-price {
    flex: 1;
    min-width: 0;
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.yuef-price-sep {
    color: #999;
}

.yuef-price-range {
    margin-top: 8px;
    color: #666;
    font-size: 13px;
}

.yuef-price-warning {
    color: #d32f2f;
    font-size: 12px;
}

/* Force hide native pagination to prevent duplicates */
/* Using high specificity to avoid !important if possible, but structure classes are safe to hide */
body .load-more-nav:not(#oceanwp-child-load-more-nav),
body .infinite-scroll-nav:not(#oceanwp-child-load-more-nav),
body .older-posts:not(#oceanwp-child-load-more-nav),
body .woocommerce-pagination:not(#oceanwp-child-load-more-nav),
body .navigation.pagination:not(#oceanwp-child-load-more-nav) {
    display: none;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    opacity: 0;
    margin: 0;
    padding: 0;
}
