/**
 * Header, menus, search, mini cart and footer (Figma: Header, Mega menu,
 * Mobile menu / Main · Shop · Brands, Footer, Mobile footer). Desktop navigation
 * from 1024px; below that, the mobile header and menu.
 */

.container {
	box-sizing: border-box;
	width: 100%;
	max-width: calc(1280px + 2 * var(--gutter));
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.container--wide {
	max-width: calc(1520px + 2 * var(--gutter));
}

:root {
	--gutter: 16px;
	--announcement-bar: 30px;
	--header-bar: 46px; /* Figma 66px, 30% lower (2026-10-27) */
	/* What the green bar and the header cover at the top of the window. */
	--sticky-header: calc(var(--wp-admin--admin-bar--height, 0px) + var(--announcement-bar) + var(--header-bar) + 1px);
}

/* Links to a place on the page, and scripts that scroll to one, stop below it. */
html {
	scroll-padding-top: var(--sticky-header);
}

@media (min-width: 1024px) {
	:root {
		--gutter: 40px;
		--header-bar: 67px; /* Figma 96px, 30% lower */
	}
}

body:has(dialog[open]) {
	overflow: hidden;
}

.icon {
	display: block;
	flex: none;
}

.icon-button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid var(--color-pale-sage);
	background: transparent;
	color: var(--color-deep-slate);
	cursor: pointer;
}

/* Grey only on hover and while its panel is open (search, cart, account). */
.icon-button:not(.icon-button--plain):hover,
.icon-button[aria-expanded="true"] {
	border-color: transparent;
	background: var(--color-light-oat);
}

.icon-button--plain {
	border: 0;
	background: none;
}

/* Announcement bar */
.announcement {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: var(--announcement-bar);
	background: var(--color-announcement);
	color: #fff;
	font-family: var(--font-heading);
	font-weight: var(--weight-mont-regular);
	font-size: 12px;
	line-height: 16px;
	letter-spacing: 0.6px;
	text-transform: uppercase;
}

/* The messages side by side, with a line between them (inc/announcement.php). */
.announcement__items {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 6px var(--gutter);
	list-style: none;
	text-align: center;
}

.announcement__items li + li::before {
	content: "|";
	margin: 0 12px;
}

/* When they don't fit on one line (phones, and tablets with long messages):
   one line, one message at a time. site.js decides and marks the one shown;
   before it runs, phones show the first. A message longer than the line
   starts at its left edge and site.js moves it along. */
.announcement__items.is-turning {
	display: grid;
}

.announcement__items.is-turning li {
	grid-area: 1 / 1;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
}

/* Fading only once laid out, so the others don't fade out at the start. */
.announcement__items.is-turning.is-settled li {
	transition: opacity 0.4s ease;
}

.announcement__items.is-turning li::before {
	content: none;
}

/* Still read by screen readers; a link reached with the keyboard is shown
   (site.js). */
.announcement__items.is-turning li:not(.is-current) {
	opacity: 0;
	pointer-events: none;
}

.announcement__items li.is-long {
	text-align: left;
}

.announcement__items.is-turning .announcement__text {
	display: inline-block;
}

@media (max-width: 767px) {
	.announcement__items {
		letter-spacing: 0.3px;
	}

	.announcement__items:not(.is-ready) {
		display: grid;
	}

	.announcement__items:not(.is-ready) li {
		grid-area: 1 / 1;
		min-width: 0;
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
	}

	.announcement__items:not(.is-ready) li::before {
		content: none;
	}

	.announcement__items:not(.is-ready) li:not(:first-child) {
		visibility: hidden;
	}
}

/* Reduced motion: no fading and no moving; a long message wraps instead
   (site.js keeps the bar as high as the highest one). */
@media (prefers-reduced-motion: reduce) {
	.announcement__items.is-turning li {
		white-space: normal;
	}

	.announcement__items.is-turning.is-settled li {
		transition: none;
	}

	.announcement__items li.is-long {
		text-align: center;
	}
}

/* No messages (all emptied in the Customizer): no bar, nothing kept for it. */
:root:not(:has(body > .announcement)) {
	--announcement-bar: 0px;
}

/* Stays in view with the header (client, 2026-11-09); not the one in the mobile menu. */
body > .announcement {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 990; /* as the header */
}

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

.announcement a:hover {
	color: inherit;
	text-decoration: underline;
}


/* Header bar: stays in view at the top of the window, under the green bar. */
.site-header {
	position: sticky;
	top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--announcement-bar));
	/* Above page widgets such as the gallery zoom button, below the ZipChat
	   (999, set inside its own widget), so an open chat covers the header. */
	z-index: 990;
	border-bottom: 1px solid var(--color-pale-sage);
	background: var(--color-warm-off-white);
}

.site-header__bar {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var(--header-bar);
}

.site-logo img {
	display: block;
	width: 90px;
	height: auto;
	filter: brightness(0); /* the white logo file, drawn dark */
}

