/*!
 * A-List Club — modern enhancements layer.
 * Loaded after style.css. Adds design tokens, focus styles,
 * mobile-friendly nav, and accessibility improvements.
 */

:root {
	--ac-color-bg: #f6f6f6;
	--ac-color-fg: #000;
	--ac-color-fg-inverse: #fff;
	--ac-color-muted: #a0a0a0;
	--ac-color-border: #cecece;
	--ac-color-accent: #22a30f;
	--ac-color-accent-hover: #187d0d;
	--ac-color-danger: #db5151;
	--ac-color-surface: #fff;
	--ac-color-surface-alt: #efefef;

	--ac-font: Roboto, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
	--ac-fs-body: clamp(0.95rem, 0.9rem + 0.2vw, 1.0625rem);
	--ac-fs-h1: clamp(2rem, 1.4rem + 2.5vw, 3rem);
	--ac-fs-h2: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
	--ac-fs-h3: clamp(1.2rem, 1rem + 0.6vw, 1.5rem);

	--ac-space-xs: 0.25rem;
	--ac-space-sm: 0.5rem;
	--ac-space-md: 1rem;
	--ac-space-lg: 1.5rem;
	--ac-space-xl: 2.5rem;

	--ac-radius: 6px;
	--ac-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
	--ac-transition: 0.2s ease;

	--ac-tap-target: 44px;
}

/* ----------------------------------- *
 * Accessibility
 * ----------------------------------- */
.skip-link {
	position: absolute;
	top: -100px;
	left: 0;
	background: var(--ac-color-fg);
	color: var(--ac-color-fg-inverse);
	padding: var(--ac-space-sm) var(--ac-space-md);
	z-index: 100000;
	text-decoration: none;
}
.skip-link:focus {
	top: 0;
}

.screen-reader-text {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	width: 1px; height: 1px;
	overflow: hidden;
}
.screen-reader-text:focus {
	clip: auto;
	width: auto; height: auto;
	background: var(--ac-color-fg);
	color: var(--ac-color-fg-inverse);
	padding: var(--ac-space-sm) var(--ac-space-md);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var(--ac-color-fg);
	outline-offset: 2px;
}

nav#main-nav a:focus-visible,
nav#main-nav button:focus-visible {
	outline-color: var(--ac-color-fg-inverse);
}

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

/* ----------------------------------- *
 * Touch target minimums
 * ----------------------------------- */
nav#main-nav a,
nav#main-nav button,
section#footer a,
.category-menu-section ul li a {
	min-height: var(--ac-tap-target);
	display: inline-flex;
	align-items: center;
}

/* ----------------------------------- *
 * Mobile navigation toggle
 * ----------------------------------- */
.nav__toggle {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 10px;
	margin-left: auto;
	background: transparent;
	border: 0;
	cursor: pointer;
}
.nav__toggle-bar {
	display: block;
	width: 100%;
	height: 2px;
	background: var(--ac-color-fg-inverse);
	transition: transform var(--ac-transition), opacity var(--ac-transition);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
	opacity: 0;
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 999px) {
	nav#main-nav .nav__main-wrapper {
		display: none;
	}
	nav#main-nav .nav__main-wrapper.is-open {
		display: block;
		width: 100%;
	}
	nav#main-nav .nav__main-wrapper.is-open ul.link-list.list-row {
		flex-direction: column;
		align-items: stretch;
	}
	nav#main-nav .nav__main-wrapper.is-open ul.link-list.list-row li {
		border-top: 1px solid rgba(255, 255, 255, 0.1);
	}
}
@media (min-width: 1000px) {
	nav#main-nav .nav__toggle { display: none; }
	nav#main-nav .nav__main-wrapper ul.link-list.list-row { justify-content: center; }
	nav#main-nav .nav__account-wrapper ul.link-list.list-row { justify-content: flex-end; }
}

/* ----------------------------------- *
 * Touch-device submenu
 * ----------------------------------- */
@media (hover: none) {
	ul.link-list li.list-item ul.sub-menu { display: none; }
	ul.link-list li.list-item.submenu-open ul.sub-menu { display: block; }
	ul.link-list li.list-item:hover ul.sub-menu { display: none; }
	ul.link-list li.list-item.submenu-open:hover ul.sub-menu { display: block; }
}

