/**
 * Category hub page.
 *
 * Measurements follow the approved hub design: 132px card images, a 320×132
 * hero picture, a 720px FAQ measure and a content row aligned with the
 * header's own. Every rule is scoped under `.wb-hub` and sets its own type
 * size, because the theme's element styles (h1 at 3.5rem, h2 at 2.75rem,
 * block-gap margins) would otherwise size these headings for a marketing
 * page rather than a catalogue page.
 */

.wb-hub {
	--wb-hub-fg: var(--wb-nav-foreground, #16181d);
	--wb-hub-muted: var(--wb-nav-muted, #6b7280);
	--wb-hub-edge: var(--wb-nav-border, #e4e7ec);
	--wb-hub-brand: var(--wb-nav-brand, #1a5fe0);
	--wb-hub-tint: #f5f5f6;
	--wb-hub-success: #1f7a3d;
	--wb-hub-radius: 10px;

	color: var(--wb-hub-fg);
	font-size: 15px;
	line-height: 1.5;
}

.wb-hub *,
.wb-hub *::before,
.wb-hub *::after {
	box-sizing: border-box;
}

/*
 * The theme spaces every top-level block with
 * `:where(.wp-site-blocks) > * { margin-block-start: 32px }`. Its own
 * templates zero that on their main content; without the same here the page
 * carried a white 32px strip under the header and another above the footer.
 */
.wb-hub-page .wp-site-blocks > * {
	margin-block-start: 0;
}

.wb-hub p,
.wb-hub h1,
.wb-hub h2,
.wb-hub h3,
.wb-hub ul {
	margin: 0;
}

.wb-hub a {
	color: inherit;
	text-decoration: none;
}

/* Lines up with the header row: the same wide size and the same gutter. */
.wb-hub .wb-hub__inner {
	width: 100%;
	max-width: calc(
		var(--wb-nav-wide, 1260px) + 2 * var(--wb-nav-gutter, 32px)
	);
	margin-inline: auto;
	padding-inline: var(--wb-nav-gutter, 32px);
}

.wb-hub .wb-hub__count {
	margin-left: 6px;
	color: var(--wb-hub-muted);
	font-size: 13px;
	font-weight: 400;
}

/* Hero ------------------------------------------------------------------ */

.wb-hub .wb-hub__hero {
	background: var(--wb-hub-tint);
}

/* The breadcrumb spans the top; the copy and the picture share the row
 * below it, so the picture centres on the title and intro rather than on
 * a block that includes the breadcrumb. */
.wb-hub .wb-hub__hero-row {
	display: grid;
	grid-template-columns: minmax(0, 660px) auto;
	align-content: center;
	align-items: center;
	justify-content: space-between;
	column-gap: 40px;
	min-height: 200px;
	padding-block: 28px;
}

.wb-hub .wb-hub__hero-copy {
	max-width: 660px;
}

.wb-hub .wb-hub__breadcrumb {
	display: flex;
	gap: 6px;
	margin-bottom: 10px;
	color: var(--wb-hub-muted);
	font-size: 12px;
}

.wb-hub .wb-hub__breadcrumb [aria-current] {
	color: var(--wb-hub-fg);
	font-weight: 600;
}

.wb-hub .wb-hub__breadcrumb a:hover {
	text-decoration: underline;
}

.wb-hub .wb-hub__hero-row > .wb-hub__breadcrumb {
	grid-column: 1 / -1;
}

.wb-hub .wb-hub__title {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: 12px;
	margin-bottom: 10px;
	font-size: 40px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.wb-hub .wb-hub__title-meta {
	color: var(--wb-hub-muted);
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0;
}

.wb-hub .wb-hub__intro {
	font-size: 15px;
	line-height: 1.55;
}

.wb-hub .wb-hub__intro a {
	color: var(--wb-hub-brand);
	font-weight: 600;
}

.wb-hub .wb-hub__hero-image {
	flex: 0 0 auto;
	width: 320px;
	height: 132px;
	border-radius: var(--wb-hub-radius);
	object-fit: cover;
}

/* Section scaffolding -------------------------------------------------- */

.wb-hub .wb-hub__section {
	padding-block: 32px 36px;
}

/* A hairline between consecutive catalogue sections, inside the content
 * width rather than edge to edge. */
.wb-hub .wb-hub__section--ruled {
	padding-top: 0;
}

.wb-hub .wb-hub__section--ruled > .wb-hub__inner::before {
	content: "";
	display: block;
	height: 1px;
	margin-bottom: 28px;
	background: var(--wb-hub-edge);
}

.wb-hub .wb-hub__section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

.wb-hub .wb-hub__h2 {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.wb-hub .wb-hub__head-link {
	color: var(--wb-hub-brand);
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.wb-hub .wb-hub__head-link:hover {
	text-decoration: underline;
}

/* Shop by type ---------------------------------------------------------- */

.wb-hub .wb-hub__types {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.wb-hub .wb-hub__type {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--wb-hub-edge);
	border-radius: var(--wb-hub-radius);
	background: #fff;
	transition:
		border-color 0.15s ease,
		box-shadow 0.15s ease;
}

.wb-hub .wb-hub__type:hover {
	border-color: #c7cdd6;
	box-shadow: 0 12px 28px -18px rgba(20, 30, 50, 0.45);
}

.wb-hub .wb-hub__type-media {
	position: relative;
	display: block;
	height: 132px;
	overflow: hidden;
	background: #eef0f3;
}

.wb-hub .wb-hub__type-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wb-hub .wb-hub__pill {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 3px 9px;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(20, 30, 50, 0.18);
	color: var(--wb-hub-brand);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.4;
}

.wb-hub .wb-hub__pill--sale {
	z-index: 1;
	background: #d92d20;
	box-shadow: none;
	color: #fff;
}

.wb-hub .wb-hub__type-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px 16px 16px;
}

.wb-hub .wb-hub__type-title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}

.wb-hub .wb-hub__type-summary {
	color: var(--wb-hub-muted);
	font-size: 13px;
	line-height: 1.45;
}

/* Popular --------------------------------------------------------------- */

.wb-hub .wb-hub__products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.wb-hub .wb-hub__product {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.wb-hub .wb-hub__product-media {
	position: relative;
	display: block;
	height: 150px;
	margin-bottom: 8px;
	overflow: hidden;
	border-radius: 8px;
	background: #eef0f3;
}

.wb-hub .wb-hub__product-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.2s ease;
}

.wb-hub .wb-hub__product:hover .wb-hub__product-media img {
	transform: scale(1.03);
}

/* A category card's cut-out is zoomed until the landscape frame sits wholly
 * inside its circle, so the card fills without curved edges. At a 3:1 frame
 * and a circle about 80% of the picture's width, 1.45 keeps the frame's
 * corners just inside the circle. */
.wb-hub .wb-hub__type-media img.wb-hub__img--zoom {
	object-fit: cover;
	transform: scale(1.45);
}

/* Other cut-outs (brand cards and products; category cards only zoom or
 * cover) are shown whole on white rather than cropped to a band. */
.wb-hub .wb-hub__type-media:has(> .wb-hub__img--contain),
.wb-hub .wb-hub__product-media:has(> .wb-hub__img--contain) {
	background: #fff;
	box-shadow: inset 0 0 0 1px #eef0f3;
}

.wb-hub .wb-hub__type-media img.wb-hub__img--contain,
.wb-hub .wb-hub__product-media img.wb-hub__img--contain {
	padding: 8px;
	object-fit: contain;
}

.wb-hub .wb-hub__eyebrow {
	color: var(--wb-hub-muted);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.wb-hub .wb-hub__product-name {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
}

.wb-hub .wb-hub__product-price {
	color: var(--wb-hub-muted);
	font-size: 13px;
}

.wb-hub .wb-hub__product-price .amount,
.wb-hub .wb-hub__product-price ins {
	color: var(--wb-hub-fg);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.wb-hub .wb-hub__product-price del {
	margin-right: 4px;
	font-weight: 400;
}

/* Secondary routes ------------------------------------------------------ */

.wb-hub .wb-hub__routes {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr 0.8fr;
	gap: 32px;
}

/* The section's hairline is itself a grid item here; span it so it doesn't
 * take the first column and push the last one onto a second row. */
.wb-hub .wb-hub__routes::before {
	grid-column: 1 / -1;
}

.wb-hub .wb-hub__route-label {
	margin-bottom: 12px;
	color: var(--wb-hub-muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.wb-hub .wb-hub__route-list {
	padding: 0;
	list-style: none;
}

.wb-hub .wb-hub__route-list--list li + li {
	margin-top: 8px;
}

.wb-hub .wb-hub__route-list--list a {
	font-size: 14px;
}

.wb-hub .wb-hub__route-list--list a:hover {
	color: var(--wb-hub-brand);
}

.wb-hub .wb-hub__route-list--chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.wb-hub .wb-hub__route-list--chips a {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid var(--wb-hub-edge);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 500;
}

.wb-hub .wb-hub__route-list--chips a:hover {
	border-color: var(--wb-hub-fg);
}

/* Shop-all band --------------------------------------------------------- */

.wb-hub .wb-hub__band {
	background: #f3f4f6;
}

.wb-hub .wb-hub__band-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-block: 16px;
	font-size: 14px;
}

.wb-hub .wb-hub__button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 11px 18px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	transition: background-color 0.15s ease;
}

.wb-hub .wb-hub__button--dark {
	background: var(--wb-hub-fg);
	color: #fff;
}

.wb-hub .wb-hub__button--dark:hover {
	background: #000;
}

.wb-hub .wb-hub__button--brand {
	padding: 12px 22px;
	background: var(--wb-hub-brand);
	color: #fff;
}

.wb-hub .wb-hub__button--brand:hover {
	background: #144bb4;
}

/* Why choose ------------------------------------------------------------ */

.wb-hub .wb-hub__why {
	padding-block: 44px 52px;
	background: var(--wb-hub-brand);
	color: #fff;
}

.wb-hub .wb-hub__why-title {
	padding-bottom: 24px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.28);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.wb-hub .wb-hub__props {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px;
	margin-top: 28px;
}

.wb-hub .wb-hub__prop-eyebrow {
	margin-bottom: 8px;
	color: rgba(255, 255, 255, 0.85);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.wb-hub .wb-hub__prop-heading {
	margin-bottom: 10px;
	color: #fff;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.wb-hub .wb-hub__prop-text {
	color: rgba(255, 255, 255, 0.92);
	font-size: 14px;
	line-height: 1.5;
}

/* FAQ ------------------------------------------------------------------- */

.wb-hub .wb-hub__faq {
	padding-block: 56px 64px;
	background: #f7f8fa;
}

.wb-hub .wb-hub__faq-inner {
	max-width: calc(720px + 2 * var(--wb-nav-gutter, 32px));
}

.wb-hub .wb-hub__faq-eyebrow {
	margin-bottom: 6px;
	color: var(--wb-hub-brand);
	font-size: 13px;
	font-weight: 600;
}

.wb-hub .wb-hub__faq-title {
	margin-bottom: 24px;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.wb-hub .wb-hub__faq-list {
	border-top: 1px solid var(--wb-hub-edge);
}

.wb-hub .wb-hub__faq-item {
	border-bottom: 1px solid var(--wb-hub-edge);
}

.wb-hub .wb-hub__faq-item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-block: 18px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.wb-hub .wb-hub__faq-item summary::-webkit-details-marker {
	display: none;
}

.wb-hub .wb-hub__faq-item summary::after {
	content: "+";
	flex: 0 0 auto;
	color: var(--wb-hub-muted);
	font-size: 20px;
	font-weight: 300;
	line-height: 1;
}

.wb-hub .wb-hub__faq-item[open] summary::after {
	content: "\2212";
}

.wb-hub .wb-hub__faq-answer {
	padding-bottom: 20px;
	color: #3f4652;
	font-size: 14px;
	line-height: 1.65;
}

.wb-hub .wb-hub__faq-answer p + p {
	margin-top: 10px;
}

/* Help band ------------------------------------------------------------- */

.wb-hub .wb-hub__help {
	position: relative;
	display: flex;
	min-height: 440px;
	background-color: #2b2620;
	background-image: linear-gradient(
			180deg,
			rgba(10, 8, 6, 0.1) 0%,
			rgba(10, 8, 6, 0.45) 45%,
			rgba(10, 8, 6, 0.88) 100%
		),
		var(--wb-hub-help-image, none);
	background-position: center;
	background-size: cover;
	color: #fff;
}

.wb-hub .wb-hub__help-inner {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 40px;
	padding-block: 44px 40px;
}

.wb-hub .wb-hub__help-title {
	max-width: 560px;
	color: #fff;
	font-size: 48px;
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.03em;
}

.wb-hub .wb-hub__help-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
}

.wb-hub .wb-hub__help-copy {
	max-width: 520px;
}

.wb-hub .wb-hub__help-subheading {
	margin-bottom: 8px;
	color: #fff;
	font-size: 20px;
	font-weight: 700;
}

.wb-hub .wb-hub__help-text {
	color: rgba(255, 255, 255, 0.88);
	font-size: 14px;
	line-height: 1.55;
}

/* Lighter category page ------------------------------------------------- */

/* These sit inside the theme's own archive template, so they clear its
 * block-gap margins and width constraints themselves. */
.wb-hub.wb-hub--sub,
.wb-hub.wb-hub--sub-after {
	width: 100%;
	max-width: none;
	margin-block: 0;
}

.wb-hub .wb-hub__hero-sub {
	padding-block: 22px 26px;
}

.wb-hub.wb-hub--sub .wb-hub__breadcrumb {
	flex-wrap: wrap;
}

.wb-hub.wb-hub--sub .wb-hub__title {
	margin-bottom: 8px;
	font-size: 34px;
}

.wb-hub.wb-hub--sub .wb-hub__intro {
	max-width: 720px;
}

.wb-hub .wb-hub__related {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	margin-top: 18px;
}

.wb-hub .wb-hub__related .wb-hub__route-label {
	margin-bottom: 0;
}

.wb-hub .wb-hub__related .wb-hub__route-list--chips a {
	background: #fff;
}

.wb-hub .wb-hub__related .wb-hub__route-list--chips a[aria-current] {
	border-color: var(--wb-hub-fg);
	background: var(--wb-hub-fg);
	color: #fff;
}

.wb-hub .wb-hub__chip-count {
	margin-left: 4px;
	color: var(--wb-hub-muted);
	font-size: 12px;
}

.wb-hub .wb-hub__about {
	padding-block: 40px 48px;
	border-top: 1px solid var(--wb-hub-edge);
}

/* Aligned with the product grid above it rather than centred like the hub
 * FAQ, with the measure set on the text itself. */
.wb-hub .wb-hub__about .wb-hub__h2 {
	margin-bottom: 14px;
}

.wb-hub .wb-hub__about-text {
	max-width: 760px;
	color: #3f4652;
	font-size: 15px;
	line-height: 1.7;
}

.wb-hub .wb-hub__about-text p + p,
.wb-hub .wb-hub__about-text ul,
.wb-hub .wb-hub__about-text h2,
.wb-hub .wb-hub__about-text h3 {
	margin-top: 12px;
}

.wb-hub .wb-hub__about-text h2,
.wb-hub .wb-hub__about-text h3 {
	color: var(--wb-hub-fg);
	font-size: 17px;
	font-weight: 700;
}

.wb-hub .wb-hub__about-text ul {
	padding-left: 20px;
	list-style: disc;
}

.wb-hub .wb-hub__about-text a {
	color: var(--wb-hub-brand);
	text-decoration: underline;
}

@media (max-width: 900px) {
	.wb-hub.wb-hub--sub .wb-hub__title {
		font-size: 28px;
	}
}

/* Grid columns by card count ------------------------------------------ */

/* Up to five cards share one row; the panels' lead lists run 4-7 long. */
.wb-hub .wb-hub__types--cols-1 {
	grid-template-columns: minmax(0, 420px);
}

.wb-hub .wb-hub__types--cols-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wb-hub .wb-hub__types--cols-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wb-hub .wb-hub__types--cols-5 {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.wb-hub .wb-hub__routes--cols-1 {
	grid-template-columns: minmax(0, 1fr);
}

.wb-hub .wb-hub__routes--cols-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wb-hub .wb-hub__routes--cols-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Brands ---------------------------------------------------------------- */

.wb-hub .wb-hub__brands {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.wb-hub .wb-hub__brand .wb-hub__type-media {
	height: 110px;
}

.wb-hub .wb-hub__az-letters {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 24px;
}

.wb-hub .wb-hub__az-letters a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	padding-inline: 8px;
	border: 1px solid var(--wb-hub-edge);
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
}

.wb-hub .wb-hub__az-letters a:hover {
	border-color: var(--wb-hub-fg);
}

.wb-hub .wb-hub__az {
	column-count: 4;
	column-gap: 32px;
}

.wb-hub .wb-hub__az-group {
	margin-bottom: 20px;
	break-inside: avoid;
	scroll-margin-top: 180px;
}

.wb-hub .wb-hub__az-letter {
	margin-bottom: 8px;
	color: var(--wb-hub-brand);
	font-size: 13px;
	font-weight: 700;
}

@media (max-width: 1024px) {
	.wb-hub .wb-hub__types--cols-5 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.wb-hub .wb-hub__brands {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.wb-hub .wb-hub__az {
		column-count: 3;
	}
}

@media (max-width: 900px) {
	.wb-hub .wb-hub__brands {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wb-hub .wb-hub__az {
		column-count: 2;
	}
}

@media (max-width: 560px) {
	.wb-hub .wb-hub__az {
		column-count: 1;
	}
}

/* Responsive ------------------------------------------------------------ */

@media (max-width: 1024px) {
	.wb-hub .wb-hub__products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wb-hub .wb-hub__props {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.wb-hub .wb-hub__inner {
		padding-inline: 16px;
	}

	.wb-hub .wb-hub__hero-image {
		display: none;
	}

	.wb-hub .wb-hub__hero-row {
		min-height: 0;
	}

	.wb-hub .wb-hub__title {
		font-size: 32px;
	}

	.wb-hub .wb-hub__types {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wb-hub .wb-hub__routes {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.wb-hub .wb-hub__help-title {
		font-size: 36px;
	}

	.wb-hub .wb-hub__help-row {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 560px) {
	.wb-hub .wb-hub__types,
	.wb-hub .wb-hub__props {
		grid-template-columns: minmax(0, 1fr);
	}

	.wb-hub .wb-hub__band-row {
		flex-direction: column;
		align-items: flex-start;
	}
}