@media (min-width: 1024px) {
	.site-logo img {
		width: 130px;
	}
}

.primary-nav {
	display: none;
}

/* Phones and tablets: the cart and the account stay in the header, beside
   the menu button (client, 2026-11-11); the language and the search are in
   the menu. */
.site-header__tools {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
}

@media (max-width: 1023px) {
	.site-header__tools > .locale,
	.site-header__tools > .icon-button--search {
		display: none;
	}
}

.menu-button {
	margin-left: 2px;
	padding: 4px;
	border: 0;
	background: none;
	color: var(--color-deep-slate);
	cursor: pointer;
}

@media (min-width: 1024px) {
	.primary-nav {
		display: block;
		flex: 1;
	}

	.site-header__tools {
		display: flex;
		align-items: center;
		gap: 14px;
	}

	.menu-button {
		display: none;
	}
}

.primary-nav__list {
	display: flex;
	justify-content: center;
	gap: clamp(20px, 2.5vw, 40px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--color-body-gray);
	font-family: var(--font-heading);
	font-weight: var(--weight-mont-regular);
	font-size: 18px;
	line-height: 34px;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}

.primary-nav__item {
	display: flex;
	align-items: center;
}

/* Small laptops (1024 to 1279): the bar is tighter, so the menu, language
   and icons fit on one line. */
@media (min-width: 1024px) and (max-width: 1279px) {
	.site-header__bar {
		gap: 20px;
	}

	.site-logo img {
		width: 110px;
	}

	.primary-nav__list {
		gap: 18px;
	}

	.primary-nav__link {
		font-size: 16px;
	}

	.site-header__tools {
		gap: 10px;
	}
}

.primary-nav__link:hover,
.primary-nav__link[aria-current="page"],
.primary-nav__item:has([aria-expanded="true"]) .primary-nav__link {
	color: var(--color-dark-sage);
}

/* Chevron button next to a label that has a panel. */
.primary-nav__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 34px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--color-body-gray);
	cursor: pointer;
}

.primary-nav__toggle[aria-expanded="true"] {
	color: var(--color-dark-sage);
}

.primary-nav__toggle[aria-expanded="true"] .icon {
	transform: rotate(180deg);
}

/* Desktop panels (mega menu, Brands) */
.nav-panel {
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	/* The header no longer scrolls away, so a tall panel scrolls itself. */
	max-height: calc(100vh - var(--sticky-header));
	overflow-y: auto;
	overscroll-behavior: contain;
	border-top: 1px solid var(--color-pale-sage);
	border-bottom: 1px solid var(--color-pale-sage);
	background: var(--color-warm-off-white);
}

.nav-panel__inner {
	padding-top: 40px;
	padding-bottom: 32px;
}

.mega {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 32px;
}

.mega__title {
	margin: 0 0 16px;
	font-family: var(--font-heading);
	font-weight: var(--weight-mont-bold);
	font-size: 14px;
	line-height: 20px;
	text-transform: uppercase;
}

.mega__links + .mega__title {
	margin-top: 32px;
}

/* The card (inc/mega-card.php), on every screen (client, 2026-11-24): in the
   last column of the Shop panel from 1280px; under its columns from 1024 to
   1279px, where they need the room; in the mobile menu's Shop screen, under
   the categories. Below 1280px the picture is on the left. The whole card
   is the button's link (client, 2026-11-25): its ::after covers the card. */
.mega-card {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 12px;
	border-radius: 10px;
	background: var(--color-surface);
}

/* Two classes: over WooCommerce's ".woocommerce img" (height: auto). */
.mega-card .mega-card__image {
	display: block;
	flex: 0 0 112px;
	width: 112px;
	height: 112px;
	border-radius: 8px;
	object-fit: cover;
}