/* ----------------------------------- *
 * Account dropdown — modern styling
 * ----------------------------------- */
nav#main-nav .nav__account-wrapper ul.link-list li.list-item.has-submenu ul.sub-menu {
	display: block;
	left: auto;
	right: 0;
	top: calc(100% - 4px);
	min-width: 180px;
	padding: 6px;
	background: var(--ac-color-surface);
	border: 1px solid var(--ac-color-border);
	border-radius: var(--ac-radius);
	box-shadow: var(--ac-shadow-md);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px) scale(0.98);
	transform-origin: top right;
	pointer-events: none;
	transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
}
nav#main-nav .nav__account-wrapper ul.link-list li.list-item.has-submenu:hover ul.sub-menu,
nav#main-nav .nav__account-wrapper ul.link-list li.list-item.has-submenu:focus-within ul.sub-menu,
nav#main-nav .nav__account-wrapper ul.link-list li.list-item.has-submenu.submenu-open ul.sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
	pointer-events: auto;
	transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0s;
}
nav#main-nav .nav__account-wrapper ul.link-list li.list-item.has-submenu ul.sub-menu li.list-item {
	border-bottom: 0;
	border-radius: calc(var(--ac-radius) - 2px);
	background: transparent;
	transition: background var(--ac-transition);
}
nav#main-nav .nav__account-wrapper ul.link-list li.list-item.has-submenu ul.sub-menu li.list-item a {
	color: var(--ac-color-fg);
	padding: 10px 14px;
	font-size: 0.95rem;
	min-height: 40px;
	display: flex;
	align-items: center;
	border-radius: inherit;
}
nav#main-nav .nav__account-wrapper ul.link-list li.list-item.has-submenu ul.sub-menu li.list-item:hover {
	background: var(--ac-color-surface-alt);
}
nav#main-nav .nav__account-wrapper ul.link-list li.list-item.has-submenu ul.sub-menu li.list-item:hover a {
	color: var(--ac-color-fg);
}

/* ----------------------------------- *
 * Fluid container
 * ----------------------------------- */
.container {
	width: min(100% - 2rem, 1200px);
	margin-inline: auto;
}

/* ----------------------------------- *
 * Search overlay (modal)
 * ----------------------------------- */
/* Search temporarily hidden from the nav — delete this rule to restore. */
#open-search-overlay {
	display: none;
}
section#search {
	display: none;
}
section#search.is-open {
	display: block;
}
section#search button#close-search-overlay {
	background: transparent;
	border: 0;
	color: var(--ac-color-fg-inverse);
	cursor: pointer;
}
section#search button#close-search-overlay:hover,
section#search button#close-search-overlay:focus-visible {
	color: var(--ac-color-danger);
}
section#search input#search-input {
	min-height: var(--ac-tap-target);
}

/* ----------------------------------- *
 * Images — responsive defaults
 * ----------------------------------- */
img {
	height: auto;
	max-width: 100%;
}

/* ----------------------------------- *
 * Buttons — modern hover/active
 * ----------------------------------- */
.btn,
button {
	min-height: var(--ac-tap-target);
}
.btn:focus-visible {
	outline: 2px solid var(--ac-color-fg);
	outline-offset: 2px;
}

/* ----------------------------------- *
 * WC products grid — fluid
 * ----------------------------------- */
@media (max-width: 600px) {
	section#store-area .store__products-wrapper #store__products .product-item {
		flex-basis: 100%;
		margin: 0 0 var(--ac-space-md) 0;
	}
}
@media (min-width: 601px) and (max-width: 999px) {
	section#store-area .store__products-wrapper #store__products .product-item {
		flex-basis: 48%;
	}
}

/* ----------------------------------- *
 * Product cards — modern hover
 * ----------------------------------- */
.woocommerce ul.products li.product:hover {
	box-shadow: var(--ac-shadow-md);
}

/* ----------------------------------- *
 * Homepage banner carousel
 * ----------------------------------- */
