/*!
 * Eurogames — main.css
 * Modern child-theme design system for eurogames.dk (WooCommerce catalog),
 * styled after a "Computer Shop"-style conversion-focused shop: light grey
 * page background, white cards, vivid royal-blue accent, black "NY"
 * badges, uppercase bold section titles. Mobile-first. Fonts: Poppins
 * (display) + Inter (body), enqueued in inc/enqueue.php. No external CSS
 * framework, no icon library.
 *
 * Table of contents:
 *   1. Custom properties (design tokens)
 *   2. Reset & base
 *   3. Accessibility helpers
 *   4. Typography
 *   5. Layout utilities
 *   6. Buttons + .eg-enquiry (catalog-mode CTA)
 *   7. Header (topbar, sticky main row, departments/search row, drawer)
 *   8. Hero slider
 *   9. Category showcase
 *  10. Product grid & card (incl. badges)
 *  11. Products section (uppercase title + tabs)
 *  12. Shop / archive header + toolbar + pagination
 *  13. Promo band (USP chips + CTA)
 *  14. Split section (category sidebar + grid + lifestyle panel)
 *  15. CTA band (closing)
 *  16. Footer
 *  17. Single product
 *  18. Generic page / blog fallback (index.php)
 *  19. WooCommerce notices, forms, misc
 *  20. Dark-section text contrast fixes
 *  21. Reduced motion
 *  22. Cookie consent banner
 * ------------------------------------------------------------------------ */

/* ==========================================================================
   1. Custom properties
   ========================================================================== */
:root {
	/* Vivid royal-blue/indigo accent (buttons, prices, links, active tabs) */
	--eg-blue-950: #050a26;
	--eg-blue-900: #0a1345;
	--eg-blue-800: #0e1c66;
	--eg-blue-700: #142889;
	--eg-blue-600: #1934b5;
	--eg-blue-500: #1e40ff; /* primary accent */
	--eg-blue-400: #4a63ff;
	--eg-blue-300: #8393ff;
	--eg-blue-200: #c1c9ff;
	--eg-blue-100: #e2e6ff;
	--eg-blue-50:  #f2f3ff;

	/* Light-lavender promo band */
	--eg-lavender-100: #eceeff;
	--eg-lavender-200: #dfe3ff;

	--eg-ink:      #10121a;
	--eg-slate-700:#374151;
	--eg-slate-600:#4b5563;
	--eg-slate-500:#6b7280;
	--eg-slate-400:#9aa1b0;
	--eg-slate-300:#cdd2dc;
	--eg-slate-200:#e4e7ee;
	--eg-slate-100:#eef0f5;

	--eg-bg:          #f1f2f6; /* page background */
	--eg-surface:     #ffffff; /* cards/panels */
	--eg-surface-alt: #f6f7fb;
	--eg-border:      #e3e5ee;

	--eg-badge-black: #111319;

	--eg-radius-sm:   10px;
	--eg-radius-md:   16px;
	--eg-radius-lg:   20px;
	--eg-radius-pill: 999px;

	--eg-shadow-sm: 0 1px 2px rgba(16,18,26,.05), 0 1px 1px rgba(16,18,26,.04);
	--eg-shadow-md: 0 10px 24px -10px rgba(16,18,26,.16), 0 2px 6px rgba(16,18,26,.05);
	--eg-shadow-lg: 0 28px 56px -18px rgba(10,19,69,.32), 0 6px 14px rgba(16,18,26,.07);

	--eg-font-display: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--eg-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

	--eg-container: 1280px;

	--eg-transition: 200ms cubic-bezier(.4,0,.2,1);
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--eg-font-body);
	font-size: 16px;
	line-height: 1.65;
	color: var(--eg-ink);
	background: var(--eg-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0; padding: 0; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--eg-blue-500); }

button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--eg-font-display);
	font-weight: 700;
	line-height: 1.2;
	color: var(--eg-ink);
	margin: 0 0 .75rem;
}

::selection { background: var(--eg-blue-500); color: #fff; }

/* ==========================================================================
   3. Accessibility helpers
   ========================================================================== */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 0 0 3px var(--eg-blue-400);
	clip: auto !important;
	clip-path: none;
	color: var(--eg-ink);
	display: block;
	font-size: .875rem;
	font-weight: 700;
	height: auto;
	left: 1rem;
	top: 1rem;
	line-height: normal;
	padding: 1rem 1.5rem;
	text-decoration: none;
	width: auto;
	z-index: 100000;
}

.eg-skip-link {
	position: absolute;
	left: -9999px;
	top: 1rem;
	z-index: 10000;
	background: #fff;
	color: var(--eg-ink);
	padding: .85rem 1.5rem;
	border-radius: 10px;
	font-weight: 700;
	box-shadow: var(--eg-shadow-md);
	text-decoration: none;
}
.eg-skip-link:focus { left: 1rem; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid var(--eg-blue-300);
	outline-offset: 2px;
	border-radius: 6px;
}

/* ==========================================================================
   4. Typography
   ========================================================================== */
.eg-eyebrow {
	font-family: var(--eg-font-display);
	text-transform: uppercase;
	letter-spacing: .12em;
	font-size: .75rem;
	font-weight: 700;
	color: var(--eg-blue-500);
	margin: 0 0 .5rem;
}

/* ==========================================================================
   5. Layout utilities
   ========================================================================== */
.eg-container {
	width: 100%;
	max-width: var(--eg-container);
	margin: 0 auto;
	padding: 0 1.25rem;
}
@media (min-width: 768px) {
	.eg-container { padding: 0 2rem; }
}

.eg-section { padding: clamp(2.75rem, 6vw, 5rem) 0; }

.eg-section__head { max-width: 720px; margin: 0 0 2.25rem; }
.eg-section__head h2 {
	font-size: clamp(1.4rem, 3vw, 2.1rem);
	text-transform: uppercase;
	letter-spacing: .01em;
	margin: 0 0 .75rem;
}
.eg-section__lede { color: var(--eg-slate-600); font-size: 1.0625rem; margin: 0; }

body.eg-no-scroll { overflow: hidden; }

/* ==========================================================================
   6. Buttons + .eg-enquiry
   ========================================================================== */
.eg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	font-family: var(--eg-font-display);
	font-weight: 600;
	font-size: .9375rem;
	line-height: 1;
	padding: .85rem 1.5rem;
	border-radius: var(--eg-radius-pill);
	text-decoration: none;
	border: 2px solid transparent;
	white-space: nowrap;
	transition: transform var(--eg-transition), box-shadow var(--eg-transition),
		background var(--eg-transition), color var(--eg-transition), border-color var(--eg-transition);
}