.mega-card__title {
	display: -webkit-box;
	overflow: hidden;
	margin: 0;
	color: var(--color-heading);
	font-family: var(--font-heading);
	font-weight: var(--weight-mont-bold);
	font-size: 16px;
	line-height: 22px;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.mega-card__text {
	display: -webkit-box;
	overflow: hidden;
	margin: 4px 0 0;
	color: var(--color-heading);
	font-family: var(--font-heading);
	font-weight: var(--weight-mont-regular);
	font-size: 14px;
	line-height: 20px;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.mega-card__body {
	flex: 1;
	min-width: 0;
}

/* a.: as strong as WooCommerce's ".woocommerce a.button" (shop and product
   pages), which comes earlier. */
.mega-card a.mega-card__button {
	position: static;
	box-sizing: border-box;
	min-height: 40px;
	margin-top: 12px;
	padding: 0 20px;
	border-radius: var(--radius-pill);
	font-size: 14px;
	line-height: 20px;
}

.mega-card a.mega-card__button::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 10px;
}

.mega-card:hover .mega-card__title {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.mobile-menu .mega-card {
	margin-top: 24px;
}

@media (min-width: 768px) {
	.mega-card {
		gap: 20px;
		padding: 15px 16px;
	}

	.mega-card .mega-card__image {
		flex-basis: 180px;
		width: 180px;
		height: 124px;
		border-radius: 10px;
	}

	.mobile-menu .mega-card {
		box-sizing: border-box;
		max-width: 560px;
	}
}

@media (min-width: 1024px) and (max-width: 1279px) {
	.mega--card .mega-card {
		grid-column: 1 / -1;
		max-width: 700px;
	}

	.mega--card .mega-card__image {
		flex-basis: 217px;
		width: 217px;
		height: 148px;
	}
}

/* Computers: the card as the last column, picture on top. */
@media (min-width: 1280px) {
	.mega--card {
		grid-template-columns: repeat(var(--mega-columns), minmax(0, 1fr)) 249px;
	}

	.mega-card {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		align-self: start;
		padding: 15px 16px 18px;
	}

	.mega-card .mega-card__image {
		flex-basis: auto;
		width: 100%;
		height: 148px;
	}

	.mega-card__title {
		margin-top: 12px;
		font-size: 18px;
		line-height: 24px;
		-webkit-line-clamp: 3;
	}

	.mega-card__text {
		margin-top: 6px;
		line-height: 22px;
		-webkit-line-clamp: 4;
	}

	.mega-card a.mega-card__button {
		width: 100%;
		min-height: 42px;
		margin-top: 16px;
		padding: 0 16px;
	}
}

.mega__title a {
	color: var(--color-dark-sage);
	text-decoration: none;
}

.mega__links,
.mega__highlights {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* A link over two or three lines keeps its lines close together, with more
   room before the next link (client, 2026-11-20); one-line links stay as far
   apart as before. */
.mega__links li + li {
	margin-top: 14px;
}

.mega__links a {
	display: block;
	color: var(--color-body-gray);
	font-size: 14px;
	line-height: 18px;
	text-decoration: none;
}

.mega__links a:hover,
.mega__links a[aria-current] {
	color: var(--color-dark-sage);
	text-decoration: underline;
}

.mega__highlights {
	display: flex;
	gap: 50px;
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--color-pale-sage);
}

.mega__highlights a,
.mobile-highlights a {
	color: var(--color-deep-slate);
	font-family: var(--font-heading);
	font-weight: var(--weight-mont-bold);
	font-size: 16px;
	line-height: 24px;
	text-decoration: none;
}

.mega__highlights a:hover,
.mobile-highlights a:hover {
	color: var(--color-dark-sage);
}

/* Brand cards: the picture (with the logo and arrow in it) keeps its
   proportions, so nothing is cut off; in the menu they sit side by side when
   there is room (tablets: three). */
.brand-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.brand-cards--panel {
	grid-template-columns: repeat(3, 1fr);
}

.brand-card {
	position: relative;
	display: flex;
	align-items: center;
	aspect-ratio: 343 / 170;
	overflow: hidden;
	isolation: isolate;
	border-radius: 16px;
	background: var(--brand-color, var(--color-deep-slate));
	color: var(--color-warm-off-white);
	text-decoration: none;
}

/* Over the site's dark link colour on hover. */
.brand-card:hover,
.brand-card:focus-visible {
	color: var(--color-warm-off-white);
}

/* The shade behind the text, in the brand's colour (as on the home page). */
.brand-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to right, var(--brand-shade, rgba(34, 51, 60, 0.6)) 15%, transparent 80%);
}

.brand-card .brand-card__image {
	position: absolute;
	inset: 0;
	z-index: -2;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

/* An upright photo: on the right, fading into the brand's colour; wide, the
   fade soft, so more of the photo shows (client, 2026-11-26). */
.brand-card--narrow .brand-card__image {
	left: auto;
	width: 80%;
	-webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.25), #000 35%);
	mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.25), #000 35%);
}

.brand-card:hover .brand-card__image {
	transform: scale(1.03);
}

.brand-card__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	max-width: 72%;
	padding: 16px 20px;
}

.brand-card .brand-card__logo {
	width: auto;
	max-width: 100%;
	height: 32px;
	object-fit: contain;
	object-position: left center;
}

.brand-card__title {
	font-family: var(--font-heading);
	font-weight: var(--weight-mont-bold);
	font-size: 16px;
	line-height: 22px;
}

.brand-card__more {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	margin-top: 4px;
	padding: 0 16px;
	border-radius: var(--radius-pill);
	background: var(--brand-button, var(--color-primary));
	color: var(--brand-button-text, var(--color-on-primary));
	font-family: var(--font-heading);
	font-weight: var(--weight-mont-bold);
	font-size: 13px;
	line-height: 18px;
	transition: filter 0.15s ease;
}

.brand-card:hover .brand-card__more {
	filter: brightness(1.1);
}

.nav-panel__all {
	margin: 24px 0 0;
}