.banner-carousel {
	position: relative;
	overflow: hidden;
	background: var(--ac-color-fg);
	max-height: 50vh;
}
.banner-carousel__track {
	position: relative;
	width: 100%;
	aspect-ratio: 8 / 3;
}
@media (max-width: 739px) {
	.banner-carousel__track { aspect-ratio: 4 / 3; }
}
.banner-carousel__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.6s ease;
	pointer-events: none;
}
.banner-carousel__slide.is-active {
	opacity: 1;
	pointer-events: auto;
}
.banner-carousel__slide picture,
.banner-carousel__slide img,
.banner-carousel__link {
	display: block;
	width: 100%;
	height: 100%;
}
.banner-carousel__slide img {
	object-fit: cover;
}
.banner-carousel__link {
	text-decoration: none;
	color: inherit;
	position: relative;
}
.banner-carousel__caption {
	position: absolute;
	left: 5%;
	bottom: 8%;
	max-width: 90%;
	color: var(--ac-color-fg-inverse);
	text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.banner-carousel__heading {
	margin: 0;
	font-size: var(--ac-fs-h2);
	font-weight: 700;
}
.banner-carousel__subheading {
	margin: 0.25rem 0 0;
	font-size: var(--ac-fs-body);
}
.banner-carousel__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 0;
	background: rgba(0,0,0,0.45);
	color: var(--ac-color-fg-inverse);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background var(--ac-transition);
}
.banner-carousel__nav:hover,
.banner-carousel__nav:focus-visible {
	background: rgba(0,0,0,0.75);
}
.banner-carousel__prev { left: 1rem; }
.banner-carousel__next { right: 1rem; }
.banner-carousel__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0.75rem;
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	z-index: 2;
}
.banner-carousel__dot {
	width: 12px;
	height: 12px;
	min-height: 0;
	min-width: 0;
	padding: 0;
	box-sizing: content-box;
	border-radius: 50%;
	border: 2px solid var(--ac-color-fg-inverse);
	background: transparent;
	cursor: pointer;
	transition: background var(--ac-transition);
	flex: 0 0 auto;
}
.banner-carousel__dot.is-active,
.banner-carousel__dot:hover {
	background: var(--ac-color-fg-inverse);
}
@media (max-width: 600px) {
	.banner-carousel__nav { display: none; }
	.banner-carousel__caption { bottom: 1.5rem; }
}

/* ----------------------------------- *
 * Forms
 * ----------------------------------- */
input, select, textarea, button {
	font: inherit;
}
input[type="text"], input[type="search"], input[type="email"], textarea {
	min-height: var(--ac-tap-target);
}

/* ----------------------------------- *
 * My Account — modern layout & nav
 * ----------------------------------- */
#page-content.is-account {
	background: var(--ac-color-bg);
	padding: var(--ac-space-xl) 0;
}
#page-content .col-full {
	flex-basis: 100%;
	width: 100%;
}
/* Logged-in dashboard — sidebar nav + content grid. Scoped to
   .logged-in so it never applies to the logged-out login/register
   page, whose markup is a single #customer_login block. */
.woocommerce-account.logged-in .woocommerce {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: var(--ac-space-xl);
	align-items: start;
}
.woocommerce-account.logged-in .woocommerce > .woocommerce-notices-wrapper {
	grid-column: 1 / -1;
}
.woocommerce-account.logged-in .woocommerce > .woocommerce-MyAccount-navigation {
	grid-column: 1;
	width: auto;
	float: none;
}
.woocommerce-account.logged-in .woocommerce > .woocommerce-MyAccount-content {
	grid-column: 2;
	width: auto;
	float: none;
}
@media (max-width: 899px) {
	.woocommerce-account.logged-in .woocommerce {
		grid-template-columns: 1fr;
		gap: var(--ac-space-lg);
	}
	.woocommerce-account.logged-in .woocommerce > .woocommerce-MyAccount-navigation,
	.woocommerce-account.logged-in .woocommerce > .woocommerce-MyAccount-content {
		grid-column: 1;
	}
}

