/* AYRAERYNA site chrome: announcement slider, header (white; transparent over a hero), slim sticky row,
   mega menu skin, Batik Thursday dropdown, phone drawer, footer and the community sign-up.
   From the approved mockups (mockup-src/ayra.py + common.py); the mockup's measurements are kept so the two can be
   compared side by side. Colour and type tokens live in brand.css. Black and white only: the only red on this page is
   the cart-count badge, the NEW label in the menus and the phone-menu Sale link. */

/* Distance the WordPress admin bar takes at the top (only when logged in), so fixed things sit below it.
   The admin bar is 32px tall, 46px on narrow screens, and scrolls away on the narrowest (600px). */
body.admin-bar { --ay-adminbar: 32px; }
@media (max-width: 782px) { body.admin-bar { --ay-adminbar: 46px; } }
@media (max-width: 600px) { body.admin-bar { --ay-adminbar: 0px; } }
/* No announcement bar on this page (cart, checkout): nothing to clear at the top. */
body.ay-no-ann { --ann-h: 0px; }

/* ---------------------------------------------------------------- announcement slider */
/* Black bar above the header: previous arrow | one message | next arrow. chrome.js shows one <p> at a time and moves on
   every 4.5 s; without JavaScript the first message simply stays. The arrows are flat on purpose: the parent theme
   paints every plain <button>, so !important keeps them transparent. */
