/* =========================================================================
   EGlobeStore — premium design system
   Hybrid premium: light shopping base + dark cinematic bands, electric blue.
   ========================================================================= */

:root {
	/* Brand — electric blue gradient */
	--brand:        #2563eb;
	--brand-600:    #1d4ed8;
	--brand-700:    #1e40af;
	--brand-cyan:   #22d3ee;
	--brand-deep:   #0b1f6b;
	--grad:         linear-gradient(100deg, #1e40af 0%, #2563eb 45%, #22d3ee 100%);
	--grad-soft:    linear-gradient(100deg, #2563eb, #22d3ee);
	--glow:         0 0 0 rgba(37,99,235,0);

	/* Light base */
	--bg:           #ffffff;
	--bg-soft:      #f4f7fc;
	--bg-soft-2:    #eef2fa;
	--surface:      #ffffff;
	--text:         #0b1020;
	--text-2:       #303a52;
	--muted:        #6b7590;
	--border:       #e6eaf3;
	--border-2:     #dde3f0;

	/* Dark bands */
	--dark:         #070b18;
	--dark-2:       #0c1326;
	--dark-3:       #131d36;
	--dark-text:    #eaf0ff;
	--dark-muted:   #9aa6c6;
	--dark-border:  rgba(255,255,255,.10);

	/* Status */
	--sale:         #ef4444;
	--hot:          #f59e0b;
	--new:          #16a34a;
	--star:         #ffb020;

	/* Shape */
	--r:            20px;
	--r-sm:         14px;
	--r-lg:         28px;
	--r-xl:         34px;
	--pill:         999px;

	/* Shadow */
	--sh-sm:        0 4px 14px rgba(13,20,38,.06);
	--sh:           0 12px 34px rgba(13,20,38,.09);
	--sh-lg:        0 26px 60px rgba(13,20,38,.16);
	--sh-brand:     0 18px 40px rgba(37,99,235,.30);

	/* Layout */
	--container:    1320px;
	--gap:          24px;
	--ease:         cubic-bezier(.22,.61,.36,1);
	--ease-out:     cubic-bezier(.16,1,.3,1);

	--header-h:     84px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: "Albert Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-600); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand); }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 { line-height: 1.12; font-weight: 800; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--text); }

.egs-icon { flex: none; }

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 28px;
}

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.egs-skip {
	position: fixed; top: -100px; left: 16px; z-index: 999; background: var(--brand);
	color: #fff; padding: 12px 18px; border-radius: 0 0 12px 12px; transition: top .2s;
}
.egs-skip:focus { top: 0; color:#fff; }

/* ---------- Utilities ---------- */
.grad-text {
	background: var(--grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}
.egs-eyebrow {
	display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .14em;
	text-transform: uppercase; color: var(--brand-600); margin-bottom: 14px;
}
.egs-eyebrow--light { color: var(--brand-cyan); }

.egs-section { padding: 84px 0; }
.egs-section--soft { background: var(--bg-soft); }

.egs-sectitle { font-size: clamp(28px, 3.4vw, 44px); margin: 0; }

.egs-sechead {
	display: flex; align-items: flex-end; justify-content: space-between;
	gap: 24px; margin-bottom: 40px; flex-wrap: wrap;
}
.egs-viewall {
	display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text);
	padding: 11px 18px; border: 1.5px solid var(--border-2); border-radius: var(--pill);
	transition: all .25s var(--ease);
}
.egs-viewall:hover { background: var(--text); color: #fff; border-color: var(--text); transform: translateY(-2px); }
.egs-viewall .egs-icon { transition: transform .25s var(--ease); }
.egs-viewall:hover .egs-icon { transform: translateX(3px); }

.egs-textlink {
	display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--brand-600);
}
.egs-textlink .egs-icon { transition: transform .25s var(--ease); }
a:hover .egs-textlink .egs-icon, .egs-textlink:hover .egs-icon { transform: translateX(4px); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; transition: none; }
	html { scroll-behavior: auto; }
}

/* ---------- Buttons ---------- */
.egs-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	font-weight: 700; font-size: 15.5px; line-height: 1;
	padding: 16px 28px; border-radius: var(--pill); border: 1.5px solid transparent;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .2s;
	white-space: nowrap;
}
.egs-btn--primary { background: var(--grad); color: #fff; box-shadow: var(--sh-brand); }
.egs-btn--primary:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 24px 50px rgba(37,99,235,.42); }
.egs-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.egs-btn--ghost:hover { background: rgba(255,255,255,.10); color:#fff; border-color: rgba(255,255,255,.6); }
.egs-btn--dark { background: var(--text); color: #fff; }
.egs-btn--dark:hover { color:#fff; transform: translateY(-3px); box-shadow: var(--sh-lg); }

/* =========================================================================
   HEADER
   ========================================================================= */
.egs-topbar { background: var(--dark); color: var(--dark-muted); font-size: 13.5px; }
.egs-topbar__in { display: flex; align-items: center; justify-content: space-between; min-height: 42px; gap: 16px; }
.egs-topbar__msg { display: inline-flex; align-items: center; gap: 9px; color: var(--dark-text); }
.egs-topbar__msg .egs-icon { color: var(--brand-cyan); }
.egs-topbar__right { display: flex; align-items: center; gap: 22px; }
.egs-topbar__menu { display: flex; gap: 18px; }
.egs-topbar__menu a, .egs-topbar__link { color: var(--dark-muted); display: inline-flex; align-items: center; gap: 7px; }
.egs-topbar__menu a:hover, .egs-topbar__link:hover { color: #fff; }

.egs-header { position: sticky; top: 0; z-index: 200; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--border); transition: box-shadow .3s, background .3s; }
.egs-header.is-stuck { box-shadow: 0 8px 30px rgba(13,20,38,.10); }
.egs-header__in { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }

.egs-logo { display: inline-flex; align-items: center; gap: 11px; font-weight: 900; font-size: 23px; letter-spacing: -.03em; color: var(--text); }
.egs-logo:hover { color: var(--text); }
.egs-logo__mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--grad); color: #fff; box-shadow: var(--sh-brand); }
.egs-logo__mark .egs-icon { width: 24px; height: 24px; }
.egs-logo__text { white-space: nowrap; }
.custom-logo-link img { max-height: 46px; width: auto; }

.egs-catbtn {
	display: inline-flex; align-items: center; gap: 9px; padding: 13px 18px; border: none;
	border-radius: var(--pill); background: var(--text); color: #fff; font-weight: 700; font-size: 14.5px;
	transition: transform .2s var(--ease), box-shadow .2s; white-space: nowrap;
}
.egs-catbtn:hover { transform: translateY(-2px); box-shadow: var(--sh); }
.egs-catbtn .egs-icon:last-child { transition: transform .25s; }
.egs-catbtn[aria-expanded="true"] .egs-icon:last-child { transform: rotate(180deg); }

.egs-header__search { flex: 1 1 auto; min-width: 0; }

.egs-search { position: relative; display: flex; align-items: center; background: var(--bg-soft); border: 1.5px solid var(--border); border-radius: var(--pill); transition: border-color .25s, box-shadow .25s, background .25s; }
.egs-search:focus-within { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.egs-search__icon { display: grid; place-items: center; padding-left: 18px; color: var(--muted); }
.egs-search__field { flex: 1; border: none; background: transparent; padding: 15px 14px; font-size: 15px; color: var(--text); outline: none; min-width: 0; }
.egs-search__field::placeholder { color: var(--muted); }
.egs-search__btn { margin: 5px; padding: 11px 24px; border: none; border-radius: var(--pill); background: var(--grad); color: #fff; font-weight: 700; transition: transform .2s, box-shadow .2s; }
.egs-search__btn:hover { transform: translateY(-1px); box-shadow: var(--sh-brand); }

.egs-header__actions { display: flex; align-items: center; gap: 6px; }
.egs-action { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); color: var(--text); transition: background .2s; }
.egs-action:hover { background: var(--bg-soft); color: var(--text); }
.egs-action__meta { display: flex; flex-direction: column; line-height: 1.2; }
.egs-action__sub { font-size: 11.5px; color: var(--muted); }
.egs-action__main { font-size: 14px; font-weight: 700; }
.egs-action--icon { padding: 11px; }
.egs-action__pill, .egs-cart__count {
	position: absolute; top: 2px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px;
	display: grid; place-items: center; border-radius: var(--pill); background: var(--brand);
	color: #fff; font-size: 11px; font-weight: 800; box-shadow: 0 0 0 2px #fff;
}

.egs-cart { gap: 0; }
.egs-cart__inner { display: inline-flex; align-items: center; gap: 11px; }
.egs-cart__icon { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--grad); color: #fff; box-shadow: var(--sh-brand); }
.egs-cart__meta { display: flex; flex-direction: column; line-height: 1.2; }
.egs-cart__label { font-size: 11.5px; color: var(--muted); }
.egs-cart__total { font-size: 14.5px; font-weight: 800; }
.egs-cart__total .amount, .egs-cart__total bdi { color: var(--text); }

.egs-burger { display: none; border: none; background: var(--bg-soft); color: var(--text); width: 46px; height: 46px; border-radius: 13px; place-items: center; }

/* Nav bar */
.egs-navbar { border-top: 1px solid var(--border); }
.egs-navbar__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.egs-menu { display: flex; align-items: center; gap: 4px; }
.egs-menu > li { position: relative; }
.egs-menu > li > a { display: inline-flex; align-items: center; gap: 6px; padding: 16px 16px; font-weight: 600; font-size: 15px; color: var(--text-2); position: relative; }
.egs-menu > li > a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 10px; height: 2px; background: var(--grad); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.egs-menu > li:hover > a, .egs-menu > li.current-menu-item > a { color: var(--text); }
.egs-menu > li:hover > a::after, .egs-menu > li.current-menu-item > a::after { transform: scaleX(1); }
.egs-menu .sub-menu {
	position: absolute; top: calc(100% - 4px); left: 0; min-width: 230px; background: #fff;
	border: 1px solid var(--border); border-radius: var(--r-sm); box-shadow: var(--sh-lg); padding: 10px;
	opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s var(--ease); z-index: 50;
}
.egs-menu li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.egs-menu .sub-menu a { display: block; padding: 10px 14px; border-radius: 10px; font-weight: 600; color: var(--text-2); }
.egs-menu .sub-menu a:hover { background: var(--bg-soft); color: var(--brand-600); }

.egs-navbar__deal { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--sale); padding: 9px 16px; border-radius: var(--pill); background: rgba(239,68,68,.08); }
.egs-navbar__deal:hover { color: var(--sale); background: rgba(239,68,68,.14); }

/* Aside catalog + drawer */
.egs-overlay { position: fixed; inset: 0; background: rgba(7,11,24,.55); backdrop-filter: blur(4px); z-index: 300; opacity: 0; transition: opacity .35s; }
.egs-overlay.is-open { opacity: 1; }

.egs-aside, .egs-drawer {
	position: fixed; top: 0; bottom: 0; left: 0; width: min(380px, 88vw); background: #fff; z-index: 320;
	transform: translateX(-105%); transition: transform .42s var(--ease-out); display: flex; flex-direction: column;
	box-shadow: 30px 0 60px rgba(13,20,38,.18);
}
.egs-aside.is-open, .egs-drawer.is-open { transform: none; }
.egs-aside__head, .egs-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--border); }
.egs-aside__title { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; }
.egs-aside__title .egs-icon { color: var(--brand); }
.egs-aside__close { width: 40px; height: 40px; border: none; background: var(--bg-soft); border-radius: 12px; display: grid; place-items: center; color: var(--text); }
.egs-aside__close:hover { background: var(--border); }
.egs-aside__body, .egs-drawer__body { flex: 1; overflow-y: auto; padding: 14px; }
.egs-catmenu li > a, .egs-drawer__menu li > a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 13px; font-weight: 600; color: var(--text-2); }
.egs-catmenu li > a:hover, .egs-drawer__menu li > a:hover { background: var(--bg-soft); color: var(--brand-600); transform: translateX(4px); }
.egs-catmenu__count { font-size: 12px; color: var(--muted); background: var(--bg-soft-2); padding: 2px 9px; border-radius: var(--pill); }
.egs-aside__foot { display: flex; align-items: center; gap: 14px; padding: 20px 24px; border-top: 1px solid var(--border); background: var(--bg-soft); }
.egs-aside__foot .egs-icon { color: var(--brand); }
.egs-aside__foot strong { display: block; font-size: 14.5px; }
.egs-aside__foot span { font-size: 13px; color: var(--muted); }

