/* =====================================================================
   Unaizah Pro — Home page (redesign)
   Loaded from templates/home.jinja only. Every rule is scoped under
   body.home-view, so category / products / blog / product pages keep
   their current look (the product card is shared with them).
   Sizes are in px on purpose: the theme sets html{font-size:20px}
from 800px up, so rem values would grow on tablet / desktop.
   `!important` is only used where the overridden legacy rule has it
   (each one is marked with "legacy !important").
   Merchant settings that print inline styles (sizes, colours, spaces)
   still win over these defaults.
   ===================================================================== */

/* ---------- Tokens ---------- */
body.home-view {
	--hm-k: 1;
	/* type scale: mobile 1, tablet 1.06, desktop 1.15 */
	--hm-ink: #121826;
	--hm-muted: #667085;
	--hm-line: #eceef2;
	--hm-sub: #f5f6f8;
	--hm-chip: #eef0f4;
	--hm-tile: #eef1f5;
	/* empty / loading image tile */
	--hm-surface: #ffffff;
	--hm-cut: #e3e6ec;
	--hm-bg: var(--home-bg, #fafafa);
	--hm-notch: var(--hm-bg);
	/* colour of the ticket notches (sections with a background override it) */
	--hm-accent: var(--primary-color, #3b82f6);
	--hm-btn: var(--btn-color, var(--primary-color, #3b82f6));
	--hm-on-btn: var(--second-color, #ffffff);
	--hm-danger: #c4302f;
	--hm-danger-soft: #fdecec;
	--hm-star: #f5a524;
	--hm-flame: #e2622c;
	--hm-heart: #e5484d;
	--hm-shadow: 0 6px 20px rgba(18, 24, 38, .12);
	/* card prices: merchant colour when set (printed by home.jinja), otherwise the design colours */
	--hm-price: var(--hm-set-price, #121826);
	--hm-sale: var(--hm-set-sale, #c4302f);
	--hm-old: var(--hm-set-old, #667085);
	/* soft tints of the primary colour: fixed fallback first, then color-mix */
	--hm-soft-1: #f1f6fe;
	--hm-soft-1: color-mix(in srgb, var(--primary-color) 7%, #fff);
	--hm-soft-2: #e2ecfe;
	--hm-soft-2: color-mix(in srgb, var(--primary-color) 15%, #fff);
	--hm-fs-title: calc(18px * var(--hm-k));
	--hm-fs-sub: calc(11.5px * var(--hm-k));
	--hm-fs-name: calc(12px * var(--hm-k));
	--hm-fs-price: calc(14px * var(--hm-k));
	--hm-fs-meta: calc(10.5px * var(--hm-k));
	--hm-fs-btn: calc(11.5px * var(--hm-k));
	--hm-fs-btn-lg: calc(12.5px * var(--hm-k));
}
/* 768px and up: the whole home is zoomed instead (see "Wide home" at the end), so the type scale stays 1 */

/* ---------- Section titles ---------- */
body.home-view .home section .section-top,
body.home-view .home section .section-head {
	margin: 0 0 12px;
	padding: 0 16px;
}
body.home-view .home section .section-title {
	margin: 0;
	font-size: var(--hm-fs-title);
	font-weight: 800;
	line-height: 1.45;
	color: var(--hm-ink);
	direction: inherit;                 /* legacy forced rtl, which broke English */
}
body.home-view .home section .section-subtitle {
	margin: 2px 0 0;
	font-size: var(--hm-fs-sub);
	font-weight: 400;
	line-height: 1.6;
	color: var(--hm-muted);
}
/* sections that print the subtitle before the title (categories, image & text) */
body.home-view .home section .section-top .titles,
body.home-view .home section .section-head .section-titles {
	display: flex;
	flex-direction: column;
}
body.home-view .home section .titles > .section-title,
body.home-view .home section .section-titles > .section-title {
	order: -1;
}
body.home-view .home section .section-head .section-titles {
	align-items: stretch;
}
body.home-view .home section .section-subtitle > svg.hm-sub-ic {
	display: none;
}
/* the "view all" button next to a title */
body.home-view .home section .section-head {
	align-items: center;
	gap: 10px;
}
body.home-view .home section .section-head .section-button .section-btn {
	height: 32px;
	padding: 0 14px;
	border: 0;
	border-radius: 999px;
	background-color: var(--hm-soft-1);
	color: var(--hm-accent);
	font-size: calc(11.5px * var(--hm-k));
	font-weight: var(--w-btn);
	line-height: 1;
	gap: 4px;
}
body.home-view .home section .section-head .section-btn > svg.hm-btn-ic {
	color: currentColor;
}

/* kept for the single-product section (and any home timer / button): hidden until the countdown starts; the
   button icon gives way to the loader */
body.home-view .home .countdown-block:not(.timer-active) {
	display: none !important;           /* legacy !important (.d-flex on some markups) */
}
body.home-view .home .card-buttons > button:has(.loader-icon:not(.d-none)) svg.card-ic {
	display: none;
}

/* =====================================================================
   Buttons
   ===================================================================== */
/* load more under a grid (tabs / grid): white pill with a chevron */
body.home-view .home .grid-load-more-button {
	margin: 12px 12px 0;
	text-align: center;
}
body.home-view .home .grid-load-more-button .load-more-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 40px;
	margin: 0 auto;
	padding: 0 20px;
	border: 1px solid var(--hm-line);
	border-radius: 999px;
	background-color: #fff !important;  /* legacy !important (transparent) */
	color: var(--hm-ink);
	font-size: calc(12px * var(--hm-k));
	font-weight: var(--w-btn);
	box-shadow: none;
}
body.home-view .home .grid-load-more-button .load-more-btn .loader-icon {
	width: 16px;
	height: 16px;
}
/* horizontal list: full-width grey bar */
body.home-view .home .grid-load-more-button .load-more-btn.hor-products {
	display: flex;
	width: 100%;
	height: 42px;
	border: 0;
	border-radius: 16px;
	background-color: var(--hm-chip) !important;  /* legacy !important */
}
body.home-view .home .grid-load-more-button .load-more-btn.hor-products .load-more-icon {
	display: none;
}
/* auto-products: full-width soft bar, text at the start and an arrow at the end */
body.home-view .home .auto-products-section .grid-load-more-button {
	margin: 18px 14px 0;
}
body.home-view .home .auto-products-section .grid-load-more-button .load-more-btn {
	display: flex;
	justify-content: space-between;
	width: 100%;
	height: 46px;
	padding: 0 16px;
	border: 0;
	border-radius: 16px;
	background-color: var(--hm-soft-1) !important;  /* legacy !important */
	color: var(--hm-accent);
	font-weight: var(--w-btn);
}

/* =====================================================================
   Product capsule (video stories, video slider, comparison)
   ===================================================================== */
body.home-view .home .product-container .product {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 5px;
	border-radius: 999px;
	background-color: #fff;
	box-shadow: var(--hm-shadow);
	cursor: pointer;
}
body.home-view .home .product-container .product .image {
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	overflow: hidden;
	background-color: var(--hm-tile);
}
body.home-view .home .product-container .product .image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
body.home-view .home .product-container .product .info {
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0;
	line-height: 1.4;
}
body.home-view .home .product-container .product .info .product-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: calc(10.5px * var(--hm-k));
	font-weight: 700;
	color: var(--hm-ink);
}
body.home-view .home .product-container .product .info .price,
body.home-view .home .product-container .product .info .price .price,
body.home-view .home .product-container .product .info .product-price .price {
	font-size: calc(11.5px * var(--hm-k));
	font-weight: 800;
	color: var(--hm-price);
}
body.home-view .home .product-container .product .info .price > span {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	max-width: 100%;
}
/* each price stays one piece (the currency next to its number) */
body.home-view .home .product-container .product .info .price :is(.old, .price) {
	white-space: nowrap;
}
body.home-view .home .product-container .product .info .price-discount .price {
	color: var(--hm-sale);
}
body.home-view .home .product-container .product .info .price-discount .old {
	font-size: calc(10px * var(--hm-k));
	font-weight: 400;
	color: var(--hm-old);
}
body.home-view .home .product-container .product .add-to-card {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;                         /* a real button now (comparison / video slider / stories): no default box */
	border: 0;
	border-radius: 50%;
	background-color: var(--hm-btn);
	color: var(--hm-on-btn);
	font: inherit;
	cursor: pointer;
}
body.home-view .home .product-container .product .add-to-card:focus-visible {
	outline: 2px solid var(--hm-btn);
	outline-offset: 2px;
}
body.home-view .home .product-container .product .add-to-card > svg.ico {
	margin: 0;
	color: currentColor;
}

/* =====================================================================
   Grids of cards (tabs / grid / auto-products): 2 / 4 / 6 per row, the
   same counts the theme already uses (col-6 / col-md-3 / col-lg-2), and
   centred like before when a row is not full.
   ===================================================================== */
body.home-view .home .products-container .row.products-list {
	--hm-cols: 2;
	--hm-gap: 8px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: var(--hm-gap);
	margin: 0 12px;
	padding: 0;
}
body.home-view .home .products-container .row.products-list > .product-item-slide {
	flex: 0 0 calc((100% - (var(--hm-cols) - 1) * var(--hm-gap)) / var(--hm-cols));
	width: auto;
	max-width: calc((100% - (var(--hm-cols) - 1) * var(--hm-gap)) / var(--hm-cols)) !important;  /* legacy !important (:only-child 100%) */
	min-width: 0;
	margin: 0 !important;               /* legacy !important (:only-child centring) */
	padding: 0;
	border-radius: 20px;
}
body.home-view .home .auto-products-section .products-container .row.products-list {
	--hm-gap: 10px;
	row-gap: 18px;
	margin: 0 14px;
}

/* =====================================================================
   main-slider
   Settings that print inline styles still win: sliderBR / sliderMX /
   sliderMY, heights, title / subtitle / button sizes and colours,
   textVertical / textSpace, pagination colour / transparency.
   ===================================================================== */
/* (its space above: the shared home spacing - none under the header when it is the first section) */
body.home-view .home .main-slider .slider-home {
	position: relative;
	margin: 0 12px;
	border-radius: 22px;
	overflow: hidden;
	background-color: #1b1f2a;
}
body.home-view .home .main-slider .item-slider > a {
	display: block;
	color: inherit;
}
body.home-view .home .main-slider .item-slider.has-caption .content-slider {
	background: linear-gradient(180deg, rgba(18, 24, 38, 0) 45%, rgba(18, 24, 38, .62) 100%);
}
body.home-view .home .main-slider .content-slider .container {
	max-width: none;
	padding: 16px 16px 44px;
}
body.home-view .home .main-slider .content-slider .swiper-slide-caption {
	justify-content: flex-end;
	align-items: stretch;
	gap: 6px;
	text-align: center;
}
body.home-view .home .main-slider .content-slider .title-text {
	font-size: calc(26px * var(--hm-k));
	font-weight: 800;
	line-height: 1.35;
	color: #fff;
	text-align: center;
}
body.home-view .home .main-slider .content-slider .subtitle-text {
	font-size: calc(12.5px * var(--hm-k));
	font-weight: 500;
	line-height: 1.6;
	color: #fff;
	text-align: center;
}
body.home-view .home .main-slider .content-slider .slider-button {
	justify-content: center;
	margin-top: 6px;
}
body.home-view .home .main-slider .content-slider .slider-button .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 42px;
	padding: 0 22px;
	border: 1.5px solid #fff;
	border-radius: 999px;
	background: transparent;
	color: #fff;
	font-size: var(--hm-fs-btn-lg);
	font-weight: var(--w-btn);
	line-height: 1;
}

/* "next" capsule with a preview of the next slide */
body.home-view .home .main-slider .slider-next-peek {
	position: absolute;
	top: var(--hw-peek-top, 12px);      /* below a header that floats over the slider (main.js hwPeekBelowHeader) */
	inset-inline-end: 12px;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: calc(100% - 24px);
	padding: 4px;
	padding-inline-end: 10px;
	border: 0;
	border-radius: 999px;
	background-color: rgba(255, 255, 255, .92);
	color: var(--hm-ink);
	text-align: start;
	cursor: pointer;
}
body.home-view .home .main-slider .slider-next-peek .peek-media {
	flex: 0 0 34px;
	width: 34px;
	height: 34px !important;            /* legacy !important (style.css .item-slider img: the slide height hit this thumbnail too) */
	border-radius: 50%;
	object-fit: cover;
}
body.home-view .home .main-slider .slider-next-peek .peek-play {
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--hm-chip);
	color: var(--hm-ink);
}
body.home-view .home .main-slider .slider-next-peek .peek-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.3;
}
body.home-view .home .main-slider .slider-next-peek .peek-label {
	font-size: 9px;
	color: var(--hm-muted);
}
body.home-view .home .main-slider .slider-next-peek .peek-title {
	max-width: 130px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 11px;
	font-weight: 800;
}

/* slide counter 01 / 02, on the side opposite the dots */
body.home-view .home .main-slider .slider-counter {
	position: absolute;
	bottom: 12px;
	z-index: 3;
	font-size: 10.5px;
	font-weight: 700;
	line-height: 18px;
	color: #fff;
	direction: ltr;
	pointer-events: none;
}
body.home-view .home .main-slider .slider-counter.side-right {
	right: 16px;
}
body.home-view .home .main-slider .slider-counter.side-left {
	left: 16px;
}

/* pagination: pill dots for every style; "circle" keeps its progress fill */
body.home-view .home .main-slider .pagination-container.horizontal {
	bottom: 16px;
	padding: 0 16px;
}
body.home-view .home .main-slider .pagination-container.horizontal.position-top {
	top: 16px;
	bottom: auto;
}
body.home-view .home .main-slider .pagination-container.horizontal.position-center {
	top: calc(50% - 3px);
	bottom: auto;
}
body.home-view .home .main-slider .pagination-container .swiper-pagination {
	display: flex;
	align-items: center;
	gap: 5px;
	direction: ltr;
}
body.home-view .home .main-slider .pagination-container .swiper-pagination .swiper-pagination-bullet,
body.home-view .home .main-slider .pagination-container.lines .swiper-pagination .swiper-pagination-bullet,
body.home-view .home .main-slider .pagination-container.circle .swiper-pagination .circular-progress {
	width: 6px;
	height: 6px;
	margin: 0;
	border-radius: 999px;
	background: var(--pagination-color, #fff);
	opacity: var(--pagination-transparent, .5);
	transition: width .3s ease, opacity .3s ease;
}
body.home-view .home .main-slider .pagination-container .swiper-pagination .swiper-pagination-bullet-active,
body.home-view .home .main-slider .pagination-container.lines .swiper-pagination .swiper-pagination-bullet-active,
body.home-view .home .main-slider .pagination-container.circle .swiper-pagination .circular-progress.swiper-pagination-bullet-active {
	width: 22px;
	opacity: 1;
}
body.home-view .home .main-slider .pagination-container.circle .swiper-pagination .circular-progress.swiper-pagination-bullet-active {
	background: linear-gradient(90deg, var(--pagination-color, #fff) var(--circular-progress, 0%), rgba(255, 255, 255, .45) 0);
}
body.home-view .home .main-slider .pagination-container.circle .swiper-pagination .circular-progress::before {
	content: none;
}
body.home-view .home .main-slider .pagination-container.circle .swiper-pagination .circular-progress {
	-webkit-mask-image: none;          /* legacy ring mask */
	mask-image: none;
}
body.home-view .home .main-slider .pagination-container.vertical .swiper-pagination {
	flex-direction: column;
}
body.home-view .home .main-slider .pagination-container.vertical .swiper-pagination .swiper-pagination-bullet-active,
body.home-view .home .main-slider .pagination-container.vertical.circle .swiper-pagination .circular-progress.swiper-pagination-bullet-active {
	width: 6px;
	height: 22px;
}
body.home-view .home .main-slider .pagination-container.vertical.circle .swiper-pagination .circular-progress.swiper-pagination-bullet-active {
	background: linear-gradient(180deg, var(--pagination-color, #fff) var(--circular-progress, 0%), rgba(255, 255, 255, .45) 0);
}
/* =====================================================================
   categories-banner (white tiles; grid or carousel)
   ===================================================================== */
body.home-view .home .categories-slider-list .container {
	max-width: none;
}
body.home-view .home .categories-slider-list .row.categories-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	margin: 0 12px;
	overflow: visible;
}
body.home-view .home .categories-slider-list .row.categories-slider.scroll-block {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	margin: -2px 0;   /* the 2px room keeps focus rings / shadows unclipped by the scroller; the margin gives it back to the section gap */
	padding: 2px 12px;
	overflow-x: auto;
	scrollbar-width: none;
}
body.home-view .home .categories-slider-list .row.categories-slider.scroll-block::-webkit-scrollbar {
	display: none;
}
body.home-view .home .categories-slider-list .categories-slider-item {
	width: auto;
	max-width: none;
	flex: none;
	margin: 0;
	padding: 0;
}
body.home-view .home .categories-slider-list .categories-slider.scroll-block .categories-slider-item {
	flex: 0 0 84px;
	max-width: 84px;
	margin: 0;
}
body.home-view .home .categories-slider-list .category-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	height: 100%;
	margin: 0 !important;               /* legacy !important (bootstrap .mx-auto / .mb-3) */
	padding: 10px 2px 8px;
	border-radius: 18px;
	background-color: var(--hm-surface);
}
body.home-view .home .categories-slider-list .category-box .category-image > div {
	margin: 0 !important;               /* legacy !important (bootstrap .mb-2) */
}
body.home-view .home .categories-slider-list .category-box .category-image a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background-color: transparent;     /* the merchant's tile colour is inline and still wins */
}
body.home-view .home .categories-slider-list .category-box .category-image img {
	width: 42px;
	height: 42px;
	padding: 0;
	border-radius: 0;
	object-fit: contain;
}
body.home-view .home .categories-slider-list .category-box .category-title {
	width: 100%;
	padding: 0 2px;
}
body.home-view .home .categories-slider-list .category-box .category-title h6,
body.home-view .home .categories-slider-list .category-box .category-title a {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: calc(10px * var(--hm-k));
	font-weight: 600;
	line-height: 1.5;
	color: var(--hm-ink);
	text-align: center;
}
/* "all categories" tile */
body.home-view .home .categories-slider-list .all-categories-tile .all-categories-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 100%;
	min-height: 84px;
	padding: 8px 4px;
	border-radius: 18px;
	background-color: var(--hm-soft-1);
	color: var(--hm-accent);
	font-size: calc(10.5px * var(--hm-k));
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
}
/* =====================================================================
   images-section (banners)
   ===================================================================== */
body.home-view .home .section-images > .images-gallery {
	padding: 0;
}
body.home-view .home .section-images .block-images-home .view-vertical,
body.home-view .home .section-images .block-images-home .view-horizontal {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 12px;
}
body.home-view .home .section-images .block-images-home .view-vertical {
	flex-direction: column;
}
body.home-view .home .section-images .block-images-home .view-vertical .image-block {
	width: 100%;
}
body.home-view .home .section-images .block-images-home .view-horizontal .image-block {
	width: calc(50% - 4px);
}
body.home-view .home .section-images .block-images-home .image-item {
	display: block;
	margin: 0;
	border-radius: 16px;
	overflow: hidden;
}
body.home-view .home .section-images .block-images-home .view-slider .image-item {
	margin: 0 4px;
}
body.home-view .home .section-images .block-images-home .image-item img {
	display: block;
	width: 100%;
	margin: 0;
	border-radius: 16px;
}
body.home-view .home .section-images .block-images-home .image-item .image-text {
	padding: 6px 4px 0;
	font-size: calc(12px * var(--hm-k));
	font-weight: 700;
	color: var(--hm-ink);
	text-align: center;
}
/* =====================================================================
   text-section (moving text strip)
   ===================================================================== */
body.home-view .home section.section-marquee .marquee {
	padding: 11px 0;
	font-size: calc(15px * var(--hm-k));
	font-weight: 600;
	line-height: 1.5;
	color: var(--hm-accent);
}
body.home-view .home section.section-marquee .marquee:not(.bg-color):not(.bg-image) {
	border-top: 2px dashed var(--hm-soft-2);
	border-bottom: 2px dashed var(--hm-soft-2);
	background-color: var(--hm-soft-1);
}
body.home-view .home section.section-marquee .marquee-content {
	color: inherit;
}
body.home-view .home section.section-marquee .marquee-content li .separating {
	display: flex;
	align-items: center;
	margin: 0 14px;
}
body.home-view .home section.section-marquee .marquee-content li .icon {
	width: 20px;
	height: 20px;
	margin: 0;
	object-fit: contain;
}

/* =====================================================================
   categories-section (small coloured tiles, two moving rows)
   The tile colour comes from the item's BgColor (--cat-color, printed
   inline); the light background and the dark name / icon are mixed
   from it. Without color-mix the legacy look (solid colour, white text)
   is kept.
   ===================================================================== */
body.home-view .home .small-categories-slider .icons-categories {
	margin: -2px 0;   /* the 2px room keeps focus rings / shadows unclipped by the scroller; the margin gives it back to the section gap */
	padding: 2px 12px;
}
body.home-view .home .small-categories-slider .icons-categories.slider-1 {
	margin-top: 6px;
}
body.home-view .home .small-categories-slider .icons-categories .swiper-slide {
	margin: 0;
	padding-inline-end: 6px;
}
body.home-view .home .small-categories-slider .icons-categories a.category-box {
	--cat: var(--cat-color, var(--primary-color, #3b82f6));
	position: relative;
	display: block;
	width: 96px;
	height: 78px;
	margin: 0;
	padding: 0;
	border-radius: 18px;
	overflow: hidden;
	background-color: var(--cat);
	color: #fff;
	background-color: color-mix(in srgb, var(--cat) 16%, #fff);
	color: color-mix(in srgb, var(--cat) 40%, #121826);   /* >= 4.5:1 on the tile even for white / pale colours */
	box-shadow: inset 0 0 0 1px rgba(18, 24, 38, .05);
}
body.home-view .home .small-categories-slider .icons-categories .category-name {
	position: absolute;
	top: 9px;
	inset-inline-start: 10px;
	inset-inline-end: 6px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: calc(11.5px * var(--hm-k));
	font-weight: 800;
	line-height: 1.4;
	color: inherit;
	text-align: start;
	white-space: normal;
}
body.home-view .home .small-categories-slider .icons-categories .category-icon {
	position: absolute;
	bottom: -8px;
	inset-inline-end: -4px;
	width: 46px;
	height: 46px;
	transform: rotate(-12deg);
	opacity: .9;
}
body.home-view .home .small-categories-slider .icons-categories .category-icon i {
	width: 46px;
	height: 46px;
	background-color: currentColor;     /* SVG icons are masks; image icons set background-color: unset inline */
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-position: center;
	mask-position: center;
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}
body.home-view .home .small-categories-slider .icons-categories .category-arrow {
	position: absolute;
	bottom: 7px;
	inset-inline-start: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background-color: #fff;
	color: inherit;
}
/* =====================================================================
   Countdown that has not started (or already ended): main.js removes
   an ended countdown and marks a running one .timer-active; until then
   the empty boxes are not shown, so an old date never leaves a gap.
   ===================================================================== */

/* =====================================================================
   Section banner (showBannerImage) — products sections.
   bannerMX / bannerHeight / bannerBR / bannerFit stay inline and win.
   ===================================================================== */
body.home-view .home section .section-banner {
	display: block;
	margin: 0 12px 10px;
}
body.home-view .home section .section-banner .banner-image {
	display: block;
	width: 100%;
	border-radius: 16px;
	object-fit: cover;
}

/* =====================================================================
   products-slider (big slider)
   Mobile Swiper values changed in the section script: slidesPerView
   'auto' (card width from CSS), spaceBetween 10, no centring, 12px
   offsets; tablet / desktop breakpoints keep their old values.
   ===================================================================== */
body.home-view .home .products-slider-section .section-container {
	padding: 0;
}
body.home-view .home .products-slider-section .section-container.section-bg {
	--hm-notch: var(--background-color);
	padding: 22px 0 24px;
}
body.home-view .home .products-slider-section .container {
	max-width: none;
	padding: 0;
}
body.home-view .home .products-slider-home.big-slider {
	margin: 0 auto;                     /* keeps the legacy desktop width (65%) centred */
	overflow: hidden;
}
body.home-view .home .products-slider-home.big-slider .swiper-wrapper {
	align-items: stretch;
	padding-bottom: 0;
}
body.home-view .home .products-slider-home.big-slider .swiper-slide.product-item {
	height: auto;
	padding: 0;
}
body.home-view .home .products-slider-home.big-slider .swiper-slide.product-item .product-item-slide {
	height: 100%;
}

@media (max-width: 767.98px) {
	body.home-view .home .products-slider-home.big-slider .swiper-slide.product-item {
		width: 236px;
		transform: none !important;     /* legacy !important (scale on inactive slides) */
	}
}
/* dots under the slider */
body.home-view .home .products-slider-home.big-slider .pagination-container {
	min-height: 0;
	margin-top: 10px;
	bottom: 0;
}
body.home-view .home .products-slider-home.big-slider .swiper-pagination {
	position: static;
	display: flex;
	justify-content: center;
	gap: 5px;
	width: auto !important;             /* Swiper dynamic bullets size / move the strip inline */
	transform: none !important;
	white-space: normal;
}
body.home-view .home .products-slider-home.big-slider .swiper-pagination .swiper-pagination-bullet {
	position: static;
	left: auto !important;
	width: 6px;
	height: 6px;
	margin: 0 !important;
	border-radius: 999px;
	background-color: #d9dde5;
	opacity: 1;
	transform: none !important;
	transition: width .3s ease;
}
body.home-view .home .products-slider-home.big-slider .swiper-pagination .swiper-pagination-bullet-active {
	width: 18px;
	background-color: var(--hm-accent);
}

/* =====================================================================
   Small product scrollers (products-slider-small, auto-products
   "small slider"): native horizontal scroll (SortSliders in main.js).
   ===================================================================== */
body.home-view .home :is(.products-sm-slider-section, .auto-products-section) .container {
	max-width: none;
}
body.home-view .home :is(.products-sm-slider-section, .auto-products-section) .products-slider-home.small-slider {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 8px;
	margin: -2px 0;   /* the 2px room keeps focus rings / shadows unclipped by the scroller; the margin gives it back to the section gap */
	padding: 2px 12px;
	overflow-x: auto;
	scrollbar-width: none;
}
body.home-view .home :is(.products-sm-slider-section, .auto-products-section) .products-slider-home.small-slider::-webkit-scrollbar {
	display: none;
}
body.home-view .home :is(.products-sm-slider-section, .auto-products-section) .products-slider-home.small-slider > .product-item-slide {
	margin: 0;
	padding: 0;
}
@media (max-width: 767.98px) {
	body.home-view .home :is(.products-sm-slider-section, .auto-products-section) .products-slider-home.small-slider > .product-item-slide {
		flex: 0 0 132px;
		max-width: 132px;
	}
}
/* swipe hint: a dashed tile at the end of the row */
body.home-view .home :is(.products-sm-slider-section, .auto-products-section) .products-slider-home.small-slider > .move-icon {
	order: 99;
	flex: 0 0 46px;
	max-width: 46px;
	margin: 0;
	padding: 0;
	border: 2px dashed #dfe3ea;
	border-radius: 18px;
	align-items: center;
	justify-content: center;
}
body.home-view .home :is(.products-sm-slider-section, .auto-products-section) .products-slider-home.small-slider > .move-icon > svg.hm-swipe-ic {
	color: var(--hm-muted);
}
body.home-view .home :is(.products-sm-slider-section, .auto-products-section) .products-slider-home.small-slider > .slider-load-more-button {
	order: 98;
	flex: 0 0 104px;
	max-width: 104px;
	margin: 0 !important;               /* legacy !important (.mb-2) */
	padding: 0;
}
body.home-view .home :is(.products-sm-slider-section, .auto-products-section) .products-slider-home.small-slider > .slider-load-more-button .load-more-btn {
	height: 100%;
	min-height: 120px;
	border: 0;
	border-radius: 18px;
	background-color: var(--hm-soft-1) !important;  /* legacy !important (.btn-primary hover states) */
	color: var(--hm-accent);
	font-size: calc(11.5px * var(--hm-k));
	font-weight: var(--w-btn);
	white-space: normal;
}

/* =====================================================================
   products-grid-tabs: segmented tabs with their icons
   ===================================================================== */
body.home-view .home .products-tabs .container {
	max-width: none;
	padding: 0;
}
body.home-view .home .products-tabs .container > .row {
	margin: 0;
}
body.home-view .home .products-tabs ul.nav-tabs {
	display: flex;
	flex-wrap: nowrap;
	justify-content: flex-start !important;  /* legacy !important (bootstrap .justify-content-center) */
	gap: 4px;
	margin: 0 12px 10px !important;          /* legacy !important (bootstrap .mb-4) */
	padding: 4px;
	border: 0;
	border-radius: 16px;
	background-color: var(--hm-chip);
	overflow-x: auto;
	scrollbar-width: none;
}
body.home-view .home .products-tabs ul.nav-tabs::-webkit-scrollbar {
	display: none;
}
body.home-view .home .products-tabs ul.nav-tabs > .nav-item {
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
}
/* four tabs or more: natural width, the bar scrolls */
body.home-view .home .products-tabs ul.nav-tabs:has(> .nav-item:nth-child(4)) > .nav-item {
	flex: 0 0 auto;
	max-width: 160px;
}
body.home-view .home .products-tabs ul.nav-tabs .nav-link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	height: 38px;
	padding: 0 10px;
	border: 0;
	border-radius: 12px;
	background-color: transparent;
	color: var(--hm-muted);
	font-size: calc(12px * var(--hm-k));
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
}
body.home-view .home .products-tabs ul.nav-tabs .nav-link > span {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}
body.home-view .home .products-tabs ul.nav-tabs .nav-link.active {
	background-color: var(--hm-surface);
	color: var(--hm-ink);
	font-weight: 800;
	box-shadow: 0 2px 8px rgba(18, 24, 38, .08);
}
body.home-view .home .products-tabs ul.nav-tabs .nav-link .icon {
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	background-color: currentColor;     /* SVG icons are masks; image icons set background-color: unset inline */
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-position: center;
	mask-position: center;
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}
body.home-view .home .products-tabs .tab-content {
	min-height: 0;
}
body.home-view .home .products-tabs .tab-content .empty-tab {
	top: 0;
	width: auto;
	max-width: 240px;
	margin: 24px auto;
	padding: 10px 16px;
	border: 1px dashed var(--hm-line);
	border-radius: 14px;
	color: var(--hm-muted);
	font-size: calc(12px * var(--hm-k));
}
@media (min-width: 768px) {
	body.home-view .home .products-tabs ul.nav-tabs {
		width: fit-content;
		max-width: calc(100% - 40px);
		margin: 0 auto 14px !important;      /* legacy !important (bootstrap .mb-4) */
	}
	body.home-view .home .products-tabs ul.nav-tabs > .nav-item {
		flex: 0 0 auto;
		max-width: 220px;
	}
	body.home-view .home .products-tabs ul.nav-tabs .nav-link {
		padding: 0 18px;
	}
}

/* =====================================================================
   products-grid-hor: list of white rows
   ===================================================================== */
body.home-view .home .products-hor-list {
	gap: 8px;
	padding: 0 12px;
}
body.home-view .home .products-hor .grid-load-more-button {
	margin: 8px 12px 0;
}
@media (min-width: 576px) {
	body.home-view .home .products-hor .grid-load-more-button {
		max-width: 50%;
		margin: 8px auto 0;
		padding: 0 20px;
	}
}

/* =====================================================================
   single-product: the section around the module (the module itself is
   the card's fourth shape, product-card.css .pc--one). Ticker strip on
   top, the title, the side image on wide screens. cardBgColor
   (--product-card-bg), bgColor / bgColor2 / bgGradient, ticker colours
   and spaces stay as set by the merchant.
   ===================================================================== */
body.home-view .home section.section.single-product {
	padding: 0;
}
/* the 24px under the card only inside a coloured band (without a background it would add to the section gap) */
body.home-view .home section.section.single-product[style*="--background-color"] {
	padding-bottom: 24px;
	border-radius: 28px 28px 0 0;
	overflow: hidden;
}
body.home-view .home section.single-product .product-ticker {
	margin: 0 0 4px;
	border-radius: 0;
}
body.home-view .home section.single-product .product-ticker .ticker {
	height: 30px;
	align-items: center;
	gap: 0;
	padding: 0;
}
body.home-view .home section.single-product .product-ticker .ticker .ticker-scroll {
	gap: 0;
}
body.home-view .home section.single-product .product-ticker .ticker .ticker-item {
	gap: 8px;
	padding: 0 14px;
	font-size: calc(11px * var(--hm-k));
	font-weight: 600;
}
body.home-view .home section.single-product .product-ticker .ticker .ticker-item::after {
	content: "";
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background-color: currentColor;
	opacity: .7;
}
body.home-view .home section.single-product > .section-top {
	margin: 18px 0 12px;
}
/* phones: the card 60px in from each side, centred (240-270px on common phones); inside it the card's own narrow rules
   apply (product-card.css @container pc-one: the quantity above the button; main.js fitChips: buttons that do not fit
   become the list box). The ticker and the section's colour keep their full width. Tablets / desktops unchanged. */
@media (max-width: 767.98px) {
	body.home-view .home section.single-product > .pc--one {
		width: calc(100% - 120px);
		max-width: none;
		margin: 0 auto;
	}
}


/* a slider with a single product needs no dots; nor any home slider whose dots Swiper locked (everything fits):
   the empty row would keep its height and margin */
body.home-view .home .products-slider-home.big-slider:has(.swiper-wrapper > .swiper-slide:only-child) .pagination-container,
body.home-view .home .pagination-container:has(> .swiper-pagination-lock:only-child) {
	display: none;
}

@media (min-width: 768px) {
	/* one product on tablet / desktop: centred instead of stuck to one side */
	body.home-view .home .products-slider-home.big-slider .swiper-wrapper:has(> .swiper-slide:only-child) {
		justify-content: center;
	}
}
/* English: the legacy single-product price forced right-to-left, which put the old price first */


/* =====================================================================
   Shared: glass round control on media (sound / play / pause)
   ===================================================================== */
body.home-view .home {
	--hm-glass: rgba(18, 24, 38, .45);
}

/* =====================================================================
   video-stories (9:16 cards, sound button, floating product capsule)
   The Swiper set-up (centred, autoplay of the active card) lives in
   main.js (initVideoSliders) and is unchanged.
   ===================================================================== */
body.home-view .home section.products-video-slider {
	padding: 0;
	background: var(--background-color, transparent);
}
body.home-view .home section.products-video-slider.bg-gradient {
	padding: 22px 0 24px;
	border-radius: 28px 28px 0 0;
}
body.home-view .home section.products-video-slider .section-top .section-title {
	gap: 8px;
}
body.home-view .home section.products-video-slider .section-top .section-title .icon {
	width: auto;
	height: var(--title-icon-size, 26px);
	max-height: 40px;
}
body.home-view .home section.products-video-slider .swiper-container {
	padding: 2px 0;
	margin: -2px 0;   /* the 2px room keeps focus rings / shadows unclipped by the scroller; the margin gives it back to the section gap */
}
body.home-view .home section.products-video-slider .slider .card {
	width: auto;
	margin: 0;                          /* Swiper's spaceBetween is the only gap (style.css 8px) */
	border-radius: 20px;
	background-color: #1b1f2a;
	opacity: 1;
}
body.home-view .home section.products-video-slider .slider .card .slider-content {
	width: 250px !important;            /* legacy !important (280px); every width: the home zoom scales it */
	height: auto !important;            /* legacy !important (480px) */
	aspect-ratio: 9 / 16;
	border-radius: 20px;
	overflow: hidden;
}
body.home-view .home section.products-video-slider .video-control .play {
	width: 52px;
	height: 52px;
	border: 0;
	background-color: var(--hm-glass);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
body.home-view .home section.products-video-slider .video-control .play > svg.ico {
	color: #fff;
}
/* sound: top end corner */
body.home-view .home section.products-video-slider .audio-btn {
	top: 9px;
	bottom: auto;
	left: auto;
	right: auto;
	inset-inline-end: 9px;
	z-index: 3;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background-color: var(--hm-glass);
	opacity: 1;
}
body.home-view .home section.products-video-slider .slider-content:has(.product) .audio-btn {
	bottom: auto;
}
body.home-view .home section.products-video-slider .audio-btn svg.ico {
	color: #fff;
}
/* product capsule floating at the bottom of the card */
body.home-view .home section.products-video-slider .product-container {
	bottom: 6px;
	padding: 0 6px;
}

/* =====================================================================
   image-and-text
   Text inside the image sits at the bottom over a soft shade; the
   merchant's sizes, colours, alignments, textVertical / textSpace,
   imageBR / imageMX / imageMY / imageFit stay inline and win.
   ===================================================================== */
body.home-view .home .section-images-and-text .block-single-image {
	margin: 0 12px;                     /* the home sections' side line (12px, every width) */
	border-radius: 22px;
	overflow: hidden;
}
body.home-view .home .section-images-and-text .block-single-image img {
	display: block;
	object-fit: cover;
}
body.home-view .home .section-images-and-text.titles-in .block-single-image .text-container {
	justify-content: flex-end;
	align-items: stretch;
	gap: 2px;
	padding: 16px;
	background: linear-gradient(180deg, rgba(18, 24, 38, 0) 50%, rgba(18, 24, 38, .6) 100%);
}
body.home-view .home .section-images-and-text.titles-in .block-single-image .text-container .text-block {
	text-align: start;
}
body.home-view .home .section-images-and-text.titles-in .block-single-image .text-container .title-text {
	font-size: calc(26px * var(--hm-k));
	font-weight: 800;
	line-height: 1.35;
	color: #fff;
}
body.home-view .home .section-images-and-text.titles-in .block-single-image .text-container .subtitle-text {
	font-size: calc(12px * var(--hm-k));
	color: #fff;
}
body.home-view .home .section-images-and-text.titles-in .block-single-image .text-container .text-button {
	margin-top: 8px;
}
body.home-view .home .section-images-and-text.titles-in .block-single-image .text-container .btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 42px;
	padding: 0 18px;
	border: 1.5px solid #fff;
	border-radius: 999px;
	background: transparent;
	color: #fff;
	font-size: calc(12px * var(--hm-k));
	font-weight: var(--w-btn);
}
body.home-view .home .section-images-and-text .text-container .btn svg.ico {
	margin: 0 -1px;   /* 16px icon where the old one was 14px: same button width */
}
/* text above / below the image: the section's title block + its button */
body.home-view .home .section-images-and-text .section-text {
	margin: 0 0 12px;
}
body.home-view .home .section-images-and-text.titles-bottom .section-text {
	margin: 12px 0 0;
}
body.home-view .home .section-images-and-text .section-text .section-btn {
	height: 36px;
	padding: 0 14px;
	border: 0;
	border-radius: 999px;
	background-color: var(--hm-btn);
	color: var(--hm-on-btn);
}

/* =====================================================================
   images-grid-text
   3 images: the wide one (.item-col-5, the last) on top and the other
   two tilted with a white frame over its bottom edge.
   2 images: the two tilted framed squares side by side.
   1 image and 4+: the theme's grid with the new corners.
   ===================================================================== */
body.home-view .home .section-images-grid .section-block {
	padding: 0 14px;
	background-color: transparent;
}
body.home-view .home .section-images-grid .section-block[style*="background-color"] {
	margin: 0 12px;
	padding: 16px;
	border-radius: 22px;
}
body.home-view .home .section-images-grid .images-grid {
	gap: 8px;
}
body.home-view .home .section-images-grid .images-grid .image-item img {
	border-radius: 20px;
}
body.home-view .home .section-images-grid .images-grid:has(> .image-item:nth-child(2):last-child),
body.home-view .home .section-images-grid .images-grid:has(> .image-item:nth-child(3):last-child) {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
}
body.home-view .home .section-images-grid .images-grid:has(> .image-item:nth-child(3):last-child) > .item-col-5 {
	order: -1;
	grid-column: 1 / -1;
}
body.home-view .home .section-images-grid .images-grid:has(> .image-item:nth-child(3):last-child) > .item-col-5 img {
	aspect-ratio: 1300 / 474;
	max-height: none;
}
body.home-view .home .section-images-grid .images-grid:is(:has(> .image-item:nth-child(2):last-child), :has(> .image-item:nth-child(3):last-child)) > .image-item:not(.item-col-5) {
	grid-column: auto;
	justify-content: center;
	align-items: flex-start;
	z-index: 1;
}
body.home-view .home .section-images-grid .images-grid:has(> .image-item:nth-child(3):last-child) > .image-item:not(.item-col-5) {
	margin-top: -64px;
}
body.home-view .home .section-images-grid .images-grid:is(:has(> .image-item:nth-child(2):last-child), :has(> .image-item:nth-child(3):last-child)) > .image-item:not(.item-col-5) img {
	width: 84%;
	aspect-ratio: 1 / 1;
	max-height: none;
	border: 5px solid #fff;
	border-radius: 20px;
	box-shadow: 0 10px 24px rgba(18, 24, 38, .12);
}
/* the tilt is on the wrapper: the image keeps the theme's entry animation (.anime-item) */
body.home-view .home .section-images-grid .images-grid:is(:has(> .image-item:nth-child(2):last-child), :has(> .image-item:nth-child(3):last-child)) > .image-item:not(.item-col-5) {
	transform: rotate(4deg);
}
body.home-view .home .section-images-grid .images-grid:is(:has(> .image-item:nth-child(2):last-child), :has(> .image-item:nth-child(3):last-child)) > .image-item:not(.item-col-5):nth-child(2) {
	padding-top: 6px;
	transform: rotate(-5deg);
}
body.home-view .home .section-images-grid .text-block {
	align-items: center;
	margin-top: 16px;
	text-align: center;
}
body.home-view .home .section-images-grid .text-block > h2 {
	justify-content: center;
	margin: 0;
	font-size: calc(22px * var(--hm-k));
	font-weight: 800;
	line-height: 1.4;
}
body.home-view .home .section-images-grid .text-block > p {
	justify-content: center;
	margin: 3px 0 0;
	font-size: calc(12px * var(--hm-k));
	font-weight: 400;
	line-height: 1.7;
	color: var(--hm-muted);
}
body.home-view .home .section-images-grid .text-block .section-btn {
	justify-content: center;
	margin-top: 12px;
}
body.home-view .home .section-images-grid .text-block .section-btn > a {
	gap: 8px;
	height: 44px;
	padding: 0 22px;
	border-radius: 999px;
	font-size: var(--hm-fs-btn-lg);
	font-weight: var(--w-btn);
}
body.home-view .home .section-images-grid .text-block .section-btn > a > svg.hm-btn-ic {
	margin: 0 -0.5px;   /* 16px icon where the old one was 15px */
	transform: none;
}

/* =====================================================================
   video-slider (cards with a text sheet; slick set-up in main.js)
   ===================================================================== */
body.home-view .home section.section-video-slider {
	padding: 0 0 4px;
	background: var(--background-color, transparent);
}
body.home-view .home section.section-video-slider.bg-gradient,
body.home-view .home section.section-video-slider[style*="--background-color"] {
	padding: 22px 0 24px;
	border-radius: 28px 28px 0 0;
}
body.home-view .home section.section-video-slider .section-top {
	margin-top: 0;
}
body.home-view .home section.section-video-slider .slider {
	padding: 2px 0 8px;
}
body.home-view .home section.section-video-slider .slider .card {
	margin: 0 5px;
	border-radius: 0;
	background-color: transparent;
	overflow: visible;
}
body.home-view .home section.section-video-slider .slider .card .top-content {
	height: var(--card-video-height, 340px);
	border-radius: 22px;
	overflow: hidden;
	background-color: #1b1f2a;
}
body.home-view .home section.section-video-slider .slider .card .top-content :is(video, img) {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
body.home-view .home section.section-video-slider .slider .card .bottom-content {
	z-index: 2;
	gap: 3px;
	margin: -70px 8px 0;
	padding: 12px 14px;
	border-radius: 18px;
	background-color: var(--card-bg-color, #fff);
	box-shadow: 0 10px 26px rgba(18, 24, 38, .1);
}
body.home-view .home section.section-video-slider .slider .card .bottom-content .title {
	font-size: calc(14px * var(--hm-k));
	font-weight: 800;
	color: var(--card-text-color, var(--hm-ink));
}
body.home-view .home section.section-video-slider .slider .card .bottom-content .text {
	font-size: calc(11.5px * var(--hm-k));
	line-height: 1.75;
	color: var(--card-desc-color, var(--hm-muted));
}
/* play / pause with its progress ring, top end corner */
body.home-view .home section.section-video-slider .video-controls {
	top: 9px;
	bottom: auto;
	left: auto;
	right: auto;
	inset-inline-end: 9px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background-color: var(--hm-glass);
}
body.home-view .home section.section-video-slider .video-controls .icons {
	top: 15px;
	left: 15px;
}
body.home-view .home section.section-video-slider .video-controls .icons svg.hm-play-ic {
	color: #fff;
}
body.home-view .home section.section-video-slider .video-controls .icons svg.hm-pause-ic {
	color: #fff;
}
/* arrows with the product capsule between them */
body.home-view .home section.section-video-slider .info-container.slider-content {
	gap: 8px;
	padding: 0 14px;
}
body.home-view .home section.section-video-slider .info-container .slider-arrows {
	display: contents;
}
body.home-view .home section.section-video-slider .info-container .slider-arrows.d-none {
	display: none !important;           /* legacy !important (bootstrap .d-none, one card) */
}
body.home-view .home section.section-video-slider .info-container .slider-arrows .prev {
	order: 0;
}
body.home-view .home section.section-video-slider .info-container .product-container {
	order: 1;
	flex: 1 1 auto;
	min-width: 0;
	position: static;
	padding: 0;
}
body.home-view .home section.section-video-slider .info-container .slider-arrows .next {
	order: 2;
}
body.home-view .home section.section-video-slider .info-container .slider-arrows > div {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	padding: 0;
	border-radius: 50%;
	background-color: var(--arrow-bg-color, #fff);
	box-shadow: var(--hm-shadow);
	cursor: pointer;
}
body.home-view .home section.section-video-slider .info-container .slider-arrows > div > svg.hm-arrow-ic {
	color: var(--arrow-color, var(--hm-ink));
}
/* the desktop copy of the capsule (next to the title from 768px) */
body.home-view .home section.section-video-slider .section-top .product-container.desktop-view {
	position: static;
	margin-top: 14px;
	padding: 0;
}

/* =====================================================================
   video (single): rounded, centred title, glass controls
   ===================================================================== */
body.home-view .home section.section-video {
	margin-inline: 12px;
	border-radius: 22px;
	overflow: hidden;
}
body.home-view .home section.section-video .video-item-block {
	position: relative;
	border-radius: 22px;
	overflow: hidden;
	background-color: #1b1f2a;
}
body.home-view .home section.section-video .home-video {
	border-radius: 0;
}
body.home-view .home section.section-video .video-text-container .text {
	padding: 20px;
	line-height: 1.35;
}
body.home-view .home section.section-video .video-text-container .title {
	font-size: calc(30px * var(--hm-k));
	font-weight: 800;
	text-shadow: 0 2px 14px rgba(18, 24, 38, .35);
}
body.home-view .home section.section-video .video-text-container .subtitle {
	font-size: calc(12.5px * var(--hm-k));
	text-shadow: 0 1px 8px rgba(18, 24, 38, .35);
}
body.home-view .home section.section-video .video-text-container .video-button > a {
	display: inline-flex;
	align-items: center;
	height: 42px;
	padding: 0 20px;
	border: 1.5px solid #fff;
	border-radius: 999px;
	color: #fff;
	font-size: calc(12px * var(--hm-k));
	font-weight: var(--w-btn);
}
body.home-view .home section.section-video :is(.audio-btn, .pause-btn) {
	bottom: 12px;
	left: auto;
	right: auto;
	width: 30px;
	height: 30px;
	padding: 0;
	border-radius: 50%;
	background-color: var(--hm-glass);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
body.home-view .home section.section-video .audio-btn {
	inset-inline-end: 12px;
}
body.home-view .home section.section-video .pause-btn {
	inset-inline-end: 48px;
}
body.home-view .home section.section-video .audio-btn svg.ico {
	color: #fff;
}
body.home-view .home section.section-video .pause-btn svg.hm-pause-ic {
	background: #fff;
	opacity: 1;
	transform: none;
}
body.home-view .home section.section-video .play-btn {
	width: 58px;
	height: 58px;
	border: 0;
	border-radius: 50%;
	background-color: var(--hm-glass);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: #fff;
	font-size: 20px;
}

/* =====================================================================
   lookbook: pulsing points + strip of the look's products
   pinX / pinY positions are unchanged (physical left / top, as before).
   ===================================================================== */
body.home-view .home .section-lookbook .lookbook {
	padding-left: var(--section-side-space, 10px);
	padding-right: var(--section-side-space, 10px);
}
body.home-view .home .section-lookbook .image-container {
	border-radius: 22px;
	overflow: hidden;
}
body.home-view .home .section-lookbook .image-container > img {
	display: block;
}
body.home-view .home .section-lookbook .image-container .products .product-point .lookbook-qv-btn {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 3px solid #fff;
	box-shadow: 0 0 0 4px rgba(255, 255, 255, .45);
	animation: hm-point-pulse 2.2s ease-in-out infinite;
}
body.home-view .home .section-lookbook .image-container .products .product-point::before {
	content: none;                      /* the legacy pulse disc; the ring pulses instead */
}
body.home-view .home .section-lookbook .image-container .products .product-point.active .lookbook-qv-btn {
	width: 30px;
	height: 30px;
}
@keyframes hm-point-pulse {
	0%, 100% { box-shadow: 0 0 0 4px rgba(255, 255, 255, .45); }
	50% { box-shadow: 0 0 0 9px rgba(255, 255, 255, .15); }
}
@media (prefers-reduced-motion: reduce) {
	body.home-view .home .section-lookbook .image-container .products .product-point .lookbook-qv-btn {
		animation: none;
	}
}
body.home-view .home .section-lookbook .lookbook-strip {
	position: absolute;
	right: 0;
	bottom: 10px;
	left: 0;
	z-index: 2;
	display: flex;
	gap: 8px;
	padding: 2px 10px;
	overflow-x: auto;
	scrollbar-width: none;
	scroll-padding-inline: 10px;
}
body.home-view .home .section-lookbook .lookbook-strip::-webkit-scrollbar {
	display: none;
}
body.home-view .home .section-lookbook .lookbook-card {
	position: relative;
	flex: 0 0 200px;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px;
	border-radius: 18px;
	background-color: #fff;
	transition: box-shadow .2s ease;
}
body.home-view .home .section-lookbook .lookbook-card.active {
	box-shadow: 0 0 0 2px var(--hm-accent);
}
body.home-view .home .section-lookbook .lookbook-card-image {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 13px;
	overflow: hidden;
	background-color: var(--hm-tile);
}
body.home-view .home .section-lookbook .lookbook-card-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
body.home-view .home .section-lookbook .lookbook-card-info {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	line-height: 1.5;
	text-align: start;
}
body.home-view .home .section-lookbook .lookbook-card-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: calc(11px * var(--hm-k));
	font-weight: 600;
	color: var(--hm-ink);
}
body.home-view .home .section-lookbook .lookbook-card-info .price > span {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
}
body.home-view .home .section-lookbook .lookbook-card-info .price .price {
	font-size: calc(12.5px * var(--hm-k));
	font-weight: 800;
	color: var(--hm-price);
}
body.home-view .home .section-lookbook .lookbook-card-info .price-discount .price {
	color: var(--hm-sale);
}
body.home-view .home .section-lookbook .lookbook-card-info .price-discount .old {
	order: 2;
	font-size: 10px;
	color: var(--hm-old);
}
/* the round quick view button; its click area covers the whole card */
body.home-view .home .section-lookbook .lookbook-card-qv {
	position: static;
	flex: 0 0 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: var(--hm-soft-2);
	color: var(--hm-accent);
}
body.home-view .home .section-lookbook .lookbook-card-qv::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}
body.home-view .home .section-lookbook .lookbook-card-qv svg.qv-ic {
	color: currentColor;
}
body.home-view .home .section-lookbook .lookbook-card-qv .loader-icon {
	width: 15px;
	height: 15px;
	color: currentColor;
}

/* =====================================================================
   comparison: before / after labels, round handle, capsule on the edge
   ===================================================================== */
body.home-view .home .section-comparison {
	padding: 0;
}
body.home-view .home .section-comparison .comparison-block {
	margin: 0 14px;
}
/* room for the product capsule that hangs 26px below the picture: inside the section (padding), so the space between
   the sections stays the one rhythm */
body.home-view .home .section-comparison:has(.comparison-block .product-container) {
	padding-bottom: 30px;
}
body.home-view .home .section-comparison .beforeAfter {
	border-radius: 24px;
	overflow: hidden;
}
body.home-view .home .section-comparison .separator-move {
	width: 44px !important;             /* legacy !important (40px) */
	height: 44px !important;
	border-radius: 50% !important;      /* legacy !important (6px) */
	background-color: #fff !important;
	box-shadow: 0 6px 20px rgba(18, 24, 38, .18);
}
body.home-view .home .section-comparison .compare-label {
	position: absolute;
	top: 12px;
	z-index: 10;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: calc(10.5px * var(--hm-k));
	font-weight: 700;
	line-height: 1.5;
	color: #fff;
	pointer-events: none;
}
body.home-view .home .section-comparison .compare-label-before {
	left: 12px;
	background-color: rgba(18, 24, 38, .6);
}
body.home-view .home .section-comparison .compare-label-after {
	right: 12px;
	background-color: var(--hm-accent);
}
body.home-view .home .section-comparison .product-container {
	right: 12px;
	bottom: -26px;
	left: 12px;
	z-index: 10;
	width: auto;
	min-width: 0;
	padding: 0;
}
body.home-view .home .section-comparison .product-container .product .info .product-name {
	font-size: calc(10.5px * var(--hm-k));
}
body.home-view .home .section-comparison.padding-border .comparison-container {
	padding: 10px;
	border-radius: 28px;
	background-color: var(--hm-surface);
}

/* =====================================================================
   logos-section: separate white tiles (logo images untouched)
   ===================================================================== */
body.home-view .home .section-logos {
	margin-bottom: 0;
}
/* centred rows (an incomplete last row stays centred, as before) */
body.home-view .home .section-logos.logos-grid .slider-logos {
	--hm-cols: 4;
	--hm-gap: 6px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--hm-gap);
	margin: 0 12px;
}
body.home-view .home .section-logos.logos-grid.in-row-3 .slider-logos {
	--hm-cols: 3;
}
body.home-view .home .section-logos.logos-grid.in-row-2 .slider-logos {
	--hm-cols: 2;
}
body.home-view .home .section-logos.logos-grid .slider-logos .block-logos-section {
	flex: 0 0 calc((100% - (var(--hm-cols) - 1) * var(--hm-gap)) / var(--hm-cols));
	width: auto;
	min-width: 0;
}
body.home-view .home .section-logos .block-logos-section {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 56px;
	padding: 0 8px;
	border: var(--logo-border, 0);
	border-radius: 16px;
	background-color: var(--logo-bg, #fff);
}
body.home-view .home .section-logos .block-logos-section > a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}
body.home-view .home .section-logos .block-logos-section img {
	max-width: 100%;
	max-height: 32px;
	object-fit: contain;
}
body.home-view .home .section-logos.logos-slider .block-logos-section {
	margin: 0 3px;
	padding: 0 8px;
}
body.home-view .home .section-logos.logos-slider .slider-logos {
	margin: 0;
}
/* the brands module: hidden until its brands arrive; a brand without a logo shows its name; «All brands» link */
body.home-view .home .section-logos[hidden] {
	display: none;
}
body.home-view .home .section-logos .logo-name {
	overflow: hidden;
	color: var(--hm-ink, #111827);
	font-size: 13px;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}
body.home-view .home .section-logos .logos-all {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: max-content;
	margin: 12px auto 0;
	color: var(--primary-color);
	font-size: 13px;
	font-weight: 700;
}

/* =====================================================================
   partners: one or two moving rows of white tiles
   ===================================================================== */
body.home-view .home .section-customers .logo-slider-2 {
	margin-top: 8px;                    /* no flex here: Swiper needs a block container to measure */
}
body.home-view .home .section-customers .logo-card {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 52px;
	padding: 0 12px;
	border-radius: 16px;
	background-color: #fff;
}
body.home-view .home .section-customers .logo-card img {
	max-width: 76px;
	max-height: 32px;
	object-fit: contain;
}

/* =====================================================================
   testimonials: photo over the top of the card, name, stars, text
   Manual reviews have no rating, so no stars; product reviews (built by
   loadProductsReviews) print their real stars.
   ===================================================================== */
body.home-view .home .testimonials-section .reviews-container {
	padding: 0 12px;
}
body.home-view .home .testimonials-section .block-testimonial {
	display: flex;
	flex-direction: column;
	align-items: center;
	height: 100%;
	margin: 0;
	padding: 0 16px 16px;
	border-radius: 28px;
	background-color: var(--hm-surface);
	text-align: center;
	overflow: visible;
}
body.home-view .home .testimonials-section .block-testimonial::before {
	content: none;                      /* legacy quote mark */
}
body.home-view .home .testimonials-section .block-testimonial .review-text {
	display: contents;
}
/* manual review photo */
body.home-view .home .testimonials-section .block-testimonial:not(.product-review) .review-thumb {
	order: 0;
	margin: -24px 0 0;
}
body.home-view .home .testimonials-section .block-testimonial .review-thumb figure {
	margin: 0;
}
body.home-view .home .testimonials-section .block-testimonial .review-thumb img {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 4px var(--hm-bg);
	background-color: var(--hm-tile);
}
body.home-view .home .testimonials-section .block-testimonial .review-author {
	order: 1;
	margin-top: 6px;
}
body.home-view .home .testimonials-section .block-testimonial .review-author > h4 {
	font-size: calc(12.5px * var(--hm-k));
	font-weight: 800;
	color: var(--hm-ink);
}
/* product review stars (no photo): under the name */
body.home-view .home .testimonials-section .block-testimonial.product-review {
	padding-top: 16px;
}
body.home-view .home .testimonials-section .block-testimonial.product-review .review-thumb {
	order: 2;
	display: flex;
	gap: 2px;
	margin: 4px 0 2px;
}
body.home-view .home .testimonials-section .block-testimonial.product-review .review-thumb svg.rate-ic {
	color: var(--hm-line);
}
body.home-view .home .testimonials-section .block-testimonial.product-review .review-thumb svg.rate-ic.active {
	color: var(--hm-star);
}
body.home-view .home .testimonials-section .block-testimonial .review-desc {
	order: 3;
	margin: 6px 0 0 !important;         /* legacy !important (.mb-4) */
}
body.home-view .home .testimonials-section .block-testimonial .review-desc > p {
	margin: 0;
	font-size: calc(12px * var(--hm-k));
	line-height: 1.85;
	color: var(--hm-ink);
	overflow-wrap: anywhere;
}
body.home-view .home .testimonials-section .block-testimonial .review-date {
	order: 4;
	margin-top: 6px;
	font-size: calc(10.5px * var(--hm-k));
	color: var(--hm-muted);
}
body.home-view .home .testimonials-section .slider-testimonials .swiper-slide {
	height: auto;
}
body.home-view .home .testimonials-section .slider-testimonials.swiper-initialized .swiper-wrapper {
	margin-bottom: 10px;
}
body.home-view .home .testimonials-section .grid-testimonials .grid-wrapper {
	gap: 8px;
	margin-top: 0;
}
body.home-view .home .testimonials-section .grid-testimonials .grid-wrapper .testimonial-card {
	width: calc(50% - 4px);
}
body.home-view .home .testimonials-section .grid-testimonials .grid-wrapper .testimonial-card .block-testimonial {
	min-height: 0;
}
body.home-view .home .testimonials-section .swiper-pagination-bullet {
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background-color: #d9dde5;
	opacity: 1;
}
body.home-view .home .testimonials-section .swiper-pagination-bullet-active {
	width: 18px;
	background-color: var(--hm-accent);
}

/* =====================================================================
   coupon: perforated ticket in the merchant's colour
   The two notches use the page background (colors_pagesBg_home).
   ===================================================================== */
body.home-view .home .section-coupon {
	padding: 0;
}
body.home-view .home .section-coupon .coupon-container {
	position: relative;
	align-items: stretch;
	margin: 0 12px;
	border-radius: 22px;
	color: #fff;
}
body.home-view .home .section-coupon .icon-box {
	position: relative;
	flex: 0 0 84px;
	max-width: 84px;
	padding: 0;
	border-radius: 0;
	border-start-start-radius: 22px;
	border-end-start-radius: 22px;
	overflow: visible;
	background-color: #ff6666;
}
body.home-view .home .section-coupon .icon-box .icon {
	width: 50px;
	height: 50px;
}
body.home-view .home .section-coupon .icon-box::after {
	top: 12px;
	bottom: 12px;
	left: auto;
	right: auto;
	inset-inline-end: -1px;
	height: auto;
	border: 0;
	border-inline-end: 2px dashed rgba(255, 255, 255, .55);
}
/* notches at both ends of the dashed line */
body.home-view .home .section-coupon .icon-box::before {
	content: "";
	position: absolute;
	inset-inline-end: -9px;
	top: -9px;
	z-index: 1;
	width: 18px;
	height: calc(100% + 18px);
	background:
		radial-gradient(circle at 50% 9px, var(--hm-bg) 0 8.5px, transparent 9px) top / 18px 18px no-repeat,
		radial-gradient(circle at 50% 9px, var(--hm-bg) 0 8.5px, transparent 9px) bottom / 18px 18px no-repeat;
}
body.home-view .home .section-coupon .coupon-card {
	flex: 1 1 auto;
	max-width: none;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 14px;
	border-radius: 22px;
	background-color: #ff6666;
}
body.home-view .home .section-coupon .icon-box + .coupon-card {
	border-start-start-radius: 0;
	border-end-start-radius: 0;
}
body.home-view .home .section-coupon .coupon-card .text .title {
	font-size: calc(17px * var(--hm-k));
	font-weight: 800;
	line-height: 1.4;
}
body.home-view .home .section-coupon .coupon-card .text .subtitle {
	margin-top: 1px;
	font-size: calc(11px * var(--hm-k));
	font-weight: 400;
}
body.home-view .home .section-coupon .coupon-card .coupon-box {
	justify-content: stretch;
	margin: 0;
}
body.home-view .home .section-coupon .coupon-card .coupon-box .coupon-item {
	flex: 1 1 auto;
	gap: 6px;
	height: auto;
	padding: 4px;
	border: 1px dashed transparent;      /* coupon_color (inline) colours this edge */
	border-radius: 999px;
	background-color: rgba(255, 255, 255, .2);
}
body.home-view .home .section-coupon .coupon-card .coupon-box .coupon-code {
	order: -1;
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	overflow-wrap: anywhere;
	font-size: calc(13.5px * var(--hm-k));
	font-weight: 800;
	letter-spacing: 2px;
	line-height: 1.3;
	color: #fff;
	direction: ltr;
}
body.home-view .home .section-coupon .coupon-card .coupon-box .coupon-copy {
	flex: 0 0 auto;
	gap: 5px;
	height: 36px;
	padding: 0 14px;
	border-radius: 999px;
	background-color: #fff;
	color: var(--hm-danger);
	font-size: calc(11.5px * var(--hm-k)) !important;   /* legacy !important */
	font-weight: 700;
}
body.home-view .home .section-coupon .coupon-card .coupon-box .coupon-copy svg.copy-icon {
	color: currentColor;
}

/* =====================================================================
   blog: cards with the date on the photo
   ===================================================================== */
body.home-view .home .section-blog .posts-container .post-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-content: start;
	gap: 8px;
	height: 100%;
	padding: 8px 8px 12px;
	border-radius: 22px;
	background-color: var(--blog-bg-color, #fff);
	color: var(--hm-ink);
}
body.home-view .home .section-blog .posts-container .post-card .image {
	grid-row: 1;
	grid-column: 1;
	height: var(--blog-image-size, auto);
	min-height: 0;
	aspect-ratio: 4 / 3;
	border-radius: 16px;
	overflow: hidden;
}
body.home-view .home .section-blog .posts-container .post-card .post-content {
	display: contents;
}
body.home-view .home .section-blog .posts-container .post-card .post-content .texts {
	padding: 0 6px;
}
body.home-view .home .section-blog .posts-container .post-card .post-content .post-title {
	margin: 0 0 3px;
	font-size: var(--blog-title-size, calc(14px * var(--hm-k)));
	font-weight: var(--blog-title-weight, 700);
	line-height: 1.5;
}
body.home-view .home .section-blog .posts-container .post-card .post-content .post-desc {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0;
	font-size: var(--blog-desc-size, calc(11.5px * var(--hm-k)));
	line-height: 1.75;
	color: var(--blog-desc-color, var(--hm-muted));
}
/* the date sits on the bottom corner of the photo */
body.home-view .home .section-blog .posts-container .post-card:has(.image) .post-content .date {
	grid-row: 1;
	grid-column: 1;
	align-self: end;
	justify-self: start;
	z-index: 1;
	margin: 0 8px 8px;
}
body.home-view .home .section-blog .posts-container .post-card .post-content .date {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	width: fit-content;
	margin: 0 6px;
	padding: 3px 9px;
	border-radius: 999px;
	background-color: rgba(255, 255, 255, .92);
	color: var(--blog-date-color, var(--hm-ink));
	font-size: calc(10px * var(--hm-k));
	font-weight: 700;
}
body.home-view .home .section-blog .posts-container .post-card .post-content .date > span {
	direction: ltr;
}
body.home-view .home .section-blog .posts-container .swiper-pagination-bullet {
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background-color: #d9dde5;
	opacity: 1;
}
body.home-view .home .section-blog .posts-container .swiper-pagination-bullet-active {
	width: 18px;
	background-color: var(--hm-accent);
}
body.home-view .home .section-blog .posts-container .grid-wrapper {
	gap: 8px;
	margin: 0 12px;
}
body.home-view .home .section-blog .grid-view.in-row-2 .blog-post-card {
	flex: 0 0 calc(50% - 4px);
	width: calc(50% - 4px);
}

/* =====================================================================
   faq-section: white card, dashed separators, round +/- button
   qBgColor / qColor / qSize / qWeight / aColor / aSize / aWeight stay as
   CSS variables from the section.
   ===================================================================== */
body.home-view .home .section-faq {
	padding: 0;
}
body.home-view .home .section-faq .faqs-list {
	max-width: none;
	margin: 0 12px;
	width: auto;
	padding: 4px 14px;
	border-radius: 22px;
	background-color: var(--question-bg-color, var(--hm-surface));
}
body.home-view .home .section-faq .list-accordion#faqAccordion {
	gap: 0;
}
body.home-view .home .section-faq .faq-item + .faq-item {
	border-top: 2px dashed var(--hm-line) !important;   /* legacy !important (border: 0) */
}
body.home-view .home .section-faq .faq-item h4 {
	gap: 10px;
	min-height: 46px;
	margin: 0;
	padding: 10px 0;
	border: 0;
	border-radius: 0;
	background-color: transparent;
	color: var(--question-color, var(--hm-accent));
	font-size: var(--question-font-size, calc(12px * var(--hm-k)));
	font-weight: var(--question-font-weight, 500);
	line-height: 1.6;
	text-align: start;
}
body.home-view .home .section-faq .q-background .faq-item h4 {
	padding: 10px 0;
}
body.home-view .home .section-faq .faq-item h4 .faq-toggle-ic {
	position: relative;
	top: 0;
	right: auto;
	flex: 0 0 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background-color: var(--hm-soft-1);
}
body.home-view .home .section-faq .faq-item h4 .faq-toggle-ic svg.ico {
	color: var(--question-color, var(--hm-accent));
}
body.home-view .home .section-faq .faq-item .content-faq {
	margin: 0;
	padding: 0 0 12px;
	font-size: var(--answer-font-size, calc(11.5px * var(--hm-k)));
	line-height: 1.8;
	color: var(--answer-color, var(--hm-muted));
	display: block;
}
/* points stay above the strip (a pin near the bottom edge is still visible and tappable);
   the full-size points layer lets taps through to the strip */
body.home-view .home .section-lookbook .image-container .products {
	z-index: 3;
	pointer-events: none;
}
body.home-view .home .section-lookbook .image-container .products .product-point {
	pointer-events: auto;
}

/* room for the photo over the card top (padding, so it never collapses into the title) */
body.home-view .home .testimonials-section :is(.testimonial-card, .swiper-slide) {
	padding-top: 24px;
}

/* =====================================================================
   auto-products "big slider" (slick, getBigSliderOptions in main.js)
   Legacy hid every .big-slider until Swiper marked it initialised; this
   one is a slick slider, so it stayed invisible. Shown once slick runs.
   ===================================================================== */
body.home-view .home .auto-products-section .products-slider-home.big-slider.slick-initialized {
	opacity: 1;
	margin: 0;
}
body.home-view .home .auto-products-section .products-slider-home.big-slider .slick-track {
	display: flex;
	align-items: stretch;
}
body.home-view .home .auto-products-section .products-slider-home.big-slider .slick-slide {
	height: auto;
	margin: 0;
	padding: 0 6px;
	background: none;
}
body.home-view .home .auto-products-section .products-slider-home.big-slider .slick-slide.product-item-slide {
	max-width: none;
}

/* =====================================================================
   Mobile slider widths (main.js now starts these sliders at the edge on
   phones: video-stories Swiper, video-slider slick variableWidth,
   testimonials Swiper slidesPerView 'auto'). 768px and up unchanged.
   ===================================================================== */
@media (max-width: 767.98px) {
	body.home-view .home section.section-video-slider .slider .card {
		width: 256px;
		margin: 0 5px;
	}
	body.home-view .home section.section-video-slider .slider .slick-list {
		padding: 0 9px;
	}
	body.home-view .home .testimonials-section .slider-testimonials .swiper-slide {
		width: 240px;
	}
}


/* ---------- card / load-more icons (icon system; they replace the old ::before / ::after masks) ---------- */

/* small products slider / auto products: a plus instead of the bag, also on the options link */

/* horizontal rows: plus on add / options, bell on notify */

/* load more: chevron down, an arrow for auto products; hidden while loading */
body.home-view .home .grid-load-more-button .load-more-btn svg.hm-more-down {
	display: inline-block;
}
body.home-view .home .auto-products-section .grid-load-more-button .load-more-btn svg.hm-more-down {
	display: none;
}
body.home-view .home .auto-products-section .grid-load-more-button .load-more-btn svg.hm-more-arrow {
	display: inline-block;
}
body.home-view .home .grid-load-more-button .load-more-btn:has(> span.d-none) svg.hm-more-ic {
	display: none;
}
/* testimonials: the avatar circle matches the photo on the home page */
body.home-view .home .testimonials-section .block-testimonial .review-thumb .review-avatar {
	width: 48px;
	height: 48px;
	box-shadow: 0 0 0 4px var(--hm-bg);
	background-color: var(--hm-tile);
}
/* rating / sold row: the system icons (16px) must not widen the card's auto columns (the image would grow with them) */

/* ---------- one height per row (all widths):  the cut line and the button sit at the bottom of every card ----------
   (cards already stretch to the row; the 57px button area plus its 3px gap is kept as bottom padding,
   so the buttons of a row line up whatever the name length, old price or countdown) */

/* .card-buttons stays in place (the quick-view button inside it is positioned from the card); its cut line and
   its button are placed from the card's bottom edge */

/* =====================================================================
   Wide home (768px and up)
   Every section is the phone design scaled by one fixed ratio per band,
   so fonts, icons, buttons, radii and inner spacing grow together:
     768-1023  zoom 1.15  (next to the tablet rail; .home already leaves its width)
     1024-1199 zoom 1.15
     1200+     zoom 1.3, content at most 1240px wide, centred
   Lengths written inside .home are local px: on screen they are x zoom.
   The layout changes by the number of columns, never by stretching.
   Under 768px nothing here applies.
   ===================================================================== */
@media (min-width: 768px) {
	body.home-view {
		--hw-z: 1.15;
		/* content width (local px): the band width minus a 20px screen margin on each side */
		--hw-max: calc(100% - 40px / 1.15);
	}
	body.home-view .home {
		zoom: var(--hw-z);
	}
	body.home-view .home > section {
		max-width: var(--hw-max);
		margin-inline: auto;
	}
	/* merchant heights stay real screen pixels: the template prints the value as --hw-h */
	body.home-view .home .banner-image[style*="--hw-h"] {
		height: calc(var(--hw-h) / var(--hw-z)) !important;     /* beats the inline height of the same setting */
	}

	/* ---------- featured products (Swiper, 3 / 4 / 5 per view from the section's breakpoints) ----------
	   the legacy desktop slider was 65% wide with shrunk side cards (scale .8 / .9, animated): here it is the
	   full content width and every card is the same, like the grids */
	body.home-view .home .products-slider-home.big-slider {
		width: 100%;
	}
	body.home-view .home .products-slider-home.big-slider .swiper-slide.product-item {
		transform: none !important;                         /* legacy !important (style.css scale .8 / .9) */
		transition: none;
	}
	/* a single card: Swiper's own centring overshoots to the far end; nothing to slide, so centre it here */
	body.home-view .home .products-slider-home.big-slider .swiper-wrapper:has(> .swiper-slide:only-child) {
		justify-content: center;
		transform: none !important;                         /* beats Swiper's inline translate */
	}
	body.home-view .home .products-slider-home.big-slider .swiper-slide.product-item:only-child {
		margin: 0 !important;                               /* beats Swiper's inline spaceBetween margin */
	}

	/* auto products "big slider" (slick 3 / 4 / 5, getBigSliderOptions): the bootstrap column flex-basis
	   (col-md-3 / col-lg-2) would override slick's slide width inside the flex track; same gap as the grids */
	body.home-view .home .auto-products-section .products-slider-home.big-slider .slick-slide {
		flex: 0 0 auto;
		padding: 0 4px;
	}

	/* ---------- product card grids: 3 columns (featured, tabs, grid, auto products) ---------- */
	body.home-view .home .products-container .row.products-list,
	body.home-view .home .auto-products-section .products-container .row.products-list {
		--hm-cols: 3;
		margin-inline: 0;
		justify-content: flex-start !important;   /* legacy !important (bootstrap .justify-content-center); an unfinished last row starts at the start side */
	}
	/* the whole list shorter than one row: centred (the count per band is repeated below) */
	body.home-view .home .products-container .row.products-list:not(:has(> .product-item-slide:nth-child(3))) {
		justify-content: center !important;
	}

	/* ---------- auto products slick: the list width is a whole multiple of the cards per view, so slick's rounded
	   slide width (Math.ceil(list / cards)) adds up exactly and no card is clipped ---------- */
	body.home-view .home .auto-products-section .products-slider-home.big-slider .slick-list {
		--hw-slick-n: 3;
		width: round(down, 100%, calc(1px * var(--hw-slick-n)));
		margin-inline: auto;
	}
}
@media (min-width: 1024px) {
	body.home-view .home .products-container .row.products-list,
	body.home-view .home .auto-products-section .products-container .row.products-list {
		--hm-cols: 4;
	}
	body.home-view .home .products-container .row.products-list:not(:has(> .product-item-slide:nth-child(4))) {
		justify-content: center !important;
	}
	body.home-view .home .auto-products-section .products-slider-home.big-slider .slick-list {
		--hw-slick-n: 4;
	}
}
@media (min-width: 1200px) {
	body.home-view {
		--hw-z: 1.3;
		--hw-max: min(calc(1240px / 1.3), calc(100% - 40px / 1.3));
	}
	body.home-view .home .products-container .row.products-list,
	body.home-view .home .auto-products-section .products-container .row.products-list {
		--hm-cols: 5;
	}
	body.home-view .home .products-container .row.products-list:not(:has(> .product-item-slide:nth-child(5))) {
		justify-content: center !important;
	}
	body.home-view .home .auto-products-section .products-slider-home.big-slider .slick-list {
		--hw-slick-n: 5;
	}
}

/* =====================================================================
   Wide home, phase A-2: top of the page (768px and up)
   The announcement bar / ad card belong to the header: not zoomed.
   ===================================================================== */
@media (min-width: 768px) {
	/* any merchant image / video height printed as --hw-h stays real screen pixels */
	body.home-view .home img[style*="--hw-h"],
	body.home-view .home video[style*="--hw-h"] {
		height: calc(var(--hw-h) / var(--hw-z)) !important;    /* beats the inline height of the same setting */
	}

	/* a negative "top space" (merchant setting) pulls a section over the previous one and its title rides on it:
	   from 768px it stops at 0; positive values still apply */
	body.home-view .home > section[style*="margin-top:-"] {
		margin-top: 0 !important;                           /* beats the inline value of that setting */
	}

	/* ---------- main slider ---------- */
	body.home-view .home .main-slider .slider-home {
		margin: 0;                                          /* the content width gives the side margins */
	}
	/* slide height: the merchant's desktop height (else the phone height) in real screen pixels;
	   without either the legacy height applies */
	body.home-view .home .main-slider .slider-home .item-slider,
	body.home-view .home .main-slider .slider-home .item-slider > a img,
	body.home-view .home .main-slider .slider-home .item-slider video {
		height: calc(var(--slider-desktop-height, var(--slider-height)) / var(--hw-z)) !important;   /* legacy !important (style.css) */
	}

	/* ---------- categories (white tiles): 4 columns, 8 from 1024px; carousel mode keeps scrolling with tiles of the same width ---------- */
	body.home-view .home .categories-slider-list .row.categories-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		margin: 0;
	}
	body.home-view .home .categories-slider-list .row.categories-slider.scroll-block {
		padding: 2px 0;
	}
	body.home-view .home .categories-slider-list .categories-slider.scroll-block .categories-slider-item {
		flex: 0 0 calc((100% - 3 * 8px) / 4);
		max-width: calc((100% - 3 * 8px) / 4);
	}

	/* ---------- banners ---------- */
	body.home-view .home .section-images .block-images-home .view-vertical,
	body.home-view .home .section-images .block-images-home .view-horizontal {
		margin: 0;
	}
	/* 768-1023 (banners one under the other): without a merchant height a banner stays within 640px on screen,
	   like the other full-width image sections; 1024+ caps are below */
	body.home-view .home .section-images .block-images-home .image-item img:not([style*="--hw-h"]) {
		max-height: calc(640px / var(--hw-z));
		object-fit: cover;
		object-position: center;
	}

	/* ---------- image with text: the merchant's desktop height in real screen pixels ---------- */
	body.home-view .home .section-images-and-text .block-single-image[style*="--desktop-image-height"],
	body.home-view .home .section-images-and-text .block-single-image[style*="--desktop-image-height"] .single-image img {
		height: calc(var(--desktop-image-height) / var(--hw-z)) !important;
	}

	/* ---------- small products slider (and auto products "small slider"): the phone card width, still scrolling ---------- */
	body.home-view .home :is(.products-sm-slider-section, .auto-products-section) .products-slider-home.small-slider > .product-item-slide {
		flex: 0 0 132px;
		max-width: 132px;
	}

	/* ---------- moving text strip: full width of the page, like on phones ---------- */
	body.home-view .home > section.section-marquee {
		max-width: none;
	}

	/* ---------- sub-categories (coloured tiles): 6 columns filling the width (categories-section.jinja adds .hw-grid) ---------- */
	body.home-view .home .small-categories-slider .icons-categories {
		padding: 2px 0;
		overflow: visible;
	}
	body.home-view .home .small-categories-slider.hw-grid .icons-categories .swiper-wrapper {
		display: grid;
		grid-template-columns: repeat(6, minmax(0, 1fr));
		gap: 6px;
		transform: none !important;                         /* no slider here */
	}
	body.home-view .home .small-categories-slider.hw-grid .icons-categories .swiper-slide {
		width: auto !important;
		margin: 0 !important;
		padding: 0;
	}
	body.home-view .home .small-categories-slider.hw-grid .icons-categories a.category-box {
		width: 100%;
	}
}
@media (min-width: 1024px) {
	body.home-view .home .categories-slider-list .row.categories-grid {
		grid-template-columns: repeat(8, minmax(0, 1fr));
	}
	body.home-view .home .categories-slider-list .categories-slider.scroll-block .categories-slider-item {
		flex: 0 0 calc((100% - 7 * 8px) / 8);
		max-width: calc((100% - 7 * 8px) / 8);
	}

	/* banner heights (1024+): a merchant height (--hw-h) is kept as it is; without one the image keeps its own proportion
	   up to 480px on screen for a full-width banner and 320px for the side-by-side ones, filled with object-fit: cover
	   from the centre; wide images under the cap are not affected */
	body.home-view .home .section-images .block-images-home .image-item img:not([style*="--hw-h"]) {
		max-height: calc(320px / var(--hw-z));
		object-fit: cover;
		object-position: center;
	}
	body.home-view .home .section-images .block-images-home .view-vertical .image-block:first-child .image-item img:not([style*="--hw-h"]),
	body.home-view .home .section-images .block-images-home .view-vertical .image-block:last-child:nth-child(even) .image-item img:not([style*="--hw-h"]) {
		max-height: calc(480px / var(--hw-z));
	}
	/* banners (stacked style): the first one full width, the next ones two side by side; a lone last one full width */
	body.home-view .home .section-images .block-images-home .view-vertical {
		flex-direction: row;
	}
	body.home-view .home .section-images .block-images-home .view-vertical .image-block {
		width: calc(50% - 4px);
	}
	body.home-view .home .section-images .block-images-home .view-vertical .image-block:first-child,
	body.home-view .home .section-images .block-images-home .view-vertical .image-block:last-child:nth-child(even) {
		width: 100%;
	}


	/* small products slider + image with text, when next to each other: side by side, in the merchant's order */
	body.home-view .home > section.products-sm-slider-section:has(+ section.section-images-and-text:not(.d-none)),
	body.home-view .home > section.section-images-and-text:has(+ section.products-sm-slider-section:not(.d-none)) {
		float: inline-start;
		width: calc((var(--hw-max) - 12px) / 2);
		max-width: none;
		margin-top: var(--s-top, var(--hm-gap, 28px));      /* a float's margin does not collapse: the same space as its partner */
		margin-inline: calc((100% - var(--hw-max)) / 2) 0;
	}
	body.home-view .home > section.products-sm-slider-section:has(+ section.section-images-and-text:not(.d-none)) + section.section-images-and-text,
	body.home-view .home > section.section-images-and-text:has(+ section.products-sm-slider-section:not(.d-none)) + section.products-sm-slider-section {
		display: flow-root;
		max-width: calc((var(--hw-max) - 12px) / 2);
		margin-inline-start: calc((100% - var(--hw-max)) / 2 + (var(--hw-max) + 12px) / 2);
		margin-inline-end: auto;
	}
	body.home-view .home > section.products-sm-slider-section:has(+ section.section-images-and-text:not(.d-none)) + section.section-images-and-text + section,
	body.home-view .home > section.section-images-and-text:has(+ section.products-sm-slider-section:not(.d-none)) + section.products-sm-slider-section + section {
		clear: both;
	}
	/* the pair has one top: «no space» on its first section, or a section above with its own bottom space / «no space»,
	   takes the default away from both (a number of their own still applies) */
	body.home-view .home > section[data-nospace]:is(.products-sm-slider-section:has(+ section.section-images-and-text:not(.d-none)), .section-images-and-text:has(+ section.products-sm-slider-section:not(.d-none))),
	body.home-view .home > section:is([style*="--s-bot"], [data-nospace]) + section:is(.products-sm-slider-section:has(+ section.section-images-and-text:not(.d-none)), .section-images-and-text:has(+ section.products-sm-slider-section:not(.d-none))):not([style*="--s-top"]) {
		margin-top: var(--s-top, 0px);
	}
	body.home-view .home > section[data-nospace]:is(.products-sm-slider-section:has(+ section.section-images-and-text:not(.d-none)), .section-images-and-text:has(+ section.products-sm-slider-section:not(.d-none))) + section:not([style*="--s-top"]),
	body.home-view .home > section:is([style*="--s-bot"], [data-nospace]) + section:is(.products-sm-slider-section:has(+ section.section-images-and-text:not(.d-none)), .section-images-and-text:has(+ section.products-sm-slider-section:not(.d-none))) + section:not([style*="--s-top"]) {
		margin-top: 0;
	}
}

/* =====================================================================
   Wide home, phase A-3 (768px and up): the lower sections
   --hw-narrow: the two-column sections (deal of the week, single product,
   before / after, collage) at most 990 screen px, centred.
   ===================================================================== */
@media (min-width: 768px) {
	body.home-view {
		--hw-narrow: min(calc(990px / var(--hw-z)), var(--hw-max));
	}

	/* ---------- side margins: the container already keeps 20 screen px, the phone's inner ones go ---------- */
	body.home-view .home section .section-banner,
	body.home-view .home .products-hor-list,
	body.home-view .home .testimonials-section .grid-testimonials .grid-wrapper,
	body.home-view .home > section.section.section-logos.logos-grid .slider-logos,
	body.home-view .home .section-coupon .coupon-container,
	body.home-view .home .section-comparison .comparison-block,
	body.home-view .home .section-blog .posts-container .grid-wrapper,
	body.home-view .home .section-faq .faqs-list,
	body.home-view .home .section-images-grid .section-block[style*="background-color"] {
		margin-inline: 0;
	}
	body.home-view .home .products-hor-list,
	body.home-view .home .section-images-grid .section-block:not([style*="background-color"]) {
		padding-inline: 0;
	}
	/* a product section's banner is a full-width image: at most 640 screen px tall unless the merchant set a height */
	body.home-view .home section .section-banner .banner-image:not([style*="--hw-h"]) {
		max-height: calc(640px / var(--hw-z));
	}

	/* ---------- deal of the week / single product ----------
	   the background and ticker run edge to edge; the content sits in the narrow middle column.
	   Without the merchant's side image: the module's gallery beside its text (product-card.css).
	   With it: the module (phone layout) and the side image next to each other, the title inside the image
	   as before (the separate title stays hidden, as the legacy desktop did). */
	body.home-view .home > section.section.single-product.single-product {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, var(--hw-narrow)) minmax(0, 1fr);
		align-items: start;
		gap: 0;
		max-width: none;
		padding: 0 0 24px;
	}
	body.home-view .home > section.section.single-product.single-product.with-desktop-image {
		grid-template-columns: minmax(0, 1fr) minmax(0, calc((var(--hw-narrow) - 20px) * .42)) 20px minmax(0, calc((var(--hw-narrow) - 20px) * .58)) minmax(0, 1fr);
		align-items: center;               /* both columns centred; the image does not follow the module's height */
	}
	body.home-view .home > section.single-product > * {
		grid-column: 2;
		min-width: 0;
	}
	body.home-view .home > section.single-product > .pc--one {
		margin: 0;
	}
	body.home-view .home > section.single-product > .product-ticker {
		grid-column: 1 / -1;
	}
	body.home-view .home > section.single-product.with-desktop-image > .product-ticker {
		margin-bottom: 16px;
	}
	body.home-view .home > section.single-product.with-desktop-image > .section-top {
		display: none;
	}
	body.home-view .home > section.single-product.with-desktop-image > .desktop-block {
		grid-column: 4;
		width: auto;
		height: auto;
		aspect-ratio: 5 / 6;                /* about the old module's proportions (the schema has no height setting) */
		border-radius: 24px;
		background-size: cover;
		background-position: center;
	}


	/* ---------- logos grid: 4 per row, 8 from 1024 (the in-row setting is the phone's; the legacy desktop ignored it too) ---------- */
	body.home-view .home > section.section-logos {
		width: auto;
	}
	body.home-view .home > section.section.section-logos.logos-grid .slider-logos {
		--hm-cols: 4;
	}

	/* ---------- collage: images and text side by side, in the merchant's order ---------- */
	body.home-view .home > section.section-images-grid {
		max-width: var(--hw-narrow);
	}
	body.home-view .home .section-images-grid .section-block {
		display: flex;                                      /* the legacy flex starts at 800 */
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: center;
		gap: 24px;
		width: auto;
		margin-inline: 0;
	}
	body.home-view .home .section-images-grid .section-block > :is(.images-grid, .text-block) {
		flex: 1 1 0;
		width: auto;
		min-width: 0;
		margin-top: 0;
	}

	/* ---------- testimonials (grid view): 2 per row, 4 from 1200 (the slider view: main.js breakpoints) ---------- */

	/* ---------- horizontal lists: 1 per row, 2 from 1024, 3 from 1200; the last row starts at the start side ---------- */
	body.home-view .home .products-hor-list.products-hor-list {
		--hm-cols: 1;
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-start !important;            /* legacy !important (bootstrap) */
		width: auto;
		max-width: none;
	}
	body.home-view .home .products-hor-list .pc--hor.pc--hor {   /* columns of horizontal cards (layout) */
		flex: 0 0 calc((100% - (var(--hm-cols) - 1) * 8px) / var(--hm-cols));
		width: auto;
		min-width: 0;
		margin: 0;
	}

	/* ---------- video slider: title on top, the cards, then arrows with the product between them ----------
	   the background runs edge to edge; to 1199 the cards swipe like the phone, from 1200 they are centred
	   (main.js: slick centerMode from 1200) */
	body.home-view .home > section.section-video-slider.section-video-slider {
		display: block;
		max-width: none;
		padding-inline: calc((100% - var(--hw-max)) / 2);
	}
	/* the merchant's height in screen px, as a minimum: the scaled cards and arrows never spill out of it */
	body.home-view .home > section.section-video-slider[style*="--hw-h"] {
		height: auto !important;                            /* beats the inline height of the same setting */
		min-height: calc(var(--hw-h) / var(--hw-z));
	}
	body.home-view .home section.section-video-slider .section-top {
		display: block;
		width: auto;
	}
	body.home-view .home section.section-video-slider .slider-container {
		width: auto;
	}
	body.home-view .home section.section-video-slider .section-top .product-container.desktop-view {
		display: none !important;                           /* legacy !important (bootstrap .d-md-block) */
	}
	body.home-view .home section.section-video-slider .info-container .product-container.d-md-none {
		display: block !important;                          /* legacy !important (bootstrap .d-md-none) */
	}
	body.home-view .home section.section-video-slider .info-container.slider-content {
		justify-content: center;
	}
	body.home-view .home section.section-video-slider .info-container .product-container {
		flex: 0 1 300px;
	}

	/* ---------- coupon and FAQ: narrower, centred ---------- */
	body.home-view .home > section.section-coupon {
		max-width: min(calc(730px / var(--hw-z)), var(--hw-max));
	}
	body.home-view .home > section.section-faq {
		display: block;
		max-width: min(calc(830px / var(--hw-z)), var(--hw-max));
	}
	body.home-view .home section.section-faq > .section-top {
		display: block;
		width: auto;
		height: auto;
	}
	/* the legacy desktop forced the title to the start (!important): the phone's centre, or the merchant's alignment */
	body.home-view .home section.section-faq > .section-top {
		text-align: center !important;
	}
	body.home-view .home section.section-faq > .section-top[style*="text-align: right"] {
		text-align: right !important;
	}
	body.home-view .home section.section-faq > .section-top[style*="text-align: left"] {
		text-align: left !important;
	}
	body.home-view .home section.section-faq > .section-top[style*="text-align: start"] {
		text-align: start !important;
	}
	body.home-view .home section.section-faq > .section-top[style*="text-align: end"] {
		text-align: end !important;
	}
	body.home-view .home section.section-faq .faqs-list {
		width: auto;
		max-width: none;
	}

	/* ---------- lookbook: full width; without a merchant height the photo keeps its ratio and stays
	   at most 640 screen px tall (narrower and centred when it is square or tall), so the points stay on
	   the products ---------- */
	body.home-view .home > section.section-lookbook {
		width: auto;
	}
	body.home-view .home .section-lookbook .image-container[style*="--hw-h"] {
		height: calc(var(--hw-h) / var(--hw-z)) !important;  /* beats the inline height of the same setting */
	}
	body.home-view .home .section-lookbook .image-container:not([style*="height"]) {
		width: fit-content;
		max-width: 100%;
		margin-inline: auto;
	}
	body.home-view .home .section-lookbook .image-container:not([style*="height"]) > img {
		width: auto;
		height: auto;
		max-width: 100%;
		max-height: calc(640px / var(--hw-z));
	}

	/* ---------- video: the container width; a merchant desktop height in screen px, otherwise at most 640 ---------- */
	body.home-view .home > section.section-video {
		margin-inline: auto;
		padding: 0;
	}
	body.home-view .home .section-video .video-item-block[style*="--desktop-video-height"],
	body.home-view .home .section-video .video-item-block[style*="--desktop-video-height"] video {
		height: calc(var(--desktop-video-height) / var(--hw-z)) !important;  /* legacy !important / inline phone height */
	}
	body.home-view .home .section-video .video-item-block:not([style*="--desktop-video-height"]) video {
		max-height: calc(640px / var(--hw-z));
	}
	body.home-view .home .section-video .video-item-block:not([style*="--desktop-video-fit"]) {
		object-fit: cover;                                  /* the video inherits it (legacy object-fit: inherit) */
	}

	/* ---------- partners: the rows run edge to edge like the moving strip; the title stays in the container ---------- */
	body.home-view .home > section.section-customers {
		max-width: none;
	}
	body.home-view .home > section.section-customers > .section-top {
		max-width: var(--hw-max);
		margin-inline: auto;
	}

	/* ---------- before / after: text at the start, the comparison at the end ---------- */
	body.home-view .home > section.section-comparison {
		max-width: var(--hw-narrow);
	}
	body.home-view .home > section.section-comparison:has(> .section-top) {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: center;
		column-gap: 24px;
	}
	body.home-view .home > section.section-comparison:has(> .section-top) > .section-top {
		margin: 0;
	}
	body.home-view .home > section.section-comparison:has(> .section-top) > .section-top:not([style*="text-align"]) {
		text-align: start;
	}
	body.home-view .home section.section-comparison .comparison-container {
		width: auto;
		margin: 0;
	}
	body.home-view .home > section.section-comparison:not(:has(> .section-top)) .comparison-container {
		max-width: calc(50% - 12px);
		margin-inline: auto;
	}

	/* ---------- blog (grid view): 2 per row, 3 from 1024 (the slider view: the section's Swiper breakpoints) ---------- */
	body.home-view .home .section-blog .grid-view .blog-post-card.blog-post-card {
		flex: 0 0 calc(50% - 4px);
		width: calc(50% - 4px);
	}
}
/* video slider, 768-1199: the phone's swiping cards */
@media (min-width: 768px) and (max-width: 1199.98px) {
	body.home-view .home section.section-video-slider .slider .card {
		width: 256px;
		margin: 0 5px;
	}
}
@media (min-width: 1024px) {
	body.home-view .home > section.section.section-logos.logos-grid .slider-logos {
		--hm-cols: 8;
	}
	body.home-view .home .products-hor-list.products-hor-list {
		--hm-cols: 2;
	}
	
	body.home-view .home .section-blog .grid-view .blog-post-card.blog-post-card {
		flex-basis: calc((100% - 16px) / 3);
		width: calc((100% - 16px) / 3);
	}
}
@media (min-width: 1200px) {
	body.home-view .home .testimonials-section .grid-testimonials .grid-wrapper .testimonial-card {
		width: calc(25% - 6px);
	}
	body.home-view .home .products-hor-list.products-hor-list {
		--hm-cols: 3;
	}
	
	/* three cards or fewer: shown together, centred, the phone's card width */
	body.home-view .home section.section-video-slider .slider.single-centered .slick-track .card {
		width: 256px !important;                            /* legacy !important (280px) */
	}
}


/* =====================================================================
   Space between the home sections: one mechanism. Every section gets the same top margin (--hm-gap: the general
   setting «المسافة بين أقسام الرئيسية», 28px medium on phones, larger with the page zoom on wider screens); the old
   .section 10px margins and the sections' own outer margins give way to it. A section's top / bottom space above 0
   (--s-top / --s-bot, written by the section) is used exactly instead of the default on that side; «no space»
   (data-nospace) clears both sides except a side with its own number. Margins collapse as normal blocks, so an empty
   or hidden section leaves no space and two values meeting give the larger one. Coloured / full-width sections keep
   their inner padding; the space between them shows the page background (the same rhythm everywhere, no seam).
   New sections follow automatically: their root is a <section> under .home with the same two variables.
   ===================================================================== */
body.home-view .home > section {
	margin-top: var(--s-top, var(--hm-gap, 28px));
	margin-bottom: var(--s-bot, 0px);
}
/* right after a section with its own bottom space or with «no space»: the default top gives way (also past one
   element between them, such as a section's script) */
body.home-view .home > section:is([style*="--s-bot"], [data-nospace]) + section:not([style*="--s-top"]),
body.home-view .home > section:is([style*="--s-bot"], [data-nospace]) + :not(section) + section:not([style*="--s-top"]) {
	margin-top: 0;
}
body.home-view .home > section[data-nospace] {
	margin-top: var(--s-top, 0px);
	margin-bottom: var(--s-bot, 0px);
}
/* the first section: a full-width slider or video sits right under the header; a content section keeps the space */
body.home-view .home > section:first-of-type:is(.main-slider, .section-video) {
	margin-top: var(--s-top, 0px);
}
/* the last section: one space before the footer (the footer's own margin gives way on the home page) */
body.home-view .home > section:last-of-type:not([data-nospace]) {
	margin-bottom: var(--s-bot, var(--hm-gap, 28px));
}
body.home-view footer.footer.ft {
	margin-top: var(--hm-foot, 0px);
}
