/* Same four/two-card rhythm and size choices as the New products carousel. */
.ire-recently-viewed[hidden] { display: none; }
.ire-recently-viewed { margin-top: 36px; }
.ire-recently-viewed > h2 { margin: 0 0 24px; font-size: 26px; text-align: left; }
.ire-recent-carousel { position: relative; }
.ire-recent-track { position: relative; display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 0 8px; margin: 0; list-style: none; overscroll-behavior-x: contain; }
.ire-recent-track::-webkit-scrollbar { display: none; }
.ire-recent-track .ire-recent-card { flex: 0 0 calc((100% - 72px) / 4); min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; scroll-snap-align: start; }
.ire-recent-image { display: block; }
.ire-recent-image img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 6px; background: #fff; }
.ire-recent-card h3 { margin: 0; font-size: 15px; line-height: 1.4; font-weight: 600; text-align: left; }
.ire-recent-card h3 a { text-decoration: none; color: #171717; }
.ire-recent-price { color: #bd2335; font-size: 20px; font-weight: 700; text-align: center; }
.ire-recent-price ins { text-decoration: none; }
.ire-recent-price del { font-size: .8em; opacity: .65; }
.ire-recent-card .ire-card-sizes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; min-width: 0; margin: 0; padding: 3px 0; border: 0; }
.ire-recent-card .ire-size-choice { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 32px; height: 32px; border: 1px solid #dce1e7; color: #687588; font-size: 12px; text-decoration: none; }
.ire-recent-card .ire-size-choice.is-unavailable { opacity: .45; text-decoration: line-through; }
.ire-recent-card a.ire-size-choice:hover { color: #bd2335; border-color: #bd2335; }
.ire-recent-arrow { position: absolute; z-index: 2; top: 40%; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #171717; box-shadow: 0 6px 24px rgba(0,0,0,.1); cursor: pointer; }
.ire-recent-previous { left: 0; }
.ire-recent-next { right: 0; }
.ire-recent-arrow[hidden] { display: none; }
.ire-recent-arrow:disabled { opacity: 0; pointer-events: none; }
.ire-recently-viewed a:focus-visible, .ire-recent-arrow:focus-visible, .ire-recent-track:focus-visible { outline: 2px solid #555; outline-offset: 2px; }
@media (max-width: 781px) {
 .ire-recently-viewed > h2 { font-size: 22px; margin-bottom: 18px; }
 .ire-recent-track { gap: 12px; }
 .ire-recent-track .ire-recent-card { flex-basis: calc((100% - 12px) / 2); }
 .ire-recent-card h3 { font-size: 14px; }
 .ire-recent-price { font-size: 16px; }
 .ire-recent-card .ire-card-sizes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
 .ire-recent-card .ire-size-choice { width: 100%; height: 30px; font-size: 11px; }
}
