/* =====================================================================
   Product card — one system for every page (components/product-card.jinja and createProductBox() in main.js).
   Loaded once in layout.jinja after style.css / site-chrome.css; every rule starts with .block-product.pc so the
   old card rules of style.css (which target the same hook classes) do not win. Sizes are the design's (local px:
   on zoomed pages they grow with the page).
   Merchant colours: card background (--product-card-bg), price colours (colors_productCard_*) when set, badge
   colours (--badge-*). The picture never has a background of its own.
   ===================================================================== */
.block-product.pc {
	--pc-ink: #121826;
	--pc-muted: #667085;
	--pc-line: #eceef2;
	--pc-accent: var(--primary-color, #3b82f6);
	--pc-btn: var(--btn-color, var(--primary-color, #3b82f6));
	--pc-soft: #f1f6fe;
	--pc-soft: color-mix(in srgb, var(--primary-color, #3b82f6) 7%, #fff);
	--pc-sale: var(--pc-set-sale, #c4302f);
	--pc-price: var(--pc-set-price, #121826);
	--pc-was: var(--pc-set-old, #667085);
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	height: 100%;
	margin: 0;
	padding: 8px;
	border: 0;
	border-radius: 20px;
	background-color: var(--product-card-bg, #ffffff);
	box-shadow: none;
	color: var(--pc-ink);
	text-align: start;
	overflow: visible;
}
.block-product.pc *,
.block-product.pc *::before,
.block-product.pc *::after {
	box-sizing: border-box;
}

/* ---------- picture: square, on the card's own colour ---------- */
.block-product.pc .pc-media {
	position: relative;
	flex: 0 0 auto;
	aspect-ratio: 1 / 1;
	border-radius: 14px;
	overflow: hidden;
	background: transparent;
}
.block-product.pc .pc-img-link {
	position: absolute;
	inset: 0;
	display: block;
}
.block-product.pc .pc-img {
	width: 100%;
	height: 100%;
	background-color: transparent;
	background-position: center;
	background-repeat: no-repeat;
	background-size: var(--card-image-size, contain);   /* the merchant's "product card image" setting */
	transition: opacity .3s;
}
.block-product.pc .pc-img.lazyload,
.block-product.pc .pc-img.lazyloading {
	opacity: .35;
	background-image: none;
}
.block-product.pc.product-item-out-of-stock .pc-img {
	opacity: .55;                       /* always when sold out, whatever the out-of-stock badge setting */
}
.block-product.pc.product-item-out-of-stock .pc-actions {
	opacity: .6;
}

/* badges: discount first, then the merchant's badge, pre-order, bundle offer (their own colours) */
.block-product.pc .pc-badges {
	position: absolute;
	top: 6px;
	inset-inline-start: 6px;
	inset-inline-end: 44px;
	bottom: auto;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 4px;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0;
	pointer-events: none;
}
.block-product.pc .pc-badges > * {
	pointer-events: auto;
}
.block-product.pc .pc-off,
.block-product.pc .pc-badges .product-badge,
.block-product.pc .pc-badges .preorder-badge,
.block-product.pc .pc-badges .bundle-offer-badge.bundle-offer-product-tag {
	position: static;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	max-width: 100%;
	height: 20px;
	margin: 0;
	padding: 0 7px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: var(--w-badge);
	line-height: 20px;                  /* the line box fills the badge: Arabic descenders (ج ي ع) are not cut by the
	                                       text's overflow (kept for the horizontal ellipsis) */
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transform: none;
}
/* badge colours (approved design): one style for every badge in every place (card, small, horizontal, single, quick
   view, product page): a light tint of the meaning colour, the text and icon in its dark shade; the colours are the
   --badge-* tokens (layout.jinja: the merchant's badge colours, else the design defaults, with their own dark-mode pair) */
:is(.block-product.pc .pc-badges, .pp-page .pp-media .label-block) :where(.pc-off, .product-badge, .preorder-badge, .bundle-offer-badge.bundle-offer-product-tag, .bundle-offer-section) {
	background-color: var(--badge-bg);
	background-image: none;             /* the old bundle gradient */
	color: var(--badge-color);
	box-shadow: none;
}
:is(.block-product.pc .pc-badges, .pp-page .pp-media .label-block) :is(.pc-off, .product-badge.on_sale),
.block-product.pc.pc--qv .qv-pct {
	background-color: var(--badge-onsale-bg);
	color: var(--badge-onsale-color);
}
:is(.block-product.pc .pc-badges, .pp-page .pp-media .label-block) .product-badge.featured_product {
	background-color: var(--badge-featured-bg);
	color: var(--badge-featured-color);
}
:is(.block-product.pc .pc-badges, .pp-page .pp-media .label-block) .product-badge.selling_fast {
	background-color: var(--badge-selling-bg);
	color: var(--badge-selling-color);
}
:is(.block-product.pc .pc-badges, .pp-page .pp-media .label-block) .product-badge.limited_quantity {
	background-color: var(--badge-limited-bg);
	color: var(--badge-limited-color);
}
:is(.block-product.pc .pc-badges, .pp-page .pp-media .label-block) .product-badge.free_shipping {
	background-color: var(--badge-shipping-bg);
	color: var(--badge-shipping-color);
}
:is(.block-product.pc .pc-badges, .pp-page .pp-media .label-block) .preorder-badge {
	background-color: var(--badge-preorder-bg);
	color: var(--badge-preorder-color);
}
:is(.block-product.pc .pc-badges, .pp-page .pp-media .label-block) :is(.bundle-offer-badge.bundle-offer-product-tag, .bundle-offer-section) {
	background-color: var(--badge-bundle-bg);
	color: var(--badge-bundle-color);
}
:is(.block-product.pc .pc-badges, .pp-page .pp-media .label-block) .product-badge.product-unavailable {
	background-color: var(--badge-outstock-bg);
	color: var(--badge-outstock-color);
}
:is(.block-product.pc .pc-badges, .pp-page .pp-media .label-block) :is(.pc-off, .product-badge, .preorder-badge, .bundle-offer-badge) svg.badge-ic {
	flex: 0 0 auto;
	width: 12px;
	height: 12px;
	color: inherit;
}
.block-product.pc .pc-badges .product-badge::before,
.block-product.pc .pc-badges .product-badge::after,
.block-product.pc .pc-badges .preorder-badge::before,
.block-product.pc .pc-badges .preorder-badge::after,
.block-product.pc .pc-badges .bundle-offer-badge::before,
.block-product.pc .pc-badges .bundle-offer-badge::after {
	display: none;                      /* the old curved tails (the curve setting draws its own, below) */
}
.block-product.pc .pc-off > span,
.block-product.pc .pc-badges .product-badge > span,
.block-product.pc .pc-badges .preorder-badge > span,
.block-product.pc .pc-badges .bundle-offer-badge > span {
	min-width: 0;
	font-weight: inherit;               /* the theme's * { font-weight } rule would make the inner text regular */
	overflow: hidden;
	text-overflow: ellipsis;
}
.block-product.pc .pc-badges .bundle-offer-badge:not(.bundle-offer-product-tag) {
	display: none;
}
body.card-badge-curve .block-product.pc .pc-badges :is(.product-badge, .preorder-badge, .bundle-offer-badge.bundle-offer-product-tag),
body.card-badge-curve .block-product.pc .pc-off {
	border-radius: 999px 999px 999px 4px;
}
html[dir="rtl"] body.card-badge-curve .block-product.pc .pc-badges :is(.product-badge, .preorder-badge, .bundle-offer-badge.bundle-offer-product-tag),
html[dir="rtl"] body.card-badge-curve .block-product.pc .pc-off {
	border-radius: 999px 999px 4px 999px;
}
body.card-badge-curve .pp-page .pp-media .label-block :is(.product-badge, .preorder-badge, .bundle-offer-section) {
	border-radius: 8px 8px 8px 2px;
}
html[dir="rtl"] body.card-badge-curve .pp-page .pp-media .label-block :is(.product-badge, .preorder-badge, .bundle-offer-section) {
	border-radius: 8px 8px 2px 8px;
}

/* wishlist and quick view on the picture */
.block-product.pc .pc-actions {
	position: absolute;
	top: 6px;
	inset-inline-end: 6px;
	z-index: 3;
	display: flex;
	flex-direction: column;
	gap: 5px;
}
.block-product.pc .pc-actions > button.pc-act {
	position: relative;
	inset: auto;                        /* the old wishlist offsets (top / end) */
	width: 30px;
	height: 30px;
	margin: 0;
	padding: 7px;                       /* centres the 16px icon also when Bootstrap's .d-block is on */
	border: 0;
	border-radius: 50%;
	background-color: #ffffff !important;   /* legacy !important (style.css: .block-product button.quick-view transparent) */
	color: var(--pc-ink);
	box-shadow: 0 1px 4px rgba(18, 24, 38, .1);
	line-height: 0;
	text-align: center;
	cursor: pointer;
}
.block-product.pc .pc-actions > button.pc-act.d-none {
	display: none;
}
.block-product.pc .pc-actions > button.pc-act.wishlist-buttons {
	box-shadow: 0 0 0 1px var(--pc-line), 0 1px 4px rgba(18, 24, 38, .08);
}
.block-product.pc .pc-act svg.ico {
	width: 16px;
	height: 16px;
	margin: 0;
	color: currentColor;
}
.block-product.pc .pc-actions > button.pc-qv {
	color: var(--pc-accent);
}
.block-product.pc .pc-act.wishlist-buttons .wl-on,
.block-product.pc .pc-act.wishlist-buttons.is-added .wl-off {
	display: none;
}
.block-product.pc .pc-act.wishlist-buttons.is-added .wl-on {
	display: inline-block;
	color: #e5484d;
}
.block-product.pc .pc-act .wishlist-progress {
	position: absolute;
	inset: 7px;
}
.block-product.pc .pc-act.is-loading svg.ico {
	opacity: .3;
}
.block-product.pc .pc-act:focus-visible,
.block-product.pc .pc-btn:focus-visible,
.block-product.pc .pc-name a:focus-visible {
	outline: 2px solid var(--pc-accent);
	outline-offset: 2px;
}

/* the offer's countdown, over the bottom of the picture (shown once the countdown has started) */
.block-product.pc .pc-timer:not(.timer-active) {
	display: none;
}
.block-product.pc .pc-timer {
	position: absolute;
	inset-inline: 6px;
	bottom: 6px;
	z-index: 2;
	margin: 0;
	padding: 0;
	background: none;
}
.block-product.pc .pc-timer .timer-label {
	display: flex;
	gap: 3px;
	margin: 0;
	padding: 0;
	background: none;
}
.block-product.pc .pc-timer .countdown-box {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 0;
	margin: 0;
	padding: 3px 0;
	border-radius: 8px;
	background-color: rgba(18, 24, 38, .82);
	color: #ffffff;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.25;
}
.block-product.pc .pc-timer .countdown-box::after {
	display: none;
}
.block-product.pc .pc-timer .time {
	display: flex;
	direction: ltr;
	color: inherit;
	font-size: inherit;
}
.block-product.pc .pc-timer .time > span {
	margin: 0;
	padding: 0;
	background: none;
	color: inherit;
	font-size: inherit;
}
.block-product.pc .pc-timer .countdown-label,
.block-product.pc .pc-timer .countdown-box-label {
	font-size: 7.5px;
	font-weight: 500;
	opacity: .8;
}

/* ---------- text ---------- */
.block-product.pc .pc-body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;        /* an old .product-details rule spreads the items */
	gap: 5px;
	min-width: 0;
	margin: 0;
	padding: 0 2px;
	text-align: start;
}
.block-product.pc .pc-name {
	margin: 0;
	padding: 0;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.5;
}
.block-product.pc .pc-name > a {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--pc-name-lines, 2);
	min-height: calc(1.5em * var(--pc-name-lines, 2));
	margin: 0;
	overflow: hidden;
	color: var(--pc-ink);
	font: inherit;
	text-decoration: none;
	overflow-wrap: anywhere;
}
.block-product.pc .pc-name > a:hover {
	color: var(--pc-accent);
}
.block-product.pc .pc-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 6px;
	margin: 0;
	padding: 0;
	line-height: 1.4;
}
/* each price stays whole: the old one then the new one on a line, or both on two lines in that order when they do not fit */
.block-product.pc .pc-was,
.block-product.pc .pc-now {
	white-space: nowrap;
}
.block-product.pc .pc-was {
	color: var(--pc-was);
	font-size: 11px;
	font-weight: 500;
	text-decoration: line-through;
}
.block-product.pc .pc-now {
	color: var(--pc-price);
	font-size: 15px;
	font-weight: 800;
}
.block-product.pc .pc-now.is-sale {
	color: var(--pc-sale);
}
.block-product.pc .pc-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	color: var(--pc-muted);
	font-size: 10.5px;
	line-height: 1.5;
}
.block-product.pc .pc-rate,
.block-product.pc .pc-sold {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	margin: 0;
	padding: 0;
	background: none;
	color: inherit;
	font-size: inherit;
	white-space: nowrap;
}
/* the numbers only (theme setting --w-stat): the rating and the sold count; «sold» keeps its weight */
.block-product.pc .pc-rate > b {
	color: var(--pc-ink);
	font-weight: var(--w-stat);
}
.block-product.pc .pc-sold > span > span {
	font-weight: var(--w-stat);
}
.block-product.pc .pc-star {
	color: #f5a524;
}
.block-product.pc .pc-sold svg.sold-ic {
	color: #e2622c;
}
.block-product.pc .pc-note {
	margin: 0;
	color: var(--pc-muted);
	font-size: 10.5px;
}
.block-product.pc .product-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0;
}
.block-product.pc .product-tags.d-none {
	display: none;
}
.block-product.pc .pc-low {
	display: flex;
	align-items: center;
	gap: 5px;
	color: #b45309;
	font-size: 10.5px;
	font-weight: 700;
}
.block-product.pc .pc-low-dot {
	flex: 0 0 6px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: #f59e0b;
}

/* ---------- options inside the card (setting on; main.js pcCards) ----------
   the area keeps the height of two option groups from the first paint, so neither the card nor its row jumps when
   the options arrive; a product with three or more options keeps the quick view (the area is removed) */
.block-product.pc .pc-opts {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 110px;
	margin: 0;
	padding: 0;
}
/* the reserve follows the option count when the product data gives it (one group / two groups) */
.block-product.pc .pc-opts--n1 {
	min-height: 51px;
}
.block-product.pc .pc-opts--n2 {
	min-height: 110px;
}
.block-product.pc .pc-opts.is-wait {
	border-radius: 10px;
	background: linear-gradient(90deg, #f5f6f8 0, #eef0f4 50%, #f5f6f8 100%) 0 0 / 200% 100%;
	animation: pc-wait 1.4s linear infinite;
	opacity: .6;
}
@keyframes pc-wait {
	to { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
	.block-product.pc .pc-opts.is-wait { animation: none; }
}
.block-product.pc .pc-og {
	min-width: 0;
	border-radius: 10px;
}
.block-product.pc .pc-og-head {
	display: flex;
	align-items: center;
	gap: 4px;
	min-width: 0;
	margin-bottom: 4px;
	color: var(--pc-muted);
	font-size: 10px;
	line-height: 1.5;
}
.block-product.pc .pc-og-head > b {
	min-width: 0;
	overflow: hidden;
	color: var(--pc-ink);
	font-weight: 800;
	text-overflow: ellipsis;
	white-space: nowrap;
}
/* colours */
.block-product.pc .pc-swatches {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px;
	padding: 3px;
}
.block-product.pc .pc-swatches > button.pc-sw {
	position: relative;
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: #eef0f4;
	background-position: center;
	background-size: cover;
	box-shadow: inset 0 0 0 1px rgba(18, 24, 38, .1);
	cursor: pointer;
	overflow: hidden;
}
.block-product.pc .pc-swatches > button.pc-sw[hidden] {
	display: none;
}
.block-product.pc .pc-swatches > button.pc-sw[aria-checked="true"] {
	box-shadow: 0 0 0 2px #ffffff, 0 0 0 3.5px var(--pc-accent);
	overflow: visible;
}
.block-product.pc .pc-swatches > button.pc-sw.is-out {
	opacity: .45;
}
.block-product.pc .pc-sw-x {
	display: none;
	position: absolute;
	top: 50%;
	inset-inline: -1px;
	height: 1.5px;
	background-color: #ffffff;
	transform: rotate(-45deg);
}
.block-product.pc .pc-sw.is-out .pc-sw-x {
	display: block;
}
.block-product.pc .pc-swatches > button.pc-sw-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 22px;
	margin: 0;
	padding: 0 6px;
	border: 0;
	border-radius: 999px;
	background-color: #f5f6f8;
	color: var(--pc-muted);
	font: inherit;
	font-size: 10px;
	font-weight: 800;
	direction: ltr;
	cursor: pointer;
}
/* text choices: chips */
.block-product.pc .pc-chips {
	display: flex;
	gap: 4px;
}
.block-product.pc .pc-chips > button.pc-chip {
	flex: 1 1 0;
	min-width: 0;
	height: 28px;
	margin: 0;
	padding: 0 4px;
	border: 0;
	border-radius: 9px;
	background-color: #f5f6f8;
	color: var(--pc-ink);
	font: inherit;
	font-size: 10.5px;
	font-weight: 700;
	overflow: hidden;
	white-space: nowrap;                /* never an ellipsis: a row that does not fit becomes a list box (main.js fitChips) */
	cursor: pointer;
}
.block-product.pc .pc-chips > button.pc-chip[aria-checked="true"] {
	background-color: var(--pc-soft);
	color: var(--pc-accent);
	box-shadow: inset 0 0 0 1.5px var(--pc-accent);
}
.block-product.pc .pc-chips > button.pc-chip.is-out {
	background-color: #ffffff;
	color: #b6bcc8;
	box-shadow: inset 0 0 0 1px var(--pc-line);
	text-decoration: line-through;
}
.block-product.pc .pc-chips > button.pc-chip.is-out[aria-checked="true"] {
	box-shadow: inset 0 0 0 1.5px var(--pc-accent);
}
/* text choices: the list box's button */
.block-product.pc .pc-og > button.pc-combo {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
	height: 32px;
	margin: 0;
	padding: 0 10px;
	border: 0;
	border-radius: 10px;
	background-color: #f5f6f8;
	color: var(--pc-muted);
	font: inherit;
	text-align: start;
	cursor: pointer;
}
.block-product.pc .pc-og > button.pc-combo[aria-expanded="true"] {
	box-shadow: inset 0 0 0 1.5px var(--pc-accent);
}
.block-product.pc .pc-og--list .pc-og-head > b {
	display: none;                      /* the list box shows the picked value */
}
.block-product.pc .pc-combo-val {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	font-size: 11px;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.block-product.pc .pc-combo-val.is-picked {
	color: var(--pc-ink);
	font-weight: 800;
}
.block-product.pc .pc-combo svg.pc-combo-ic {
	flex: 0 0 auto;
	color: var(--pc-muted);
	transition: transform .15s;
}
.block-product.pc .pc-combo[aria-expanded="true"] svg.pc-combo-ic {
	transform: rotate(180deg);
}
.block-product.pc .pc-sw:focus-visible,
.block-product.pc .pc-chip:focus-visible,
.block-product.pc .pc-combo:focus-visible,
.block-product.pc .pc-sw-more:focus-visible,
.block-product.pc .pc-step:focus-visible {
	outline: 2px solid var(--pc-accent);
	outline-offset: 2px;
}

/* the list box: one layer on <body> (no card overflow cuts it), sized with the page's zoom by the script */
.pc-listbox {
	position: fixed;
	z-index: 100001;                   /* above the quick view (100000) */
	max-height: 220px;
	margin: 0;
	padding: 4px;
	overflow-y: auto;
	border-radius: 12px;
	background-color: #ffffff;
	box-shadow: 0 8px 22px rgba(18, 24, 38, .14), 0 0 0 1px #eceef2;
	color: #121826;
	font-size: 11px;
	text-align: start;
	overscroll-behavior: contain;
}
.pc-listbox[hidden] {
	display: none;
}
.pc-listbox .pc-lb-opt {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 30px;
	padding: 0 10px;
	border-radius: 8px;
	font-weight: 500;
	cursor: pointer;
}
.pc-listbox .pc-lb-opt > span {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.pc-listbox .pc-lb-opt.is-active {
	background-color: #f5f6f8;
}
.pc-listbox .pc-lb-opt.is-on {
	background-color: #f1f6fe;
	background-color: color-mix(in srgb, var(--primary-color, #3b82f6) 7%, #fff);
	color: var(--primary-color, #3b82f6);
	font-weight: 800;
}
.pc-listbox .pc-lb-opt.is-out {
	color: #b6bcc8;
}
.pc-listbox .pc-lb-opt small {
	flex: 0 0 auto;
	font-size: 9px;
}
.pc-listbox svg.pc-lb-ic {
	flex: 0 0 auto;
	color: currentColor;
}

/* ---------- after adding: the quantity stepper in the button's place ---------- */
.block-product.pc .pc-cta > .pc-btn[hidden] {
	display: none;
}
.block-product.pc .pc-stepper {
	display: flex;
	align-items: center;
	width: 100%;
	height: 38px;
	padding: 0 4px;
	border-radius: 13px;
	background-color: var(--pc-soft);
}
.block-product.pc .pc-stepper.is-busy {
	opacity: .6;
	pointer-events: none;
}
.block-product.pc .pc-stepper > button.pc-step {
	flex: 0 0 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background-color: #ffffff;
	color: var(--pc-ink);
	cursor: pointer;
}
.block-product.pc .pc-stepper > button.pc-step-plus {
	background-color: var(--pc-btn);
	color: #ffffff;
}
.block-product.pc .pc-stepper > button.pc-step-minus.is-remove {
	color: #c4302f;
}
.block-product.pc .pc-stepper svg.ico {
	width: 16px;
	height: 16px;
	color: currentColor;
}
.block-product.pc .pc-step-n {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	color: var(--pc-accent);
	font-size: 12px;
	font-weight: 800;
	text-align: center;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ---------- the button (state) ---------- */
.block-product.pc .pc-cta {
	display: flex;
	margin: auto 0 0;
	padding: 3px 0 0;
}
.block-product.pc .pc-cta > button.pc-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	min-width: 0;
	height: 38px;
	margin: 0;
	padding: 0 8px;
	border: 0;
	border-radius: 13px;
	background-color: var(--pc-btn) !important;   /* legacy !important (style.css: .block-product button.quick-cart) */
	color: #ffffff;
	font: inherit;
	font-size: 12px !important;                  /* legacy !important (same rule) */
	font-weight: var(--w-btn);
	line-height: 1;
	white-space: nowrap;
	box-shadow: none;
	cursor: pointer;
}
.block-product.pc .pc-cta > button.pc-btn > span {
	color: inherit;
	font-weight: inherit;               /* an old rule sets 400 on the text of quick-view / notify-me buttons */
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}
.block-product.pc .pc-btn svg.ico {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	color: currentColor;
}
.block-product.pc .pc-cta > button.pc-btn.is-options {
	background-color: var(--pc-soft) !important;
	color: var(--pc-accent);
}
.block-product.pc .pc-cta > button.pc-btn.is-preorder {
	background-color: #121826 !important;
	color: #ffffff;
}
.block-product.pc .pc-cta > button.pc-btn.is-notify {
	background-color: #f5f6f8 !important;
	color: var(--pc-ink);
}
.block-product.pc .pc-cta > button.pc-btn:disabled {
	cursor: default;
	opacity: .7;
}
.block-product.pc .pc-btn .loader-icon {
	margin: 0;
}


/* =====================================================================
   Small card (.pc--sm): sliders of small cards (products-slider-small, the categories page rows, "complete your
   order" in the cart). Picture, name on one line, price; a round button over the picture's edge (add / options =
   quick view / pre-order / notify), which grows into a small stepper after adding; colour dots and their count.
   ===================================================================== */
.block-product.pc.pc--sm {
	gap: 6px;
	padding: 6px;
	border-radius: 18px;
}
.block-product.pc.pc--sm .pc-media {
	border-radius: 13px;
}
.block-product.pc.pc--sm .pc-badges {
	top: 5px;
	inset-inline-start: 5px;
	inset-inline-end: 36px;
}
.block-product.pc.pc--sm .pc-actions {
	top: 5px;
	inset-inline-end: 5px;
	gap: 4px;
}
.block-product.pc.pc--sm .pc-actions > button.pc-act {
	width: 26px;
	height: 26px;
	padding: 5px;
}
.block-product.pc.pc--sm .pc-act .wishlist-progress {
	inset: 5px;
}
.block-product.pc.pc--sm .pc-cta {
	position: relative;
	z-index: 3;
	display: flex;
	justify-content: flex-end;
	height: 0;
	margin: 0;
	padding: 0 6px;
}
.block-product.pc.pc--sm .pc-cta > button.pc-btn {
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	margin-top: -22px;
	padding: 0;
	border-radius: 50%;
	box-shadow: 0 0 0 3px var(--product-card-bg, #ffffff);
}
.block-product.pc.pc--sm .pc-cta > button.pc-btn.is-options,
.block-product.pc.pc--sm .pc-cta > button.pc-btn.is-notify {
	background-color: #ffffff !important;   /* legacy !important (the old .quick-cart / .quick-view backgrounds) */
	color: var(--pc-accent);
	box-shadow: 0 0 0 1px var(--pc-line), 0 1px 4px rgba(18, 24, 38, .08);
}
.block-product.pc.pc--sm .pc-cta > button.pc-btn.is-notify {
	color: var(--pc-ink);
}
.block-product.pc.pc--sm .pc-body {
	gap: 4px;
	padding: 2px;
}
.block-product.pc.pc--sm .pc-name {
	font-size: 11.5px;
}
.block-product.pc.pc--sm .pc-name > a {
	display: block;
	min-height: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.block-product.pc.pc--sm .pc-was {
	font-size: 10px;
}
.block-product.pc.pc--sm .pc-now {
	font-size: 13.5px;
}
/* colour dots: their row keeps its height from the first paint */
.block-product.pc.pc--sm .pc-dots {
	display: flex;
	align-items: center;
	gap: 3px;
	height: 14px;
	min-width: 0;
	overflow: hidden;
}
.block-product.pc.pc--sm .pc-dots.is-wait {
	width: 60%;
	border-radius: 7px;
	background-color: #f5f6f8;
}
.block-product.pc.pc--sm .pc-dot-c {
	flex: 0 0 10px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: #eef0f4;
	background-position: center;
	background-size: cover;
	box-shadow: inset 0 0 0 1px rgba(18, 24, 38, .1);
}
.block-product.pc.pc--sm .pc-dots-n {
	min-width: 0;
	margin-inline-start: 2px;
	overflow: hidden;
	color: var(--pc-muted);
	font-size: 9.5px;
	text-overflow: ellipsis;
	white-space: nowrap;
}
/* the small stepper: the round button grows into a pill (- N +) */
.block-product.pc.pc--sm .pc-stepper {
	gap: 2px;
	width: auto;
	height: 32px;
	margin-top: -22px;
	padding: 0 3px;
	border-radius: 999px;
	background-color: var(--pc-btn);
	box-shadow: 0 0 0 3px var(--product-card-bg, #ffffff);
	color: #ffffff;
}
.block-product.pc.pc--sm .pc-stepper > button.pc-step {
	flex: 0 0 26px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: transparent;
	color: #ffffff;
}
.block-product.pc.pc--sm .pc-stepper > button.pc-step-minus.is-remove {
	color: #ffffff;
}
.block-product.pc.pc--sm .pc-step-n {
	flex: 0 0 auto;
	min-width: 16px;
	color: #ffffff;
	font-size: 12px;
}
.block-product.pc.pc--sm .pc-stepper svg.ico {
	width: 14px;
	height: 14px;
}

/* =====================================================================
   Horizontal card (.pc--hor, products-grid-hor): picture (92) on one side, text beside it, a square button (42)
   at the far end; one option group inline (small colour circles or a compact list box); after adding the button
   becomes a vertical stepper. Scoped to .pc--hor only: the cart page's .products-hor-list keeps its own look.
   ===================================================================== */
.block-product.pc.pc--hor {
	flex-direction: row;
	align-items: center;
	gap: 10px;
	width: 100%;                        /* one per row; the wide home sets its columns */
	height: auto;
	padding: 8px;
	border-radius: 20px;
}
.block-product.pc.pc--hor .pc-media {
	flex: 0 0 92px;
	width: 92px;
}
.block-product.pc.pc--hor .pc-badges {
	top: 5px;
	inset-inline-start: 5px;
	inset-inline-end: 5px;
}
.block-product.pc.pc--hor .pc-off,
.block-product.pc.pc--hor .pc-badges .product-badge,
.block-product.pc.pc--hor .pc-badges .preorder-badge,
.block-product.pc.pc--hor .pc-badges .bundle-offer-badge.bundle-offer-product-tag {
	height: 18px;
	padding: 0 6px;
	font-size: 9.5px;
	line-height: 18px;
}
/* the far end: wishlist and quick view, small and stacked, beside the add button (nothing on the picture but the
   badges); the card keeps its height (two 28px buttons and a 6px gap fit the 92px picture) */
.block-product.pc.pc--hor .pc-end {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 6px;
	align-self: center;
}
.block-product.pc.pc--hor .pc-end > .pc-actions {
	position: static;
	inset: auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	width: auto;
	height: auto;
	margin: 0;
	pointer-events: auto;
}
.block-product.pc.pc--hor .pc-end > .pc-actions > button.pc-act {
	position: static;
	width: 28px;
	height: 28px;
	margin: 0;
	padding: 6.5px;                     /* centres the 15px icon (also with Bootstrap's .d-block) */
	box-shadow: none;
	background-color: var(--pc-soft) !important;   /* over the white of the picture buttons */
}
.block-product.pc.pc--hor .pc-end > .pc-actions > button.pc-act svg.ico {
	width: 15px;
	height: 15px;
}
.block-product.pc.pc--hor .pc-end > .pc-actions > button.pc-act.d-none {
	display: none;
}
.block-product.pc.pc--hor .pc-body {
	flex: 1 1 auto;
	height: auto;
	gap: 4px;
	padding: 0;
}
.block-product.pc.pc--hor .pc-name > a {
	display: block;
	min-height: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.block-product.pc.pc--hor .pc-now {
	font-size: 14.5px;
}
.block-product.pc.pc--hor .pc-opts {
	gap: 4px;
	min-height: 28px;
	margin-top: 2px;
}
.block-product.pc.pc--hor .pc-opts.is-wait {
	max-width: 150px;
}
.block-product.pc.pc--hor .pc-og-head {
	display: none;                      /* the circles / the box name the option themselves */
}
.block-product.pc.pc--hor .pc-swatches {
	gap: 5px;
}
.block-product.pc.pc--hor .pc-swatches > button.pc-sw {
	flex-basis: 18px;
	width: 18px;
	height: 18px;
}
.block-product.pc.pc--hor .pc-swatches > button.pc-sw-more {
	height: 18px;
}
.block-product.pc.pc--hor .pc-og > button.pc-combo {
	max-width: 150px;
	height: 28px;
}
.block-product.pc.pc--hor .pc-cta {
	flex: 0 0 42px;
	align-self: center;
	margin: 0;
	padding: 0;
}
.block-product.pc.pc--hor .pc-cta > button.pc-btn {
	width: 42px;
	height: 42px;
	padding: 0;
	border-radius: 14px;
}
.block-product.pc.pc--hor .pc-cta > button.pc-btn.is-options {
	background-color: var(--pc-soft) !important;   /* legacy !important (same as the regular button) */
}
/* the vertical stepper: + on top, the number, - (or the bin) below */
.block-product.pc.pc--hor .pc-stepper {
	flex-direction: column-reverse;
	gap: 0;
	width: 42px;
	height: auto;
	padding: 3px 0;
	border-radius: 14px;
}
.block-product.pc.pc--hor .pc-stepper > button.pc-step {
	flex: 0 0 26px;
	width: 30px;
	height: 26px;
	border-radius: 9px;
}
.block-product.pc.pc--hor .pc-step-n {
	flex: 0 0 auto;
	font-size: 12px;
	line-height: 22px;
}
.block-product.pc.pc--hor.product-item-out-of-stock .pc-media {
	opacity: .55;
}
.block-product.pc.pc--hor.product-item-out-of-stock .pc-img {
	opacity: 1;
}

/* =====================================================================
   Single-product module (.pc--one, sections/single-product.jinja): a big gallery with dots, the badges and the
   wishlist on it (no quick view), name, price with «وفّر», rating and sold count, the offer's countdown, every
   option, the low-stock line, the quantity and a button that carries the price, then the product page link.
   Phones: one column; 768px and up (without the merchant's side image): the gallery beside the text.
   The section around it (background, ticker, title, side image, spaces) is home-page.css.
   ===================================================================== */
.block-product.pc.pc--one {
	gap: 12px;
	height: auto;
	padding: 12px;
	border-radius: 26px;
}
.block-product.pc.pc--one .pc-media {
	border-radius: 20px;
}
.block-product.pc.pc--one .pc-gallery {
	position: absolute;
	inset: 0;
	margin: 0;
	overflow: hidden;
}
.block-product.pc.pc--one .pc-gallery .swiper-wrapper,
.block-product.pc.pc--one .pc-gallery .swiper-slide {
	height: 100%;
}
.block-product.pc.pc--one .pc-gallery .pc-img {
	position: relative;
	cursor: pointer;
}
.block-product.pc.pc--one .pc-gallery .product-video .pc-img {
	cursor: default;
}
.block-product.pc.pc--one .pc-gallery .play-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: rgba(18, 24, 38, .55);
	color: #ffffff;
	transform: translate(-50%, -50%);
	cursor: pointer;
}
.block-product.pc.pc--one .pc-gal-dots {
	position: absolute;
	bottom: 12px;
	left: 0;
	right: 0;
	z-index: 2;
	display: flex;
	justify-content: center;
	gap: 4px;
	pointer-events: none;
}
.block-product.pc.pc--one .pc-gal-dots .pc-gal-dot {
	width: 6px;
	height: 6px;
	border-radius: 6px;
	background-color: #d5dae3;
	transition: width .2s, background-color .2s;
	pointer-events: auto;
}
.block-product.pc.pc--one .pc-gal-dots .pc-gal-dot.is-on {
	width: 16px;
	background-color: var(--pc-accent);
}
.block-product.pc.pc--one .pc-badges {
	top: 10px;
	inset-inline-start: 10px;
	inset-inline-end: 56px;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 5px;
}
.block-product.pc.pc--one .pc-actions {
	top: 10px;
	inset-inline-end: 10px;
}
.block-product.pc.pc--one .pc-actions > button.pc-act {
	width: 36px;
	height: 36px;
	padding: 10px;
}

/* text */
.block-product.pc.pc--one .pc-body {
	container: pc-one / inline-size;    /* narrow text column (beside the merchant's side image): see the end */
	gap: 12px;
	padding: 0;
}
.block-product.pc.pc--one .pc-name {
	display: block;                     /* an old rule makes it a centred flex box */
	font-size: 17px;
	font-weight: 800;
	text-align: start;
}
.block-product.pc.pc--one .pc-name > a {
	-webkit-line-clamp: 2;
	min-height: 0;
}
.block-product.pc.pc--one .pc-price-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin-top: 4px;
}
.block-product.pc.pc--one .pc-was {
	font-size: 16px;
}
.block-product.pc.pc--one .pc-now {
	font-size: 22px;
}
.block-product.pc.pc--one .pc-save {
	display: inline-flex;
	align-items: center;
	height: 22px;
	padding: 0 8px;
	border-radius: 999px;
	background-color: #e8f6ec;
	color: #15803d;
	font-size: 10.5px;
	font-weight: var(--w-badge);
	white-space: nowrap;
}
.block-product.pc.pc--one .pc-save[hidden] {
	display: none;
}
.block-product.pc.pc--one .pc-meta {
	margin-top: 6px;
}

/* the offer's countdown: a pale red strip with dark boxes (shown once the countdown has started) */
.block-product.pc.pc--one .pc-timer {
	position: static;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 16px;
	background-color: #fdecec;
}
.block-product.pc.pc--one .pc-timer:not(.timer-active) {
	display: none;
}
.block-product.pc.pc--one .pc-timer-t {
	flex: 1 1 auto;
	min-width: 0;
	color: #c4302f;
	font-size: 11.5px;
	font-weight: 800;
	line-height: 1.4;
}
.block-product.pc.pc--one .pc-timer .timer-label {
	flex: 0 0 auto;
	flex-direction: row;                /* the old countdown rules: full width, reversed */
	gap: 4px;
	width: auto;
	min-width: 0;
	justify-content: flex-end;
}
.block-product.pc.pc--one .pc-timer .countdown-box {
	flex: 0 0 auto;
	min-width: 40px;
	padding: 5px 0;
	border-radius: 11px;
	background-color: #121826;
	font-size: 14px;
	line-height: 1.2;
}
.block-product.pc.pc--one .pc-timer .countdown-label,
.block-product.pc.pc--one .pc-timer .countdown-box-label {
	font-size: 8.5px;
	opacity: .75;
}

/* every option: colours full width, text groups two in a row */
.block-product.pc.pc--one .pc-opts {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 12px 10px;
	min-height: 51px;
}
.block-product.pc.pc--one .pc-og {
	flex: 1 1 calc(50% - 5px);
	min-width: 130px;
}
.block-product.pc.pc--one .pc-og:has(.pc-swatches) {
	flex-basis: 100%;
}
.block-product.pc.pc--one .pc-swatches {
	gap: 10px;
}
.block-product.pc.pc--one .pc-swatches > button.pc-sw {
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
}
.block-product.pc.pc--one .pc-swatches > button.pc-sw-more {
	height: 30px;
	padding: 0 9px;
	font-size: 11px;
}
.block-product.pc.pc--one .pc-chips {
	gap: 6px;
}
.block-product.pc.pc--one .pc-chips > button.pc-chip {
	height: 36px;
	font-size: 11.5px;
}
.block-product.pc.pc--one .pc-og > button.pc-combo {
	height: 36px;
	padding: 0 10px;
}
.block-product.pc.pc--one .pc-combo-val {
	font-size: 11px;
}


/* the quantity and the button with the price */
.block-product.pc.pc--one .pc-cta {
	gap: 8px;
	margin: 0;
	padding: 0;
}
.block-product.pc.pc--one .pc-qty {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	height: 46px;
	padding: 0 4px;
	border-radius: 15px;
	background-color: #f5f6f8;
}
.block-product.pc.pc--one .pc-qty[hidden] {
	display: none;
}
.block-product.pc.pc--one .pc-qty > button.pc-qty-b {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 11px;
	background-color: #ffffff;
	color: var(--pc-ink);
	cursor: pointer;
}
.block-product.pc.pc--one .pc-qty > button.pc-qty-b:disabled {
	color: #b6bcc8;
	cursor: default;
}
.block-product.pc.pc--one .pc-qty > button.pc-qty-b:focus-visible {
	outline: 2px solid var(--pc-accent);
	outline-offset: 1px;
}
.block-product.pc.pc--one .pc-qty-n {
	width: 28px;
	color: var(--pc-ink);
	font-size: 13px;
	text-align: center;
}
.block-product.pc.pc--one .pc-cta > .pc-btn.pc-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 auto;
	gap: 8px;
	width: auto;
	min-width: 0;
	height: 46px;
	padding: 0 12px;
	border-radius: 15px;
	font-size: 13.5px !important;       /* legacy !important (style.css: .block-product button.quick-cart) */
	font-weight: var(--w-btn);
	text-decoration: none;
}
.block-product.pc.pc--one .pc-cta > a.pc-btn {
	background-color: var(--pc-soft);
	color: var(--pc-accent);
}
.block-product.pc.pc--one .pc-btn-price {
	flex: 0 1 auto;
	min-width: 0;
	overflow: hidden;
	font-weight: 600;
	opacity: .85;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.block-product.pc.pc--one .pc-btn-price[hidden] {
	display: none;
}
.block-product.pc.pc--one .pc-page-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	align-self: center;
	color: var(--pc-accent);
	font-size: 12px;
	font-weight: 800;
	text-decoration: none;
}
.block-product.pc.pc--one .pc-page-link:hover {
	text-decoration: underline;
}
.block-product.pc.pc--one .pc-page-link:focus-visible {
	outline: 2px solid var(--pc-accent);
	outline-offset: 2px;
	border-radius: 6px;
}

/* a narrow text column (the module beside the merchant's side image on tablet / desktop, very small phones): the
   timer's label above its boxes, the quantity above the button */
@container pc-one (max-width: 299.98px) {
	.block-product.pc.pc--one .pc-timer {
		flex-direction: column;
		align-items: stretch;
		gap: 6px;
	}
	.block-product.pc.pc--one .pc-timer-t {
		text-align: center;
	}
	.block-product.pc.pc--one .pc-timer .timer-label {
		justify-content: center;
	}
	.block-product.pc.pc--one .pc-cta {
		flex-wrap: wrap;
	}
	.block-product.pc.pc--one .pc-qty {
		flex: 1 1 100%;
		justify-content: space-between;
	}
	.block-product.pc.pc--one .pc-cta > .pc-btn.pc-btn {
		flex: 1 1 100%;
	}
}
@container pc-one (max-width: 199.98px) {
	.block-product.pc.pc--one .pc-timer .timer-label {
		gap: 2px;
	}
	.block-product.pc.pc--one .pc-timer .countdown-box {
		min-width: 0;
		flex: 1 1 0;
	}
	.block-product.pc.pc--one .pc-cta > .pc-btn.pc-btn {
		padding: 0 6px;
		font-size: 12px !important;     /* legacy !important (style.css: .block-product button.quick-cart) */
	}
}

/* tablet / desktop without the merchant's side image: the gallery beside the text */
@media (min-width: 768px) {
	.single-product:not(.with-desktop-image) .block-product.pc.pc--one {
		flex-direction: row;
		align-items: center;
		gap: 22px;
		padding: 14px;
		border-radius: 28px;
	}
	.single-product:not(.with-desktop-image) .block-product.pc.pc--one .pc-media {
		flex: 0 0 47%;
		width: 47%;
	}
	.single-product:not(.with-desktop-image) .block-product.pc.pc--one .pc-body {
		flex: 1 1 auto;
		justify-content: center;
	}
	.single-product:not(.with-desktop-image) .block-product.pc.pc--one .pc-name {
		font-size: 21px;
	}
}

/* =====================================================================
   Quick view (components/quickview-drawer.jinja + main.js pcCards quick view): the card's fifth shape .pc--qv in a
   sheet from the bottom (phones) or a dialog in the middle (768px and up). Real pixels (outside the zoomed page).
   The bottom bar stays at the bottom, the content scrolls above it.
   ===================================================================== */
.quickview-drawer.qv .qv-scrim {
	background-color: rgb(18, 24, 38);
}
.quickview-drawer.qv.show .qv-scrim {
	opacity: .45;
}
.quickview-drawer.qv .qv-dialog {
	position: fixed;
	z-index: 100000;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	max-height: 92vh;
	max-height: 92dvh;
	border-radius: 26px 26px 0 0;
	background-color: #ffffff;
	overflow: hidden;
	visibility: hidden;
	transform: translate3d(0, 100%, 0);
	transition: transform .28s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .28s;
	outline: none;
}
.quickview-drawer.qv.show .qv-dialog {
	visibility: visible;
	transform: none;
	transition: transform .28s cubic-bezier(.2, .8, .2, 1), visibility 0s;
}
.quickview-drawer.qv .qv-container {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
}
@media (prefers-reduced-motion: reduce) {
	.quickview-drawer.qv .qv-dialog { transition: none; }
}

.block-product.pc.pc--qv {
	flex: 1 1 auto;
	min-height: 0;
	height: auto;
	gap: 0;
	padding: 0;
	border-radius: 0;
	background-color: #ffffff;
}
.block-product.pc.pc--qv .qv-head {
	flex: 0 0 auto;
	padding: 10px 16px 0;
	touch-action: none;                 /* the sheet is dragged from here only */
}
.block-product.pc.pc--qv .qv-handle {
	display: block;
	width: 40px;
	height: 4px;
	margin: 0 auto 12px;
	border-radius: 4px;
	background-color: #d5dae3;
	cursor: grab;
}
.block-product.pc.pc--qv .qv-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-bottom: 10px;
}
.block-product.pc.pc--qv .qv-flex {
	flex: 1 1 auto;
}
.block-product.pc.pc--qv .qv-badges {
	position: static;
	inset: auto;
	flex-direction: row;
	flex-wrap: wrap;
	min-width: 0;
	gap: 5px;
}
.block-product.pc.pc--qv .qv-badges > * {
	height: 24px;
	padding: 0 10px;
	font-size: 10.5px;
	line-height: 24px;
}
.block-product.pc.pc--qv .qv-badges-img {
	display: none;
}
.block-product.pc.pc--qv .qv-bar > button.pc-act.qv-act {
	position: relative;
	inset: auto;                        /* the old wishlist offsets */
	flex: 0 0 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: #f5f6f8;
	color: var(--pc-ink);
	box-shadow: 0 1px 4px rgba(18, 24, 38, .1);
	cursor: pointer;
}
.block-product.pc.pc--qv .qv-bar > button.pc-act.qv-act.d-none {
	display: none;
}
.block-product.pc.pc--qv .qv-bar > button.qv-x {
	box-shadow: none;
}
.block-product.pc.pc--qv .qv-bar > button.pc-act.qv-act:focus-visible {
	outline: 2px solid var(--pc-accent);
	outline-offset: 2px;
}

/* the scrolling part */
.block-product.pc.pc--qv .qv-main {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 0 16px 14px;
}
.block-product.pc.pc--qv .qv-media {
	aspect-ratio: auto;
	margin: 0 -16px 12px;
	border-radius: 0;
	overflow: visible;
}
.block-product.pc.pc--qv .qv-strip {
	display: flex;
	gap: 8px;
	padding: 0 16px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: 16px;
	scrollbar-width: none;
}
.block-product.pc.pc--qv .qv-strip::-webkit-scrollbar {
	display: none;
}
.block-product.pc.pc--qv .qv-slide {
	position: relative;
	flex: 0 0 150px;
	aspect-ratio: 1 / 1;
	border-radius: 18px;
	overflow: hidden;
	scroll-snap-align: start;
}
.block-product.pc.pc--qv .qv-slide > a {
	display: block;
	height: 100%;
}
.block-product.pc.pc--qv .qv-slide .play-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: rgba(18, 24, 38, .55);
	color: #ffffff;
	transform: translate(-50%, -50%);
	cursor: pointer;
}
.block-product.pc.pc--qv .qv-thumbs {
	display: none;
}

/* text */
.block-product.pc.pc--qv .qv-info {
	gap: 12px;
	padding: 0;
}
.block-product.pc.pc--qv .pc-name {
	display: block;
	margin: 0;
	color: var(--pc-ink);
	font-size: 16px;
	font-weight: 800;
	line-height: 1.5;
	text-align: start;
}
.block-product.pc.pc--qv .pc-price-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	margin-top: 2px;
}
.block-product.pc.pc--qv .pc-was {
	font-size: 13px;
}
.block-product.pc.pc--qv .pc-now {
	font-size: 22px;
}
.block-product.pc.pc--qv .qv-pct {
	display: inline-flex;
	align-items: center;
	height: 22px;
	line-height: 22px;
	padding: 0 8px;
	border-radius: 999px;
	font-size: 10.5px;
	font-weight: 800;
	white-space: nowrap;
}
.block-product.pc.pc--qv .qv-pct[hidden] {
	display: none;
}
.block-product.pc.pc--qv .pc-meta {
	gap: 6px;
	margin-top: 4px;
	font-size: 11.5px;
}
.block-product.pc.pc--qv .qv-count {
	margin-inline-start: 4px;
	color: var(--pc-muted);
	font-weight: 400;
}

/* options: colour circles, size buttons */
.block-product.pc.pc--qv .pc-opts {
	gap: 14px;
	min-height: 51px;
}
.block-product.pc.pc--qv .pc-og-head {
	gap: 6px;
	margin-bottom: 8px;
	color: var(--pc-ink);
	font-size: 12.5px;
	font-weight: 800;
}
.block-product.pc.pc--qv .pc-og-head > b {
	color: var(--pc-muted);
	font-weight: 600;
}
.block-product.pc.pc--qv .pc-swatches {
	gap: 12px;
	padding: 4px;
}
.block-product.pc.pc--qv .pc-swatches > button.pc-sw {
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
}
.block-product.pc.pc--qv .pc-swatches > button.pc-sw[aria-checked="true"] {
	box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--pc-accent);
}
.block-product.pc.pc--qv .pc-swatches > button.pc-sw-more {
	height: 34px;
	padding: 0 10px;
	font-size: 11px;
}
.block-product.pc.pc--qv .pc-chips {
	flex-wrap: wrap;
	gap: 6px;
}
.block-product.pc.pc--qv .pc-chips > button.pc-chip {
	flex: 0 0 auto;
	height: 38px;
	padding: 0 16px;
	border-radius: 12px;
	font-size: 12.5px;
}
.block-product.pc.pc--qv .pc-og > button.pc-combo {
	height: 38px;
	padding: 0 12px;
	border-radius: 12px;
}
.block-product.pc.pc--qv .pc-low {
	gap: 6px;
	font-size: 11.5px;
}
.block-product.pc.pc--qv .qv-desc {
	color: var(--pc-muted);
	font-size: 12px;
	line-height: 1.8;
	overflow-wrap: anywhere;
}
.block-product.pc.pc--qv .qv-desc > :first-child {
	margin-top: 0;
}
.block-product.pc.pc--qv .qv-desc > :last-child {
	margin-bottom: 0;
}
.block-product.pc.pc--qv .qv-desc img {
	max-width: 100%;
	height: auto;
}
.block-product.pc.pc--qv .pc-page-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	align-self: flex-start;
	color: var(--pc-accent);
	font-size: 12px;
	font-weight: 800;
	text-decoration: none;
}
.block-product.pc.pc--qv .pc-page-link:focus-visible {
	outline: 2px solid var(--pc-accent);
	outline-offset: 2px;
	border-radius: 6px;
}

/* the bottom bar: quantity + the button with the price (iOS safe area under it) */
.block-product.pc.pc--qv .qv-foot {
	flex: 0 0 auto;
	gap: 8px;
	margin: 0;
	padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
	background-color: #ffffff;
	box-shadow: 0 -1px 0 var(--pc-line);
}
.block-product.pc.pc--qv .pc-qty {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	height: 48px;
	padding: 0 4px;
	border-radius: 16px;
	background-color: #f5f6f8;
}
.block-product.pc.pc--qv .pc-qty[hidden] {
	display: none;
}
.block-product.pc.pc--qv .pc-qty > button.pc-qty-b {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background-color: #ffffff;
	color: var(--pc-ink);
	cursor: pointer;
}
.block-product.pc.pc--qv .pc-qty > button.pc-qty-b:disabled {
	color: #b6bcc8;
	cursor: default;
}
.block-product.pc.pc--qv .pc-qty > button.pc-qty-b:focus-visible {
	outline: 2px solid var(--pc-accent);
	outline-offset: 1px;
}
.block-product.pc.pc--qv .pc-qty-n {
	width: 30px;
	color: var(--pc-ink);
	font-size: 14px;
	text-align: center;
}
.block-product.pc.pc--qv .pc-cta > .pc-btn.pc-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 auto;
	gap: 8px;
	width: auto;
	min-width: 0;
	height: 48px;
	padding: 0 12px;
	border-radius: 16px;
	font-size: 13.5px !important;       /* legacy !important (style.css: .block-product button.quick-cart) */
	font-weight: var(--w-btn);
	text-decoration: none;
}
.block-product.pc.pc--qv .pc-cta > a.pc-btn {
	background-color: var(--pc-soft);
	color: var(--pc-accent);
}
.block-product.pc.pc--qv .pc-btn-price {
	flex: 0 1 auto;
	min-width: 0;
	overflow: hidden;
	font-weight: 600;
	opacity: .85;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.block-product.pc.pc--qv .pc-btn-price[hidden] {
	display: none;
}
/* the button that opened it, while the product loads */
.quick-view.is-loading {
	opacity: .55;
	pointer-events: none;
}

/* 768px and up: a dialog in the middle, the picture and its thumbnails beside the text */
@media (min-width: 768px) {
	.quickview-drawer.qv .qv-dialog {
		left: 50%;
		right: auto;
		top: 50%;
		bottom: auto;
		width: min(700px, calc(100vw - 48px));
		max-height: min(88vh, 720px);
		border-radius: 28px;
		opacity: 0;
		transform: translate(-50%, -48%) scale(.98);
		transition: opacity .22s, transform .22s, visibility 0s linear .22s;
	}
	.quickview-drawer.qv.show .qv-dialog {
		opacity: 1;
		transform: translate(-50%, -50%);
		transition: opacity .22s, transform .22s, visibility 0s;
	}
	.block-product.pc.pc--qv {
		display: grid;
		grid-template-columns: 300px minmax(0, 1fr);
		grid-template-rows: auto minmax(0, 1fr) auto;
		column-gap: 20px;
		padding: 18px;
	}
	.block-product.pc.pc--qv .qv-main {
		display: contents;
	}
	.block-product.pc.pc--qv .qv-head {
		grid-column: 2;
		grid-row: 1;
		padding: 0;
		touch-action: auto;
	}
	.block-product.pc.pc--qv .qv-handle,
	.block-product.pc.pc--qv .qv-bar > .qv-badges {
		display: none;
	}
	.block-product.pc.pc--qv .qv-bar {
		justify-content: flex-end;
		padding-bottom: 6px;
	}
	.block-product.pc.pc--qv .qv-media {
		grid-column: 1;
		grid-row: 1 / 3;
		align-self: start;
		position: relative;
		aspect-ratio: 1 / 1;
		margin: 0;
		border-radius: 22px;
		overflow: hidden;
	}
	.block-product.pc.pc--qv .qv-strip {
		height: 100%;
		gap: 0;
		padding: 0;
		scroll-padding-inline: 0;
	}
	.block-product.pc.pc--qv .qv-slide {
		flex: 0 0 100%;
		border-radius: 0;
	}
	.block-product.pc.pc--qv .qv-badges-img {
		position: absolute;
		top: 12px;
		inset-inline-start: 12px;
		inset-inline-end: 12px;
		z-index: 2;
		display: flex;
	}
	.block-product.pc.pc--qv .qv-thumbs {
		grid-column: 1;
		grid-row: 3;
		align-self: end;
		display: flex;
		gap: 8px;
		margin-top: 8px;
		padding: 2px;
		overflow-x: auto;
		scrollbar-width: none;
	}
	.block-product.pc.pc--qv .qv-thumb {
		flex: 0 0 56px;
		width: 56px;
		height: 56px;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 14px;
		background-color: #f5f6f8;
		background-position: center;
		background-repeat: no-repeat;
		background-size: var(--card-image-size, contain);
		cursor: pointer;
	}
	.block-product.pc.pc--qv .qv-thumb.is-on {
		box-shadow: 0 0 0 2px var(--pc-accent);
	}
	.block-product.pc.pc--qv .qv-thumb:focus-visible {
		outline: 2px solid var(--pc-accent);
		outline-offset: 2px;
	}
	.block-product.pc.pc--qv .qv-info {
		grid-column: 2;
		grid-row: 2;
		min-height: 0;
		overflow-y: auto;
		overscroll-behavior: contain;
		padding: 0 2px 8px;
	}
	.block-product.pc.pc--qv .qv-foot {
		grid-column: 2;
		grid-row: 3;
		padding: 12px 0 0;
		box-shadow: none;
	}
}
@media (min-width: 1200px) {
	.quickview-drawer.qv .qv-dialog {
		width: min(860px, calc(100vw - 48px));
		max-height: min(88vh, 780px);
	}
	.block-product.pc.pc--qv {
		grid-template-columns: 400px minmax(0, 1fr);
	}
}

/* quick view: long option names and values wrap instead of being cut (there is room in the sheet / dialog) */
.block-product.pc.pc--qv .pc-og-head {
	flex-wrap: wrap;
}
.block-product.pc.pc--qv .pc-og-head > b {
	white-space: normal;
	overflow-wrap: anywhere;
}
.block-product.pc.pc--qv .pc-og > button.pc-combo {
	height: auto;
	min-height: 38px;
	padding-top: 7px;
	padding-bottom: 7px;
}
.block-product.pc.pc--qv .pc-combo-val {
	white-space: normal;
	line-height: 1.45;
	overflow-wrap: anywhere;
}
.block-product.pc.pc--qv .pc-chips > button.pc-chip {
	max-width: 100%;
}

/* an option to choose first (main.js needChoice): the title in the store colour with "choose first", one short shake */
.block-product.pc .pc-og.un-need .pc-og-head,
.block-product.pc .pc-og.un-need .pc-og-head > b {
	color: var(--pc-accent);
}
