/**
 * Sirbal seasonal sale — premium independent storefront component.
 */

.sirbal-sale-products {
	--sale-ink: #10202a;
	--sale-muted: #66747d;
	--sale-navy: #082b3b;
	--sale-navy-deep: #061d29;
	--sale-blue: #0d4760;
	--sale-gold: #d6b77f;
	--sale-cream: #fbf8f2;
	--sale-surface: #fff;
	--sale-line: #e5e8e7;
	--sale-danger: #a92f28;
	--sale-danger-soft: #fff0ed;
	color: var(--sale-ink);
	font-family: inherit;
	margin: clamp(28px, 4vw, 60px) auto 0;
	width: 100%;
}

.sirbal-sale-products *,
.sirbal-sale-products *::before,
.sirbal-sale-products *::after {
	box-sizing: border-box;
}

.sirbal-sale-products [hidden] {
	display: none !important;
}

.sirbal-sale-products__shell {
	background:
		radial-gradient(circle at 12% 12%, rgba(214, 183, 127, .18), transparent 24%),
		radial-gradient(circle at 92% 92%, rgba(80, 149, 172, .2), transparent 28%),
		linear-gradient(138deg, var(--sale-navy-deep) 0%, var(--sale-navy) 54%, var(--sale-blue) 100%);
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: 28px;
	box-shadow: 0 24px 60px rgba(6, 29, 41, .16);
	isolation: isolate;
	overflow: hidden;
	padding: clamp(22px, 3vw, 38px);
	position: relative;
}

.sirbal-sale-products__shell::before,
.sirbal-sale-products__shell::after {
	border: 1px solid rgba(255, 255, 255, .07);
	border-radius: 50%;
	content: "";
	pointer-events: none;
	position: absolute;
	z-index: -1;
}

.sirbal-sale-products__shell::before {
	height: 320px;
	left: -150px;
	top: -210px;
	width: 320px;
}

.sirbal-sale-products__shell::after {
	bottom: -260px;
	height: 440px;
	right: -210px;
	width: 440px;
}

.sirbal-sale-products__header {
	align-items: end;
	display: flex;
	gap: 32px;
	justify-content: space-between;
	margin-bottom: 24px;
	position: relative;
	z-index: 2;
}

.sirbal-sale-products__intro {
	max-width: 650px;
	min-width: 0;
}

.sirbal-sale-products__eyebrow {
	align-items: center;
	color: #f2d7a8;
	display: inline-flex;
	font-size: 14px;
	font-weight: 700;
	gap: 9px;
	line-height: 1.6;
	margin-bottom: 5px;
}

.sirbal-sale-products__eyebrow::before {
	background: var(--sale-gold);
	border-radius: 999px;
	box-shadow: 0 0 0 5px rgba(214, 183, 127, .12);
	content: "";
	height: 8px;
	width: 8px;
}

.sirbal-sale-products__intro h2 {
	color: #fff;
	font-size: clamp(27px, 2.7vw, 38px);
	font-weight: 850;
	letter-spacing: -.025em;
	line-height: 1.35;
	margin: 0;
	text-wrap: balance;
}

.sirbal-sale-products__intro p {
	color: #d6e2e7;
	font-size: 15px;
	line-height: 1.8;
	margin: 7px 0 0;
	max-width: 58ch;
}

.sirbal-sale-products__actions,
.sirbal-sale-products__nav,
.sirbal-sale-products__all,
.sirbal-sale-products__count {
	align-items: center;
	display: flex;
}

.sirbal-sale-products__actions {
	flex: 0 0 auto;
	flex-wrap: wrap;
	gap: 9px;
	justify-content: flex-end;
}

.sirbal-sale-products__count {
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 999px;
	color: #eef5f7;
	font-size: 13px;
	font-weight: 650;
	min-height: 44px;
	padding: 0 14px;
	white-space: nowrap;
}

