/* ==========================================================================
   APSHA MART — Components (v1.1.0)
   Header · Drawer · Footer · Universal Product Card · Shop grid
   Uses only the tokens from apsha-global.css (which link to Elementor
   global variables). No new colors. Tints are White / Deep Navy at low opacity.
   Breakpoints match Elementor: tablet ≤1024px, mobile ≤767px.
   Revert: delete this file and its enqueue in inc/template-functions.php.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Page width (Hello Elementor's .site-main) + shop background
   -------------------------------------------------------------------------- */
body:not([class*="elementor-page-"]) .site-main {
	max-width: var(--apsha-container);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--apsha-gutter);
	padding-right: var(--apsha-gutter);
	padding-top: 32px;
	padding-bottom: 56px;
}

body.post-type-archive-product,
body.tax-product_cat,
body.tax-product_tag,
body.tax-product_brand,
body.woocommerce-page.search-results {
	background-color: var(--apsha-bg);
}

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

.apsha-icon {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

/* Screen-reader text (in case the parent theme's helper is missing) */
.apsha-header .screen-reader-text,
.apsha-cart-label.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;
}

/* --------------------------------------------------------------------------
   1. Header
   -------------------------------------------------------------------------- */
.apsha-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background-color: var(--apsha-navy);
	color: var(--apsha-white);
}

.admin-bar .apsha-header { top: 32px; }

@media (max-width: 782px) {
	.admin-bar .apsha-header { top: 46px; }
}

@media (max-width: 600px) {
	.admin-bar .apsha-header { top: 0; }
}

.apsha-header__row {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	grid-template-areas: "brand search actions";
	align-items: center;
	gap: 32px;
	min-height: 76px;
	padding-top: 12px;
	padding-bottom: 12px;
}

.apsha-header__brand {
	grid-area: brand;
	display: flex;
	align-items: center;
	min-width: 0;
}

/* Text wordmark (used until a header logo is set) */
.apsha-wordmark,
.apsha-wordmark:hover,
.apsha-wordmark:focus {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	font-family: var(--apsha-font);
	font-size: 24px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1;
	text-decoration: none;
	color: var(--apsha-white);
}

.apsha-wordmark__b {
	color: var(--apsha-border);
	font-weight: 600;
}

.apsha-header .custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.apsha-header .custom-logo {
	display: block;
	width: auto;
	max-height: 52px;
	border-radius: 8px;
}

/* Icon buttons (menu, account, cart) */
.apsha-header .apsha-icon-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 44px;
	min-height: 44px;
	padding: 0 10px;
	font-family: var(--apsha-font);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	color: var(--apsha-white);
	background-color: transparent;
	border: 0;
	border-radius: var(--apsha-radius-ui);
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.apsha-header .apsha-icon-btn:hover,
.apsha-header .apsha-icon-btn:focus {
	color: var(--apsha-white);
	background-color: rgba(255, 255, 255, 0.1);
	text-decoration: none;
}

.apsha-header .apsha-icon-btn:focus-visible {
	outline: 3px solid var(--apsha-white);
	outline-offset: 2px;
}

.apsha-header__menu-toggle {
	grid-area: toggle;
	display: none !important;
}

.apsha-header__actions {
	grid-area: actions;
	display: flex;
	align-items: center;
	gap: 4px;
}

.apsha-header__cart-icon {
	position: relative;
	display: inline-flex;
}

.apsha-cart-count {
	position: absolute;
	top: -8px;
	right: -10px;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background-color: var(--apsha-white);
	color: var(--apsha-navy);
	font-size: 12px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
	box-shadow: 0 0 0 2px var(--apsha-navy);
}

.apsha-cart-count[data-count="0"] {
	display: none;
}

/* Search */
.apsha-search {
	grid-area: search;
	display: flex;
	width: 100%;
	max-width: 640px;
	justify-self: center;
	margin: 0;
}

.apsha-header .apsha-search .apsha-search__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 44px;
	min-height: 44px;
	margin: 0;
	padding: 0 16px;
	font-size: 15px;
	color: var(--apsha-text);
	background-color: var(--apsha-white);
	border: 1px solid var(--apsha-white);
	border-right: 0;
	border-radius: var(--apsha-radius-ui) 0 0 var(--apsha-radius-ui);
	outline: 0;
}

.apsha-header .apsha-search .apsha-search__input:focus {
	border-color: var(--apsha-white);
	outline: 0;
	box-shadow: inset 0 0 0 2px var(--apsha-primary);
}