nav.woocommerce-MyAccount-navigation {
	background: var(--ac-color-surface);
	border: 1px solid var(--ac-color-border);
	border-radius: var(--ac-radius);
	padding: var(--ac-space-sm);
	box-shadow: var(--ac-shadow-md);
	position: sticky;
	top: var(--ac-space-md);
}
@media (max-width: 899px) {
	nav.woocommerce-MyAccount-navigation { position: static; }
}
nav.woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0 !important;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
nav.woocommerce-MyAccount-navigation ul li {
	margin: 0;
	background: transparent;
	border: 0;
	border-radius: calc(var(--ac-radius) - 2px);
	transition: background var(--ac-transition);
}
nav.woocommerce-MyAccount-navigation ul li a {
	display: flex;
	align-items: center;
	gap: var(--ac-space-sm);
	padding: 10px 14px;
	color: var(--ac-color-fg);
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 500;
	border-radius: inherit;
	min-height: 40px;
	position: relative;
}
nav.woocommerce-MyAccount-navigation ul li a::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ac-color-border);
	flex: 0 0 auto;
	transition: background var(--ac-transition), transform var(--ac-transition);
}
nav.woocommerce-MyAccount-navigation ul li:hover {
	background: var(--ac-color-surface-alt);
}
nav.woocommerce-MyAccount-navigation ul li:hover a::before {
	background: var(--ac-color-fg);
}
nav.woocommerce-MyAccount-navigation ul li.is-active {
	background: var(--ac-color-fg);
}
nav.woocommerce-MyAccount-navigation ul li.is-active > a,
nav.woocommerce-MyAccount-navigation ul li > a[aria-current="page"] {
	color: var(--ac-color-fg-inverse);
}
nav.woocommerce-MyAccount-navigation ul li.is-active > a::before,
nav.woocommerce-MyAccount-navigation ul li > a[aria-current="page"]::before {
	background: var(--ac-color-fg-inverse);
	transform: scale(1.2);
}
nav.woocommerce-MyAccount-navigation ul li:has(> a[aria-current="page"]) {
	background: var(--ac-color-fg);
}
nav.woocommerce-MyAccount-navigation ul li[class*="--logout"] > a {
	margin-top: var(--ac-space-sm);
	border-top: 1px solid var(--ac-color-border);
	border-radius: 0 0 calc(var(--ac-radius) - 2px) calc(var(--ac-radius) - 2px);
	color: var(--ac-color-muted);
}
nav.woocommerce-MyAccount-navigation ul li[class*="--logout"]:hover > a {
	color: var(--ac-color-fg);
}

.woocommerce-MyAccount-content {
	background: var(--ac-color-surface);
	border: 1px solid var(--ac-color-border);
	border-radius: var(--ac-radius);
	padding: var(--ac-space-lg) var(--ac-space-xl);
	box-shadow: var(--ac-shadow-md);
	min-width: 0;
}
@media (max-width: 600px) {
	.woocommerce-MyAccount-content { padding: var(--ac-space-md); }
}
.woocommerce-MyAccount-content > p:first-child {
	font-size: 1.05rem;
}

/* ----------------------------------- *
 * My Account — logged-out login / register
 * ----------------------------------- */
#customer_login {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--ac-space-xl);
	align-items: start;
	max-width: 900px;
	margin: 0 auto;
}
/* WooCommerce adds a clearfix ::before/::after to .col2-set. As a grid
   container those pseudo-elements become grid items and push the real
   Login/Register columns out of place — so drop them from the grid. */