.nav-panel__all a {
	color: var(--color-deep-slate);
	font-family: var(--font-heading);
	font-weight: var(--weight-mont-bold);
	font-size: 16px;
}

/* Language / currency */
.locale {
	position: relative;
}

.locale__toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
	padding: 6px 0;
	border: 0;
	background: none;
	color: var(--color-body-gray);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 24px;
	cursor: pointer;
}

.locale__toggle[aria-expanded="true"] .icon {
	transform: rotate(180deg);
}

.locale__panel {
	position: absolute;
	top: 100%;
	right: 0;
	z-index: 60;
	display: grid;
	grid-template-columns: auto auto;
	grid-auto-flow: column;
	grid-template-rows: auto 1fr;
	column-gap: 32px;
	min-width: 280px;
	padding: 20px 24px;
	border: 1px solid var(--color-pale-sage);
	background: var(--color-warm-off-white);
	box-shadow: 0 8px 24px rgba(34, 51, 60, 0.12);
}

.locale__panel[hidden] {
	display: none;
}

.locale--up .locale__panel {
	top: auto;
	bottom: 100%;
	left: 0;
	right: auto;
}

/* Phones: the footer's switcher is centred, so its panel is too (from the
   left edge it ran off the screen). */
@media (max-width: 767px) {
	.locale--up .locale__panel {
		max-width: calc(100vw - 32px);
	}

	.footer-bottom .locale--up .locale__panel {
		left: 50%;
		transform: translateX(-50%);
	}
}

.locale__label {
	margin: 0 0 8px;
	color: var(--color-dark-sage);
	font-family: var(--font-heading);
	font-weight: var(--weight-mont-bold);
	font-size: 14px;
	text-transform: uppercase;
}

.locale__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.locale__list a {
	display: block;
	padding: 4px 0;
	color: var(--color-body-gray);
	font-size: 14px;
	line-height: 20px;
	text-decoration: none;
}

/* .locale: over the footer's white links (.footer-main a), which made the
   options invisible on the panel's light background. */
.locale .locale__list a {
	color: var(--color-body-gray);
}

.locale .locale__list a:hover,
.locale .locale__list a[aria-current] {
	color: var(--color-dark-sage);
	text-decoration: underline;
}

.locale--dark .locale__toggle {
	color: var(--color-warm-off-white);
}

/* Search */
.site-search {
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	padding: 24px 0;
	border-top: 1px solid var(--color-pale-sage);
	border-bottom: 1px solid var(--color-pale-sage);
	background: var(--color-warm-off-white);
}

.search-form {
	display: flex;
	gap: 12px;
	max-width: 680px;
	margin: 0 auto;
}

.search-form input[type="search"] {
	flex: 1;
	min-height: 52px;
}

.search-form .button {
	flex: none;
}

/* Cart count */
.how-cart-count {
	position: absolute;
	top: -7px;
	right: -7px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	box-sizing: border-box;
	border-radius: 9px;
	background: var(--color-dark-sage);
	color: var(--color-warm-off-white);
	font-size: 11px;
	font-weight: var(--weight-gilroy-medium);
	line-height: 18px;
	text-align: center;
}

.how-cart-count[data-count="0"] {
	display: none;
}

/* Dialogs: mobile menu and mini cart */
dialog.mobile-menu,
dialog.drawer {
	box-sizing: border-box;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--color-warm-off-white);
	color: var(--color-text);
}

dialog::backdrop {
	background: rgba(34, 51, 60, 0.4);
}

dialog.mobile-menu {
	width: 100%;
	height: 100%;
	overflow-y: auto;
}

.mobile-menu__head {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: var(--header-bar);
	padding: 0 16px;
	border-bottom: 1px solid var(--color-pale-oat);
}

.mobile-menu__head .site-logo {
	margin-right: auto;
}

.mobile-menu__search {
	padding: 16px;
	border-bottom: 1px solid var(--color-pale-oat);
}

.mobile-menu__panel {
	padding: 8px 16px 24px;
}

.mobile-nav,
.mobile-highlights,
.accordion__links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mobile-nav__link,
.mobile-menu__back {
	display: flex;
	align-items: center;
	justify-content: space-between;
	box-sizing: border-box;
	width: 100%;
	padding: 18px 0;
	border: 0;
	border-bottom: 1px solid var(--color-pale-oat);
	background: none;
	color: var(--color-body-gray);
	font-family: var(--font-heading);
	font-weight: var(--weight-mont-regular);
	font-size: 20px;
	line-height: 26px;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}

.mobile-menu__back {
	justify-content: flex-start;
	gap: 12px;
	margin-bottom: 16px;
}

/* Label link + chevron button that opens the sub-screen. */
.mobile-nav__row {
	display: flex;
	align-items: center;
	border-bottom: 1px solid var(--color-pale-oat);
}

.mobile-nav__row .mobile-nav__link {
	flex: 1;
	border-bottom: 0;
}