.apsha-header .apsha-search .apsha-search__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 44px;
	padding: 0;
	color: var(--apsha-white);
	background-color: var(--apsha-primary);
	border: 1px solid var(--apsha-primary);
	border-radius: 0 var(--apsha-radius-ui) var(--apsha-radius-ui) 0;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.apsha-header .apsha-search .apsha-search__btn:hover,
.apsha-header .apsha-search .apsha-search__btn:focus {
	color: var(--apsha-white);
	background-color: var(--apsha-navy);
	border-color: var(--apsha-white);
}

.apsha-header .apsha-search .apsha-search__btn:focus-visible {
	outline: 3px solid var(--apsha-white);
	outline-offset: 2px;
}

/* Navigation bar (desktop) */
.apsha-header__nav {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.apsha-header__nav-row {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 56px;
}

.apsha-allcats {
	position: relative;
	flex-shrink: 0;
}

.apsha-header .apsha-allcats__toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	font-family: var(--apsha-font);
	font-size: 15px;
	font-weight: 600;
	color: var(--apsha-white);
	background-color: var(--apsha-primary);
	border: 1px solid var(--apsha-primary);
	border-radius: var(--apsha-radius-ui);
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.apsha-header .apsha-allcats__toggle .apsha-icon {
	width: 20px;
	height: 20px;
}

.apsha-header .apsha-allcats__toggle:hover,
.apsha-header .apsha-allcats__toggle:focus,
.apsha-header .apsha-allcats__toggle[aria-expanded="true"] {
	color: var(--apsha-white);
	background-color: var(--apsha-navy);
	border-color: var(--apsha-white);
}

.apsha-header .apsha-allcats__toggle:focus-visible {
	outline: 3px solid var(--apsha-white);
	outline-offset: 2px;
}

.apsha-allcats__panel {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 20;
	min-width: 260px;
	padding: 8px;
	background-color: var(--apsha-white);
	border: 1px solid var(--apsha-border);
	border-radius: var(--apsha-radius-card);
	box-shadow: var(--apsha-shadow);
}

.apsha-allcats__panel[hidden] {
	display: none;
}

.apsha-catlist,
.apsha-catlist ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.apsha-catlist ul {
	padding-left: 12px;
}

.apsha-catlist a {
	display: block;
	padding: 10px 12px;
	border-radius: var(--apsha-radius-ui);
	font-size: 15px;
	font-weight: 500;
	color: var(--apsha-text);
	text-decoration: none;
}

.apsha-catlist a:hover,
.apsha-catlist a:focus {
	color: var(--apsha-primary);
	background-color: var(--apsha-bg);
	text-decoration: none;
}

.apsha-catlist .current-cat > a {
	color: var(--apsha-primary);
	font-weight: 600;
}

.apsha-nav {
	min-width: 0;
}

.apsha-menu,
.apsha-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.apsha-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
}

.apsha-menu > li {
	position: relative;
}

.apsha-menu > li > a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 12px;
	border-radius: var(--apsha-radius-ui);
	font-size: 15px;
	font-weight: 500;
	color: var(--apsha-white);
	text-decoration: none;
	white-space: nowrap;
}

.apsha-menu > li > a:hover,
.apsha-menu > li > a:focus,
.apsha-menu > li:focus-within > a {
	color: var(--apsha-white);
	background-color: rgba(255, 255, 255, 0.1);
	text-decoration: none;
}

.apsha-menu > li > a:focus-visible {
	outline: 3px solid var(--apsha-white);
	outline-offset: 2px;
}

.apsha-menu > .current-menu-item > a,
.apsha-menu > .current-menu-ancestor > a {
	box-shadow: inset 0 -2px 0 var(--apsha-white);
}

.apsha-menu > .menu-item-has-children > a::after {
	content: "";
	width: 7px;
	height: 7px;
	margin-top: -3px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
}