.nl-ann {
	position: relative;
	z-index: 60;
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr) 40px;
	align-items: center;
	height: var(--ann-h);
	padding-inline: clamp(8px, 6vw, 100px);
	background: var(--ay-ink);
	color: #fff;
}
.nl-ann-btn {
	display: grid;
	place-items: center;
	height: var(--ann-h);
	min-height: 0;
	padding: 0;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
	color: inherit;
	opacity: .85;
	cursor: pointer;
}
.nl-ann-btn:hover { opacity: 1; color: #fff; }
.nl-ann-btn:focus-visible { outline-color: #fff; }
.nl-ann-msgs { margin: 0; text-align: center; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.nl-ann-msgs p { margin: 0; }
.nl-ann-msgs b, .nl-ann-msgs strong { color: #fff; font-weight: 600; }
.nl-ann-msgs a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- header */
/* One row, 72px: burger (phones) + menu | centred logo | search, account, bag. White with a hairline under it.
   Shop Kit marks a header it hangs the mega panel from with .qav-mm-anchor (position: relative); .nl-hdr is already positioned. */
.nl-hdr {
	position: relative;
	z-index: 50;
	background: #fff;
	color: var(--ay-ink);
	border-bottom: 1px solid var(--ay-line);
	transition: background-color .2s;
}
.nl-top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 20px;
	height: var(--ay-top-h);
	padding-inline: clamp(16px, 3.4vw, 48px);
}
.nl-l { display: flex; align-items: center; justify-content: flex-start; gap: 6px; }
.nl-r { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.nl-burger, .nl-search-m { display: none !important; }

/* Icon buttons. Flat on purpose: the parent theme paints every plain <button>, so !important keeps them transparent. */
.ibtn {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--ay-ink);
	cursor: pointer;
	text-decoration: none;
	transition: background-color .2s;
}
.nl-hdr .ibtn, .nl-stick .ibtn {
	padding: 0;
	min-height: 0;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
	color: var(--ay-ink);
}
.nl-hdr .ibtn:hover, .nl-stick .ibtn:hover { background: var(--ay-wash) !important; color: var(--ay-ink); }

/* The small number on the bag: white on red #DC2626 (4.83:1). */
.ay-count[hidden] { display: none; }
.ay-count {
	position: absolute;
	top: 3px;
	right: 1px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: 9px;
	background: var(--ay-red);
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	line-height: 17px;
	text-align: center;
}

/* Search button on a desktop: an underlined box with the word "Search". */
.nl-hdr .nl-search {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: clamp(120px, 13vw, 190px);
	height: 40px;
	min-height: 0;
	margin-right: 8px;
	padding: 0 4px 0 2px;
	border: 0 !important;
	border-bottom: 1px solid var(--ay-line-2) !important;
	border-radius: 0;
	background: none !important;
	box-shadow: none !important;
	color: var(--ay-muted);
	font-size: 13px;
	font-weight: 400;
	letter-spacing: .1em;
	text-align: left;
	text-transform: uppercase;
}
.nl-hdr .nl-search:hover { color: var(--ay-ink); border-bottom-color: var(--ay-ink) !important; }

/* Logo. WooCommerce sets img{height:auto} on shop pages with nearly the same weight as one class + img,
   so the sizes name the link tag and two classes. The wordmark is 984 x 148, so 34px high is about 226px wide. */
.nl-logo { display: block; justify-self: center; line-height: 0; }
a.nl-logo img { display: block; width: auto; max-width: none; height: 34px; }
a.nl-logo.nl-logo--sm img { height: 22px; }

/* ---------------------------------------------------------------- menu */
/* Nav words: 500, uppercase, 12px, letter-spacing .1em, ink. Five words must fit the left column so the logo stays centred. */
.ay-nav { display: flex; align-items: center; gap: 18px; margin: 0; padding: 0; list-style: none; }
.ay-nav > li { position: static; margin: 0; }
.ay-nav > li > a {
	position: relative;
	display: flex;
	align-items: center;
	gap: 4px;
	height: var(--ay-top-h);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ay-ink);
	white-space: nowrap;
	text-decoration: none;
}
.ay-nav > li > a:hover { color: var(--ay-ink); }
.ay-nav > li > a svg { margin-left: 2px; }
/* a 2px ink underline slides in under the item */
.ay-nav > li > a::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 21px;
	height: 2px;
	background: var(--ay-ink);
	transform: scaleX(0);
	transition: transform .25s;
}
.ay-nav > li:hover > a::after,
.ay-nav > li:focus-within > a::after,
.ay-nav > .current-menu-item > a::after,
.ay-nav > .current-menu-ancestor > a::after { transform: scaleX(1); }

/* A menu item given the CSS class "ay-sale" (Appearance > Menus > CSS Classes) is the Sale link: same ink, bold 600. */
.ay-nav > .ay-sale > a { font-weight: 600; }

/* Mega panel: IGSHOP Shop Kit draws it. Here: the white skin and SIX columns (one per group, no photo tiles).
   The panel hangs from the header (or the sticky row), so it is as wide as the screen and its content is kept to the site width. */
.ay-nav, .ay-drawer-nav {
	--qav-mm-panel-bg: #fff;
	--qav-mm-line: var(--ay-line);
	--qav-mm-gutter: clamp(16px, 3.4vw, 48px);
	--qav-mm-max: var(--ay-wrap);
	--qav-mm-col-gap: 22px;
	--qav-mm-badge-size: 9.5px;
}
.ay-nav .qav-mm > .sub-menu {
	grid-template-columns: repeat(6, minmax(0, 1fr));
	padding-top: 30px;
	padding-bottom: 34px;
	border-bottom: 1px solid var(--ay-line);
	box-shadow: 0 18px 40px rgba(17, 17, 17, .08);
}
/* Column headings are links to the group's category: 600, 11.5px, wide letter-spacing, ink. */
.ay-nav .qav-mm-heading > a,
.ay-nav .qav-mm-nolink {
	margin-bottom: 12px;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--ay-ink);
	text-decoration: none;
}
.ay-nav .qav-mm-heading > a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ay-nav .qav-mm .sub-menu .sub-menu a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 4px 0;
	font-size: 15px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	color: var(--ay-ink-2);
	text-decoration: none;
}
.ay-nav .qav-mm .sub-menu .sub-menu a:hover { color: var(--ay-ink); text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 1200px) {
	/* wide enough for one line per link; on narrower desktops a long name may wrap instead of running into the next column */
	.ay-nav .qav-mm .sub-menu .sub-menu a { white-space: nowrap; }
}
/* Shop Kit menu badges: the red NEW label, small caps. Shop Kit also writes the colours from the menu item's own
   settings; these are the same values, so a badge looks right even if those settings are cleared. */