.eg-btn--primary {
	background: var(--eg-blue-500);
	color: #fff;
	box-shadow: var(--eg-shadow-sm);
}
.eg-btn--primary:hover { background: var(--eg-blue-600); transform: translateY(-2px); box-shadow: var(--eg-shadow-md); color: #fff; }
.eg-btn--primary:active { transform: translateY(0); }

.eg-btn--outline {
	background: #fff;
	color: var(--eg-blue-600);
	border-color: var(--eg-slate-200);
}
.eg-btn--outline:hover {
	border-color: var(--eg-blue-400);
	color: var(--eg-blue-600);
	background: var(--eg-blue-50);
	transform: translateY(-2px);
	box-shadow: var(--eg-shadow-sm);
}

.eg-btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.eg-btn--outline-light:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }

.eg-btn--lg { padding: 1rem 2rem; font-size: 1.0625rem; }
.eg-btn--block { width: 100%; }

/*
 * .eg-enquiry — the "Forespørg" button rendered by the site's catalog-mode
 * mu-plugin in place of Add to cart (via woocommerce_template_loop_add_to_cart()
 * / the single-product add-to-cart hook). We style the class only — the
 * markup/behaviour is owned by the mu-plugin and is not touched here.
 */
a.eg-enquiry,
.eg-enquiry {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	font-family: var(--eg-font-display);
	font-weight: 600;
	font-size: .9rem;
	line-height: 1;
	padding: .85rem 1.35rem;
	border-radius: var(--eg-radius-pill);
	text-decoration: none;
	background: var(--eg-blue-500);
	color: #fff !important;
	border: 2px solid transparent;
	box-shadow: var(--eg-shadow-sm);
	white-space: nowrap;
	transition: transform var(--eg-transition), box-shadow var(--eg-transition), background var(--eg-transition);
}
a.eg-enquiry:hover, .eg-enquiry:hover { background: var(--eg-blue-600); transform: translateY(-2px); box-shadow: var(--eg-shadow-md); color: #fff !important; }
a.eg-enquiry:focus-visible, .eg-enquiry:focus-visible { outline: 3px solid var(--eg-blue-300); outline-offset: 2px; }

/* ==========================================================================
   7. Header
   ========================================================================== */
.eg-topbar { display: none; background: var(--eg-blue-950); color: #b9c3f5; font-size: .8125rem; }
@media (min-width: 768px) { .eg-topbar { display: block; } }
.eg-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .45rem 0; }
.eg-topbar__tagline { margin: 0; font-weight: 500; }
.eg-topbar__contact { display: flex; gap: 1.5rem; }
.eg-topbar__contact a { display: inline-flex; align-items: center; gap: .4rem; color: #b9c3f5; text-decoration: none; }
.eg-topbar__contact a:hover { color: #fff; }
.eg-topbar__contact svg { width: 15px; height: 15px; }

.eg-header__main {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	border-bottom: 1px solid var(--eg-border);
	transition: box-shadow var(--eg-transition), padding var(--eg-transition);
}
.eg-header__main.is-scrolled { box-shadow: 0 4px 20px rgba(16,18,26,.08); }

.eg-header__main-inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	padding: .9rem 0;
	transition: padding var(--eg-transition);
}
.eg-header__main.is-scrolled .eg-header__main-inner { padding: .6rem 0; }

.eg-header__brand { flex-shrink: 0; }

.eg-logo { display: inline-flex; align-items: center; gap: .65rem; font-family: var(--eg-font-display); font-weight: 700; font-size: 1.2rem; color: var(--eg-ink); text-decoration: none; }
/* Also used standalone (not inside .eg-logo) in the mobile drawer header. */
.eg-logo__text { font-family: var(--eg-font-display); font-weight: 700; font-size: 1.15rem; }
.eg-logo__mark {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 12px;
	background: var(--eg-blue-500);
	color: #fff; font-weight: 800; font-size: .85rem; letter-spacing: .02em;
	flex-shrink: 0;
}
.eg-logo--light { color: #fff; }

.custom-logo-link img { max-height: 46px; width: auto; }

.eg-nav { display: none; flex: 1; }
@media (min-width: 1000px) { .eg-nav { display: flex; justify-content: center; } }

.eg-nav__list { display: flex; align-items: center; gap: 1.75rem; list-style: none; margin: 0; padding: 0; font-family: var(--eg-font-display); font-weight: 600; font-size: .9rem; }
.eg-nav__list li { position: relative; }
.eg-nav__list > li { display: flex; align-items: center; }
.eg-nav__list a {
	display: inline-block;
	position: relative;
	color: var(--eg-ink);
	text-decoration: none;
	padding: .6rem 0;
}
.eg-nav__list > li > a::after {
	content: '';
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 2px;
	background: var(--eg-blue-500);
	transform: scaleX(0);
	transition: transform var(--eg-transition);
}
.eg-nav__list > li > a:hover::after,
.eg-nav__list > li > a:focus-visible::after { transform: scaleX(1); }

.eg-nav__list .menu-item-has-children > a { padding-right: 1.15rem; }
.eg-nav__list .menu-item-has-children > a::before {
	content: '';
	position: absolute;
	right: 0; top: 50%;
	width: 7px; height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-70%) rotate(45deg);
	transition: transform var(--eg-transition);
}
.eg-nav__list .menu-item-has-children:hover > a::before,
.eg-nav__list .menu-item-has-children:focus-within > a::before { transform: translateY(-30%) rotate(225deg); }

.eg-nav__list ul.sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 230px;
	background: #fff;
	border-radius: var(--eg-radius-md);
	box-shadow: var(--eg-shadow-lg);
	padding: .5rem;
	list-style: none;
	margin: 0;
	z-index: 50;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity var(--eg-transition), transform var(--eg-transition), visibility var(--eg-transition);
}
.eg-nav__list li:hover > ul.sub-menu,
.eg-nav__list li:focus-within > ul.sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.eg-nav__list .sub-menu a { padding: .6rem .8rem; border-radius: 8px; color: var(--eg-slate-700); font-weight: 500; }
.eg-nav__list .sub-menu a:hover { background: var(--eg-blue-50); color: var(--eg-blue-600); }
.eg-nav__list .sub-menu a::after { display: none; }

.eg-header__contact { display: none; align-items: center; gap: .65rem; flex-shrink: 0; }
@media (min-width: 1000px) { .eg-header__contact { display: flex; } }
.eg-header__contact-icon {
	display: flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; border-radius: 50%;
	background: var(--eg-blue-500); color: #fff; flex-shrink: 0;
}
.eg-header__contact-icon svg { width: 19px; height: 19px; }
.eg-header__contact-text { display: flex; flex-direction: column; line-height: 1.35; }
.eg-header__contact-text a { font-family: var(--eg-font-display); font-weight: 700; font-size: .9375rem; color: var(--eg-ink); text-decoration: none; }
.eg-header__contact-text a:last-child { font-family: var(--eg-font-body); font-weight: 400; font-size: .8125rem; color: var(--eg-slate-500); }
.eg-header__contact-text a:hover { color: var(--eg-blue-500); }

.eg-hamburger {
	display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 4px; width: 44px; height: 44px; border: 1px solid var(--eg-border); border-radius: 12px;
	background: #fff; flex-shrink: 0;
	/*
	 * On mobile, nav (.eg-nav) and the contact block (.eg-header__contact)
	 * are both display:none (see their min-width:1000px rules below), which
	 * removes them from the flex row entirely — without this, the
	 * hamburger would collapse to right next to the logo instead of
	 * sitting at the far right edge. Harmless at ≥1000px since the button
	 * itself is hidden there.
	 */
	margin-left: auto;
}
@media (min-width: 1000px) { .eg-hamburger { display: none; } }
.eg-hamburger__bar { width: 20px; height: 2px; background: var(--eg-ink); border-radius: 2px; transition: transform var(--eg-transition), opacity var(--eg-transition); }
.eg-hamburger[aria-expanded="true"] .eg-hamburger__bar:nth-child(2) { transform: translateY(6px) rotate(45deg); }
.eg-hamburger[aria-expanded="true"] .eg-hamburger__bar:nth-child(3) { opacity: 0; }
.eg-hamburger[aria-expanded="true"] .eg-hamburger__bar:nth-child(4) { transform: translateY(-6px) rotate(-45deg); }

/* Departments + search utility row */
.eg-header__utility { background: var(--eg-surface-alt); border-bottom: 1px solid var(--eg-border); }
.eg-header__utility-inner { display: flex; align-items: center; gap: .75rem; padding: .75rem 0; }
@media (min-width: 640px) { .eg-header__utility-inner { gap: 1rem; padding: .9rem 0; } }

.eg-dept { position: relative; flex-shrink: 0; }
.eg-dept__toggle {
	display: flex; align-items: center; gap: .5rem;
	background: var(--eg-blue-500); color: #fff; border: none;
	border-radius: var(--eg-radius-pill);
	padding: .8rem 1rem;
	min-height: 44px;
	font-family: var(--eg-font-display); font-weight: 600; font-size: .875rem;
	transition: background var(--eg-transition);
}
.eg-dept__toggle:hover { background: var(--eg-blue-600); }
.eg-dept__toggle svg { width: 17px; height: 17px; flex-shrink: 0; }
.eg-dept__toggle span { display: none; }
@media (min-width: 640px) { .eg-dept__toggle span { display: inline; } }
.eg-dept__chevron { transition: transform var(--eg-transition); }
.eg-dept.is-open .eg-dept__chevron { transform: rotate(180deg); }

.eg-dept__panel {
	position: absolute; top: calc(100% + .6rem); left: 0; z-index: 60;
	min-width: 270px;
	background: #fff;
	border: 1px solid var(--eg-border);
	border-radius: var(--eg-radius-md);
	box-shadow: var(--eg-shadow-lg);
	padding: .6rem;
}
.eg-dept__panel ul { list-style: none; margin: 0; padding: 0; }
.eg-dept__panel a {
	display: flex; align-items: center; gap: .75rem;
	padding: .7rem .75rem; border-radius: 10px;
	color: var(--eg-ink); text-decoration: none; font-weight: 600; font-size: .9rem;
	min-height: 44px;
}
.eg-dept__panel a:hover { background: var(--eg-blue-50); color: var(--eg-blue-600); }
.eg-dept__icon { display: inline-flex; width: 22px; height: 22px; color: var(--eg-blue-500); flex-shrink: 0; }
.eg-dept__icon svg { width: 100%; height: 100%; }

.eg-search-bar { flex: 1; display: flex; align-items: center; min-width: 0; }
.eg-search-bar__field {
	flex: 1; min-width: 0;
	border: 1px solid var(--eg-border);
	border-right: none;
	background: #fff;
	border-radius: var(--eg-radius-pill) 0 0 var(--eg-radius-pill);
	padding: .8rem 1.1rem;
	font-size: .9rem;
	height: 44px;
}
.eg-search-bar__field:focus { outline: none; border-color: var(--eg-blue-400); }
.eg-search-bar__submit {
	flex-shrink: 0;
	width: 44px; height: 44px;
	display: flex; align-items: center; justify-content: center;
	background: var(--eg-blue-500); color: #fff; border: none;
	border-radius: 50%;
	margin-left: -22px;
	box-shadow: var(--eg-shadow-sm);
	transition: background var(--eg-transition);
}
.eg-search-bar__submit:hover { background: var(--eg-blue-600); }
.eg-search-bar__submit svg { width: 18px; height: 18px; }

.eg-header__enquiry-link {
	display: flex; align-items: center; gap: .5rem; flex-shrink: 0;
	color: var(--eg-ink); text-decoration: none;
	padding: .6rem .3rem;
	min-height: 44px;
}
.eg-header__enquiry-icon {
	display: flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 50%;
	background: #fff; border: 1px solid var(--eg-border); color: var(--eg-blue-500);
	flex-shrink: 0;
}
.eg-header__enquiry-icon svg { width: 18px; height: 18px; }
.eg-header__enquiry-link:hover .eg-header__enquiry-icon { background: var(--eg-blue-500); color: #fff; border-color: var(--eg-blue-500); }
.eg-header__enquiry-text { display: none; font-family: var(--eg-font-display); font-weight: 600; font-size: .875rem; }
@media (min-width: 480px) { .eg-header__enquiry-text { display: inline; } }

/* Mobile drawer */
.eg-drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; pointer-events: none; }
.eg-drawer.is-open { visibility: visible; pointer-events: auto; }
.eg-drawer__backdrop {
	position: absolute; inset: 0; background: rgba(5,10,38,.55); border: none; padding: 0;
	opacity: 0; transition: opacity var(--eg-transition);
}
.eg-drawer.is-open .eg-drawer__backdrop { opacity: 1; }
.eg-drawer__panel {
	position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw);
	background: #fff; display: flex; flex-direction: column;
	transform: translateX(100%);
	transition: transform 320ms cubic-bezier(.4,0,.2,1);
	box-shadow: var(--eg-shadow-lg);
}
.eg-drawer.is-open .eg-drawer__panel { transform: translateX(0); }
.eg-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem; border-bottom: 1px solid var(--eg-border); }
.eg-drawer__close {
	background: var(--eg-surface-alt); border: none; border-radius: 50%;
	width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--eg-ink);
}
.eg-drawer__close svg { width: 18px; height: 18px; }
.eg-drawer__nav { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; -webkit-overflow-scrolling: touch; }
.eg-drawer__list { list-style: none; margin: 0; padding: 0; }
.eg-drawer__list a {
	display: block; padding: 1rem .25rem; font-family: var(--eg-font-display); font-weight: 600; font-size: 1.05rem;
	color: var(--eg-ink); text-decoration: none; border-bottom: 1px solid var(--eg-slate-100);
	min-height: 44px;
}
.eg-drawer__list .sub-menu { list-style: none; margin: 0 0 .25rem; padding: 0 0 0 1rem; }
.eg-drawer__list .sub-menu a { font-weight: 500; font-size: .95rem; color: var(--eg-slate-600); border-bottom: none; padding: .8rem .25rem; }
.eg-drawer__footer { padding: 1.25rem; border-top: 1px solid var(--eg-border); display: flex; flex-direction: column; gap: .9rem; }
.eg-drawer__phone { text-align: center; color: var(--eg-blue-500); font-weight: 700; text-decoration: none; padding: .5rem; }

