/* Related Products Styling - Extracted from complete functions.php */

.hey-related-products {
    margin: 40px 0;
    padding: 35px;
    min-height: 500px;
    width: 100%;
}

.hey-related-header {
    text-align: center;
    margin-bottom: 35px;
}

.hey-related-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.hey-related-header p {
    color: #718096;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.hey-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.hey-related-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    contain: layout style paint;
}

.hey-related-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #e55a2b 0%, #ff6b42 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

@media (min-width: 769px) {
    .hey-related-card {
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    .hey-related-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }
    .hey-related-card:hover::before {
        transform: scaleX(1);
    }
}

.hey-related-image {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.hey-related-card h3 {
    font-size: 0.95rem;
    color: #2d3748;
    margin-bottom: 10px;
    line-height: 1.4;
    font-weight: 600;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.hey-related-card h3 a {
    color: inherit;
    text-decoration: none;
}

@media (max-width: 768px) {
    .hey-related-products {
        padding: 20px !important;
        min-height: 600px !important;
    }
    .hey-related-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }
    .hey-related-card {
        padding: 16px !important;
    }
    .hey-related-header h2 {
        font-size: 1.5rem !important;
    }
}
