/**
 * Zima product page: gallery, summary, buy box, product passport, section menu, description
 * with ingredients and usage, other tabs, related products and the phone buy bar.
 */

.zm-sp {
	--zm-sp-p: var(--zm-color-primary, #732bed);
	--zm-sp-a: var(--zm-color-accent, #c01dfb);
	--zm-sp-d: var(--zm-color-heading, #1c1c25);
	--zm-sp-t: var(--zm-color-text, #394454);
	--zm-sp-m: var(--zm-color-muted, #707486);
	--zm-sp-s: var(--zm-color-subtle, #a4a8ba);
	--zm-sp-b: var(--zm-color-border, #eceef3);
	--zm-sp-soft: color-mix(in srgb, var(--zm-sp-p) 7%, #ffffff);
	--zm-sp-ease: cubic-bezier(0.22, 1, 0.36, 1);
	/* Height of a sticky header above the page (set by product.js). */
	--zm-sp-top: 0px;
	color: var(--zm-sp-t);
	padding-bottom: 72px;
}

.zm-sp *,
.zm-sp *::before,
.zm-sp *::after {
	box-sizing: border-box;
}

.zm-sp-i {
	display: block;
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
}

.zm-sp a {
	text-decoration: none;
}

/* ---------- Breadcrumbs (all shop pages) ---------- */

.zm-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	padding: 22px 0 26px;
	font-size: 13px;
	color: var(--zm-color-heading, #1c1c25);
}

.zm-crumbs a {
	color: var(--zm-color-muted, #707486);
	text-decoration: none;
	transition: color 0.2s;
}

.zm-crumbs a:hover {
	color: var(--zm-color-primary, #732bed);
}

.zm-crumbs__sep {
	color: var(--zm-color-subtle, #a4a8ba);
}

/* ---------- Top: gallery, summary, buy box ---------- */

.zm-sp__top {
	display: grid;
	grid-template-columns: 450px minmax(0, 1fr) 350px;
	gap: 34px;
	align-items: start;
}

/* Gallery */

.zm-sp-gal {
	position: relative;
	min-width: 0;
}

.zm-sp-gal__stage {
	position: relative;
	aspect-ratio: 1;
	overflow: hidden;
	background:
		radial-gradient(circle at 50% 58%, #ffffff 0 24%, transparent 25%),
		linear-gradient(160deg, var(--zm-sp-soft), color-mix(in srgb, var(--zm-sp-a) 5%, #ffffff) 60%, color-mix(in srgb, var(--zm-sp-p) 9%, #ffffff));
	border-radius: 40px;
	isolation: isolate;
}

.zm-sp-gal__ring {
	position: absolute;
	inset: 14% 14% 8%;
	z-index: -1;
	border: 28px solid color-mix(in srgb, var(--zm-sp-p) 6%, transparent);
	border-radius: 50%;
}

.zm-sp-gal__spark {
	position: absolute;
	z-index: 1;
	width: 30px;
	height: 30px;
	color: var(--zm-sp-p);
	pointer-events: none;
	animation: zm-sp-twinkle 3.2s ease-in-out infinite;
}

.zm-sp-gal__spark--a {
	top: 28%;
	right: 12%;
}

.zm-sp-gal__spark--b {
	bottom: 20%;
	left: 14%;
	width: 20px;
	height: 20px;
	color: var(--zm-sp-a);
	animation-delay: -1.6s;
}

@keyframes zm-sp-twinkle {
	0%,
	100% {
		opacity: 1;
		transform: scale(1);
	}

	50% {
		opacity: 0.45;
		transform: scale(0.75);
	}
}

.zm-sp-gal__track {
	display: flex;
	height: 100%;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.zm-sp-gal__track::-webkit-scrollbar {
	display: none;
}

.zm-sp-gal__track:focus-visible {
	outline: 2px solid var(--zm-sp-p);
	outline-offset: -4px;
	border-radius: 40px;
}

.zm-sp-gal__slide {
	position: relative;
	flex: 0 0 100%;
	margin: 0;
	overflow: hidden;
	scroll-snap-align: center;
	cursor: zoom-in;
}

.zm-sp .zm-sp-gal__slide img {
	position: absolute;
	inset: 8%;
	width: 84%;
	max-width: none;
	height: 84%;
	object-fit: contain;
	background: #ffffff;
	/* White rounded frame around the photo. */
	border: 7px solid #ffffff;
	border-radius: 32px;
	box-shadow: 0 24px 50px rgba(60, 30, 90, 0.14);
	transition: transform 0.35s var(--zm-sp-ease);
}

.zm-sp-gal__slide.is-zooming img {
	transition: none;
}

.zm-sp-gal__badges {
	position: absolute;
	top: 22px;
	right: 22px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	pointer-events: none;
}

.zm-sp-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 30px;
	padding: 0 14px;
	font-size: 12.5px;
	font-weight: 600;
	border-radius: 999px;
}

.zm-sp-pill .zm-sp-i {
	width: 15px;
	height: 15px;
}

.zm-sp-pill--sale {
	color: #ffffff;
	background: var(--zm-color-sale, #e80c4a);
	box-shadow: 0 8px 18px color-mix(in srgb, var(--zm-color-sale, #e80c4a) 28%, transparent);
}

.zm-sp-pill--ok {
	color: #0f8a5f;
	background: #e5f7ef;
}

.zm-sp-gal__tools {
	position: absolute;
	top: 22px;
	left: 22px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.zm-sp-gal__tool {
	position: relative;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	color: var(--zm-sp-d);
	background: #ffffff;
	border: 0;
	border-radius: 50%;
	box-shadow: 0 8px 20px rgba(28, 28, 37, 0.07);
	cursor: pointer;
	transition: color 0.2s, transform 0.2s;
}

.zm-sp-gal__tool:hover {
	color: var(--zm-sp-p);
	transform: translateY(-2px);
}

.zm-sp-gal__done,
.zm-sp-pcard__copied {
	position: absolute;
	top: 50%;
	left: calc(100% + 8px);
	padding: 4px 10px;
	font-size: 11.5px;
	white-space: nowrap;
	color: #ffffff;
	background: var(--zm-sp-d);
	border-radius: 999px;
	transform: translateY(-50%);
}

.zm-sp-gal__zoom {
	position: absolute;
	bottom: 20px;
	left: 22px;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 8px;
	height: 36px;
	padding: 0 14px;
	font: inherit;
	font-size: 12px;
	color: var(--zm-sp-m);
	background: rgba(255, 255, 255, 0.82);
	border: 0;
	border-radius: 999px;
	backdrop-filter: blur(6px);
	cursor: pointer;
}

.zm-sp-gal__zoom .zm-sp-i {
	width: 16px;
	height: 16px;
}

.zm-sp-gal__count {
	position: absolute;
	right: 22px;
	bottom: 20px;
	z-index: 2;
	display: none;
	padding: 4px 12px;
	font-size: 12px;
	color: var(--zm-sp-m);
	background: rgba(255, 255, 255, 0.82);
	border-radius: 999px;
}

.zm-sp-gal__count b {
	color: var(--zm-sp-d);
}

.zm-sp-gal__thumbs {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
	margin-top: 16px;
}

.zm-sp-gal__thumb {
	position: relative;
	aspect-ratio: 1;
	padding: 0;
	overflow: hidden;
	background: color-mix(in srgb, var(--zm-sp-p) 4%, #ffffff);
	border: 2px solid transparent;
	border-radius: 20px;
	cursor: pointer;
	transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s var(--zm-sp-ease);
}

.zm-sp-gal__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	padding: 5px;
	object-fit: contain;
	border-radius: 16px;
	mix-blend-mode: multiply;
}

.zm-sp-gal__thumb:hover {
	border-color: color-mix(in srgb, var(--zm-sp-p) 16%, transparent);
	box-shadow: 0 10px 24px color-mix(in srgb, var(--zm-sp-p) 14%, transparent);
	transform: translateY(-2px);
}

.zm-sp-gal__thumb.is-active {
	border-color: color-mix(in srgb, var(--zm-sp-p) 55%, #ffffff);
	box-shadow: 0 12px 26px color-mix(in srgb, var(--zm-sp-p) 20%, transparent);
}

.zm-sp-gal__more {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-weight: 700;
	color: #ffffff;
	background: rgba(28, 28, 37, 0.55);
}

/* Lightbox */

.zm-sp-lb {
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	color: #ffffff;
	background: rgba(15, 2, 21, 0.94);
	border: 0;
}

.zm-sp-lb::backdrop {
	background: rgba(15, 2, 21, 0.6);
}

.zm-sp-lb[open] {
	display: grid;
	place-items: center;
	animation: zm-sp-fade 0.25s ease;
}

@keyframes zm-sp-fade {
	from {
		opacity: 0;
	}
}

.zm-sp-lb__stage {
	position: absolute;
	inset: 64px 72px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	touch-action: pan-y;
}

/* The whole image always fits the screen (".zm-sp-lb" also beats WooCommerce's "img { height: auto }"). */
.zm-sp-lb .zm-sp-lb__img {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	background: #ffffff;
	border-radius: 24px;
	cursor: zoom-in;
	transition: transform 0.3s var(--zm-sp-ease);
	user-select: none;
}

.zm-sp-lb.is-zoomed .zm-sp-lb__img {
	cursor: zoom-out;
	transform: scale(2);
}

.zm-sp-lb__btn {
	position: absolute;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	color: #ffffff;
	background: rgba(255, 255, 255, 0.12);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.2s;
}

.zm-sp-lb__btn:hover {
	background: rgba(255, 255, 255, 0.24);
}

.zm-sp-lb__btn .zm-sp-i {
	width: 22px;
	height: 22px;
}

.zm-sp-lb__close {
	top: 12px;
	left: 12px;
}

.zm-sp-lb__prev {
	top: 50%;
	right: 12px;
	transform: translateY(-50%) scaleX(-1);
}

.zm-sp-lb__next {
	top: 50%;
	left: 12px;
	transform: translateY(-50%);
}

.zm-sp-lb__count {
	position: absolute;
	top: 22px;
	right: 24px;
	font-size: 13px;
	opacity: 0.8;
}

/* Summary */

.zm-sp-sum {
	min-width: 0;
	padding-top: 4px;
}

.zm-sp-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	max-width: 100%;
	padding: 5px 5px 5px 16px;
	font-size: 13px;
	color: var(--zm-sp-d);
	background: #ffffff;
	border: 1px solid var(--zm-sp-b);
	border-radius: 999px;
	transition: border-color 0.2s;
}

a.zm-sp-brand:hover {
	border-color: color-mix(in srgb, var(--zm-sp-p) 35%, transparent);
}

.zm-sp-brand__logo {
	display: grid;
	flex: 0 0 32px;
	place-items: center;
	height: 32px;
	overflow: hidden;
	font-size: 12px;
	font-weight: 800;
	color: #ffffff;
	background: linear-gradient(135deg, var(--zm-sp-a), var(--zm-sp-p));
	border-radius: 50%;
}

.zm-sp-brand__logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #ffffff;
}

.zm-sp-brand small {
	color: var(--zm-sp-s);
	white-space: nowrap;
}

.zm-sp-sum__title {
	margin: 18px 0 6px;
	font-size: 23px;
	font-weight: 800;
	line-height: 1.75;
	color: var(--zm-sp-d);
}

.zm-sp-sum__en {
	margin: 0;
	font-size: 13px;
	color: var(--zm-sp-s);
	text-align: right;
}

.zm-sp-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	margin: 16px 0 22px;
	padding-bottom: 20px;
	font-size: 13px;
	color: var(--zm-sp-m);
	border-bottom: 1px dashed #dfe1ea;
}

.zm-sp-meta--empty {
	margin-top: 0;
	padding-bottom: 14px;
}

.zm-sp-meta > a,
.zm-sp-meta > span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: inherit;
}

.zm-sp-meta > a:hover {
	color: var(--zm-sp-p);
}

.zm-sp-meta b {
	color: var(--zm-sp-d);
}

.zm-sp-meta .zm-sp-i {
	width: 17px;
	height: 17px;
}

.zm-sp-meta__rate .zm-sp-i {
	color: var(--zm-color-star, #fdc80b);
}

.zm-sp-meta > i {
	width: 4px;
	height: 4px;
	background: #d5d7e0;
	border-radius: 50%;
}

.zm-sp-h {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.6;
	color: var(--zm-sp-d);
}

.zm-sp-h .zm-sp-i {
	width: 18px;
	height: 18px;
	color: var(--zm-sp-p);
}

.zm-sp-keys {
	display: grid;
	gap: 10px;
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
}

.zm-sp-keys li {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13.5px;
	line-height: 1.8;
}

.zm-sp-keys li::before {
	content: "";
	flex: 0 0 20px;
	height: 20px;
	margin-top: 3px;
	background: color-mix(in srgb, var(--zm-sp-p) 12%, #ffffff);
	border-radius: 50%;
}

/* The tick inside the circle. */
.zm-sp-keys li::after {
	content: "";
	position: absolute;
	top: 10px;
	right: 6.5px;
	width: 7px;
	height: 4px;
	border-bottom: 1.8px solid var(--zm-sp-p);
	border-left: 1.8px solid var(--zm-sp-p);
	transform: rotate(-45deg);
}

.zm-sp-sum__excerpt {
	margin-bottom: 22px;
	font-size: 13.5px;
	line-height: 2;
}

.zm-sp-sum__excerpt > :last-child {
	margin-bottom: 0;
}

.zm-sp-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 22px;
}

.zm-sp-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 34px;
	padding: 0 14px;
	font-size: 12.5px;
	color: var(--zm-sp-d);
	background: var(--zm-sp-soft);
	border: 1px solid transparent;
	border-radius: 999px;
	transition: border-color 0.2s, color 0.2s;
}

a.zm-sp-chip:hover {
	color: var(--zm-sp-p);
	border-color: color-mix(in srgb, var(--zm-sp-p) 30%, transparent);
}

.zm-sp-chip .zm-sp-i {
	width: 15px;
	height: 15px;
	color: var(--zm-sp-p);
}

.zm-sp-chip--line {
	background: #ffffff;
	border-color: var(--zm-sp-b);
}

/* Option buttons of variable products */

.zm-sp-swatches {
	margin-bottom: 22px;
}

.zm-sp-swatches__current {
	font-weight: 500;
	color: var(--zm-sp-m);
}

.zm-sp-swatches__list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.zm-sp-swatch {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 92px;
	min-height: 54px;
	padding: 6px 14px;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.6;
	color: var(--zm-sp-d);
	background: #ffffff;
	border: 1.5px solid var(--zm-sp-b);
	border-radius: 18px;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.zm-sp-swatch small {
	font-size: 11px;
	font-weight: 400;
	color: var(--zm-sp-s);
}

.zm-sp-swatch:hover {
	border-color: color-mix(in srgb, var(--zm-sp-p) 40%, transparent);
}

.zm-sp-swatch[aria-pressed="true"] {
	background: color-mix(in srgb, var(--zm-sp-p) 3%, #ffffff);
	border-color: var(--zm-sp-p);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--zm-sp-p) 8%, transparent);
}

.zm-sp-swatch[aria-pressed="true"]::after {
	content: "";
	position: absolute;
	top: -7px;
	left: -7px;
	width: 18px;
	height: 18px;
	background: var(--zm-sp-p) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.3 2.6 2.5L14 7.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
	border-radius: 50%;
}

.zm-sp-swatch.is-out,
.zm-sp-swatch.is-off {
	color: var(--zm-sp-s);
	background: repeating-linear-gradient(-45deg, #fafbfc 0 6px, #f3f4f7 6px 12px);
}

.zm-sp-swatch.is-off {
	cursor: not-allowed;
}

.zm-sp-sum__extra:empty {
	display: none;
}

/* Buy box */

.zm-sp-buy {
	position: sticky;
	top: calc(var(--zm-sp-top) + 20px);
	padding: 24px;
	background: #ffffff;
	border: 1px solid var(--zm-sp-b);
	border-radius: 34px;
	box-shadow: 0 24px 60px rgba(28, 28, 37, 0.07);
	transition: top 0.3s var(--zm-sp-ease);
}

.zm-sp-stock {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 4px 10px;
	margin-bottom: 14px;
	font-size: 12.5px;
	color: var(--zm-sp-m);
}

.zm-sp-stock b {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: #0f8a5f;
}

.zm-sp-stock b::before {
	content: "";
	width: 8px;
	height: 8px;
	background: #19b37a;
	border-radius: 50%;
	box-shadow: 0 0 0 4px rgba(25, 179, 122, 0.15);
}

.zm-sp-stock--out b {
	color: var(--zm-color-sale, #e80c4a);
}

.zm-sp-stock--out b::before {
	background: var(--zm-color-sale, #e80c4a);
	box-shadow: 0 0 0 4px rgba(232, 12, 74, 0.12);
}

.zm-sp-stock--later b {
	color: #b77900;
}

.zm-sp-stock--later b::before {
	background: #f0a500;
	box-shadow: 0 0 0 4px rgba(240, 165, 0, 0.15);
}

.zm-sp-stock span {
	color: var(--zm-color-sale, #e80c4a);
}

.zm-sp-stock span:empty {
	display: none;
}

.zm-bprice {
	color: var(--zm-sp-d);
}

.zm-bprice__was {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--zm-sp-s);
}

.zm-bprice__was[hidden] {
	display: none;
}

.zm-bprice__off {
	padding: 1px 9px;
	font-size: 12px;
	font-weight: 700;
	color: #ffffff;
	background: var(--zm-color-sale, #e80c4a);
	border-radius: 999px;
}

.zm-bprice__now {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 2px;
}

.zm-bprice__now b {
	font-size: 28px;
	font-weight: 900;
	line-height: 1.4;
	letter-spacing: -0.5px;
}

.zm-bprice__from {
	font-size: 13px;
	color: var(--zm-sp-m);
}

.zm-bprice__now .zm-cur {
	font-size: 12px;
	color: var(--zm-sp-m);
}

.zm-bprice--none {
	font-size: 16px;
	font-weight: 700;
}

.zm-sp-buy .zm-ship {
	margin: 18px 0 0;
}

/* WooCommerce's add-to-cart forms, in the theme's style */

.zm-sp-buy__form {
	margin-top: 18px;
	container-type: inline-size;
}

.zm-sp-buy__form form.cart {
	margin: 0;
}

.zm-sp-buy__form form.cart:not(.variations_form):not(.grouped_form),
.zm-sp-buy__form .woocommerce-variation-add-to-cart {
	display: flex;
	gap: 10px;
}

.zm-sp-buy__form table.variations {
	width: 100%;
	margin-bottom: 14px;
	border-collapse: collapse;
}

.zm-sp--swatches form.variations_form table.variations {
	display: none;
}

.zm-sp-buy__form table.variations th,
.zm-sp-buy__form table.variations td {
	display: block;
	padding: 0 0 6px;
	font-size: 13px;
	text-align: right;
}

.zm-sp-buy__form table.variations select {
	width: 100%;
	height: 46px;
	padding: 0 14px;
	font: inherit;
	background: #ffffff;
	border: 1.5px solid var(--zm-sp-b);
	border-radius: 16px;
}

.zm-sp-buy__form .woocommerce-variation-price,
.zm-sp-buy__form .woocommerce-variation-availability {
	display: none;
}

.zm-sp-buy__form .woocommerce-variation-description {
	margin-bottom: 12px;
	font-size: 12.5px;
	line-height: 1.9;
	color: var(--zm-sp-m);
}

.zm-sp-buy__form .woocommerce-variation-description > :last-child {
	margin-bottom: 0;
}

.zm-sp-buy__form .single_variation:empty {
	display: none;
}

.zm-sp-buy__form .quantity {
	display: flex;
	flex: 0 0 112px;
	align-items: center;
	justify-content: space-between;
	height: 54px;
	padding: 0 8px;
	border: 1.5px solid var(--zm-sp-b);
	border-radius: 999px;
}

.zm-sp-buy__form .quantity:has(input[type="hidden"]),
.zm-sp-buy__form .quantity.hidden {
	display: none;
}

.zm-sp-buy__form .quantity .qty {
	width: 34px;
	min-width: 0;
	height: 100%;
	padding: 0;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	color: var(--zm-sp-d);
	text-align: center;
	background: transparent;
	border: 0;
	-moz-appearance: textfield;
	appearance: textfield;
}

.zm-sp-buy__form .quantity .qty::-webkit-inner-spin-button,
.zm-sp-buy__form .quantity .qty::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.zm-sp-buy__form .quantity .qty:focus {
	outline: none;
}

.zm-sp-qty-btn {
	display: grid;
	flex: 0 0 30px;
	place-items: center;
	height: 30px;
	padding: 0;
	font: inherit;
	font-size: 18px;
	line-height: 1;
	color: var(--zm-sp-d);
	background: var(--zm-sp-soft);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

.zm-sp-qty-btn:hover {
	color: #ffffff;
	background: var(--zm-sp-p);
}

.zm-sp-qty-btn:disabled {
	opacity: 0.4;
	pointer-events: none;
}

/* ":not(#zm-sp)" only makes these rules stronger than WooCommerce's own button styles. */
.zm-sp-buy__form .single_add_to_cart_button:not(#zm-sp),
.zm-sp-add {
	float: none;
	margin: 0;
	text-shadow: none;
	position: relative;
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	min-width: 0;
	height: 54px;
	padding: 0 22px 0 60px;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	color: #ffffff;
	white-space: nowrap;
	text-decoration: none;
	background: linear-gradient(135deg, var(--zm-sp-a), color-mix(in srgb, var(--zm-sp-a) 40%, var(--zm-sp-p)));
	border: 0;
	border-radius: 999px;
	box-shadow: 0 14px 30px color-mix(in srgb, var(--zm-sp-a) 32%, transparent);
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

/* Dark circle with the basket, at the end of the button. */
.zm-sp-buy__form .single_add_to_cart_button::after {
	content: "";
	position: absolute;
	top: 6px;
	left: 6px;
	width: 42px;
	height: 42px;
	background: var(--zm-sp-d) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 9.5h17l-1.5 8.2a2.5 2.5 0 0 1-2.46 2.05H7.46A2.5 2.5 0 0 1 5 17.7L3.5 9.5Z'/%3E%3Cpath d='M7.5 9.5c0-3 2-5.3 4.5-5.3s4.5 2.3 4.5 5.3'/%3E%3Cpath d='M9.6 13.4v2.8m4.8-2.8v2.8'/%3E%3C/svg%3E") center / 20px no-repeat;
	border-radius: 50%;
}

.zm-sp-add i {
	position: absolute;
	top: 6px;
	left: 6px;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	background: var(--zm-sp-d);
	border-radius: 50%;
}

.zm-sp-buy__form .single_add_to_cart_button:not(#zm-sp):hover,
.zm-sp-add:hover {
	color: #ffffff;
	background: linear-gradient(135deg, var(--zm-sp-a), color-mix(in srgb, var(--zm-sp-a) 40%, var(--zm-sp-p)));
	transform: translateY(-2px);
	box-shadow: 0 18px 34px color-mix(in srgb, var(--zm-sp-a) 40%, transparent);
}

.zm-sp-buy__form .single_add_to_cart_button:not(#zm-sp).disabled,
.zm-sp-buy__form .single_add_to_cart_button:not(#zm-sp):disabled {
	color: #ffffff;
	background: linear-gradient(135deg, var(--zm-sp-a), color-mix(in srgb, var(--zm-sp-a) 40%, var(--zm-sp-p)));
	padding: 0 22px 0 60px;
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
}

.zm-sp-buy__form .single_add_to_cart_button.loading {
	opacity: 0.7;
}

/* Grouped products */
.zm-sp-buy__form .woocommerce-grouped-product-list {
	width: 100%;
	margin-bottom: 14px;
	font-size: 13px;
	border-collapse: collapse;
}

.zm-sp-buy__form .woocommerce-grouped-product-list td {
	padding: 10px 4px;
	vertical-align: middle;
	border-bottom: 1px dashed var(--zm-sp-b);
}

.zm-sp-buy__form .woocommerce-grouped-product-list .quantity {
	flex-basis: auto;
	width: 104px;
	height: 44px;
}

.zm-sp-buy__form .grouped_form .single_add_to_cart_button {
	width: 100%;
}

.zm-sp-trust {
	display: grid;
	gap: 12px;
	margin: 20px 0 0;
	padding: 18px 0 0;
	list-style: none;
	border-top: 1px dashed #dfe1ea;
}

.zm-sp-trust li {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 12.5px;
	line-height: 1.7;
	color: var(--zm-sp-d);
}

.zm-sp-trust .zm-sp-i {
	width: 22px;
	height: 22px;
	color: var(--zm-sp-p);
}

.zm-sp-trust small {
	display: block;
	font-size: 11px;
	color: var(--zm-sp-s);
}

/* ---------- Sections ---------- */

.zm-sp__sec {
	margin-top: 64px;
	scroll-margin-top: calc(var(--zm-sp-top) + 96px);
}

.zm-sp .zm-stitle {
	margin-bottom: 26px;
}

/* One sparkle per page is enough: the side stars of the titles are left out here. */
.zm-sp .zm-stitle__sparks {
	display: none;
}

/* Passport */

.zm-sp-pass__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.zm-sp-pcard {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 92px;
	padding: 16px 18px;
	background: #ffffff;
	border: 1px solid var(--zm-sp-b);
	border-radius: 26px;
	transition: border-color 0.25s, box-shadow 0.25s;
}

.zm-sp-pcard:hover {
	border-color: color-mix(in srgb, var(--zm-sp-p) 20%, transparent);
	box-shadow: 0 16px 34px rgba(28, 28, 37, 0.05);
}

.zm-sp-pcard__icon {
	display: grid;
	flex: 0 0 50px;
	place-items: center;
	height: 50px;
	color: var(--zm-sp-p);
	background: var(--zm-sp-soft);
	border-radius: 16px;
}

.zm-sp-pcard__icon .zm-sp-i {
	width: 24px;
	height: 24px;
}

.zm-sp-pcard__body {
	min-width: 0;
}

.zm-sp-pcard__label {
	display: block;
	font-size: 12px;
	color: var(--zm-sp-s);
}

.zm-sp-pcard__value {
	display: block;
	margin-top: 3px;
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.7;
	color: var(--zm-sp-d);
}

a.zm-sp-pcard__value:hover {
	color: var(--zm-sp-p);
}

.zm-sp-pcard__tag {
	display: inline-block;
	margin-top: 6px;
	padding: 2px 10px;
	font-size: 11px;
	font-weight: 600;
	color: #0f8a5f;
	background: #e5f7ef;
	border-radius: 999px;
}

.zm-sp-pcard__tag--warn {
	color: #9a6200;
	background: #fff4d6;
}

.zm-sp-pcard--irc {
	grid-column: span 2;
}

.zm-sp-pcard__code {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 3px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 1px;
	color: var(--zm-sp-d);
}

.zm-sp-pcard__code button {
	position: relative;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	padding: 0;
	color: var(--zm-sp-p);
	background: var(--zm-sp-soft);
	border: 0;
	border-radius: 9px;
	cursor: pointer;
}

.zm-sp-pcard__code .zm-sp-i {
	width: 16px;
	height: 16px;
}

.zm-sp-pcard__copied {
	font-family: var(--zm-font-body, inherit);
	letter-spacing: 0;
}

.zm-sp-pcard__link {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 6px;
	height: 36px;
	margin-inline-start: auto;
	padding: 0 14px;
	font-size: 12px;
	white-space: nowrap;
	color: var(--zm-sp-p);
	background: #ffffff;
	border: 1px solid color-mix(in srgb, var(--zm-sp-p) 22%, transparent);
	border-radius: 999px;
	transition: background 0.2s, color 0.2s;
}

.zm-sp-pcard__link:hover {
	color: #ffffff;
	background: var(--zm-sp-p);
}

.zm-sp-pcard__link .zm-sp-i {
	width: 15px;
	height: 15px;
}

/* Section menu */

.zm-sp-nav {
	position: sticky;
	top: calc(var(--zm-sp-top) + 10px);
	z-index: 20;
	margin-top: 64px;
	transition: top 0.3s var(--zm-sp-ease);
}

.zm-sp-nav__inner {
	display: flex;
	gap: 6px;
	padding: 8px;
	overflow-x: auto;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid var(--zm-sp-b);
	border-radius: 999px;
	box-shadow: 0 10px 30px rgba(28, 28, 37, 0.04);
	backdrop-filter: blur(10px);
	scrollbar-width: none;
}

.zm-sp-nav__inner::-webkit-scrollbar {
	display: none;
}

.zm-sp-nav a {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 8px;
	height: 44px;
	padding: 0 22px;
	font-size: 14px;
	color: var(--zm-sp-m);
	border-radius: 999px;
	transition: background 0.25s, color 0.25s;
}

.zm-sp-nav a:hover {
	color: var(--zm-sp-d);
}

.zm-sp-nav a.is-active {
	font-weight: 600;
	color: #ffffff;
	background: var(--zm-sp-d);
}

.zm-sp-nav small {
	padding: 1px 8px;
	font-size: 11px;
	color: var(--zm-sp-p);
	background: var(--zm-sp-soft);
	border-radius: 999px;
}

.zm-sp-nav a.is-active small {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.18);
}

.zm-sp-nav + .zm-sp__sec {
	margin-top: 34px;
}

/* Description, ingredients and usage */

.zm-sp-intro {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 34px;
	align-items: start;
}

.zm-sp-intro--single {
	grid-template-columns: minmax(0, 1fr);
}

.zm-sp-intro__main {
	display: grid;
	gap: 30px;
	padding: 34px 40px;
	background: #ffffff;
	border: 1px solid var(--zm-sp-b);
	border-radius: 32px;
	box-shadow: 0 20px 50px rgba(28, 28, 37, 0.05);
}

.zm-sp-copy,
.zm-sp-usage {
	scroll-margin-top: calc(var(--zm-sp-top) + 96px);
}

.zm-sp-copy__title {
	margin: 0 0 12px;
	font-size: 17px;
	font-weight: 800;
	color: var(--zm-sp-d);
}

.zm-sp-copy__text {
	font-size: 14.5px;
	line-height: 2.1;
	text-align: justify;
}

.zm-sp-copy__text > :first-child {
	margin-top: 0;
}

.zm-sp-copy__text > :last-child {
	margin-bottom: 0;
}

.zm-sp-copy__text p {
	margin: 0 0 14px;
}

.zm-sp-copy__text img {
	max-width: 100%;
	height: auto;
	border-radius: 24px;
}

.zm-sp-copy__text h2,
.zm-sp-copy__text h3,
.zm-sp-copy__text h4 {
	margin: 24px 0 10px;
	font-size: 16px;
	color: var(--zm-sp-d);
}

.zm-sp-copy__text a {
	color: var(--zm-sp-p);
}

.zm-sp-ing {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 6px 0 18px;
}

.zm-sp-ing a {
	display: inline-flex;
	flex-direction: column;
	padding: 10px 16px;
	font-size: 13px;
	font-weight: 700;
	color: var(--zm-sp-d);
	background: linear-gradient(135deg, var(--zm-sp-soft), color-mix(in srgb, var(--zm-sp-a) 4%, #ffffff));
	border: 1px solid transparent;
	border-radius: 18px;
	transition: border-color 0.2s;
}

.zm-sp-ing a:hover {
	border-color: color-mix(in srgb, var(--zm-sp-p) 25%, transparent);
}

.zm-sp-ing small {
	font-size: 11px;
	font-weight: 400;
	color: var(--zm-sp-m);
}

.zm-sp-inci__label {
	margin: 0 0 8px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--zm-sp-m);
}

.zm-sp-inci {
	margin: 0;
	padding: 16px 18px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 12px;
	line-height: 1.9;
	color: var(--zm-sp-m);
	text-align: left;
	overflow-wrap: anywhere;
	background: #fafbfc;
	border: 1px dashed #e1e3ea;
	border-radius: 18px;
}

.zm-sp-usage {
	display: grid;
	gap: 16px;
	align-content: start;
}

.zm-sp-intro__side .zm-sp-usage {
	position: sticky;
	top: calc(var(--zm-sp-top) + 96px);
}

.zm-sp-usage__card {
	padding: 22px;
	background: #ffffff;
	border: 1px solid var(--zm-sp-b);
	border-radius: 28px;
}

.zm-sp-usage__card .zm-sp-h {
	margin-bottom: 18px;
	font-size: 15px;
}

.zm-sp-usage__one {
	margin: 0;
	font-size: 13px;
	line-height: 1.9;
}

.zm-sp-steps {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: zm-step;
}

.zm-sp-steps li {
	position: relative;
	padding: 3px 44px 18px 0;
	font-size: 13px;
	line-height: 1.9;
	counter-increment: zm-step;
}

.zm-sp-steps li:last-child {
	padding-bottom: 0;
}

.zm-sp-steps li::before {
	content: counter(zm-step, persian);
	position: absolute;
	top: 0;
	right: 0;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	font-weight: 700;
	color: #ffffff;
	background: var(--zm-sp-p);
	border-radius: 50%;
	box-shadow: 0 6px 14px color-mix(in srgb, var(--zm-sp-p) 30%, transparent);
}

.zm-sp-steps li:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 34px;
	right: 14.5px;
	bottom: 4px;
	border-right: 1.5px dashed color-mix(in srgb, var(--zm-sp-p) 25%, #ffffff);
}

.zm-sp-warn {
	display: flex;
	gap: 12px;
	padding: 16px 18px;
	font-size: 12.5px;
	line-height: 1.9;
	color: #7a5600;
	background: #fff7e0;
	border-radius: 22px;
}

.zm-sp-warn .zm-sp-i {
	width: 22px;
	height: 22px;
	color: #e0a100;
}

.zm-sp-warn b {
	display: block;
	margin-bottom: 2px;
}

.zm-sp-warn p {
	margin: 0;
}

/* Other tabs (details, reviews, questions…) under the section title */

.zm-sp-tab .zm-rv__heading,
.zm-sp-tab .zm-qa__heading {
	display: none;
}

.zm-sp-tab .woocommerce-product-attributes {
	width: 100%;
	margin: 0;
	overflow: hidden;
	font-size: 13.5px;
	border: 1px solid var(--zm-sp-b);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 24px;
}

.zm-sp-tab .woocommerce-product-attributes th,
.zm-sp-tab .woocommerce-product-attributes td {
	padding: 14px 20px;
	text-align: right;
	vertical-align: top;
	border-bottom: 1px solid var(--zm-sp-b);
}

.zm-sp-tab .woocommerce-product-attributes tr:last-child th,
.zm-sp-tab .woocommerce-product-attributes tr:last-child td {
	border-bottom: 0;
}

.zm-sp-tab .woocommerce-product-attributes th {
	width: 30%;
	font-weight: 600;
	color: var(--zm-sp-m);
	background: #fafbfc;
}

.zm-sp-tab .woocommerce-product-attributes td p {
	margin: 0;
}

/* Related products: the page already sets the width. */
.zm-sp .zm-sp-related {
	width: 100%;
	margin-inline: 0;
	margin-bottom: 0;
}

/* Phone buy bar */

.zm-sp-bar {
	display: none;
}

/* ---------- Narrow desktops ---------- */

@media (max-width: 1200px) {
	.zm-sp__top {
		grid-template-columns: 400px minmax(0, 1fr) 320px;
		gap: 26px;
	}

	.zm-sp-buy {
		padding: 20px;
	}
}

@media (max-width: 1100px) {
	.zm-sp__top {
		grid-template-columns: 360px minmax(0, 1fr) 300px;
		gap: 22px;
	}

	.zm-sp-pass__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* ---------- Tablets ---------- */

@media (max-width: 991px) {
	.zm-sp__top {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 24px;
	}

	.zm-sp-gal {
		grid-column: 1;
		grid-row: 1 / span 2;
	}

	.zm-sp-buy {
		position: static;
		grid-column: 2;
	}

	.zm-sp-pass__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.zm-sp-intro {
		grid-template-columns: minmax(0, 1fr);
	}

	.zm-sp-intro__side .zm-sp-usage {
		position: static;
	}

	.zm-sp__sec,
	.zm-sp-nav {
		margin-top: 52px;
	}

	.zm-sp-bar {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 90;
		display: flex;
		align-items: center;
		gap: 14px;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		background: rgba(255, 255, 255, 0.96);
		border-top: 1px solid var(--zm-sp-b);
		box-shadow: 0 -10px 30px rgba(28, 28, 37, 0.08);
		transform: translateY(110%);
		transition: transform 0.35s var(--zm-sp-ease);
		backdrop-filter: blur(10px);
	}

	.zm-sp-bar.is-shown {
		transform: none;
	}

	.zm-sp-bar__btn {
		flex: 1;
		height: 50px;
	}

	.zm-sp-bar__btn i {
		top: 4px;
		left: 4px;
	}

	.zm-sp-bar__btn .zm-sp-i {
		width: 20px;
		height: 20px;
		color: #ffffff;
	}

	.zm-sp-bar__price .zm-bprice__was {
		font-size: 11px;
	}

	.zm-sp-bar__price .zm-bprice__off {
		font-size: 10.5px;
	}

	.zm-sp-bar__price .zm-bprice__now b {
		font-size: 19px;
	}

	.zm-sp-bar__price .zm-bprice__from {
		font-size: 11px;
	}

	body.zm-has-buybar {
		padding-bottom: calc(72px + env(safe-area-inset-bottom));
	}
}

/* ---------- Phones ---------- */

@media (max-width: 767px) {
	.zm-crumbs {
		padding: 12px 0 14px;
		font-size: 12px;
	}

	.zm-sp__top {
		grid-template-columns: minmax(0, 1fr);
		gap: 22px;
	}

	.zm-sp-gal,
	.zm-sp-buy {
		grid-column: auto;
		grid-row: auto;
	}

	.zm-sp-gal__stage {
		border-radius: 30px;
	}

	.zm-sp-gal__badges {
		top: 16px;
		right: 16px;
	}

	.zm-sp-gal__tools {
		top: 16px;
		left: 16px;
	}

	.zm-sp-gal__tool {
		width: 40px;
		height: 40px;
	}

	.zm-sp-gal__zoom {
		bottom: 14px;
		left: 16px;
		width: 36px;
		padding: 0;
		justify-content: center;
	}

	.zm-sp-gal__zoom span {
		display: none;
	}

	.zm-sp-gal__count {
		right: 16px;
		bottom: 14px;
		display: block;
	}

	.zm-sp-gal__thumbs {
		display: none;
	}

	.zm-sp-sum__title {
		margin-top: 14px;
		font-size: 19px;
	}

	.zm-sp-swatches__list {
		flex-wrap: nowrap;
		margin-inline: -16px;
		padding: 8px 16px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.zm-sp-swatch {
		flex: 0 0 auto;
	}

	.zm-sp-buy {
		padding: 20px 18px;
		border-radius: 28px;
	}

	.zm-sp-buy__form .quantity {
		flex-basis: 104px;
	}

	.zm-sp__sec,
	.zm-sp-nav {
		margin-top: 44px;
	}

	.zm-sp-pcard {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
		min-height: 0;
		padding: 14px;
		border-radius: 22px;
	}

	.zm-sp-pcard__icon {
		flex-basis: 40px;
		width: 40px;
		height: 40px;
		border-radius: 12px;
	}

	.zm-sp-pcard__icon .zm-sp-i {
		width: 20px;
		height: 20px;
	}

	.zm-sp-pcard__value {
		font-size: 12.5px;
	}

	.zm-sp-pcard__code {
		font-size: 13px;
	}

	.zm-sp-pcard__link {
		margin-inline-start: 0;
	}

	.zm-sp-nav {
		top: var(--zm-sp-top);
		margin-inline: -16px;
	}

	.zm-sp-nav__inner {
		padding: 8px 16px;
		border-inline: 0;
		border-radius: 0;
	}

	.zm-sp-nav a {
		height: 40px;
		padding: 0 16px;
		font-size: 13px;
	}

	.zm-sp-copy__text {
		font-size: 14px;
		text-align: right;
	}

	.zm-sp-tab .woocommerce-product-attributes th,
	.zm-sp-tab .woocommerce-product-attributes td {
		padding: 12px 14px;
	}

	.zm-sp-lb__stage {
		inset: 60px 0;
	}

	.zm-sp-lb__img {
		border-radius: 0;
	}

	.zm-sp-lb__prev,
	.zm-sp-lb__next {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.zm-sp-gal__spark {
		animation: none;
	}

	.zm-sp-gal__slide img,
	.zm-sp-lb__img,
	.zm-sp-bar {
		transition: none;
	}
}






/* ---------- Over WooCommerce's default styles ----------
 * WooCommerce's stylesheet styles the same elements with stronger selectors
 * (".woocommerce div.product …"); these rules win over it. */

/* ":not(#zm-sp)" beats WooCommerce's "#content div.product div.summary { width: 48% }". */
.zm-sp.product .zm-sp-sum.summary.entry-summary:not(#zm-sp) {
	float: none;
	width: auto;
	margin: 0;
	clear: none;
}

.zm-sp .zm-sp-sum h1.zm-sp-sum__title {
	margin: 18px 0 6px;
	padding: 0;
	clear: none;
}

.woocommerce-breadcrumb.zm-crumbs {
	margin: 0;
	padding: 22px 0 26px;
	font-size: 13px;
	color: var(--zm-color-heading, #1c1c25);
}

.woocommerce-breadcrumb.zm-crumbs a {
	color: var(--zm-color-muted, #707486);
}

.woocommerce-breadcrumb.zm-crumbs a:hover {
	color: var(--zm-color-primary, #732bed);
}

.zm-sp .zm-sp-buy__form form.cart {
	margin: 0;
}

.zm-sp .zm-sp-buy__form form.cart div.quantity {
	float: none;
	margin: 0;
}

.zm-sp .zm-sp-gal__thumb img,
.zm-sp .zm-sp-brand__logo img {
	max-width: none;
	height: 100%;
}

.zm-sp .zm-sp-tab table.woocommerce-product-attributes {
	margin: 0;
	border: 1px solid var(--zm-sp-b);
}

.zm-sp .zm-sp-tab table.woocommerce-product-attributes tr th,
.zm-sp .zm-sp-tab table.woocommerce-product-attributes tr td {
	padding: 14px 20px;
	font-style: normal;
	line-height: 1.8;
	background: #ffffff;
	border-top: 0;
	border-bottom: 1px solid var(--zm-sp-b);
}

.zm-sp .zm-sp-tab table.woocommerce-product-attributes tr th {
	width: 30%;
	font-weight: 600;
	color: var(--zm-sp-m);
	background: #fafbfc;
}

.zm-sp .zm-sp-tab table.woocommerce-product-attributes tr:last-child th,
.zm-sp .zm-sp-tab table.woocommerce-product-attributes tr:last-child td {
	border-bottom: 0;
}

.zm-sp .zm-sp-tab table.woocommerce-product-attributes tr td p {
	margin: 0;
	padding: 0;
}

@media (max-width: 767px) {
	.woocommerce-breadcrumb.zm-crumbs {
		padding: 12px 0 14px;
		font-size: 12px;
	}

	.zm-sp .zm-sp-sum h1.zm-sp-sum__title {
		margin-top: 14px;
	}

	.zm-sp .zm-sp-gal__slide img {
		border-width: 5px;
		border-radius: 24px;
	}

	.zm-sp .zm-sp-tab table.woocommerce-product-attributes tr th,
	.zm-sp .zm-sp-tab table.woocommerce-product-attributes tr td {
		padding: 12px 14px;
	}
}




/* In a narrow buy box the quantity gets a row of its own, so the button has room for its text. */
@container (max-width: 340px) {
	.zm-sp-buy__form form.cart:not(.variations_form):not(.grouped_form),
	.zm-sp-buy__form .woocommerce-variation-add-to-cart {
		flex-direction: column;
	}

	.zm-sp .zm-sp-buy__form form.cart div.quantity {
		flex: 0 0 auto;
		width: 100%;
		height: 50px;
		padding: 0 10px;
	}

	.zm-sp .zm-sp-buy__form .single_add_to_cart_button:not(#zm-sp) {
		flex: 0 0 auto;
		width: 100%;
	}
}

/* Short description: three lines, then "ادامه‌ی توضیحات". */
.zm-sp-excerpt {
	position: relative;
	margin-bottom: 22px;
}

.zm-sp-excerpt__text {
	font-size: 13.5px;
	line-height: 2;
	color: var(--zm-sp-t);
}

.zm-sp-excerpt__text > * {
	margin: 0 0 8px;
}

.zm-sp-excerpt__text > :last-child {
	margin-bottom: 0;
}

.zm-sp-excerpt.is-clamped:not(.is-open) .zm-sp-excerpt__text {
	max-height: 6em;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(#000 55%, transparent);
	mask-image: linear-gradient(#000 55%, transparent);
}

.zm-sp-excerpt__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 4px;
	padding: 0;
	font: inherit;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--zm-sp-p);
	background: none;
	border: 0;
	cursor: pointer;
}

.zm-sp-excerpt__more::after {
	content: "";
	width: 6px;
	height: 6px;
	border-bottom: 1.6px solid currentColor;
	border-left: 1.6px solid currentColor;
	transform: translateY(-2px) rotate(-45deg);
	transition: transform 0.25s;
}

.zm-sp-excerpt.is-open .zm-sp-excerpt__more::after {
	transform: translateY(2px) rotate(135deg);
}

@media (max-width: 767px) {
	.zm-sp-intro__main {
		padding: 22px 18px;
		border-radius: 26px;
	}
}






/* ---------- Share menu ---------- */

.zm-sp-share {
	position: absolute;
	top: 0;
	left: calc(100% + 10px);
	z-index: 5;
	width: 196px;
	padding: 8px;
	background: #ffffff;
	border: 1px solid var(--zm-sp-b);
	border-radius: 22px;
	box-shadow: 0 22px 50px rgba(28, 28, 37, 0.14);
	transform-origin: left top;
	animation: zm-sp-pop 0.25s var(--zm-sp-ease);
}

.zm-sp-share[hidden] {
	display: none;
}

@keyframes zm-sp-pop {
	from {
		opacity: 0;
		transform: scale(0.92);
	}
}

.zm-sp-share__title {
	margin: 4px 10px 6px;
	font-size: 11.5px;
	color: var(--zm-sp-s);
}

.zm-sp-share__item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	height: 42px;
	padding: 0 8px;
	font: inherit;
	font-size: 13px;
	color: var(--zm-sp-d);
	text-align: right;
	background: none;
	border: 0;
	border-radius: 14px;
	cursor: pointer;
	transition: background 0.2s;
}

.zm-sp-share__item b {
	font-weight: inherit;
}

.zm-sp-share__item > span {
	display: grid;
	flex: 0 0 30px;
	place-items: center;
	height: 30px;
	color: var(--zm-share);
	background: color-mix(in srgb, var(--zm-share) 10%, #ffffff);
	border-radius: 10px;
}

.zm-sp-share__item .zm-sp-i {
	width: 17px;
	height: 17px;
}

.zm-sp-share__item:hover,
.zm-sp-share__item:focus-visible {
	background: #f6f7f9;
	outline: none;
}

.zm-sp-share__item.is-done {
	color: #0f8a5f;
}

/* ---------- Option buttons: clear choice and note ---------- */

.zm-sp-swatches__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
}

.zm-sp-swatches__foot:has(> :not([hidden])) {
	margin-top: 12px;
}

.zm-sp-swatches__hint {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 6px 12px;
	font-size: 12.5px;
	color: #b4083a;
	background: #fdecef;
	border-radius: 999px;
	animation: zm-sp-pop 0.25s var(--zm-sp-ease);
}

.zm-sp-swatches__hint[hidden],
.zm-sp-swatches__reset[hidden] {
	display: none;
}

.zm-sp-swatches__hint::before {
	content: "!";
	display: grid;
	flex: 0 0 18px;
	place-items: center;
	height: 18px;
	font-size: 11px;
	font-weight: 800;
	color: #ffffff;
	background: var(--zm-color-sale, #e80c4a);
	border-radius: 50%;
}

.zm-sp-swatches__reset {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	font: inherit;
	font-size: 12px;
	color: var(--zm-sp-m);
	background: none;
	border: 0;
	cursor: pointer;
}

.zm-sp-swatches__reset::before {
	content: "×";
	display: grid;
	place-items: center;
	width: 18px;
	height: 18px;
	font-size: 14px;
	line-height: 1;
	background: #f1f2f5;
	border-radius: 50%;
}

.zm-sp-swatches__reset:hover {
	color: var(--zm-color-sale, #e80c4a);
}

.zm-sp-swatches.is-needed .zm-sp-swatch:not(.is-off) {
	border-color: color-mix(in srgb, var(--zm-color-sale, #e80c4a) 45%, transparent);
}

.zm-sp-swatches.is-needed .zm-sp-swatches__list {
	animation: zm-sp-shake 0.45s ease;
}

@keyframes zm-sp-shake {
	20%,
	60% {
		transform: translateX(-5px);
	}

	40%,
	80% {
		transform: translateX(5px);
	}
}

/* ---------- Inside the buy box ---------- */

/* "This combination is not available" from WooCommerce, smaller than other notices. */
.zm-sp-buy :is(.woocommerce-info, .woocommerce-error, .woocommerce-message):not(#zm-notice) {
	margin: 0 0 12px;
	padding: 10px 12px;
	padding-inline-start: 48px;
	font-size: 12px;
	line-height: 1.8;
	border-radius: 16px;
	box-shadow: none;
}

.zm-sp-buy :is(.woocommerce-info, .woocommerce-error, .woocommerce-message):not(#zm-notice)::before {
	inset-inline-start: 11px;
	width: 26px;
	height: 26px;
	background-size: 14px;
}

/* Grouped products */
.zm-sp-buy__form .woocommerce-grouped-product-list-item__label a {
	font-weight: 600;
	color: var(--zm-sp-d);
}

.zm-sp-buy__form .woocommerce-grouped-product-list-item__label a:hover {
	color: var(--zm-sp-p);
}

.zm-sp-buy__form .woocommerce-grouped-product-list-item__price {
	font-size: 12.5px;
	font-weight: 700;
	white-space: nowrap;
	color: var(--zm-sp-d);
}

.zm-sp-buy__form .woocommerce-grouped-product-list-item__price del {
	display: block;
	font-size: 11px;
	font-weight: 400;
	color: var(--zm-sp-s);
}

.zm-sp-buy__form .woocommerce-grouped-product-list-item__price ins {
	text-decoration: none;
}

.zm-sp-buy__form .woocommerce-grouped-product-list .stock {
	margin: 2px 0 0;
	font-size: 11px;
}

.zm-sp-buy__form .woocommerce-grouped-product-list input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: var(--zm-sp-p);
}

.zm-sp-buy__form .woocommerce-grouped-product-list .button:not(#zm-sp) {
	float: none;
	padding: 8px 14px;
	font-size: 12px;
	color: var(--zm-sp-p);
	background: var(--zm-sp-soft);
	border-radius: 999px;
}

/* ---------- Description content: lists, tables, quotes, videos ---------- */

.zm-sp-copy__text ul,
.zm-sp-copy__text ol,
.zm-sp-excerpt__text ul,
.zm-sp-excerpt__text ol {
	margin: 0 0 14px;
	padding-inline-start: 22px;
}

.zm-sp-copy__text li,
.zm-sp-excerpt__text li {
	margin-bottom: 6px;
}

.zm-sp-copy__text li::marker,
.zm-sp-excerpt__text li::marker {
	color: var(--zm-sp-p);
}

.zm-sp-copy__text strong,
.zm-sp-copy__text b {
	color: var(--zm-sp-d);
}

.zm-sp-copy__text blockquote {
	margin: 18px 0;
	padding: 14px 20px;
	font-style: normal;
	color: var(--zm-sp-d);
	background: var(--zm-sp-soft);
	border: 0;
	border-inline-start: 4px solid var(--zm-sp-p);
	border-radius: 18px;
	border-start-start-radius: 4px;
	border-end-start-radius: 4px;
}

.zm-sp-copy__text blockquote > :last-child {
	margin-bottom: 0;
}

.zm-sp-copy__text table {
	width: 100%;
	margin: 0 0 16px;
	overflow: hidden;
	font-size: 13px;
	border: 1px solid var(--zm-sp-b);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 18px;
}

.zm-sp-copy__text th,
.zm-sp-copy__text td {
	padding: 10px 14px;
	text-align: right;
	border-bottom: 1px solid var(--zm-sp-b);
}

.zm-sp-copy__text tr:last-child > * {
	border-bottom: 0;
}

.zm-sp-copy__text th {
	font-weight: 600;
	color: var(--zm-sp-d);
	background: #fafbfc;
}

.zm-sp-copy__text figure {
	max-width: 100%;
	margin: 0 0 16px;
}

.zm-sp-copy__text figcaption {
	margin-top: 6px;
	font-size: 12px;
	color: var(--zm-sp-s);
	text-align: center;
}

.zm-sp-copy__text iframe,
.zm-sp-copy__text video {
	display: block;
	max-width: 100%;
	border: 0;
	border-radius: 20px;
}

.zm-sp-copy__text hr {
	margin: 22px 0;
	border: 0;
	border-top: 1px dashed #dfe1ea;
}

/* ---------- Keyboard focus ---------- */

.zm-sp :is(a, button, select, input, textarea, [tabindex]):focus-visible {
	outline: 2px solid var(--zm-sp-p);
	outline-offset: 2px;
}

@media (max-width: 767px) {
	.zm-sp-share {
		width: 180px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.zm-sp-share,
	.zm-sp-swatches__hint,
	.zm-sp-swatches.is-needed .zm-sp-swatches__list {
		animation: none;
	}
}




/* ---------- Add to cart without reloading ---------- */

/* While adding: the dark circle turns into a spinner (also over WooCommerce's own "loading" icon). */
.zm-sp-buy__form .single_add_to_cart_button:not(#zm-sp).loading {
	opacity: 0.85;
	cursor: progress;
}

.zm-sp-buy__form .single_add_to_cart_button:not(#zm-sp).loading::after {
	content: "";
	top: 6px;
	right: auto;
	left: 6px;
	font-family: inherit;
	background: var(--zm-sp-d) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 4a8 8 0 1 0 8 8'/%3E%3C/svg%3E") center / 22px no-repeat;
	animation: zm-sp-spin 0.8s linear infinite;
}

/* Added: a tick for a moment. */
.zm-sp-buy__form .single_add_to_cart_button:not(#zm-sp).is-added::after {
	background: #12a372 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 20px no-repeat;
	animation: zm-sp-pop 0.3s var(--zm-sp-ease);
}

@keyframes zm-sp-spin {
	to {
		transform: rotate(360deg);
	}
}

.zm-sp-bar.is-busy .zm-sp-bar__btn {
	opacity: 0.7;
	pointer-events: none;
}

/* Floating notices: top of the screen on desktops, above the buy bar on phones. */
.zm-sp-toast {
	position: fixed;
	top: 20px;
	left: 50%;
	z-index: 1000;
	width: min(560px, calc(100% - 32px));
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translate(-50%, -16px);
	transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.3s;
}

.zm-sp-toast.is-shown {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translate(-50%, 0);
}

.zm-sp-toast :is(.woocommerce-message, .woocommerce-info, .woocommerce-error):not(#zm-notice) {
	margin: 0 0 10px;
	cursor: pointer;
	box-shadow: 0 22px 50px rgba(28, 28, 37, 0.16);
}

@media (max-width: 991px) {
	.zm-sp-toast {
		top: auto;
		bottom: calc(86px + env(safe-area-inset-bottom));
		transform: translate(-50%, 16px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.zm-sp-buy__form .single_add_to_cart_button:not(#zm-sp).loading::after {
		animation-duration: 2s;
	}

	.zm-sp-toast {
		transition: none;
	}
}