.vpm-search-form {
    margin: 20px 0;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 5px;
}

.vpm-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.vpm-form-field {
    flex: 1;
    min-width: 200px;
}

.vpm-form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.vpm-form-field select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.vpm-search-results {
    margin-top: 30px;
}

.vpm-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.vpm-product {
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

/* Widget Styles */
.vpm-search-widget {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 5px;
}

.vpm-widget-search {
    padding: 15px;
}

.vpm-widget-field {
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.vpm-widget-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.vpm-widget-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    color: #333;
    transition: border-color 0.3s ease;
}

.vpm-widget-select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.1);
}

.vpm-widget-search-btn {
    width: 100%;
    padding: 10px 15px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.vpm-widget-search-btn:hover {
    background: #005a87;
}

.vpm-widget-clear-btn {
    display: block;
    width: 100%;
    padding: 8px 15px;
    background: #6c757d;
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 4px;
    font-size: 13px;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.vpm-widget-clear-btn:hover {
    background: #5a6268;
    color: white;
    text-decoration: none;
}

.vpm-widget-info {
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #17a2b8;
}

.vpm-widget-info small {
    font-size: 12px;
    color: #6c757d;
    display: block;
    line-height: 1.4;
}

/* No Products Message */
.vpm-no-products-message {
    background: #d7e1f9;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.vpm-no-products-message h3 {
    color: #856404;
    margin-top: 0;
}

.vpm-no-products-message ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.vpm-no-products-message li {
    background: #f8f9fa;
    padding: 5px 10px;
    margin: 5px 0;
    border-radius: 4px;
    display: inline-block;
}

.vpm-no-products-message a {
    background: #0073aa;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin-top: 10px;
}

.vpm-no-products-message a:hover {
    background: #005a87;
    color: white;
}

/* Widget Title */
.widget .widget-title {
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #0073aa;
    color: #333;
}

/* Responsive Widget */
@media (max-width: 768px) {
    .vpm-widget-search {
        padding: 10px;
    }
    
    .vpm-widget-field {
        margin-bottom: 12px;
    }
}

/* Form Loading State */
.vpm-widget-loading .vpm-widget-select {
    opacity: 0.6;
    pointer-events: none;
}

.vpm-widget-loading .vpm-widget-select:after {
    content: "Cargando...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.vpm-product img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.vpm-product h3 {
    font-size: 1.1em;
    margin: 10px 0;
}

.vpm-product .price {
    color: #77a464;
    font-weight: bold;
    margin: 10px 0;
}

.vpm-no-results {
    text-align: center;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 5px;
    margin-top: 20px;
}

/* Vehicle Compatibility Tab Styles */
.vpm-compatibility-info {
    margin: 20px 0;
}

.vpm-compatibility-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
    flex-wrap: wrap;
    gap: 10px;
}

.vpm-compatibility-info h3 {
    color: #333;
    margin: 0 0 20px 0;
}

/* List View Styles */
/* Table View Styles */

.vmp-year-group {
    margin-bottom: 30px;
}

.vmp-year-group h4 {
    background: #f5f5f5;
    padding: 10px 15px;
    margin: 0 0 15px 0;
    border-left: 4px solid #0073aa;
    color: #333;
    font-size: 1.1em;
}

.vmp-year-group h4 a.vpm-year-filter {
    color: #0073aa;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

.vmp-year-group h4 a.vpm-year-filter:hover {
    color: #005a87;
    text-decoration: underline;
}

.vpm-compatibility-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.vpm-compatibility-table thead th {
    background: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
}

.vpm-compatibility-table tbody td {
    padding: 10px 15px;
    border-bottom: 1px solid #dee2e6;
    color: #555;
}

.vpm-compatibility-table tbody tr:hover {
    background-color: #f8f9fa;
}

.vpm-compatibility-table tbody tr:nth-child(even) {
    background-color: #fdfdfd;
}

.vpm-compatibility-table tbody tr:nth-child(even):hover {
    background-color: #f8f9fa;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .vpm-compatibility-table {
        font-size: 14px;
    }
    
    .vpm-compatibility-table thead th,
    .vpm-compatibility-table tbody td {
        padding: 8px 10px;
    }
    
    .vmp-year-group h4 {
        padding: 8px 12px;
        font-size: 1em;
    }
}

/* Filter Links Styles */
.vpm-filter-link {
    color: #0073aa;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.vpm-filter-link:hover {
    color: #005a87;
    text-decoration: underline;
}

.vpm-filter-link.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Filter Results Styles */
.vpm-filter-results {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.vpm-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.vpm-filter-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.2em;
}

.vpm-close-filter {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.vpm-close-filter:hover {
    background: #c82333;
}

/* Filtered Products Grid */
.vpm-filtered-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.vpm-filtered-product {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vpm-filtered-product:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.vpm-product-image {
    text-align: center;
    margin-bottom: 15px;
}

.vpm-product-image img {
    max-width: 100%;
    height: auto;
    max-height: 200px;
    border-radius: 4px;
}

.vpm-product-info h4 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    line-height: 1.3;
}

.vpm-product-info h4 a {
    color: #333;
    text-decoration: none;
}

.vpm-product-info h4 a:hover {
    color: #0073aa;
}

.vpm-product-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 15px;
}

.vpm-product-price {
    font-size: 1.1em;
    font-weight: bold;
    color: #77a464;
    margin-bottom: 15px;
}

.vpm-view-product {
    background: #0073aa;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.vpm-view-product:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

/* Loading and Error States */
.vpm-loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

.vpm-no-products {
    text-align: center;
    padding: 40px;
    color: #666;
    background: white;
    border-radius: 4px;
    border: 1px dashed #ccc;
}

.vpm-error {
    text-align: center;
    padding: 20px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
}

/* Mobile Responsive for Filters */
@media (max-width: 768px) {
    .vpm-filtered-products {
        grid-template-columns: 1fr;
    }
    
    .vpm-filter-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .vpm-filter-header h4 {
        font-size: 1em;
    }
    
    .vpm-close-filter {
        align-self: flex-end;
    }
    
    /* Compatibility view mobile styles */
    .vpm-compatibility-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .vpm-view-controls {
        width: 100%;
        justify-content: center;
    }
    
    .vpm-vehicles-list {
        grid-template-columns: 1fr;
        margin-left: 10px;
    }
    
    .vpm-vehicle-item {
        padding: 12px;
    }
    
    .vpm-vehicle-name {
        font-size: 15px;
    }
    
    .vpm-year-badge {
        font-size: 14px;
        padding: 6px 15px;
    }
}

/* Widget Styles */
.vpm-widget-search {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.vpm-widget-field {
    margin-bottom: 15px;
}

.vpm-widget-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.vpm-widget-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.vpm-widget-select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.vpm-widget-search-btn {
    width: 100%;
    padding: 12px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.vpm-widget-search-btn:hover {
    background: #005a87;
}

.vpm-widget-clear-btn {
    display: inline-block;
    width: 100%;
    padding: 10px;
    background: #f1f1f1;
    color: #666;
    text-decoration: none;
    text-align: center;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.vpm-widget-clear-btn:hover {
    background: #e0e0e0;
    color: #333;
}

.vpm-widget-info {
    margin-top: 15px;
    padding: 10px;
    background: #e8f4f8;
    border-radius: 4px;
    border-left: 4px solid #0073aa;
}

.vpm-widget-info small {
    display: block;
    color: #666;
    line-height: 1.4;
}

/* No products message styles */
.vpm-no-products-message {
    background: #ffeaa7;
    border: 1px solid #fdcb6e;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
}

.vpm-no-products-message p {
    margin: 0 0 10px 0;
}

.vpm-no-products-message a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
}

.vpm-no-products-message a:hover {
    text-decoration: underline;
}

.vpm-search-suggestions {
    background: #f0f8ff;
    border: 1px solid #b3d9ff;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
}

.vpm-search-suggestions h3 {
    margin: 0 0 15px 0;
    color: #0073aa;
    font-size: 18px;
}

.vpm-search-suggestions ul {
    margin: 0;
    padding-left: 20px;
}

.vpm-search-suggestions li {
    margin-bottom: 8px;
    color: #555;
}

/* Loading states */
.vpm-widget-loading {
    opacity: 0.6;
    pointer-events: none;
}

.vpm-widget-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: vpm-spin 1s linear infinite;
}

@keyframes vpm-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Compatibility table link styles */
.vpm-compatibility-table a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 3px;
    transition: all 0.3s ease;
    display: inline-block;
}

.vpm-compatibility-table a:hover {
    background: #0073aa;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,115,170,0.3);
}

.vpm-compatibility-table a:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Quick actions styling */
.vpm-quick-actions {
    margin: 15px 0;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border-left: 4px solid #0073aa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.vpm-quick-actions h4 {
    margin: 0 0 15px 0;
    color: #0073aa;
    font-size: 16px;
}

.vpm-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Action button styles with Material Design colors */
.vpm-action-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.vpm-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    text-decoration: none;
    filter: brightness(1.1);
}

.vpm-action-btn:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* VPM No Products Message Styles */
.vpm-no-products-message {
    background: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 8px !important;
    padding: 30px !important;
    margin: 30px 0 !important;
    text-align: center !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.vpm-no-products-message h3 {
    color: #495057 !important;
    margin-bottom: 20px !important;
    font-size: 24px;
}

.vpm-no-products-message .button {
    background: #007cba !important;
    color: white !important;
    padding: 12px 24px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    display: inline-block !important;
    margin: 5px 10px !important;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.vpm-no-products-message .button:hover {
    background: #005a87 !important;
    color: white !important;
}

.vpm-no-products-message .button-primary {
    background: #28a745 !important;
}

.vpm-no-products-message .button-primary:hover {
    background: #218838 !important;
}

/* Widget loading styles */
.vpm-widget-loading {
    opacity: 0.7;
    pointer-events: none;
}

.vpm-widget-search-btn:disabled {
    background: #6c757d !important;
    cursor: not-allowed;
}

.vpm-widget-clear-btn {
    background: #6c757d;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.vpm-widget-clear-btn:hover {
    background: #5a6268;
    color: white;
    text-decoration: none;
}

/* New Horizontal and Vertical Widget Styles */
.vpm-horizontal-search-widget,
.vpm-vertical-search-widget {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    box-sizing: border-box;
}

.vpm-horizontal-search-widget *,
.vpm-vertical-search-widget * {
    box-sizing: border-box;
}

.vpm-horizontal-search-widget h3,
.vpm-vertical-search-widget h3 {
    font-weight: 600;
    line-height: 1.4;
}

.vpm-horizontal-search-form select,
.vpm-vertical-search-form select {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.vpm-horizontal-search-form select:focus,
.vpm-vertical-search-form select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.vpm-horizontal-search-form button,
.vpm-vertical-search-form button {
    transition: all 0.3s ease;
    font-weight: 500;
}

.vpm-horizontal-search-form button:hover,
.vpm-vertical-search-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.vpm-horizontal-search-form button:active,
.vpm-vertical-search-form button:active {
    transform: translateY(0);
}

.vpm-clear-btn {
    transition: all 0.3s ease;
}

.vpm-clear-btn:hover {
    background: #555 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Responsive styles for new widgets */
@media (max-width: 768px) {
    .vpm-horizontal-search-form {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .vpm-horizontal-search-form > div {
        min-width: 100% !important;
        flex: none !important;
    }
    
    .vpm-horizontal-search-form button {
        height: auto !important;
        padding: 12px 20px !important;
        margin-top: 10px;
    }
    
    .vpm-horizontal-search-widget,
    .vpm-vertical-search-widget {
        margin: 15px 0 !important;
        padding: 15px !important;
    }
    
    .vpm-horizontal-search-widget h3,
    .vpm-vertical-search-widget h3 {
        font-size: 16px !important;
        margin-bottom: 12px !important;
    }
}

@media (max-width: 480px) {
    .vpm-horizontal-search-widget,
    .vpm-vertical-search-widget {
        max-width: 100% !important;
        border-radius: 6px !important;
    }
    
    .vpm-horizontal-search-form,
    .vpm-vertical-search-form {
        gap: 12px !important;
    }
    
    .vpm-horizontal-search-form select,
    .vpm-vertical-search-form select {
        padding: 10px !important;
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
    
    .vpm-horizontal-search-form button,
    .vpm-vertical-search-form button {
        padding: 12px 16px !important;
        font-size: 14px !important;
    }
}

/* Loading states */
.vpm-horizontal-search-form button:disabled,
.vpm-vertical-search-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.vpm-horizontal-search-form select:disabled,
.vpm-vertical-search-form select:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

/* Results styling for new widgets */
.vpm-horizontal-search-widget .vpm-search-results,
.vpm-vertical-search-widget .vpm-search-results {
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
}

.vpm-horizontal-search-widget .vpm-search-results:empty,
.vpm-vertical-search-widget .vpm-search-results:empty {
    border-top: none;
    padding-top: 0;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .vpm-action-buttons {
        flex-direction: column;
    }
    
    .vpm-action-btn {
        text-align: center;
        justify-content: center;
    }
    
    .vpm-compatibility-table a {
        padding: 6px 10px;
        font-size: 14px;
    }
    
    .vpm-no-products-message {
        padding: 20px !important;
        margin: 20px 0 !important;
    }
    
    .vpm-no-products-message .button {
        display: block !important;
        margin: 10px 0 !important;
    }
}

/* =======================
   DISABLE NO PRODUCTS MESSAGE
   User requested to hide this message
   ======================= */
.vpm-no-products-message {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}