#customer_login::before,
#customer_login::after {
	display: none;
}
@media (max-width: 720px) {
	#customer_login {
		grid-template-columns: 1fr;
		gap: var(--ac-space-lg);
	}
}
#customer_login .col-1,
#customer_login .col-2 {
	float: none;
	width: auto;
	margin: 0;
}
#customer_login h2 {
	margin: 0 0 var(--ac-space-md);
	font-size: var(--ac-fs-h3);
}
#customer_login form.login,
#customer_login form.register {
	margin: 0;
	padding: var(--ac-space-lg) var(--ac-space-xl);
	box-sizing: border-box;
	background: var(--ac-color-surface);
	border: 1px solid var(--ac-color-border);
	border-radius: var(--ac-radius);
	box-shadow: var(--ac-shadow-md);
}
@media (max-width: 600px) {
	#customer_login form.login,
	#customer_login form.register {
		padding: var(--ac-space-lg) var(--ac-space-md);
	}
}
#customer_login .form-row {
	margin: 0 0 var(--ac-space-md);
}
#customer_login label:not(.woocommerce-form__label-for-checkbox) {
	display: block;
	margin-bottom: var(--ac-space-xs);
	font-weight: 500;
}
#customer_login input.input-text {
	width: 100%;
	box-sizing: border-box;
	min-height: var(--ac-tap-target);
	padding: 0.6rem 0.75rem;
	background: var(--ac-color-surface);
	border: 1px solid var(--ac-color-border);
	border-radius: var(--ac-radius);
	transition: border-color var(--ac-transition), box-shadow var(--ac-transition);
}
#customer_login input.input-text:focus {
	outline: none;
	border-color: var(--ac-color-fg);
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}
#customer_login .password-input {
	display: block;
	position: relative;
}
#customer_login .woocommerce-form-login__rememberme {
	display: flex;
	align-items: center;
	gap: var(--ac-space-sm);
	font-weight: 400;
}
#customer_login .woocommerce-form-login__rememberme .woocommerce-form__input-checkbox {
	width: auto;
	min-height: 0;
	margin: 0;
}
#customer_login .button {
	width: 100%;
}
#customer_login .woocommerce-LostPassword {
	margin: var(--ac-space-md) 0 0;
	font-size: 0.9rem;
}
#customer_login .woocommerce-privacy-policy-text {
	margin-top: var(--ac-space-sm);
	font-size: 0.85rem;
	color: var(--ac-color-muted);
}

/* ----------------------------------- *
 * FAQ page — search & list
 * ----------------------------------- */
.faq-page {
	display: flex;
	flex-direction: column;
	gap: var(--ac-space-lg);
}
.faq-search {
	position: sticky;
	top: 0;
	background: var(--ac-color-surface);
	padding: var(--ac-space-sm) 0;
	/* Sit above the relative-positioned nav (z:9999) so the search input
	   never gets covered when scrolling, but stay below the search modal (10000). */
	z-index: 9999;
}
.faq-search__input {
	width: 100%;
	box-sizing: border-box;
	padding: 0.85rem 1rem;
	font-size: 1.1rem;
	border: 1px solid var(--ac-color-border);
	border-radius: var(--ac-radius);
	background: var(--ac-color-surface);
	transition: border-color var(--ac-transition), box-shadow var(--ac-transition);
}
.faq-search__input:focus {
	outline: none;
	border-color: var(--ac-color-fg);
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}
.faq-list {
	display: flex;
	flex-direction: column;
	gap: var(--ac-space-md);
}
.faq-item {
	margin-bottom: 0;
	padding: var(--ac-space-md) var(--ac-space-lg);
	background: var(--ac-color-surface);
	border: 1px solid var(--ac-color-border);
	border-radius: var(--ac-radius);
	transition: box-shadow var(--ac-transition), transform var(--ac-transition);
}
.faq-item:hover {
	box-shadow: var(--ac-shadow-md);
}
.faq-item h3 {
	margin: 0 0 var(--ac-space-sm);
	font-size: var(--ac-fs-h3);
}
.faq-item__answer > *:last-child {
	margin-bottom: 0;
}
.faq-empty {
	color: var(--ac-color-muted);
	font-style: italic;
	margin: 0;
}

/* ----------------------------------- *
 * Flash Notice modal
 * ----------------------------------- */
.flash-notice {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(0, 0, 0, 0.55);
	align-items: center;
	justify-content: center;
	padding: 1rem;
	overflow-y: auto;
}

.flash-notice.is-open {
	display: flex;
}

.flash-notice__dialog {
	position: relative;
	background: #fff;
	color: #1a1a1a;
	max-width: 560px;
	width: 100%;
	border-radius: 8px;
	padding: 2.25rem 1.75rem 1.75rem;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
	animation: flash-notice-in 0.25s ease-out;
}

@keyframes flash-notice-in {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: translateY(0); }
}

