/* ==========================================================================
   hx/collection.css — 02 The essential four (homepage)
   Markup: template-parts/home-2026/collection.php · prefix hxc-

   20 Oct 2026: rebuilt against Guerlain's Orchidée Impériale grid in a blind builder/critic
   loop (two rounds; the final version won 4 of 4 blind judgments, two critics × desktop and
   mobile). In Caviar of Switzerland's palette: graphite stages (brand ink #202221, lifted from black, 24 Oct 2026) with silver light, never navy.

   Owner decisions:
   - Each tile is the owner's own studio packshot (20 Oct): the pack on a graphite stage with a
     lit horizon and floor reflection, photographed 4:5 (wc-stage-*). This replaced the
     CSS-built stage (gradient field, horizon, contact light, box-reflect over cut-outs).
   - Four across from 1100px, near edge to edge on a 12px seam; two across below. 4:5 tiles at
     every width, so a photograph is never cropped. Every product is a peer; the Cleanse →
     Treat → Revive → Restore order reads in one row.
   - Type sizes retain the reference grid's hierarchy with a slightly more readable card scale:
     title 28/20px, lede 16px, name 16px, benefit 14px, price 16/14px.

   Selectors carry #collection: the section's rules must outrank the homepage type roles
   (hx/typeset.css) and room spacing (hx/composition.css), which load after this file.
   ========================================================================== */

html body:is(.cos-h26,.single-product) #collection{
	--hxc-gap:clamp(8px,2.6vw,16px);
	--hxc-edge:clamp(12px,3.1vw,24px);
	--hxc-text-x:clamp(8px,.85vw,12px);
	--hxc-row-gap:clamp(44px,11vw,64px);
	position:relative;
	padding-top:clamp(56px,2.5rem + 3vw,88px);
	background:var(--hx-white);
	color:var(--hx-fg-2);
}
html body:is(.cos-h26,.single-product) #collection :where(h2,h3,p,ol,li){margin:0;padding:0}

/* ─── Head: the homepage display voice, centred, close to the grid ──── */
html body:is(.cos-h26,.single-product) #collection .hxc__head{
	display:flex;
	flex-direction:column;
	align-items:center;
	gap:clamp(14px,.5rem + .7vw,20px);
	max-width:60rem;
	margin:0 auto clamp(28px,1rem + 1.6vw,44px);
	padding-inline:4px;
	text-align:center;
}
html body:is(.cos-h26,.single-product) #collection .hxc__title{
	font-family:var(--hx-serif);
	font-weight:400;
	font-size:1.25rem;                 /* 20px phones, 28px from 768px: Guerlain's measured title sizes */
	line-height:1.14;
	letter-spacing:.07em;
	margin-right:-.07em;               /* optically re-centre the trailing tracking */
	text-transform:uppercase;
	color:var(--hx-ink,#202221);
}
html body:is(.cos-h26,.single-product) #collection .hxc__lede{
	max-width:34em;                    /* two balanced lines on desktop */
	margin-inline:auto;
	font-family:var(--hx-sans);
	font-size:1rem;
	line-height:1.6;
	letter-spacing:.005em;
	color:var(--hx-fg-2,#3A3B3D);
	text-wrap:balance;
}
@media (min-width:768px){html body:is(.cos-h26,.single-product) #collection .hxc__title{font-size:1.75rem}}
@media (max-width:599px){
	html body:is(.cos-h26,.single-product) #collection .hxc__lede{max-width:30em}
}

/* ─── Grid ───────────────────────────────────────────────────────────── */
html body:is(.cos-h26,.single-product) #collection .hxc__list{
	list-style:none;
	display:grid;
	grid-template-columns:repeat(2,minmax(0,1fr));
	column-gap:var(--hxc-gap);
	row-gap:0;
	margin-inline:calc(var(--hxc-edge) - var(--hx-margin)); /* the grid runs nearer the edge than the page text */
}
html body:is(.cos-h26,.single-product) #collection .hxc__item{
	list-style:none;
	position:relative;
	display:grid;
	grid-row:span 3;                   /* stage / name + benefit / price line */
	grid-template-rows:subgrid;
	grid-template-columns:minmax(0,1fr);
}
html body:is(.cos-h26,.single-product) #collection .hxc__item::marker{content:none}
html body:is(.cos-h26,.single-product) #collection .hxc__item:nth-child(n+3){margin-top:var(--hxc-row-gap)}

