/*
 * Related products slider — woocommerce/single-product/related.php
 * Copy 1:1 giá trị CSS từ demo pcsaaam.netlify.app/saam_face_cream (khối .carousel-sec / .ccard).
 */
.saam-related-products {
    background: linear-gradient(90deg, #e9f1fc 0%, #f3f1fb 38%, #f8f0f7 64%, #fdedf3 100%);
    padding: 46px 0;
    margin-top: 10px;
    overflow-x: hidden;
}

.saam-related-carousel {
    position: relative;
    max-width: 1656px;
    margin: 0 auto;
    padding: 0 20px;
}

.saam-related-viewport {
    overflow: hidden;
    width: 1388px;
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
}

.saam-related-swiper .swiper-wrapper {
    align-items: stretch;
}

.saam-related-swiper .swiper-slide {
    height: auto;
    display: flex;
    min-width: 0;
}


.saam-related-card,
.saam-related-card * {
    box-sizing: border-box;
}

.saam-related-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.saam-related-card-img {
    display: block;
    position: relative;
    aspect-ratio: 326 / 402;
    background: #ffffff;
    overflow: hidden;
}

.saam-related-card-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 20px 22px 6px;
    box-sizing: border-box;
}

.saam-related-card-body {
    padding: 14px 22px 22px;
    flex: 1;
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.saam-related-card-title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.1px;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.saam-related-card-title a {
    color: inherit;
    text-decoration: none;
    text-transform: uppercase;
}

.saam-related-card-subtitle {
    margin: 8px 0 0;
    font-size: 12px;
    color: #6a6a6a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.saam-related-card-price {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px 9px;
    min-width: 0;
}

.saam-related-card-price-old {
    font-size: 16px;
    color: #9a9a9a;
    text-decoration: line-through;
}

.saam-related-card-price-current {
    font-size: 42px;
    font-weight: 900;
    color: #e91c6a;
    line-height: 1;
}

.saam-related-card-price-currency {
    font-size: 15px;
    font-weight: 800;
    color: #e91c6a;
    align-self: flex-start;
    margin-top: 4px;
}

.saam-related-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.saam-related-nav--prev {
    left: 0;
}

.saam-related-nav--next {
    right: -5px;

}

.saam-related-nav:hover {
    transform: translateY(-50%) scale(1.12);
    background-color: #e91c6a;
}

.saam-related-nav:hover i {
    color: #ffffff;
}

.saam-related-nav i {
    font-size: 18px;
    line-height: 1;
    color: #e91c6a;
}

.saam-related-nav.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
}

@media (max-width: 960px) {
    .saam-related-card-price-current {
        font-size: 34px;
    }
}

@media (max-width: 549px) {
    .saam-related-products {
        padding: 28px 12px;
    }

    .saam-related-carousel {
        padding: 0 8px;
    }

    .saam-related-nav {
        width: 36px;
        height: 36px;
    }

    .saam-related-nav i {
        font-size: 14px;
    }

    .saam-related-card-body {
        padding: 12px 16px 16px;
    }

    .saam-related-card-price-current {
        font-size: 28px;
    }

 
    .saam-related-card-price-old {
        font-size: 13px;
    }
}