.ay-nav .qav-mm-badge,
.ay-drawer-nav .qav-mm-badge {
	padding: 1px 6px;
	border-radius: 2px;
	background: var(--ay-red);
	color: #fff;
	font-size: 9.5px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
}

/* A submenu that isn't a mega panel (Batik Thursday): a small dropdown under its own word. */
.ay-nav > li:not(.qav-mm) { position: relative; }
.ay-nav > li:not(.qav-mm) > .sub-menu {
	position: absolute;
	top: 100%;
	left: -18px;
	z-index: 60;
	display: none;
	min-width: 220px;
	margin: 0;
	padding: 14px 18px 16px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--ay-line);
	box-shadow: 0 18px 40px rgba(17, 17, 17, .08);
}
.ay-nav > li:not(.qav-mm):hover > .sub-menu,
.ay-nav > li:not(.qav-mm):focus-within > .sub-menu { display: block; }
.ay-nav > li:not(.qav-mm) .sub-menu a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 0;
	font-size: 15px;
	color: var(--ay-ink-2);
	white-space: nowrap;
	text-decoration: none;
}
.ay-nav > li:not(.qav-mm) .sub-menu a:hover { color: var(--ay-ink); text-decoration: underline; text-underline-offset: 4px; }

/* Search drop-down (opens under the header row). */
.hj-search { padding: 16px var(--ay-gut); border-top: 1px solid var(--ay-line); background: #fff; color: var(--ay-ink); }
.hj-search form { display: flex; gap: 8px; max-width: 560px; margin-inline: auto; }
.hj-search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hj-search input[type="search"] { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid var(--ay-line-2); border-radius: 0; background: #fff; font-size: 16px; }
.hj-search button[type="submit"] { padding: 0 22px; border: 0; border-radius: 0; background: var(--ay-ink); color: #fff; font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.hj-search button[type="submit"]:hover { background: var(--ay-hover); color: #fff; }

/* ---------------------------------------------------------------- header over a hero */
/* Only when ay_header_over() is true (the Main page once its hero has a photo or video). The header lies over the hero
   below the announcement bar, transparent with a pale white fade behind the dark logo and menu, and turns solid white when
   the pointer or keyboard focus is on it (so a mega panel stays readable).
   When logged in, WordPress pushes the page down for its admin bar, but an absolute header is measured from the very top
   of the page, so the admin bar's height is added too (otherwise the announcement bar covers the header). */
.nl-hdr--over {
	position: absolute;
	top: calc(var(--ann-h) + var(--ay-adminbar, 0px));
	left: 0;
	right: 0;
	background: transparent;
	border-bottom-color: transparent;
}
.nl-hdr--over::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	z-index: -1;
	height: 120px;
	background: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0));
	pointer-events: none;
	transition: opacity .2s;
}
.nl-hdr--over:hover, .nl-hdr--over:focus-within { background: #fff; }
.nl-hdr--over:hover::before, .nl-hdr--over:focus-within::before, .nl-hdr--over.is-stuck::before { opacity: 0; }

/* ---------------------------------------------------------------- sticky row (desktop) */
/* A slim copy of the header (58px) that slides down once the real header has scrolled away. It carries the
   class "site-header" so Shop Kit anchors its mega panel here; the two-class selector beats Hello's own
   ".site-header" rule (flex, padding, position: relative). */
.nl-stick.site-header {
	position: fixed;
	top: var(--ay-adminbar, 0px);
	left: 0;
	right: 0;
	z-index: 55;
	display: block;
	width: 100%;
	max-width: none;     /* Hello caps ".site-header:not(.dynamic-header)" at 1140px and centres it */
	margin: 0;
	padding: 0;
	background: rgba(255, 255, 255, .97);
	backdrop-filter: saturate(1.2) blur(8px);
	border-bottom: 1px solid var(--ay-line);
	box-shadow: 0 6px 18px rgba(17, 17, 17, .07);
	transform: translateY(-102%);
	visibility: hidden;
	pointer-events: none;
	transition: transform .28s ease, visibility 0s linear .28s;
}
.nl-stick.site-header.is-on {
	transform: none;
	visibility: visible;
	pointer-events: auto;
	transition: transform .28s ease;
}
.nl-stick-in {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: clamp(24px, 3.4vw, 56px);
	height: 58px;
	padding-inline: clamp(16px, 3.4vw, 48px);
}
.nl-stick .ay-nav { gap: clamp(16px, 2.2vw, 34px); justify-content: flex-start; }
.nl-stick .ay-nav > li > a { height: 58px; font-size: 12.5px; }
.nl-stick .ay-nav > li > a::after { bottom: 15px; }
.nl-st-r { display: flex; align-items: center; gap: 6px; }

/* ---------------------------------------------------------------- drawer (phones) */
/* z-index 10000: above TSC's phone bottom bar (9990), so the bar and the WhatsApp button never sit over the open menu. */
.ay-drawer { position: fixed; inset: 0; z-index: 10000; display: none; }
.ay-drawer.is-open { display: block; }
.ay-scrim { position: absolute; inset: 0; background: rgba(17, 17, 17, .45); }
.ay-panel {
	position: absolute;
	top: 0; bottom: 0; left: 0;
	width: min(86%, 340px);
	padding: 18px 20px 40px;
	background: #fff;
	color: var(--ay-ink);
	overflow: auto;
}
.ay-panel-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
a.nl-logo.nl-logo--drawer img { height: 24px; }
.ay-close {
	display: inline-grid;
	place-items: center;
	width: 40px; height: 40px;
	padding: 0;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
	color: var(--ay-ink);
	cursor: pointer;
}
.ay-drawer-nav, .ay-drawer-nav ul { margin: 0; padding: 0; list-style: none; }
.ay-drawer-nav > li { border-bottom: 1px solid var(--ay-line); }   /* the divider belongs to the whole row, so a row with Shop Kit's arrow stays one line */
.ay-drawer-nav > li > a {
	display: block;
	padding: 14px 0;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--ay-ink);
	text-decoration: none;
}
.ay-drawer-nav > li > a:has(> svg) { display: flex; align-items: center; justify-content: space-between; padding-right: 16px; }   /* plain links: name left, small right arrow */
.ay-drawer-nav > .ay-sale > a { color: var(--ay-red); font-weight: 600; }   /* as in the approved phone-menu mockup (Outfit is loaded to 600) */
/* Batik Thursday and any other plain dropdown: chrome.js adds .ay-dd and an arrow button, so the list folds like Clothing's.
   Without JavaScript the class is never added and the list simply stays open. */