@media (min-width:600px) and (max-width:1099.98px){
	html body:is(.cos-h26,.single-product) #collection .hxc__list{max-width:960px;margin-inline:auto}
}
@media (min-width:1100px){
	html body:is(.cos-h26,.single-product) #collection{
		--hxc-gap:12px;
		--hxc-edge:clamp(20px,1.67vw,32px);
	}
	html body:is(.cos-h26,.single-product) #collection > .hx-wrap{max-width:2400px;padding-inline:var(--hxc-edge)}
	html body:is(.cos-h26,.single-product) #collection .hxc__list{grid-template-columns:repeat(4,minmax(0,1fr));margin-inline:0}
	html body:is(.cos-h26,.single-product) #collection .hxc__item:nth-child(n+3){margin-top:0}
}

/* the stage and its text are one link */
html body:is(.cos-h26,.single-product) #collection .hxc__link,
html body:is(.cos-h26,.single-product) #collection .hxc__link:visited,
html body:is(.cos-h26,.single-product) #collection .hxc__link:hover{
	display:grid;
	grid-row:1 / span 3;
	grid-column:1;
	grid-template-rows:subgrid;
	justify-items:start;
	align-items:start;
	text-align:left;
	color:inherit;
	text-decoration:none;
	-webkit-tap-highlight-color:transparent;
}
html body:is(.cos-h26,.single-product) #collection .hxc__link *{text-decoration:none}

/* ─── Stage: the owner's studio photograph, filling a 4:5 tile ───────── */
html body:is(.cos-h26,.single-product) #collection .hxc__tile{
	position:relative;
	display:block;
	width:100%;
	aspect-ratio:4 / 5;
	overflow:clip;
	background:#191B1A;                /* the graphite stage photographs' own ground (24 Oct 2026): no flash before they paint */
}
html body:is(.cos-h26,.single-product) #collection .hxc__photo,
html body:is(.cos-h26,.single-product) #collection .hxc__photo img{display:block;width:100%;height:100%}
/* One horizon across the row (owner, 20 Oct: "same level"). Each photograph's horizon was
   measured (brightest floor row, as a share of its height): cleanser .7775, eye .7575, serum
   .7126, jar .6583. Every photograph is scaled about its own horizon (--hxc-s, the least scale
   that still covers the tile) and moved so the horizon lands on the cleanser's (.7775); the
   cleanser is untouched because its cap already sits nearest the top. */
html body:is(.cos-h26,.single-product) #collection .hxc__item{--hxc-hz:.7775;--hxc-s:1}
html body:is(.cos-h26,.single-product) #collection .hxc__item--eye{--hxc-hz:.7575;--hxc-s:1.026}
html body:is(.cos-h26,.single-product) #collection .hxc__item--serum{--hxc-hz:.7126;--hxc-s:1.091}
html body:is(.cos-h26,.single-product) #collection .hxc__item--cream{--hxc-hz:.6583;--hxc-s:1.181}
html body:is(.cos-h26,.single-product) #collection .hxc__photo img{
	object-fit:cover;
	transform-origin:50% calc(var(--hxc-hz) * 100%);
	transform:translateY(calc((.7775 - var(--hxc-hz)) * 100%)) scale(var(--hxc-s));
	transition:scale 1200ms var(--hx-ease);
}