.egs-drawer__search { padding: 16px 18px; border-bottom: 1px solid var(--border); }
.egs-drawer__menu { display: flex; flex-direction: column; }
.egs-drawer__label { display: block; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 18px 16px 8px; }

/* =========================================================================
   HERO
   ========================================================================= */
.egs-hero { position: relative; background: radial-gradient(120% 140% at 80% 0%, #11204d 0%, #0a1024 45%, #070b18 100%); color: var(--dark-text); overflow: hidden; }
.egs-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.egs-orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.egs-orb--1 { width: 520px; height: 520px; background: radial-gradient(circle, #2563eb, transparent 70%); top: -120px; right: -60px; }
.egs-orb--2 { width: 420px; height: 420px; background: radial-gradient(circle, #22d3ee, transparent 70%); bottom: -160px; left: -80px; opacity: .4; }
.egs-orb--3 { width: 480px; height: 480px; background: radial-gradient(circle, #2563eb, transparent 70%); top: -140px; right: 10%; opacity: .35; }
.egs-grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 75%); }

.egs-hero__shell { position: relative; padding: 18px 28px 30px; }
.egs-hero__track { position: relative; }
.egs-slide { display: none; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; min-height: 540px; padding: 40px 0; }
.egs-slide.is-active { display: grid; animation: egsSlideIn .7s var(--ease-out); }
@keyframes egsSlideIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.egs-slide__title { font-size: clamp(40px, 6vw, 78px); line-height: 1.02; letter-spacing: -.035em; color: #fff; margin: 0 0 18px; }
.egs-slide__sub { font-size: clamp(16px, 1.5vw, 19px); color: var(--dark-muted); max-width: 520px; margin: 0 0 30px; }
.egs-slide__cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 26px; }
.egs-slide__price { font-size: 18px; font-weight: 800; color: #fff; }
.egs-slide__feat { display: flex; gap: 22px; flex-wrap: wrap; }
.egs-slide__feat li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--dark-muted); }
.egs-slide__feat .egs-icon { color: var(--brand-cyan); }

.egs-slide__visual { position: relative; display: grid; place-items: center; min-height: 380px; }
.egs-slide__device {
	position: relative; width: clamp(260px, 30vw, 380px); aspect-ratio: 1; border-radius: 40px;
	display: grid; place-items: center; color: #fff;
	background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.03));
	border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 40px 80px rgba(0,0,0,.4);
	animation: egsFloat 6s ease-in-out infinite;
}
@keyframes egsFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
.egs-slide__device .egs-icon { width: 140px; height: 140px; stroke-width: 1.2; filter: drop-shadow(0 12px 30px rgba(34,211,238,.5)); }
.egs-slide__glow { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, rgba(34,211,238,.45), transparent 65%); filter: blur(30px); }
.egs-slide__chip { position: absolute; bottom: 8%; right: 4%; background: #fff; color: var(--text); font-weight: 800; padding: 12px 18px; border-radius: var(--pill); box-shadow: var(--sh-lg); animation: egsFloat 6s ease-in-out infinite .8s; }
.egs-slide--b .egs-slide__device .egs-icon { filter: drop-shadow(0 12px 30px rgba(37,99,235,.55)); }
.egs-slide--c .egs-slide__glow { background: radial-gradient(circle, rgba(37,99,235,.5), transparent 65%); }

.egs-hero__dots { display: flex; gap: 10px; padding-top: 6px; }
.egs-bar { width: 46px; height: 6px; padding: 0; border: none; background: rgba(255,255,255,.18); border-radius: var(--pill); overflow: hidden; }
.egs-bar span { display: block; height: 100%; width: 0; background: var(--grad-soft); border-radius: var(--pill); }
.egs-bar.is-active { width: 78px; }
.egs-bar.is-active span { width: 100%; transition: width 6s linear; }

/* =========================================================================
   HIGHLIGHTS
   ========================================================================= */
.egs-highlights { background: var(--bg); border-bottom: 1px solid var(--border); margin-top: -1px; }
.egs-highlights__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.egs-highlight { display: flex; align-items: center; gap: 16px; padding: 26px 24px; }
.egs-highlight + .egs-highlight { border-left: 1px solid var(--border); }
.egs-highlight span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: var(--bg-soft); color: var(--brand); flex: none; }
.egs-highlight strong { display: block; font-size: 15.5px; }
.egs-highlight em { font-style: normal; font-size: 13.5px; color: var(--muted); }

/* =========================================================================
   CATEGORIES
   ========================================================================= */
.egs-cats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.egs-cat {
	position: relative; display: flex; align-items: center; gap: 18px; padding: 22px; border-radius: var(--r);
	background: var(--surface); border: 1px solid var(--border); overflow: hidden;
	transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.egs-cat::before { content: ""; position: absolute; inset: 0; background: var(--grad); opacity: 0; transition: opacity .35s; }
.egs-cat:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: transparent; }
.egs-cat:hover::before { opacity: 1; }
.egs-cat > * { position: relative; z-index: 1; transition: color .35s; }
.egs-cat__media { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 16px; background: var(--bg-soft); overflow: hidden; flex: none; }
.egs-cat__media img { width: 100%; height: 100%; object-fit: cover; }
.egs-cat__glyph { color: var(--brand); }
.egs-cat:hover .egs-cat__media { background: rgba(255,255,255,.18); }
.egs-cat:hover .egs-cat__glyph { color: #fff; }
.egs-cat__body strong { display: block; font-size: 18px; font-weight: 800; }
.egs-cat__body em { font-style: normal; font-size: 13.5px; color: var(--muted); }
.egs-cat:hover .egs-cat__body strong, .egs-cat:hover .egs-cat__body em { color: #fff; }
.egs-cat__go { margin-left: auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bg-soft); color: var(--brand); flex: none; transition: transform .3s; }
.egs-cat:hover .egs-cat__go { background: #fff; transform: translateX(4px); }

/* =========================================================================
   PRODUCT CARDS + carousel
   ========================================================================= */
.egs-products, ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }

/* Neutralise WooCommerce's leftover float-grid + circular sale badge */
.woocommerce ul.products, .woocommerce-page ul.products { display: grid; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product,
ul.products li.product { width: auto; float: none; margin: 0 !important; padding: 0; clear: none; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; content: none; }
.woocommerce ul.products li.product::before { display: none; }
.woocommerce span.onsale, .woocommerce ul.products li.product .onsale, .egs-badge.onsale {
	position: static !important; top: auto !important; right: auto !important; left: auto !important;
	margin: 0 !important; min-height: 0 !important; min-width: 0 !important; height: auto !important;
	width: auto !important; line-height: 1 !important; border-radius: var(--pill) !important;
	padding: 6px 11px !important; font-size: 12px !important; font-weight: 800 !important;
	background: var(--sale) !important; color: #fff !important; display: inline-flex !important;
	align-items: center; text-align: center;
}
/* Single product: place the sale flash neatly over the gallery */
.single-product .woocommerce-product-gallery .egs-badge.onsale, .single-product span.onsale {
	position: absolute !important; top: 16px !important; left: 16px !important; z-index: 5;
	box-shadow: var(--sh-sm);
}
.woocommerce ul.products li.product .price { color: var(--text); font-size: inherit; }
.woocommerce ul.products li.product a img { margin: 0; }

.egs-card {
	position: relative; display: flex; flex-direction: column; background: var(--surface);
	border: 1px solid var(--border); border-radius: var(--r); overflow: hidden;
	transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.egs-card:hover { transform: translateY(-8px); box-shadow: var(--sh-lg); border-color: transparent; }

.egs-card__media { position: relative; aspect-ratio: 1; background: var(--bg-soft); overflow: hidden; }
.egs-card__imglink { display: block; width: 100%; height: 100%; }
.egs-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .5s; }
.egs-card__img--main { transform: scale(1); }
.egs-card:hover .egs-card__img--main { transform: scale(1.06); }
.egs-card__img--hover { opacity: 0; }
.egs-card:hover .egs-card__img--hover { opacity: 1; transform: scale(1.06); }
.egs-card__shine { position: absolute; top: 0; left: -75%; width: 50%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-18deg); opacity: 0; }
.egs-card:hover .egs-card__shine { animation: egsShine .9s var(--ease); }
@keyframes egsShine { 0% { left: -75%; opacity: 0; } 30% { opacity: 1; } 100% { left: 130%; opacity: 0; } }

.egs-card__badges { position: absolute; top: 14px; left: 14px; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.egs-badge { display: inline-flex; align-items: center; font-size: 12px; font-weight: 800; letter-spacing: .02em; padding: 6px 11px; border-radius: var(--pill); color: #fff; box-shadow: var(--sh-sm); line-height: 1; }
.egs-badge--sale, .onsale { background: var(--sale); }
.egs-badge--hot  { background: var(--hot); }
.egs-badge--new  { background: var(--new); }
.egs-badge--out  { background: #64748b; }

.egs-card__actions { position: absolute; top: 14px; right: 14px; z-index: 3; display: flex; flex-direction: column; gap: 9px; }
.egs-card__act { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--text); box-shadow: var(--sh); opacity: 0; transform: translateX(14px); transition: all .3s var(--ease); position: relative; }
.egs-card__act:nth-child(2) { transition-delay: .05s; }
.egs-card__act:nth-child(3) { transition-delay: .1s; }
.egs-card:hover .egs-card__act { opacity: 1; transform: none; }
.egs-card__act:hover { background: var(--brand); color: #fff; transform: scale(1.08); }
.egs-card__act[data-tip]::after { content: attr(data-tip); position: absolute; right: 52px; top: 50%; transform: translateY(-50%) scale(.9); background: var(--text); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.egs-card__act:hover::after { opacity: 1; transform: translateY(-50%) scale(1); }
.egs-card__act.is-active { background: var(--sale); color: #fff; }

.egs-card__add { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 3; transform: translateY(130%); opacity: 0; transition: all .35s var(--ease); }
.egs-card:hover .egs-card__add { transform: none; opacity: 1; }
.egs-card__add .button, .egs-card__add a.button {
	display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
	background: var(--text); color: #fff; font-weight: 700; font-size: 14.5px; padding: 14px 16px;
	border-radius: var(--r-sm); border: none; transition: background .25s, transform .2s;
}
.egs-card__add .button::before { content: ""; }
.egs-card__add .button:hover { background: var(--brand); color: #fff; }
.egs-card__add .added_to_cart { display: none; }
.egs-card__add .button.loading { opacity: .7; }
.egs-card__add .button.added::after { content: "✓"; }

.egs-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; flex: 1; }
.egs-card__cat { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-600); }
.egs-card__title { font-size: 16.5px; font-weight: 700; color: var(--text); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.egs-card__title:hover { color: var(--brand-600); }
.egs-card__rating { display: flex; align-items: center; gap: 8px; }
.egs-stars { display: inline-flex; gap: 1px; color: var(--star); }
.egs-stars .egs-icon { fill: currentColor; stroke: none; width: 15px; height: 15px; }
.egs-card__rcount { font-size: 12.5px; color: var(--muted); }
.egs-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; }
.egs-card__price { font-size: 20px; font-weight: 800; color: var(--text); }
.egs-card__price del { color: var(--muted); font-weight: 600; font-size: 14.5px; margin-right: 6px; opacity: .8; }
.egs-card__price ins { text-decoration: none; color: var(--sale); }
.egs-card__price .amount { color: inherit; }
.egs-card__stock { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--new); }

/* Carousel */
.egs-carousel { position: relative; }
.egs-carousel .products { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: calc((100% - 3 * 24px) / 4); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 8px; scrollbar-width: none; }
.egs-carousel .products::-webkit-scrollbar { display: none; }
.egs-carousel .products > li { scroll-snap-align: start; }
.egs-carousel__nav { position: absolute; top: 38%; width: 50px; height: 50px; border-radius: 50%; border: none; background: #fff; color: var(--text); box-shadow: var(--sh-lg); display: grid; place-items: center; z-index: 5; transition: transform .2s, background .2s, color .2s; }
.egs-carousel__nav:hover { background: var(--brand); color: #fff; }
.egs-carousel__nav--prev { left: -22px; transform: rotate(180deg); }
.egs-carousel__nav--next { right: -22px; }
.egs-carousel__nav--prev:hover { transform: rotate(180deg) scale(1.06); }
.egs-carousel__nav--next:hover { transform: scale(1.06); }
.egs-carousel__nav[disabled] { opacity: 0; pointer-events: none; }

/* =========================================================================
   PROMO BAND
   ========================================================================= */
.egs-promo { position: relative; margin: 0; padding: 0; }
.egs-promo__bg { position: absolute; inset: 0; overflow: hidden; }
.egs-promo__in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; background: radial-gradient(120% 160% at 0% 0%, #14245a, #0a1024 60%); border-radius: var(--r-xl); padding: 56px clamp(28px, 5vw, 64px); color: #fff; overflow: hidden; margin: 70px auto; box-shadow: var(--sh-lg); }
.egs-promo__copy { max-width: 620px; }
.egs-promo__copy h2 { font-size: clamp(26px, 3vw, 40px); color: #fff; margin: 0 0 14px; }
.egs-promo__copy p { color: var(--dark-muted); font-size: 17px; margin: 0 0 26px; }
.egs-promo__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.egs-promo__countdown { display: flex; gap: 14px; }
.egs-cd { display: grid; place-items: center; width: 84px; height: 90px; border-radius: var(--r-sm); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.egs-cd span { font-size: 32px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }
.egs-cd em { font-style: normal; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dark-muted); }

/* =========================================================================
   TABS
   ========================================================================= */
.egs-tabs__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.egs-tabs__nav { display: inline-flex; gap: 6px; background: var(--bg-soft); padding: 6px; border-radius: var(--pill); }
.egs-tabs__nav button { border: none; background: transparent; padding: 11px 22px; border-radius: var(--pill); font-weight: 700; font-size: 14.5px; color: var(--muted); transition: all .25s var(--ease); }
.egs-tabs__nav button.is-active { background: #fff; color: var(--text); box-shadow: var(--sh-sm); }
.egs-tabs__panel { display: none; }
.egs-tabs__panel.is-active { display: block; animation: egsFade .5s var(--ease-out); }
@keyframes egsFade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* =========================================================================
   SPLIT CARDS
   ========================================================================= */
.egs-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.egs-splitcard { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 44px; border-radius: var(--r-lg); overflow: hidden; min-height: 240px; color: #fff; transition: transform .4s var(--ease), box-shadow .4s; }
.egs-splitcard:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); color: #fff; }
.egs-splitcard--dark { background: radial-gradient(120% 160% at 100% 0%, #1a2c63, #0a1024 70%); }
.egs-splitcard--accent { background: var(--grad); }
.egs-splitcard__body { position: relative; z-index: 1; max-width: 60%; }
.egs-splitcard__body h3 { font-size: 28px; color: #fff; margin: 0 0 10px; }
.egs-splitcard__body p { color: rgba(255,255,255,.82); margin: 0 0 18px; }
.egs-splitcard .egs-textlink { color: #fff; }
.egs-splitcard__glyph { position: absolute; right: -10px; bottom: -20px; color: rgba(255,255,255,.16); transition: transform .5s var(--ease); }
.egs-splitcard:hover .egs-splitcard__glyph { transform: scale(1.08) rotate(-6deg); }
.egs-splitcard__glyph .egs-icon { width: 180px; height: 180px; }

/* =========================================================================
   TESTIMONIALS
   ========================================================================= */
.egs-testi__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.egs-quote { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 30px; box-shadow: var(--sh-sm); }
.egs-quote .egs-stars { margin-bottom: 16px; }
.egs-quote blockquote { margin: 0 0 22px; font-size: 17px; line-height: 1.6; color: var(--text-2); font-weight: 500; }
.egs-quote figcaption { display: flex; align-items: center; gap: 12px; }
.egs-quote__av { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; }
.egs-quote figcaption strong { display: block; font-size: 15px; }
.egs-quote figcaption em { font-style: normal; font-size: 13px; color: var(--muted); }

/* =========================================================================
   BRANDS
   ========================================================================= */
.egs-brands { padding: 64px 0; }
.egs-brands__label { text-align: center; color: var(--muted); font-weight: 600; margin: 0 0 26px; }
.egs-brands__row { display: flex; align-items: center; justify-content: center; gap: 56px; flex-wrap: wrap; }
.egs-brand { font-size: 24px; font-weight: 900; letter-spacing: -.02em; color: var(--text); opacity: .35; filter: grayscale(1); transition: opacity .3s, filter .3s, transform .3s; }
.egs-brand:hover { opacity: 1; filter: none; transform: translateY(-2px); }

/* =========================================================================
   NEWSLETTER
   ========================================================================= */
.egs-newsletter { padding: 0 0 84px; }
.egs-newsletter__in { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; background: radial-gradient(120% 180% at 100% 0%, #14245a, #0a1024 65%); border-radius: var(--r-xl); padding: 56px clamp(28px, 5vw, 64px); color: #fff; }
.egs-newsletter__copy { max-width: 540px; }
.egs-newsletter__copy h2 { font-size: clamp(26px, 3vw, 38px); color: #fff; margin: 0 0 12px; }
.egs-newsletter__copy p { color: var(--dark-muted); margin: 0; }
.egs-newsletter__form { display: flex; gap: 12px; flex-wrap: wrap; }
.egs-field { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: var(--pill); padding: 0 6px 0 18px; min-width: 280px; }
.egs-field .egs-icon { color: var(--muted); }
.egs-field input { border: none; outline: none; padding: 16px 8px; font-size: 15px; background: transparent; flex: 1; min-width: 0; color: var(--text); }

/* =========================================================================
   ASSURE STRIP + FOOTER
   ========================================================================= */
.egs-assure { background: var(--bg-soft); border-top: 1px solid var(--border); }
.egs-assure__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 40px 0; }
.egs-assure__item { display: flex; align-items: center; gap: 14px; }
.egs-assure__ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: #fff; color: var(--brand); box-shadow: var(--sh-sm); flex: none; }
.egs-assure__item strong { display: block; font-size: 15.5px; }
.egs-assure__item span { font-size: 13.5px; color: var(--muted); }

.egs-footer { background: var(--dark); color: var(--dark-muted); padding: 70px 0 30px; }
.egs-footer .egs-logo { color: #fff; }
.egs-footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid var(--dark-border); }
.egs-footer__about { margin: 20px 0; font-size: 14.5px; line-height: 1.7; max-width: 320px; }
.egs-footer__contact { display: flex; flex-direction: column; gap: 10px; }
.egs-footer__contact a, .egs-footer__contact span { display: inline-flex; align-items: center; gap: 10px; color: var(--dark-muted); font-size: 14px; }
.egs-footer__contact a:hover { color: #fff; }
.egs-footer__contact .egs-icon { color: var(--brand-cyan); }
.egs-fwidget__title, .egs-footer__col h4 { color: #fff; font-size: 16px; font-weight: 800; margin: 0 0 18px; }
.egs-footer__links { display: flex; flex-direction: column; gap: 11px; }
.egs-footer__links a { color: var(--dark-muted); font-size: 14.5px; }
.egs-footer__links a:hover { color: #fff; padding-left: 4px; }
.egs-footer__news p { font-size: 14px; margin: 0 0 16px; }
.egs-mini-news { display: flex; background: rgba(255,255,255,.06); border: 1px solid var(--dark-border); border-radius: var(--pill); padding: 5px; margin-bottom: 22px; }
.egs-mini-news input { flex: 1; border: none; background: transparent; padding: 11px 16px; color: #fff; outline: none; min-width: 0; }
.egs-mini-news input::placeholder { color: var(--dark-muted); }
.egs-mini-news button { border: none; width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; flex: none; }
.egs-pay span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.egs-pay__marks { display: flex; gap: 8px; flex-wrap: wrap; }
.egs-pay__marks i { font-style: normal; font-size: 11px; font-weight: 800; color: #fff; background: rgba(255,255,255,.08); border: 1px solid var(--dark-border); padding: 7px 10px; border-radius: 8px; }
.egs-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 26px; flex-wrap: wrap; font-size: 14px; }
.egs-footer__legal { display: flex; gap: 22px; }
.egs-footer__legal a { color: var(--dark-muted); }
.egs-footer__legal a:hover { color: #fff; }

.egs-totop { position: fixed; right: 24px; bottom: 24px; width: 50px; height: 50px; border-radius: 50%; border: none; background: var(--text); color: #fff; display: grid; place-items: center; transform: rotate(-90deg) translateY(80px); opacity: 0; box-shadow: var(--sh-lg); z-index: 150; transition: opacity .3s, transform .3s; }
.egs-totop.is-show { opacity: 1; transform: rotate(-90deg); }
.egs-totop:hover { background: var(--brand); }

/* =========================================================================
   WOOCOMMERCE — page hero, archive, single, cart, account
   ========================================================================= */
.egs-pagehero { background: radial-gradient(120% 200% at 80% 0%, #11204d, #0a1024 60%); color: #fff; padding: 56px 0 50px; }
.egs-pagehero__title { font-size: clamp(30px, 4vw, 48px); margin: 0 0 14px; }
.egs-pagehero .woocommerce-breadcrumb, .egs-breadcrumb { color: var(--dark-muted); font-size: 14px; }
.egs-pagehero a, .egs-breadcrumb a { color: var(--dark-muted); }
.egs-pagehero a:hover { color: #fff; }
.egs-crumb-sep { margin: 0 10px; opacity: .5; }

.egs-main { padding: 56px 0 84px; }
.woocommerce .egs-main, .woocommerce-page .egs-main { padding: 0 0 84px; }

/* Archive header */
.woocommerce-products-header { background: radial-gradient(120% 200% at 80% 0%, #11204d, #0a1024 60%); color: #fff; padding: 56px 0 50px; margin-bottom: 40px; }
.woocommerce-products-header .woocommerce-products-header__title { font-size: clamp(30px, 4vw, 48px); color: #fff; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.woocommerce-products-header .term-description { max-width: var(--container); margin: 12px auto 0; padding: 0 28px; color: var(--dark-muted); }

.egs-shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 30px; flex-wrap: wrap; }
.woocommerce-result-count { margin: 0; color: var(--muted); font-size: 14.5px; }
.woocommerce-ordering select, .egs-shop select { border: 1.5px solid var(--border-2); border-radius: var(--pill); padding: 12px 40px 12px 18px; font-weight: 600; font-size: 14.5px; background-color: #fff; color: var(--text); appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b7590' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='4 6 8 10 12 6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; cursor: pointer; }
.woocommerce-ordering select:focus { border-color: var(--brand); outline: none; }

.woocommerce-pagination ul, .egs-pagination .page-numbers { display: flex; gap: 8px; justify-content: center; padding: 50px 0 0; border: none; flex-wrap: wrap; }
.woocommerce-pagination ul li, .egs-pagination li { border: none; margin: 0; }
.woocommerce-pagination a.page-numbers, .woocommerce-pagination span.page-numbers, .egs-pagination .page-numbers {
	display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 14px; border-radius: 13px;
	background: #fff; border: 1.5px solid var(--border); color: var(--text); font-weight: 700; line-height: 1;
}
.woocommerce-pagination .page-numbers.current, .egs-pagination .page-numbers.current { background: var(--grad); color: #fff; border-color: transparent; }
.woocommerce-pagination a.page-numbers:hover { border-color: var(--brand); color: var(--brand); }

/* WooCommerce notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews {
	border: 1px solid var(--border); border-top: 3px solid var(--brand); border-radius: var(--r-sm);
	background: var(--bg-soft); padding: 18px 22px 18px 22px; box-shadow: var(--sh-sm); color: var(--text-2);
	display: flex; align-items: center; gap: 12px; list-style: none;
}
.woocommerce-message { border-top-color: var(--new); }
.woocommerce-error { border-top-color: var(--sale); }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { position: static; margin: 0; color: var(--brand); }
.woocommerce-message .button, .woocommerce-info .button { margin-left: auto; }

/* Buttons (global Woo) */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .woocommerce .button {
	background: var(--text); color: #fff; border-radius: var(--pill); font-weight: 700; padding: 14px 26px;
	border: none; transition: transform .2s, box-shadow .2s, background .2s; font-size: 15px;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce .button:hover, .woocommerce #respond input#submit:hover {
	background: var(--brand); color: #fff; transform: translateY(-2px); box-shadow: var(--sh-brand);
}
.woocommerce .button.alt, .woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .single_add_to_cart_button {
	background: var(--grad) !important; box-shadow: var(--sh-brand);
}
.woocommerce .button.alt:hover { transform: translateY(-2px); }

/* Price */
.woocommerce .price, .price { color: var(--text); font-weight: 800; }
.price del { color: var(--muted); font-weight: 600; }
.price ins { text-decoration: none; color: var(--sale); }

/* =========================================================================
   SINGLE PRODUCT
   ========================================================================= */
.single-product div.product { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; }
.single-product .woocommerce-product-gallery { position: relative; }
.single-product .woocommerce-product-gallery__wrapper img { border-radius: var(--r); }
.single-product .woocommerce-product-gallery .flex-viewport { border-radius: var(--r); box-shadow: var(--sh); }
.single-product .product .summary { margin: 0; }
.single-product .product_title { font-size: clamp(26px, 3vw, 40px); margin: 0 0 14px; }
.single-product .woocommerce-product-rating { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.single-product p.price, .single-product .summary .price { font-size: 30px; margin: 6px 0 22px; }
.single-product .woocommerce-product-details__short-description { color: var(--text-2); font-size: 16px; line-height: 1.7; margin-bottom: 26px; }
.single-product form.cart { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.single-product .quantity { display: inline-flex; align-items: center; border: 1.5px solid var(--border-2); border-radius: var(--pill); overflow: hidden; }
.single-product .quantity input.qty { width: 64px; border: none; text-align: center; font-weight: 700; font-size: 16px; padding: 15px 6px; -moz-appearance: textfield; }
.single-product .quantity input.qty::-webkit-outer-spin-button, .single-product .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; }
.single-product .single_add_to_cart_button { padding: 16px 36px; font-size: 16px; border-radius: var(--pill); }
.egs-product-assure { display: flex; gap: 22px; flex-wrap: wrap; margin: 22px 0; padding-top: 20px; border-top: 1px solid var(--border); }
.egs-product-assure span { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.egs-product-assure .egs-icon { color: var(--brand); }
.single-product .product_meta { font-size: 14px; color: var(--muted); padding-top: 18px; border-top: 1px solid var(--border); }
.single-product .product_meta > span { display: block; margin-bottom: 6px; }
.single-product .product_meta a { color: var(--brand-600); }

/* Single-product tabs are styled in single-product.css (.egs-single scope). */
.woocommerce-Reviews .comment-form-rating .stars a { color: var(--star); }

.related.products, .upsells.products { grid-column: 1 / -1; margin-top: 70px; }
.related.products > h2, .upsells.products > h2, .cross-sells > h2 { font-size: 28px; margin-bottom: 30px; }

/* =========================================================================
   CART + CHECKOUT
   ========================================================================= */
.egs-freeship { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 18px 22px; margin-bottom: 26px; }
.egs-freeship__msg { font-size: 14.5px; color: var(--text-2); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.egs-freeship__msg strong { color: var(--brand-600); }
.egs-freeship__track { height: 10px; border-radius: var(--pill); background: var(--border); overflow: hidden; }
.egs-freeship__fill { display: block; height: 100%; background: var(--grad); border-radius: var(--pill); transition: width .6s var(--ease); }
.egs-freeship.is-complete .egs-freeship__fill { background: linear-gradient(90deg, var(--new), #34d399); }

.woocommerce table.shop_table { border: 1px solid var(--border); border-radius: var(--r); border-collapse: separate; overflow: hidden; }
.woocommerce table.shop_table th { background: var(--bg-soft); padding: 18px; font-weight: 800; }
.woocommerce table.shop_table td { padding: 18px; border-top: 1px solid var(--border); }
.woocommerce .cart_item img { border-radius: 12px; }
.woocommerce .cart-collaterals .cart_totals, .woocommerce-checkout #order_review { border: 1px solid var(--border); border-radius: var(--r); padding: 26px; background: #fff; box-shadow: var(--sh-sm); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select, .select2-container .select2-selection {
	border: 1.5px solid var(--border-2); border-radius: var(--r-sm); padding: 13px 16px; font-size: 15px; min-height: 50px;
}
.woocommerce form .form-row input.input-text:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.woocommerce #payment, .woocommerce-checkout #payment { background: var(--bg-soft); border-radius: var(--r); }
.woocommerce-info, .cart-empty { border-radius: var(--r-sm); }

/* My account */
.woocommerce-account .woocommerce-MyAccount-navigation ul { display: flex; flex-direction: column; gap: 6px; }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: 13px 18px; border-radius: var(--r-sm); font-weight: 700; color: var(--text-2); }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a, .woocommerce-account .woocommerce-MyAccount-navigation li a:hover { background: var(--bg-soft); color: var(--brand-600); }
.woocommerce-form-login, .woocommerce-form-register { border: 1px solid var(--border); border-radius: var(--r); padding: 30px; box-shadow: var(--sh-sm); }

/* =========================================================================
   BLOG / PAGE / EMPTY
   ========================================================================= */
.egs-postgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.egs-postcard { background: #fff; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.egs-postcard:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.egs-postcard__media { display: block; aspect-ratio: 16/10; background: var(--bg-soft); overflow: hidden; }
.egs-postcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.egs-postcard:hover .egs-postcard__media img { transform: scale(1.05); }
.egs-postcard__ph { display: grid; place-items: center; height: 100%; color: var(--brand); opacity: .4; }
.egs-postcard__body { padding: 24px; }
.egs-postcard__date { font-size: 13px; color: var(--muted); font-weight: 600; }
.egs-postcard__title { font-size: 19px; margin: 8px 0 10px; }
.egs-postcard__body p { color: var(--muted); font-size: 14.5px; margin: 0 0 16px; }

.egs-article { max-width: 820px; margin: 0 auto; }
.egs-article__media img { border-radius: var(--r); margin-bottom: 30px; }
.egs-article__content { font-size: 17px; line-height: 1.8; color: var(--text-2); }
.egs-article__content h2, .egs-article__content h3 { margin-top: 1.6em; }
.egs-article__content img { border-radius: var(--r-sm); }

.egs-empty { text-align: center; padding: 70px 20px; max-width: 480px; margin: 0 auto; }
.egs-empty__ic { display: inline-grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: var(--bg-soft); color: var(--brand); margin-bottom: 22px; }
.egs-empty h2 { font-size: 26px; }
.egs-empty p { color: var(--muted); margin-bottom: 24px; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1200px) {
	.egs-products, ul.products { grid-template-columns: repeat(3, 1fr); }
	.egs-carousel .products { grid-auto-columns: calc((100% - 2 * 24px) / 3); }
	.egs-footer__top { grid-template-columns: 1fr 1fr 1fr; }
	.egs-footer__brandcol { grid-column: 1 / -1; }
	.egs-footer__news { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
	.egs-action__meta { display: none; }
	.egs-cart__meta { display: none; }
	.egs-navbar { display: none; }
	.egs-cats__grid { grid-template-columns: repeat(2, 1fr); }
	.single-product div.product { grid-template-columns: 1fr; gap: 32px; }
	.egs-testi__grid { grid-template-columns: 1fr; }
	.egs-postgrid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
	:root { --header-h: 70px; }
	.egs-burger { display: grid; }
	.egs-catbtn span, .egs-catbtn .egs-icon:last-child { display: none; }
	.egs-catbtn { padding: 12px; }
	.egs-header__search { display: none; }
	.egs-slide { grid-template-columns: 1fr; text-align: center; min-height: auto; gap: 20px; }
	.egs-slide__visual { order: -1; min-height: 260px; }
	.egs-slide__sub { margin-left: auto; margin-right: auto; }
	.egs-slide__cta, .egs-slide__feat { justify-content: center; }
	.egs-highlights__grid { grid-template-columns: repeat(2, 1fr); }
	.egs-highlight:nth-child(2n) { border-left: 1px solid var(--border); }
	.egs-highlight:nth-child(n+3) { border-top: 1px solid var(--border); }
	.egs-products, ul.products { grid-template-columns: repeat(2, 1fr); gap: 16px; }
	.egs-carousel .products { grid-auto-columns: 78%; }
	.egs-carousel__nav { display: none; }
	.egs-split { grid-template-columns: 1fr; }
	.egs-assure__grid { grid-template-columns: repeat(2, 1fr); }
	.egs-promo__in, .egs-newsletter__in { flex-direction: column; align-items: flex-start; text-align: left; }
	.egs-section { padding: 56px 0; }
	.egs-card__actions { flex-direction: row; }
	.egs-card__act { opacity: 1; transform: none; }
	.egs-card__add { position: static; transform: none; opacity: 1; padding: 0 18px 16px; }
}

@media (max-width: 560px) {
	.container { padding: 0 18px; }
	.egs-topbar__right { display: none; }
	.egs-logo__text { display: none; }
	.egs-cats__grid { grid-template-columns: 1fr; }
	.egs-footer__top { grid-template-columns: 1fr 1fr; }
	.egs-postgrid { grid-template-columns: 1fr; }
	.egs-promo__countdown { gap: 8px; }
	.egs-cd { width: 68px; height: 78px; }
	.egs-cd span { font-size: 26px; }
	.egs-slide__title { font-size: 36px; }
	.egs-newsletter__form, .egs-field { width: 100%; }
}

/* =========================================================================
   GUTENBERG EDITABLE HOMEPAGE (block patterns)
   ========================================================================= */
.egs-blockhome { width: 100%; }
.egs-blockhome > * { margin-block: 0; }
.egs-container { max-width: var(--container); margin-inline: auto; padding-inline: 28px; }

/* generic editable section spacing */
.egs-block { padding-block: 84px; }
.egs-section-block.egs-section-soft, .egs-block.egs-section-soft { background: var(--bg-soft); }
.egs-block .egs-sectitle { margin-bottom: 36px; }
.egs-block .wp-block-shortcode { margin: 0; }

/* core button -> premium button */
.egs-block .wp-block-button.egs-btn .wp-block-button__link,
.egs-blockhome .wp-block-button.egs-btn .wp-block-button__link {
	display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15.5px;
	padding: 16px 28px; border-radius: var(--pill); border: 1.5px solid transparent; transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.wp-block-button.egs-btn--primary .wp-block-button__link { background: var(--grad); color: #fff; box-shadow: var(--sh-brand); }
.wp-block-button.egs-btn--primary .wp-block-button__link:hover { transform: translateY(-3px); box-shadow: 0 24px 50px rgba(37,99,235,.42); }
.wp-block-button.egs-btn--ghost .wp-block-button__link { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.wp-block-button.egs-btn--ghost .wp-block-button__link:hover { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.6); }

/* HERO (editable) */
.egs-hero-block { position: relative; overflow: hidden; padding-block: 90px; color: var(--dark-text);
	background: radial-gradient(120% 140% at 80% 0%, #11204d 0%, #0a1024 45%, #070b18 100%); }
.egs-hero-block::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; top: -120px; right: -40px; background: radial-gradient(circle, #2563eb, transparent 70%); filter: blur(60px); opacity: .55; pointer-events: none; }
.egs-hero-block::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; bottom: -160px; left: -80px; background: radial-gradient(circle, #22d3ee, transparent 70%); filter: blur(60px); opacity: .4; pointer-events: none; }
.egs-hero-block .egs-container { position: relative; z-index: 1; }
.egs-hero-cols { align-items: center; gap: 40px; }
.egs-hero-title { font-size: clamp(40px, 6vw, 74px); line-height: 1.03; letter-spacing: -.035em; color: #fff; margin: 8px 0 18px; }
.egs-hero-sub { font-size: clamp(16px, 1.5vw, 19px); color: var(--dark-muted); max-width: 520px; margin: 0 0 28px; }
.egs-hero-btns { gap: 14px; }
.egs-hero-visual { position: relative; min-height: 360px; border-radius: 40px; display: grid; place-items: center;
	background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.18);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 40px 80px rgba(0,0,0,.4); }
.egs-hero-visual::after { content: "🎧"; font-size: 130px; line-height: 1; filter: drop-shadow(0 18px 40px rgba(34,211,238,.55)); animation: egsFloat 6s ease-in-out infinite; }
.egs-hero-chip { position: absolute; bottom: 22px; right: 22px; background: #fff; color: var(--text); font-weight: 800; padding: 11px 18px; border-radius: var(--pill); box-shadow: var(--sh-lg); z-index: 2; }

/* HIGHLIGHTS (editable) */
.egs-highlights-block { padding-block: 0; border-bottom: 1px solid var(--border); }
.egs-hl-cols { gap: 0 !important; }
.egs-hl-cols .wp-block-column { padding: 28px 24px; }
.egs-hl-cols .wp-block-column + .wp-block-column { border-left: 1px solid var(--border); }
.egs-hl-t { font-size: 16px; margin: 0 0 4px; }
.egs-hl-s { font-size: 13.5px; color: var(--muted); margin: 0; }

/* PROMO (editable) */
.egs-promowrap { padding-block: 70px; }
.egs-promo-block { background: radial-gradient(120% 160% at 0% 0%, #14245a, #0a1024 60%); border-radius: var(--r-xl); padding: clamp(36px, 5vw, 64px); color: #fff; box-shadow: var(--sh-lg); }
.egs-promo-title { font-size: clamp(26px, 3vw, 40px); color: #fff; max-width: 760px; margin: 6px 0 14px; }
.egs-promo-sub { color: var(--dark-muted); font-size: 17px; max-width: 620px; margin: 0 0 26px; }

/* NEWSLETTER (editable) */
.egs-newswrap { padding-block: 0 84px; }
.egs-news-block { background: radial-gradient(120% 180% at 100% 0%, #14245a, #0a1024 65%); border-radius: var(--r-xl); padding: clamp(36px, 5vw, 64px); color: #fff; text-align: center; }
.egs-news-title { font-size: clamp(26px, 3vw, 38px); color: #fff; margin: 6px 0 12px; }
.egs-news-sub { color: var(--dark-muted); max-width: 600px; margin: 0 auto 24px; }
.egs-news-block .wp-block-buttons { justify-content: center; }

/* TESTIMONIALS (editable) */
.egs-quote-cols { gap: 24px; margin-top: 8px; }
.egs-quote-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 30px; box-shadow: var(--sh-sm); height: 100%; }
.egs-quote-stars { color: var(--star); font-size: 18px; letter-spacing: 3px; margin: 0 0 12px; }
.egs-quote-card p { color: var(--text-2); }
.egs-quote-name { font-weight: 700; color: var(--text) !important; font-size: 14px; margin-top: 16px !important; }

/* WooCommerce [product_categories] shortcode -> premium cards */
.woocommerce ul.products li.product-category { text-align: center; }
.woocommerce ul.products li.product-category a { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.woocommerce ul.products li.product-category a:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.woocommerce ul.products li.product-category img { width: 100%; aspect-ratio: 1; object-fit: cover; margin: 0; background: var(--bg-soft); }
.woocommerce ul.products li.product-category h2.woocommerce-loop-category__title { font-size: 17px; font-weight: 800; padding: 18px 16px 20px; margin: 0; color: var(--text); }
.woocommerce ul.products li.product-category .count { display: block; color: var(--muted); font-size: 13px; font-weight: 600; background: none; padding: 2px 0 0; }

/* Editor canvas niceties */
.editor-styles-wrapper .egs-sectitle { color: var(--brand-600); }
.editor-styles-wrapper .egs-hero-title, .editor-styles-wrapper .egs-promo-title, .editor-styles-wrapper .egs-news-title { color: #fff; }

@media (max-width: 781px) {
	.egs-hl-cols .wp-block-column + .wp-block-column { border-left: none; border-top: 1px solid var(--border); }
	.egs-hero-visual { min-height: 280px; margin-top: 18px; }
	.egs-block { padding-block: 56px; }
}

/* =========================================================================
   PREMIUM ARCHIVE / SHOP — filter sidebar + grid + mobile drawer
   ========================================================================= */
.egs-pagehero--shop .woocommerce-breadcrumb { margin-bottom: 14px; }
.egs-pagehero__desc { color: var(--dark-muted); max-width: 720px; margin-top: 12px; }

.egs-archive { display: grid; grid-template-columns: 288px 1fr; gap: 38px; align-items: start; }

/* ---- toolbar ---- */
.egs-shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.egs-archive__main .woocommerce-result-count { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---- product grid (3-up beside the sidebar) ---- */
.egs-archive__main ul.products { grid-template-columns: repeat(3, 1fr); }

/* ---- sidebar ---- */
.egs-archive__side { position: sticky; top: calc(var(--header-h) + 16px); }
.egs-archive__sidehead { display: none; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); font-weight: 800; }
.egs-archive__sidehead span { display: inline-flex; align-items: center; gap: 9px; }
.egs-archive__filters { display: flex; flex-direction: column; }

.egs-fwidget { padding: 22px 0; border-bottom: 1px solid var(--border); }
.egs-fwidget:first-child { padding-top: 0; }
.egs-fwidget__title { font-size: 15px; font-weight: 800; letter-spacing: -.01em; color: var(--text); margin: 0 0 16px; }

/* filter lists (layered nav, categories, rating, stock) */
.egs-fwidget ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.egs-fwidget ul li { margin: 0; padding: 0; }
.egs-fwidget ul li a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 11px; color: var(--text-2); font-size: 14.5px; font-weight: 500; transition: background .2s, color .2s, transform .15s; }
.egs-fwidget ul li a:hover { background: var(--bg-soft); color: var(--brand-600); transform: translateX(2px); }
.egs-fwidget ul li .count { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--bg-soft); padding: 2px 9px; border-radius: 999px; }
.egs-fwidget ul li.chosen > a, .egs-fwidget ul li.woocommerce-widget-layered-nav-list__item--chosen > a, .egs-fwidget ul li.cat-item.current-cat > a { color: var(--brand-600); font-weight: 700; }
/* checkbox-style marker for layered nav */
.woocommerce-widget-layered-nav-list__item a::before { content: ""; width: 18px; height: 18px; border: 1.5px solid var(--border-2); border-radius: 6px; flex: none; transition: all .2s; }
.woocommerce-widget-layered-nav-list__item.chosen a::before, .woocommerce-widget-layered-nav-list__item--chosen a::before { background: var(--brand); border-color: var(--brand); box-shadow: inset 0 0 0 2px #fff; }

/* category list (no checkbox) */
.product-categories li a::before { display: none; }
.product-categories .children { margin-left: 12px; padding-left: 10px; border-left: 1px solid var(--border); }

/* availability */
.egs-stockfilter__box { width: 18px; height: 18px; border: 1.5px solid var(--border-2); border-radius: 6px; display: grid; place-items: center; flex: none; color: #fff; }
.egs-stockfilter li.egs-chosen .egs-stockfilter__box { background: var(--brand); border-color: var(--brand); }

/* rating filter stars */
.egs-fwidget .star-rating { font-size: 15px; color: var(--star); margin: 0; }
.woocommerce .widget_rating_filter ul li a { padding: 8px 10px; }

/* active filters (chips) */
.egs-fwidget--active_filters .woocommerce-widget-layered-nav-list, .widget_layered_nav_filters ul { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.widget_layered_nav_filters ul li, .egs-fwidget--active_filters li { }
.widget_layered_nav_filters ul li a, .egs-fwidget--active_filters li a { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px 6px 28px !important; position: relative; font-weight: 600; font-size: 13px; }
.widget_layered_nav_filters ul li a::before { content: "✕"; position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: auto; height: auto; border: none; color: var(--sale); font-weight: 800; }
.widget_layered_nav_filters ul li a:hover { background: #fff; }

/* ---- price slider (jQuery UI) ---- */
.price_slider_wrapper { padding-top: 4px; }
.price_slider.ui-slider { position: relative; height: 5px; background: var(--border); border-radius: 999px; margin: 14px 8px 22px; border: none; }
.price_slider .ui-slider-range { position: absolute; height: 100%; background: var(--grad); border-radius: 999px; }
.price_slider .ui-slider-handle { position: absolute; width: 18px; height: 18px; margin-left: -9px; top: -7px; background: #fff; border: 2px solid var(--brand); border-radius: 50%; box-shadow: var(--sh); cursor: grab; outline: none; }
.price_slider .ui-slider-handle:active { cursor: grabbing; }
.price_slider_amount { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.price_slider_amount .price_label { order: 1; width: 100%; font-size: 14px; color: var(--text-2); font-weight: 600; margin-bottom: 12px; }
.price_slider_amount .price_label span { color: var(--brand-600); font-weight: 800; }
.price_slider_amount input[type="text"] { display: none; }
.price_slider_amount .button { order: 2; background: var(--text) !important; color: #fff !important; border-radius: 999px !important; padding: 11px 24px !important; font-size: 14px !important; font-weight: 700 !important; border: none !important; transition: background .2s, transform .2s !important; }
.price_slider_amount .button:hover { background: var(--brand) !important; transform: translateY(-2px); }

/* ---- filters toggle (mobile) ---- */
.egs-filters-toggle { display: none; align-items: center; gap: 9px; background: var(--text); color: #fff; border: none; font-weight: 700; padding: 13px 22px; border-radius: 999px; margin-bottom: 22px; }

/* ---- AJAX loading state ---- */
.egs-archive__main.is-loading { opacity: .5; pointer-events: none; transition: opacity .2s; }

@media (max-width: 1200px) {
	.egs-archive { grid-template-columns: 250px 1fr; gap: 28px; }
	.egs-archive__main ul.products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
	.egs-archive { grid-template-columns: 1fr; }
	.egs-filters-toggle { display: inline-flex; }
	.egs-archive__sidehead { display: flex; }
	.egs-archive__side {
		position: fixed; top: 0; left: 0; bottom: 0; width: min(360px, 90vw); background: #fff; z-index: 320;
		transform: translateX(-105%); transition: transform .42s var(--ease-out); overflow-y: auto;
		box-shadow: 30px 0 60px rgba(13,20,38,.18);
	}
	.egs-archive__side.is-open { transform: none; }
	.egs-archive__filters { padding: 14px 20px 30px; }
}
@media (max-width: 680px) {
	.egs-archive__main ul.products { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 460px) {
	.egs-archive__main ul.products { grid-template-columns: 1fr; }
}

/* rating filter (custom) */
.egs-ratingfilter li a { display: flex; align-items: center; gap: 10px; }
.egs-ratingfilter .egs-rstars { color: var(--star); font-size: 16px; letter-spacing: 1px; white-space: nowrap; }
.egs-ratingfilter .egs-rstars .off { color: var(--border-2); }
.egs-ratingfilter .egs-rlabel { font-size: 13px; color: var(--muted); }
.egs-ratingfilter li.egs-chosen > a { background: var(--bg-soft); }
.egs-ratingfilter li.egs-chosen .egs-rlabel { color: var(--brand-600); font-weight: 700; }

/* filter rows: keep label + count on one line */
.egs-fwidget ul li { display: flex; align-items: center; gap: 6px; }
.egs-fwidget ul li > a { flex: 1 1 auto; min-width: 0; }
.egs-fwidget ul li .count { flex: none; }
.widget_layered_nav_filters ul, .egs-fwidget--active_filters .woocommerce-widget-layered-nav-list { display: flex; flex-wrap: wrap; }
.widget_layered_nav_filters ul li, .egs-fwidget--active_filters .woocommerce-widget-layered-nav-list li { display: inline-flex; }
.product-categories .children { width: 100%; }

/* ---- Archive fixes: spacing below hero + circular pagination ---- */
.woocommerce .egs-main, .woocommerce-page .egs-main { padding-top: 52px; }

.woocommerce-pagination, .egs-pagination { margin-top: 52px; }
.woocommerce-pagination ul.page-numbers { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; border: none; padding: 0; margin: 0; list-style: none; }
.woocommerce-pagination ul.page-numbers li { margin: 0; border: none; overflow: visible; }
.woocommerce-pagination ul li .page-numbers,
.egs-pagination .page-numbers {
	display: grid; place-items: center; width: 50px; height: 50px; min-width: 50px; padding: 0; border-radius: 50%;
	background: #fff; border: 1.5px solid var(--border); color: var(--text); font-weight: 800; font-size: 15px;
	line-height: 1; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .2s, border-color .2s;
}
.woocommerce-pagination ul li a.page-numbers:hover,
.egs-pagination a.page-numbers:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-3px); box-shadow: var(--sh); background: #fff; }
.woocommerce-pagination ul li .page-numbers.current,
.egs-pagination .page-numbers.current { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--sh-brand); }
.woocommerce-pagination ul li .page-numbers.dots { background: none; border: none; width: auto; min-width: 28px; }
.woocommerce-pagination ul li .page-numbers.prev,
.woocommerce-pagination ul li .page-numbers.next { font-size: 20px; }

/* ---- Circular pagination (beats WooCommerce's own high-specificity styles) ---- */
.woocommerce nav.woocommerce-pagination { text-align: center; margin-top: 52px; }
.woocommerce nav.woocommerce-pagination ul { display: inline-flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; border: none; margin: 0; padding: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: none; margin: 0; padding: 0; overflow: visible; display: inline-flex; }
.woocommerce nav.woocommerce-pagination ul li a.page-numbers,
.woocommerce nav.woocommerce-pagination ul li span.page-numbers {
	display: grid; place-items: center; width: 50px; height: 50px; min-width: 50px; padding: 0; margin: 0;
	border-radius: 50%; background: #fff; border: 1.5px solid var(--border); color: var(--text);
	font-weight: 800; font-size: 15px; line-height: 1;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .2s, border-color .2s;
}
.woocommerce nav.woocommerce-pagination ul li a.page-numbers:hover {
	border-color: var(--brand); color: var(--brand); transform: translateY(-3px); box-shadow: var(--sh); background: #fff;
}
.woocommerce nav.woocommerce-pagination ul li span.current {
	background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--sh-brand);
}
.woocommerce nav.woocommerce-pagination ul li span.page-numbers.dots { background: none; border: none; min-width: 30px; width: auto; box-shadow: none; }

/* =========================================================================
   CARD ADD-TO-CART (now a clean full-width button below the price)
   ========================================================================= */
.egs-card__add { position: static; transform: none; opacity: 1; margin-top: 14px; padding: 0; z-index: auto; }
.egs-card__add .button, .egs-card__add a.button {
	display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
	background: var(--bg-soft); color: var(--text); font-weight: 700; font-size: 14.5px; line-height: 1.1;
	padding: 13px 16px; border-radius: var(--r-sm); border: 1.5px solid var(--border); box-shadow: none;
	transition: background .25s var(--ease), color .2s, border-color .25s, transform .2s;
}
.egs-card__add .button::before { content: ""; display: none; }
.egs-card__add .button:hover { background: var(--brand); color: #fff; border-color: var(--brand); transform: translateY(-2px); }
.egs-card__add .button.loading { opacity: .65; pointer-events: none; }
.egs-card__add .button.added { background: var(--new); color: #fff; border-color: var(--new); }
.egs-card__add .added_to_cart { display: none; }

/* =========================================================================
   SIDE CART DRAWER + mini-cart
   ========================================================================= */
.egs-cartdrawer {
	position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); background: #fff; z-index: 320;
	transform: translateX(105%); transition: transform .42s var(--ease-out); display: flex; flex-direction: column;
	box-shadow: -30px 0 60px rgba(13,20,38,.18);
}
.egs-cartdrawer.is-open { transform: none; }
.egs-cartdrawer__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--border); flex: none; }
.egs-cartdrawer__title { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.egs-cartdrawer__title .egs-icon { color: var(--brand); }
.egs-cartdrawer__body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.egs-cartdrawer .widget_shopping_cart_content { display: flex; flex-direction: column; flex: 1; }

/* free shipping bar inside the drawer */
.egs-cartdrawer .egs-freeship { margin: 18px 24px 6px; }

.woocommerce-mini-cart.cart_list { list-style: none; margin: 0; padding: 6px 24px; flex: 1; }
.woocommerce-mini-cart__empty-message { padding: 60px 24px; text-align: center; color: var(--muted); font-weight: 500; }
/* High specificity + resets so WooCommerce's own .product_list_widget rules
   (which float the image right at 32px and collapse the layout) can't win. */
.egs-cartdrawer .woocommerce-mini-cart-item { display: grid !important; grid-template-columns: 64px minmax(0, 1fr) !important; align-items: start; gap: 14px; padding: 16px 34px 16px 0; border-bottom: 1px solid var(--border); position: relative; }
.egs-cartdrawer .woocommerce-mini-cart-item .egs-mc__thumb { grid-column: 1; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--bg-soft); border: 1.5px solid var(--border); display: grid; place-items: center; float: none !important; margin: 0 !important; }
.egs-cartdrawer .woocommerce-mini-cart-item .egs-mc__thumb img { width: 100% !important; height: 100% !important; max-width: none; object-fit: contain; mix-blend-mode: multiply; margin: 0 !important; float: none !important; }
.egs-cartdrawer .woocommerce-mini-cart-item .egs-mc__info { grid-column: 2; min-width: 0; display: flex; flex-direction: column; }
.egs-cartdrawer .egs-mc__name { font-weight: 700; color: var(--text); font-size: 14.5px; line-height: 1.3; text-decoration: none; display: block; padding: 0 !important; }
.egs-cartdrawer a.egs-mc__name:hover { color: var(--brand); }
.egs-cartdrawer .egs-mc__qty { color: var(--muted); font-size: 13px; font-weight: 600; margin-top: 6px; }
.egs-cartdrawer .egs-mc__qty .amount { color: var(--brand-600); font-weight: 800; }
.egs-cartdrawer .woocommerce-mini-cart-item a.remove, .egs-cartdrawer .woocommerce-mini-cart-item a.remove_from_cart_button {
	position: absolute !important; top: 16px; right: 0; transform: none;
	width: 24px; height: 24px; display: grid !important; place-items: center; border-radius: 50%;
	background: var(--bg-soft); color: var(--muted) !important; font-size: 15px; line-height: 1; text-decoration: none; transition: all .2s;
}
.egs-cartdrawer .woocommerce-mini-cart-item a.remove:hover { background: var(--sale); color: #fff !important; }

/* Compact variation list (Storage / Colour / Grade) used in cart, checkout, mini-cart.
   Inline label+value with a line break after each pair — robust in narrow columns. */
.variation { display: block !important; margin: 6px 0 0; padding: 0; font-size: 12.5px; line-height: 1.7; }
.variation dt { display: inline !important; float: none !important; clear: none !important; margin: 0 4px 0 0 !important; padding: 0 !important; font-weight: 600; color: var(--muted); }
.variation dd { display: inline !important; float: none !important; margin: 0 !important; padding: 0 !important; color: var(--text-2); font-weight: 700; }
.variation dd p { display: inline; margin: 0; }
.variation dd::after { content: "\A"; white-space: pre; }
.egs-cartdrawer .egs-mc__info .variation { margin: 5px 0 0; }
.woocommerce-mini-cart__total { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 18px 24px; border-top: 1px solid var(--border); font-weight: 800; font-size: 16px; }
.woocommerce-mini-cart__total .amount, .woocommerce-mini-cart__total strong { color: var(--text); }
.woocommerce-mini-cart__buttons { display: flex; gap: 12px; margin: 0; padding: 4px 24px 26px; }
.woocommerce-mini-cart__buttons .button { flex: 1; text-align: center; padding: 15px 18px !important; border-radius: var(--pill) !important; font-weight: 700 !important; font-size: 14.5px !important; }
.woocommerce-mini-cart__buttons .button:not(.checkout) { background: var(--bg-soft) !important; color: var(--text) !important; border: 1.5px solid var(--border) !important; }
.woocommerce-mini-cart__buttons .button:not(.checkout):hover { background: #fff !important; border-color: var(--brand) !important; color: var(--brand) !important; }
.woocommerce-mini-cart__buttons .checkout { background: var(--grad) !important; color: #fff !important; border: none !important; box-shadow: var(--sh-brand); }
.woocommerce-mini-cart__buttons .checkout:hover { transform: translateY(-2px); }

/* =========================================================================
   PAGINATION — outlined active (transparent bg, brand border on active only)
   ========================================================================= */
.woocommerce nav.woocommerce-pagination ul li a.page-numbers,
.woocommerce nav.woocommerce-pagination ul li span.page-numbers {
	background: transparent; border: 2px solid transparent; color: var(--text-2); box-shadow: none;
}
.woocommerce nav.woocommerce-pagination ul li a.page-numbers:hover {
	background: transparent; border-color: var(--border-2); color: var(--brand-600); transform: translateY(-2px); box-shadow: none;
}
.woocommerce nav.woocommerce-pagination ul li span.current {
	background: transparent; border-color: var(--brand); color: var(--brand-600); box-shadow: none; font-weight: 800;
}

/* =========================================================================
   MEGA-MENU (Categories dropdown)
   ========================================================================= */
.egs-catbtn[aria-expanded="true"] .egs-icon:last-child { transform: rotate(180deg); }

.egs-mega {
	position: absolute; top: 100%; left: 0; right: 0; z-index: 190; padding: 8px 28px 0;
	opacity: 0; visibility: hidden; transform: translateY(10px);
	transition: opacity .26s var(--ease), transform .26s var(--ease), visibility .26s;
}
.egs-mega.is-open { opacity: 1; visibility: visible; transform: none; }
.egs-mega__inner {
	max-width: var(--container); margin: 0 auto; background: #fff; border: 1px solid var(--border);
	border-radius: var(--r-lg); box-shadow: 0 30px 70px rgba(13,20,38,.18); overflow: hidden;
	display: grid; grid-template-columns: 264px minmax(0, 1fr) 290px; min-height: 440px;
}

/* ---- left rail ---- */
.egs-mega__rail { background: radial-gradient(140% 120% at 0% 0%, #1d3df0, #2563eb 55%, #1e40af); padding: 16px 14px; display: flex; flex-direction: column; gap: 2px; }
.egs-mega__railitem {
	display: flex; align-items: center; gap: 12px; width: 100%; border: none; background: transparent;
	padding: 11px 12px; border-radius: 13px; cursor: pointer; color: rgba(255,255,255,.92); text-align: left;
	font-family: inherit; font-weight: 600; font-size: 14.5px; transition: background .2s, color .2s;
}
.egs-mega__railitem:hover { background: rgba(255,255,255,.12); color: #fff; }
.egs-mega__railitem.is-active { background: #fff; color: var(--text); }
.egs-mega__railic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.16); overflow: hidden; flex: none; color: #fff; }
.egs-mega__railitem.is-active .egs-mega__railic { background: var(--bg-soft); color: var(--brand); }
.egs-mega__railic img { width: 100%; height: 100%; object-fit: cover; }
.egs-mega__railname { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.egs-mega__railcount { font-size: 11.5px; font-weight: 700; opacity: .7; background: rgba(255,255,255,.16); padding: 1px 8px; border-radius: 999px; }
.egs-mega__railitem.is-active .egs-mega__railcount { background: var(--bg-soft); color: var(--muted); opacity: 1; }
.egs-mega__railarrow { opacity: .55; flex: none; }
.egs-mega__railitem.is-active .egs-mega__railarrow { color: var(--brand); opacity: 1; }

/* ---- content panels ---- */
.egs-mega__content { padding: 26px 30px; position: relative; }
.egs-mega__panel { display: none; animation: egsFade .35s var(--ease-out); }
.egs-mega__panel.is-active { display: block; }
.egs-mega__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.egs-mega__title { font-size: 19px; font-weight: 800; margin: 0; color: var(--text); }
.egs-mega__viewall { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px; color: var(--brand-600); }
.egs-mega__viewall .egs-icon { transition: transform .2s; }
.egs-mega__viewall:hover .egs-icon { transform: translateX(3px); }

/* subcategory columns */
.egs-mega__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 24px; }
.egs-mega__group { min-width: 0; }
.egs-mega__grouptitle { display: block; font-size: 14.5px; font-weight: 800; color: var(--brand-600); margin-bottom: 12px; }
.egs-mega__grouptitle:hover { color: var(--brand); }
.egs-mega__links { display: flex; flex-direction: column; gap: 9px; margin: 0; }
.egs-mega__links a { color: var(--text-2); font-size: 14px; font-weight: 500; transition: color .18s, transform .18s; display: inline-block; }
.egs-mega__links a:hover { color: var(--brand-600); transform: translateX(3px); }

/* product grid (flat categories) */
.egs-mega__products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.egs-mega__product { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 13px; transition: background .2s; }
.egs-mega__product:hover { background: var(--bg-soft); }
.egs-mega__pthumb { width: 54px; height: 54px; border-radius: 11px; background: var(--bg-soft); overflow: hidden; flex: none; display: grid; place-items: center; }
.egs-mega__pthumb img { width: 100%; height: 100%; object-fit: cover; }
.egs-mega__pinfo { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.egs-mega__pname { font-size: 13.5px; font-weight: 700; color: var(--text); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.egs-mega__pprice { font-size: 13.5px; font-weight: 800; color: var(--brand-600); }
.egs-mega__pprice del { color: var(--muted); font-weight: 600; font-size: 12px; margin-right: 4px; }
.egs-mega__pprice ins { text-decoration: none; }
.egs-mega__empty { color: var(--muted); padding: 30px 0; }

/* ---- promo column ---- */
.egs-mega__promo { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 30px 24px; background: linear-gradient(180deg, #f5f8fd, #eef3fb); border-left: 1px solid var(--border); position: relative; overflow: hidden; }
.egs-mega__promobody { position: relative; z-index: 1; }
.egs-mega__promoeyebrow { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.egs-mega__promotitle { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--text); line-height: 1.1; margin-bottom: 18px; }
.egs-mega__promobtn { padding: 11px 26px; font-size: 14px; }
.egs-mega__promoimg { margin-top: 18px; display: block; }
.egs-mega__promoimg img { max-width: 100%; max-height: 220px; width: auto; object-fit: contain; filter: drop-shadow(0 24px 36px rgba(13,20,38,.18)); }

/* ---- responsive: full-screen drawer + accordion on mobile ---- */
@media (max-width: 1024px) {
	.egs-mega { position: fixed; inset: 0; top: 0; padding: 0; z-index: 320; overflow-y: auto; transform: translateX(-100%); transition: transform .4s var(--ease-out); background: #fff; }
	.egs-mega.is-open { transform: none; }
	.egs-mega__inner { display: block; min-height: 0; max-width: none; border: none; border-radius: 0; box-shadow: none; padding-top: 64px; }
	.egs-mega__rail { background: #fff; padding: 0; }
	.egs-mega__railitem { color: var(--text); border-radius: 0; border-bottom: 1px solid var(--border); padding: 16px 22px; }
	.egs-mega__railitem:hover, .egs-mega__railitem.is-active { background: var(--bg-soft); color: var(--text); }
	.egs-mega__railic { background: var(--bg-soft); color: var(--brand); }
	.egs-mega__railarrow { transition: transform .25s; }
	.egs-mega__railitem.is-active .egs-mega__railarrow { transform: rotate(90deg); }
	.egs-mega__content { padding: 0; }
	.egs-mega__panel { display: none; padding: 18px 22px; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
	.egs-mega__panel.is-active { display: block; }
	.egs-mega__cols { grid-template-columns: repeat(2, 1fr); }
	.egs-mega__products { grid-template-columns: 1fr; }
	.egs-mega__promo { border-left: none; border-top: 1px solid var(--border); }
}
@media (max-width: 560px) { .egs-mega__cols { grid-template-columns: 1fr; } }

.egs-mega__close { display: none; }
@media (max-width: 1024px) {
	.egs-mega__close { display: inline-flex; align-items: center; gap: 8px; position: fixed; top: 12px; right: 16px; z-index: 6; background: var(--bg-soft); border: none; border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 14px; color: var(--text); font-family: inherit; }
}

/* Mobile: drop the header's backdrop-filter so the mega's position:fixed
   resolves against the viewport (backdrop-filter creates a containing block). */
@media (max-width: 1024px) {
	.egs-header { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
}

/* mega-menu: empty category state (no borrowing other categories' products) */
.egs-mega__emptystate { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 280px; gap: 4px; padding: 20px; }
.egs-mega__emptyimg { width: 92px; height: 92px; border-radius: 20px; overflow: hidden; background: var(--bg-soft); display: grid; place-items: center; margin-bottom: 16px; }
.egs-mega__emptyimg img { width: 100%; height: 100%; object-fit: cover; }
.egs-mega__emptytitle { font-size: 16.5px; font-weight: 800; color: var(--text); margin: 0; }
.egs-mega__emptysub { font-size: 14px; color: var(--muted); margin: 0; max-width: 300px; }

/* mega-menu mobile: clean tappable category list (each row links to its archive) */
@media (max-width: 1024px) {
	.egs-mega__content, .egs-mega__promo { display: none !important; }
	.egs-mega__inner { padding: 70px 0 30px !important; }
	.egs-mega__railitem { text-decoration: none; }
	.egs-mega__railarrow { transform: none !important; opacity: .5; }
}