.sirbal-sale-products__all {
	background: var(--sale-cream);
	border: 1px solid var(--sale-cream);
	border-radius: 999px;
	color: var(--sale-navy-deep);
	font-size: 13.5px;
	font-weight: 750;
	gap: 6px;
	justify-content: center;
	min-height: 44px;
	padding: 0 16px;
	text-decoration: none;
	transition: background-color .18s ease, border-color .18s ease, color .18s ease;
	white-space: nowrap;
}

.sirbal-sale-products__all:hover {
	background: #fff;
	border-color: #fff;
	color: var(--sale-danger);
}

.sirbal-sale-products__nav {
	direction: rtl;
	gap: 8px;
}

.sirbal-sale-products__nav-button {
	align-items: center;
	appearance: none;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	height: 44px;
	justify-content: center;
	margin: 0;
	padding: 0;
	touch-action: manipulation;
	transition: background-color .18s ease, border-color .18s ease, color .18s ease, opacity .18s ease;
	width: 44px;
}

.sirbal-sale-products__nav-button:hover:not(:disabled) {
	background: var(--sale-cream);
	border-color: var(--sale-cream);
	color: var(--sale-navy-deep);
}

.sirbal-sale-products__nav-button:disabled {
	cursor: default;
	opacity: .34;
}

.sirbal-sale-products a:focus-visible,
.sirbal-sale-products button:focus-visible,
.sirbal-sale-products__track:focus-visible {
	outline: 3px solid var(--sale-gold);
	outline-offset: 3px;
}

.sirbal-sale-products__viewport {
	margin-inline: -5px;
	overflow: hidden;
	padding-inline: 5px;
	position: relative;
	z-index: 1;
}

