/* Add styles for disabled form state */
.wcvm-disabled {
    opacity: 0.6;
    pointer-events: none;
}

.wcvm-disabled input,
.wcvm-disabled button {
    cursor: not-allowed !important;
}

/* Existing styles */
.wcvm-container {
    max-width: 100%;
    margin: 0 auto;
}

.wcvm-wrapper {
    position: relative;
}

.wcvm-search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.wcvm-search-form input[type="text"] {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.wcvm-search-form button {
    padding: 10px 20px;
    background-color: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

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

.wcvm-search-results {
    margin-top: 20px;
}

.wcvm-results-headline {
    margin-bottom: 15px;
}

.wcvm-results-wrapper {
    min-height: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.wcvm-loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

.wcvm-waitmsg {
    text-align: center;
    margin-top: 10px;
    color: #666;
}

.wcvm-product {
    display: block;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    transition: box-shadow .2s ease, transform .2s ease;
}

.wcvm-product:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.wcvm-product-thumb {
    margin-bottom: 12px;
}

.wcvm-product-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
}

.wcvm-product-content {
    display: block;
}

.wcvm-product-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    line-height: 1.3;
    min-height: 40px;
}

.wcvm-product-title a {
    color: #333;
    text-decoration: none;
}

.wcvm-product-title a:hover {
    color: #007cba;
}

.price {
    margin: 0;
    font-weight: bold;
    color: #007cba;
    font-size: 14px;
}

.view-all-results {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.view-all-results a {
    color: #007cba;
    text-decoration: none;
    font-weight: bold;
}

.wcvm-search-again,
.wcvm-alert-msg {
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.wcvm-search-msg,
.no-found-msg {
    margin-bottom: 15px;
    color: #666;
}

.wcvm-search-btn button,
.wcvm-try-again button {
    padding: 10px 20px;
    background-color: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.wcvm-search-btn button:hover,
.wcvm-try-again button:hover {
    background-color: #005a87;
}

/* Responsive design */
@media (max-width: 768px) {
    .wcvm-search-form {
        flex-direction: column;
    }
    
    .wcvm-results-wrapper { grid-template-columns: repeat(2, 1fr); }
    .wcvm-product { text-align: left; }
    .wcvm-product-thumb img { height: 160px; }
}