/* ==========================================================================
   8. Hero slider
   ========================================================================== */
.eg-hero { position: relative; overflow: hidden; background: var(--eg-blue-950); }

/* Mobile: text panel + image panel stacked, generous fixed height so both
   fit without clipping. From 768px up they sit side by side and the track
   can be shorter. .eg-slide is still position:absolute/opacity-crossfaded,
   so the track height must fit the tallest panel at each breakpoint. */
.eg-slider__track { position: relative; height: 700px; }
@media (min-width: 560px) { .eg-slider__track { height: 640px; } }
@media (min-width: 768px) { .eg-slider__track { height: 460px; } }
@media (min-width: 1024px) { .eg-slider__track { height: 520px; } }

.eg-slide {
	position: absolute; inset: 0;
	opacity: 0; z-index: 1;
	transition: opacity 800ms ease;
}
.eg-slide.is-active { opacity: 1; z-index: 2; }

/* Two-panel layout: text (left) + boxed product photo (right). Stacks on
   mobile. Photo is always object-fit:contain inside .eg-slide__media-frame
   — it is never cropped or stretched, whatever its native aspect ratio. */
.eg-slide__inner {
	display: flex; flex-direction: column;
	height: 100%;
	gap: 1.5rem;
	padding-top: 2rem; padding-bottom: 2rem;
}
@media (min-width: 768px) {
	.eg-slide__inner {
		flex-direction: row; align-items: center;
		gap: clamp(1.5rem, 4vw, 4rem);
		padding-top: 0; padding-bottom: 0;
	}
}

