/* =====================================================================
   Public catalogue: /produits/, category pages, product pages.
   Uses the design tokens of the usine-child theme / Elementor kit.
   Logical properties so Arabic (RTL) mirrors automatically.
   ===================================================================== */

.ucp { display: block; padding-bottom: 8px; }
.ucp-wrap { width: 100%; max-width: var(--uc-max, 1280px); margin-inline: auto; padding-inline: var(--uc-gutter, 48px); box-sizing: border-box; }
.ucp *, .ucp *::before, .ucp *::after { box-sizing: border-box; }
.ucp ul { list-style: none; margin: 0; padding: 0; }
/* 0.9.8 (T17): zero-specificity default — every component's own image rule (height: 100%, object-fit…) now wins.
   Before, « .ucp img { height: auto } » beat single-class rules (.uch-slide__img, .ucp-card__img, .ucp-prod__img), so pictures
   did not fill their frames (beige band under the phone carousel, photo smaller than its box). */
:where(.ucp) img { max-width: 100%; height: auto; }
:root { --uc-img-r: 24px; }   /* one radius for every photo frame */
@media (max-width: 767px) { :root { --uc-img-r: 18px; } }
[dir="rtl"] .ucp-flip, [dir="rtl"] .ucp-arrow > span[aria-hidden], [dir="rtl"] .ucp-pager__arrow > span[aria-hidden] { display: inline-block; transform: scaleX(-1); }

.ucp-h2 { margin: 0; font-family: var(--uc-stack-display); font-size: 40px; line-height: 1.12; font-weight: 500; color: var(--color-charcoal); }
.ucp-h2--small { font-size: 24px; }

/* ---------- breadcrumb ---------- */
.ucp-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0; padding: 0; list-style: none; font-size: 13.5px; line-height: 1.5; }
.ucp-crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.ucp-crumbs li + li::before { content: "/"; margin-inline: 10px; opacity: .6; }
.ucp-crumbs a { display: inline-flex; align-items: center; min-height: 32px; color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; } /* 32px tall: easy to tap */
.ucp-crumbs a:hover { text-decoration-thickness: 2px; }
.ucp-crumbs [aria-current] { font-weight: 600; overflow-wrap: anywhere; }

