/**
 * Related Products CSS (Upsell & Cross-sell)
 */

.related-products-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
    background-color: #f8f8f8;
    padding: 40px 0px;
}

/* Section */
.related-products-section {
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
}

.related-products-title {
    text-align: center;
    color: #242424;
    font-family: "Poppins", Sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 30px;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 20px 0;
    width: 100%;
}

/* Termék kártya */
.related-products-grid .custom-product-item {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgb(0 0 0 / 11%);
    height: 100%;
}

.related-products-grid .custom-product-image {
    padding: 15px 15px;
}

.related-products-grid .custom-product-image img {
    max-height: 100%;
    height: 250px !important;
    width: 100%;
    object-fit: cover;
    border-radius: 8px !important;
}

.custom-product-info {
    padding: 0px 20px 20px 20px;
    font-family: "Poppins", Sans-serif;
}

.related-products-grid .custom-product-title {
     font-size: 17px;
    font-weight: 600;
    color: #242424;
    line-height: 26px;
    margin-bottom: 0px;
}

.related-products-grid .custom-product-title a {
    color: #070707;
    text-decoration: none;
}

.related-products-grid .custom-product-price {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
    margin-top: 5px;
    font-family: "Poppins", Sans-serif;
    color: #070707;
    font-weight: 700;
    font-size: 18px;
}

.related-products-grid .price-suffix {
    font-weight: 500;
    font-size: 14px;
    color: #666;
    margin-left: 2px;
}

.related-products-grid .product-variations-note {
    color: #070707;
    font-size: 13px;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
    margin-top: 10px;
    margin-bottom: 0px;
}

/* Megnézem gomb */
.related-products-grid .custom-product-action {
    padding: 0px 15px 15px 15px;
    text-align: center;
}

h2.herotext.kozep {
    text-align: center;
}

.view-product-button {
    display: inline-block !important;
    color: white !important;
    border: none !important;
    padding: 18px 20px !important;
    border-radius: 30px !important;
    font-weight: 800 !important;
        font-family: "Poppins", Sans-serif  !important;
    font-size: 14px !important;
    transition: background-color 0.3s, transform 0.2s !important;
    text-decoration: none !important;
    width: 100% !important;
    text-align: center !important;
    background: linear-gradient(90deg, rgba(31, 105, 178, 1) 0%, rgba(37, 56, 150, 1) 63%) !important;
}
.view-product-button:hover {
    background: linear-gradient(90deg, rgba(37, 56, 150, 1) 0%, rgba(31, 105, 178, 1) 63%) !important;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .related-products-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .related-products-grid .custom-product-image img {
        height: 150px !important;
        object-position: bottom;
    }

.related-products-grid .custom-product-image {
    padding: 15px 15px;
}

    .related-products-grid .custom-product-info {
        padding: 10px;
    }

    .related-products-grid .custom-product-title {
        font-size: 16px;
        line-height: 22px;
    }

    .related-products-grid .custom-product-price {
        font-size: 16px;
        gap: 5px;
    }

    .view-product-button {
        padding: 10px 4px !important;
        font-size: 13px !important;
        font-weight: 700 !important;
    }
}
