.wcspv-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .wcspv-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .wcspv-products-grid {
        grid-template-columns: 1fr;
    }
}

.wcspv-product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    background: #fff;
    transition: transform 0.2s ease-in-out;
}

.wcspv-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.wcspv-product-image {
    margin-bottom: 1rem;
}

.wcspv-product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.wcspv-product-title {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.wcspv-product-title a {
    color: #333;
    text-decoration: none;
}

.wcspv-product-title a:hover {
    color: #666;
}

.wcspv-product-price {
    color: #77a464;
    font-weight: bold;
    margin: 0.5rem 0;
}

.wcspv-add-to-cart {
    margin-top: 1rem;
}

.wcspv-search-container {
    max-width: 800px;
    margin: 2rem auto;
}

.wcspv-search-form {
    background: #f8f8f8;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.wcspv-form-group {
    margin-bottom: 1.5rem;
}

.wcspv-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

.wcspv-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.wcspv-input[type="file"] {
    padding: 0.5rem 0;
}

.wcspv-input:focus {
    outline: none;
    border-color: #77a464;
    box-shadow: 0 0 5px rgba(119, 164, 100, 0.2);
}

.wcspv-search-button {
    background: #77a464;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease-in-out;
    width: 100%;
    margin-top: 1rem;
}

.wcspv-search-button:hover {
    background: #669456;
}

/* Loading state */
.wcspv-loading {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.wcspv-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #77a464;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No results message */
.wcspv-no-results {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

/* File input styling */
.wcspv-input[type="file"] {
    border: 2px dashed #ddd;
    background: #fff;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease-in-out;
}

.wcspv-input[type="file"]:hover {
    border-color: #77a464;
}

.wcspv-input[type="file"]::file-selector-button {
    background: #77a464;
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 1rem;
    transition: background-color 0.2s ease-in-out;
}

.wcspv-input[type="file"]::file-selector-button:hover {
    background: #669456;
} 