.mobile-nav__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-right: -12px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--color-body-gray);
	cursor: pointer;
}

.mobile-highlights {
	display: grid;
	gap: 14px;
	margin-top: 24px;
}

.mobile-menu__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 40px 0 24px;
}

.mobile-menu__icons {
	display: flex;
	gap: 10px;
}

.mobile-menu__icons .icon-button {
	width: 40px;
	height: 40px;
}

.accordion__item {
	border-bottom: 1px solid var(--color-pale-oat);
}

.accordion__heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0;
}

.accordion__label {
	padding: 16px 0;
	color: var(--color-dark-sage);
	font-family: var(--font-heading);
	font-weight: var(--weight-mont-bold);
	font-size: 14px;
	line-height: 20px;
	text-decoration: none;
	text-transform: uppercase;
}

.accordion__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-right: -12px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--color-dark-sage);
	cursor: pointer;
}

.accordion__toggle .icon-minus,
.accordion__toggle[aria-expanded="true"] .icon-plus {
	display: none;
}

.accordion__toggle[aria-expanded="true"] .icon-minus {
	display: block;
}

.accordion__links {
	padding-bottom: 16px;
}

.accordion__links a {
	display: block;
	padding: 10px 0;
	color: var(--color-body-gray);
	font-family: var(--font-heading);
	font-weight: var(--weight-mont-regular);
	font-size: 18px;
	line-height: 26px;
	text-decoration: none;
}

/* The drawer shows the added item; the "added to your cart" notice would repeat it. */
.how-cart-added .woocommerce-message:has(.how-added-notice) {
	display: none;
}

/* Mini cart drawer */
dialog.drawer {
	position: fixed;
	inset: 0 0 0 auto;
	width: min(420px, 100%);
	height: 100%;
	overflow-y: auto;
}

.drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 24px;
	border-bottom: 1px solid var(--color-pale-oat);
}

.drawer__title {
	margin: 0;
	font-size: var(--text-h5);
	line-height: var(--leading-h5);
	font-weight: var(--weight-mont-bold);
}

.drawer__head .icon-button {
	border: 0;
}

.drawer__body {
	padding: 24px;
}

#mini-cart .woocommerce-mini-cart {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Item: image on the left (72 px), name, options and "qty × price" beside it. */
#mini-cart .woocommerce-mini-cart-item {
	position: relative;
	min-height: 72px;
	margin-bottom: 20px;
	padding: 0 32px 20px 88px;
	border-bottom: 1px solid var(--color-pale-oat);
	color: var(--color-body-gray);
	font-size: 14px;
	line-height: 20px;
}

#mini-cart .woocommerce-mini-cart-item > a:not(.remove) {
	display: block;
	color: var(--color-deep-slate);
	font-family: var(--font-heading);
	font-weight: var(--weight-mont-regular);
	font-size: 16px;
	line-height: 24px;
	text-decoration: none;
}

#mini-cart .woocommerce-mini-cart-item img {
	position: absolute;
	top: 0;
	left: 0;
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: var(--radius-option-image);
}

#mini-cart .woocommerce-mini-cart-item .quantity {
	display: block;
	margin-top: 4px;
}

#mini-cart .woocommerce-mini-cart-item .remove {
	position: absolute;
	top: 0;
	right: 0;
	width: 24px;
	height: 24px;
	color: var(--color-body-gray);
	font-size: 20px;
	line-height: 24px;
	text-align: center;
	text-decoration: none;
}

#mini-cart .woocommerce-mini-cart-item .variation {
	margin: 4px 0;
	font-size: 12px;
}

#mini-cart .woocommerce-mini-cart__total {
	display: flex;
	justify-content: space-between;
	margin: 0 0 20px;
	color: var(--color-deep-slate);
	font-family: var(--font-heading);
	font-size: 18px;
}

#mini-cart .woocommerce-mini-cart__buttons {
	display: grid;
	gap: 12px;
	margin: 0;
}

#mini-cart .woocommerce-mini-cart__buttons .button:not(.checkout) {
	background: var(--color-soft-ivory);
	color: var(--color-dark-sage);
}

#mini-cart .woocommerce-mini-cart__empty-message {
	margin: 0;
	color: var(--color-body-gray);
}

/* Footer: "Find your kind of comfort" (Figma Homepage V3 - final 3572:10171,
   Mobile 3613:8193): dark sage with the ram, faint, on the right; the text
   and buttons, then questions that start the chat (site.js). Phones and
   tablets: one under the other, the questions the full width. */
.comfort-cta {
	position: relative;
	padding: 56px 0;
	overflow: hidden;
	isolation: isolate;
	background: var(--color-dark-sage);
	color: #fff;
}

