/* ElevateTheNorm storefront: ETN blue + Teacher Emergency Toolkit cream */
.etn-store {
	--es-ink: #17202e;
	--es-muted: #55606f;
	--es-navy: #10294d;
	--es-blue: #1f5fbf;
	--es-blue-soft: #e7eefa;
	--es-cream: #faf5ea;
	--es-sand: #efe3cb;
	--es-amber: #c97a1c;
	--es-green: #23784a;
	--es-line: #e3dccd;
	--es-card: #ffffff;
	--es-radius: 16px;
	--es-shadow: 0 1px 2px rgba(16, 41, 77, .06), 0 6px 18px rgba(16, 41, 77, .07);
	--es-shadow-hover: 0 2px 4px rgba(16, 41, 77, .08), 0 14px 32px rgba(16, 41, 77, .14);
	color: var(--es-ink);
	margin-top: 0;
	box-sizing: border-box;
}
.etn-store *, .etn-store *::before, .etn-store *::after { box-sizing: border-box; }
.etn-store a { text-decoration: none; }
.etn-store h2, .etn-store h3, .etn-store p { margin: 0; }
.etn-store .es-ico { width: 1.25em; height: 1.25em; flex: none; }

/* Hero */
.es-hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(1200px 400px at 110% -10%, rgba(31, 95, 191, .16), transparent 60%),
		radial-gradient(800px 300px at -10% 120%, rgba(201, 122, 28, .14), transparent 60%),
		var(--es-cream);
	border: 1px solid var(--es-line);
	border-radius: 24px;
	padding: clamp(24px, 5vw, 56px);
}
.es-hero-copy { position: relative; z-index: 1; }
.es-hero-art { display: none; }
@media (min-width: 1000px) {
	.es-hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: center; gap: 40px; }
	.es-hero-copy { order: 1; }
	.es-hero-art { order: 2; display: block; position: relative; height: 380px; }
	.es-cover {
		position: absolute;
		width: 58%;
		height: auto;
		aspect-ratio: 1 / 1;
		object-fit: cover;
		border-radius: 14px;
		border: 5px solid #fff;
		background: var(--es-sand);
		box-shadow: 0 10px 30px rgba(16, 41, 77, .22);
	}
	.es-cover-1 { left: 21%; top: 6%; z-index: 4; transform: rotate(-2deg); }
	.es-cover-2 { left: 0; top: 30%; z-index: 3; transform: rotate(-9deg); width: 46%; }
	.es-cover-3 { right: 0; top: 26%; z-index: 2; transform: rotate(8deg); width: 46%; }
	.es-cover-4 { left: 30%; top: 46%; z-index: 1; transform: rotate(3deg); width: 40%; opacity: .9; }
	.es-dept:first-child .es-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.es-dept:first-child .es-tile { padding: 22px; align-items: center; }
	.es-dept:first-child .es-tile-txt strong { font-size: 1.15rem; }
	.es-dept:first-child .es-tile-txt span { font-size: .92rem; }
	.es-dept:first-child .es-tile-ico { width: 54px; height: 54px; }
}
.es-eyebrow {
	display: inline-block;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--es-amber);
	margin-bottom: 14px !important;
}
.es-lead {
	font-size: clamp(1.08rem, 1.6vw, 1.32rem);
	line-height: 1.55;
	max-width: 46em;
	color: var(--es-ink);
}
.es-stats {
	list-style: none;
	margin: 28px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	max-width: 760px;
}
.es-stats li {
	background: rgba(255, 255, 255, .78);
	border: 1px solid var(--es-line);
	border-radius: 14px;
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.es-stats strong { font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.1; color: var(--es-navy); font-weight: 800; letter-spacing: -.01em; }
.es-stats span { font-size: .85rem; color: var(--es-muted); }
.es-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Buttons */
.etn-store .es-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--es-blue);
	color: #fff;
	font-weight: 700;
	font-size: .9rem;
	line-height: 1;
	padding: 11px 16px;
	border-radius: 999px;
	border: 2px solid var(--es-blue);
	transition: background .15s, border-color .15s, transform .15s;
	white-space: nowrap;
}
.etn-store .es-btn:hover, .etn-store .es-btn:focus-visible { background: var(--es-navy); border-color: var(--es-navy); color: #fff; }
.etn-store .es-btn-lg { font-size: 1rem; padding: 14px 22px; }
.etn-store .es-btn-ghost { background: transparent; color: var(--es-navy); border-color: var(--es-navy); }
.etn-store .es-btn-ghost:hover, .etn-store .es-btn-ghost:focus-visible { background: var(--es-navy); color: #fff; }
.etn-store :focus-visible { outline: 3px solid var(--es-amber); outline-offset: 2px; }

/* Gateway */
.es-gateway { margin-top: clamp(32px, 5vw, 56px); display: grid; gap: 28px; scroll-margin-top: 24px; }
.es-dept-name {
	font-size: .76rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--es-muted);
	margin-bottom: 10px !important;
}
.es-tiles {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 12px;
}
.es-tile {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	height: 100%;
	padding: 16px;
	background: var(--es-card);
	border: 1px solid var(--es-line);
	border-radius: var(--es-radius);
	color: var(--es-ink);
	box-shadow: var(--es-shadow);
	transition: transform .15s, box-shadow .15s, border-color .15s;
}
.es-tile:hover, .es-tile:focus-visible { transform: translateY(-2px); box-shadow: var(--es-shadow-hover); border-color: #cdd9ee; color: var(--es-ink); }
.es-tile-ico, .es-aisle-ico {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--es-blue-soft);
	color: var(--es-blue);
	flex: none;
}
.es-tile-ico .es-ico, .es-aisle-ico .es-ico { width: 24px; height: 24px; }
.es-tile-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.es-tile-txt strong { font-size: .98rem; line-height: 1.3; color: var(--es-navy); }
.es-tile-txt span { font-size: .84rem; line-height: 1.4; color: var(--es-muted); }
.es-tile-n {
	font-size: .78rem;
	font-weight: 700;
	color: var(--es-navy);
	background: var(--es-cream);
	border: 1px solid var(--es-line);
	border-radius: 999px;
	padding: 3px 9px;
	flex: none;
}
.es-tile-free .es-tile-ico, .es-aisle#aisle-free .es-aisle-ico { background: #e4f3ea; color: var(--es-green); }
.es-tile-bundles .es-tile-ico, .es-aisle#aisle-bundles .es-aisle-ico { background: #fbefdc; color: var(--es-amber); }

/* Toolbar */
.es-toolbar {
	position: sticky;
	top: 0;
	z-index: 20;
	margin: clamp(32px, 5vw, 56px) 0 8px;
	padding: 12px;
	background: rgba(250, 245, 234, .94);
	-webkit-backdrop-filter: saturate(1.4) blur(8px);
	backdrop-filter: saturate(1.4) blur(8px);
	border: 1px solid var(--es-line);
	border-radius: 18px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
}
.admin-bar .es-toolbar { top: 32px; }
.es-search {
	flex: 1 1 280px;
	display: flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border: 1px solid var(--es-line);
	border-radius: 999px;
	padding: 0 14px;
	color: var(--es-muted);
}
.es-search:focus-within { border-color: var(--es-blue); box-shadow: 0 0 0 3px rgba(31, 95, 191, .18); }
.es-search input {
	flex: 1;
	min-width: 0;
	border: 0;
	outline: 0;
	background: transparent;
	font: inherit;
	font-size: 1rem;
	padding: 11px 0;
	color: var(--es-ink);
}
.es-filters { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.es-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.etn-store .es-f {
	font: inherit;
	font-size: .85rem;
	font-weight: 600;
	line-height: 1;
	padding: 9px 12px;
	border-radius: 999px;
	border: 1px solid var(--es-line);
	background: #fff;
	color: var(--es-navy);
	cursor: pointer;
	transition: background .15s, color .15s, border-color .15s;
}
.etn-store .es-f:hover { border-color: var(--es-blue); }
.etn-store .es-f[aria-pressed="true"] { background: var(--es-navy); border-color: var(--es-navy); color: #fff; }

/* Aisles */
.es-aisles { display: grid; gap: clamp(40px, 6vw, 72px); margin-top: clamp(28px, 4vw, 44px); }
.es-aisle { scroll-margin-top: 110px; }
.es-aisle-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; max-width: 58em; }
.es-aisle-head .es-dept-name { margin-bottom: 4px !important; }
.es-aisle-head h2, .es-results-head h2 {
	font-size: clamp(1.4rem, 2.6vw, 1.9rem);
	line-height: 1.2;
	color: var(--es-navy);
	font-weight: 800;
	letter-spacing: -.01em;
}
.es-count {
	display: inline-block;
	vertical-align: middle;
	font-size: .8rem;
	font-weight: 700;
	color: var(--es-muted);
	background: var(--es-cream);
	border: 1px solid var(--es-line);
	border-radius: 999px;
	padding: 3px 10px;
	margin-left: 6px;
	letter-spacing: 0;
}
.es-aisle-intro { margin-top: 8px !important; color: var(--es-muted); font-size: 1rem; line-height: 1.6; }
.es-aisle-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.etn-store .es-top { font-size: .88rem; font-weight: 600; color: var(--es-blue); }
.etn-store .es-top:hover { text-decoration: underline; }
.etn-store .es-more, .etn-store .es-clear {
	font: inherit;
	font-weight: 700;
	font-size: .92rem;
	cursor: pointer;
	padding: 12px 18px;
	border-radius: 999px;
	border: 2px solid var(--es-navy);
	background: #fff;
	color: var(--es-navy);
}
.etn-store .es-more:hover, .etn-store .es-clear:hover { background: var(--es-navy); color: #fff; }
.etn-store .es-more[disabled] { opacity: .6; cursor: progress; }

/* Grid + cards */
.es-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 18px;
}
.es-card {
	display: flex;
	flex-direction: column;
	background: var(--es-card);
	border: 1px solid var(--es-line);
	border-radius: var(--es-radius);
	overflow: hidden;
	box-shadow: var(--es-shadow);
	transition: transform .15s, box-shadow .15s;
}
.es-card:hover { transform: translateY(-3px); box-shadow: var(--es-shadow-hover); }
.etn-store .es-thumb { display: block; aspect-ratio: 1 / 1; background: var(--es-sand); overflow: hidden; }
.es-thumb img { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; transition: transform .3s; }
.es-card:hover .es-thumb img { transform: scale(1.03); }
.es-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 16px; flex: 1; }
.es-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.es-chip {
	font-size: .72rem;
	font-weight: 700;
	color: var(--es-blue);
	background: var(--es-blue-soft);
	border-radius: 999px;
	padding: 3px 8px;
}
.es-chip-b { color: var(--es-amber); background: #fbefdc; }
.etn-store .es-title { font-size: 1rem; line-height: 1.35; font-weight: 700; }
.etn-store .es-title a { color: var(--es-navy); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.etn-store .es-title a:hover { color: var(--es-blue); }
.es-blurb {
	font-size: .86rem;
	line-height: 1.5;
	color: var(--es-muted);
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.es-buy { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.es-price { font-weight: 800; font-size: 1.05rem; color: var(--es-navy); }
.es-price s { font-weight: 600; font-size: .82rem; color: var(--es-muted); margin-left: 2px; }
.es-free { color: var(--es-green); }
.etn-store .es-buy .es-btn { padding: 9px 13px; font-size: .82rem; }

/* Results */
.es-results { margin-top: 24px; }
.es-results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.es-more-wrap { text-align: center; margin-top: 22px !important; }
.es-empty { grid-column: 1 / -1; padding: 28px; text-align: center; background: var(--es-cream); border-radius: var(--es-radius); color: var(--es-muted); }
.etn-store.is-filtering .es-aisles { display: none; }

/* How it works (sits above the sticky toolbar so the bar slides under it) */
.es-how {
	position: relative;
	z-index: 21;
	margin-top: clamp(48px, 7vw, 88px);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
	background: var(--es-navy);
	color: #e8eef8;
	border-radius: 24px;
	padding: clamp(24px, 5vw, 48px);
}
.es-how h2 { color: #fff; font-size: 1.3rem; font-weight: 800; margin-bottom: 10px !important; }
.es-how p { line-height: 1.65; font-size: .98rem; }
.es-how p + p { margin-top: 10px !important; }
.etn-store .es-how a { color: #ffd59a; text-decoration: underline; text-underline-offset: 2px; }

/* Mobile */
@media (max-width: 781px) {
	.es-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.es-tiles { grid-template-columns: 1fr; }
	.es-toolbar { border-radius: 14px; padding: 10px; }
	.es-filters { width: 100%; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 14px; padding-bottom: 2px; }
	.es-filters::-webkit-scrollbar { display: none; }
	.es-chips { flex-wrap: nowrap; flex: none; }
	.etn-store .es-f { flex: none; }
	.es-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.es-body { padding: 10px 10px 12px; gap: 6px; }
	.etn-store .es-title { font-size: .9rem; }
	.es-blurb { display: none; }
	.es-buy { flex-direction: column; align-items: stretch; }
	.etn-store .es-buy .es-btn { justify-content: center; }
	.es-aisle { scroll-margin-top: 150px; }
	.es-aisle-head { gap: 12px; }
	.es-aisle-ico { width: 38px; height: 38px; }
	.es-aisle-foot { flex-direction: column; align-items: stretch; text-align: center; }
	.admin-bar .es-toolbar { top: 46px; }
}
@media (max-width: 600px) { .admin-bar .es-toolbar { top: 0; } }
@media (prefers-reduced-motion: reduce) {
	.es-card, .es-tile, .es-thumb img { transition: none; }
	.es-card:hover, .es-tile:hover { transform: none; }
	.es-card:hover .es-thumb img { transform: none; }
}