.apsha-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 20;
	min-width: 220px;
	padding: 8px;
	background-color: var(--apsha-white);
	border: 1px solid var(--apsha-border);
	border-radius: var(--apsha-radius-card);
	box-shadow: var(--apsha-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.apsha-menu > li:hover > .sub-menu,
.apsha-menu > li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.apsha-menu .sub-menu a {
	display: block;
	padding: 10px 12px;
	border-radius: var(--apsha-radius-ui);
	font-size: 15px;
	color: var(--apsha-text);
	text-decoration: none;
}

.apsha-menu .sub-menu a:hover,
.apsha-menu .sub-menu a:focus {
	color: var(--apsha-primary);
	background-color: var(--apsha-bg);
	text-decoration: none;
}

/* Tablet + mobile header */
@media (max-width: 1024px) {
	.apsha-header__row {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas:
			"toggle brand actions"
			"search search search";
		gap: 10px 8px;
		min-height: 0;
		padding-top: 8px;
		padding-bottom: 12px;
	}

	.apsha-header__menu-toggle {
		display: inline-flex !important;
		margin-left: -10px;
	}

	.apsha-search {
		max-width: none;
	}

	.apsha-header__nav {
		display: none;
	}

	/* Labels stay readable for screen readers but are hidden visually */
	.apsha-header__label {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
	}

	.apsha-header__actions {
		margin-right: -10px;
	}
}

@media (max-width: 767px) {
	.apsha-wordmark {
		font-size: 20px;
	}

	.apsha-header .custom-logo {
		max-height: 40px;
	}
}

/* --------------------------------------------------------------------------
   2. Mobile drawer
   -------------------------------------------------------------------------- */
.apsha-drawer[hidden] {
	display: none;
}

.apsha-drawer {
	position: fixed;
	inset: 0;
	z-index: 100000;
}

/* Keep the drawer below the WordPress admin bar (logged-in admins only) */
.admin-bar .apsha-drawer { top: 32px; }

@media (max-width: 782px) {
	.admin-bar .apsha-drawer { top: 46px; }
}

.apsha-drawer__overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(16, 42, 67, 0.6);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.apsha-drawer__panel {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	width: min(86vw, 360px);
	padding: 0 0 24px;
	overflow-y: auto;
	color: var(--apsha-text);
	background-color: var(--apsha-white);
	transform: translateX(-100%);
	transition: transform 0.2s ease;
}

.apsha-drawer.is-open .apsha-drawer__overlay { opacity: 1; }
.apsha-drawer.is-open .apsha-drawer__panel { transform: none; }

@media (prefers-reduced-motion: reduce) {
	.apsha-drawer__overlay,
	.apsha-drawer__panel,
	.apsha-menu .sub-menu {
		transition: none;
	}
}

.apsha-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 8px 8px 16px;
	background-color: var(--apsha-navy);
}

.apsha-drawer__title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: var(--apsha-white);
}

.apsha-drawer-menu,
.apsha-drawer-menu .sub-menu,
.apsha-drawer__panel .apsha-catlist {
	list-style: none;
	margin: 0;
	padding: 0;
}

.apsha-drawer-menu a,
.apsha-drawer__panel .apsha-catlist a,
.apsha-drawer__account {
	display: flex;
	align-items: center;
	min-height: 48px;
	padding: 0 16px;
	border-bottom: 1px solid var(--apsha-border);
	border-radius: 0;
	font-size: 16px;
	font-weight: 500;
	color: var(--apsha-text);
	text-decoration: none;
}

.apsha-drawer-menu .sub-menu a,
.apsha-drawer__panel .apsha-catlist .children a {
	padding-left: 32px;
	font-size: 15px;
	font-weight: 400;
}

.apsha-drawer-menu a:hover,
.apsha-drawer-menu a:focus,
.apsha-drawer__panel .apsha-catlist a:hover,
.apsha-drawer__panel .apsha-catlist a:focus,
.apsha-drawer__account:hover,
.apsha-drawer__account:focus {
	color: var(--apsha-primary);
	background-color: var(--apsha-bg);
	text-decoration: none;
}

.apsha-drawer__subtitle {
	margin: 0;
	padding: 20px 16px 8px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--apsha-primary);
}

.apsha-drawer__account {
	margin-top: 16px;
	border-top: 1px solid var(--apsha-border);
	font-weight: 600;
	color: var(--apsha-primary);
}

/* --------------------------------------------------------------------------
   3. Footer
   -------------------------------------------------------------------------- */
.apsha-footer {
	color: var(--apsha-border);
	background-color: var(--apsha-navy);
	font-size: 15px;
	line-height: 1.6;
}

.apsha-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
	gap: 40px;
	padding-top: 56px;
	padding-bottom: 48px;
}

.apsha-footer__heading {
	margin: 0 0 16px;
	font-family: var(--apsha-font);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--apsha-white);
}

.apsha-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.apsha-footer li + li {
	margin-top: 8px;
}