/* ─── Text beneath: step, name + benefit, price · size ─────────────────── */
html body:is(.cos-h26,.single-product) #collection .hxc__verb{
	margin-top:clamp(12px,1vw,16px);
	padding-inline:var(--hxc-text-x);
	font-family:var(--hx-sans);
	font-size:.75rem;
	font-weight:500;
	line-height:1.3;
	letter-spacing:.15em;
	text-transform:uppercase;
	color:var(--hx-fg-3,#5D5F60);
}
/* name and benefit share one row, so a benefit always sits directly under its own name */
html body:is(.cos-h26,.single-product) #collection .hxc__copy{
	display:block;
	margin-top:clamp(12px,1vw,16px);
	padding-inline:var(--hxc-text-x);
}
html body:is(.cos-h26,.single-product) #collection .hxc__name{
	margin:0;
	padding:0;
	font-family:var(--hx-serif);
	font-size:1rem;
	font-weight:600;                   /* a real weight: Cormorant upright is a 300–700 variable file */
	line-height:1.18;
	letter-spacing:0;
	word-spacing:-.06em;               /* holds the long names to as few lines as possible on a phone */
	text-transform:uppercase;
	color:#111;                        /* deeper than graphite: firms up the thin serif hairlines */
	-webkit-font-smoothing:antialiased;
	font-feature-settings:"kern" 1,"lnum" 1;
	text-wrap:balance;
}
@media (min-width:600px){html body:is(.cos-h26,.single-product) #collection .hxc__name{letter-spacing:.04em;word-spacing:normal}}

html body:is(.cos-h26,.single-product) #collection .hxc__name span{
	text-decoration-line:underline;
	text-decoration-thickness:1px;
	text-underline-offset:.24em;
	text-decoration-color:transparent; /* drawn on hover / keyboard focus */
	transition:text-decoration-color 400ms var(--hx-ease);
}
html body:is(.cos-h26,.single-product) #collection .hxc__benefit{
	display:block;
	margin-top:4px;
	font-family:var(--hx-sans);
	font-size:.875rem;
	font-weight:400;
	line-height:1.35;
	letter-spacing:0;
	color:var(--hx-fg-2,#3A3B3D);
	text-wrap:pretty;
}
html body:is(.cos-h26,.single-product) #collection .hxc__meta{
	display:flex;
	flex-wrap:wrap;
	align-items:baseline;
	margin-top:10px;
	padding-inline:var(--hxc-text-x);
	font-family:var(--hx-sans);
	font-size:.875rem;
	line-height:1.4;
	letter-spacing:.01em;
	font-variant-numeric:lining-nums tabular-nums;
}
@media (min-width:768px){html body:is(.cos-h26,.single-product) #collection .hxc__meta{font-size:1rem}}
@media (min-width:1100px){html body:is(.cos-h26,.single-product) #collection .hxc__meta{margin-top:clamp(10px,.8vw,12px)}}
html body:is(.cos-h26,.single-product) #collection .hxc__price{font-weight:500;color:var(--hx-ink,#202221)}
html body:is(.cos-h26,.single-product) #collection .hxc__sep{padding-inline:.15em;color:#A7ACB2}
html body:is(.cos-h26,.single-product) #collection .hxc__size{font-weight:400;color:var(--hx-fg-3,#5D5F60)}

/* ─── Bag button: a fine pearl glyph in the photograph's bottom-right corner ──
   Owner, 20 Oct: back on the image, as on Guerlain's grid. It shares the photograph's grid
   cell (row 1) with the product link, aligned to the cell's bottom-right: a sibling of the
   link, never nested.
   Polish, 20 Oct: no opaque block. The glyph alone, drawn in a hairline pearl stroke, rests on
   the graphite stage like the silver on the packs; hover and focus draw a 1px pearl frame
   around the 44px target, and only the brief "added" confirmation fills it pearl. */
html body:is(.cos-h26,.single-product) #collection .hxc__bag,
html body:is(.cos-h26,.single-product) #collection .hxc__bag:visited{
	position:relative;
	z-index:2;
	grid-row:1;
	grid-column:1;
	align-self:end;
	justify-self:end;
	margin:0 8px 8px 0;
	display:flex;
	align-items:center;
	justify-content:center;
	width:44px;
	height:44px;
	background:transparent;
	color:rgba(252,251,248,.86);
	box-shadow:inset 0 0 0 1px rgba(252,251,248,0);
	text-decoration:none;
	transition:background-color var(--hx-dur-ui) var(--hx-ease-soft),color var(--hx-dur-ui) var(--hx-ease-soft),box-shadow var(--hx-dur-ui) var(--hx-ease-soft);
	-webkit-tap-highlight-color:transparent;
}
html body:is(.cos-h26,.single-product) #collection .hxc__bag svg{width:19px;height:19px;stroke-width:1.1}
html body:is(.cos-h26,.single-product) #collection .hxc__bag:is(:hover,:focus-visible){color:#FCFBF8;box-shadow:inset 0 0 0 1px rgba(252,251,248,.7)}
html body:is(.cos-h26,.single-product) #collection .hxc__bag.is-added{background:#FCFBF8;color:#202221;box-shadow:inset 0 0 0 1px #FCFBF8}
html body:is(.cos-h26,.single-product) #collection .hxc__bag[aria-busy="true"]{cursor:progress;opacity:.6}
html body:is(.cos-h26,.single-product) #collection .hxc__bag:focus{outline:none}
html body:is(.cos-h26,.single-product) #collection .hxc__bag:focus-visible{outline:2px solid #FCFBF8;outline-offset:3px}
/* phones: a 36px target frame tucked into the corner; the hit area stays 44×44 */
@media (max-width:599px){
	html body:is(.cos-h26,.single-product) #collection .hxc__bag{width:36px;height:36px;margin:0 6px 6px 0}
	html body:is(.cos-h26,.single-product) #collection .hxc__bag::after{content:"";position:absolute;inset:-4px}
	html body:is(.cos-h26,.single-product) #collection .hxc__bag svg{width:17px;height:17px;stroke-width:1.2}
}

/* ─── Entrance: light passes over each photograph ─────────────────────
   The homepage's one motion idea is light over polished silver (DESIGN.md Motion). As each
   tile reveals (hx-motion.js adds .is-in in ritual order, 50ms apart), a soft band of studio
   light crosses its photograph once, left to right, 900ms.

   20 Oct 2026 (animate pass): the photograph itself is never hidden, darkened or faded, so it
   is visible the moment the browser paints it, whether or not the reveal has fired (the
   earlier version waited in near darkness for 1.7s and could hold an already-loaded photo
   dark). The highlight is a separate overlay; if it never runs, nothing is missing. Text
   below fades in from intersection with no wait beyond the 50ms list stagger. Only when
   motion is allowed and the tile entered by scrolling (never .hx-instant). */
html body:is(.cos-h26,.single-product) #collection .hxc__tile::after{
	content:"";
	position:absolute;
	inset:0;
	pointer-events:none;
	background:linear-gradient(105deg,transparent 30%,rgba(255,255,255,.16) 46%,rgba(255,255,255,.28) 50%,rgba(255,255,255,.16) 54%,transparent 70%);
	mix-blend-mode:screen;
	transform:translateX(-110%);
	opacity:0;
}
@media (prefers-reduced-motion:no-preference){
	html.hx-motion body:is(.cos-h26,.single-product) #collection .hxc__item[data-hx-reveal]{opacity:1;transform:none;transition:none}
	html.hx-motion body:is(.cos-h26,.single-product) #collection .hxc__item.is-in:not(.hx-instant) .hxc__tile::after{
		animation:hxc-sheen 900ms var(--hx-ease-soft) both;
		animation-delay:min(calc(var(--hx-i,0) * var(--hx-stagger,50ms)),var(--hx-delay-max,150ms));
	}
	html.hx-motion body:is(.cos-h26,.single-product) #collection .hxc__item:not(.is-in) :is(.hxc__verb,.hxc__copy,.hxc__meta,.hxc__bag){opacity:0}
	html.hx-motion body:is(.cos-h26,.single-product) #collection .hxc__item.is-in:not(.hx-instant) :is(.hxc__verb,.hxc__copy,.hxc__meta,.hxc__bag){
		transition:opacity 600ms var(--hx-ease);
		transition-delay:min(calc(var(--hx-i,0) * var(--hx-stagger,50ms)),var(--hx-delay-max,150ms));
	}
}
@keyframes hxc-sheen{
	0%{transform:translateX(-110%);opacity:0}
	15%{opacity:1}
	85%{opacity:1}
	100%{transform:translateX(110%);opacity:0}
}

