/* WooCommerce Attribute Search Plugin Styles */

.wc-attribute-search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Search Form Styles */
.wc-attribute-search-form {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.search-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #495057;
    font-size: 14px;
}

.filter-group select,
.filter-group input[type="number"] {
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.15s ease-in-out;
}

.filter-group select:focus,
.filter-group input[type="number"]:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

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

.range-inputs span {
    color: #6c757d;
    font-size: 14px;
}

.range-inputs input {
    flex: 1;
    min-width: 0;
}

.dimension-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.dimension label {
    min-width: 60px;
    font-size: 13px;
    font-weight: normal;
    margin: 0;
}

.dimension input {
    flex: 1;
    min-width: 0;
}

.search-actions {
    display: flex;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.search-button {
    background: #007cba;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.search-button:hover {
    background: #005a87;
}

.reset-button {
    background: #6c757d;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.15s ease-in-out;
}

.reset-button:hover {
    background: #545b62;
    color: white;
}

/* Search Results Styles */
.search-results h3 {
    color: #343a40;
    margin-bottom: 20px;
    font-size: 24px;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.product-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

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

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-info h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.product-info h4 a {
    color: #343a40;
    text-decoration: none;
}

.product-info h4 a:hover {
    color: #007cba;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 15px;
}

.product-attributes {
    margin-bottom: 20px;
}

.attribute {
    font-size: 14px;
    margin-bottom: 8px;
    color: #495057;
}

.attribute strong {
    color: #343a40;
    margin-right: 5px;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.view-product,
.add-to-cart {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.15s ease-in-out;
}

.view-product {
    background: #6c757d;
    color: white;
    border: 1px solid #6c757d;
}

.view-product:hover {
    background: #545b62;
    color: white;
}

.add-to-cart {
    background: #28a745;
    color: white;
    border: 1px solid #28a745;
}

.add-to-cart:hover {
    background: #218838;
    color: white;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-decoration: none;
    color: #007cba;
    font-size: 14px;
    transition: all 0.15s ease-in-out;
}

.pagination .page-numbers:hover {
    background: #f8f9fa;
    border-color: #007cba;
}

.pagination .current {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.pagination .dots {
    border: none;
    color: #6c757d;
}

/* No Results Styles */
.no-results {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #dee2e6;
}

.no-results p {
    font-size: 18px;
    color: #6c757d;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wc-attribute-search-container {
        padding: 15px;
    }

    .wc-attribute-search-form {
        padding: 20px;
    }

    .search-filters {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .search-actions {
        flex-direction: column;
    }

    .search-button,
    .reset-button {
        width: 100%;
        text-align: center;
    }

    .dimension {
        flex-direction: column;
        align-items: flex-start;
    }

    .dimension label {
        margin-bottom: 5px;
    }

    .dimension input {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .product-actions {
        flex-direction: column;
    }

    .range-inputs {
        flex-direction: column;
        align-items: flex-start;
    }

    .range-inputs span {
        display: none;
    }

    .range-inputs input {
        width: 100%;
    }
}