.apsha-footer a {
	color: var(--apsha-border);
	text-decoration: none;
}

.apsha-footer a:hover,
.apsha-footer a:focus {
	color: var(--apsha-white);
	text-decoration: underline;
}

.apsha-footer a:focus-visible {
	outline: 2px solid var(--apsha-white);
	outline-offset: 2px;
}

.apsha-footer .apsha-wordmark,
.apsha-footer .apsha-wordmark:hover {
	text-decoration: none;
}

.apsha-footer .custom-logo {
	display: block;
	width: auto;
	max-height: 56px;
	border-radius: 8px;
}

.apsha-footer__tagline {
	margin: 16px 0 8px;
	font-weight: 600;
	color: var(--apsha-white);
}

.apsha-footer__text {
	margin: 0;
	max-width: 320px;
}

.apsha-footer__k {
	font-weight: 600;
	color: var(--apsha-white);
}

.apsha-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.apsha-footer__bottom-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	padding-top: 20px;
	padding-bottom: 20px;
	font-size: 14px;
}

.apsha-footer__bottom-row p {
	margin: 0;
}

@media (max-width: 1024px) {
	.apsha-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 32px;
		padding-top: 48px;
		padding-bottom: 40px;
	}

	.apsha-footer__about {
		grid-column: 1 / -1;
	}
}

@media (max-width: 767px) {
	.apsha-footer__grid {
		gap: 28px 16px;
		padding-top: 40px;
		padding-bottom: 32px;
	}

	.apsha-footer li + li {
		margin-top: 4px;
	}

	.apsha-footer__col a {
		display: inline-block;
		padding: 6px 0;
	}

	.apsha-footer__bottom-row {
		flex-direction: column;
	}
}

/* --------------------------------------------------------------------------
   4. Shop grid (4 / 3 / 2 columns)
   -------------------------------------------------------------------------- */
.woocommerce ul.products,
.woocommerce-page ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin: 0 0 40px;
	padding: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
	display: none;
}

.woocommerce ul.products[class*="columns-"] li.product,
.woocommerce-page ul.products[class*="columns-"] li.product,
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	display: flex;
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
	clear: none;
}

@media (max-width: 1024px) {
	.woocommerce ul.products,
	.woocommerce-page ul.products {
		grid-template-columns: repeat(var(--apsha-grid-cols-tablet), minmax(0, 1fr)); /* v1.5.9 token */
		gap: 20px;
	}
}

@media (max-width: 767px) {
	.woocommerce ul.products,
	.woocommerce-page ul.products {
		grid-template-columns: repeat(var(--apsha-grid-cols-mobile), minmax(0, 1fr)); /* v1.5.9 token */
		gap: 12px;
	}
}

/* --------------------------------------------------------------------------
   5. Universal Product Card
   -------------------------------------------------------------------------- */
.apsha-pcard {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	background-color: var(--apsha-white);
	border: 1px solid var(--apsha-border);
	border-radius: var(--apsha-radius-card);
	overflow: hidden;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.apsha-pcard:hover,
.apsha-pcard:focus-within {
	border-color: var(--apsha-primary);
	box-shadow: var(--apsha-shadow);
}

.woocommerce ul.products li.product .apsha-pcard__media,
.apsha-pcard__media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	background-color: var(--apsha-bg);
	overflow: hidden;
}

.woocommerce ul.products li.product .apsha-pcard__media img,
.apsha-pcard__media img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: contain;
}

.apsha-pcard__badges {
	position: absolute;
	top: 12px;
	left: 12px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
}

.apsha-tag {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--apsha-white);
	background-color: var(--apsha-primary);
}

.apsha-tag--navy {
	background-color: var(--apsha-navy);
}

.apsha-pcard__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: 6px;
	padding: 16px 16px 12px;
}

.apsha-pcard__brand {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--apsha-primary);
}

.woocommerce ul.products li.product .apsha-pcard__title,
.apsha-pcard__title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	min-height: 2.8em;
	margin: 0;
	padding: 0;
	overflow: hidden;
	font-family: var(--apsha-font);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--apsha-text);
}

.apsha-pcard__title a {
	color: inherit;
	text-decoration: none;
}

.apsha-pcard__title a:hover,
.apsha-pcard__title a:focus {
	color: var(--apsha-primary);
	text-decoration: none;
}

/* Whole card clickable through the title link */
.apsha-pcard__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.apsha-pcard__footer,
.apsha-pcard__footer .button,
.apsha-pcard__footer .added_to_cart {
	position: relative;
	z-index: 2;
}

