/**
 * RT Product Category List Widget Styles
 */

/* Grid Layout */
.rt-products-wrapper {
    width: 100%;
}

.rt-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px 20px;
}

/* Product Item */
.rt-product-item {
    position: relative;
    background: #fff;
    transition: all 0.3s ease;
}

.rt-product-item:hover {
    transform: translateY(-5px);
}

/* Product Image */
.rt-product-image {
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
}

.rt-product-image a {
    display: block;
    position: relative;
}

.rt-product-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    object-fit: cover;
}

.rt-product-item:hover .rt-product-image img {
    transform: scale(1.05);
}

/* Product Badge */
.rt-product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e74c3c;
    color: #fff;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
    z-index: 2;
}

.rt-badge-sale {
    background: #e74c3c;
}

.rt-badge-featured {
    background: #f39c12;
}

.rt-badge-out-of-stock {
    background: #95a5a6;
}

/* Product Content */
.rt-product-content {
    text-align: center;
}

/* Product Category */
.rt-product-category {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

/* Product Title */
.rt-product-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 10px;
}

.rt-product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.rt-product-title a:hover {
    color: #667eea;
}

/* Product Rating */
.rt-product-rating {
    margin-bottom: 10px;
}

.rt-product-rating .star-rating {
    margin: 0 auto;
    font-size: 14px;
}

/* Product Excerpt */
.rt-product-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Product Price */
.rt-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.rt-product-price del {
    opacity: 0.5;
    font-weight: 400;
    margin-right: 5px;
}

.rt-product-price ins {
    text-decoration: none;
    color: #e74c3c;
}

/* Add to Cart Button */
.rt-product-button {
    margin-top: 15px;
}

.rt-add-to-cart {
    display: inline-block;
    width: 100%;
    padding: 12px 20px;
    background: #333;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rt-add-to-cart:hover {
    background: #667eea;
    color: #fff;
    transform: translateY(-2px);
}

.rt-add-to-cart.loading {
    opacity: 0.6;
    cursor: wait;
}

.rt-add-to-cart.added {
    background: #27ae60;
}

/* WooCommerce Compatibility */
.rt-product-rating .woocommerce-product-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .rt-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .rt-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 15px;
    }

    .rt-product-title {
        font-size: 14px;
    }

    .rt-product-price {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .rt-products-grid {
        grid-template-columns: 1fr;
    }
}