/* ---------- page head (organic panel) ---------- */
.ucp-head {
	position: relative; isolation: isolate; overflow: hidden;
	margin: 24px var(--uc-gutter, 48px) 0; border-radius: var(--uc-radius-xl, 48px);
	background: var(--color-beige); color: var(--color-charcoal);   /* T10: light beige panel, dark text */
}
@media (min-width: 1329px) { .ucp-head { max-width: calc(var(--uc-max, 1280px) - 2 * var(--uc-gutter, 48px) + 96px); margin-inline: auto; } }
/* 0.9.8 (T17): no decorative blobs behind the head (they only took room); the photo-background variant keeps its veil below */
.ucp-head::after { content: ""; position: absolute; z-index: -1; pointer-events: none; display: none; }
.ucp-head__bg { position: absolute; inset: 0; z-index: -2; }
.ucp-head__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ucp-head--bg { color: #FFFFFF; }   /* over a photo: dark veil + white text */
.ucp-head--bg::after {
	display: block; inset: 0; width: auto; height: auto; border-radius: 0; opacity: 1; z-index: -1;
	background: linear-gradient(90deg, rgba(51, 47, 45, .88) 0%, rgba(51, 47, 45, .7) 45%, rgba(51, 47, 45, .2) 100%);
}
[dir="rtl"] .ucp-head--bg::after { background: linear-gradient(270deg, rgba(51, 47, 45, .88) 0%, rgba(51, 47, 45, .7) 45%, rgba(51, 47, 45, .2) 100%); }
.ucp-head__inner { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; min-height: 0; }   /* T17: height = content */
.ucp-head__text { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 28px 40px 30px; max-width: 760px; }
.ucp-head .ucp-crumbs { color: inherit; margin-bottom: 0; }
.ucp-head__eyebrow { color: var(--color-olive-deep) !important; }
.ucp-head--bg .ucp-head__eyebrow { color: #FFFFFF !important; }
.ucp-head__title { margin: 0; font-family: var(--uc-stack-display); font-size: 50px; line-height: 1.04; font-weight: 500; color: inherit; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.ucp-head__count { margin: 0; font-size: 16px; color: inherit; overflow-wrap: anywhere; }
html[lang^="ar"] .ucp-head__title { letter-spacing: 0; line-height: 1.35; }

.ucp-search { position: relative; display: flex; align-items: center; width: 100%; max-width: 560px; margin-top: 6px; }
.ucp-search > .ucx-icon { position: absolute; inset-inline-start: 18px; color: var(--color-olive-deep); width: 20px; height: 20px; pointer-events: none; }
.ucp-search input[type="search"] {
	width: 100%; height: 52px; margin: 0; padding-block: 0; padding-inline: 50px 132px;
	border: 0; border-radius: 999px; background: var(--color-surface); color: var(--color-charcoal);
	font-family: var(--uc-stack-body); font-size: 16px; -webkit-appearance: none; appearance: none;
	border: 1px solid var(--color-sand); box-shadow: 0 10px 30px rgba(51, 47, 45, .10); text-overflow: ellipsis;
}
.ucp-search input[type="search"]::placeholder { color: #6E6660; opacity: 1; }
.ucp-search input[type="search"]:focus { outline: 3px solid var(--color-terracotta); outline-offset: 2px; }
.ucp-search input::-webkit-search-cancel-button { display: none; }
.ucp-search__btn {
	position: absolute; inset-inline-end: 5px; height: 42px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--color-terracotta-deep); color: #fff; font-family: var(--uc-stack-body); font-size: 15px; font-weight: 600;
}
.ucp-search__btn:hover, .ucp-search__btn:focus { background: var(--uc-hover-terracotta, #94141B); color: #fff; }
.ucp-search__btn:focus-visible { outline: 3px solid var(--color-charcoal); outline-offset: 2px; }
.ucp-clear { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; color: inherit; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ucp-clear .ucx-icon { width: 18px; height: 18px; }
.ucp-clear:hover { color: var(--color-olive-deep); }
.ucp-head--bg .ucp-clear:hover { color: #fff; }

/* category head: text + the category photo. 0.9.8 (T17): the photo takes the whole half of the panel (edge to edge, no
   organic cut-out, no white frame); the panel's rounded corners clip it, the inner edge gets the same radius. */
.ucp-head--term .ucp-head__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.ucp-head__media { position: relative; min-height: 260px; }
.ucp-head__media img, .ucp-head__placeholder {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
	border-start-start-radius: var(--uc-img-r); border-end-start-radius: var(--uc-img-r);
}
/* no category photo yet: the brand icon on a narrow strip — no big empty half-panel */
.ucp-head__media:has(> .ucp-head__placeholder) { min-height: 0; }
.ucp-head--term .ucp-head__inner:has(.ucp-head__placeholder) { grid-template-columns: minmax(0, 1fr) 160px; }
.ucp-head__placeholder { display: flex; align-items: center; justify-content: center; color: var(--color-terracotta); background: rgba(255, 255, 255, .55); }
.ucp-head__placeholder .ucx-icon { width: 56px; height: 56px; }

/* ---------- chips ---------- */
.ucp-chips { margin-top: 20px; }
.ucp-chips ul, .ucp-matchcats ul { display: flex; flex-wrap: wrap; gap: 10px; }
.ucp-chip {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px;
	border-radius: 999px; border: 1px solid var(--color-sand); background: var(--color-surface);
	color: var(--color-charcoal); font-family: var(--uc-stack-body); font-size: 14.5px; font-weight: 500; text-decoration: none; white-space: nowrap;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.ucp-chip:hover { border-color: var(--color-olive-deep); background: #FFFFFF; color: var(--color-olive-deep); }
.ucp-chip.is-current { background: var(--color-charcoal); border-color: var(--color-charcoal); color: #fff; font-weight: 600; }   /* T10: current filter = charcoal, red stays for actions */
.ucp-chip:focus-visible { outline: 3px solid var(--color-terracotta-deep); outline-offset: 2px; }
.ucp-chips--sub { margin-top: 12px; }
.ucp-chip--sub { min-height: 40px; background: var(--color-beige); border-color: transparent; font-size: 14px; }
.ucp-chip--sub.is-current { background: var(--color-terracotta-deep); border-color: var(--color-terracotta-deep); }
.ucp-chip__n { font-size: 12px; font-weight: 600; opacity: .85; }
.ucp-chip__parent { color: var(--color-ink-soft); font-size: 13px; }
.ucp-matchcats { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }

/* ---------- subcategory tiles ---------- */
.ucp-subs { margin-top: 32px; }
.ucp-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.ucp-tile {
	display: flex; flex-direction: column; height: 100%; overflow: hidden; text-decoration: none; color: var(--color-charcoal);
	background: var(--color-surface); border: 1px solid var(--color-sand); border-radius: 28px;
	transition: transform .3s ease, box-shadow .3s ease;
}
.ucp-tile:hover { transform: translateY(-3px); box-shadow: var(--uc-shadow-card); color: var(--color-charcoal); }
.ucp-tile__media { display: block; aspect-ratio: 4 / 3; background: var(--color-beige); border-radius: 0; overflow: hidden; }   /* T17: straight edge, photo fills; the tile's corners clip it */
.ucp-tile__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 0.9.1: Green House icon when a category has no image — T17: a short band, not a big empty picture area */
.ucp-tile__media--empty { display: flex; align-items: center; justify-content: center; aspect-ratio: 5 / 2; }
.ucp-tile__media--empty .ucx-default-icon { width: auto; height: 56%; object-fit: contain; }
.ucp-head__placeholder .ucx-default-icon { position: static; width: 110px; height: auto; object-fit: contain; border-radius: 0; background: none; }
.ucp-tile__body { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px 20px; }
.ucp-tile__name { font-family: var(--uc-stack-display); font-size: 23px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.ucp-tile__count { font-size: 13.5px; color: var(--color-ink-soft); }
.ucp-tile:focus-visible { outline: 3px solid var(--color-olive-deep); outline-offset: 3px; }

/* ---------- product grid + cards ---------- */
.ucp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.ucp-card { height: 100%; }
.ucp-card__link {
	display: flex; flex-direction: column; height: 100%; overflow: hidden; text-decoration: none; color: var(--color-charcoal);
	background: #FFFFFF; border: 1px solid var(--color-sand); border-radius: 28px;   /* T10: white cards */
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.ucp-card__link:hover { transform: translateY(-3px); box-shadow: var(--uc-shadow-card); border-color: var(--color-olive-deep); color: var(--color-charcoal); }
.ucp-card__link:focus-visible { outline: 3px solid var(--color-olive-deep); outline-offset: 3px; }
/* 0.9.8 (T17): the photo fills the top of the card edge to edge (the card's rounded corners clip it — corners always match).
   Square photos (all current products) fill exactly, nothing cut; a future wide/tall photo is shown whole with its own rounded corners. */
.ucp-card__media {
	position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1;
	padding: 0; background: var(--color-surface); border-radius: 0; overflow: hidden;
}
.ucp-card__img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; transition: transform .5s var(--uc-ease); }
.ucp-card__img.is-wide, .ucp-card__img.is-tall { width: auto; height: auto; max-width: calc(100% - 20px); max-height: calc(100% - 20px); object-fit: contain; border-radius: calc(var(--uc-img-r) - 8px); }
.ucp-card__media:has(> .ucp-card__noimg) { aspect-ratio: 2 / 1; background: var(--color-beige); }   /* no photo yet: a short note, not a big empty square */
.ucp-card__link:hover .ucp-card__img { transform: scale(1.03); }
.ucp-card__noimg { font-size: 13px; color: var(--color-ink-soft); }
.ucp-card__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px 20px; }
.ucp-card__cat { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--color-olive-deep); line-height: 1.4; overflow-wrap: anywhere; }
html[lang^="ar"] .ucp-card__cat { letter-spacing: 0; text-transform: none; font-size: 13px; }
.ucp .ucp-card__name { margin: 0; font-family: var(--uc-stack-body); font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--color-charcoal); overflow-wrap: anywhere; }
.ucp-card__dims { margin: 0; font-size: 13.5px; color: var(--color-ink-soft); }

/* ---------- pagination ---------- */
.ucp-pager { margin-top: 40px; }
.ucp-pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ucp-pager__num, .ucp-pager__arrow, .ucp-pager__gap {
	display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 46px; padding: 0 12px;
	border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none;
}
.ucp-pager__num, .ucp-pager__arrow { border: 1px solid var(--color-sand); background: var(--color-surface); color: var(--color-charcoal); }
.ucp-pager__arrow { font-size: 22px; line-height: 1; }
.ucp-pager a:hover { background: var(--color-beige); border-color: var(--color-olive-deep); color: var(--color-olive-deep); }
.ucp-pager__num.is-current { background: var(--color-charcoal); border-color: var(--color-charcoal); color: #fff; }
.ucp-pager a:focus-visible { outline: 3px solid var(--color-terracotta-deep); outline-offset: 2px; }

/* ---------- empty state ---------- */
.ucp-empty {
	display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
	margin-top: 24px; padding: 32px 24px; background: var(--color-beige); border: 1px dashed var(--color-sand); border-radius: var(--uc-img-r);
}
.ucp-empty p { margin: 0 0 8px; max-width: 46ch; color: var(--color-ink-soft); }
.ucp-empty .ucp-h2 { font-size: 30px; }
.ucp-empty__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: #FFFFFF; color: var(--color-terracotta); }

/* ---------- product page ---------- */
.ucp-wrap--crumbs { padding-top: 24px; color: var(--color-ink-soft); }
.ucp-wrap--crumbs .ucp-crumbs a { color: var(--color-ink-soft); }
.ucp-wrap--crumbs .ucp-crumbs a:hover { color: var(--color-olive-deep); }
.ucp-prod {
	display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 56px; align-items: center;
	width: 100%; max-width: var(--uc-max, 1280px); margin: 20px auto 0; padding-inline: var(--uc-gutter, 48px);
	overflow-x: clip;
}
.ucp-prod__media { position: relative; min-width: 0; }
/* 0.9.8 (T17): the photo IS the frame — no beige box, no inner padding, no floor ellipse, no blob, no shadow box.
   The picture keeps its own proportions (never cropped or stretched: width/height auto inside max limits) and carries the
   rounded corners itself, so the corners always match the visible picture — square, wide or tall, now and for future photos. */
.ucp-prod__stage { display: flex; justify-content: center; align-items: flex-start; }
.ucp-prod__img {
	display: block; width: auto; height: auto; max-width: 100%; max-height: min(80vh, 760px);
	object-fit: contain; border-radius: var(--uc-img-r); background: var(--color-surface);
}
/* no photo yet: a small rounded note, not a big empty square waiting for a picture */
.ucp-prod__stage:has(> .ucp-card__noimg) { padding: 28px 20px; border-radius: var(--uc-img-r); background: var(--color-beige); }
.ucp-prod__info { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.ucp-back {
	display: inline-flex; align-items: center; gap: 12px; min-height: 40px; margin-bottom: 8px;
	color: var(--color-charcoal); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
}
html[lang^="ar"] .ucp-back { letter-spacing: 0; font-size: 14px; }
.ucp-back__line { display: inline-block; width: 1px; height: 30px; background: var(--color-charcoal); transition: height .2s ease; }
.ucp-back:hover { color: var(--color-terracotta-deep); }
.ucp-back:hover .ucp-back__line { background: var(--color-terracotta-deep); height: 38px; }
.ucp-prod__name { margin: 0; font-family: var(--uc-stack-display); font-size: 60px; line-height: 1.04; font-weight: 500; color: var(--color-charcoal); letter-spacing: -0.01em; overflow-wrap: anywhere; }
html[lang^="ar"] .ucp-prod__name { letter-spacing: 0; line-height: 1.35; }
.ucp-prod__sub { margin: 0; font-family: var(--uc-stack-display); font-style: italic; font-size: 26px; line-height: 1.3; color: var(--color-ink-soft); }
html[lang^="ar"] .ucp-prod__sub { font-style: normal; font-size: 22px; }
.ucp-specs { width: 100%; max-width: 520px; margin: 14px 0 6px; }
.ucp-specs > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--color-sand); }
.ucp-specs > div:last-child { border-bottom: 1px solid var(--color-sand); }
.ucp-specs dt { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--color-ink-soft); padding-top: 3px; }
html[lang^="ar"] .ucp-specs dt { letter-spacing: 0; text-transform: none; font-size: 14px; padding-top: 0; }
.ucp-specs dd { margin: 0; font-size: 16px; color: var(--color-charcoal); overflow-wrap: anywhere; }
.ucp-specs dd a { color: var(--color-terracotta-deep); text-underline-offset: 3px; }
.ucp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.ucp-cta .ucx-icon { width: 20px; height: 20px; }
.ucp-note { margin: 4px 0 0; max-width: 46ch; font-size: 14px; color: var(--color-ink-soft); }

/* related products: beige band, ghost word, scroll row with arrows (reference 3) */
.ucp-related {
	position: relative; isolation: isolate; overflow: hidden;
	margin: 56px var(--uc-gutter, 48px) 0; padding: 44px 44px 36px;
	background: var(--color-beige); border-radius: 56px / 40px;
}
@media (min-width: 1329px) { .ucp-related { max-width: calc(var(--uc-max, 1280px) - 2 * var(--uc-gutter, 48px) + 96px); margin-inline: auto; } }
.ucp-related__ghost {
	position: absolute; z-index: -1; inset-inline: 0; top: 8px; text-align: center; white-space: nowrap; overflow: hidden;
	font-family: var(--uc-stack-display); font-size: clamp(90px, 13vw, 190px); line-height: 1; font-weight: 600; color: #FFFFFF; opacity: .7; pointer-events: none;
}
.ucp-related__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.ucp-related__head > div:first-child { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ucp-related .uc-eyebrow { color: var(--color-olive-deep); } /* dark red: 5.4:1 on the beige band */
.ucp-related__nav { display: flex; gap: 10px; flex: none; }
.ucp-arrow {
	display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; cursor: pointer;
	border-radius: 14px; border: 1px solid var(--color-charcoal); background: transparent; color: var(--color-charcoal); font-size: 24px; line-height: 1;
}
.ucp-arrow:hover:not(:disabled), .ucp-arrow:focus:not(:disabled) { background: var(--color-charcoal); color: #FFFFFF; border-color: var(--color-charcoal); }
.ucp-arrow:disabled { opacity: .35; cursor: default; }
.ucp-arrow:focus-visible { outline: 3px solid var(--color-olive-deep); outline-offset: 2px; }
.ucp-row {
	display: grid; grid-auto-flow: column; grid-auto-columns: 250px; gap: 20px;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
	padding: 4px 4px 16px; margin: -4px -4px 0; scrollbar-width: thin; scrollbar-color: var(--color-olive) transparent;
}
.ucp-row > li { scroll-snap-align: start; }
.ucp-row .ucp-card__link { background: var(--color-surface); }
.ucp-related__all { margin-top: 20px; }

/* ---------- 0.9.0: photo gallery (product + set pages), set cards, suggested sets ---------- */
.ucp-thumbs { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.ucp-thumb {
	display: block; width: 76px; height: 76px; padding: 0; cursor: pointer; overflow: hidden;   /* T17: the photo fills the thumbnail */
	background: var(--color-surface); border: 2px solid var(--color-sand); border-radius: 16px; transition: border-color .2s ease, transform .2s ease;
}
.ucp-thumb { display: flex; align-items: center; justify-content: center; }
.ucp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.ucp-thumb img.is-wide, .ucp-thumb img.is-tall { width: auto; height: auto; max-width: calc(100% - 8px); max-height: calc(100% - 8px); object-fit: contain; border-radius: 8px; }
.ucp-thumb:hover { border-color: var(--color-olive); transform: translateY(-2px); }
.ucp-thumb.is-current { border-color: var(--color-olive-deep); box-shadow: 0 0 0 2px var(--uc-red-soft, #FBE9E9); }
.ucp-thumb:focus-visible { outline: 3px solid var(--color-terracotta-deep); outline-offset: 2px; }
.ucp-card__tag {
	position: absolute; top: 12px; inset-inline-start: 12px; padding: 4px 10px; border-radius: 999px;
	background: var(--color-terracotta-deep); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
html[lang^="ar"] .ucp-card__tag { letter-spacing: 0; text-transform: none; font-size: 12.5px; }
/* 0.9.6 (T16): product group card + group page */
.ucp-card__media { position: relative; }
.ucp-card__tag--group { background: var(--color-charcoal, #332F2D); letter-spacing: .04em; text-transform: none; max-width: calc(100% - 24px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 1; }
.ucp-card--group .ucp-card__media::after { content: ""; position: absolute; inset: auto 10px -6px 10px; height: 10px; border-radius: 0 0 14px 14px; background: var(--color-sand, #DDD1C2); z-index: -1; }
.ucp-group__desc { margin: 14px 0 0; font-size: 16px; line-height: 1.7; color: var(--color-ink-soft); white-space: pre-line; max-width: 60ch; }
.ucp-group__members { margin-top: 40px; }
.ucp-group__members .ucp-h2 { margin-bottom: 18px; }
.ucp-sets-suggest { margin-top: 36px; }
.ucp-sets-suggest .ucp-related__head { margin-bottom: 0; }
.ucp-sets-suggest .ucp-h2 { font-size: 32px; }
.ucp-sets-suggest + .ucp-grid { margin-top: 48px; }
.ucp-set__parts .ucp-grid { margin-top: 0; }
.ucp-new .ucp-wrap > .ucp-grid, .ucp-new .ucp-wrap > .ucp-empty { margin-top: 40px; }
.ucp-set__parts .ucp-card__link { background: var(--color-surface); }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
	.ucp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
	.ucp-prod { gap: 40px; }
	.ucp-prod__name { font-size: 48px; }
}
@media (max-width: 1024px) {
	.ucp-head__text { padding: 24px 28px 26px; }
	.ucp-head__title { font-size: 40px; }
	.ucp-prod { grid-template-columns: minmax(0, 1fr); gap: 32px; max-width: 720px; }
	.ucp-related { padding: 48px 32px 36px; }
	.ucp-h2 { font-size: 34px; }
}
@media (max-width: 899px) {
	.ucp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	.ucp-head--term .ucp-head__inner { grid-template-columns: minmax(0, 1fr); }
	.ucp-head--term .ucp-head__media { order: -1; min-height: 0; aspect-ratio: 16 / 8; }
	.ucp-head__media img { border-radius: 0; }   /* T17: photo edge to edge on top, the panel's corners clip it */
	.ucp-head--term .ucp-head__inner:has(.ucp-head__placeholder) { grid-template-columns: minmax(0, 1fr); }
	.ucp-head__media:has(> .ucp-head__placeholder) { display: none; }   /* no photo: no empty band */
}
@media (max-width: 767px) {
	.ucp-head { margin-top: 12px; }
	.ucp-head__inner { min-height: 0; }
	.ucp-head__text { padding: 16px 16px 18px; gap: 6px; }
	.ucp-head__title { font-size: 34px; line-height: 1.1; }
	.ucp-head__count { font-size: 15px; }
	.ucp-search { margin-top: 8px; }
	.ucp-search input[type="search"] { height: 50px; padding-inline: 44px 96px; font-size: 16px; }
	.ucp-search > .ucx-icon { inset-inline-start: 15px; }
	.ucp-search__btn { height: 40px; padding: 0 14px; font-size: 14px; }
	/* chips scroll sideways inside their own row (the page itself never scrolls sideways) */
	.ucp-chips { margin-top: 14px; margin-inline: calc(-1 * var(--uc-gutter, 16px)); }
	.ucp-chips ul { flex-wrap: nowrap; overflow-x: auto; padding: 2px var(--uc-gutter, 16px) 8px; scrollbar-width: none; }
	.ucp-chips ul::-webkit-scrollbar { display: none; }
	.ucp-chips--sub { margin-top: 4px; }
	.ucp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.ucp-tile { border-radius: 22px; }
	.ucp-tile__body { padding: 12px 14px 16px; }
	.ucp-tile__name { font-size: 19px; }
	.ucp-grid { gap: 12px; margin-top: 20px; }
	.ucp-card__link { border-radius: 22px; }
	.ucp-card__body { padding: 10px 12px 14px; }
	.ucp .ucp-card__name { font-size: 14.5px; }
	.ucp-card__dims { font-size: 12.5px; }
	.ucp-card__cat { font-size: 10.5px; }
	.ucp-prod { margin-top: 12px; }
	.ucp-prod__name { font-size: 36px; line-height: 1.1; }
	.ucp-prod__sub { font-size: 21px; }
	.ucp-specs > div { grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
	.ucp-cta { width: 100%; }
	.ucp-cta .uc-btn { flex: 1 1 100%; }
	.ucp-related { margin-top: 48px; padding: 36px 16px 28px; border-radius: 28px; }
	.ucp-related__nav { display: none; }
	.ucp-row { grid-auto-columns: 62%; gap: 12px; }
	.ucp-h2 { font-size: 28px; }
	.ucp-empty { padding: 24px 16px; margin-top: 16px; }
	.ucp-pager__num, .ucp-pager__arrow, .ucp-pager__gap { min-width: 44px; height: 44px; }
	.ucp-thumbs { flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding-bottom: 4px; scrollbar-width: none; }
	.ucp-thumbs::-webkit-scrollbar { display: none; }
	.ucp-thumb { flex: none; width: 64px; height: 64px; border-radius: 14px; }
	.ucp-sets-suggest .ucp-related__head { flex-direction: column; align-items: flex-start; }
	.ucp-sets-suggest .ucp-h2 { font-size: 26px; }
	.ucp-card__tag { top: 8px; inset-inline-start: 8px; font-size: 10px; padding: 3px 8px; }
}
@media (max-width: 359px) {
	.ucp-head__title { font-size: 30px; }
	.ucp-search__btn { padding: 0 12px; }
	.ucp-grid { gap: 10px; }
	.ucp-prod__name { font-size: 32px; }
	.ucp-specs > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
	.ucp-card__link, .ucp-tile, .ucp-card__img { transition: none; }
	.ucp-card__link:hover, .ucp-tile:hover { transform: none; }
	.ucp-card__link:hover .ucp-card__img { transform: none; }
	.ucp-row { scroll-behavior: auto; }
}
