/* =================================== */
/*      Related Products Section       */
/* =================================== */
.related-products-section {
    padding: 3rem 0;
    margin-top: 2rem;
    position: relative;
}

/* Decorative top border */
.related-products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--dark), transparent);
    opacity: 0.5;
}

.related-products-section h2 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--dark);
}

/* The new grid for related products */
.related-products-grid {
    display: grid;
    /* Using auto-fit to create a responsive grid without media queries */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Override the main page's card animation for a simpler fade-in effect */
.related-products-grid .product-card {
    animation: none; /* Remove the cardUp animation from styles.css */
    opacity: 1;      /* Ensure cards are visible */
    transform: none; /* Reset any transform from other stylesheets */
}

/* The product cards inside this grid will be generated by JS.
   They will likely have a class like 'product-card', which should
   be styled in 'product-card.css' to ensure a consistent look. */