.eg-slide__content {
	position: relative; z-index: 2;
	flex: 1 1 auto;
	display: flex; flex-direction: column; justify-content: center;
	gap: .85rem; color: #fff;
	padding: 1.75rem 1.5rem;
	background: linear-gradient(135deg, var(--eg-blue-900), var(--eg-blue-500));
	border-radius: var(--eg-radius-lg);
	overflow: hidden;
}
.eg-slide__content::before {
	content: ''; position: absolute; inset: 0; z-index: -1;
	background: radial-gradient(circle at 85% 15%, rgba(255,255,255,.16), transparent 55%);
}
@media (min-width: 768px) {
	.eg-slide__content { flex-basis: 52%; padding: 2.5rem 3rem; }
}
@media (min-width: 1024px) {
	.eg-slide__content { padding: 3rem 3.5rem; }
}
.eg-slide__eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; color: var(--eg-blue-200); margin: 0; }
.eg-slide__title { font-size: clamp(1.5rem, 3.6vw, 2.6rem); line-height: 1.15; margin: 0; }
.eg-slide__tagline { font-size: 1.0625rem; color: #d8ddfb; max-width: 46ch; margin: 0; font-family: var(--eg-font-body); }
.eg-slide__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem; margin-top: .6rem; }
/* Wraps the mu-plugin's .eg-enquiry button so it sizes to its content
   inside the flex row rather than being stretched by default align-items. */
.eg-slide__enquiry { display: inline-flex; }

/* Product-photo panel: light, boxed, contained — never cropped/stretched. */
.eg-slide__media {
	position: relative; z-index: 2;
	flex: 1 1 auto;
	display: flex; align-items: center; justify-content: center;
	min-height: 0;
}
@media (min-width: 768px) {
	.eg-slide__media { flex-basis: 48%; height: 100%; }
}
.eg-slide__media-frame {
	width: 100%; height: 100%;
	max-width: 420px; max-height: 320px;
	display: flex; align-items: center; justify-content: center;
	background: var(--eg-surface);
	border: 1px solid var(--eg-border);
	border-radius: var(--eg-radius-lg);
	box-shadow: var(--eg-shadow-lg);
	padding: 1.5rem;
}
@media (min-width: 768px) {
	.eg-slide__media-frame { max-height: 380px; }
}
@media (min-width: 1024px) {
	.eg-slide__media-frame { max-width: 480px; max-height: 420px; padding: 2rem; }
}
.eg-slide__media-frame img {
	width: 100%; height: 100%;
	object-fit: contain;
}

.eg-slider__arrow {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
	width: 46px; height: 46px; border-radius: 50%;
	background: rgba(255,255,255,.14); backdrop-filter: blur(6px);
	border: 1px solid rgba(255,255,255,.32); color: #fff;
	display: flex; align-items: center; justify-content: center;
	transition: background var(--eg-transition), transform var(--eg-transition);
}
.eg-slider__arrow:hover { background: rgba(255,255,255,.28); }
.eg-slider__arrow--prev { left: .75rem; }
.eg-slider__arrow--next { right: .75rem; }
@media (min-width: 1024px) {
	.eg-slider__arrow--prev { left: 2rem; }
	.eg-slider__arrow--next { right: 2rem; }
}
.eg-slider__arrow svg { width: 22px; height: 22px; }