/* ─── Hover + focus: the photograph eases in, the name underlines ─────── */
@media (hover:hover){
	html body:is(.cos-h26,.single-product) #collection .hxc__link:hover .hxc__photo img{scale:1.03}  /* composes with the alignment transform */
	html body:is(.cos-h26,.single-product) #collection .hxc__link:hover .hxc__name span{text-decoration-color:currentColor}
}
html body:is(.cos-h26,.single-product) #collection .hxc__link:focus-visible .hxc__name span{text-decoration-color:currentColor}
html body:is(.cos-h26,.single-product) #collection .hxc__link:focus{outline:none}
html body:is(.cos-h26,.single-product) #collection .hxc__link:focus-visible{outline:var(--hx-focus-width) solid var(--hx-focus-color);outline-offset:var(--hx-focus-offset)}

@media (prefers-reduced-motion:reduce){
	html body:is(.cos-h26,.single-product) #collection .hxc__photo img,
	html body:is(.cos-h26,.single-product) #collection .hxc__name span,
	html body:is(.cos-h26,.single-product) #collection .hxc__bag{transition:none}
	html body:is(.cos-h26,.single-product) #collection .hxc__link:hover .hxc__photo img{scale:none}
}

/* ═══ Guerlain grid (owner, 24 Oct 2026: "keep the product card colours but make the look and
   feel as close as the screenshot" — Guerlain's Orchidée Impériale grid) ═══════════════════════
   Square stages with the horizon low (87% of the tile), a solid white bag square in the corner,
   bold tracked sans capitals for the name, a quieter grey line and the price beneath.
   The graphite stage photographs are unchanged. Selectors carry #collection.hxc so they hold
   against hx/typeset.css, which loads after this sheet on the homepage.

   Square crop: each 4:5 photograph fills the tile's width (rendered 1.25 tiles tall, centred, so
   its horizon sits at h0 = 1.25 × hz − .125 of the tile). It is scaled about that horizon by the
   existing per-pack scale and moved so every horizon lands at .87. Coverage was checked per pack
   (top ≤ −.10, bottom ≥ 1.14 of the tile); the tall cleanser keeps ~8% headroom above its cap. */
