/* Home v6 (15 Nov 2026). Loaded only while shopo6_active() is true (preview ?home6=1, or live after approval).
   Plan: GROWTH-PLAN-FOR-AI.md Phase B + UI-UX-PLAN-FOR-AI.md sections 3-5d. */

/* ---------- tones for the new brand panels (v4 palette family, not the brands' own colours) ---------- */
.s6 [data-tone="anker"], .s5-hero[data-tone="anker"] { background: radial-gradient(90% 120% at 85% 0%, #23408F, #0F1F4D 62%); }
.s6 [data-tone="aspor"] { background: radial-gradient(90% 120% at 85% 0%, #4A423C, #24201D 62%); }
.s6 [data-tone="remax"] { background: radial-gradient(90% 120% at 85% 0%, #2B2B31, var(--night) 62%); }
.s6 [data-tone="ldnio"] { background: radial-gradient(90% 120% at 85% 0%, #1D5868, #0C2E38 62%); }

/* ---------- card fixes (UI-UX plan section 2 bugs 1 and 2) ---------- */
.s4-card__buy .s4-price { flex: 1 1 auto; min-width: 0; }

@media (max-width: 759px) {
	.s4-card .s4-price b, .s5-grid .s4-card .s4-price b { font-size: clamp(13px, 3.6vw, 15px); }
	.s4-card .s4-price s { font-size: 11px; }
	/* Tap targets stay 44 px (UI-UX plan section 9); the price shrinks instead. */
	.s4-scope .s4-card .s4-add, .s4-scope .s4-card .s4-add.shopo-card__buy, .s6 .s5-feat .s4-add { width: 44px; height: 44px; }
	.s4-card__buy { gap: 4px; }
}

/* ---------- sideways rows: one row, left/right only ---------- */
.s6-chiprow { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.s6-chiprow::-webkit-scrollbar, .s6-row::-webkit-scrollbar, .s6-chips2::-webkit-scrollbar { display: none; }
.s6-chiprow > * { flex: none; white-space: nowrap; }
/* Inside the flex-start copy columns the row would size to its content and widen the page: stretch it to the column. */
.s6-chiprow { align-self: stretch; min-width: 0; }
@media (max-width: 759px) {
	.s6-chiprow { margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); }
	.s6-row { overflow-y: hidden; }
	/* Rows inside a padded panel line up with the panel, not the page gutter. */
	.s6-brow .s6-row, .s6-ug .s6-row { margin-inline: calc(var(--s4) * -1); padding-inline: var(--s4); scroll-padding-inline: var(--s4); }
	.s6-brow .s6-chiprow, .s6-ug .s6-chiprow, .s6-ph .s6-chiprow { margin-inline: calc(var(--s4) * -1); padding-inline: var(--s4); }
}
@media (min-width: 760px) {
	.s6-chiprow { flex-wrap: wrap; overflow: visible; }
	.s6-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
	.s6-row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.s6-row > :nth-child(6) { display: flex; }
	.s6-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.s4-on-dark .s6-row .s4-card { color: var(--ink); }

/* ---------- sections spacing on phone ---------- */
@media (max-width: 759px) {
	.s6 .s4-sec { padding-top: var(--s6); }
	.s6 .s4-sec-h { margin-bottom: var(--s3); }
	.s6 .s4-sec-h h2 { font-size: 26px; }
}

/* ---------- 1. hero: headline, one line, one button, two products on the first screen ---------- */
@media (max-width: 759px) {
	.s6 .s5-hero__in { padding-block: var(--s4) var(--s3); gap: var(--s3); }
	.s6 .s5-hero__copy { gap: var(--s2); }
	.s6 .s5-hero__title { font-size: 30px; line-height: 1.05; }
	.s6 .s5-hero__copy p { font-size: var(--t14); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
	.s6 .s5-facts { display: none; }
	.s6 .s4-hero__ctl .s4-round { display: none; }
	.s6 .s4-hero__ctl { position: absolute; left: 0; right: 0; bottom: 2px; justify-content: center; margin: 0; }
	.s6 .s5-hero { position: relative; padding-bottom: 28px; }
	.s6 .s5-hero__vis, .s6 .s5-hero__vis--pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s2); }
	.s6 .s5-hero__vis > .s5-mini:nth-of-type(n+3), .s6 .s5-hero__vis > .s5-mini + .s5-mini { display: none; }
	.s6 .s5-feat { grid-column: auto; padding: var(--s2); gap: 6px; border-radius: var(--r2); }
	.s6 .s5-feat__img { aspect-ratio: 1 / 1; }
	.s6 .s5-feat__name { font-size: var(--t13); }
	.s6 .s5-feat__price { font-size: var(--t16) !important; }
	.s6 .s5-feat .s4-keep, .s6 .s5-feat .s4-price s { display: none; }
	.s6 .s5-feat .s5-tag { top: 6px; left: 6px; font-size: 10px; padding: 3px 7px; }
	.s6 .s5-mini { padding: var(--s2); border-radius: var(--r2); justify-content: flex-start; }
	.s6 .s5-mini__name { font-size: var(--t13); }
}

/* ---------- 2. shop by category: 8 compact tiles ---------- */
.s6-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
.s6-cat { display: flex; align-items: center; gap: 10px; min-height: 88px; padding: var(--s2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r1); min-width: 0; }
.s6-cat:hover { border-color: var(--ink); }
.s6-cat__img { flex: none; width: 44px; height: 44px; border-radius: 8px; background: #fff; overflow: hidden; display: grid; place-items: center; }
.s6-cat__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.s6-cat__b { display: flex; flex-direction: column; min-width: 0; }
.s6-cat__b b { font-size: 13.5px; font-weight: 600; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.s6-cat__b small { font-size: var(--t12); color: var(--mute); margin-top: 2px; }
#categories .s6-chiprow { margin-top: var(--s3); }
@media (min-width: 760px) {
	.s6-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); }
	.s6-cat { flex-direction: column; align-items: flex-start; padding: var(--s3); min-height: 0; }
	.s6-cat__img { width: 100%; height: 120px; }
}

/* ---------- 3. promise strip: one sideways row of four short items on phone ---------- */
.s6-promise .s6-short { display: none; }
@media (max-width: 759px) {
	.s6-promise { padding-block: var(--s3); margin-top: var(--s5); }
	.s6-promise .s4-shell { display: flex; gap: var(--s2); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
	.s6-promise .s4-shell::-webkit-scrollbar { display: none; }
	.s6-promise .s4-pm { flex: none; padding: 0; gap: 8px; align-items: center; border: 0; }
	.s6-promise .s4-pm > div > span { display: none; }
	.s6-promise .s6-long { display: none; }
	.s6-promise .s6-short { display: inline; font-size: var(--t13); white-space: nowrap; }
	.s6-promise .s4-pm__ic { width: 32px; height: 32px; }
}

/* ---------- 4. Philips: two cards side by side ---------- */
.s6-ph { display: grid; gap: var(--s4); }
.s6-ph__copy { display: flex; flex-direction: column; gap: var(--s3); align-items: flex-start; min-width: 0; }
.s6-ph__copy h2 { font-size: clamp(32px, 5vw, 60px); line-height: 1; letter-spacing: -.035em; }
.s6-ph__lead { font-size: var(--t16); color: var(--on-dark-2); }
.s6-ph .s5-ph__badges { width: 100%; }
.s6-ph .s5-ph__badges span { flex: none; white-space: nowrap; }
.s6-ph__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.s6-ph__card { background: var(--surface); color: var(--ink); border-radius: var(--r2); padding: var(--s3); display: flex; flex-direction: column; gap: 6px; }
.s6-ph__img { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: var(--r1); overflow: hidden; background: #fff; }
.s6-ph__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.s6-ph__name { font-size: var(--t14); font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.s6-ph__card .s4-price b { font-size: var(--t18); }
.s6-ph__card:hover .s6-ph__name { text-decoration: underline; }
.s6-ph .s4-hero__cta { margin: 0; }
@media (min-width: 1000px) {
	.s6-ph { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); grid-template-rows: auto auto; align-items: center; column-gap: var(--s6); }
	.s6-ph__pair { grid-row: span 2; grid-column: 2; }
	.s6-ph__card .s4-price b { font-size: var(--t24); }
}

/* ---------- 5. UGREEN block ---------- */
.s6-ug { grid-template-columns: minmax(0, 1fr); }
.s6-ug .s5-bh__copy, .s6-ph__copy { min-width: 0; max-width: 100%; }
@media (max-width: 759px) {
	.s6-ug { padding: var(--s5) var(--s4); gap: var(--s4); }
	.s6-ug .s5-bh__copy { gap: var(--s3); }
	.s6-ug .s5-bh__copy h2 { font-size: 28px; }
	.s6-ug .s5-bh__copy p { font-size: var(--t14); }
}
@media (min-width: 1000px) { .s6-ug { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }

/* ---------- 6 / 9. four cards on phone (2x2) ---------- */
@media (max-width: 759px) { .s6-four > :nth-child(n+5) { display: none; } }
#new .s4-sec-h { flex-direction: column; align-items: stretch; }
#new .s5-tabs { margin-top: var(--s2); }
@media (max-width: 759px) { #new .s5-tabs { margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); } }
#new .s5-center { margin-top: var(--s4); }
.s6 .s5-appl { padding: var(--s5) var(--s4); }
@media (min-width: 760px) { .s6 .s5-appl { padding: var(--s6); } }

/* ---------- 7 / 9b. brand rows ---------- */
.s6-brow { border-radius: var(--r3); padding: var(--s5) var(--s4) var(--s4); color: var(--on-dark); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
.s6-brow__top { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); }
.s6-brow__link { display: none; font-weight: 600; font-size: var(--t14); color: var(--on-dark); min-height: 44px; align-items: center; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 759px) {
	.s6-brow { gap: var(--s3); padding-top: var(--s3); }
	.s6-brow__link { display: inline-flex; }
	.s6-brow__btn { display: none; }
	.s6-brow h2 { font-size: 22px; }
	.s6-brow__h p { font-size: var(--t13); }
}
.s6-brow__h { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); align-items: flex-end; justify-content: space-between; }
.s6-brow__h > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; max-width: 40em; }
.s6-brow h2 { font-size: clamp(24px, 3.4vw, 40px); line-height: 1.05; letter-spacing: -.03em; }
.s6-brow__h p { color: var(--on-dark-2); font-size: var(--t14); }
@media (max-width: 759px) { .s6-brow .s4-btn { min-height: 44px; } }
@media (min-width: 760px) { .s6-brow { padding: var(--s6); } }

/* ---------- 8. Find me: chips in two sideways rows on phone ---------- */
@media (max-width: 759px) {
	.s6 .s5-find { padding: var(--s5) var(--s4); gap: var(--s3); }
	.s6 .s5-find h2 { font-size: 32px; }
	.s6 .s5-find__note { display: none; }
	.s6-chips2 { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); justify-content: start; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; width: calc(100% + 2 * var(--s4)); margin-inline: calc(var(--s4) * -1); padding-inline: var(--s4); }
	.s6-chips2 .s4-chip { white-space: nowrap; }
}

/* ---------- storage and JBL, brands, warranty, can't find ---------- */
.s6 #storage-jbl .s5-duo { margin-top: 0; }
@media (max-width: 759px) {
	.s6 .s5-bc { padding: var(--s4); grid-template-columns: minmax(0, 1fr) 84px; }
	.s6 .s5-bc__copy h3 { font-size: 22px; }
	.s6 .s5-bc__imgs { flex-direction: column; gap: var(--s2); }
	.s6 .s4-warranty__vis { display: none; }
	.s6 .s4-brands { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- placeholder heights for lazy sections (UI-UX plan bug 3) ---------- */
.s4-scope.s6[data-view="home"] > .s4-shell > .s4-sec:nth-child(n+3) { contain-intrinsic-size: auto 480px; }
.s6 #ugreen { contain-intrinsic-size: auto 760px; }
.s6 #new, .s6 #home-appliances { contain-intrinsic-size: auto 900px; }
.s6 #faq { contain-intrinsic-size: auto 820px; }
@media (min-width: 1000px) { .s4-scope.s6[data-view="home"] > .s4-shell > .s4-sec:nth-child(n+3) { contain-intrinsic-size: auto 560px; } }

/* ---------- header chips on phone + Categories tab sheet (growth plan 4.3, 4.4) ---------- */
.s6-phone-only { display: none !important; }
@media (max-width: 999px) {
	.s4-nav__list .s6-phone-only { display: inline-flex !important; }
	.s4-nav__list .s6-desk-only { display: none !important; }
}
.s4-tabbar button.s4-tab-deals { color: var(--blue); font-weight: 700; }
.s6-cats-sheet { inset: auto 0 0 0; width: 100%; max-width: 100%; margin: 0; height: auto; max-height: 88dvh; border-radius: var(--r3) var(--r3) 0 0; }
.s6-cats-sheet[open] { animation: s6-up .22s ease-out; }
@keyframes s6-up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .s6-cats-sheet[open] { animation: none; } }
.s6-cats-sheet .s4-sheet__b { padding-bottom: calc(var(--s5) + env(safe-area-inset-bottom, 0px)); }
.s6-cat--deals { background: var(--blue-tint); border-color: var(--blue-tint); color: var(--blue-d); }
.s6-cat--deals .s6-cat__img { background: var(--blue); color: var(--on-dark); }
.s6-cat--deals .s6-cat__img .s4-ic { width: 26px; height: 26px; }
.s4-tabbar button.s4-tab-deals span { width: 52px; height: 52px; border-radius: 50%; background: var(--blue); color: var(--on-dark); display: grid; place-items: center; margin-top: -26px; border: 4px solid var(--surface); box-shadow: 0 10px 20px -10px rgba(51,70,255,.8); }
.s4-tabbar button.s4-tab-deals[aria-expanded="true"] span { background: var(--blue-d); }

/* pay-in-3 line on hero cards, minis and the Philips pair (owner 15 Nov: "X3 Koko or Mintpay missing on home page") */

.s4-on-dark .s5-feat .s6-pay, .s5-mini .s6-pay { color: var(--mute); }
.s6-ph__card .s6-pay { color: var(--ink-2); }
.s5-feat .s4-price { min-width: 0; }

/* pay-in-3 line with KOKO and Mintpay logos (owner 15 Nov). Wraps the logos under the amount on narrow cards. */
.s6-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: var(--t12); font-weight: 500; color: var(--mute); margin-top: 2px; }
.s4-card .s4-card__pay.s6-pay { color: var(--mute); }
.s6-pay > span:first-child { white-space: nowrap; }
.s6-paymarks { display: inline-flex; gap: 4px; align-items: center; flex: none; }
.s4-scope .s6-paymarks img, .s6-paymarks img { height: 13px; width: auto; display: block; border-radius: 4px; }
.s4-on-dark .s4-card .s6-pay, .s5-feat .s6-pay, .s5-mini .s6-pay { color: var(--mute); }
.s6-ph__card .s6-pay { color: var(--ink-2); }

/* product page pay-in-3 row: real KOKO / Mintpay logos instead of text pills (owner 15 Nov) */
.s4-scope .s4-payrow img.s4-paylogo, .s4-paylogo { height: 16px !important; width: auto !important; max-width: none; display: inline-block; vertical-align: middle; border-radius: 4px; flex: none; }
.s4-payrow summary .s4-paylogo + .s4-paylogo { margin-left: 4px; }
.s4-scope .s4-payrow__b img.s4-paylogo { margin-right: 8px; height: 14px !important; }

/* ===== Shelf pages v6 (categories, brands, search, deals, all products) ===== */
.s6-list .s4-crumbs { padding-block: var(--s3) var(--s2); font-size: var(--t13); }
.s6-shelf { display: grid; gap: var(--s3); min-width: 0; }
.s6-shelf__t { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.s6-shelf__t h1 { font-size: clamp(26px, 4.4vw, 44px); letter-spacing: -.035em; line-height: 1.05; }
.s6-shelf__t span { color: var(--mute); font-size: var(--t14); white-space: nowrap; font-variant-numeric: tabular-nums; }
.s6-shelf .s4-chip span { color: var(--mute); font-weight: 400; margin-left: 2px; }
.s6-shelf .s4-chip[aria-pressed="true"] { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.s6-shelf .s4-chip[aria-pressed="true"] span { color: var(--on-dark-2); }
/* Brand pages, option A: a slim band in the brand's tone. */
.s6-shelf--brand { border-radius: var(--r3); padding: var(--s4) var(--s4) var(--s3); color: var(--on-dark); background: radial-gradient(90% 120% at 85% 0%, var(--forest-2), var(--forest) 62%); gap: var(--s2); }
.s6-shelf--brand[data-tone="anker"] { background: radial-gradient(90% 120% at 85% 0%, #23408F, #0F1F4D 62%); }
.s6-shelf--brand[data-tone="aspor"] { background: radial-gradient(90% 120% at 85% 0%, #4A423C, #24201D 62%); }
.s6-shelf--brand[data-tone="remax"] { background: radial-gradient(90% 120% at 85% 0%, #2B2B31, var(--night) 62%); }
.s6-shelf--brand[data-tone="ldnio"] { background: radial-gradient(90% 120% at 85% 0%, #1D5868, #0C2E38 62%); }
.s6-shelf__k { font-size: 11px; font-weight: 600; letter-spacing: .12em; color: var(--on-dark-2); }
.s6-shelf--brand h1 { font-size: clamp(28px, 4.6vw, 48px); letter-spacing: -.04em; line-height: 1; }
.s6-shelf__line { color: var(--on-dark-2); font-size: var(--t14); }
.s6-shelf--brand .s4-chip { background: transparent; color: var(--on-dark); border-color: rgba(255,255,255,.4); }
.s6-shelf--brand .s4-chip span { color: var(--on-dark-2); }
.s6-shelf--brand .s4-chip[aria-pressed="true"] { background: var(--surface); color: var(--ink); border-color: var(--surface); }
.s6-shelf--brand .s4-chip[aria-pressed="true"] span { color: var(--mute); }
@media (max-width: 759px) {
	.s6-shelf--brand .s6-chiprow { margin-inline: calc(var(--s4) * -1); padding-inline: var(--s4); }
	.s6-list .s4-cat { padding-top: var(--s3); gap: var(--s3); }
	.s6-list .s4-bar { margin-bottom: var(--s3); }
	.s6-list .s4-bar #cat-count { display: none; }
	.s6-list .s4-bar select { flex: 1; min-width: 0; height: 44px; }
	.s6-list .s4-bar .s4-bar-filt { min-height: 44px; }
	.s6-list .s4-chip { min-height: 40px; }
}
@media (min-width: 900px) { .s6-shelf--brand { padding: var(--s5) var(--s6); } }
/* Category intro, now below the products. */
.s6-intro { margin-top: var(--s6); display: grid; gap: var(--s2); max-width: 70ch; }
.s6-intro h2 { font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -.02em; }
.s6-intro p { color: var(--ink-2); }

/* ===== Sub-shelf picture tiles on parent categories (plan C7) ===== */
.s6-subtiles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 44%); gap: var(--s2); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; scroll-snap-type: x proximity; }
.s6-subtiles::-webkit-scrollbar { display: none; }
.s6-subtiles > .s6-cat { scroll-snap-align: start; min-height: 64px; }
@media (max-width: 759px) { .s6-subtiles { margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scroll-padding-inline: var(--gut); } }
@media (min-width: 760px) { .s6-subtiles { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); overflow: visible; } .s6-subtiles > .s6-cat { flex-direction: row; align-items: center; } .s6-subtiles .s6-cat__img { width: 52px; height: 52px; } }

/* ===== All categories page (v6) ===== */
.s6-allcats { display: grid; gap: var(--s6); margin-top: var(--s4); }
.s6-allcats section { display: grid; gap: var(--s3); }
.s6-allcats h2 { font-size: clamp(20px, 2.6vw, 28px); letter-spacing: -.02em; margin: 0; }
.s6-allcats__h { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.s6-allcats .s6-cat { min-height: 64px; }
@media (min-width: 760px) { .s6-allcats .s6-cats { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } .s6-allcats .s6-cat { flex-direction: row; align-items: center; padding: var(--s2) var(--s3); } .s6-allcats .s6-cat__img { width: 52px; height: 52px; } }

/* ===== All brands page (v6): short top, featured first, A-Z as compact name links ===== */
.s6-brands .s4-cat-hero { background: none; color: var(--ink); padding: 0; border-radius: 0; gap: var(--s3); }
.s6-brands .s4-cat-hero .s4-eyebrow { color: var(--mute); }
.s6-brands .s4-cat-hero h1 { font-size: clamp(26px, 4.4vw, 44px); }
.s6-brands .s4-cat-hero p { display: none; }
.s6-brands .s4-br-find { background: var(--surface); border: 1px solid var(--line); }
.s6-brands #br-az { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.s6-brands #br-az::-webkit-scrollbar { display: none; }
.s6-brands #br-az .s4-chip { flex: none; min-width: 40px; justify-content: center; }
.s6-brands .s4-chip { color: var(--ink); }
.s6-brands #s4-br-top .s4-brandgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .s6-brands #s4-br-top .s4-brandgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.s6-brands .s4-br-group { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--s3); align-items: start; padding-block: var(--s3); border-bottom: 1px solid var(--line-2); }
.s6-brands .s4-br-group .s4-brandgrid { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.s6-brands .s4-br-group .s4-brand { display: inline-flex; gap: 4px; align-items: baseline; padding: 6px 0; min-height: 0; background: none; border: 0; box-shadow: none; }
.s6-brands .s4-br-group .s4-brand b { font-weight: 500; font-size: var(--t16); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.s6-brands .s4-br-group .s4-brand span { font-size: var(--t12); color: var(--mute); }
.s6-brands .s4-br-group .s4-brand[hidden] { display: none; }

/* brands A-Z row: stretch to the column, never to its content (it widened the phone page by 8 px) */
.s6-brands #br-az { align-self: stretch; min-width: 0; max-width: 100%; }
/* All categories on phones: each group is one sideways row */
.s6-allcats .s6-subtiles > .s6-cat { min-height: 64px; }
@media (max-width: 759px) { .s6-allcats { gap: var(--s5); } }

.s6-brands .s4-sub-h { font-size: clamp(20px, 2.6vw, 28px) !important; letter-spacing: -.02em; }
.s6-brands #s4-br-top .s4-sub-h { margin-top: var(--s5) !important; }