.ay-drawer-nav > li.ay-dd { display: flex; flex-wrap: wrap; align-items: center; }
.ay-drawer-nav > li.ay-dd > a { flex: 1 1 0; min-width: 0; }
.ay-drawer-nav > li.ay-dd > .sub-menu { display: none; flex: 0 0 100%; width: 100%; padding: 0 0 8px 10px; }
.ay-drawer-nav > li.ay-dd.is-open > .sub-menu { display: block; }
.ay-dd-toggle {
	display: inline-grid;
	place-items: center;
	flex: 0 0 48px;
	width: 48px; height: 48px;
	margin: 0; padding: 0;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
	color: var(--ay-ink);
	cursor: pointer;
}
.ay-dd-toggle::before {   /* the same CSS arrow Shop Kit draws for Clothing, so both rows match */
	content: "";
	width: 8px; height: 8px;
	margin-top: -4px;
	border-right: 1.6px solid currentColor;
	border-bottom: 1.6px solid currentColor;
	transform: rotate(45deg);
	transition: transform .2s;
}
.ay-dd.is-open > .ay-dd-toggle::before { margin-top: 4px; transform: rotate(-135deg); }
@media (prefers-reduced-motion: reduce) { .ay-dd-toggle::before { transition: none; } }
.ay-drawer-nav .qav-mm-heading > a,
.ay-drawer-nav .qav-mm-nolink {
	display: block;
	padding: 8px 0;   /* even top and bottom: the row also holds Shop Kit's 48px arrow button, and the title must sit level with it */
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ay-ink);
}
.ay-drawer-nav .qav-mm > .sub-menu { padding: 0 0 8px 10px; }
.ay-drawer-nav .qav-mm-heading > .sub-menu { padding: 0 0 8px 2px; }
.ay-drawer-nav ul a { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 14px; color: var(--ay-ink-2); text-transform: none; letter-spacing: 0; border: 0; text-decoration: none; }
.ay-panel-acct { display: flex; align-items: center; gap: 10px; padding: 16px 0; font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ay-ink); text-decoration: none; }