.comfort-cta::before {
	content: "";
	position: absolute;
	bottom: 0;
	left: 106px;
	z-index: -1;
	width: 562px;
	aspect-ratio: 729 / 523;
	background: #fff;
	opacity: 0.08;
	-webkit-mask: url(../images/ram.svg) no-repeat 0 0 / 100% 100%;
	mask: url(../images/ram.svg) no-repeat 0 0 / 100% 100%;
	pointer-events: none;
}

.comfort-cta__eyebrow {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: rgba(255, 255, 255, 0.85);
	font-family: var(--font-heading);
	font-weight: var(--weight-mont-bold);
	font-size: var(--text-eyebrow);
	line-height: var(--leading-eyebrow);
	text-transform: uppercase;
}

.comfort-cta__eyebrow::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #7bd88f;
}

.comfort-cta__title {
	margin: 14px 0 0;
	color: inherit;
	font-weight: var(--weight-mont-regular);
	font-size: var(--text-h2);
	line-height: var(--leading-h2);
}

.comfort-cta__text {
	margin: 12px 0 0;
	color: rgba(255, 255, 255, 0.85);
	font-size: var(--text-body-l);
	line-height: var(--leading-body-l);
}

.comfort-cta__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 16px;
	margin-top: 24px;
}

/* a.: as strong as ".woocommerce a.button" (base.css), which would make it
   dark sage on dark sage on shop and product pages. */
.comfort-cta a.button {
	box-sizing: border-box;
	background: #fff;
	color: var(--color-deep-slate);
}

.comfort-cta a.button:hover {
	background: var(--color-pale-oat);
	color: var(--color-deep-slate);
}

.comfort-cta a.button.button--secondary {
	border: 1px solid rgba(255, 255, 255, 0.6);
	background: transparent;
	color: #fff;
}

.comfort-cta a.button.button--secondary:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.comfort-cta__start {
	margin: 32px 0 0;
	color: rgba(255, 255, 255, 0.7);
	font-size: var(--text-small);
	line-height: var(--leading-small);
}

.comfort-cta__questions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.comfort-question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	box-sizing: border-box;
	width: 100%;
	padding: 14px 12px 14px 18px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 22px 22px 6px 22px;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	font-family: var(--font-heading);
	font-weight: var(--weight-mont-regular);
	font-size: var(--text-question);
	line-height: var(--leading-question);
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.comfort-question:hover {
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
}

.comfort-question__go {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
}

/* The arrow 1.5 px at 18, as in Figma (the icons are drawn at 24). */
.comfort-question__go .icon {
	stroke-width: 2;
}

/* The first question stands out: ivory, the arrow on dark sage. */
.comfort-cta__questions li:first-child .comfort-question {
	border-color: var(--color-soft-ivory);
	background: var(--color-soft-ivory);
	color: var(--color-deep-slate);
}

.comfort-cta__questions li:first-child .comfort-question:hover {
	border-color: #fff;
	background: #fff;
}

.comfort-cta__questions li:first-child .comfort-question__go {
	background: var(--color-dark-sage);
	color: #fff;
}

@media (max-width: 767px) {
	.comfort-cta__buttons .button {
		width: 100%;
	}
}

@media (min-width: 768px) {
	.comfort-cta {
		padding: 80px 0;
	}

	.comfort-cta__start {
		font-size: 14px;
	}
}

/* Computers: the text on the left, the questions on the right, stepped. */
@media (min-width: 1024px) {
	.comfort-cta {
		padding: 120px 0;
	}

	.comfort-cta::before {
		top: -60px;
		bottom: auto;
		left: calc(50% + 280px);
		width: 1021px;
	}

	.comfort-cta__inner {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 40px;
	}

	.comfort-cta__copy {
		flex: 0 1 520px;
	}

	.comfort-cta__title {
		margin-top: 22px;
	}

	.comfort-cta__text {
		max-width: 500px;
		margin-top: 22px;
	}

	.comfort-cta__buttons {
		margin-top: 30px;
	}

	.comfort-cta__ask {
		display: flex;
		flex: 0 1 600px;
		flex-direction: column;
		align-items: flex-end;
	}

	.comfort-cta__start {
		margin: 0;
	}

	.comfort-cta__questions {
		align-items: flex-end;
		gap: 14px;
		margin-top: 14px;
	}

	.comfort-question {
		width: auto;
		padding: 18px 18px 18px 24px;
	}
}

@media (min-width: 1280px) {
	.comfort-cta__questions li:nth-child(2) {
		margin-right: 60px;
	}

	.comfort-cta__questions li:nth-child(3) {
		margin-right: 20px;
	}

	.comfort-cta__questions li:nth-child(4) {
		margin-right: 80px;
	}
}

/* The sign-up pop-up's form (inc/signup-popup.php). */
.newsletter__trap {
	position: absolute;
	left: -9999px;
}

.newsletter__message {
	margin: 0;
	color: var(--color-deep-slate);
	font-weight: var(--weight-gilroy-medium);
}

.newsletter__message.is-error {
	color: var(--color-error);
}