.sirbal-sale-products__track {
	display: flex;
	gap: 18px;
	list-style: none;
	margin: 0;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 5px 0 14px;
	scroll-behavior: smooth;
	scroll-snap-type: inline mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.sirbal-sale-products__track::-webkit-scrollbar {
	display: none;
}

.sirbal-sale-products__slide {
	flex: 0 0 calc((100% - 54px) / 4);
	margin: 0;
	min-width: 0;
	scroll-snap-align: start;
	scroll-snap-stop: normal;
}

.sirbal-sale-products--count-1 .sirbal-sale-products__slide {
	flex-basis: min(310px, 100%);
}

.sirbal-sale-products--count-2 .sirbal-sale-products__slide {
	flex-basis: min(310px, calc((100% - 18px) / 2));
}

.sirbal-sale-products--count-3 .sirbal-sale-products__slide {
	flex-basis: min(310px, calc((100% - 36px) / 3));
}

.sirbal-sale-card {
	background: var(--sale-surface);
	border: 1px solid rgba(255, 255, 255, .56);
	border-radius: 21px;
	box-shadow: 0 14px 34px rgba(3, 20, 29, .16);
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	position: relative;
	transition: box-shadow .22s ease, transform .22s ease;
}

@media (hover: hover) and (pointer: fine) {
	.sirbal-sale-card:hover {
		box-shadow: 0 21px 46px rgba(3, 20, 29, .24);
		transform: translateY(-4px);
	}
}

.sirbal-sale-card__media {
	aspect-ratio: 1 / 1;
	background:
		linear-gradient(145deg, rgba(255, 255, 255, .5), transparent 44%),
		#edf0ef;
	overflow: hidden;
	position: relative;
}

.sirbal-sale-card__image-link {
	display: block;
	height: 100%;
	width: 100%;
}

.sirbal-sale-card__image {
	height: 100% !important;
	inset: 0;
	object-fit: cover;
	position: absolute;
	transition: opacity .3s ease, transform .45s cubic-bezier(.2, .65, .3, 1);
	width: 100% !important;
}

.sirbal-sale-card__image--primary {
	opacity: 1;
}

.sirbal-sale-card__image--secondary {
	opacity: 0;
}

@media (hover: hover) and (pointer: fine) {
	.sirbal-sale-card:hover .sirbal-sale-card__image--primary {
		opacity: 0;
		transform: scale(1.025);
	}

	.sirbal-sale-card:hover .sirbal-sale-card__image--secondary {
		opacity: 1;
		transform: scale(1.025);
	}
}

.sirbal-sale-card__badge {
	background: var(--sale-danger);
	border: 1px solid rgba(255, 255, 255, .24);
	border-radius: 999px;
	box-shadow: 0 8px 18px rgba(117, 25, 20, .25);
	color: #fff;
	font-size: 12.5px;
	font-weight: 800;
	line-height: 1;
	padding: 10px 12px;
	position: absolute;
	right: 12px;
	top: 12px;
	z-index: 3;
}

.sirbal-sale-card__quick-view {
	bottom: 12px;
	left: 50%;
	opacity: 0;
	position: absolute;
	transform: translate(-50%, 8px);
	transition: opacity .18s ease, transform .22s ease;
	z-index: 4;
}

.sirbal-sale-card:hover .sirbal-sale-card__quick-view,
.sirbal-sale-card:focus-within .sirbal-sale-card__quick-view {
	opacity: 1;
	transform: translate(-50%, 0);
}

.sirbal-sale-card__quick-view .quick-view {
	height: auto;
	width: auto;
}

.sirbal-sale-card__quick-view .quick-view > a {
	align-items: center;
	background: rgba(6, 29, 41, .92);
	border-radius: 999px;
	box-shadow: 0 8px 22px rgba(6, 29, 41, .24);
	color: #fff !important;
	display: flex;
	flex-direction: row;
	font-size: 13px !important;
	gap: 7px;
	height: 44px;
	justify-content: center;
	min-height: 44px;
	min-width: 44px;
	padding: 0 15px;
	text-decoration: none;
	white-space: nowrap;
	width: auto;
}

.sirbal-sale-card__quick-view .quick-view > a::before {
	color: inherit;
	font-size: 18px;
	margin: 0;
	position: static;
}

.sirbal-sale-card__content {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
	padding: 16px;
}

.sirbal-sale-card__category {
	color: var(--sale-muted);
	display: block;
	font-size: 12.5px;
	font-weight: 550;
	line-height: 1.6;
	margin-bottom: 3px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sirbal-sale-card__title {
	color: var(--sale-ink);
	display: -webkit-box;
	font-size: 16px;
	font-weight: 750;
	line-height: 1.7;
	margin: 0;
	min-height: 3.4em;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.sirbal-sale-card__title a {
	color: inherit;
	text-decoration: none;
}

.sirbal-sale-card__title a:hover {
	color: var(--sale-blue);
}

.sirbal-sale-card__price {
	color: var(--sale-ink);
	font-size: 16px;
	font-variant-numeric: tabular-nums;
	font-weight: 800;
	line-height: 1.7;
	margin-top: 11px;
	min-height: 28px;
}

.sirbal-sale-card__price .amount,
.sirbal-sale-card__price bdi {
	direction: rtl;
	unicode-bidi: isolate;
}

.sirbal-sale-card__price del {
	color: #7d888e;
	display: inline-block;
	font-size: 12px;
	font-weight: 500;
	margin-inline-end: 5px;
	opacity: 1;
}

.sirbal-sale-card__price ins {
	background: none;
	color: var(--sale-danger);
	display: inline-block;
	padding: 0;
	text-decoration: none;
}

.sirbal-sale-card__saving {
	align-items: center;
	background: var(--sale-danger-soft);
	border: 1px solid #f4d3ce;
	border-radius: 10px;
	color: #6f2721;
	display: flex;
	font-size: 12px;
	gap: 8px;
	justify-content: space-between;
	line-height: 1.5;
	margin: 10px 0 12px;
	min-height: 38px;
	padding: 7px 10px;
}

.sirbal-sale-card__saving span {
	font-weight: 600;
}

.sirbal-sale-card__saving strong {
	font-size: 12.5px;
	font-variant-numeric: tabular-nums;
	font-weight: 800;
	white-space: nowrap;
}

.sirbal-sale-products .sirbal-sale-card__cta.button {
	align-items: center;
	background: var(--sale-navy);
	border: 1px solid var(--sale-navy);
	border-radius: 11px;
	box-shadow: none;
	color: #fff;
	display: flex;
	font-size: 13.5px;
	font-weight: 750;
	gap: 8px;
	justify-content: center;
	line-height: 1.45;
	margin: auto 0 0;
	min-height: 46px;
	padding: 9px 12px;
	text-align: center;
	text-decoration: none;
	transition: background-color .18s ease, border-color .18s ease, color .18s ease;
	width: 100%;
}

.sirbal-sale-products .sirbal-sale-card__cta.button:hover {
	background: #10181d;
	border-color: #10181d;
	color: #fff;
}

.sirbal-sale-products .sirbal-sale-card__cta.added {
	display: none;
}

.sirbal-sale-products .sirbal-sale-card__cta + .added_to_cart {
	align-items: center;
	border: 1px solid var(--sale-navy);
	border-radius: 11px;
	color: var(--sale-navy);
	display: flex;
	font-size: 13.5px;
	font-weight: 700;
	justify-content: center;
	min-height: 46px;
	padding: 9px 12px;
	text-decoration: none;
}

.sirbal-sale-products__countdown {
	align-items: center;
	background: rgba(3, 20, 29, .34);
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 18px;
	color: #fff;
	display: flex;
	gap: 24px;
	justify-content: space-between;
	margin-top: 12px;
	padding: 12px 14px;
	position: relative;
	z-index: 2;
}

.sirbal-sale-products__countdown-copy {
	align-items: center;
	display: flex;
	gap: 11px;
	min-width: 0;
}

.sirbal-sale-products__countdown-copy > svg {
	color: var(--sale-gold);
	flex: 0 0 auto;
}

.sirbal-sale-products__countdown-copy div {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.sirbal-sale-products__countdown-copy span {
	font-size: 14px;
	font-weight: 750;
	line-height: 1.5;
}

.sirbal-sale-products__countdown-copy small {
	color: #c8d8de;
	font-size: 11.5px;
	line-height: 1.6;
}

.sirbal-sale-products__timer {
	direction: rtl;
	display: grid;
	flex: 0 0 auto;
	gap: 7px;
	grid-template-columns: repeat(4, minmax(58px, 68px));
}

.sirbal-sale-products__timer > div {
	align-items: center;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .13);
	border-radius: 11px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 56px;
	padding: 4px 7px;
}

.sirbal-sale-products__timer strong {
	color: #fff;
	direction: ltr;
	font-family: iranyekan, Arial, Helvetica, sans-serif;
	font-size: 19px;
	font-variant-numeric: tabular-nums;
	font-weight: 800;
	line-height: 1.2;
	min-width: 2ch;
	text-align: center;
}

.sirbal-sale-products__timer span {
	color: #d5e1e5;
	font-size: 10px;
	font-weight: 550;
	line-height: 1.4;
}

@media (max-width: 1024px) {
	.sirbal-sale-products__header {
		align-items: start;
	}

	.sirbal-sale-products__actions {
		max-width: 330px;
	}

	.sirbal-sale-products__slide,
	.sirbal-sale-products--count-3 .sirbal-sale-products__slide {
		flex-basis: calc((100% - 36px) / 3);
	}

	.sirbal-sale-products__track {
		gap: 18px;
	}
}

@media (max-width: 767px) {
	.sirbal-sale-products {
		margin-top: 24px;
	}

	.sirbal-sale-products__shell {
		border-radius: 21px;
		padding: 18px 14px 14px;
	}

	.sirbal-sale-products__header {
		align-items: stretch;
		flex-direction: column;
		gap: 15px;
		margin-bottom: 14px;
	}

	.sirbal-sale-products__intro h2 {
		font-size: 27px;
	}

	.sirbal-sale-products__intro p {
		font-size: 14px;
		margin-top: 5px;
	}

	.sirbal-sale-products__actions {
		justify-content: flex-start;
		max-width: none;
		width: 100%;
	}

	.sirbal-sale-products__count {
		margin-inline-end: auto;
	}

	.sirbal-sale-products__track {
		gap: 12px;
		padding-bottom: 10px;
	}

	.sirbal-sale-products__slide,
	.sirbal-sale-products--count-2 .sirbal-sale-products__slide,
	.sirbal-sale-products--count-3 .sirbal-sale-products__slide {
		flex-basis: calc((100% - 12px) / 2);
		max-width: none;
	}

	.sirbal-sale-products--count-1 .sirbal-sale-products__slide {
		flex-basis: min(290px, 88%);
	}

	.sirbal-sale-card {
		border-radius: 16px;
	}

	.sirbal-sale-card__content {
		padding: 12px;
	}

	.sirbal-sale-card__title {
		font-size: 14.5px;
		line-height: 1.65;
		min-height: 3.3em;
	}

	.sirbal-sale-card__price {
		font-size: 14.5px;
		margin-top: 8px;
	}

	.sirbal-sale-card__badge {
		font-size: 11.5px;
		padding: 8px 9px;
		right: 9px;
		top: 9px;
	}

	.sirbal-sale-card__saving {
		align-items: flex-start;
		flex-direction: column;
		gap: 1px;
		margin-block: 8px 10px;
	}

	.sirbal-sale-card__saving strong {
		white-space: normal;
	}

	.sirbal-sale-products .sirbal-sale-card__cta.button,
	.sirbal-sale-products .sirbal-sale-card__cta + .added_to_cart {
		border-radius: 10px;
		font-size: 13px;
		min-height: 46px;
		padding-inline: 8px;
	}

	.sirbal-sale-card__quick-view {
		bottom: 9px;
		left: 9px;
		opacity: 1;
		transform: none;
	}

	.sirbal-sale-card__quick-view .quick-view > a {
		font-size: 0 !important;
		height: 44px;
		padding: 0;
		width: 44px;
	}

	.sirbal-sale-products__countdown {
		align-items: stretch;
		flex-direction: column;
		gap: 10px;
		padding: 12px;
	}

	.sirbal-sale-products__timer {
		grid-template-columns: repeat(4, 1fr);
		width: 100%;
	}

	.sirbal-sale-products__timer > div {
		min-height: 54px;
	}
}

@media (max-width: 430px) {
	.sirbal-sale-products__all {
		order: 1;
		width: calc(100% - 106px);
	}

	.sirbal-sale-products__count {
		margin: 0;
		order: 2;
		width: 98px;
	}

	.sirbal-sale-products__nav {
		order: 3;
	}

	.sirbal-sale-products__timer {
		gap: 5px;
	}

	.sirbal-sale-products__timer > div {
		padding-inline: 3px;
	}
}

@media (max-width: 374px) {
	.sirbal-sale-products__slide,
	.sirbal-sale-products--count-1 .sirbal-sale-products__slide,
	.sirbal-sale-products--count-2 .sirbal-sale-products__slide,
	.sirbal-sale-products--count-3 .sirbal-sale-products__slide {
		flex-basis: 84%;
	}

	.sirbal-sale-products__count {
		display: none;
	}

	.sirbal-sale-products__all {
		width: auto;
	}

	.sirbal-sale-products__timer strong {
		font-size: 17px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sirbal-sale-products__track {
		scroll-behavior: auto;
	}

	.sirbal-sale-card,
	.sirbal-sale-card__image,
	.sirbal-sale-card__quick-view,
	.sirbal-sale-products a,
	.sirbal-sale-products button {
		transition-duration: .01ms !important;
	}
}