/* ---------------------------------------------------------------- footer */
/* White. The centred logo, then four columns (Shop, Information, Contact Us, Join our Community), then a base
   strip with the copyright and the payment logos in their own colours. */
.nl-ftr { background: #fff; color: var(--ay-ink); border-top: 1px solid var(--ay-line); }
.nl-ftr a { color: inherit; text-decoration: none; }
.nl-ftr-brand { display: flex; justify-content: center; padding: 52px 16px 0; }
.nl-ftr a.nl-ftr-logo { display: inline-block; line-height: 0; }
.nl-ftr a.nl-ftr-logo img { display: block; width: auto; max-width: none; height: 30px; }   /* about 200px wide: a little smaller than the header logo */
.nl-ftr-grid {
	display: grid;
	grid-template-columns: repeat(var(--ay-fcols, 3), minmax(0, 1fr)) minmax(0, 1.55fr);   /* --ay-fcols: footer menu columns + Contact Us (template-parts/footer.php) */
	gap: 32px clamp(20px, 3.4vw, 48px);
	align-items: start;
	max-width: var(--ay-wrap);
	margin-inline: auto;
	padding: 40px var(--ay-gut) 48px;
}
.nl-fcol { min-width: 0; }
.nl-fcol summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 22px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	list-style: none;
	pointer-events: none;   /* a plain heading on a desktop; an accordion button on a phone (below) */
}
.nl-fcol summary::-webkit-details-marker { display: none; }
.nl-fcol summary svg { display: none; }
.nl-fcol ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.nl-fcol li { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ay-muted); overflow-wrap: anywhere; }
.nl-fcol li a { color: var(--ay-muted); }
.nl-fcol li a:hover { color: var(--ay-ink); text-decoration: underline; text-underline-offset: 4px; }
.nl-soc { display: flex; gap: 22px; margin-top: 6px !important; }
.nl-fcol .nl-soc a { display: inline-flex; color: var(--ay-ink); }
.nl-fcol .nl-soc a:hover { color: var(--ay-muted); text-decoration: none; }

