/* Partush – promotions carousel v2 (modern, mobile-first). Loaded by mu-plugins/partush-promo-carousel.php.
   Overrides plugins/partush-promotions-slider/assets/frontend.css. Delete both files to revert. */

body .partush-ps {
	--pc-wine: #af1d38;
	--pc-wine-dark: #8a1529;
	--pc-gold: #c5a45f;
	--pc-gold-soft: #f3e7c6;
	--pc-cream: #faf6ef;
	--pc-ink: #1d1d1f;
	--pc-muted: #8a8580;
	--pc-line: #ece6da;
	--partush-gap: 20px;
	font-family: "Open Sans Hebrew", sans-serif;
	padding: 8px 56px 46px;
}

/* ---------- track ---------- */
body .partush-ps .partush-ps-viewport {
	margin: -14px -6px;
	padding: 14px 6px 22px;
	scroll-padding-inline: 6px;
}

/* ---------- card ---------- */
body .partush-ps .partush-ps-card {
	background: #fff;
	border: 1px solid var(--pc-line);
	border-radius: 20px;
	box-shadow: 0 6px 22px rgba(80, 20, 30, .07);
	overflow: hidden;
	position: relative;
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
@media (hover: hover) {
	body .partush-ps .partush-ps-card:hover {
		border-color: rgba(197, 164, 95, .6);
		box-shadow: 0 16px 34px rgba(80, 20, 30, .13);
		transform: translateY(-5px);
	}
	body .partush-ps .partush-ps-card:hover .partush-ps-image img {
		transform: scale(1.05);
	}
}

/* ---------- image ---------- */
body .partush-ps .partush-ps-image {
	background: radial-gradient(120% 90% at 50% 100%, var(--pc-gold-soft) 0%, var(--pc-cream) 45%, #fff 100%);
	height: 250px;
	padding: 22px 18px 14px;
}
body .partush-ps .partush-ps-image img {
	filter: drop-shadow(0 10px 12px rgba(40, 20, 10, .14));
	max-height: 212px;
	transition: transform .45s ease;
}

/* ---------- deal badge ---------- */
body .partush-ps .partush-ps-badge {
	background: linear-gradient(135deg, var(--pc-wine), var(--pc-wine-dark));
	border-radius: 999px;
	box-shadow: 0 4px 12px rgba(175, 29, 56, .35), 0 0 0 2px #fff, 0 0 0 3px var(--pc-gold);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .2px;
	padding: 6px 12px;
	right: 14px;
	top: 14px;
	white-space: nowrap;
}

/* ---------- content ---------- */
body .partush-ps .partush-ps-content {
	align-items: center;
	padding: 16px 18px 18px;
}
body .partush-ps .partush-ps-title {
	-webkit-box-orient: vertical;
	display: -webkit-box;
	font-size: 17px;
	font-weight: 700;
	-webkit-line-clamp: 2;
	line-height: 1.3;
	min-height: 2.6em;
	overflow: hidden;
}
body .partush-ps .partush-ps-title a {
	color: var(--pc-ink);
	transition: color .25s;
}
body .partush-ps .partush-ps-card:hover .partush-ps-title a {
	color: var(--pc-wine);
}

/* stock: small pill with a dot */
body .partush-ps .partush-ps-stock {
	align-items: center;
	background: #eef7f0;
	border-radius: 999px;
	color: #2f7a43;
	display: inline-flex;
	font-size: 12px;
	font-weight: 600;
	gap: 6px;
	margin: 8px 0 0;
	padding: 3px 10px;
}
body .partush-ps .partush-ps-stock::before {
	background: currentColor;
	border-radius: 50%;
	content: "";
	height: 6px;
	width: 6px;
}
body .partush-ps .partush-ps-stock.is-out-of-stock {
	background: #fbeef0;
	color: var(--pc-wine);
}

/* price: one line, new price big, old price muted */
body .partush-ps .partush-ps-price {
	align-items: baseline;
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	justify-content: center;
	margin: auto 0 14px;
	min-height: 0;
	padding-top: 14px;
	white-space: nowrap;
}
body .partush-ps .partush-ps-price ins,
body .partush-ps .partush-ps-price > .amount,
body .partush-ps .partush-ps-price > .woocommerce-Price-amount {
	color: var(--pc-wine);
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -.3px;
	text-decoration: none;
}
body .partush-ps .partush-ps-price del {
	color: var(--pc-muted);
	font-size: 14px;
	font-weight: 500;
	text-decoration-thickness: 1px;
}

/* call to action: wine pill like the site's add-to-cart buttons */
body .partush-ps .partush-ps-cta {
	align-items: center;
	background: var(--pc-wine);
	background-image: none;
	border: 0;
	border-radius: 999px;
	box-shadow: none;
	color: #fff !important;
	display: inline-flex;
	font-size: 15px;
	font-weight: 600;
	gap: 8px;
	justify-content: center;
	padding: 11px 16px;
	transition: background-color .25s ease, box-shadow .25s ease;
	width: 100%;
}
body .partush-ps .partush-ps-cta::before {
	background: currentColor;
	content: "";
	flex-shrink: 0;
	height: 16px;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6h15l-1.5 9h-12z'/%3E%3Cpath d='M6 6 5 3H2'/%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6h15l-1.5 9h-12z'/%3E%3Cpath d='M6 6 5 3H2'/%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
	width: 16px;
}
body .partush-ps .partush-ps-cta:hover,
body .partush-ps .partush-ps-cta:focus-visible {
	background: var(--pc-wine-dark);
	background-image: none;
	box-shadow: 0 0 0 3px var(--pc-gold-soft);
}

/* ---------- arrows: white circles with a wine chevron ---------- */
body .partush-ps .partush-ps-arrow {
	background: #fff;
	border: 1px solid var(--pc-line);
	box-shadow: 0 6px 18px rgba(80, 20, 30, .12);
	color: var(--pc-wine);
	font-size: 0;
	height: 46px;
	padding: 0;
	top: calc(50% - 40px);
	transition: background-color .25s, color .25s, opacity .25s;
	width: 46px;
}
body .partush-ps .partush-ps-arrow::before {
	border-left: 2.5px solid currentColor;
	border-top: 2.5px solid currentColor;
	content: "";
	height: 11px;
	width: 11px;
}
body .partush-ps .partush-ps-next::before { margin-left: 4px; transform: rotate(-45deg); }
body .partush-ps .partush-ps-prev::before { margin-right: 4px; transform: rotate(135deg); }
body .partush-ps .partush-ps-arrow:hover:not(:disabled) {
	background: var(--pc-wine);
	border-color: var(--pc-wine);
	color: #fff;
}

/* ---------- dots: pills, active one stretched ---------- */
body .partush-ps .partush-ps-dots {
	bottom: 12px;
	gap: 6px;
}
body .partush-ps .partush-ps-dots button {
	background: #ddd5c6;
	border-radius: 999px;
	height: 7px;
	transition: width .3s ease, background-color .3s ease;
	width: 7px;
}
body .partush-ps .partush-ps-dots button.is-active {
	background: var(--pc-wine);
	transform: none;
	width: 24px;
}

/* ---------- tablet ---------- */
@media (max-width: 1023px) {
	body .partush-ps {
		padding: 6px 48px 44px;
	}
}

/* ---------- mobile: full width, one-and-a-half cards, swipe, no arrows ---------- */
@media (max-width: 599px) {
	body .partush-ps {
		--partush-gap: 12px;
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
		max-width: none;
		padding: 4px 0 40px;
		width: 100vw;
	}
	body .partush-ps .partush-ps-viewport {
		margin: -10px 0;
		padding: 10px 16px 18px;
		scroll-padding-inline: 16px;
	}
	body .partush-ps .partush-ps-card {
		border-radius: 18px;
		flex-basis: 62%;
		scroll-snap-align: start;
	}
	body .partush-ps .partush-ps-image {
		height: 178px;
		padding: 16px 12px 10px;
	}
	body .partush-ps .partush-ps-image img {
		max-height: 150px;
	}
	body .partush-ps .partush-ps-badge {
		font-size: 11px;
		padding: 5px 9px;
		right: 10px;
		top: 10px;
	}
	body .partush-ps .partush-ps-content {
		padding: 12px 12px 14px;
	}
	body .partush-ps .partush-ps-title {
		font-size: 15px;
	}
	body .partush-ps .partush-ps-stock {
		font-size: 11px;
		margin-top: 6px;
		padding: 2px 8px;
	}
	body .partush-ps .partush-ps-price {
		display: flex;
		gap: 6px;
		margin-bottom: 12px;
		padding-top: 10px;
	}
	body .partush-ps .partush-ps-price ins,
	body .partush-ps .partush-ps-price > .amount,
	body .partush-ps .partush-ps-price > .woocommerce-Price-amount {
		font-size: 20px;
	}
	body .partush-ps .partush-ps-price del {
		font-size: 12px;
	}
	body .partush-ps .partush-ps-cta {
		font-size: 14px;
		padding: 10px 12px;
	}
	body .partush-ps .partush-ps-arrow {
		display: none;
	}
	body .partush-ps .partush-ps-dots {
		bottom: 10px;
	}
}