html body:is(.cos-h26,.single-product) #collection.hxc .hxc__item{--hxc-h0:.846875}
html body:is(.cos-h26,.single-product) #collection.hxc .hxc__item--eye{--hxc-h0:.821875}
html body:is(.cos-h26,.single-product) #collection.hxc .hxc__item--serum{--hxc-h0:.76575}
html body:is(.cos-h26,.single-product) #collection.hxc .hxc__item--cream{--hxc-h0:.697875}
html body:is(.cos-h26,.single-product) #collection.hxc .hxc__tile{aspect-ratio:1 / 1}
/* the img box is the whole 4:5 photograph (1.25 tiles tall, centred), so moving it never
   uncovers the tile: origin at the photograph's own horizon (hz), shift in its own height */
html body:is(.cos-h26,.single-product) #collection.hxc .hxc__photo{position:relative;height:100%}
html body:is(.cos-h26,.single-product) #collection.hxc .hxc__photo img{
	position:absolute;
	left:0;
	top:-12.5%;
	width:100%;
	height:125%;
	object-fit:cover;
	transform-origin:50% calc(var(--hxc-hz) * 100%);
	transform:translateY(calc((.87 - var(--hxc-h0)) / 1.25 * 100%)) scale(var(--hxc-s));
}

/* text: name in bold tracked sans capitals, a grey line, the price */
html body:is(.cos-h26,.single-product) #collection.hxc .hxc__copy{margin-top:14px}
html body:is(.cos-h26,.single-product) #collection.hxc :is(.hxc__name,.hxc__name span){
	font-family:var(--hx-sans);
	font-size:.9375rem;
	font-weight:600;
	line-height:1.35;
	letter-spacing:.08em;
	word-spacing:normal;
	text-transform:uppercase;
	color:#111;
	-webkit-font-smoothing:antialiased;
}
html body:is(.cos-h26,.single-product) #collection.hxc .hxc__benefit{
	margin-top:4px;
	font-size:.875rem;
	line-height:1.45;
	letter-spacing:.01em;
	color:var(--hx-fg-3,#5D5F60);
}
html body:is(.cos-h26,.single-product) #collection.hxc :is(.hxc__meta,.hxc__price,.hxc__size){font-size:.9375rem;line-height:1.4;letter-spacing:.01em}
html body:is(.cos-h26,.single-product) #collection.hxc .hxc__meta{margin-top:12px}
html body:is(.cos-h26,.single-product) #collection.hxc .hxc__price{font-weight:400;color:var(--hx-ink,#202221)}
@media (max-width:599px){
	html body:is(.cos-h26,.single-product) #collection.hxc :is(.hxc__name,.hxc__name span){font-size:.8125rem;letter-spacing:.06em}
	html body:is(.cos-h26,.single-product) #collection.hxc .hxc__benefit{font-size:.8125rem}
	html body:is(.cos-h26,.single-product) #collection.hxc :is(.hxc__meta,.hxc__price,.hxc__size){font-size:.875rem}
}

