/* =============================================================
   Homesavers — site-wide layout (loads on every page)
   Design tokens, container, promo bar, header, footer.
   ============================================================= */

:root {
	--hs-max: 1140px;
	--hs-gap: 20px;
	--hs-radius: 10px;
	--hs-red: #DC2B38;
	--hs-red-dark: #c01810;
	--hs-stores-red: #dc2b38;   /* Figma header utility red */
	--hs-green: #248c2e;        /* Figma green (menu, promo, prices) */
	--hs-yellow: #fede00;       /* Figma search-button yellow */
	--hs-yellow-border: #ce6f07;
	--hs-ink: #212121;          /* Figma grey/13 */
	--hs-muted: #757575;        /* Figma grey/46 */
	--hs-line: #e0e0e0;         /* Figma grey/88 */
	--hs-input-border: #bdbdbd; /* Figma grey/74 */
	--hs-header-bg: #f5f5f5;    /* Figma grey/96 */
	--hs-bg-soft: #f5f5f5;
	--hs-bg-grey: #ededed;
	--hs-dot: #d9d9d9;          /* carousel dot, inactive */
	--hs-dot-active: #dc2b38;   /* carousel dot, active (brand red) */
	--hs-font: 'poppinsregular', system-ui, -apple-system, 'Segoe UI', roboto, sans-serif;
	--hs-font-semibold: 'poppinssemibold', var(--hs-font);
	--hs-font-bold: 'poppinsbold', var(--hs-font);
}

body {
	margin: 0;
	font-family: var(--hs-font);
	color: var(--hs-ink);
	margin: 0!important;
}

h1, h2, h3, h4, h5, h6 {
	font-weight: normal;
}

.hs-container {
	width: 100%;
	max-width: var(--hs-max);
	margin-inline: auto;
	padding-inline: var(--hs-gap);
}

img { max-width: 100%; height: auto; }