.woocommerce ul.products li.product .apsha-pcard__rating,
.apsha-pcard__rating {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--apsha-text);
}

.apsha-pcard__rating .star-rating {
	margin: 0;
	font-size: 13px;
}

.apsha-pcard__excerpt {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	margin: 0;
	overflow: hidden;
	font-size: 14px;
	line-height: 1.5;
	color: var(--apsha-text);
}

.woocommerce ul.products li.product .apsha-pcard__price,
.apsha-pcard__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 8px;
	margin-top: auto;
	padding-top: 6px;
}

.woocommerce ul.products li.product .apsha-pcard__price .price,
.apsha-pcard__price .price {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 6px;
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--apsha-navy);
}

.woocommerce ul.products li.product .apsha-pcard__price .price del,
.apsha-pcard__price .price del {
	order: 2;
	font-size: 14px;
	font-weight: 400;
	color: var(--apsha-text);
	opacity: 0.6;
}

.woocommerce ul.products li.product .apsha-pcard__price .price ins,
.apsha-pcard__price .price ins {
	order: 1;
	font-weight: 700;
	text-decoration: none;
	background: none;
}

.apsha-pcard__off {
	font-size: 13px;
	font-weight: 600;
	color: var(--apsha-primary);
}

.apsha-pcard__stock {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}

.apsha-pcard__stock.is-in { color: var(--apsha-primary); }
.apsha-pcard__stock.is-out { color: var(--apsha-navy); }

.apsha-pcard__footer {
	padding: 0 16px 16px;
}

.woocommerce ul.products li.product .apsha-pcard__footer .button,
.apsha-pcard__footer .button {
	display: flex;
	width: 100%;
	margin: 0;
	text-align: center;
}

.woocommerce ul.products li.product .apsha-pcard__footer .button.is-disabled,
.apsha-pcard__footer .button.is-disabled,
.apsha-pcard__footer .button.is-disabled:hover {
	color: var(--apsha-text);
	background-color: var(--apsha-border);
	border-color: var(--apsha-border);
	opacity: 0.6;
	cursor: not-allowed;
	pointer-events: none;
}

.woocommerce ul.products li.product .apsha-pcard__footer .button.loading {
	opacity: 0.75;
}

.woocommerce ul.products li.product .apsha-pcard__footer .button.added::after {
	margin-left: 8px;
}

.woocommerce ul.products li.product .apsha-pcard__footer a.added_to_cart,
.apsha-pcard__footer a.added_to_cart {
	display: block;
	margin-top: 8px;
	padding: 6px 0;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	color: var(--apsha-primary);
}

@media (max-width: 767px) {
	.apsha-pcard__badges {
		top: 8px;
		left: 8px;
	}

	.apsha-pcard__body {
		gap: 4px;
		padding: 12px 12px 10px;
	}

	.woocommerce ul.products li.product .apsha-pcard__title,
	.apsha-pcard__title {
		font-size: 14px;
	}

	.apsha-pcard__excerpt {
		display: none;
	}

	.woocommerce ul.products li.product .apsha-pcard__price .price,
	.apsha-pcard__price .price {
		font-size: 16px;
	}

	.apsha-pcard__footer {
		padding: 0 12px 12px;
	}

	.woocommerce ul.products li.product .apsha-pcard__footer .button,
	.apsha-pcard__footer .button {
		padding: 10px 8px;
		font-size: 14px;
	}
}

/* --------------------------------------------------------------------------
   6. Shop toolbar + pagination (basic; full shop layout comes in Phase 4)
   -------------------------------------------------------------------------- */
.woocommerce .woocommerce-result-count {
	margin: 0 0 20px;
	font-size: 14px;
	color: var(--apsha-text);
}

.woocommerce .woocommerce-ordering {
	margin: 0 0 20px;
}

.woocommerce nav.woocommerce-pagination ul {
	display: inline-flex;
	gap: 6px;
	border: 0;
}

.woocommerce nav.woocommerce-pagination ul li {
	border: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	min-width: 44px;
	min-height: 44px;
	padding: 12px;
	border: 1px solid var(--apsha-border);
	border-radius: var(--apsha-radius-ui);
	background-color: var(--apsha-white);
	color: var(--apsha-text);
	line-height: 1.2;
}

.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li a:focus {
	color: var(--apsha-white);
	background-color: var(--apsha-primary);
	border-color: var(--apsha-primary);
}
