/* Recently Viewed Products Styles */
.aelab-recently-title-wrapper {
    margin-bottom: 32px;
}

.aelab-recently-title {
    color: #333333;
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Swiper Container */
.custom-related-carousel {
    width: 100%;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

/* Swiper Wrapper */
.custom-related-carousel .swiper-wrapper {
    display: flex;
    width: 100%;
    height: auto;
    position: relative;
    transition-property: transform;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    max-width: 100%;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Hide scrollbars */
.custom-related-carousel .swiper-wrapper::-webkit-scrollbar {
    display: none !important;
}

.custom-related-carousel .swiper-wrapper {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

/* Swiper Slides */
.custom-related-carousel .swiper-slide {
    flex-shrink: 0;
    width: 250px; /* match related products */
    min-width: 250px;
    max-width: 250px;
    height: auto;
    position: relative;
    transition-property: transform;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Product Cards */
.custom-related-card {
    background: none; /* match related products */
    border-radius: 16px;
    border: 1.5px solid #e5e5e5;
    box-shadow: 0 2px 8px #f3f3f3;
    padding: 24px 12px 18px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 260px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    transition: box-shadow 0.2s;
    margin: 0;
    overflow: hidden;
}

.custom-related-card:hover {
    box-shadow: 0 4px 16px #e0e0e0; /* same hover as related */
}

/* Product Thumbnail */
.custom-product-thumb {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.custom-product-thumb img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    background: none !important;
    box-shadow: none !important;
}

/* Product Title */
.custom-product-title {
    font-size: 1rem;
    font-weight: normal;
    margin: 0;
    margin-top: 10px;
    color: #222;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.4;
    word-break: break-word;
}

/* Links */
.custom-related-carousel a {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
    width: 100%;
    height: 100%;
}

/* Prevent body horizontal scroll */
body {
    overflow-x: hidden !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .aelab-recently-title-wrapper {
        margin-bottom: 20px;
    }
    
    .aelab-recently-title {
        font-size: 1.5rem;
    }
    
    .custom-related-card {
        width: 200px;
        min-width: 200px;
        max-width: 200px;
        padding: 16px 8px 12px 8px;
        min-height: 220px;
    }
    
    .custom-product-thumb {
        min-height: 100px;
        height: 100px;
    }
    
    .custom-product-title {
        font-size: 0.9rem;
        min-height: 35px;
    }
    
    .custom-related-carousel .swiper-slide {
        width: 250px;
        min-width: 250px;
        max-width: 250px;
    }
} 