/* Breadcrumb — global, one consistent style on every template (Figma). */
.hs-breadcrumb { padding: 24px 0 0; }
.hs-breadcrumb__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-family: var(--hs-font);
	font-size: 13px;
	line-height: 1.4;
	color: #4b5563;
}
.hs-breadcrumb a { color: #4b5563; text-decoration: none; }
.hs-breadcrumb a:hover { text-decoration: underline; }
.hs-breadcrumb__current { color: #111827; font-family: var(--hs-font-semibold); }
.hs-breadcrumb__sep {
	display: inline-block;
	width: 12px;
	height: 12px;
	font-size: 0;
	line-height: 0;
	background: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.5 2.5L8 6L4.5 9.5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Promo bar ------------------------------------------------------- */
/* Figma: green bar (full-bleed background), content constrained to the site
   container. Promo artwork sits at the container edges, with a white Poppins Bold
   24px line centred between the two images. The whole bar is one link. */
.hs-promo-bar {
	background: var(--hs-green);
	color: #fff;
}
.hs-promo-bar__link {
	display: block;
	color: #fff;
	text-decoration: none;
}
/* .hs-container gives max-width + centring + 20px inline padding. */
.hs-promo-bar__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
}
.hs-promo-bar__content {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	text-align: center;
}
.hs-promo-bar__text {
	font-family: var(--hs-font-bold);
	/* Fluid size: the headline stays on ONE line at every resolution —
	   it scales down with the viewport instead of ever wrapping. */
	font-size: clamp(10px, 2vw, 24px);
	line-height: 100%;
	color: #fff;
	white-space: nowrap;
}
/* Promo photos aligned to the container content edges, full bar height.
   (Class name kept as __shed from the original shed artwork so the markup and
   the 1024px rules below stay in sync; the slot is artwork-agnostic.) */
.hs-promo-bar__shed {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: auto;
	height: 46px!important;
	border-radius: 4px; /* softens packshots that carry their own background */
}
.hs-promo-bar__shed--left { left: var(--hs-gap); }
.hs-promo-bar__shed--right { right: var(--hs-gap); }

/* On tablet + mobile (<=1024px): keep the LEFT promo image (like B&M mobile);
   drop the right one and let the headline wrap and centre beside it. */
@media (max-width: 1024px) {
	/* B&M-style: 35px promo image on the left, headline centred in the
	   remaining width. */
	.hs-promo-bar__inner {
		padding: 0 10px 0 0;
		min-height: 48px;
		gap: 10px;
		justify-content: center;
		align-items: center;
	}
	.hs-promo-bar__shed--right { display: none; }
	.hs-promo-bar__shed--left {
		position: static;
		transform: none;
		flex: 0 0 auto;
		width: auto;
		height: 35px;
		align-self: center;
	}
	.hs-promo-bar__content {
		display: block;
		flex: 1 1 auto;
		min-width: 0; /* allow the text to wrap instead of overflowing right */
		text-align: center;
		line-height: normal;
		padding: 6px 0;
	}
	.hs-promo-bar__text {
		display: inline;
		white-space: normal;
		font-size: 12px;
		line-height: normal;
	}
}

/* Header ---------------------------------------------------------- */
/* Figma: bg grey/96 #f5f5f5, 1px #e0e0e0 bottom border, 80px row. */
.hs-header { background: var(--hs-header-bg); border-bottom: 1px solid var(--hs-line); position: sticky; top: 0; z-index: 100; }

.hs-header__inner {
	display: flex;
	align-items: center;
	gap: 0; /* exact per-element gaps set via margins below */
	min-height: 80px;
	padding-block: 16px;
}
/* Fixed header spacing (no clamp). */
.hs-logo { margin-left: 23px; }      /* menu ↔ logo */
.hs-search { margin-left: 74px; }    /* logo ↔ search */
.hs-utility { margin-left: auto; }   /* push utility flush to the right edge */

/* Menu toggle */
/* Override inherited Underscores .main-navigation / .menu-toggle rules that
   otherwise force width:100% and hide the toggle at desktop widths. */
.hs-header .hs-header__menu.main-navigation { width: auto; display: flex; flex: 0 0 auto; }
.hs-header .hs-menu-toggle.menu-toggle { display: flex; }
.hs-header__menu { position: relative; }
.hs-menu-toggle {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0;
	background: none;
	border: 0;
	cursor: pointer;
	color: var(--hs-green);
	font-family: var(--hs-font-bold);
	font-size: 14px;
	line-height: 17.5px;
	padding: 0;
}
.hs-menu-toggle__icon { display: block; width: 30px; height: 33px; }
.hs-menu-toggle__label { line-height: 17.5px; margin-top: 10px; }

/* Primary menu — off-canvas "All Departments" drawer with drill-down panels. */
.hs-drawer-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .5);
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s ease, visibility .3s ease;
	z-index: 1000;
}
.hs-header__menu.toggled .hs-drawer-overlay { opacity: 1; visibility: visible; }

.hs-drawer {
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	width: min(340px, 88vw);
	background: #fff;
	z-index: 1001;
	display: flex;
	flex-direction: column;
	transform: translateX(-100%);
	transition: transform .3s ease;
	box-shadow: 4px 0 24px rgba(0, 0, 0, .18);
	overflow: hidden;
}
.hs-header__menu.toggled .hs-drawer { transform: translateX(0); }

.hs-drawer__head {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--hs-line);
}
.hs-drawer__logo { display: block; line-height: 0; }
/* 120px matches the sizes hint in header.php; 67px keeps the logo's 141:79
   aspect so object-fit has nothing to letterbox. Fits the 340px drawer head
   alongside the 37px close button with room to spare. */
.hs-drawer__logo img { width: 120px; height: 67px; object-fit: contain; object-position: left center; display: block; }
.hs-drawer__close {
	width: 37px;
	height: 37px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: none;
	border: 1px solid #e0e0e0 !important;
	border-radius: 5px;
	cursor: pointer;
	color: #4b5563;
	line-height: 0;
}

