/* Related Products Section Styles */
.related-products-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid #dee2e6;
    direction: ltr !important;
    text-align: left !important;
}

.section-header {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 0.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #B8860B, #32CD32);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* Related Product Card */
.related-product-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    direction: ltr !important;
    text-align: left !important;
}

.related-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #B8860B;
}

/* Product Image */
.product-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px 8px 0 0;
}

.image-link:hover .product-image {
    transform: scale(1.05);
}

/* Product Badge */
.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.brand-badge {
    background: linear-gradient(135deg, #B8860B, #8B4513);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Product Content */
.product-content {
    padding: 1rem;
    direction: ltr !important;
    text-align: left !important;
}

.product-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    height: 2.6rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-title a {
    color: #2C3E50;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #B8860B;
}

/* Rating */
.rating-display {
    margin-bottom: 0.75rem;
}

.stars-container {
    font-size: 0.9rem;
}

.stars-container .fas.fa-star {
    color: #ffc107;
}

.stars-container .far.fa-star {
    color: #e9ecef;
}

.rating-text {
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Price */
.product-price {
    margin-bottom: 1rem;
}

.price-current {
    font-size: 1.1rem;
    font-weight: 700;
    color: #B8860B !important;
}

.price-original {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Actions */
.product-actions {
    gap: 0.5rem;
    direction: ltr !important;
}

.add-to-cart-btn {
    background: linear-gradient(135deg, #B8860B, #32CD32);
    border: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #32CD32, #B8860B);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.3);
}

.wishlist-btn {
    width: 40px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.wishlist-btn:hover {
    background: #B8860B;
    border-color: #B8860B;
    color: white;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .product-image-wrapper {
        height: 180px;
    }
    
    .product-content {
        padding: 0.75rem;
    }
    
    .product-title {
        font-size: 0.9rem;
        height: 2.4rem;
    }
    
    .add-to-cart-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 576px) {
    .related-products-section {
        padding: 2rem 0;
    }
    
    .product-image-wrapper {
        height: 160px;
    }
    
    .section-header {
        margin-bottom: 1.5rem;
    }
}