.eg-slider__dots {
	position: absolute; left: 50%; transform: translateX(-50%); bottom: 1.1rem; z-index: 4;
	display: flex; gap: .5rem;
}
.eg-slider__dot {
	width: 9px; height: 9px; border-radius: 50%;
	background: rgba(255,255,255,.4); border: none; padding: 0;
	transition: background var(--eg-transition), width var(--eg-transition), border-radius var(--eg-transition);
}
.eg-slider__dot.is-active { background: var(--eg-blue-300); width: 26px; border-radius: 6px; }

/* Static fallback hero (no products at all) */
.eg-hero--static { position: relative; min-height: 440px; display: flex; align-items: center; }
.eg-hero__static-bg { position: absolute; inset: 0; background: linear-gradient(135deg, var(--eg-blue-900), var(--eg-blue-500)); }
.eg-hero__static-bg::after {
	content: ''; position: absolute; inset: 0;
	background: radial-gradient(circle at 82% 18%, rgba(255,255,255,.14), transparent 55%);
}
.eg-hero__static-content { position: relative; z-index: 2; color: #fff; max-width: 700px; padding: 4rem 0; }
.eg-hero__static-content h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); margin: 0 0 1.1rem; }
.eg-hero__static-content p { font-family: var(--eg-font-body); font-size: 1.0625rem; color: #d8ddfb; margin: 0 0 1.85rem; max-width: 56ch; }

/* ==========================================================================
   9. Category showcase
   ========================================================================== */
.eg-cats__grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .eg-cats__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .eg-cats__grid { grid-template-columns: repeat(5, 1fr); } }

.eg-cat-card {
	display: flex; flex-direction: column; gap: .65rem;
	padding: 1.75rem 1.5rem;
	background: var(--eg-surface);
	border: 1px solid var(--eg-border);
	border-radius: var(--eg-radius-lg);
	text-decoration: none; color: inherit;
	transition: transform var(--eg-transition), box-shadow var(--eg-transition), border-color var(--eg-transition);
}
.eg-cat-card:hover { transform: translateY(-4px); box-shadow: var(--eg-shadow-md); border-color: var(--eg-blue-200); }
.eg-cat-card__icon {
	width: 52px; height: 52px; border-radius: 14px;
	background: var(--eg-blue-50); color: var(--eg-blue-500);
	display: flex; align-items: center; justify-content: center;
}
.eg-cat-card__icon svg { width: 28px; height: 28px; }
.eg-cat-card__name { font-family: var(--eg-font-display); font-weight: 700; font-size: 1.0625rem; }
.eg-cat-card__desc { color: var(--eg-slate-600); font-size: .875rem; line-height: 1.55; flex: 1; }
.eg-cat-card__link { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--eg-font-display); font-weight: 600; font-size: .8125rem; color: var(--eg-blue-500); margin-top: .25rem; }
.eg-cat-card__link svg { width: 15px; height: 15px; transition: transform var(--eg-transition); }
.eg-cat-card:hover .eg-cat-card__link svg { transform: translateX(3px); }

/* ==========================================================================
   10. Product grid & card
   ========================================================================== */