/* bag: a solid white square in the stage's bottom-right corner, ink glyph */
html body:is(.cos-h26,.single-product) #collection.hxc .hxc__bag,
html body:is(.cos-h26,.single-product) #collection.hxc .hxc__bag:visited{
	width:48px;
	height:48px;
	margin:0 8px 8px 0;
	background:#FFF;
	color:#111;
	box-shadow:none;
}
html body:is(.cos-h26,.single-product) #collection.hxc .hxc__bag svg{width:22px;height:22px;stroke-width:1.3}
html body:is(.cos-h26,.single-product) #collection.hxc .hxc__bag:is(:hover,:focus-visible){background:#ECECEA;color:#111;box-shadow:none}
html body:is(.cos-h26,.single-product) #collection.hxc .hxc__bag.is-added{background:#111;color:#FFF;box-shadow:none}
html body:is(.cos-h26,.single-product) #collection.hxc .hxc__bag:focus-visible{outline:2px solid #FFF;outline-offset:3px}
@media (max-width:599px){
	html body:is(.cos-h26,.single-product) #collection.hxc .hxc__bag{width:36px;height:36px;margin:0 6px 6px 0}
	html body:is(.cos-h26,.single-product) #collection.hxc .hxc__bag::after{inset:-4px}   /* 44px tap area */
	html body:is(.cos-h26,.single-product) #collection.hxc .hxc__bag svg{width:18px;height:18px}
}

/* ─── No stage (owner, 29 Oct 2026; La Prairie's face-serum grid as reference) ─────────────
   Since later the same day the tiles show the owner's overhead photographs as supplied
   (coll-photo-{key}, 4:5, own grey ground and cast shadow), each filling its tile; the notes
   below on the cut-out packshots describe the step before. ─────────────────────────────
   pack-{key} is a 2:3 transparent cut-out whose pack stands on a common baseline (bottles fill
   ~87% of the canvas, the jar ~41%). Here it is placed at one fixed size in a square tile with
   the ground showing through, so the four keep their real proportions and line up along one
   floor, with air above and a quiet gap before the name. The stage ground, its sheen and the
   per-pack horizon transforms above no longer apply. */
