/* Homepage horizontal product rows (trade picks + sale) and the "view more" tile. */

.srh-hs { position: relative; min-width: 0; }
.srh-hs[hidden] { display: none; }

.srh-hs__track,
.srh-flash__grid.srh-flash__grid--scroll {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x proximity;
	padding: 4px 2px 14px;
	margin: 0;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.srh-hs__track::-webkit-scrollbar,
.srh-flash__grid.srh-flash__grid--scroll::-webkit-scrollbar { display: none; }

/* Five cards visible on desktop, fewer as the screen narrows. */
.srh-hs__track > .srh-card,
.srh-hs__track > .srh-more-tile {
	flex: 0 0 calc((100% - 64px) / 5);
	min-width: 190px;
	scroll-snap-align: start;
}
@media (max-width: 1100px) {
	.srh-hs__track > .srh-card,
	.srh-hs__track > .srh-more-tile { flex-basis: calc((100% - 48px) / 4); }
}
@media (max-width: 820px) {
	.srh-hs__track > .srh-card,
	.srh-hs__track > .srh-more-tile { flex-basis: 170px; min-width: 170px; }
	.srh-hs__track { gap: 12px; margin: 0 -12px; padding-left: 12px; padding-right: 12px; }
}

.srh-hs.is-entering .srh-card { animation: srh-rise .45s cubic-bezier(.2, .8, .2, 1) both; }

/* Sale row: white cards on the red panel */
.srh-flash__grid--scroll .srh-fcard { flex: 0 0 210px; width: 210px; scroll-snap-align: start; }
.srh-flash__grid--scroll .srh-more-tile { flex: 0 0 210px; scroll-snap-align: start; }
@media (max-width: 820px) {
	.srh-flash__grid--scroll .srh-fcard,
	.srh-flash__grid--scroll .srh-more-tile { flex-basis: 170px; width: 170px; }
	.srh-flash__grid.srh-flash__grid--scroll { margin: 0 -24px; padding: 4px 24px 12px; }
}

/* "View more" tile at the end of a row */
.srh-more-tile {
	border-radius: 22px;
	border: 2px dashed var(--srh-line, #e6e2dc);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 22px 16px;
	text-align: center;
	color: var(--srh-ink, #141312) !important;
	text-decoration: none !important;
	background: transparent;
	transition: border-color .2s, background .2s, transform .2s;
}
.srh-more-tile strong { font: 700 18px/1.1 var(--srh-display, inherit); letter-spacing: -.02em; }
.srh-more-tile > span:last-child { font-size: 13px; opacity: .7; }
.srh-more-tile__ico {
	width: 46px; height: 46px; border-radius: 50%;
	background: var(--srh-red, #d6301f); color: #fff;
	display: flex; align-items: center; justify-content: center;
	transition: transform .2s;
}
.srh-more-tile:hover { border-color: var(--srh-red, #d6301f); background: var(--srh-red-soft, #fdecea); }
.srh-more-tile:hover .srh-more-tile__ico { transform: translateX(4px); }
.srh-more-tile--light { border-color: rgba(255, 255, 255, .55); color: #fff !important; }
.srh-more-tile--light .srh-more-tile__ico { background: #fff; color: var(--srh-red, #d6301f); }
.srh-more-tile--light:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }

/* Arrow buttons (mouse users; touch users just swipe) */
.srh .srh-hs__nav {
	position: absolute; top: calc(40% - 22px); transform: none !important;
	box-sizing: border-box;
	width: 44px !important; height: 44px !important; min-width: 44px !important; min-height: 44px !important;
	margin: 0 !important; padding: 0 !important;
	border-radius: 50%; border: 1px solid rgba(0, 0, 0, .06);
	background: #fff; color: #141312;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
	display: none; align-items: center; justify-content: center;
	line-height: 0; cursor: pointer; z-index: 5;
	opacity: 0; pointer-events: none; transition: opacity .2s, background .2s, color .2s;
}
.srh .srh-hs__nav svg { flex: none; display: block; width: 18px !important; height: 18px !important; }
.srh .srh-hs__nav--prev { left: 8px; }
.srh .srh-hs__nav--prev svg { transform: rotate(180deg); }
.srh .srh-hs__nav--next { right: 8px; }
.srh .srh-hs__nav:hover,
.srh .srh-hs__nav:focus,
.srh .srh-hs__nav:active { background: var(--srh-red, #d6301f); color: #fff; transform: none !important; top: calc(40% - 22px); box-shadow: 0 8px 24px rgba(0, 0, 0, .2); outline: none; }
.srh .srh-hs__nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (hover: hover) and (min-width: 821px) {
	.srh .srh-hs__nav { display: flex; }
	.srh-hs.can-prev .srh-hs__nav--prev,
	.srh-hs.can-next .srh-hs__nav--next { opacity: 1; pointer-events: auto; }
}

/* A sale section whose timer has ended stays put, without the clock. */
.is-ended .srh-cd { display: none; }
