/* ===== AfriElan Studio — Homepage + Shop styling =====
   Colors: inherits Astra's own global color variables, which
   design-tokens.css points at the brand palette — so this file follows
   the design system doc automatically. Fallback hex values only apply
   if those vars are somehow missing.
*/

.ael-hero {
	/* Soft radial glow instead of a flat fill, so the hero reads as an
	   intentional "banner" section rather than a plain background change. */
	padding: 64px 20px;
	background: radial-gradient( circle at 50% -10%, var(--brand-surface, #fff) 0%, var(--ast-global-color-5, #faf8f5) 65% );
	border-bottom: 1px solid var(--brand-line);
}
/* Editorial split: copy on the left, visual panel on the right, instead
   of one centered stacked block - this is the "fashion house intro"
   layout the brand redesign asked for. Copy column stays comfortably
   readable (not stretched edge-to-edge) even at wide viewports. */
.ael-hero-grid {
	max-width: 1400px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 560px) 1fr;
	align-items: center;
	gap: 56px;
}
.ael-hero-copy {
	max-width: 560px;
}
/* Small uppercase label above the H1 - a real editorial "kicker", gives
   the hero a magazine-cover feel instead of a headline sitting alone. */
.ael-hero-eyebrow {
	display: block;
	font-family: var(--brand-font-body);
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--brand-accent);
	margin-bottom: 14px;
}
.ael-hero h1 {
	font-family: var(--brand-font-display);
	font-weight: 500;
	font-size: 3.2rem;
	line-height: 1.05;
	letter-spacing: .01em;
	margin-bottom: 22px;
	color: var(--ast-global-color-3, #22201d);
}
/* Lede: the opening sentence set larger, in the display face, as a real
   editorial device (a magazine "standfirst") rather than accenting a
   single word inside one paragraph. */
.ael-hero-lede {
	font-family: var(--brand-font-display);
	font-weight: 400;
	font-size: 1.3rem;
	line-height: 1.5;
	color: var(--brand-ink, #22201d);
	margin: 0 0 16px;
}
.ael-hero-body {
	font-family: var(--brand-font-body);
	font-size: .96rem;
	line-height: 1.75;
	color: var(--brand-ink-soft, #6b6459);
	margin: 0 0 32px;
}
.ael-hero-actions {
	display: flex;
	align-items: center;
	gap: 22px;
}
/* Quiet secondary link - underline only, no border/box - so "Shop Now"
   stays the one obvious primary action. */
.ael-hero-secondary-link {
	font-family: var(--brand-font-body);
	font-size: .9rem;
	font-weight: 500;
	color: var(--brand-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: var(--brand-line);
}
.ael-hero-secondary-link:hover {
	color: var(--brand-accent);
	text-decoration-color: var(--brand-accent);
}

.ael-hero-visual {
	height: 100%;
	display: flex;
	align-items: center;
}
/* Framed composition: an accent-colour panel sits offset behind the
   photo (visible bottom-right), plus a floating caption card overlaps
   the bottom-left corner - a proper "editorial" treatment instead of a
   plain rectangular photo dropped into the layout. */
.ael-hero-frame {
	position: relative;
	width: 100%;
	max-width: 420px;
	margin: 0 auto;
}
.ael-hero-frame::before {
	content: "";
	position: absolute;
	inset: 22px -22px -22px 22px;
	background: var(--brand-accent);
	border-radius: var(--brand-radius);
	z-index: 0;
}
.ael-hero-image {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	aspect-ratio: 2 / 3;
	max-height: 560px;
	object-fit: cover;
	object-position: top center; /* keeps faces in frame on a portrait crop */
	border-radius: var(--brand-radius);
	box-shadow: 0 20px 40px rgba(34, 32, 29, .18);
}
.ael-hero-caption {
	position: absolute;
	z-index: 2;
	left: -18px;
	bottom: -18px;
	max-width: 200px;
	background: var(--brand-surface);
	border: 1px solid var(--brand-line);
	border-radius: var(--brand-radius);
	padding: 14px 16px;
	font-family: var(--brand-font-display);
	font-size: .92rem;
	line-height: 1.35;
	color: var(--brand-ink);
	box-shadow: 0 10px 26px rgba(34, 32, 29, .12);
}
.ael-hero-caption-label {
	display: block;
	font-family: var(--brand-font-body);
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--brand-accent);
	margin-bottom: 4px;
}

/* ---------------------------------------------------------------------
   Categories — pill grid under the hero, per the design mockup
--------------------------------------------------------------------- */
.ael-categories {
	padding: 10px 20px 30px;
	max-width: 1400px;
	margin: 0 auto;
}
.ael-categories-heading {
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: .06em;
	font-family: var(--brand-font-body);
	font-weight: 600;
	color: var(--brand-ink-soft);
	margin: 0 0 14px;
}
.ael-categories-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.ael-category-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 20px;
	border: 1px solid var(--brand-line);
	border-radius: 999px;
	font-size: .85rem;
	font-family: var(--brand-font-body);
	letter-spacing: .01em;
	color: var(--brand-ink);
	text-decoration: none;
	background: var(--brand-surface);
	white-space: nowrap;
	transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.ael-category-pill:hover {
	border-color: var(--brand-accent);
	color: var(--brand-accent);
}
/* Selected category: filled pill using the brand accent, so it's
   obviously different from the unselected outline style above - plus
   an explicit "x" (added in markup only when .is-active) so "this is
   selected AND clicking it clears it" reads at a glance, not just from
   the colour change. */
.ael-category-pill.is-active {
	background: var(--brand-accent);
	border-color: var(--brand-accent);
	color: var(--brand-surface, #fff);
	font-weight: 600;
}
.ael-category-pill.is-active:hover {
	background: var(--brand-accent-dark);
	border-color: var(--brand-accent-dark);
	color: var(--brand-surface, #fff);
}
.ael-category-pill__clear {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .25);
	font-size: .9rem;
	line-height: 1;
}

/* ---------------------------------------------------------------------
   Brand statement band - slim full-bleed strip between Categories and
   New Arrivals for a bit of magazine-style pacing on the homepage.
--------------------------------------------------------------------- */
.ael-statement-band {
	background: var(--brand-dark-bg);
	padding: 34px 20px;
	text-align: center;
}
.ael-statement-band p {
	margin: 0 auto;
	max-width: 720px;
	font-family: var(--brand-font-display);
	font-style: italic;
	font-size: 1.3rem;
	line-height: 1.5;
	color: var(--brand-dark-fg);
}

.ael-btn {
	display: inline-block;
	padding: 12px 28px;
	background: var(--ast-global-color-0, #1a1a1a);
	color: #fff;
	text-decoration: none;
	border-radius: var(--brand-radius);
	font-weight: 600;
	letter-spacing: .02em;
	transition: background .15s ease, transform .15s ease;
}
.ael-btn:hover {
	background: var(--ast-global-color-1, #333);
	color: #fff;
	transform: translateY(-1px);
}
.ael-btn:active {
	transform: translateY(0);
}
.ael-btn-disabled {
	background: #ccc;
	color: #666;
	cursor: not-allowed;
	pointer-events: none;
}

/* NOTE: not currently used - the banner row was removed from
   front-page.php to match the design mockup. Left here (harmless,
   unused) in case banners come back later; see the matching
   Customizer settings in inc/homepage-functions.php. */
.ael-banners {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	padding: 30px 20px;
}
.ael-banner {
	height: 220px;
	background-size: cover;
	background-position: center;
	background-color: var(--brand-line);
	border-radius: var(--brand-radius);
	display: flex;
	align-items: flex-end;
	padding: 16px;
	position: relative;
	text-decoration: none;
}
.ael-banner::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(transparent, rgba(0, 0, 0, .6));
	border-radius: var(--brand-radius);
}
.ael-banner span {
	position: relative;
	color: #fff;
	font-family: var(--brand-font-display);
	font-size: 1.15rem;
	font-weight: 500;
}

.ael-product-row {
	padding: 36px 20px;
	/* Alternate a hint of background tint on every other row so long
	   homepage scans (Arrivals -> Featured -> Wedding -> ...) have visual
	   rhythm instead of one flat unbroken white page. */
}
.ael-product-row:nth-of-type(even) {
	background: var(--ast-global-color-5, #faf8f5);
}
.ael-product-row h2 {
	margin-bottom: 20px;
	font-size: 1.5rem;
	color: var(--ast-global-color-3, #1a1a1a);
}

.ael-product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 22px;
}

/* DESIGN FIX (design item #4, "New Arrivals" empty state): without
   this, .afrielan-empty-state would be squeezed into a single
   ~220px grid column like a product card, instead of spanning the
   full row width it needs for its icon/title/text to read properly. */
.ael-product-grid > .afrielan-empty-state {
	grid-column: 1 / -1;
}

.ael-product-card {
	border: 1px solid var(--brand-line);
	border-radius: var(--brand-radius);
	overflow: hidden;
	padding-bottom: 14px;
	background: var(--brand-surface);
	/* Lift + shadow together reads as "clickable product" rather than
	   just a shadow; transform on its own line so it's easy to tweak. */
	transition: box-shadow .2s ease, transform .2s ease;
}
.ael-product-card:hover {
	box-shadow: 0 8px 22px rgba(0, 0, 0, .1);
	transform: translateY(-3px);
}

.ael-card-image {
	position: relative;
	display: block;
	background: var(--brand-paper);
}
.ael-card-image img {
	width: 100%;
	height: 260px;
	object-fit: cover;
	display: block;
}

.ael-badge {
	position: absolute;
	left: 8px;
	font-size: .7rem;
	font-weight: 700;
	color: #fff;
	padding: 3px 8px;
	border-radius: 3px;
	text-transform: uppercase;
}
.ael-badge-fabric {
	top: 8px;
	background: var(--ast-global-color-1, #8a4b08);
	max-width: calc(100% - 16px);
}
.ael-badge-stock {
	bottom: 8px;
	background: #2c7a2c;
}

.ael-outofstock .ael-badge-stock {
	background: #b32424;
}
.ael-lowstock .ael-badge-stock {
	background: #c98a12;
}

.ael-card-title {
	font-size: .95rem;
	margin: 10px 12px 4px;
	font-family: var(--brand-font-body);
	font-weight: 500;
}
.ael-card-title a {
	color: var(--ast-global-color-3, #22201d);
	text-decoration: none;
}
.ael-card-price {
	margin: 0 12px 10px;
	font-family: var(--brand-font-display);
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--ast-global-color-0, #a9724f);
}
.ael-product-card .ael-btn {
	margin: 0 12px;
	font-size: .85rem;
	padding: 8px 16px;
}

/* ===================================================================
   FULL-WIDTH SAFETY NET (in case astra_page_layout filter isn't enough)
=================================================================== */
.ast-container {
	max-width: 100% !important;
}
#primary,
#primary.content-area {
	width: 100% !important;
	float: none !important;
}
#ael-home {
	max-width: 1400px;
	margin: 0 auto;
	width: 100%;
}

/* ===================================================================
   RESPONSIVE
=================================================================== */

/* Tablets */
@media (max-width: 991px) {
	.ael-hero {
		padding: 44px 20px;
	}
	/* Single column below desktop: copy first, visual underneath. */
	.ael-hero-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}
	.ael-hero-copy {
		max-width: 100%;
	}
	.ael-hero h1 {
		font-size: 2.1rem;
	}
	.ael-hero-lede {
		font-size: 1.1rem;
	}
	.ael-hero-frame {
		max-width: 320px;
	}
	.ael-hero-image {
		max-height: 420px;
	}
	.ael-statement-band p {
		font-size: 1.1rem;
	}
	.ael-banners {
		grid-template-columns: repeat(2, 1fr);
	}
	.ael-product-grid {
		grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
		gap: 16px;
	}
	.ael-card-image img {
		height: 220px;
	}
}

/* Large phones */
@media (max-width: 600px) {
	.ael-hero {
		padding: 36px 16px;
	}
	.ael-hero h1 {
		font-size: 1.6rem;
	}
	.ael-hero-lede {
		font-size: 1rem;
	}
	.ael-hero-body {
		font-size: .92rem;
	}
	.ael-hero-actions {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
	}
	.ael-btn {
		width: 100%;
		text-align: center;
		padding: 14px 20px;
	}

	.ael-categories {
		padding: 6px 16px 22px;
	}
	.ael-category-pill {
		padding: 8px 16px;
		font-size: .8rem;
	}

	/* Pull the offset panel/caption in on narrow screens so neither
	   overflows past the viewport edge. */
	.ael-hero-frame::before {
		inset: 14px -14px -14px 14px;
	}
	.ael-hero-caption {
		left: 0;
		bottom: -14px;
		max-width: 170px;
		padding: 10px 12px;
		font-size: .82rem;
	}

	.ael-banners {
		grid-template-columns: 1fr;
		padding: 20px 16px;
		gap: 12px;
	}
	.ael-banner {
		height: 160px;
	}

	.ael-product-row {
		padding: 24px 16px;
	}
	.ael-product-row h2 {
		font-size: 1.25rem;
	}
	.ael-product-grid {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 12px;
	}
	.ael-card-image img {
		height: 180px;
	}
	.ael-card-title {
		font-size: .85rem;
		margin: 8px 10px 3px;
	}
	.ael-card-price {
		margin: 0 10px 8px;
		font-size: .9rem;
	}
	.ael-product-card .ael-btn {
		margin: 0 10px;
		width: calc(100% - 20px);
		font-size: .8rem;
		padding: 8px;
	}
	.ael-badge {
		font-size: .62rem;
		padding: 2px 6px;
	}
}

/* Small phones */
@media (max-width: 380px) {
	.ael-product-grid {
		grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	}
	.ael-card-image img {
		height: 150px;
	}
}

/* ===================================================================
   SHOP PAGE — EDITORIAL HEADER
   DESIGN CHANGE ("redesign the shop page to match the fashion style of
   the homepage"): same eyebrow / display-serif-title / lede pattern as
   .ael-hero on the homepage, condensed into a single centered block
   since the shop page doesn't have a photo to pair it with. Reuses the
   exact --brand-font-display + eyebrow letter-spacing from the hero so
   it reads as the same voice, not a different page's header style.
=================================================================== */
.ael-shop-hero {
	padding: 34px 0 18px;
	text-align: left;
	border-bottom: 1px solid var(--brand-line);
	margin-bottom: 22px;
}
.ael-shop-hero-eyebrow {
	display: block;
	font-family: var(--brand-font-body);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--brand-accent);
	margin-bottom: 10px;
}
.ael-shop-hero-title {
	font-family: var(--brand-font-display);
	font-size: clamp(2rem, 4vw, 2.8rem);
	font-weight: 500;
	line-height: 1.1;
	color: var(--brand-ink);
	margin: 0 0 12px;
}
.ael-shop-hero-lede {
	max-width: 640px;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--brand-ink-soft);
	margin: 0;
}

/* ===================================================================
   SHOP TOOLBAR — result count + sort dropdown, one tidy row
=================================================================== */
.ael-shop-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 20px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--brand-line);
}
.ael-shop-toolbar .woocommerce-result-count {
	margin: 0;
	font-family: var(--brand-font-body);
	font-size: .85rem;
	color: var(--brand-ink-soft);
}
.ael-shop-toolbar .woocommerce-ordering {
	margin: 0;
}
.ael-shop-toolbar select {
	padding: 8px 30px 8px 12px;
	border: 1px solid var(--brand-line);
	border-radius: var(--brand-radius);
	background: var(--brand-surface);
	font-family: var(--brand-font-body);
	font-size: .85rem;
	color: var(--brand-ink);
}


.ael-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: flex-end;
	background: var(--brand-paper);
	border: 1px solid var(--brand-line);
	border-radius: var(--brand-radius);
	padding: 18px 20px;
	margin-bottom: 28px;
}
.ael-filter-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.ael-filter-group label {
	font-size: .8rem;
	font-weight: 600;
	color: var(--ast-global-color-3, #333);
}
.ael-filter-group input[type="text"],
.ael-filter-group input[type="number"] {
	padding: 8px 10px;
	border: 1px solid var(--brand-line);
	border-radius: var(--brand-radius);
	font-size: .88rem;
}
.ael-price-inputs {
	display: flex;
	align-items: center;
	gap: 6px;
}
.ael-price-inputs input {
	width: 90px;
}

.ael-size-options {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.ael-size-pill {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: .8rem;
	border: 1px solid var(--brand-line);
	border-radius: 20px;
	padding: 5px 12px;
	cursor: pointer;
}
.ael-size-pill input {
	margin: 0;
}

.ael-filter-actions {
	display: flex;
	align-items: center;
	gap: 14px;
}
.ael-filter-actions .ael-btn {
	padding: 9px 22px;
	font-size: .85rem;
}
.ael-clear-link {
	font-size: .82rem;
	color: #999;
	text-decoration: underline;
}

@media (max-width: 600px) {
	.ael-filters {
		flex-direction: column;
		align-items: stretch;
	}
	.ael-price-inputs input {
		width: 100%;
	}
}

/* ===================================================================
   SHARED SHOP ALIGNMENT CONTAINER
   Wraps search bar + filter bar + product grid on archive-product.php
   so they share ONE max-width/centering source of truth instead of each
   re-declaring their own (which is what let them drift out of column).
   Homepage doesn't need this wrapper - #ael-home already centers
   everything at the same 1400px, so the search bar there lines up for
   free.
=================================================================== */
.ael-shop-align {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ===================================================================
   SEARCH BAR (standalone, top corner)
=================================================================== */
.ael-search-bar {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	/* No max-width/margin/horizontal-padding here anymore - whichever
	   parent renders this (.ael-shop-align on shop, #ael-home on
	   homepage) already provides that, so this can't fight it. */
	padding: 16px 0 20px;
}
.ael-search-bar input[type="text"] {
	padding: 11px 16px;
	border: 1px solid var(--brand-line);
	border-radius: var(--brand-radius);
	font-family: var(--brand-font-body);
	font-size: .9rem;
	width: 380px;
	max-width: 60vw;
	background: var(--brand-surface);
}
.ael-search-bar input[type="text"]:focus {
	outline: none;
	border-color: var(--brand-accent);
}
.ael-search-btn {
	padding: 11px 22px;
	background: var(--ast-global-color-0, #1a1a1a);
	color: #fff;
	border: none;
	border-radius: var(--brand-radius);
	font-family: var(--brand-font-body);
	font-size: .85rem;
	font-weight: 600;
	letter-spacing: .02em;
	cursor: pointer;
}
.ael-search-btn:hover {
	background: var(--ast-global-color-1, #333);
}

/* ===================================================================
   HORIZONTAL FILTER BAR (category + stock) + active filter pills
=================================================================== */
.ael-filter-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	align-items: flex-end;
	/* Only ever rendered on the shop page, inside .ael-shop-align, so no
	   own max-width/margin/horizontal-padding needed - see note above
	   .ael-search-bar. */
	margin-top: 12px;
	padding: 20px 22px;
	background: var(--brand-surface);
	border: 1px solid var(--brand-line);
	border-radius: var(--brand-radius);
	box-shadow: var(--ae-shadow);
}
/* DESIGN CHANGE (fashion-style pass): match the small-caps tracked
   label style used everywhere else on the homepage (see
   .ael-categories-heading) instead of a plain bold form label - reads
   as boutique signage, not a generic filter form. */
.ael-filter-bar .ael-filter-group label {
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--brand-ink-soft);
}
.ael-filter-bar select,
.ael-filter-bar input[type="number"] {
	font-family: var(--brand-font-body);
}
/* ael_render_category_pills() is called inside this same form (see
   content-filter-bar.php), so .ael-categories is a flex CHILD of
   .ael-filter-bar here - force it to take the full row width so it
   always sits on its own line above Stock/Price/Size/Filter results,
   instead of competing for space alongside them. Also strip the
   homepage-only padding/centering (.ael-categories further up this
   file) since the filter bar already handles its own spacing. */
.ael-filter-bar .ael-categories {
	flex: 1 1 100%;
	padding: 0;
	margin: 0;
	max-width: none;
}

.ael-filter-bar select {
	padding: 8px 10px;
	border: 1px solid var(--brand-line);
	border-radius: var(--brand-radius);
	font-size: .85rem;
	min-width: 170px;
}

.ael-active-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	/* Sits inside .ael-shop-align too - no own max-width/margin/padding. */
	margin-top: 12px;
}
.ael-filter-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: .78rem;
	background: #f0e6dd;
	color: var(--ast-global-color-3, #333);
	padding: 5px 10px 5px 12px;
	border-radius: 20px;
}
.ael-pill-x {
	color: #866;
	text-decoration: none;
	font-weight: 700;
	line-height: 1;
	padding: 2px 4px;
	font-size: .9rem;
}
.ael-pill-x:hover {
	color: #a00;
}
.ael-clear-all {
	font-size: .8rem;
	color: #999;
	text-decoration: underline;
	margin-left: 4px;
}

/* ===================================================================
   SHOP TWO-COLUMN LAYOUT (sidebar + product grid) - shop page only
=================================================================== */
.ael-shop-layout {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 32px;
	max-width: 1400px;
	margin: 24px auto 0;
	padding: 0 20px;
	align-items: start;
}
.ael-shop-sidebar {
	background: var(--brand-paper);
	border: 1px solid var(--brand-line);
	border-radius: var(--brand-radius);
	padding: 18px;
	position: sticky;
	top: 20px;
}
.ael-sidebar-form .ael-filter-group {
	margin-bottom: 20px;
}
.ael-sidebar-form label {
	display: block;
	font-size: .8rem;
	font-weight: 600;
	margin-bottom: 8px;
}
.ael-size-options-vertical {
	flex-direction: column;
	align-items: flex-start;
}
.ael-sidebar-apply {
	width: 100%;
	text-align: center;
}

.ael-shop-main {
	/* Also inside .ael-shop-align now - just needs its own top spacing. */
	margin-top: 24px;
}

.ael-shop-main .products,
.ael-shop-main ul.products {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (max-width: 768px) {
	.ael-shop-layout {
		grid-template-columns: 1fr;
	}
	.ael-shop-sidebar {
		position: static;
	}
}

/* ===================================================================
   HOMEPAGE ROW HEADERS + VIEW MORE LINKS
=================================================================== */
.ael-row-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 20px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--brand-line);
}
.ael-row-head h2 {
	margin: 0;
	position: relative;
}
/* Small accent mark before each section title - a cheap, recognizable
   "brand" touch that separates this from a stock WooCommerce heading. */
.ael-row-head h2::before {
	content: "";
	display: inline-block;
	width: 4px;
	height: 1.05em;
	margin-right: 10px;
	vertical-align: -2px;
	background: var(--ast-global-color-0, #a9724f);
	border-radius: 2px;
}
.ael-view-more {
	font-size: .85rem;
	font-weight: 600;
	color: var(--ast-global-color-0, #1a1a1a);
	text-decoration: none;
}
.ael-view-more:hover {
	text-decoration: underline;
}

@media (max-width: 600px) {
	.ael-shop-align {
		padding: 0 16px;
	}
	.ael-shop-hero {
		padding: 22px 0 14px;
		margin-bottom: 16px;
	}
	.ael-shop-toolbar {
		flex-direction: column;
		align-items: flex-start;
	}
	.ael-search-bar {
		justify-content: stretch;
		padding: 12px 0 0;
	}
	.ael-search-bar input[type="text"] {
		flex: 1;
		width: auto;
		max-width: none;
	}
	.ael-filter-bar {
		margin-top: 10px;
		padding: 12px;
	}
	.ael-active-filters {
		margin-top: 10px;
	}
}

/* ===================================================================
   NO PRODUCTS FOUND (keeps filters visible above it)
=================================================================== */
.ael-no-products {
	text-align: center;
	padding: 64px 20px;
	background: var(--brand-surface);
	border: 1px solid var(--brand-line);
	border-radius: var(--brand-radius);
	box-shadow: var(--ae-shadow);
}
.ael-no-products-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 16px;
	border-radius: 50%;
	background: var(--brand-paper);
	font-size: 1.4rem;
}
.ael-no-products h3 {
	margin: 0 0 8px;
	font-family: var(--brand-font-display);
	font-size: 1.3rem;
	font-weight: 500;
	color: var(--brand-ink);
}
.ael-no-products p {
	margin: 0 0 22px;
	color: var(--brand-ink-soft);
	font-size: .9rem;
}