.footer-main {
	padding: 48px 0 32px;
	background: var(--color-deep-slate);
	color: var(--color-warm-off-white);
}

.footer-main a {
	color: var(--color-warm-off-white);
	text-decoration: none;
}

.footer-main a:hover {
	color: var(--color-warm-off-white);
	text-decoration: underline;
}

.footer-main__grid {
	display: grid;
	gap: 40px;
}

.footer-brand {
	text-align: center;
}

.footer-brand__logo {
	width: 124px;
	height: auto;
}

.footer-brand__home {
	display: inline-block;
}

.footer-brand__home:hover {
	opacity: 0.8;
}

.footer-brand p {
	max-width: 260px;
	margin: 16px auto 0;
	font-size: 14px;
	line-height: 20px;
}

.footer-brand__badges {
	display: flex;
	justify-content: center;
	gap: 30px;
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
}

.footer-brand__badges img {
	display: block;
	width: 48px;
	height: 48px;
	object-fit: contain;
}

.footer-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-areas:
		"shop brands"
		"shop help"
		"about help";
	gap: 32px 24px;
}

.footer-nav__column {
	display: contents;
}

.footer-nav__group:nth-child(1) { grid-area: shop; }
.footer-nav__column:nth-child(2) .footer-nav__group:nth-child(1) { grid-area: brands; }
.footer-nav__column:nth-child(2) .footer-nav__group:nth-child(2) { grid-area: about; }
.footer-nav__column:nth-child(3) .footer-nav__group { grid-area: help; }

.footer-nav__title {
	margin: 0 0 4px;
	color: var(--color-warm-off-white);
	font-weight: var(--weight-mont-bold);
	font-size: 14px;
	line-height: 20px;
	text-transform: uppercase;
}

.footer-nav__links {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 15px;
	line-height: 20px;
}

/* Phones and tablets: rows of 36px, easy to tap. */
.footer-nav__links a {
	display: block;
	padding: 8px 0;
}

.footer-bottom {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	margin-top: 48px;
	text-align: center;
}

.footer-bottom__copy {
	order: 1;
	margin: 0;
	font-size: 14px;
}

.footer-bottom__legal {
	display: flex;
	order: 2;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
}

.footer-bottom__legal li + li::before {
	content: " | ";
	white-space: pre;
}

.footer-bottom .locale {
	order: 3;
}

.footer-bottom__social a:hover {
	color: var(--color-natural-oat);
}

/* Mobile: social icons above the divider (Mobile footer design). */
.footer-bottom__social {
	display: flex;
	order: 0;
	justify-content: center;
	gap: 20px;
	box-sizing: border-box;
	width: 100%;
	margin: 0 0 8px;
	padding: 0 0 24px;
	border-bottom: 1px solid rgba(254, 253, 253, 0.2);
	list-style: none;
}

@media (min-width: 1024px) {
	.footer-main {
		padding: 85px 0 30px;
	}

	.footer-main__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
		gap: 40px;
	}

	.footer-brand {
		text-align: left;
	}

	.footer-brand__logo {
		width: 194px;
	}

	.footer-brand p {
		max-width: 280px;
		margin: 24px 0 0;
		font-size: 16px;
		line-height: 24px;
	}

	.footer-brand__badges {
		justify-content: flex-start;
		margin-top: 32px;
	}

	.footer-brand__badges img {
		width: 57px;
		height: 57px;
	}

	.footer-nav {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		grid-template-areas: none;
		align-items: start;
		gap: 40px;
	}

	.footer-nav__column {
		display: grid;
		gap: 40px;
		align-content: start;
	}

	.footer-nav__group {
		grid-area: auto !important;
	}

	.footer-nav__title {
		margin-bottom: 16px;
	}

	.footer-nav__links {
		font-size: 16px;
		line-height: 32px;
	}

	.footer-nav__links a {
		display: inline;
		padding: 0;
	}

	.footer-bottom {
		flex-direction: row;
		justify-content: space-between;
		margin-top: 80px;
		padding-top: 40px;
		text-align: left;
	}

	.footer-bottom::before {
		content: "";
		position: absolute;
		top: 0;
		right: var(--gutter);
		left: var(--gutter);
		border-top: 1px solid rgba(254, 253, 253, 0.2);
	}

	.footer-bottom__social {
		width: auto;
		margin: 0;
		padding: 0;
		border-bottom: 0;
	}

	.footer-bottom__copy,
	.footer-bottom__legal {
		font-size: 16px;
	}

	.footer-bottom__copy { order: 0; }
	.footer-bottom__legal { order: 1; margin-left: auto; }
	.footer-bottom .locale { order: 2; margin-right: auto; }
	.footer-bottom__social { order: 3; }

	.footer-bottom__since {
		display: none;
	}
}

/* ---- Email sign-up pop-up (Figma "Modal" 2829:4110; inc/signup-popup.php) -- */