.flash-notice__close {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	background: transparent;
	border: 0;
	color: #555;
	cursor: pointer;
	padding: 0.25rem 0.5rem;
	line-height: 1;
}
.flash-notice__close:hover { color: #000; }

.flash-notice__message {
	font-size: 1rem;
	line-height: 1.55;
	margin-bottom: 1.25rem;
}
.flash-notice__message > *:first-child { margin-top: 0; }
.flash-notice__message > *:last-child  { margin-bottom: 0; }
.flash-notice__message img { max-width: 100%; height: auto; }

.flash-notice__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-top: 0.5rem;
}

.flash-notice__button {
	display: inline-block;
	padding: 0.7rem 1.25rem;
	border-radius: 4px;
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.2;
	transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.flash-notice__button:hover,
.flash-notice__button:focus {
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
	filter: brightness(1.05);
}

@media (max-width: 480px) {
	.flash-notice__dialog { padding: 2rem 1.25rem 1.25rem; }
	.flash-notice__button { width: 100%; text-align: center; }
}

/* ----------------------------------- *
 * Side product nav — modernised + sticky
 * ----------------------------------- */

/* Stretch the left column so #sidebar (position: sticky) has scroll room
   inside its flex parent. The .row uses align-items: flex-start, which
   would otherwise size the col-left to its content. */
#page-content .col-left {
	align-self: stretch;
}

#sidebar {
	position: sticky;
	top: var(--ac-space-md);
	align-self: start;
}

#sidebar .category-menu-section {
	width: 100%;
	margin: 0 0 var(--ac-space-md);
	padding: var(--ac-space-xs) 0;
	background: var(--ac-color-surface);
	border: 1px solid var(--ac-color-border);
	border-radius: var(--ac-radius);
	box-shadow: var(--ac-shadow-md);
	overflow: hidden;
}

#sidebar .category-menu-section ul {
	list-style: none;
	margin: 0 !important;
	padding: 0;
}

#sidebar .category-menu-section ul li {
	position: relative;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--ac-color-border);
	transition: background var(--ac-transition);
}

#sidebar .category-menu-section ul li:last-child {
	border-bottom: 0;
}

#sidebar .category-menu-section ul li a {
	display: block;
	padding: 0.75rem var(--ac-space-md);
	color: var(--ac-color-fg);
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 500;
	transition: color var(--ac-transition);
}

#sidebar .category-menu-section ul li:hover {
	background: var(--ac-color-surface-alt);
}

#sidebar .category-menu-section ul li:hover a {
	color: var(--ac-color-fg);
}

/* Override the legacy "> " text indicator with a clean chevron. */
#sidebar .category-menu-section ul li.menu-item-has-children::after {
	content: "›";
	font-size: 1.25rem;
	line-height: 1;
	color: var(--ac-color-muted);
	right: var(--ac-space-md);
	top: 50%;
	transform: translateY(-50%);
}

#sidebar .category-menu-section ul li:hover.menu-item-has-children::after {
	color: var(--ac-color-fg);
}

/* Submenu (flyout to the right of the sidebar) */
#sidebar .category-menu-section ul li ul.sub-menu {
	background: var(--ac-color-surface);
	border: 1px solid var(--ac-color-border);
	border-radius: var(--ac-radius);
	box-shadow: var(--ac-shadow-md);
	overflow: hidden;
	min-width: 200px;
	right: auto;
	left: 100%;
	margin-left: 4px;
}

#sidebar .category-menu-section ul li ul.sub-menu li {
	background: transparent;
	border-bottom: 1px solid var(--ac-color-border);
}

#sidebar .category-menu-section ul li ul.sub-menu li:last-child {
	border-bottom: 0;
}

#sidebar .category-menu-section ul li ul.sub-menu li a {
	color: var(--ac-color-fg);
}

#sidebar .category-menu-section ul li ul.sub-menu li:hover {
	background: var(--ac-color-surface-alt);
}

@media (max-width: 999px) {
	#page-content .col-left {
		align-self: auto;
	}
	#sidebar {
		position: static;
	}
}

/* ----------------------------------- *
 * Layout tuning — narrower side nav, breathing room, larger hero search
 * ----------------------------------- */