html body:is(.cos-h26,.single-product) #collection.hxc .hxc__tile{aspect-ratio:4 / 5;background:#F2F2F4}   /* Dior's tile grey (owner, 3 Nov 2026) = the photographs' own ground, so nothing flashes before the photographs paint */
html body:is(.cos-h26,.single-product) #collection.hxc .hxc__tile::after{content:none}
html body:is(.cos-h26,.single-product) #collection.hxc .hxc__photo{position:absolute;inset:0;height:auto}
html body:is(.cos-h26,.single-product) #collection.hxc .hxc__copy{margin-top:clamp(20px,1rem + 1vw,32px)}
html body:is(.cos-h26,.single-product) #collection.hxc .hxc__photo img{position:static;width:100%;height:100%;object-fit:cover;transform:none;transition:scale 900ms var(--hx-ease)}
@media (hover:hover){html body:is(.cos-h26,.single-product) #collection.hxc .hxc__link:hover .hxc__photo img{scale:1.03}}

/* bag: an outlined square on the light ground, ink glyph; ink when the product is in the bag */
html body:is(.cos-h26,.single-product) #collection.hxc .hxc__bag,
html body:is(.cos-h26,.single-product) #collection.hxc .hxc__bag:visited{background:transparent;color:var(--hx-ink,#1C1D1F);box-shadow:inset 0 0 0 1px var(--hx-line-strong,rgba(28,29,31,.28))}
html body:is(.cos-h26,.single-product) #collection.hxc .hxc__bag:is(:hover,:focus-visible){background:var(--hx-ink,#1C1D1F);color:#F8F8F8;box-shadow:none}
html body:is(.cos-h26,.single-product) #collection.hxc .hxc__bag.is-added{background:var(--hx-ink,#1C1D1F);color:#F8F8F8;box-shadow:none}
html body:is(.cos-h26,.single-product) #collection.hxc .hxc__bag:focus-visible{outline:1px solid var(--hx-ink,#1C1D1F);outline-offset:4px}

/* bag, labelled (clarify, 1 Nov 2026: the glyph alone had to be interpreted). A compact pearl
   control: the action in words, the glyph after it as reinforcement. "Add to bag" from 600px,
   "Add" on two-up phone tiles; "Added" while the confirmation shows. The accessible name
   ("Add to bag: {product}") starts with the visible words. */
html body:is(.cos-h26,.single-product) #collection.hxc .hxc__bag,
html body:is(.cos-h26,.single-product) #collection.hxc .hxc__bag:visited{
	width:auto;
	height:44px;
	gap:10px;
	padding:0 14px 0 16px;
	background:var(--hx-white,#F8F8F8);
}
html body:is(.cos-h26,.single-product) #collection.hxc .hxc__bag svg{flex:none;width:18px;height:18px;stroke-width:1.3}
html body:is(.cos-h26,.single-product) #collection.hxc .hxc__bag-label{
	font-family:var(--hx-sans);
	font-size:.78125rem;
	font-weight:500;
	line-height:1;
	letter-spacing:.16em;
	text-transform:uppercase;
	white-space:nowrap;
	transform:translateY(.5px);   /* optical: caps sit on the glyph's centre line */
}
html body:is(.cos-h26,.single-product) #collection.hxc .hxc__bag-done,
html body:is(.cos-h26,.single-product) #collection.hxc .hxc__bag.is-added .hxc__bag-add{display:none}
html body:is(.cos-h26,.single-product) #collection.hxc .hxc__bag.is-added .hxc__bag-done{display:inline}
@media (max-width:599px){
	/* phones: two-up tiles are too narrow for a labelled control on the photograph without covering
	   the pack, so it takes its own row under the price, full 44px tall */
	html body:is(.cos-h26,.single-product) #collection.hxc .hxc__item{grid-row:span 4}
	html body:is(.cos-h26,.single-product) #collection.hxc .hxc__bag{grid-row:4;align-self:start;justify-self:start;width:auto;height:44px;margin:12px 0 0;gap:8px;padding:0 12px 0 14px}
	html body:is(.cos-h26,.single-product) #collection.hxc .hxc__bag::after{content:none}
	html body:is(.cos-h26,.single-product) #collection.hxc .hxc__bag-long{display:none}
	html body:is(.cos-h26,.single-product) #collection.hxc .hxc__bag svg{width:16px;height:16px}
}

/* a size smaller (owner, 1 Nov 2026): 38px tall, tighter padding and glyph; the label keeps the
   12px capitals role, and an invisible band keeps the tap target 44px */
html body:is(.cos-h26,.single-product) #collection.hxc .hxc__bag,
html body:is(.cos-h26,.single-product) #collection.hxc .hxc__bag:visited{position:relative;height:38px;gap:8px;padding:0 11px 0 13px}
html body:is(.cos-h26,.single-product) #collection.hxc .hxc__bag svg{width:16px;height:16px}
html body:is(.cos-h26,.single-product) #collection.hxc .hxc__bag::after{content:"";position:absolute;inset:-3px 0}
@media (max-width:599px){
	html body:is(.cos-h26,.single-product) #collection.hxc .hxc__bag{height:38px;gap:7px;padding:0 10px 0 12px}
	html body:is(.cos-h26,.single-product) #collection.hxc .hxc__bag::after{content:"";inset:-3px 0}
	html body:is(.cos-h26,.single-product) #collection.hxc .hxc__bag svg{width:15px;height:15px}
}

/* transparent bag (owner, 3 Nov 2026): no white fill, the photograph's ground shows through; the
   hairline frame stays, and hover / focus / added still fill ink (the :is() rule above outranks this) */
