/* eudora-recent-1.0.0.css - "Recently viewed" strip. Card look comes from eudora-cards (.ec-card); only the row is styled here. */
.eudora-recent[hidden] { display: none !important; }
.eudora-recent { clear: both; max-width: 1240px; margin: 48px auto 0; padding: 0 16px 64px; font-family: var(--el-font, inherit); box-sizing: border-box; }
.eudora-recent *, .eudora-recent *::before, .eudora-recent *::after { box-sizing: border-box; }
.eudora-recent__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; margin: 0 0 24px; min-height: 44px; }
.eudora-recent .eudora-recent__title {
    flex: none; margin: 0; padding: 0; border: 0; background: none; color: var(--el-ink, #1d1d1f); font-size: 32px; font-weight: 400;
    letter-spacing: 0; line-height: 1.2; text-align: center; text-transform: none;
}
.eudora-recent .eudora-recent__title::before, .eudora-recent .eudora-recent__title::after { display: none; }
.eudora-recent .eudora-recent__arrow:focus-visible { outline: 3px solid var(--el-ink, #1d1d1f); outline-offset: 2px; }

.eudora-recent__wrap { position: relative; isolation: isolate; }
.eudora-recent__list {
    display: flex; gap: 20px; margin: 0; padding: 8px 0 18px; list-style: none; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x proximity; scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.eudora-recent__item { flex: 0 0 calc((100% - 80px) / 5); min-width: 0; margin: 0; padding: 0; list-style: none; scroll-snap-align: start; }
.eudora-recent .product-item.ec-card { float: none; width: 100%; max-width: none; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; text-align: left; }
.eudora-recent .product-item.ec-card:hover, .eudora-recent .product-item.ec-card:focus-within { box-shadow: none; }
.eudora-recent .ec-card__media { display: block; overflow: hidden; border-radius: 6px; background: var(--el-soft, #f7f7f7); }
.eudora-recent .ec-card__media img { display: block; width: 100%; height: auto; margin: 0; aspect-ratio: 1 / 1; object-fit: cover; }
.eudora-recent .ec-card__alt { position: absolute; top: 0; left: 0; height: 100%; object-fit: cover; transition: opacity .2s ease; }
.eudora-recent .item-content { float: none; width: auto; margin: 12px 0 0; padding: 0; text-align: left; }
.eudora-recent .item-content a.product-name, .eudora-recent .item-content a.product-name:visited {
    display: -webkit-box; min-height: 42px; margin: 0; padding: 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    color: var(--el-ink, #1d1d1f); font-size: 15px; font-weight: 400; line-height: 21px; text-align: left; text-transform: none; text-decoration: none;
}
.eudora-recent .item-content a.product-name:hover, .eudora-recent .item-content a.product-name:focus { color: #a8034c; }
.eudora-recent .product-name span { color: inherit; }
.eudora-recent .price-box { margin: 6px 0 0; padding: 0; text-align: left; }
.eudora-recent .price-box p { display: inline; margin: 0; padding: 0; }
.eudora-recent .price-box .old-price { margin-right: 8px; }
.eudora-recent .price-box .price-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.eudora-recent .price-box .price { color: var(--el-brand, #d1045f); font-size: 16px; font-weight: 500; }
.eudora-recent .price-box .old-price .price { color: #5f5f5f; font-size: 14px; font-weight: 400; text-decoration: line-through; }
.eudora-recent__count { color: var(--el-text, #555); font-size: 16px; }

.eudora-recent .eudora-recent__arrow {
    position: absolute; top: var(--er-arrow-top, 40%); z-index: 5; display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin: -22px 0 0; padding: 0; border: 1px solid rgba(0, 0, 0, .08); border-radius: 50%;
    background: rgba(255, 255, 255, .96); box-shadow: 0 2px 10px rgba(0, 0, 0, .16); cursor: pointer; visibility: hidden;
}
.eudora-recent .eudora-recent__arrow:hover { background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .22); }
.eudora-recent .eudora-recent__arrow::before {
    content: ""; display: block; width: 22px; height: 22px; background-color: var(--el-ink, #1d1d1f);
    -webkit-mask: var(--el-arrow-right) center / contain no-repeat; mask: var(--el-arrow-right) center / contain no-repeat;
}
.eudora-recent .eudora-recent__arrow--prev { left: -12px; }
.eudora-recent .eudora-recent__arrow--next { right: -12px; }
.eudora-recent .eudora-recent__arrow--prev::before { -webkit-mask-image: var(--el-arrow-left); mask-image: var(--el-arrow-left); }

@media (max-width: 1023px) { .eudora-recent__item { flex-basis: calc((100% - 40px) / 3); } }
@media (max-width: 770px) {
    .eudora-recent { margin-top: 32px; padding-bottom: 48px; }
    .eudora-recent__head { margin-bottom: 12px; }
    .eudora-recent .eudora-recent__title { font-size: 26px; }
    .eudora-recent__list { gap: 14px; scroll-snap-type: x mandatory; }
    .eudora-recent__item { flex-basis: 44%; }
    /* Arrows stay on phones too (a clipped card alone is not an obvious "swipe" cue); kept inside the screen edge. */
    .eudora-recent .eudora-recent__arrow--prev { left: 4px; }
    .eudora-recent .eudora-recent__arrow--next { right: 4px; }
}
@media (prefers-reduced-motion: reduce) {
    .eudora-recent__list { scroll-behavior: auto; }
    .eudora-recent .ec-card, .eudora-recent .ec-card__alt { transition: none; }
}

/* Everything fits in one row: centre the group (cards keep their width); class set by the JS. */
.eudora-recent__list.is-fit { justify-content: center; }

/* No visible scrollbar under the strip: arrows + swipe replace it. */
.eudora-recent__list { scrollbar-width: none; -ms-overflow-style: none; }
.eudora-recent__list::-webkit-scrollbar { display: none; }

/* Homepage: keep the theme's side padding; vertical rhythm comes from the sections' top margins. */
.cms-index-index .home-session.eudora-recent { padding-bottom: 0; } /* the next section (category tiles) brings its own top margin */


/* Product page: the strip sits in its own bordered box so it reads as a separate section after the reviews. */
.catalog-product-view .eudora-recent {
    margin: 44px auto 32px; padding: 28px 28px 32px; border: 1px solid var(--el-line, #ececec); border-radius: 10px; background: #fff;
}
.catalog-product-view .eudora-recent__head { margin-bottom: 20px; }
.catalog-product-view .eudora-recent .eudora-recent__arrow--prev { left: 4px; }
.catalog-product-view .eudora-recent .eudora-recent__arrow--next { right: 4px; }
@media (max-width: 770px) {
    .catalog-product-view .eudora-recent { margin: 32px auto 24px; padding: 20px 18px 24px; }
}