/* Slim down the product nav and give the content room to breathe. */
@media screen and (min-width: 740px) {
	#page-content .col-left,
	section#store-area .col-left {
		flex-basis: 28%;
		padding-right: var(--ac-space-lg);
	}
	#page-content .col-right,
	section#store-area .col-right {
		flex-basis: 72%;
	}
}

@media screen and (min-width: 1000px) {
	#page-content .col-left,
	section#store-area .col-left {
		flex-basis: 24%;
		padding-right: var(--ac-space-xl);
	}
	#page-content .col-right,
	section#store-area .col-right {
		flex-basis: 76%;
	}
}

/* Tighter, more compact menu items in the sidebar. */
#sidebar .category-menu-section ul li a {
	padding: 0.55rem var(--ac-space-md);
	font-size: 0.9rem;
}

/* Beefier homepage search field. */
section#store-area .store__search-wrapper {
	margin-bottom: var(--ac-space-lg);
}

section#store-area .store__search-wrapper .form-input,
.input-group input[type="text"].form-input#main-search,
.input-group input[type="search"]#main-search {
	padding: 1rem 1.25rem;
	font-size: 1.125rem;
	border-radius: var(--ac-radius);
	border: 1px solid var(--ac-color-border);
	box-shadow: var(--ac-shadow-md);
	width: 100%;
	box-sizing: border-box;
}

section#store-area .store__search-wrapper .form-input:focus,
.input-group input[type="search"]#main-search:focus {
	outline: none;
	border-color: var(--ac-color-fg);
}

/* ---------- Homepage Store grid (overrides legacy compiled style.css) ---------- */

section#store-area .store__search-sticky {
	position: sticky;
	top: 0;
	z-index: 5;
	background: #fff;
	padding: 10px 0;
	margin-bottom: 10px;
	border-bottom: 1px solid #eee;
}

section#store-area .store__products-wrapper {
	margin-top: 10px;
}

section#store-area .store__products-wrapper #store__products {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: stretch;
	justify-content: flex-start;
}

section#store-area .store__products-wrapper #store__products.is-loading {
	opacity: 0.6;
	transition: opacity 0.15s ease;
}

section#store-area .store__products-wrapper #store__products .product-item {
	flex-basis: calc(50% - 10px);
	margin: 0;
	padding: 16px 10px 18px;
	outline: none;
	border: none;
	border-radius: 0;
	background: #fff;
	color: inherit;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	transition: background 0.2s ease;
}

section#store-area .store__products-wrapper #store__products .product-item .product-link {
	display: block;
	width: 100%;
	color: inherit;
	text-decoration: none;
}

@media screen and (min-width: 740px) {
	section#store-area .store__products-wrapper #store__products .product-item {
		flex-basis: calc(33.333% - 10px);
	}
}

@media screen and (min-width: 1000px) {
	section#store-area .store__products-wrapper #store__products .product-item {
		flex-basis: calc(25% - 10px);
	}
}

section#store-area .store__products-wrapper #store__products .product-item:hover {
	background: #fafafa;
}

section#store-area .store__products-wrapper #store__products .product-item .product-image {
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	padding: 8px 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto;
}

section#store-area .store__products-wrapper #store__products .product-item .product-image img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	transition: transform 0.25s ease;
}

section#store-area .store__products-wrapper #store__products .product-item:hover .product-image img {
	transform: scale(1.03);
}

section#store-area .store__products-wrapper #store__products .product-item .product-name {
	font-weight: 500;
	font-size: 0.95rem;
	margin-top: 14px;
	padding: 0;
	line-height: 1.3;
	color: #000;
}

section#store-area .store__products-wrapper #store__products .product-item .product-brand {
	font-size: 0.75rem;
	color: #999;
	margin-top: 2px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

section#store-area .store__products-wrapper #store__products .product-item .product-price {
	margin-top: 6px;
	font-size: 0.95rem;
	color: #000;
}

section#store-area .store__products-wrapper #store__products .product-item .product-cart {
	margin-top: 12px;
	width: 100%;
	display: flex;
	justify-content: center;
}