/* Sliding panels: level 0 = departments, level 1 = a department's sub-cats. */
.hs-drawer__body { position: relative; flex: 1 1 auto; overflow: hidden; }
.hs-drawer__panel {
	position: absolute;
	inset: 0;
	overflow-y: auto;
	background: #fff;
	transform: translateX(100%);
	transition: transform .3s ease;
	-webkit-overflow-scrolling: touch;
}
.hs-drawer__panel.is-active { transform: translateX(0); }

.hs-drawer__section { padding: 14px 20px 8px; }
.hs-drawer__section-title {
	font-family: var(--hs-font-bold);
	font-size: 14px;
	letter-spacing: .3px;
	text-transform: uppercase;
	color: var(--hs-ink);
}

/* "All Departments" — collapsible header; the category list shows on click. */
.hs-drawer__accordion {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	box-sizing: border-box;
	padding: 14px 20px; /* same as the nav links below */
	background: none;
	border: 0;
	border-bottom: 1px solid #f0f0f0;
	cursor: pointer;
	text-align: left;
	color: var(--hs-ink);
	font-family: var(--hs-font-bold);
	font-size: 15px;
	line-height: 1.5;
}
.hs-drawer__chev--acc { color: #6b7280; transition: transform .2s ease; }
.hs-drawer__accordion[aria-expanded="true"] .hs-drawer__chev--acc { transform: rotate(90deg); }
.hs-drawer__departments { display: none; }
.hs-drawer__departments.is-open { display: block; }
.hs-drawer__list { list-style: none; margin: 0; padding: 0; }
.hs-drawer__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	box-sizing: border-box;
	padding: 13px 20px;
	background: none;
	border: 0;
	border-bottom: 1px solid #f0f0f0;
	cursor: pointer;
	text-align: left;
	text-decoration: none;
	color: var(--hs-ink);
	font-family: var(--hs-font-semibold);
	font-size: 15px;
	line-height: 1.3;
}
.hs-drawer__item:hover { background: var(--hs-bg-soft); color: var(--hs-green); }
.hs-drawer__chev { flex: 0 0 auto; color: #9ca3af; }
.hs-drawer__item--all { color: var(--hs-green); font-family: var(--hs-font-bold); }

/* Department row: the name is a link (navigates); the chevron drills into sub-cats. */
.hs-drawer__row { display: flex; align-items: stretch; border-bottom: 1px solid #f0f0f0; }
.hs-drawer__row .hs-drawer__item { flex: 1 1 auto; border-bottom: 0; }
.hs-drawer__expand {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	padding: 0;
	background: none;
	border: 0;
	border-left: 1px solid #f0f0f0;
	cursor: pointer;
	color: #9ca3af;
}
.hs-drawer__expand:hover { background: var(--hs-bg-soft); color: var(--hs-green); }

.hs-drawer__back {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 12px 20px;
	background: var(--hs-bg-soft);
	border: 0;
	border-bottom: 1px solid var(--hs-line);
	cursor: pointer;
	color: var(--hs-ink);
	font-family: var(--hs-font-bold);
	font-size: 14px;
	line-height: 1.5;
}
.hs-drawer__back svg { color: var(--hs-green); }

/* Site nav links below the departments. */
.hs-drawer__secondary .hs-drawer__list--links a {
	display: block;
	padding: 14px 20px;
	color: var(--hs-ink);
	text-decoration: none;
	font-family: var(--hs-font-bold);
	font-size: 15px;
	border-bottom: 1px solid #f0f0f0;
}
.hs-drawer__secondary .hs-drawer__list--links a:hover { background: var(--hs-bg-soft); color: var(--hs-green); }

/* Lock page scroll while the drawer is open. */
body.hs-drawer-open { overflow: hidden; }

/* Logo — Figma HOME SAVERS oval, 141 x 78, self-contained (no badge).
   The SVG declares width/height 100% (no intrinsic px), so set both explicitly
   to stop it expanding. */
.hs-logo {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	width: 141px;
	height: 78px;
}
.hs-logo img {
	width: 141px;
	height: 78px;
	display: block;
	object-fit: contain;
}

/* Search — one seamless pill. Border + radius + overflow live on the CONTAINER
   and the input/button are borderless inside, so they can never separate or gap.
   Figma: white input (grey border), 46x38 yellow (#fede00) button, #ce6f07
   divider + gradient top, dark magnifier. */
.hs-search {
	box-sizing: border-box;
	flex: 0 0 auto;
	display: flex;
	align-items: stretch;
	width: 381px; /* 335 input + 46 button */
	max-width: 100%;
	height: 38px;
}
/* Prefixed with .hs-search to out-specify the theme's input[type=search] reset. */
.hs-search input.hs-search__field {
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	flex: 1 1 auto;
	width: 335px;
	height: 100%;
	margin: 0;
	border: 1px solid var(--hs-input-border);
	border-right: 0;
	border-radius: 4px 0 0 4px;
	background: #fff;
	padding: 2px 38px 2px 12px; /* right room for the clear (×) button */
	font-family: system-ui;
	font-size: 16px;
	line-height: 32px; /* center text in the 38px bar so descenders aren't clipped */
	color: var(--hs-ink);
	outline: none;
	min-width: 0;
}
.hs-search__field::-webkit-search-decoration,
.hs-search__field::-webkit-search-cancel-button { -webkit-appearance: none; }
.hs-search__field::placeholder { color: var(--hs-muted); opacity: 1; }

/* Clear (×) button — sits inside the field, just left of the yellow button.
   Hidden markup by default; js/search.js unhides it once the field has a value. */
.hs-search button.hs-search__clear {
	-webkit-appearance: none;
	appearance: none;
	position: absolute;
	right: 58px; /* 46px button + 12px inside the field's right edge */
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--hs-input-border);
	line-height: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.hs-search button.hs-search__clear[hidden] { display: none; }
.hs-search button.hs-search__clear:hover,
.hs-search button.hs-search__clear:focus-visible { color: var(--hs-muted); }
.hs-search button.hs-search__btn {
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	position: relative;
	flex: 0 0 auto;
	background: var(--hs-yellow);
	color: var(--hs-ink);
	margin: 0;
	padding: 0;
	width: 46px;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border: 0;
	border-bottom: 1px solid var(--hs-yellow-border);
	border-radius: 0 4px 4px 0; /* rounded right (container no longer clips) */
}
/* Live-search suggestion panel --------------------------------------
   Full container width, dropped below the header with a caret pointing back
   at the search field. Four columns: products / popular / categories / brands. */
.hs-search { position: relative; }
.hs-header__inner { position: relative; }

.hs-suggest {
	position: absolute;
	top: 100%;
	left: var(--hs-gap);
	right: var(--hs-gap);
	z-index: 300;
	display: flex;
	align-items: flex-start;
	gap: 24px;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid var(--hs-line);
	border-top: 0;
	box-shadow: 0 16px 32px rgba(0, 0, 0, .14);
	padding: 24px 16px 30px;
	max-height: min(78vh, 680px);
	overflow-y: auto;
	text-align: left;
	color: var(--hs-ink);
}
/* `display: flex` above out-ranks the UA's `[hidden] { display: none }`
   (author styles win over UA styles), so the closed panel needs this or it
   renders as an empty box under the header. */
.hs-suggest[hidden] { display: none; }

/* Caret — a sibling of the panel so the panel's own scrolling can't clip it.
   JS sets `left` to the centre of the search field. */
.hs-suggest__caret {
	position: absolute;
	top: 100%;
	z-index: 301;
	width: 0;
	height: 0;
	border: 9px solid transparent;
	border-top: 0;
	border-bottom-color: #fff;
	transform: translate(-50%, -9px);
	pointer-events: none;
}

.hs-suggest__col { min-width: 0; }
.hs-suggest__col--products { flex: 2 1 380px; }
.hs-suggest__col--terms    { flex: 1 1 150px; }
.hs-suggest__col--cats     { flex: 1.4 1 200px; }
.hs-suggest__col--brands   { flex: 1 1 150px; }

.hs-suggest__title {
	font-family: var(--hs-font-bold);
	font-size: 17px;
	line-height: 1.4;
	color: var(--hs-ink);
	padding-bottom: 12px;
	margin-bottom: 8px;
	border-bottom: 1px solid var(--hs-line);
}

/* Beat the theme's `a:visited { color: inherit }`. */
.hs-suggest a,
.hs-suggest a:visited { color: var(--hs-ink); text-decoration: none; }
.hs-suggest a:hover,
.hs-suggest a:focus-visible,
.hs-suggest a.is-active { color: var(--hs-green); text-decoration: underline; }
.hs-suggest strong { font-family: var(--hs-font-bold); font-weight: normal; }

.hs-suggest__term,
.hs-suggest__cat,
.hs-suggest__brand {
	display: block;
	padding: 4px 0;
	font-size: 15px;
	line-height: 1.5;
}
/* Categories are shown under their ancestors — one indent step per level. */
.hs-suggest__cat { padding-left: calc(var(--hs-depth, 0) * 16px); }

.hs-suggest__product {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 4px 0;
}
.hs-suggest__thumb {
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 1px solid var(--hs-line);
	overflow: hidden;
}
.hs-suggest__thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.hs-suggest__name { font-size: 15px; line-height: 1.35; }
.hs-suggest__empty { color: var(--hs-muted); font-size: 15px; line-height: 1.5; padding: 4px 0; }

@media (max-width: 900px) {
	.hs-suggest { flex-wrap: wrap; gap: 16px 24px; }
	.hs-suggest__col--products { flex: 1 1 100%; }
	.hs-suggest__col--terms,
	.hs-suggest__col--cats,
	.hs-suggest__col--brands { flex: 1 1 45%; }
	.hs-suggest__caret { display: none; }
}
@media (max-width: 600px) {
	.hs-suggest { padding: 16px 14px 22px; }
	.hs-suggest__col--terms,
	.hs-suggest__col--cats,
	.hs-suggest__col--brands { flex: 1 1 100%; }
	.hs-suggest__title { font-size: 15px; }
}

/* Utility icons */
.hs-utility {
	display: flex;
	align-items: center;
	gap: 12px; /* Manager ↔ Occasions ↔ Offers */
	list-style: none;
	margin: 0 0 0 48px; /* search ↔ Stores */
	padding: 0;
	flex: 0 0 auto;
}
/* Stores ↔ Manager is 26px = 12px gap + 14px extra. */
.hs-utility__item:first-child { margin-right: 14px; }
.hs-utility__item a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	text-decoration: none;
	color: var(--hs-stores-red);
	font-family: var(--hs-font-bold);
	font-size: 14px;
	line-height: 17.5px;
	text-align: center;
	max-width: 90px;
}
.hs-utility__icon { height: 30px; display: flex; align-items: center; }
.hs-utility__icon img { height: 100%; width: auto; object-fit: contain; }
/* Badge-style items (Manager's Special / Occasions / Offers) have their text
   baked into the artwork — no caption, exact per-badge sizes. */
.hs-utility__item--badge .hs-utility__icon { height: auto; }
.hs-utility__item--badge .hs-utility__label { display: none; }
.hs-utility__item--badge .hs-utility__icon img { object-fit: contain; }
.hs-utility__item:nth-child(2) .hs-utility__icon img { width: 95px; height: 45px; }
.hs-utility__item:nth-child(3) .hs-utility__icon img { width: 96px; height: 41px; }
.hs-utility__item:nth-child(4) .hs-utility__icon img { width: 100px; height: 41px; }

/* Header info strip — Figma "Group 15": CONTAINED (1124px, not full width),
   bg #f5f5f5, 3 equal columns, all text green #248c2e (Bold 16px title /
   Regular 12px subtitle), no dividers. 6px gap above, 10px below. */
.hs-header__info {
	background: transparent;
	padding-top: 8px;
	padding-bottom: 8px;
}
.hs-header__info-inner {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 6px; /* white gaps between the three grey cells */
	background: transparent;
	align-items: stretch;
}
.hs-info-item {
	display: flex;
	align-items: center;
	gap: 12px;
	justify-content: center;
	text-decoration: none;
	color: var(--hs-green);
	padding: 12px;
	background: var(--hs-header-bg); /* each cell is its own grey box */
}
.hs-info-item__icon { flex: 0 0 auto; display: flex; align-items: center; }
.hs-info-item__icon img { object-fit: contain; }
/* Exact per-icon sizes from Figma. */
.hs-info-item:nth-child(1) .hs-info-item__icon img { width: 26px; height: 26px; }
.hs-info-item:nth-child(2) .hs-info-item__icon img { width: 72px; height: 30px; }
.hs-info-item:nth-child(3) .hs-info-item__icon img { width: 70px; height: 34px; }
.hs-info-item__title { display: block; color: var(--hs-green); font-family: var(--hs-font-bold); font-size: 16px; line-height: 19.2px; }
.hs-info-item__sub { display: block; color: var(--hs-green); font-family: var(--hs-font); font-size: 12px; line-height: 14px; }

/* Footer — Figma: bg #eee, 48px padding, 6-column grid (Company at the far
   right, one empty spacer column), Bold 16px headings, Light 12px links. */
.hs-footer { background: #eee; margin-top: 100px; }
.hs-footer__grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 0;
	padding: 48px 8px 0;
}
.hs-footer__column { padding-inline: 8px; }
.hs-footer__company { grid-column: 6; } /* far-right column, spacer sits at column 5 */
.hs-footer__heading {
	font-family: var(--hs-font-bold);
	font-size: 16px;
	line-height: 19.2px;
	margin: 0 0 8px;
	color: var(--hs-ink);
}
.hs-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.hs-footer__links li { padding: 4.5px 0 1.5px; }
.hs-footer__links a {
	color: var(--hs-ink);
	text-decoration: none;
	font-family: 'poppinslight', var(--hs-font);
	font-size: 12px;
	line-height: 18px;
}
.hs-footer__links a:hover { text-decoration: underline; }
.hs-footer__address {
	font-style: normal;
	color: var(--hs-ink);
	/* Josh asked whether this matched the rest of the footer — it did not. The
	   column links and the copyright line are both poppinslight; the address was
	   inheriting --hs-font, which is poppinsregular, so it sat a weight heavier
	   than everything around it at the same 12px. */
	font-family: 'poppinslight', var(--hs-font);
	font-size: 12px;
	line-height: 18px;
	padding-block: 4px;
}
.hs-footer__bottom { padding: clamp(40px, 7vw, 100px) 0 50px; } /* copyright: fluid gap above (40→100px), 50px below */
.hs-footer__copyright {
	display: block;
	text-align: center;
	color: var(--hs-muted); /* #757575 */
	font-family: 'poppinslight', var(--hs-font);
	font-size: 12px;
	line-height: 18px;
}

/* 404 (page not found) ------------------------------------------- */
.hs-404 { padding: clamp(40px, 6vw, 90px) 0; text-align: center; }
.hs-404__inner { display: flex; flex-direction: column; align-items: center; }
.hs-404__code {
	font-family: 'poppinsbold', var(--hs-font);
	font-size: clamp(72px, 16vw, 140px);
	line-height: 1;
	color: var(--hs-red);
	margin: 0;
}
.hs-404__title {
	font-family: 'poppinsbold', var(--hs-font);
	font-size: clamp(24px, 4vw, 34px);
	color: var(--hs-ink);
	margin: 8px 0 12px;
}
.hs-404__text { font-size: 16px; color: var(--hs-muted); max-width: 480px; margin: 0 auto 28px; }
.hs-404__search { display: flex; width: 100%; max-width: 460px; margin: 0 auto 24px; height: 46px; }
.hs-404__search-field {
	flex: 1 1 auto; min-width: 0; height: 100%;
	border: 1px solid var(--hs-input-border); border-right: 0;
	border-radius: 6px 0 0 6px; padding: 0 14px; font-size: 16px;
	background: #fff; color: var(--hs-ink);
}
.hs-404__search-field::placeholder { color: var(--hs-muted); }
.hs-404__search-btn {
	flex: 0 0 auto; width: 52px; height: 100%;
	background: var(--hs-yellow); border: 0; border-radius: 0 6px 6px 0;
	cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.hs-404__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hs-404__btn {
	display: inline-block; padding: 12px 26px; border-radius: 6px;
	background: #fff; color: var(--hs-green); border: 1px solid var(--hs-green);
	font-family: 'poppinssemibold', var(--hs-font); font-size: 15px; text-decoration: none;
}
.hs-404__btn--ghost { color: var(--hs-ink); border-color: var(--hs-line); }
.hs-404__btn:hover { opacity: .85; }

/* Responsive ------------------------------------------------------ */
@media (max-width: 980px) {
	.hs-footer__grid { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
	/* Drop the fixed column-6 pin so the company block flows in the collapsed
	   grid instead of forcing phantom columns (was widening the page to 476px). */
	.hs-footer__company { grid-column: auto; }
}

/* Tablet + phone header (matches B&M mobile, <=1024px): menu + logo + utility
   icons keep the top row; the search field drops to its own full-width row
   beneath. Header + info strip + footer accordion all go mobile here. */
@media (max-width: 1024px) {
	.hs-header__inner { flex-wrap: wrap; column-gap: 10px; row-gap: 10px; padding-block: 12px; padding-inline: 10px; min-height: 0; }
	.hs-logo { margin-left: 0; }
	.hs-utility { margin-left: auto; }          /* hug the right edge of the row */
	.hs-search { order: 3; margin-left: 0; width: 100%; max-width: none; flex-basis: 100%; }
	.hs-header__info-inner { grid-template-columns: 1fr; padding-inline: 10px; }
	.hs-info-item + .hs-info-item { border-left: 0; padding-left: 0; }
	/* Rotating single banner: show only the active one; JS cycles it every 5s. */
	.hs-header__info-inner .hs-info-item { display: none; }
	.hs-header__info-inner .hs-info-item--active { display: flex; animation: hs-info-fade .45s ease; }
	/* Less whitespace before the footer on mobile. */
	.hs-footer { margin-top: 30px; }

	/* Footer → accordion: one full-width column per row; each heading toggles
	   its link list. Company Info is excluded (always shown, centered). */
	.hs-footer__grid { grid-template-columns: 1fr; row-gap: 0; padding: 24px 8px 0; }
	.hs-footer__column { padding-inline: 4px; border-bottom: 1px solid var(--hs-line); }
	.hs-footer__heading {
		margin: 0;
		padding: 14px 2px;
		display: flex;
		align-items: center;
		justify-content: space-between;
		cursor: pointer;
		-webkit-user-select: none;
		user-select: none;
	}
	.hs-footer__heading::after {
		content: "";
		flex: 0 0 auto;
		width: 8px;
		height: 8px;
		margin-right: 4px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg);
		transition: transform .2s ease;
	}
	.hs-footer__column.is-open .hs-footer__heading::after { transform: rotate(-135deg); }
	.hs-footer__links { display: none; padding: 0 2px 14px; }
	.hs-footer__column.is-open .hs-footer__links { display: flex; }

	/* Company Information: no toggle, centered text. */
	.hs-footer__company { text-align: center; }
	.hs-footer__company .hs-footer__heading { cursor: default; justify-content: center; }
	.hs-footer__company .hs-footer__heading::after { display: none; }

	.hs-footer__bottom { padding: 20px 15px; }
}
@keyframes hs-info-fade {
	from { opacity: 0; transform: translateY(4px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* Phone: shrink the utility badges so all four fit beside the logo.
   Logo boxes below use the real 280x178 asset ratio (1.573) — they used to
   carry the old logo.svg ratio (1.81), so object-fit letterboxed the logo and
   it rendered narrower than its own box. */
@media (max-width: 600px) {
	.hs-logo, .hs-logo img { width: 96px; height: 61px; }
	.hs-menu-toggle__icon { width: 24px; height: 27px; }
	.hs-menu-toggle__label { font-size: 11px; margin-top: 0; }
	.hs-utility { gap: 6px; }
	.hs-utility__item:first-child { margin-right: 6px; }
	.hs-utility__item a { font-size: 10px; line-height: 12px; gap: 2px; max-width: 56px; }
	.hs-utility__icon { height: 20px; }
	/* Right-side badges (width scaled to keep aspect). */
	.hs-utility__item:nth-child(2) .hs-utility__icon img { width: 53px; height: 25px; }
	.hs-utility__item:nth-child(3) .hs-utility__icon img { width: 55px; height: 24px; }
	.hs-utility__item:nth-child(4) .hs-utility__icon img { width: 53px; height: 23px; }
}

/* Narrow desktop band (1025–1139px): the fixed header margins overflow one row,
   so tighten them to keep menu + logo + search + utility on a single row. */
@media (min-width: 1025px) and (max-width: 1139px) {
	.hs-logo { margin-left: 10px; }
	.hs-search { margin-left: 20px; width: 300px; }
	.hs-utility { margin-left: auto; gap: 8px; }
	.hs-utility__item:first-child { margin-right: 8px; }
}

/* Very small phones (<=400px): shrink the utility badges further so all four
   icons still fit on the top row beside the logo (no wrap). At 360px the row
   needs ~350px of the 360 available, so the logo stays at 78px here. */
@media (max-width: 400px) {
	.hs-logo, .hs-logo img { width: 78px; height: 50px; }
	.hs-utility { gap: 4px; }
	.hs-utility__item:first-child { margin-right: 4px; }
	.hs-utility__item a { font-size: 8px; line-height: 10px; max-width: 44px; }
	.hs-utility__icon { height: 19px; }
	.hs-utility__item:nth-child(2) .hs-utility__icon img { width: 42px; height: 20px; }
	.hs-utility__item:nth-child(3) .hs-utility__icon img { width: 44px; height: 19px; }
	.hs-utility__item:nth-child(4) .hs-utility__icon img { width: 42px; height: 18px; }
}

/* =============================================================
   Interactions — subtle, site-wide hover / focus feedback.
   Matches the theme's own idioms (buttons fade like .hs-404__btn,
   links underline like breadcrumb/footer, green focus accent).
   Low specificity on purpose: component-specific hovers still win.
   ============================================================= */

/* Ease every interactive state change so hovers feel smooth, not snappy. */
a,
button,
.button,
input[type="submit"],
input[type="button"],
.wp-block-button__link,
[class*="btn"] {
	transition:
		color .2s ease,
		background-color .2s ease,
		border-color .2s ease,
		box-shadow .2s ease,
		opacity .2s ease,
		filter .2s ease;
}

/* Buttons — subtle darken on hover (no movement), never underlined. */
button:not(:disabled):hover,
.button:not(.disabled):hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.wp-block-button__link:hover,
a[class*="btn"]:hover {
	filter: brightness(0.94);
	text-decoration: none;
}

/* Plain text links (no utility class) — subtle underline on hover. */
a:not([class]):hover {
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Keyboard focus: a visible brand-green ring (accessibility; hover-safe). */
a:focus-visible,
button:focus-visible,
.button:focus-visible,
input[type="submit"]:focus-visible,
[class*="btn"]:focus-visible {
	outline: 2px solid var(--hs-green);
	outline-offset: 2px;
}

/* Product name — brand green when the card (or the name) is hovered. */
.hs-product-card__title { transition: color .2s ease; }
.hs-product-card__link:hover .hs-product-card__title,
.hs-product-card__title:hover {
	color: var(--hs-green);
}

/* Header info cells (Find store / Offers / Manager's Specials) — subtle hover. */
.hs-info-item { transition: background-color .2s ease; }
.hs-info-item:hover {
	background: #eef7f0; /* faint brand-green tint, no border/movement */
}

