/* Custom Product Filter Styles */
.custom-product-filter {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cpf-search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.cpf-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.cpf-input:focus {
    outline: none;
    border-color: #000;
}

.cpf-search-btn {
    padding: 12px 24px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.cpf-search-btn:hover {
    background: #333;
}

.cpf-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 8px;
}

.cpf-filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cpf-filter-group label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.cpf-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    min-width: 150px;
}

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

.cpf-price {
    width: 100px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.cpf-reset-btn {
    padding: 8px 16px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    align-self: flex-end;
}

.cpf-reset-btn:hover {
    background: #f0f0f0;
    border-color: #999;
}

.cpf-results {
    min-height: 100px;
}

.cpf-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

.cpf-loading {
    text-align: center;
    padding: 40px;
}

.cpf-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cpf-results-count {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

.cpf-results-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.cpf-result-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s;
}

.cpf-result-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cpf-result-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f5f5;
}

.cpf-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.cpf-result-item:hover .cpf-result-image img {
    transform: scale(1.05);
}

.cpf-result-content {
    padding: 15px;
}

.cpf-result-type {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
}

.cpf-result-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.3;
}

.cpf-result-title a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s;
}

.cpf-result-title a:hover {
    color: #666;
}

.cpf-result-price {
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #000;
}

.cpf-result-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.cpf-result-link {
    display: inline-block;
    padding: 8px 16px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
}

.cpf-result-link:hover {
    background: #333;
}

.cpf-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cpf-filters {
        flex-direction: column;
    }
    
    .cpf-filter-group {
        width: 100%;
    }
    
    .cpf-select {
        width: 100%;
    }
    
    .cpf-results-list {
        grid-template-columns: 1fr;
    }
}