ul.products {
	display: grid !important;
	grid-template-columns: repeat(1, 1fr);
	gap: 1.5rem;
	list-style: none;
	margin: 0 !important;
	padding: 0 !important;
}
@media (min-width: 560px) { ul.products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { ul.products { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1220px) { ul.products { grid-template-columns: repeat(4, 1fr); } }

/* WooCommerce core adds a clearfix (ul.products::before/::after) for its old
   float layout. In our CSS Grid those pseudo-elements become stray grid
   items — ::before lands in cell 1 and shoves the first product into column
   2, leaving a blank first cell (and ::after a blank trailing one). Kill them. */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after,
ul.products::before,
ul.products::after { content: none !important; display: none !important; }

ul.products.eg-products-grid--split {
	grid-template-columns: repeat(1, 1fr);
}
@media (min-width: 560px) { ul.products.eg-products-grid--split { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1220px) { ul.products.eg-products-grid--split { grid-template-columns: repeat(2, 1fr); } }

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
ul.products li.product {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0;
	height: 100%;
}

.eg-product-card__inner {
	display: flex; flex-direction: column; height: 100%;
	background: var(--eg-surface);
	border: 1px solid var(--eg-border);
	border-radius: var(--eg-radius-lg);
	overflow: hidden;
	transition: transform var(--eg-transition), box-shadow var(--eg-transition), border-color var(--eg-transition);
}
.eg-product-card__inner:hover { transform: translateY(-4px); box-shadow: var(--eg-shadow-md); border-color: var(--eg-blue-200); }

.eg-product-card__media {
	position: relative; display: block;
	aspect-ratio: 1 / 1;
	background: var(--eg-surface-alt);
	overflow: hidden;
}
/* Higher specificity than WooCommerce core's
   `.woocommerce ul.products li.product a img { height:auto; margin:0 0 1em }`
   (0,3,1), which otherwise lets portrait product photos blow out the card
   height and break row alignment. Pin every thumbnail to fill the square box. */
.eg-product-card__media img,
.woocommerce ul.products li.product a.eg-product-card__media img,
.woocommerce-page ul.products li.product a.eg-product-card__media img {
	width: 100%; height: 100%; object-fit: contain; margin: 0; padding: 1.5rem;
}

.eg-product-card__badges {
	position: absolute; top: .75rem; left: .75rem; z-index: 2;
	display: flex; flex-direction: column; align-items: flex-start; gap: .4rem;
}
.eg-badge {
	display: inline-flex; align-items: center;
	font-family: var(--eg-font-display);
	font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
	padding: .35rem .65rem; border-radius: var(--eg-radius-pill);
	color: #fff;
}
.eg-badge--new { background: var(--eg-badge-black); }
.eg-badge--used { background: var(--eg-slate-600); }
.eg-product-card__badges .onsale {
	position: static;
	display: inline-flex; align-items: center;
	font-family: var(--eg-font-display);
	font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
	padding: .35rem .65rem; border-radius: var(--eg-radius-pill);
	background: var(--eg-blue-500); color: #fff;
	min-height: 0; min-width: 0; margin: 0; height: auto; width: auto; line-height: 1.4;
}

.eg-product-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.35rem 1.5rem; gap: .45rem; }
.eg-product-card__eyebrow { font-family: var(--eg-font-display); font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--eg-blue-500); margin: 0; }
.eg-product-card__title { font-size: 1.05rem; margin: 0; line-height: 1.35; }
.eg-product-card__title a { color: var(--eg-ink); text-decoration: none; }
.eg-product-card__title a:hover { color: var(--eg-blue-500); }
.eg-product-card__excerpt {
	color: var(--eg-slate-600); font-size: .875rem; line-height: 1.55; margin: 0;
	font-family: var(--eg-font-body);
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.eg-product-card__price { margin: .1rem 0 0; font-weight: 700; font-size: .95rem; }
.eg-product-card__price:empty { display: none; }
.eg-product-card__price .price { color: var(--eg-slate-600); }
.eg-product-card__price ins { background: none; text-decoration: none; color: var(--eg-blue-500); font-weight: 800; }
.eg-product-card__price del { color: var(--eg-slate-500); opacity: 1; margin-right: .35rem; }

.eg-product-card__actions { margin-top: auto; padding-top: .85rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.eg-product-card__actions .eg-btn,
.eg-product-card__actions .eg-enquiry {
	flex: 1 1 120px;
	padding: .7rem 1rem;
	font-size: .8125rem;
}

/* ==========================================================================
   11. Products section (uppercase title + tabs)
   ========================================================================== */
.eg-products__head {
	display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
	gap: 1.25rem; margin-bottom: .75rem;
}
.eg-products__title { margin: 0; }
.eg-products__lede { margin-bottom: 2rem; }

.eg-tabs { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.eg-tabs__link {
	display: inline-flex; align-items: center;
	font-family: var(--eg-font-display); font-weight: 600; font-size: .8125rem;
	padding: .55rem 1.1rem; border-radius: var(--eg-radius-pill);
	border: 1px solid var(--eg-border);
	color: var(--eg-slate-600); text-decoration: none;
	background: #fff;
	transition: background var(--eg-transition), color var(--eg-transition), border-color var(--eg-transition);
}
a.eg-tabs__link:hover { border-color: var(--eg-blue-300); color: var(--eg-blue-500); }
.eg-tabs__link.is-current {
	background: var(--eg-blue-500); border-color: var(--eg-blue-500); color: #fff;
}

.eg-products__more { text-align: center; margin-top: 2.75rem; }

/* ==========================================================================
   12. Shop / archive header + toolbar + pagination
   ========================================================================== */
.eg-shop { padding: 2.5rem 0 4.5rem; }

.eg-breadcrumbs, nav.eg-breadcrumbs {
	font-size: .8125rem; color: var(--eg-slate-500); margin: 0 0 1.1rem;
}
.eg-breadcrumbs a { color: var(--eg-slate-500); text-decoration: none; }
.eg-breadcrumbs a:hover { color: var(--eg-blue-500); }

.eg-shop__header { margin-bottom: 2.25rem; padding-bottom: 2rem; border-bottom: 1px solid var(--eg-border); }
.eg-shop__title { font-size: clamp(1.75rem, 3.5vw, 2.5rem); text-transform: uppercase; margin: .25rem 0 .75rem; }
.eg-shop__description { color: var(--eg-slate-600); max-width: 760px; line-height: 1.65; }

.eg-shop__toolbar {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 1rem; margin-bottom: 2.25rem;
}
.woocommerce-result-count { margin: 0; color: var(--eg-slate-500); font-size: .9rem; }
.woocommerce-ordering { margin: 0; }
.woocommerce-ordering select {
	border: 1px solid var(--eg-border);
	border-radius: var(--eg-radius-pill);
	padding: .6rem 2.4rem .6rem 1.15rem;
	font-size: .875rem;
	background-color: #fff;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2.4'><path d='m6 9 6 6 6-6'/></svg>");
	background-repeat: no-repeat;
	background-position: right .9rem center;
	background-size: 14px;
	min-height: 44px;
}

/* Ny/Brugt condition filter (archives). Rendered only when the current
   archive actually contains a used product — see eg_render_condition_filter(). */
.eg-condition-filter {
	display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
	margin: 0 0 1.75rem;
}
.eg-condition-filter__label {
	font-family: var(--eg-font-display); font-weight: 700; font-size: .8rem;
	text-transform: uppercase; letter-spacing: .04em; color: var(--eg-slate-500);
	margin-right: .25rem;
}
.eg-condition-filter__pill {
	display: inline-flex; align-items: center;
	padding: .4rem .95rem; border-radius: var(--eg-radius-pill);
	background: #fff; border: 1px solid var(--eg-border);
	color: var(--eg-slate-700); font-size: .875rem; font-weight: 600;
	text-decoration: none;
	transition: background var(--eg-transition), border-color var(--eg-transition), color var(--eg-transition);
}
.eg-condition-filter__pill:hover { border-color: var(--eg-blue-400); color: var(--eg-blue-600); }
.eg-condition-filter__pill.is-active {
	background: var(--eg-blue-500); border-color: var(--eg-blue-500); color: #fff;
}

.eg-shop__empty { padding: 2rem 0; }

.woocommerce-pagination ul.page-numbers,
.eg-pagination .nav-links {
	display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem;
	list-style: none; margin: 0; padding: 0;
}
.page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; height: 42px; padding: 0 .65rem;
	border-radius: 10px; border: 1px solid var(--eg-border); background: #fff;
	color: var(--eg-slate-600); text-decoration: none; font-weight: 700; font-size: .9rem;
}
a.page-numbers:hover { border-color: var(--eg-blue-300); color: var(--eg-blue-500); }
.page-numbers.current { background: var(--eg-blue-500); border-color: var(--eg-blue-500); color: #fff; }
.eg-shop__pagination, .eg-pagination { margin-top: 2.5rem; }

/* ==========================================================================
   13. Promo band (USP chips + CTA)
   ========================================================================== */
.eg-promo-band { background: var(--eg-lavender-200); }
.eg-promo-band__inner {
	padding: clamp(2.5rem, 5vw, 3.75rem) 0;
	display: grid; grid-template-columns: 1fr; gap: 2rem;
	align-items: center;
}
@media (min-width: 900px) { .eg-promo-band__inner { grid-template-columns: 1.5fr 1fr; gap: 3rem; } }

.eg-promo-band__title { font-size: clamp(1.4rem, 3vw, 2rem); text-transform: uppercase; margin: 0 0 1.25rem; }

.eg-chip-list { display: flex; flex-wrap: wrap; gap: .75rem; list-style: none; margin: 0; padding: 0; }
.eg-chip {
	display: inline-flex; align-items: center; gap: .55rem;
	background: #fff; border: 1px solid rgba(30,64,255,.12);
	border-radius: var(--eg-radius-pill);
	padding: .6rem 1.1rem .6rem .6rem;
	font-family: var(--eg-font-display); font-weight: 600; font-size: .8125rem; color: var(--eg-ink);
	box-shadow: var(--eg-shadow-sm);
}
.eg-chip__icon {
	display: flex; align-items: center; justify-content: center;
	width: 30px; height: 30px; border-radius: 50%;
	background: var(--eg-blue-50); color: var(--eg-blue-500); flex-shrink: 0;
}
.eg-chip__icon svg { width: 16px; height: 16px; }

.eg-promo-band__cta {
	background: #fff; border-radius: var(--eg-radius-lg);
	padding: 1.75rem; box-shadow: var(--eg-shadow-md);
	display: flex; flex-direction: column; gap: 1.1rem; align-items: flex-start;
}
.eg-promo-band__cta p { color: var(--eg-slate-600); margin: 0; }

/* ==========================================================================
   14. Split section (category sidebar + grid + lifestyle panel)
   ========================================================================== */
.eg-split__layout { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 960px) { .eg-split__layout { grid-template-columns: 260px 1fr; gap: 2.5rem; align-items: start; } }

.eg-split__sidebar {
	background: var(--eg-surface); border: 1px solid var(--eg-border); border-radius: var(--eg-radius-lg);
	padding: 1.5rem;
}
.eg-split__sidebar h3 {
	font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em;
	color: var(--eg-slate-500); margin: 0 0 1rem;
}
.eg-split__sidebar ul { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.eg-split__sidebar li + li { margin-top: .25rem; }
.eg-split__sidebar a {
	display: flex; align-items: center; gap: .75rem;
	padding: .75rem .5rem; border-radius: 10px;
	color: var(--eg-ink); text-decoration: none;
	font-family: var(--eg-font-display); font-weight: 600; font-size: .9rem;
	min-height: 44px;
}
.eg-split__sidebar a:hover { background: var(--eg-blue-50); color: var(--eg-blue-500); }
.eg-split__sidebar-icon { display: inline-flex; width: 22px; height: 22px; color: var(--eg-blue-500); flex-shrink: 0; }
.eg-split__sidebar-icon svg { width: 100%; height: 100%; }
.eg-split__sidebar-arrow { width: 15px; height: 15px; margin-left: auto; color: var(--eg-slate-500); flex-shrink: 0; }

.eg-split__main { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 900px) { .eg-split__main { grid-template-columns: 1.4fr 1fr; align-items: stretch; } }

.eg-split__lifestyle {
	position: relative; min-height: 320px; border-radius: var(--eg-radius-lg); overflow: hidden;
	background: linear-gradient(150deg, var(--eg-blue-900), var(--eg-blue-500));
	background-size: cover; background-position: center;
	display: flex; align-items: flex-end;
}
.eg-split__lifestyle-overlay {
	position: absolute; inset: 0;
	background: linear-gradient(0deg, rgba(5,10,38,.86) 0%, rgba(5,10,38,.35) 60%, rgba(5,10,38,.15) 100%);
}
.eg-split__lifestyle-content { position: relative; z-index: 1; padding: 2rem; color: #fff; }
.eg-split__lifestyle-content .eg-eyebrow { color: var(--eg-blue-200); }
.eg-split__lifestyle-content h3 { font-size: 1.35rem; margin: 0 0 .6rem; }
.eg-split__lifestyle-content p { font-family: var(--eg-font-body); color: #d8ddfb; margin: 0 0 1.35rem; font-size: .9375rem; }

/* ==========================================================================
   15. CTA band (closing)
   ========================================================================== */
.eg-cta-band { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--eg-blue-950), var(--eg-blue-700)); }
.eg-cta-band::after {
	content: ''; position: absolute; inset: 0;
	background: radial-gradient(circle at 12% 88%, rgba(255,255,255,.12), transparent 55%);
}
.eg-cta-band__inner {
	position: relative; z-index: 1; text-align: center;
	padding: clamp(3rem, 6vw, 5rem) 0; max-width: 640px; margin: 0 auto; color: #fff;
}
.eg-cta-band h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); text-transform: uppercase; margin: 0 0 1rem; }
.eg-cta-band p { font-family: var(--eg-font-body); color: #d8ddfb; margin: 0 0 2rem; font-size: 1.0625rem; }

/* ==========================================================================
   16. Footer
   ========================================================================== */
.eg-footer { background: linear-gradient(180deg, var(--eg-blue-950), var(--eg-blue-900)); color: #b9c3f5; }

.eg-footer__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding: clamp(3rem, 6vw, 4.5rem) 0 3rem; }
@media (min-width: 720px) { .eg-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .eg-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

.eg-footer__col--brand { display: flex; flex-direction: column; gap: 1.15rem; align-items: flex-start; }
.eg-footer__blurb { font-family: var(--eg-font-body); color: #98a3d6; line-height: 1.65; font-size: .9375rem; margin: 0; max-width: 40ch; }

.eg-footer__heading { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 1.15rem; }
.eg-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .8rem; font-family: var(--eg-font-body); font-size: .9375rem; }
.eg-footer__list li { display: flex; align-items: center; gap: .6rem; }
.eg-footer__list svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--eg-blue-300); }
.eg-footer__list a { color: #b9c3f5; text-decoration: none; }
.eg-footer__list a:hover { color: #fff; text-decoration: underline; }

.eg-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); }
.eg-footer__bottom-inner {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
	gap: .5rem; padding: 1.5rem 0; font-family: var(--eg-font-body); font-size: .8125rem; color: #7f8ac2;
}
.eg-footer__bottom-inner p { margin: 0; }

/* ==========================================================================
   17. Single product
   ========================================================================== */
.eg-single-product { padding: 2rem 0 4.5rem; }

div.product {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	margin: 0 0 2rem;
}
@media (min-width: 900px) {
	div.product { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
}

.woocommerce-product-gallery {
	background: var(--eg-surface-alt);
	border-radius: var(--eg-radius-lg);
	padding: 1.5rem;
}
.woocommerce-product-gallery img { border-radius: var(--eg-radius-md); }

.summary.entry-summary { display: flex; flex-direction: column; gap: 1.1rem; }
.summary .product_title { font-size: clamp(1.5rem, 3vw, 2.15rem); margin: 0; }
.summary .price { font-size: 1.3rem; font-weight: 800; color: var(--eg-blue-500); font-family: var(--eg-font-display); }
.summary .woocommerce-product-details__short-description { font-family: var(--eg-font-body); color: var(--eg-slate-600); line-height: 1.7; }
.summary form.cart,
.summary .eg-enquiry { margin-top: .5rem; }

.woocommerce-tabs { margin: 2rem 0 3rem; border-top: 1px solid var(--eg-border); padding-top: 2rem; }
.woocommerce-tabs ul.tabs {
	display: flex; flex-wrap: wrap; gap: .25rem; list-style: none;
	margin: 0 0 1.75rem; padding: 0; border-bottom: 1px solid var(--eg-border);
}
.woocommerce-tabs ul.tabs li { margin: 0; }
.woocommerce-tabs ul.tabs li a {
	display: inline-block; padding: .8rem 1.1rem; font-family: var(--eg-font-display); font-weight: 600;
	color: var(--eg-slate-500); text-decoration: none;
	border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.woocommerce-tabs ul.tabs li.active a { color: var(--eg-blue-500); border-color: var(--eg-blue-500); }
.woocommerce-tabs .panel { font-family: var(--eg-font-body); color: var(--eg-slate-600); line-height: 1.75; max-width: 820px; }
.woocommerce-tabs .panel h2 { font-size: 1.35rem; }

.related.products { margin-top: 1rem; }
.related.products > h2 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); text-transform: uppercase; margin: 0 0 1.75rem; }

/* ==========================================================================
   18. Generic page / blog fallback
   ========================================================================== */
.eg-page { padding: 3rem 0 4.5rem; }
.eg-page__header { margin-bottom: 2rem; }
.eg-page__title { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin: 0; }
.eg-page__title span { color: var(--eg-blue-500); }

.eg-page__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 720px) { .eg-page__grid { grid-template-columns: repeat(2, 1fr); } }

.eg-entry-card {
	background: #fff; border: 1px solid var(--eg-border); border-radius: var(--eg-radius-lg);
	overflow: hidden; display: flex; flex-direction: column;
	transition: transform var(--eg-transition), box-shadow var(--eg-transition);
}
.eg-entry-card:hover { transform: translateY(-3px); box-shadow: var(--eg-shadow-md); }
.eg-entry-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.eg-entry-card__media img { width: 100%; height: 100%; object-fit: cover; }
.eg-entry-card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; }
.eg-entry-card__title { font-size: 1.15rem; margin: 0; }
.eg-entry-card__title a { color: var(--eg-ink); text-decoration: none; }
.eg-entry-card__meta { font-family: var(--eg-font-body); color: var(--eg-slate-500); font-size: .8125rem; margin: 0; }
.eg-entry-card__excerpt { font-family: var(--eg-font-body); color: var(--eg-slate-600); font-size: .9375rem; line-height: 1.6; }

.eg-empty-state { padding: 3rem 0; text-align: center; color: var(--eg-slate-500); }

/* ==========================================================================
   19. WooCommerce notices, forms, misc
   ========================================================================== */
.woocommerce-message, .woocommerce-error, .woocommerce-info {
	list-style: none; margin: 0 0 1.5rem; padding: 1rem 1.5rem;
	border-radius: var(--eg-radius-md); font-size: .9375rem;
	background: var(--eg-blue-50); border: 1px solid var(--eg-blue-200); color: var(--eg-blue-800);
}
.woocommerce-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.woocommerce-message { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }

.star-rating { color: var(--eg-blue-500); }

.woocommerce-breadcrumb, .eg-breadcrumbs { display: block; }

/* ==========================================================================
   20. Dark-section text contrast fixes
   ========================================================================== */
/*
 * Root cause: the base heading rule (§2) sets an explicit `color` on every
 * h1–h6 by tag name. An element's own matching rule always wins over an
 * inherited color, regardless of the ancestor rule's specificity — so any
 * heading nested in a dark section that has no color rule of its own here
 * renders in --eg-ink (near-black) instead of the light color set on its
 * dark-background ancestor. These are exactly the dark-section headings
 * that had no such override (see specs/contrast.md for the full audit);
 * every other on-dark text role (eyebrows, paragraphs, links, the footer
 * heading) already has one and is untouched by this block.
 */
.eg-slide__title,                  /* hero slide heading, on .eg-hero (--eg-blue-950) */
.eg-hero__static-content h1,       /* static hero fallback (0-product state) */
.eg-cta-band h2,                   /* closing "Klar til at opgradere din automat?" band */
.eg-split__lifestyle-content h3 {  /* dark "Ombygning & omkodning af jukebokse" service card */
	color: #fff;
}

/* ==========================================================================
   21. Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
		scroll-behavior: auto !important;
	}
}

/* ==========================================================================
   22. Cookie consent banner
   ========================================================================== */
.eg-cookie-consent {
	position: fixed;
	left: 1rem;
	right: 1rem;
	bottom: 1rem;
	z-index: 9999; /* below .eg-skip-link's focus z-index (10000); above the
	                   mobile drawer (200) and everything else in the page. */
	max-width: 640px;
	margin: 0 auto;
	background: var(--eg-surface);
	border: 1px solid var(--eg-border);
	border-radius: var(--eg-radius-lg);
	box-shadow: var(--eg-shadow-lg);
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
	opacity: 0;
	transform: translateY(16px);
	transition: opacity var(--eg-transition), transform var(--eg-transition);
}
.eg-cookie-consent[hidden] { display: none; }
.eg-cookie-consent.is-visible { opacity: 1; transform: translateY(0); }

.eg-cookie-consent__text {
	font-family: var(--eg-font-body);
	font-size: .9375rem;
	line-height: 1.6;
	color: var(--eg-slate-700);
	margin: 0;
}
.eg-cookie-consent__text a { color: var(--eg-blue-600); text-decoration: underline; }
.eg-cookie-consent__text a:hover { color: var(--eg-blue-500); }

.eg-cookie-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
}
.eg-cookie-consent__actions .eg-btn { flex: 1 1 auto; }

@media (min-width: 480px) {
	.eg-cookie-consent__actions .eg-btn { flex: 0 1 auto; }
}

@media (min-width: 720px) {
	.eg-cookie-consent {
		left: auto;
		right: 1.5rem;
		bottom: 1.5rem;
		margin: 0;
	}
	.eg-cookie-consent__actions { flex-wrap: nowrap; }
}

.eg-cookie-consent :focus-visible {
	outline: 2px solid var(--eg-blue-400);
	outline-offset: 2px;
}

/* Footer "Cookieindstillinger" reopen control — styled to sit inline with
   the other .eg-footer__list links (see main.css §16) even though it is a
   <button>, not an <a>, because it triggers JS rather than navigating. */
.eg-footer__cookie-reopen {
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	font: inherit;
	color: #b9c3f5;
	text-decoration: none;
	cursor: pointer;
	text-align: left;
}
.eg-footer__cookie-reopen:hover { color: #fff; text-decoration: underline; }
.eg-footer__cookie-reopen:focus-visible {
	outline: 2px solid var(--eg-blue-300);
	outline-offset: 3px;
	border-radius: 2px;
}