section#store-area .store__products-wrapper #store__products .product-item .product-cart .button,
section#store-area .store__products-wrapper #store__products .product-item .product-cart a.button,
section#store-area .store__products-wrapper #store__products .product-item .product-cart .added_to_cart {
	display: inline-block;
	padding: 8px 22px !important;
	background: #fff !important;
	color: #000 !important;
	border: 1px solid #000 !important;
	border-radius: 0 !important;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
	min-width: 0;
	width: auto;
	margin: 0;
	line-height: 1.2;
}

section#store-area .store__products-wrapper #store__products .product-item .product-cart .button:hover,
section#store-area .store__products-wrapper #store__products .product-item .product-cart a.button:hover {
	background: #000 !important;
	color: #fff !important;
}

section#store-area .store__products-wrapper #store__products .product-item .product-cart .added_to_cart {
	margin-top: 6px;
	font-size: 0.7rem;
	border: none !important;
	background: none !important;
	color: #22a30f !important;
	padding: 0 !important;
}

section#store-area .store__products-wrapper #store__products .store__empty,
section#store-area .store__products-wrapper #store__products .store__error {
	flex-basis: 100%;
	text-align: center;
	padding: 30px 0;
	color: #666;
}

/* ---------- Sidebar: sort + filter groups ---------- */

#sidebar .sidebar-group {
	margin-bottom: 24px;
	padding: 0 10px;
}

#sidebar .sidebar-heading {
	font-size: 0.95rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #000;
	margin: 0 0 10px;
	padding-bottom: 6px;
	border-bottom: 1px solid #e5e5e5;
}

#sidebar ul.sort-list {
	list-style: none;
	margin: 0 !important;
	padding: 0;
}

#sidebar ul.sort-list li {
	margin: 2px 0;
	background: none;
	border: none;
}

#sidebar .sort-btn {
	width: 100%;
	text-align: left;
	background: none;
	border: 0;
	padding: 8px 12px;
	font: inherit;
	color: #333;
	cursor: pointer;
	border-radius: 4px;
	transition: background 0.15s ease, color 0.15s ease;
}

#sidebar .sort-btn:hover {
	background: #f3f3f3;
}

#sidebar .sort-btn.is-active {
	background: #000;
	color: #fff;
	font-weight: 600;
}

#sidebar .filter-group {
	margin-top: 8px;
	border-top: 1px solid #f0f0f0;
	padding-top: 8px;
}

#sidebar .filter-group summary {
	cursor: pointer;
	padding: 6px 0;
	font-weight: 600;
	list-style: none;
	position: relative;
	padding-right: 20px;
}

#sidebar .filter-group summary::-webkit-details-marker { display: none; }

#sidebar .filter-group summary::after {
	content: "+";
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1rem;
	line-height: 1;
}

#sidebar .filter-group[open] summary::after { content: "−"; }

#sidebar .filter-group ul.filter-list {
	list-style: none;
	margin: 6px 0 4px !important;
	padding: 0;
	max-height: 220px;
	overflow-y: auto;
}

#sidebar .filter-group ul.filter-list li {
	margin: 4px 0;
	background: none;
	border: none;
}

#sidebar .filter-group ul.filter-list label {
	display: flex;
	gap: 8px;
	align-items: center;
	font-size: 0.9rem;
	cursor: pointer;
	padding: 2px 4px;
}

#sidebar .filter-group ul.filter-list label:hover { background: #f7f7f7; }

/* ---------- Sticky top nav ---------- */

nav#main-nav {
	position: sticky;
	top: 0;
	z-index: 9999;
}

/* ---------- Single product: full width (no sidebar) ---------- */

section#store-area .col-full {
	flex-basis: 100%;
	width: 100%;
}

/* Store search sits below the sticky nav. */
section#store-area .store__search-sticky {
	top: var(--ac-nav-height, 70px);
}

/* Sidebar tracks the sticky search bar at the same offset. */
section#store-area .col-left #sidebar {
	position: sticky;
	top: var(--ac-nav-height, 70px);
	align-self: flex-start;
	max-height: calc(100vh - var(--ac-nav-height, 70px));
	overflow-y: auto;
}

