/* XTrain Product Grid Styling */
.xtrain-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
    font-family: 'Cairo', sans-serif;
}

.xtrain-product-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 15px;
    position: relative;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.xtrain-product-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Wishlist Icon Placeholder */
.xtrain-wishlist-toggle {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
    cursor: pointer;
    color: #ccc;
    font-size: 18px;
}

.xtrain-product-image {
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    padding-top: 100%; /* Square aspect ratio */
}

.xtrain-product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.xtrain-product-rating {
    color: #ffcc00;
    font-size: 14px;
    margin-bottom: 5px;
}

.xtrain-product-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
    text-decoration: none;
    line-height: 1.4;
}

.xtrain-product-price {
    font-size: 20px;
    font-weight: 800;
    color: #000;
    margin-bottom: 15px;
}

.xtrain-product-price ins {
    text-decoration: none;
}

.xtrain-product-price del {
    font-size: 14px;
    color: #999;
    margin-right: 5px;
}

/* Stock Progress Bar */
.xtrain-stock-progress {
    margin-bottom: 15px;
}

.xtrain-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.xtrain-progress-bar-bg {
    height: 6px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.xtrain-progress-bar-fill {
    height: 100%;
    background: #ff6600; /* Orange theme */
    border-radius: 3px;
}

/* Add to Cart Button */
.xtrain-add-to-cart-btn {
    background: #1a1a1a;
    color: #fff;
    text-align: center;
    padding: 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    margin-top: auto;
    transition: background 0.3s ease;
}

.xtrain-add-to-cart-btn:hover {
    background: #333;
}

/* RTL Adjustments */
body.rtl .xtrain-wishlist-toggle {
    right: auto;
    left: 15px;
}

body.rtl .xtrain-product-price del {
    margin-right: 0;
    margin-left: 5px;
}