dialog.signup-popup {
	box-sizing: border-box;
	width: min(100% - 32px, 1000px);
	max-width: none;
	max-height: calc(100% - 32px);
	margin: auto;
	padding: 0;
	overflow: auto;
	border: 0;
	border-radius: var(--radius-card);
	background: var(--color-soft-ivory);
	color: var(--color-deep-slate);
}

dialog.signup-popup::backdrop {
	background: rgba(34, 51, 60, 0.55);
}

.signup-popup__inner {
	position: relative;
	display: grid;
}

.signup-popup__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 56px 20px 28px;
	text-align: center;
}

.signup-popup .signup-popup__logo {
	width: 120px;
	height: auto;
	margin-bottom: 24px;
	filter: brightness(0);
}

.signup-popup .signup-popup__title {
	max-width: 420px;
	margin: 0 0 12px;
	font-size: 26px;
	line-height: 34px;
}

.signup-popup__intro {
	max-width: 360px;
	margin: 0 0 24px;
	color: var(--color-body-gray);
	font-size: 14px;
	line-height: 22px;
}

.signup-popup__form {
	display: grid;
	gap: 12px;
	width: 100%;
	max-width: 420px;
}

.signup-popup__fields {
	display: grid;
	gap: 12px;
}

.signup-popup__fields input {
	box-sizing: border-box;
	width: 100%;
	height: 48px;
	padding: 0 18px;
	border: 1px solid var(--color-pale-oat);
	border-radius: 2px;
	background: #fff;
	color: var(--color-deep-slate);
	font: inherit;
	font-size: 15px;
}

.signup-popup__fields input:focus {
	border-color: var(--color-primary);
	outline: 0;
	box-shadow: 0 0 0 1px var(--color-primary);
}

.signup-popup__fields input[aria-invalid="true"] {
	border-color: var(--color-error);
}

.signup-popup .signup-popup__submit {
	width: 100%;
	margin-top: 4px;
}

.signup-popup__message:empty {
	display: none;
}

/* Signed up: the message in place of the form. */
.signup-popup__form.is-done .signup-popup__fields,
.signup-popup__form.is-done .signup-popup__submit {
	display: none;
}

.signup-popup__no {
	margin-top: 14px;
	padding: 6px 12px;
	border: 0;
	background: none;
	color: var(--color-deep-slate);
	font: inherit;
	font-size: 15px;
	cursor: pointer;
}

.signup-popup__no:hover {
	text-decoration: underline;
}

.signup-popup__legal {
	max-width: 400px;
	margin: 20px 0 0;
	color: #7a7f7b;
	font-size: 12px;
	line-height: 18px;
}

.signup-popup__legal a {
	color: inherit;
}

/* Phones: the photo as a band above the form (client, 2026-11-27); the close
   button sits on it. */
.signup-popup .signup-popup__image {
	order: -1;
	display: block;
	width: 100%;
	height: 150px;
	object-fit: cover;
}

@media (max-width: 767px) {
	.signup-popup__content {
		padding-top: 24px;
	}

	.signup-popup .signup-popup__logo {
		width: 100px;
		margin-bottom: 16px;
	}
}

/* Short phones: without the band, so the form fits without scrolling. */
@media (max-width: 767px) and (max-height: 699px) {
	.signup-popup .signup-popup__image {
		display: none;
	}
}

.signup-popup__close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--color-deep-slate);
	box-shadow: 0 2px 8px rgba(34, 51, 60, 0.15);
	cursor: pointer;
}

.signup-popup__close:hover {
	background: var(--color-light-oat);
}

@media (min-width: 768px) {
	.signup-popup__inner {
		grid-template-columns: 1fr 1fr;
	}

	.signup-popup__content {
		justify-content: center;
		padding: 56px 48px 40px;
	}

	.signup-popup .signup-popup__title {
		font-size: 30px;
		line-height: 38px;
	}

	.signup-popup__fields {
		grid-template-columns: 1fr 1fr;
	}

	.signup-popup .signup-popup__image {
		order: 0;
		width: 100%;
		height: 100%;
		max-height: calc(100vh - 32px);
		object-fit: cover;
	}

	.signup-popup__close {
		top: 20px;
		right: 20px;
	}
}

/* ---- A video playing while in view (how_theme_inline_video(), site.js) -- */

.inline-video {
	position: relative;
}

.inline-video__toggle {
	position: absolute;
	right: 16px;
	bottom: 16px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(34, 51, 60, 0.6);
	color: var(--color-warm-off-white);
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.inline-video__icon {
	display: block;
	line-height: 0;
}

.inline-video__toggle[hidden],
.inline-video__toggle .inline-video__icon--pause,
.inline-video__toggle.is-playing .inline-video__icon--play {
	display: none;
}

.inline-video__toggle.is-playing .inline-video__icon--pause {
	display: block;
}

.inline-video__toggle:hover {
	background: rgba(34, 51, 60, 0.85);
}
