/* Tire Price Comparison Plugin Styles */

.tire-price-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.tire-filters {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.tire-filters h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    align-items: end;
}

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

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

.filter-group input[type="number"],
.filter-group select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
}

.filter-group input[type="checkbox"] {
    margin-right: 8px;
}

.btn-reset,
.btn-show-all {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
    color: white;
    width: 100%;
    margin-bottom: 5px;
}

.btn-reset {
    background: #0073aa;
}

.btn-reset:hover {
    background: #005a87;
}

.btn-show-all {
    background: #666;
}

.btn-show-all:hover {
    background: #444;
}

/* Results */
#tire-results {
    min-height: 200px;
}

.loading {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.loading p {
    margin-top: 20px;
    font-size: 16px;
}

/* Animated spinner */
.spinner {
    margin: 0 auto;
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.tire-count {
    margin-bottom: 20px;
    font-size: 16px;
    color: #555;
    font-weight: 600;
}

.tire-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.tire-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.tire-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.tire-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
    background: #fafafa;
    border-radius: 4px;
}

.tire-manufacturer {
    display: inline-block;
    padding: 4px 12px;
    background: #2c5aa0;
    color: white;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}

.tire-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.tire-size {
    font-size: 18px;
    font-weight: 700;
    color: #555;
    margin-bottom: 10px;
}

.tire-price {
    font-size: 24px;
    font-weight: 700;
    color: #2c5aa0;
    margin-top: auto;
    padding-top: 10px;
}

.tire-stock {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
}

.tire-stock.in-stock {
    background: #d4edda;
    color: #155724;
}

.tire-stock.out-of-stock {
    background: #f8d7da;
    color: #721c24;
}

.tire-seller-small {
    font-size: 11px;
    color: #999;
    margin-top: 8px;
    font-style: italic;
}

.tire-inventory {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .filter-row {
        grid-template-columns: 1fr;
    }
    
    .tire-grid {
        grid-template-columns: 1fr;
    }
}