/* Join our Community */
.nl-join h3 { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.nl-join > p { margin: 0 0 18px; max-width: 52ch; font-size: 14px; line-height: 1.55; color: var(--ay-muted); }
.nl-join-row { margin: 0 0 18px; }
.nl-join-row label { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 600; letter-spacing: .1em; line-height: 1.3; text-transform: uppercase; }
.nl-join-row > div { display: flex; align-items: stretch; gap: 10px; }
.nl-join-row input[type="email"],
.nl-join-row input[type="tel"] {
	flex: 1 1 0;
	min-width: 0;
	height: 46px;
	padding: 0 12px 0 0;
	border: 0;
	border-bottom: 1px solid var(--ay-line-2);
	border-radius: 0;
	background: transparent;
	font-size: 16px;
	color: var(--ay-ink);
}
.nl-join-row input[type="email"]:focus,
.nl-join-row input[type="tel"]:focus { border-bottom-color: var(--ay-ink); outline: none; }
.nl-join-row input::placeholder { color: var(--ay-muted); }
.nl-cc { display: inline-flex; align-items: center; height: 46px; padding-right: 2px; border-bottom: 1px solid var(--ay-line-2); font-size: 16px; color: var(--ay-ink-2); }
.nl-join-row button[type="submit"],
.nl-join-row button[type="submit"]:focus {
	flex: none;
	min-width: 104px;
	height: 46px;
	padding: 0 20px;
	border: 0;
	border-radius: 0;
	background: var(--ay-ink);
	color: #fff;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .2s;
}
.nl-join-row button[type="submit"]:hover { background: var(--ay-hover); color: #fff; }
.nl-join-row button[disabled] { opacity: .6; cursor: wait; }
.nl-join-msg { margin: 8px 0 0; font-size: 13px; color: var(--ay-ok); }
.nl-join-msg.is-error { color: var(--ay-red); }
.nl-join-note { margin: 0; font-size: 12px; line-height: 1.5; color: var(--ay-muted); max-width: 60ch; }
.nl-join-note a { text-decoration: underline; text-underline-offset: 3px; }

/* Base strip */
.nl-ftr-base {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 12px 28px;
	/* no extra room at the bottom: the Main page's WhatsApp button rises above this strip by itself (home.js) */
	padding: 22px max(var(--ay-gut), calc((100% - var(--ay-wrap)) / 2 + var(--ay-gut)));
	border-top: 1px solid var(--ay-line);
	background: #fff;
}
.nl-copy { margin: 0; font-size: 12.5px; color: var(--ay-muted); }
.nl-copy a { color: var(--ay-ink); font-weight: 600; }
/* payment logos: their real colours, no box or border */
.nl-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.nl-pay i { display: block; line-height: 0; }
.nl-pay img { display: block; width: auto; height: 22px; }

/* ---------------------------------------------------------------- narrower desktops */
@media (min-width: 901px) and (max-width: 1199px) {
	/* the five words no longer fit beside a centred logo, so the logo moves to the left and the words follow it */
	.nl-top { grid-template-columns: auto minmax(0, 1fr) auto; gap: 32px; }
	.nl-top .nl-logo { order: -1; justify-self: start; }
	.ay-nav { gap: 14px; }
	.ay-nav > li > a { font-size: 11.5px; letter-spacing: .08em; }
}
@media (max-width: 1080px) {
	/* the search box becomes a round icon button */
	.nl-hdr .nl-search { min-width: 0; width: 40px; padding: 0; justify-content: center; margin-right: 0; border-bottom: 0 !important; }
	.nl-hdr .nl-search span { display: none; }
	.nl-stick .ay-nav { gap: 14px; }
	.nl-stick .ay-nav > li > a { font-size: 11.5px; letter-spacing: .1em; }
}

/* ---------------------------------------------------------------- phones */
@media (max-width: 900px) {
	/* the header keeps to the top of the screen while scrolling; the sticky row is for desktops */
	.nl-hdr { position: sticky; top: var(--ay-adminbar, 0px); }
	.nl-hdr.is-stuck { box-shadow: 0 6px 16px rgba(17, 17, 17, .09); }
	.nl-hdr--over { position: fixed; top: calc(var(--hdr-top, var(--ann-h)) + var(--ay-adminbar, 0px)); left: 0; right: 0; box-shadow: none; }
	.nl-hdr--over.is-stuck { background: #fff; border-bottom-color: var(--ay-line); box-shadow: 0 6px 16px rgba(17, 17, 17, .09); }
	.nl-hdr--over::before { height: 80px; }
	.nl-stick.site-header { display: none; }

	/* the message may wrap to two lines on a 360px phone */
	.nl-ann { grid-template-columns: 32px minmax(0, 1fr) 32px; padding-inline: 4px; }
	.nl-ann-msgs { font-size: 10px; letter-spacing: .05em; line-height: 1.25; text-wrap: balance; }

	.nl-top { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 4px; height: auto; padding: 6px; }
	.nl-burger, .nl-search-m { display: inline-grid !important; }
	.nl-hdr .nl-search, .nl-hdr .nl-acct, .nl-hdr .nl-bag, .nl-nav { display: none !important; }   /* TSC's bottom bar carries the bag */
	a.nl-logo img { height: 26px; }

	/* footer: the sign-up first, then the three columns as an accordion, then the base strip */
	.nl-ftr-brand { padding: 32px 16px 8px; }
	.nl-ftr a.nl-ftr-logo img { height: 24px; }
	.nl-ftr-grid { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; }
	.nl-join { order: -1; padding: 30px 16px 22px; border-bottom: 1px solid var(--ay-line); }
	.nl-fcol { padding-inline: 16px; border-bottom: 1px solid var(--ay-line); }
	.nl-fcol summary { margin: 0; padding: 16px 0; cursor: pointer; pointer-events: auto; }
	.nl-fcol summary svg { display: block; transition: transform .2s; }
	.nl-fcol[open] summary svg { transform: rotate(45deg); }
	.nl-fcol ul { padding-bottom: 14px; }
	.nl-ftr-base { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding: 20px 16px; }
	.nl-ftr-base .nl-pay { order: -1; justify-content: center; }
	.nl-pay { gap: 10px 14px; }   /* tighter, so all 7 logos fit on one row at 390px */
	.nl-pay img { height: 18px; }
}

/* TSC's fixed bottom bar (phones, 767px and narrower) covers the last 56px of the page, so TSC adds 56px of space under
   the footer with a plain `body` rule. WordPress's own `body { padding: 0 }` (the global-styles sheet) has the same weight
   and can print after TSC's sheet, so it wins and the footer's last line would sit behind the bar. This rule is stronger
   and applies only where the bar is drawn. The two pages where TSC sets a taller space itself (the product bar, the cart's
   list bar) are left to TSC. */
@media (max-width: 767px) {
	body:has(.tsc-bottomnav):not(.tsc-has-pbar):not(:has(.tsc-listbar)) {
		padding-bottom: calc(56px + env(safe-area-inset-bottom));
	}
	/* The cart page's fixed bottom bar (free-shipping line + Checkout button, 114px tall) does not pad the page itself, so it
	   would sit on the footer's last lines (payment logos, copyright). Leave room under the footer for it. */
	body.woocommerce-cart:has(.tsc-cart__bottombar) .nl-ftr-base {
		padding-bottom: calc(132px + env(safe-area-inset-bottom));
	}
}

/* ---------------------------------------------------------------- 404 page (404.php; words on Website > 404 page)
   Centred like a category page's title (.ay-cat-head), with one ink button and one outlined button. */
.ay-404 { max-width: 640px; margin: 0 auto; padding: 72px var(--ay-gut) 88px; text-align: center; }
.ay-404 h1 { margin: 0 0 16px; font-size: clamp(28px, 3.2vw, 44px); font-weight: 600; line-height: 1.1; letter-spacing: .1em; text-transform: uppercase; color: var(--ay-ink); }
.ay-404 p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--ay-muted); }
.ay-404-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
@media (max-width: 767px) {
	.ay-404 { padding: 48px 16px 64px; }
	.ay-404-actions .ay-btn { flex: 1 1 100%; }   /* full-width, easy-to-tap buttons on a phone */
}

/* ---------------------------------------------------------------- Content pages (0.14.2)
   Terms of Service, Privacy Policy, Refund Policy, Contact Us, Store Locator: any plain page drawn by the parent
   theme (body class ay-content-page, set in functions.php; not the Main page, cart, checkout or account).
   Room above the title and before the footer, and a smaller uppercase title in the same style as the 404 page's. */
.ay-content-page .site-main { padding-block: 56px 88px; }
.ay-content-page .page-header .entry-title { margin-block: 0 28px; font-size: clamp(20px, 2vw, 26px); font-weight: 600; line-height: 1.25; letter-spacing: .1em; text-transform: uppercase; color: var(--ay-ink); }
@media (max-width: 767px) {
	/* 16px side edge like the footer; the parent theme pads the title a second time (20px in, text 10px), so it is undone. */
	body.ay-content-page main.site-main { padding: 36px 16px 56px; } /* body/main: outranks the parent's body:not(…) .site-main */
	.ay-content-page .page-header .entry-title { margin-block-end: 20px; padding-inline: 0; }
}

@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; }
	.nl-hdr, .ay-nav > li > a::after, .nl-stick.site-header, .nl-hdr--over::before { transition: none; }
}