html body:is(.cos-h26,.single-product) #collection.hxc .hxc__bag,
html body:is(.cos-h26,.single-product) #collection.hxc .hxc__bag:visited{background:transparent}

/* 48px bag (adapt, 4 Nov 2026, owner; supersedes the 1 Nov "a size smaller" 38px block above): the
   visible control is the tap target, so the invisible band goes. On phones it centres under the
   centred name, benefit and price instead of sitting at the left edge. */
html body:is(.cos-h26,.single-product) #collection.hxc .hxc__bag,
html body:is(.cos-h26,.single-product) #collection.hxc .hxc__bag:visited{height:48px;gap:10px;padding:0 16px 0 18px}
html body:is(.cos-h26,.single-product) #collection.hxc .hxc__bag svg{width:18px;height:18px}
html body:is(.cos-h26,.single-product) #collection.hxc .hxc__bag::after{content:none}
@media (max-width:599px){
	html body:is(.cos-h26,.single-product) #collection.hxc .hxc__bag{justify-self:center;height:48px;gap:8px;padding:0 14px 0 16px}
	html body:is(.cos-h26,.single-product) #collection.hxc .hxc__bag::after{content:none}
	html body:is(.cos-h26,.single-product) #collection.hxc .hxc__bag svg{width:16px;height:16px}
}

/* glyph-only bag, label on hover (owner, 6 Nov 2026): on pointer desktops from 600px the control
   rests as a 48px square with just the bag glyph; hovering (or keyboard focus) slides the
   "Add to bag" caps out to the left of the glyph and the button widens with them. "Added" stays
   open while the confirmation shows. Touch devices and phones keep the labelled control, since
   they have no hover. The accessible name is on the link itself, so nothing changes for readers. */
@media (min-width:600px) and (hover:hover) and (pointer:fine){
	html body:is(.cos-h26,.single-product) #collection.hxc .hxc__bag,
	html body:is(.cos-h26,.single-product) #collection.hxc .hxc__bag:visited{
		gap:0;
		padding:0 15px;
		transition:gap 380ms var(--hx-ease,cubic-bezier(.22,.61,.36,1)),padding 380ms var(--hx-ease,cubic-bezier(.22,.61,.36,1)),background-color 240ms ease,color 240ms ease,box-shadow 240ms ease;
	}
	html body:is(.cos-h26,.single-product) #collection.hxc .hxc__bag-label{
		display:inline-block;
		max-width:0;
		overflow:hidden;
		opacity:0;
		transition:max-width 380ms var(--hx-ease,cubic-bezier(.22,.61,.36,1)),opacity 220ms ease;
	}
	html body:is(.cos-h26,.single-product) #collection.hxc .hxc__bag:is(:hover,:focus-visible,.is-added){gap:10px;padding:0 16px 0 18px}
	html body:is(.cos-h26,.single-product) #collection.hxc .hxc__bag:is(:hover,:focus-visible,.is-added) .hxc__bag-label{
		max-width:12em;
		opacity:1;
		transition:max-width 380ms var(--hx-ease,cubic-bezier(.22,.61,.36,1)),opacity 260ms ease 120ms;
	}
}
@media (min-width:600px) and (hover:hover) and (pointer:fine) and (prefers-reduced-motion:reduce){
	html body:is(.cos-h26,.single-product) #collection.hxc :is(.hxc__bag,.hxc__bag-label){transition:none}
}
/* the scroll reveal's transition (opacity, with a stagger delay) outranks the block above; keep
   its fade and add the expansion so hover still animates after the tile has come in */
@media (min-width:600px) and (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
	html.hx-motion body:is(.cos-h26,.single-product) #collection.hxc .hxc__item.is-in:not(.hx-instant) .hxc__bag{
		transition:opacity 600ms var(--hx-ease) min(calc(var(--hx-i,0) * var(--hx-stagger,50ms)),var(--hx-delay-max,150ms)),gap 380ms var(--hx-ease,cubic-bezier(.22,.61,.36,1)),padding 380ms var(--hx-ease,cubic-bezier(.22,.61,.36,1)),background-color 240ms ease,color 240ms ease,box-shadow 240ms ease;
	}
}
