/* Elementor Widget - SQL Server Products Grid */

.wpsql-products-grid {
    display: grid;
    width: 100%;
}

.wpsql-product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wpsql-product-card:hover {
    transform: translateY(-5px);
}

.wpsql-product-image {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
}

.wpsql-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wpsql-product-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wpsql-product-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.wpsql-product-price {
    font-size: 20px;
    font-weight: bold;
    margin: 10px 0;
    color: #2c3e50;
}

.wpsql-product-description {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 10px 0;
}

.wpsql-product-custom-fields {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.wpsql-custom-field {
    margin: 8px 0;
    font-size: 14px;
}

.wpsql-custom-field .field-label {
    font-weight: 600;
    color: #333;
}

.wpsql-custom-field .field-value {
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wpsql-product-title {
        font-size: 16px;
    }
    
    .wpsql-product-price {
        font-size: 18px;
    }
    
    .wpsql-product-content {
        padding: 15px;
    }
}

/* Editor mode specifics */
.elementor-editor-active .wpsql-products-grid {
    min-height: 200px;
}

/* SQL Server Loop Widget */
.wpsql-loop-container {
    display: grid;
    width: 100%;
}

.wpsql-loop-item {
    width: 100%;
}

/* Alerts in editor */
.elementor-alert {
    padding: 15px;
    margin: 10px 0;
    border-left: 4px solid;
    background: #fff;
}

.elementor-alert-warning {
    border-color: #f39c12;
    background-color: #fff3cd;
    color: #856404;
}

.elementor-alert-danger {
    border-color: #e74c3c;
    background-color: #f8d7da;
    color: #721c24;
}

.elementor-alert-info {
    border-color: #3498db;
    background-color: #d1ecf1;
    color: #0c5460;
}

.elementor-panel-alert-info {
    padding: 10px;
    background: #d1ecf1;
    border-left: 3px solid #3498db;
    margin: 10px 0;
    font-size: 12px;
    line-height: 1.5;
}
