:root {
	/* Brand colors — sourced from the BSmart logo */
	--asmart-green: #f2790f;        /* was #3d9a4a — now logo orange */
	--asmart-green-dark: #c9600d;   /* was #2f7d3a — darker orange for hover states */
	--asmart-green-soft: #fdf1e3;   /* was #eaf6ec — soft peach tint */
	--asmart-ink: #2b1a15;          /* was #1f2933 — warmer near-black, ties to logo's dark brown */
	--asmart-muted: #6b7280;
	--asmart-line: #ececec;
	--asmart-bg: #f6f7fb;
	--asmart-card: #ffffff;
	--asmart-sale: #c62828;         /* was #ef4444 — logo red */
	--asmart-star: #f0a71f;         /* was #f5b301 — logo gold */
	--asmart-purple: #3b1f1a;       /* was #5b3fd6 — replaced purple with logo's dark brown */
	--asmart-purple-dark: #2a1512;  /* was #4a32b8 */
	--asmart-radius: 16px;
	--asmart-shadow: 0 10px 30px rgba(31, 41, 51, 0.06);
	--asmart-max: 1320px;

	/* Footer — dark brown from the logo, orange accents */
	--asmart-footer-bg: linear-gradient(180deg, var(--asmart-purple) 0%, var(--asmart-purple-dark) 100%);
	--asmart-footer-text: rgba(255, 255, 255, 0.74);
	--asmart-footer-line: rgba(255, 255, 255, 0.12);

	/* Promo strip */
	--asmart-promo-bg-color: #fdf1e3;
	--asmart-promo-text: var(--asmart-green-dark);
	--asmart-promo-bg-image: url('../images/promo-delivery.png');

	--asmart-banner-one-bg: url('../images/content-home-1.jpg');
	--asmart-banner-two-bg: url('../images/content-home-2.jpg');
	--asmart-banner-three-bg: url('../images/content-home-3.jpg');
}


body.asmart-theme,
body.asmart-theme .site {
	background: var(--asmart-bg);
	color: var(--asmart-ink);
	font-family: "Inter", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.asmart-theme a {
	color: inherit;
}

body.asmart-nav-open {
	overflow: hidden;
}

body.asmart-theme #page {
	background: var(--asmart-bg);
}

body.asmart-theme .site-content,
body.home.asmart-theme #content.site-content,
body.asmart-theme #content {
	padding: 0;
	margin: 0;
	background: var(--asmart-bg);
}

body.asmart-theme #content > .ast-container {
	max-width: 100%;
	width: 100%;
	padding: 0;
	margin: 0;
}

body.home.asmart-theme .entry-header,
body.home.asmart-theme .ast-archive-description,
body.asmart-theme.home .ast-breadcrumbs-wrapper {
	display: none;
}

.asmart-wrap {
	width: min(var(--asmart-max), calc(100% - 32px));
	margin: 0 auto;
}

/* Top bar */
.asmart-topbar {
	background: #fff;
	border-bottom: 1px solid var(--asmart-line);
	font-size: 13px;
	color: var(--asmart-muted);
}

.asmart-topbar-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	min-height: 38px;
}

.asmart-topbar strong {
	color: var(--asmart-green);
	font-weight: 700;
}

.asmart-topbar-links {
	display: flex;
	gap: 18px;
}

.asmart-topbar a:hover {
	color: var(--asmart-green);
}

/* Header */
.asmart-header {
	background: #fff;
	border-bottom: 1px solid var(--asmart-line);
	position: sticky;
	top: 0;
	z-index: 1000;
}

/* Keep the sticky header below the WordPress admin bar when logged in. */
body.admin-bar .asmart-header {
	top: 32px;
}

.asmart-header a:focus-visible,
.asmart-header button:focus-visible,
.asmart-mobile-drawer a:focus-visible,
.asmart-mobile-drawer button:focus-visible {
	outline: 2px solid var(--asmart-green);
	outline-offset: 2px;
}

.asmart-header-main {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 24px;
	padding: 14px 0;
}

.asmart-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	text-decoration: none;
}

/*
 * The extra `img` in the selector matters: WooCommerce ships
 * `.woocommerce img, .woocommerce-page img { height: auto; max-width: 100% }`
 * for product/cart/shop pages, which beats a bare class selector and blows the
 * logo up to its natural 786px width there.
 */
.asmart-logo img.asmart-logo-mark {
	height: 56px;
	width: auto;
	max-width: none;
	flex: none;
	object-fit: contain;
	border-radius: 0;
	background: none;
	box-shadow: none;
}

.asmart-logo-word {
	font-size: 28px;
	font-weight: 800;
	letter-spacing: -0.04em;
	color: var(--asmart-green);
	line-height: 1;
}

.asmart-logo-word span {
	color: #222;
}

.asmart-search {
	position: relative;
}

.asmart-search form {
	display: flex;
	background: #f3f4f6;
	border-radius: 999px;
	overflow: hidden;
	border: 1px solid transparent;
}

.asmart-search form:focus-within {
	border-color: #cfe8d3;
	background: #fff;
}

.asmart-search input[type="search"] {
	flex: 1;
	min-width: 0;
	height: auto;
	border: 0;
	border-radius: 0;
	background: transparent;
	padding: 13px 20px;
	outline: none;
	font-size: 14px;
	box-shadow: none;
}

.asmart-search button {
	flex: none;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 0;
	padding: 0;
	background: var(--asmart-green);
	color: #fff;
	width: 52px;
	font-size: 18px;
	cursor: pointer;
}

.asmart-search button:hover {
	background: var(--asmart-green-dark);
}

.asmart-header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.asmart-icon-link {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	border-radius: 12px;
	text-decoration: none;
	position: relative;
}

.asmart-icon-link:hover {
	background: var(--asmart-green-soft);
}

.asmart-icon-bubble {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #f3f4f6;
	display: grid;
	place-items: center;
	font-size: 18px;
}

.asmart-icon-copy {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.asmart-icon-copy small {
	color: var(--asmart-muted);
	font-size: 11px;
}

.asmart-icon-copy b {
	font-size: 13px;
}

.asmart-cart-count {
	position: absolute;
	top: 4px;
	left: 34px;
	min-width: 18px;
	height: 18px;
	border-radius: 99px;
	background: var(--asmart-sale);
	color: #fff;
	font-size: 11px;
	display: grid;
	place-items: center;
	font-weight: 700;
}

.asmart-menu-toggle {
	display: none;
	flex: none;
	border: 0;
	background: #f3f4f6;
	color: var(--asmart-ink);
	width: 42px;
	height: 42px;
	padding: 0;
	border-radius: 10px;
	font-size: 22px;
	cursor: pointer;
}

.asmart-menu-toggle:hover {
	background: var(--asmart-green-soft);
	color: var(--asmart-green-dark);
}

/* Nav */
.asmart-nav {
	background: #fff;
	border-bottom: 1px solid var(--asmart-line);
}

.asmart-nav-inner {
	display: flex;
	align-items: center;
	gap: 18px;
	min-height: 52px;
}

.asmart-cat-btn {
	background: var(--asmart-green);
	color: #fff !important;
	border-radius: 10px;
	padding: 10px 16px;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}

.asmart-menu,
.asmart-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 22px;
}

.asmart-menu a {
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	color: #334155;
	padding: 16px 0;
	display: inline-block;
}

.asmart-menu a:hover,
.asmart-menu .current-menu-item > a {
	color: var(--asmart-green);
}

.asmart-nav-note {
	margin-left: auto;
	font-size: 13px;
	color: var(--asmart-muted);
}

.asmart-nav-note b {
	color: var(--asmart-ink);
}

.asmart-drawer-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	z-index: 1100;
}

.asmart-drawer-overlay.is-open,
.asmart-mobile-drawer.is-open {
	display: block;
}

.asmart-mobile-drawer {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	width: min(320px, 86vw);
	background: #fff;
	z-index: 1200;
	padding: 24px;
	box-shadow: 8px 0 30px rgba(0, 0, 0, 0.12);
	overflow: auto;
	overscroll-behavior: contain;
}

.asmart-drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.asmart-drawer-close {
	flex: none;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: #f3f4f6;
	color: var(--asmart-ink);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.asmart-mobile-drawer .asmart-menu {
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	margin-top: 20px;
}

.asmart-mobile-drawer .asmart-menu a {
	padding: 14px 0;
	width: 100%;
	border-bottom: 1px solid var(--asmart-line);
}

/* Homepage */
.asmart-home {
	/*
	 * Astra's `.ast-container` is a flex row, so without these the homepage sizes
	 * itself to its content's natural width (~1280px) and overflows any viewport
	 * narrower than that (e.g. a 1024px tablet or small laptop).
	 */
	flex: 1 1 100%;
	width: 100%;
	min-width: 0;
	padding: 24px 0 64px;
	/* Safety net so one wide child can never make the whole page scroll sideways; `clip` (unlike `hidden`) keeps the sticky header working. */
	overflow-x: clip;
}

.asmart-hero-slider {
	position: relative;
}

.asmart-hero-slide {
	display: none;
	background-color: var(--asmart-hero-bg, #f3efe9);
	background-size: cover;
	background-position: center;
	border-radius: 24px;
	min-height: 420px;
	padding: 42px 56px;
	overflow: hidden;
	position: relative;
}

.asmart-hero-slide::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, var(--asmart-hero-bg, #f3efe9) 0%, rgba(243, 239, 233, 0.92) 38%, rgba(243, 239, 233, 0.35) 62%, rgba(243, 239, 233, 0) 82%);
}

.asmart-hero-slide.is-active {
	display: flex;
	align-items: center;
}

.asmart-hero-slide > div {
	position: relative;
	z-index: 1;
	max-width: 540px;
}

.asmart-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--asmart-green);
	font-weight: 700;
	font-size: 13px;
	margin-bottom: 10px;
}

.asmart-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
	display: inline-block;
}

.asmart-icon {
	display: block;
}

.asmart-hero-slide h1,
.asmart-hero-slide h2.asmart-hero-title {
	font-size: clamp(28px, 4vw, 52px);
	line-height: 1.12;
	letter-spacing: -0.04em;
	margin: 0 0 12px;
	max-width: 540px;
	color: var(--asmart-hero-heading, #2b1210); /* was #2b1a54 */
}

.asmart-hero-slide p {
	color: var(--asmart-muted);
	max-width: 460px;
	margin: 0 0 22px;
}

.asmart-badge {
	display: inline-block;
	background: #fde3c8;   /* was #dcf3e2 */
	color: #b3540a;        /* was #1f7a3d */
	font-weight: 700;
	font-size: 12px;
	padding: 6px 14px;
	border-radius: 999px;
	margin-bottom: 16px;
}

.asmart-hero-cta-row {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-bottom: 10px;
}

.asmart-hero-price {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.asmart-hero-price-now {
	color: var(--asmart-sale);
	font-size: 22px;
	font-weight: 800;
}

.asmart-hero-price-was {
	color: var(--asmart-muted);
	font-size: 14px;
	font-weight: 500;
}

.asmart-hero-note {
	color: var(--asmart-muted);
	font-size: 12px;
	margin: 0 !important;
}

.asmart-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--asmart-green);
	color: #fff !important;
	text-decoration: none;
	border-radius: 999px;
	padding: 12px 22px;
	font-weight: 700;
	font-size: 14px;
	border: 0;
	cursor: pointer;
}

.asmart-btn:hover {
	background: var(--asmart-green-dark);
}

.asmart-btn-outline {
	background: #fff;
	color: var(--asmart-ink) !important;
	border: 1px solid #d9dee7;
}

.asmart-btn-primary {
	background: var(--asmart-purple, #5b3fd6);
}

.asmart-btn-primary:hover {
	background: var(--asmart-purple-dark, #4a32b8);
}

.asmart-countdown {
	display: flex;
	gap: 8px;
	margin: 18px 0 22px;
}

.asmart-count-box {
	background: #fff;
	min-width: 58px;
	border-radius: 10px;
	text-align: center;
	padding: 8px 6px 6px;
	box-shadow: var(--asmart-shadow);
}

.asmart-count-box b {
	display: block;
	font-size: 18px;
}

.asmart-count-box span {
	font-size: 10px;
	color: var(--asmart-muted);
	text-transform: uppercase;
}

.asmart-hero-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: var(--asmart-shadow);
	cursor: pointer;
	z-index: 2;
	display: grid;
	place-items: center;
	color: var(--asmart-ink);
}

.asmart-hero-nav.prev {
	left: 12px;
}

.asmart-hero-nav.prev svg {
	transform: rotate(90deg);
}

.asmart-hero-nav.next {
	right: 12px;
}

.asmart-hero-nav.next svg {
	transform: rotate(-90deg);
}

.asmart-hero-dots {
	position: absolute;
	left: 24px;
	bottom: 18px;
	display: flex;
	gap: 8px;
	z-index: 2;
}

.asmart-hero-dot {
	position: relative;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: 0;
	background: rgba(31, 41, 51, 0.2);
	cursor: pointer;
	padding: 0;
	transition: 0.2s ease;
}

/* Invisible padding so the tiny dots are still a comfortable thumb target. */
.asmart-hero-dot::after {
	content: "";
	position: absolute;
	inset: -10px -4px;
}

.asmart-hero-dot.is-active {
	background: var(--asmart-green);
	width: 20px;
	border-radius: 999px;
}

.asmart-section {
	margin-top: 36px;
}

.asmart-section-head {
	display: flex;
	justify-content: space-between;
	align-items: end;
	gap: 16px;
	margin-bottom: 16px;
}

.asmart-section-head h2 {
	margin: 0;
	font-size: 22px;
	letter-spacing: -0.03em;
}

.asmart-section-head a {
	color: var(--asmart-green);
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
}

/* Category cards */
.asmart-cats-slider {
	position: relative;
}

/* Fixed-width cards in a scroll-snap track: any number of categories slides instead of squashing or wrapping. */
.asmart-cats {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scroll-behavior: smooth;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.asmart-cats::-webkit-scrollbar {
	display: none;
}

.asmart-cats-nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--asmart-ink);
	box-shadow: 0 4px 14px rgba(31, 41, 51, 0.18);
	cursor: pointer;
	display: grid;
	place-items: center;
}

.asmart-cats-nav[hidden] {
	display: none;
}

.asmart-cats-nav:hover {
	background: var(--asmart-green);
	color: #fff;
}

.asmart-cats-nav.prev {
	left: -8px;
}

.asmart-cats-nav.next {
	right: -8px;
}

.asmart-cats-nav.prev svg {
	transform: rotate(90deg);
}

.asmart-cats-nav.next svg {
	transform: rotate(-90deg);
}

.asmart-cat-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 24px 20px;
	text-decoration: none;
	color: inherit;
	flex: 0 0 172px;
	min-width: 0;
	scroll-snap-align: start;
	border-right: 1px solid var(--asmart-line);
	transition: background 0.2s ease;
}

.asmart-cat-card:last-child {
	border-right: none;
}

.asmart-cat-card:hover {
	background: #fafafa;
}

.asmart-cat-icon {
	width: 110px;
	height: 110px;
	margin: 0 auto 16px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: var(--asmart-green-soft);
	color: var(--asmart-green-dark);
	font-size: 24px;
}

.asmart-cat-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.asmart-cat-card b {
	display: block;
	font-size: 16px;
	margin-bottom: 4px;
	color: #1a1a1a;
}

.asmart-cat-card span {
	display: block;
	color: var(--asmart-muted);
	font-size: 13px;
	margin-top: 2px;
}

/* Promo strip */
.asmart-promo-strip {
	margin-top: 28px;
	background-color: var(--asmart-promo-bg-color);
	background-image: var(--asmart-promo-bg-image);
	background-repeat: no-repeat;
	background-position: right 24px center;
	background-size: 260px auto;
	color: var(--asmart-promo-text);
	border-radius: 16px;
	padding: 24px 320px 24px 28px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	min-height: 130px;
}

.asmart-promo-copy h3 {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	color: var(--asmart-promo-text);
	max-width: 480px;
}

.asmart-promo-cta {
	flex: 0 0 auto;
}

.asmart-promo-btn {
	background: var(--asmart-green);
	color: #fff !important;
	padding: 12px 28px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 14px;
	white-space: nowrap;
}

.asmart-promo-btn:hover {
	background: var(--asmart-green-dark);
}

.asmart-banners {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.asmart-banner {
	border-radius: 18px;
	min-height: 220px;
	padding: 28px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
	overflow: hidden;
	color: var(--asmart-ink);
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.asmart-banner .asmart-kicker {
	color: #e0611f;
	font-weight: 700;
	font-size: 13px;
	margin-bottom: 8px;
}

.asmart-banner h3 {
	margin: 0 0 6px;
	font-size: 22px;
	line-height: 1.25;
	max-width: 220px;
	letter-spacing: -0.02em;
	color: var(--asmart-ink);
}

.asmart-banner .asmart-btn {
	margin-top: 14px;
	background: #fff;
	color: var(--asmart-ink) !important;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
	width: fit-content;
}

.asmart-banner .asmart-btn:hover {
	background: #f4f4f4;
}

.asmart-banner.one {
	background-color: #f3efe6;
	background-image: var(--asmart-banner-one-bg);
}

.asmart-banner.two {
	background-color: #eef3e6;
	background-image: var(--asmart-banner-two-bg);
}

.asmart-banner.three {
	background-color: #eaf6f8;
	background-image: var(--asmart-banner-three-bg);
}

.asmart-features {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 12px;
	margin-top: 36px;
}

.asmart-feature {
	background: #fff;
	border-radius: 14px;
	padding: 16px;
	display: flex;
	gap: 12px;
	align-items: center;
	border: 1px solid var(--asmart-line);
}

/* .asmart-cat-icon is 110px for category cards; feature cards need a small round icon instead. */
.asmart-feature .asmart-cat-icon {
	width: 48px;
	height: 48px;
	margin: 0;
	flex: none;
}

.asmart-feature > div:last-child {
	min-width: 0;
}

.asmart-feature b {
	display: block;
	font-size: 13px;
}

.asmart-feature span {
	display: block;
	font-size: 12px;
	color: var(--asmart-muted);
}

/* Products */
body.asmart-theme ul.products {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.archive.asmart-theme ul.products,
body.woocommerce-shop.asmart-theme ul.products {
	grid-template-columns: repeat(4, 1fr);
}

body.asmart-theme ul.products li.product,
body.asmart-theme ul.products .product {
	width: auto !important;
	margin: 0 !important;
	float: none !important;
	background: #fff;
	border-radius: 16px;
	border: 1px solid var(--asmart-line);
	padding: 12px 12px 16px;
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

body.asmart-theme ul.products li.product:hover,
body.asmart-theme ul.products li.product:focus-within {
	box-shadow: var(--asmart-shadow);
	border-color: #f3d9bd;
}

body.asmart-theme ul.products li.product a {
	text-decoration: none;
}

body.asmart-theme .asmart-product-media {
	background: var(--asmart-green-soft);
	border-radius: 12px;
	height: 168px;
	overflow: hidden;
	margin-bottom: 10px;
	position: relative;
}

body.asmart-theme .asmart-product-media img,
body.asmart-theme ul.products li.product img {
	width: 100%;
	height: 100%;
	max-height: none;
	object-fit: cover;
	margin: 0;
	display: block;
}

body.asmart-theme .onsale {
	position: absolute;
	left: 10px;
	top: 10px !important;
	background: var(--asmart-green);
	color: #fff;
	border-radius: 999px;
	padding: 4px 11px;
	font-size: 12px;
	font-weight: 700;
	min-height: 0;
	line-height: 1.4;
	z-index: 2;
}

body.asmart-theme .asmart-product-cat {
	color: var(--asmart-green);
	font-size: 12px;
	font-weight: 600;
}

body.asmart-theme ul.products li.product .woocommerce-loop-product__title,
body.asmart-theme .woocommerce-loop-product__title {
	font-size: 14px !important;
	font-weight: 600;
	margin: 4px 0 6px !important;
	padding: 0 !important;
	line-height: 1.35;
}

body.asmart-theme .asmart-stock {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	margin-bottom: 6px;
}

body.asmart-theme .asmart-stock.is-in-stock {
	color: var(--asmart-green-dark);
}

body.asmart-theme .asmart-stock.is-out-stock {
	color: var(--asmart-sale);
}

body.asmart-theme ul.products li.product .star-rating {
	margin: 2px 0 6px;
}

body.asmart-theme ul.products li.product .price {
	color: var(--asmart-sale);
	font-weight: 800;
	font-size: 16px;
	margin-bottom: 10px;
	display: block;
}

body.asmart-theme ul.products li.product .price del {
	color: #9aa3af;
	font-weight: 500;
	font-size: 13px;
	margin-right: 6px;
}

body.asmart-theme ul.products li.product .price ins {
	text-decoration: none;
}

body.asmart-theme ul.products li.product .button,
body.asmart-theme ul.products li.product a.button {
	position: static;
	width: 100%;
	height: auto;
	margin-top: auto;
	border-radius: 999px;
	padding: 11px 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--asmart-green) !important;
	color: #fff !important;
	font-size: 13px;
	font-weight: 700;
	border: 0;
}

body.asmart-theme ul.products li.product .button:hover {
	background: var(--asmart-green-dark) !important;
}

/*
 * Feedback for AJAX add-to-cart. (This used to be a `::after` reading a
 * `data-add-to-cart-text` attribute nothing outputs; besides being empty it
 * also replaced WooCommerce's own loading / added indicators.)
 */
body.asmart-theme ul.products li.product .button.loading {
	opacity: 0.65;
	pointer-events: none;
}

body.asmart-theme ul.products li.product .button.added::after {
	content: "\2713";
	margin-left: 8px;
	font-weight: 800;
}

body.asmart-theme ul.products li.product .added_to_cart {
	margin-top: 6px;
	font-size: 12px;
	text-align: center;
}

body.asmart-theme .star-rating {
	color: var(--asmart-star);
	font-size: 12px;
	margin: 4px 0;
}

.asmart-home ul.products {
	grid-template-columns: repeat(6, 1fr);
}

.asmart-home .asmart-grid-5 ul.products {
	grid-template-columns: repeat(5, 1fr);
}

.asmart-deal {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 18px;
	align-items: stretch;
}

.asmart-deal-side {
	background: #fff;
	border-radius: 18px;
	padding: 16px;
	box-shadow: var(--asmart-shadow);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.asmart-deal-featured {
	background: #fff;
	border: 2px solid var(--asmart-green);
	border-radius: 18px;
	padding: 24px;
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 28px;
	align-items: stretch;
}

.asmart-deal-media {
	position: relative;
	border-radius: 14px;
	overflow: hidden;
	background: var(--asmart-green-soft);
	min-height: 220px;
}

.asmart-deal-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.asmart-deal-badge {
	position: absolute;
	left: 12px;
	top: 12px;
	background: var(--asmart-sale);
	color: #fff;
	font-weight: 700;
	font-size: 13px;
	padding: 5px 12px;
	border-radius: 999px;
	z-index: 2;
}

.asmart-wishlist {
	position: absolute;
	right: 12px;
	top: 12px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 0;
	background: #fff;
	display: grid;
	place-items: center;
	cursor: pointer;
	color: var(--asmart-ink);
	z-index: 2;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.asmart-wishlist:hover {
	color: var(--asmart-sale);
}

.asmart-deal-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.asmart-deal-copy .star-rating {
	margin-bottom: 8px;
}

.asmart-deal-copy h3 {
	margin: 0 0 10px;
	font-size: 24px;
	letter-spacing: -0.02em;
}

.asmart-deal-price {
	color: var(--asmart-sale);
	font-size: 28px;
	font-weight: 800;
	margin-bottom: 10px;
}

.asmart-deal-price del {
	color: var(--asmart-muted);
	font-size: 16px;
	font-weight: 500;
	margin-left: 8px;
}

.asmart-deal-copy p {
	color: var(--asmart-muted);
	margin: 0 0 16px;
	max-width: 440px;
}

.asmart-deal-availability {
	margin-bottom: 18px;
}

.asmart-deal-bar {
	height: 6px;
	border-radius: 999px;
	background: var(--asmart-line);
	overflow: hidden;
	margin-bottom: 6px;
}

.asmart-deal-bar span {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--asmart-star), var(--asmart-sale));
	border-radius: 999px;
}

.asmart-deal-availability small {
	color: var(--asmart-muted);
	font-size: 12px;
}

.asmart-deal-availability small b {
	color: var(--asmart-ink);
}

.asmart-deal-cta {
	width: fit-content;
}

/* Side deal cards: reuse the standard product card but style compact */
.asmart-home .asmart-deal-side ul.products {
	grid-template-columns: 1fr;
	gap: 10px;
}

.asmart-home .asmart-deal-side ul.products li.product {
	display: grid;
	grid-template-columns: 72px 1fr;
	gap: 10px;
	align-items: center;
	padding: 8px;
	border-radius: 12px;
}

.asmart-home .asmart-deal-side .asmart-product-media,
.asmart-home .asmart-deal-side ul.products li.product img {
	height: 64px;
	max-height: 64px;
	width: 64px;
	margin: 0;
	border-radius: 10px;
}

.asmart-home .asmart-deal-side ul.products li.product .onsale {
	font-size: 10px;
	padding: 2px 7px;
	left: 4px;
	top: 4px !important;
}

.asmart-home .asmart-deal-side ul.products li.product .asmart-wishlist {
	display: none;
}

.asmart-home .asmart-deal-side ul.products li.product .asmart-product-cat {
	font-size: 11px;
}

.asmart-home .asmart-deal-side ul.products li.product .woocommerce-loop-product__title {
	font-size: 13px !important;
	margin: 2px 0 !important;
}

.asmart-home .asmart-deal-side ul.products li.product .asmart-stock {
	display: none;
}

.asmart-home .asmart-deal-side ul.products li.product .price {
	font-size: 13px;
	margin-bottom: 0;
}

.asmart-home .asmart-deal-side ul.products li.product .button {
	display: none;
}

/* Footer */
.asmart-footer {
	background: var(--asmart-purple-dark);
	background-image: var(--asmart-footer-bg);
	color: var(--asmart-footer-text);
	margin-top: 0;
}

.asmart-newsletter {
	background: var(--asmart-green);
	color: var(--asmart-ink);
	padding: 28px 0;
}

.asmart-newsletter-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
}

.asmart-footer .asmart-newsletter h3 {
	margin: 0 0 4px;
	font-family: inherit;
	font-size: 22px;
	line-height: 1.25;
	color: var(--asmart-ink);
}

.asmart-footer .asmart-newsletter p {
	margin: 0;
	color: var(--asmart-ink);
	opacity: 0.85;
}

.asmart-newsletter form {
	display: flex;
	flex: 0 1 460px;
	min-width: 0;
	background: #fff;
	border-radius: 999px;
	overflow: hidden;
	border: 1px solid transparent;
}

.asmart-newsletter form:focus-within {
	border-color: var(--asmart-purple-dark);
}

.asmart-newsletter input[type="email"] {
	flex: 1;
	min-width: 0;
	height: auto;
	border: 0;
	border-radius: 0;
	background: transparent;
	padding: 13px 18px;
	font-size: 15px;
	outline: none;
	box-shadow: none;
}

.asmart-newsletter button {
	flex: none;
	border: 0;
	border-radius: 0;
	background: var(--asmart-purple-dark);
	color: #fff;
	padding: 0 24px;
	font-weight: 700;
	cursor: pointer;
}

.asmart-newsletter button:hover {
	background: #000;
}

.asmart-footer-grid {
	display: grid;
	grid-template-columns: 1.6fr repeat(4, 1fr);
	gap: 32px 28px;
	padding: 48px 0 32px;
}

.asmart-footer h4 {
	margin: 0 0 14px;
	font-family: inherit;
	font-size: 15px;
	color: #fff;
}

.asmart-footer-grid p,
.asmart-footer-grid li,
.asmart-footer-grid a,
.asmart-footer-bottom {
	color: var(--asmart-footer-text);
	font-size: 14px;
	line-height: 1.7;
}

.asmart-footer-grid strong,
.asmart-footer-grid strong a {
	color: #fff;
}

.asmart-footer-grid p {
	margin: 0 0 12px;
	max-width: 340px;
}

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

.asmart-footer-grid li a {
	display: inline-block;
	padding: 3px 0;
}

.asmart-footer a {
	text-decoration: none;
}

.asmart-footer-grid a:hover,
.asmart-footer-bottom a:hover {
	color: var(--asmart-green);
}

.asmart-footer a:focus-visible,
.asmart-footer button:focus-visible,
.asmart-footer input:focus-visible {
	outline: 2px solid var(--asmart-star);
	outline-offset: 2px;
}

/* The logo is dark-on-transparent, so it sits on a white card against the brown footer. */
.asmart-footer-brand .asmart-logo {
	width: fit-content;
	max-width: 100%;
	margin-bottom: 16px;
	padding: 8px 16px 8px 10px;
	background: #fff;
	border-radius: 16px;
}

.asmart-footer-bottom {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 6px 16px;
	border-top: 1px solid var(--asmart-footer-line);
	padding: 18px 0 24px;
	font-size: 13px;
}

@media (max-width: 1200px) {
	.asmart-footer-grid {
		grid-template-columns: repeat(4, 1fr);
	}

	.asmart-footer-brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 900px) {
	.asmart-newsletter-inner {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
	}

	.asmart-newsletter form {
		flex: none;
		width: 100%;
	}

	.asmart-footer-grid {
		grid-template-columns: repeat(2, 1fr);
		padding: 36px 0 24px;
	}

	.asmart-footer-bottom {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
}

@media (max-width: 480px) {
	.asmart-newsletter {
		padding: 24px 0;
	}

	.asmart-footer .asmart-newsletter h3 {
		font-size: 19px;
	}

	.asmart-newsletter input[type="email"] {
		font-size: 16px; /* stops iOS Safari zooming the page on focus */
		padding: 12px 16px;
	}

	.asmart-newsletter button {
		padding: 0 18px;
	}

	.asmart-footer-grid {
		gap: 28px 20px;
	}

	/* The header hides the wordmark here to save room; the footer card has plenty. */
	.asmart-footer .asmart-logo-word {
		display: inline;
	}
}

/* Inner pages */
body.asmart-theme .woocommerce-products-header,
body.asmart-theme .ast-woo-shop-archive {
	width: min(var(--asmart-max), calc(100% - 32px));
	margin: 24px auto 0;
}

body.asmart-theme.woocommerce #primary,
body.asmart-theme.archive #primary,
body.asmart-theme.page-template-default #primary,
body.asmart-theme.single-product #primary {
	width: min(var(--asmart-max), calc(100% - 32px));
	margin: 24px auto 48px;
	background: transparent;
}

body.asmart-theme.single-product div.product {
	background: #fff;
	border-radius: 20px;
	padding: 24px;
}

body.asmart-theme .woocommerce-message,
body.asmart-theme .woocommerce-info {
	border-top-color: var(--asmart-green);
}

body.asmart-theme .woocommerce a.button.alt,
body.asmart-theme .woocommerce button.button.alt,
body.asmart-theme .woocommerce input.button.alt,
body.asmart-theme .woocommerce #respond input#submit.alt,
body.asmart-theme .woocommerce a.button,
body.asmart-theme .woocommerce button.button {
	background: var(--asmart-green);
	color: #fff;
	border-radius: 999px;
	font-weight: 700;
}

.asmart-page-hero {
	background: #fff;
	border-bottom: 1px solid var(--asmart-line);
	padding: 28px 0;
}

.asmart-page-hero h1 {
	margin: 0;
	font-size: 32px;
}


/* Best Sellers */
.asmart-section-sub {
	margin: 2px 0 0;
	color: var(--asmart-muted);
	font-size: 13px;
}

.asmart-pill-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	border: 1px solid var(--asmart-line);
	color: var(--asmart-ink);
	text-decoration: none;
	font-weight: 700;
	font-size: 13px;
	padding: 10px 18px;
	border-radius: 999px;
	white-space: nowrap;
}

.asmart-pill-link:hover {
	border-color: var(--asmart-green);
	color: var(--asmart-green);
}

.asmart-btn-sm {
	padding: 9px 16px;
	font-size: 13px;
}

/*
 * 3-column layout: products | promos | products.
 * !important is required on the two side columns because
 * body.asmart-theme ul.products and .asmart-home ul.products (defined
 * earlier for the main shop grid) both set grid-template-columns with
 * higher specificity than a plain .asmart-bs-col class alone.
 */
.asmart-bestseller-row {
	display: grid;
	grid-template-columns: 1fr 1.3fr 1fr;
	gap: 16px;
	align-items: stretch;
}

.asmart-bs-col {
	display: grid !important;
	grid-template-columns: 1fr !important;
	gap: 14px !important;
}

.asmart-bs-promos {
	display: grid;
	grid-template-rows: 1fr;
	gap: 16px;
}

.asmart-bestseller-promo {
	border-radius: 16px;
	overflow: hidden;
	position: relative;
	background-color: var(--asmart-green-soft);
	background-image: var(--asmart-bs-promo-img);
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: flex-end;
	text-decoration: none;
	color: inherit;
	padding: 22px;
	min-height: 200px;
}

.asmart-bestseller-promo::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.85) 55%, #fff 100%);
	z-index: 0;
}

.asmart-bestseller-promo-copy {
	position: relative;
	z-index: 1;
	width: 100%;
}

.asmart-bestseller-promo .asmart-kicker {
	margin-bottom: 6px;
}

.asmart-bestseller-promo h3 {
	margin: 0 0 6px;
	font-size: 19px;
	line-height: 1.28;
	letter-spacing: -0.02em;
	color: var(--asmart-ink);
}

.asmart-bestseller-promo p {
	margin: 0 0 14px;
	font-size: 13px;
	color: var(--asmart-muted);
}

@media (max-width: 1200px) {
	body.asmart-theme ul.products,
	.asmart-home ul.products,
	.asmart-home .asmart-grid-5 ul.products {
		grid-template-columns: repeat(3, 1fr);
	}

	/* Five cards: a 6-column grid gives 3 on the first row and 2 wide ones on the second, with no gap. */
	.asmart-features {
		grid-template-columns: repeat(6, 1fr);
	}

	.asmart-feature {
		grid-column: span 2;
	}

	.asmart-feature:nth-child(n + 4) {
		grid-column: span 3;
	}

	.asmart-deal,
	.asmart-deal-featured {
		grid-template-columns: 1fr 1fr;
	}

	.asmart-deal {
		grid-template-columns: 1fr;
	}

	.asmart-deal-side {
		flex-direction: row;
		overflow-x: auto;
		gap: 12px;
	}

	.asmart-home .asmart-deal-side ul.products {
		grid-template-columns: repeat(4, minmax(200px, 1fr));
		grid-auto-flow: column;
	}
}

/* Three columns can't split 10 New Arrivals evenly; drop the 10th so the last row isn't a lone card. */
@media (min-width: 901px) and (max-width: 1200px) {
	.asmart-home .asmart-grid-5 ul.products li.product:nth-child(10) {
		display: none;
	}
}

@media (max-width: 1100px) {
	.asmart-bestseller-row {
		grid-template-columns: 1fr;
	}

	.asmart-bs-col {
		grid-template-columns: repeat(2, 1fr) !important;
	}

	/* Stacked layout: lead with the promo instead of burying it between two product lists. */
	.asmart-bs-promos {
		order: -1;
	}
}

@media (max-width: 900px) {
	/* Row 1: menu button | logo | account + cart. Row 2: full-width search. */
	.asmart-header-main {
		grid-template-columns: auto 1fr auto;
		gap: 10px 12px;
		padding: 10px 0;
	}

	.asmart-menu-toggle {
		display: grid;
		place-items: center;
		grid-area: 1 / 1;
	}

	.asmart-logo {
		grid-area: 1 / 2;
	}

	.asmart-header-actions {
		grid-area: 1 / 3;
		gap: 2px;
	}

	.asmart-search {
		grid-area: 2 / 1 / 3 / -1;
	}

	.asmart-icon-link {
		padding: 4px;
	}

	.asmart-cart-count {
		top: 0;
		left: 28px;
	}

	.asmart-icon-copy,
	.asmart-nav,
	.asmart-topbar-links {
		display: none;
	}

	.asmart-topbar-inner {
		justify-content: center;
		text-align: center;
		min-height: 34px;
	}

	.asmart-logo img.asmart-logo-mark {
		height: 48px;
	}

	.asmart-logo-word {
		font-size: 24px;
	}

	.asmart-search input[type="search"] {
		padding: 11px 16px;
		font-size: 16px; /* 16px stops iOS Safari zooming the page on focus */
	}

	.asmart-deal,
	.asmart-deal-featured {
		grid-template-columns: 1fr;
		display: grid;
	}

	/* Two banners side by side, the third full width (avoids a lone half-width orphan). */
	.asmart-banners {
		grid-template-columns: 1fr 1fr;
	}

	.asmart-banner.three {
		grid-column: 1 / -1;
	}

	.asmart-deal-media {
		min-height: 200px;
	}

	.asmart-countdown {
		flex-wrap: wrap;
	}

	.asmart-hero-slide {
		padding: 28px 22px 36px;
		min-height: 0;
	}

	.asmart-hero-slide::before {
		background: linear-gradient(180deg, var(--asmart-hero-bg, #f3efe9) 0%, rgba(243, 239, 233, 0.9) 55%, rgba(243, 239, 233, 0.55) 100%);
	}

	.asmart-hero-slide > div {
		max-width: none;
	}

	.asmart-hero-cta-row {
		flex-wrap: wrap;
		row-gap: 14px;
	}

	body.archive.asmart-theme ul.products,
	body.woocommerce-shop.asmart-theme ul.products,
	body.asmart-theme ul.products,
	.asmart-home ul.products,
	.asmart-home .asmart-grid-5 ul.products {
		grid-template-columns: repeat(2, 1fr);
	}

	.asmart-promo-strip {
		flex-direction: column;
		align-items: flex-start;
		background-image: none;
		padding: 24px 28px;
	}
}

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

	body.admin-bar .asmart-mobile-drawer {
		top: 46px;
		height: calc(100% - 46px);
	}
}

/* Below 600px the admin bar is no longer fixed, so it scrolls away with the page. */
@media (max-width: 600px) {
	body.admin-bar .asmart-header {
		top: 0;
	}

	body.admin-bar .asmart-mobile-drawer {
		top: 0;
		height: 100%;
	}
}

@media (max-width: 640px) {
	.asmart-topbar-extra {
		display: none;
	}

	.asmart-logo img.asmart-logo-mark {
		height: 44px;
	}

	.asmart-home .asmart-deal-side ul.products {
		grid-template-columns: repeat(4, minmax(160px, 1fr));
	}

	.asmart-bs-col {
		grid-template-columns: 1fr !important;
	}

	/*
	 * Phones: one product per row. Every grid variant is listed because the
	 * shop/archive and `.asmart-grid-5` rules are more specific than a bare
	 * `ul.products`. The compact deal-side scroller above is intentionally left
	 * alone (its selector is more specific, so it keeps its own layout).
	 */
	body.asmart-theme ul.products,
	body.archive.asmart-theme ul.products,
	body.woocommerce-shop.asmart-theme ul.products,
	.asmart-home ul.products,
	.asmart-home .asmart-grid-5 ul.products {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	body.asmart-theme .asmart-product-media {
		height: auto;
		aspect-ratio: 4 / 3;
	}

	body.asmart-theme ul.products li.product .woocommerce-loop-product__title {
		font-size: 16px !important;
	}

	body.asmart-theme ul.products li.product .price {
		font-size: 18px;
	}

	body.asmart-theme ul.products li.product .button,
	body.asmart-theme ul.products li.product a.button {
		padding: 14px 16px;
		font-size: 14px;
	}

	/* Homepage rhythm on phones */
	.asmart-home {
		padding: 16px 0 40px;
	}

	.asmart-section {
		margin-top: 28px;
	}

	.asmart-section-head {
		align-items: center;
	}

	.asmart-section-head > div {
		min-width: 0;
	}

	.asmart-section-head h2 {
		font-size: 20px;
	}

	.asmart-btn {
		min-height: 44px;
	}

	/* One product per row makes 10 New Arrivals a very long scroll; show the first 6 (View all has the rest). */
	.asmart-home .asmart-grid-5 ul.products li.product:nth-child(n + 7) {
		display: none;
	}

	/* Phones: one category per slide (swipe, arrows or auto loop move one at a time). */
	.asmart-cats {
		scroll-snap-type: x mandatory;
	}

	.asmart-cat-card {
		flex: 0 0 100%;
		padding: 20px 10px;
		border-right: 0;
		scroll-snap-align: center;
		scroll-snap-stop: always;
	}

	.asmart-cats-nav.prev {
		left: 4px;
	}

	.asmart-cats-nav.next {
		right: 4px;
	}

	.asmart-cat-icon {
		width: 112px;
		height: 112px;
		margin-bottom: 12px;
	}

	.asmart-banners,
	.asmart-features {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.asmart-banner.three {
		grid-column: auto;
	}

	.asmart-feature,
	.asmart-feature:nth-child(n + 4) {
		grid-column: auto;
	}

	.asmart-features {
		margin-top: 28px;
	}
}

/* Narrow phones: the logo image already carries the brand name, so drop the text beside it. */
@media (max-width: 480px) {
	.asmart-logo-word {
		display: none;
	}
}

/* ==========================================================================
   Side cart (Modern Cart plugin) — matched to the BSmart theme.
   Colours come from the `moderncart_css_vars` filter in inc/helpers.php; this
   block handles shape, type and the phone layout.
   ========================================================================== */
#moderncart-slide-out {
	font-family: inherit;
	color: var(--asmart-ink);
}

#moderncart-slide-out-modal.moderncart-cart-style-slideout #moderncart-slide-out {
	border-radius: 20px 0 0 20px;
	box-shadow: -16px 0 48px rgba(43, 26, 21, 0.22);
}

.moderncart-modal-backdrop {
	background: rgba(43, 26, 21, 0.55);
}

/* Header: close button | title | item count */
#moderncart-slide-out .moderncart-slide-out-header {
	border-bottom: 1px solid var(--asmart-line);
}

#moderncart-slide-out .moderncart-slide-out-header-title {
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--asmart-ink);
}

#moderncart-slide-out .moderncart-slide-out-header-close {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f3f4f6;
	color: var(--asmart-ink);
	cursor: pointer;
}

#moderncart-slide-out .moderncart-slide-out-header-close:hover {
	background: var(--asmart-green-soft);
	color: var(--asmart-green-dark);
}

#moderncart-slide-out .moderncart-slide-out-header-quantity span {
	display: inline-grid;
	place-items: center;
	min-width: 28px;
	height: 28px;
	padding: 0 8px;
	border-radius: 999px;
	background: var(--asmart-green-soft);
	color: var(--asmart-green-dark);
	font-weight: 800;
}

/* Line items */
#moderncart-slide-out .moderncart-cart-item-image img {
	border-radius: 12px;
}

#moderncart-slide-out .moderncart-cart-item-product-link a {
	font-weight: 700;
	line-height: 1.35;
	text-decoration: none;
	color: var(--asmart-ink);
}

#moderncart-slide-out .moderncart-cart-item-product-link a:hover {
	color: var(--asmart-green);
}

#moderncart-slide-out .moderncart-cart-item-image .moderncart-cart-item-onsale {
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--asmart-green);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.4;
}

#moderncart-slide-out .moderncart-price span.woocommerce-Price-amount {
	font-weight: 800;
	color: var(--asmart-ink);
}

#moderncart-slide-out .moderncart-cart-item-actions--pricing .moderncart-price small {
	color: var(--asmart-green-dark);
	font-weight: 600;
}

#moderncart-slide-out .moderncart-cart-item-actions-remove {
	color: var(--asmart-muted);
	font-size: 12px;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

#moderncart-slide-out .moderncart-cart-item-actions-remove:hover {
	color: var(--asmart-sale);
}

#moderncart-slide-out .moderncart-cart-item-quantity {
	border-color: var(--asmart-line);
	border-radius: 12px;
	overflow: hidden;
}

#moderncart-slide-out .moderncart-cart-item-quantity button:hover {
	background: var(--asmart-green-soft);
	color: var(--asmart-green-dark);
}

/* Footer: coupon, totals, checkout */
#moderncart-slide-out .moderncart-have-coupon-code-area {
	color: var(--asmart-ink);
	cursor: pointer;
}

#moderncart-slide-out .moderncart-cart-line-items__total-label,
#moderncart-slide-out .moderncart-cart-line-items__total-value {
	color: var(--asmart-ink);
	font-weight: 800;
}

#moderncart-slide-out .moderncart-slide-out-footer .moderncart-cart-total a.checkout-button {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	border-radius: 999px;
	background-color: var(--asmart-green);
	color: #fff;
	font-size: 16px;
	font-weight: 800;
	text-decoration: none;
	box-shadow: 0 8px 20px rgba(242, 121, 15, 0.3);
	transition: background-color 0.2s ease;
}

#moderncart-slide-out .moderncart-slide-out-footer .moderncart-cart-total a.checkout-button:hover {
	background-color: var(--asmart-green-dark);
}

#moderncart-slide-out .moderncart-slide-out-coupon-input input {
	border-radius: 999px 0 0 999px;
}

#moderncart-slide-out .moderncart-slide-out-coupon-input button {
	border-radius: 0 999px 999px 0;
	font-weight: 700;
}

/* Focus rings that match the rest of the theme */
#moderncart-slide-out a:focus-visible,
#moderncart-slide-out button:focus-visible {
	outline: 2px solid var(--asmart-green);
	outline-offset: 2px;
}

@media (max-width: 768px) {
	/* The plugin's default leaves the panel at 80% width with a sliver of page beside it; use the full screen on phones. */
	#moderncart-slide-out-modal.moderncart-cart-style-slideout #moderncart-slide-out {
		width: 100%;
		max-width: 100% !important;
		border-radius: 0;
		height: 100vh;
		height: 100dvh;
	}

	#moderncart-slide-out .moderncart-slide-out-header-heading {
		gap: 10px;
	}

	#moderncart-slide-out .moderncart-cart-item-image img {
		border-radius: 10px;
	}

	/* Bigger thumb targets for quantity and remove */
	#moderncart-slide-out .moderncart-cart-item-quantity button {
		min-width: 40px;
		min-height: 36px;
	}

	#moderncart-slide-out .moderncart-cart-item-actions-remove {
		min-height: 32px;
		padding: 6px 0;
	}

	/* Keep the checkout button clear of the iPhone home bar */
	#moderncart-slide-out .moderncart-slide-out-footer {
		padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
	}

	#moderncart-slide-out .moderncart-slide-out-footer .moderncart-cart-total a.checkout-button {
		min-height: 54px;
	}

	#moderncart-slide-out .moderncart-slide-out-coupon-input input {
		font-size: 16px; /* stops iOS Safari zooming in when the field is focused */
	}
}


/* ==========================================================================
   Shop & category archives (/store/, /product-category/...) — same template
   (WooCommerce archive-product.php + Astra sidebar), so one set of rules.
   IDs (#primary/#secondary) are used on purpose: Astra's own archive rules are
   more specific than plain class selectors.
   ========================================================================== */
body.asmart-theme.ast-woo-shop-archive #content > .ast-container {
	/* The homepage reset makes this full-width; archives need a centred column. */
	display: flex;
	align-items: flex-start;
	gap: 24px;
	width: min(var(--asmart-max), calc(100% - 32px));
	max-width: none;
	margin: 24px auto 56px;
}

body.asmart-theme.ast-woo-shop-archive #primary {
	flex: 1 1 0;
	min-width: 0;
	width: auto;
	margin: 0;
	padding: 0;
	background: transparent;
}

body.asmart-theme.ast-woo-shop-archive .ast-woocommerce-container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	padding: 0;
	background: transparent;
}

body.asmart-theme.ast-woo-shop-archive .ast-woocommerce-container > * {
	flex: 0 0 100%;
	min-width: 0;
	margin: 0;
}

/* Title / description card */
body.asmart-theme.ast-woo-shop-archive .woocommerce-products-header {
	width: auto;
	padding: 20px 24px;
	background: #fff;
	border: 1px solid var(--asmart-line);
	border-radius: var(--asmart-radius);
}

body.asmart-theme.ast-woo-shop-archive .woocommerce-products-header__title {
	margin: 0;
	font-size: 28px;
	letter-spacing: -0.03em;
	line-height: 1.2;
}

body.asmart-theme.ast-woo-shop-archive .term-description {
	margin-top: 8px;
	color: var(--asmart-muted);
	font-size: 14px;
	line-height: 1.6;
}

body.asmart-theme.ast-woo-shop-archive .term-description p {
	margin: 0;
}

body.asmart-theme .woocommerce-breadcrumb {
	font-size: 13px;
	color: var(--asmart-muted);
}

body.asmart-theme .woocommerce-breadcrumb a:hover {
	color: var(--asmart-green);
}

/* Toolbar: result count | sort */
body.asmart-theme.ast-woo-shop-archive .ast-woocommerce-container > .woocommerce-result-count {
	flex: 1 1 auto;
	float: none;
	font-size: 14px;
	color: var(--asmart-muted);
}

body.asmart-theme.ast-woo-shop-archive .ast-woocommerce-container > .woocommerce-ordering {
	flex: 0 0 auto;
	float: none;
}

body.asmart-theme .woocommerce-ordering select {
	min-height: 42px;
	padding: 8px 40px 8px 16px;
	border: 1px solid var(--asmart-line);
	border-radius: 999px;
	background-color: #fff;
	color: var(--asmart-ink);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

body.asmart-theme .woocommerce-ordering select:focus {
	border-color: var(--asmart-green);
	outline: none;
}

/* Product grid: 3 across beside the sidebar, 2 on tablets, 1 on phones. */
body.asmart-theme.woocommerce-page #primary ul.products:not(.elementor-grid) {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
}

/* Pagination */
body.asmart-theme #primary nav.woocommerce-pagination {
	margin-top: 12px;
	text-align: center;
}

body.asmart-theme #primary nav.woocommerce-pagination ul.page-numbers {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 0;
}

body.asmart-theme #primary nav.woocommerce-pagination ul.page-numbers li {
	margin: 0;
	border: 0;
	background: none;
}

body.asmart-theme #primary nav.woocommerce-pagination ul.page-numbers li > .page-numbers {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--asmart-line);
	border-radius: 12px;
	background: #fff;
	color: var(--asmart-ink);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
}

body.asmart-theme #primary nav.woocommerce-pagination ul.page-numbers li > a.page-numbers:hover {
	border-color: var(--asmart-green);
	background: var(--asmart-green-soft);
	color: var(--asmart-green-dark);
}

body.asmart-theme #primary nav.woocommerce-pagination ul.page-numbers li > .page-numbers.current {
	border-color: var(--asmart-green);
	background: var(--asmart-green);
	color: #fff;
}

/* Sidebar (search, price filter, categories, best sellers) */
body.asmart-theme.ast-woo-shop-archive #secondary {
	flex: 0 0 272px;
	width: 272px;
	margin: 0;
	padding: 20px;
	background: #fff;
	border: 1px solid var(--asmart-line);
	border-radius: var(--asmart-radius);
}

body.asmart-theme #secondary .widget {
	margin: 0 0 26px;
	padding: 0;
	border: 0;
}

body.asmart-theme #secondary .widget:last-child {
	margin-bottom: 0;
}

body.asmart-theme #secondary .widget-title,
body.asmart-theme #secondary .widgettitle,
body.asmart-theme #secondary .wp-block-heading {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--asmart-ink);
}

body.asmart-theme #secondary a {
	text-decoration: none;
	color: var(--asmart-ink);
}

body.asmart-theme #secondary a:hover {
	color: var(--asmart-green);
}

/* Search block */
body.asmart-theme #secondary .wp-block-search__inside-wrapper {
	display: flex;
	gap: 0;
}

body.asmart-theme #secondary .wp-block-search__input {
	flex: 1;
	min-width: 0;
	height: auto;
	padding: 11px 16px;
	border: 1px solid var(--asmart-line);
	border-radius: 999px 0 0 999px;
	background: #f3f4f6;
	font-size: 14px;
	box-shadow: none;
}

body.asmart-theme #secondary .wp-block-search__input:focus {
	border-color: var(--asmart-green);
	background: #fff;
	outline: none;
}

body.asmart-theme #secondary .wp-block-search__button {
	flex: none;
	margin: 0;
	padding: 0 16px;
	border: 0;
	border-radius: 0 999px 999px 0;
	background: var(--asmart-green);
	color: #fff;
	cursor: pointer;
}

body.asmart-theme #secondary .wp-block-search__button:hover {
	background: var(--asmart-green-dark);
}

/* Price filter slider */
body.asmart-theme #secondary .widget_price_filter .ui-slider {
	height: 6px;
	margin: 8px 8px 22px;
	border: 0;
	border-radius: 999px;
	background: #ececec;
}

body.asmart-theme #secondary .widget_price_filter .ui-slider .ui-slider-range {
	background: var(--asmart-green);
	border-radius: 999px;
}

body.asmart-theme #secondary .widget_price_filter .ui-slider .ui-slider-handle {
	top: -7px;
	width: 20px;
	height: 20px;
	margin-left: -10px;
	border: 3px solid var(--asmart-green);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 6px rgba(43, 26, 21, 0.2);
	cursor: grab;
}

body.asmart-theme #secondary .widget_price_filter .price_slider_amount {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-size: 14px;
}

body.asmart-theme #secondary .widget_price_filter .price_slider_amount .button {
	float: none;
	padding: 9px 20px;
	border: 0;
	border-radius: 999px;
	background: var(--asmart-green);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

body.asmart-theme #secondary .widget_price_filter .price_slider_amount .button:hover {
	background: var(--asmart-green-dark);
}

body.asmart-theme #secondary .widget_price_filter .price_label {
	margin: 0;
	color: var(--asmart-muted);
}

/* Category list */
body.asmart-theme #secondary .product-categories,
body.asmart-theme #secondary .product-categories ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.asmart-theme #secondary .product-categories ul.children {
	margin: 0 0 4px 12px;
	padding-left: 12px;
	border-left: 2px solid var(--asmart-green-soft);
}

body.asmart-theme #secondary .product-categories li {
	padding: 0;
	font-size: 14px;
	color: var(--asmart-muted);
}

body.asmart-theme #secondary .product-categories li > a {
	display: inline-block;
	padding: 7px 0;
	font-weight: 600;
}

body.asmart-theme #secondary .product-categories li.current-cat > a,
body.asmart-theme #secondary .product-categories li.current-cat-parent > a {
	color: var(--asmart-green);
	font-weight: 800;
}

/* Best-seller / product list widget */
body.asmart-theme #secondary .product_list_widget {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.asmart-theme #secondary .product_list_widget li {
	display: flow-root;
	padding: 12px 0;
	border-bottom: 1px solid var(--asmart-line);
	font-size: 14px;
}

body.asmart-theme #secondary .product_list_widget li:last-child {
	border-bottom: 0;
}

body.asmart-theme #secondary .product_list_widget li img {
	float: left;
	width: 64px;
	height: 64px;
	margin: 0 12px 0 0;
	border-radius: 10px;
	object-fit: cover;
}

body.asmart-theme #secondary .product_list_widget .product-title {
	display: block;
	font-weight: 700;
	line-height: 1.35;
}

body.asmart-theme #secondary .product_list_widget .amount,
body.asmart-theme #secondary .product_list_widget ins {
	color: var(--asmart-sale);
	font-weight: 800;
	text-decoration: none;
}

/* Mobile "Filters" button + slide-in panel (the button is added by the theme; hidden on desktop). */
.asmart-filter-toggle {
	display: none;
}

.asmart-filters-close {
	display: none;
}

@media (max-width: 1000px) {
	body.asmart-theme.woocommerce-page #primary ul.products:not(.elementor-grid) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	body.asmart-theme.ast-woo-shop-archive #content > .ast-container {
		margin: 16px auto 40px;
	}

	body.asmart-theme.ast-woo-shop-archive .woocommerce-products-header {
		padding: 16px 18px;
	}

	body.asmart-theme.ast-woo-shop-archive .woocommerce-products-header__title {
		font-size: 24px;
	}

	.asmart-filter-toggle {
		order: 1;
		flex: 0 0 auto;
		display: inline-flex;
		align-items: center;
		gap: 8px;
		min-height: 42px;
		padding: 0 18px;
		border: 1px solid var(--asmart-line);
		border-radius: 999px;
		background: #fff;
		color: var(--asmart-ink);
		font-size: 14px;
		font-weight: 700;
		cursor: pointer;
	}

	.asmart-filter-toggle:hover {
		border-color: var(--asmart-green);
		color: var(--asmart-green-dark);
	}

	body.asmart-theme.ast-woo-shop-archive .ast-woocommerce-container > .woocommerce-ordering {
		order: 2;
		margin-left: auto;
	}

	body.asmart-theme.ast-woo-shop-archive .ast-woocommerce-container > .woocommerce-result-count {
		order: 3;
		flex: 0 0 100%;
	}

	body.asmart-theme.ast-woo-shop-archive .ast-woocommerce-container > ul.products,
	body.asmart-theme.ast-woo-shop-archive .ast-woocommerce-container > nav {
		order: 4;
	}

	/* The sidebar becomes a slide-in panel opened by the Filters button. */
	body.asmart-theme.ast-woo-shop-archive #secondary {
		position: fixed;
		top: 0;
		left: 0;
		z-index: 1250;
		width: min(340px, 90vw);
		height: 100vh;
		height: 100dvh;
		padding: 20px 20px calc(24px + env(safe-area-inset-bottom, 0px));
		border: 0;
		border-radius: 0 20px 20px 0;
		overflow-y: auto;
		overscroll-behavior: contain;
		box-shadow: 8px 0 30px rgba(43, 26, 21, 0.18);
		visibility: hidden;
		transform: translateX(-105%);
		transition: transform 0.25s ease, visibility 0s linear 0.25s;
	}

	body.asmart-filters-open.asmart-theme.ast-woo-shop-archive #secondary {
		visibility: visible;
		transform: none;
		transition-delay: 0s;
	}

	body.admin-bar.ast-woo-shop-archive #secondary {
		top: 32px;
		height: calc(100dvh - 32px);
	}

	.asmart-filters-close {
		display: grid;
		place-items: center;
		width: 40px;
		height: 40px;
		margin: 0 0 12px auto;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: #f3f4f6;
		color: var(--asmart-ink);
		font-size: 24px;
		line-height: 1;
		cursor: pointer;
	}

	.asmart-filters-close:hover {
		background: var(--asmart-green-soft);
		color: var(--asmart-green-dark);
	}
}

@media (max-width: 782px) {
	body.admin-bar.ast-woo-shop-archive #secondary {
		top: 46px;
		height: calc(100dvh - 46px);
	}
}

@media (max-width: 600px) {
	body.admin-bar.ast-woo-shop-archive #secondary {
		top: 0;
		height: 100dvh;
	}
}

@media (max-width: 640px) {
	/* One product per row on phones, and a short description so the products start higher up. */
	body.asmart-theme.woocommerce-page #primary ul.products:not(.elementor-grid) {
		grid-template-columns: minmax(0, 1fr);
	}

	body.asmart-theme.ast-woo-shop-archive .term-description p {
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	body.asmart-theme .woocommerce-ordering select {
		font-size: 14px;
	}
}

/* --- Shop/category archive refinements --- */

/* /store/ has no title or description, which left an empty white card. */
body.asmart-theme.ast-woo-shop-archive .woocommerce-products-header:not(:has(*)) {
	display: none;
}

/* Breadcrumb first, then the title card, then the toolbar. */
body.asmart-theme.ast-woo-shop-archive .ast-woocommerce-container > .woocommerce-breadcrumb {
	order: -2;
}

body.asmart-theme.ast-woo-shop-archive .ast-woocommerce-container > .woocommerce-products-header {
	order: -1;
}

/* The search block's icon button was collapsing to a sliver. */
body.asmart-theme #secondary .wp-block-search__button {
	display: grid;
	place-items: center;
	min-width: 48px;
	padding: 0 12px;
}

body.asmart-theme #secondary .wp-block-search__button svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

/* Price filter: keep "Filter" on one line and the range label tidy. */
body.asmart-theme #secondary .widget_price_filter .price_slider_amount {
	flex-wrap: wrap;
}

body.asmart-theme #secondary .widget_price_filter .price_slider_amount .button {
	flex: none;
	white-space: nowrap;
}

body.asmart-theme #secondary .widget_price_filter .price_label {
	float: none;
	flex: 1 1 auto;
	font-size: 13px;
	text-align: right;
}

/* Best-seller list: reserve room for the thumbnail so it can't sit on top of the text. */
body.asmart-theme #secondary .product_list_widget li {
	position: relative;
	min-height: 88px;
	padding: 12px 0 12px 76px;
}

body.asmart-theme #secondary .product_list_widget li img {
	position: absolute;
	top: 12px;
	left: 0;
	float: none;
	margin: 0;
}

body.asmart-theme #secondary .product_list_widget .star-rating {
	margin: 4px 0;
}

@media (max-width: 900px) {
	/* The generic "full width" rule for toolbar items must not stretch the Filters button. */
	body.asmart-theme.ast-woo-shop-archive .ast-woocommerce-container > .asmart-filter-toggle {
		flex: 0 0 auto;
	}
}

/* Sidebar product-search block (WooCommerce's own block, not the core one). */
body.asmart-theme #secondary .wc-block-product-search__fields {
	display: flex;
	gap: 0;
}

body.asmart-theme #secondary .wc-block-product-search__field {
	flex: 1;
	min-width: 0;
	height: auto;
	padding: 11px 16px;
	border: 1px solid var(--asmart-line);
	border-right: 0;
	border-radius: 999px 0 0 999px;
	background: #f3f4f6;
	font-size: 14px;
	box-shadow: none;
}

body.asmart-theme #secondary .wc-block-product-search__field:focus {
	border-color: var(--asmart-green);
	background: #fff;
	outline: none;
}

body.asmart-theme #secondary .wc-block-product-search__button {
	display: grid !important;
	place-items: center;
	flex: none;
	width: 48px;
	margin: 0;
	padding: 0;
	border: 0 !important;
	border-radius: 0 999px 999px 0 !important;
	background: var(--asmart-green) !important;
	color: #fff !important;
	cursor: pointer;
}

body.asmart-theme #secondary .wc-block-product-search__button:hover {
	background: var(--asmart-green-dark) !important;
}

body.asmart-theme #secondary .wc-block-product-search__button svg {
	fill: currentColor;
}

/* Best-seller thumbnails: another Woo/Astra rule was pulling them 20px above their row. */
body.asmart-theme #secondary .product_list_widget li img {
	top: 12px !important;
	left: 0 !important;
}

@media (max-width: 640px) {
	body.asmart-theme #secondary .wc-block-product-search__field {
		font-size: 16px; /* stops iOS Safari zooming in on focus */
	}
}

body.asmart-theme #secondary .product_list_widget li img {
	margin: 0 !important;
	transform: none !important;
}


/* ==========================================================================
   Single product page (/product/...)
   Gallery and summary are separate white cards on the grey page background;
   tabs are a third card; related / up-sell cards sit on the grey exactly like
   the shop grid so they use the same content-product.php design.
   ========================================================================== */
body.asmart-theme.single-product div.product {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 24px;
	align-items: start;
	padding: 0;
	background: transparent;
	border-radius: 0;
}

/* Sale badge on the gallery (Astra's white "Sale!" chip -> brand pill) */
body.asmart-theme.single-product div.product > .ast-onsale-card {
	top: 16px !important;
	left: 16px !important;
	right: auto !important;
	z-index: 4;
	padding: 5px 14px;
	border: 0;
	border-radius: 999px;
	background: var(--asmart-green);
	box-shadow: none;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
}

/* Gallery card */
body.asmart-theme.single-product div.product .woocommerce-product-gallery {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 16px;
	background: #fff;
	border: 1px solid var(--asmart-line);
	border-radius: 20px;
	overflow: hidden;
}

body.asmart-theme.single-product .woocommerce-product-gallery img {
	border-radius: 12px;
}

body.asmart-theme.single-product .woocommerce-product-gallery__trigger {
	top: 28px !important;
	right: 28px !important;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 4px 14px rgba(43, 26, 21, 0.18);
	font-size: 16px;
}

body.asmart-theme.single-product .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

body.asmart-theme.single-product .flex-control-thumbs li {
	float: none;
	width: auto;
	margin: 0;
}

body.asmart-theme.single-product .flex-control-thumbs img {
	border: 2px solid transparent;
	border-radius: 10px;
	cursor: pointer;
	opacity: 0.7;
}

body.asmart-theme.single-product .flex-control-thumbs img.flex-active,
body.asmart-theme.single-product .flex-control-thumbs img:hover {
	border-color: var(--asmart-green);
	opacity: 1;
}

/* Summary card */
body.asmart-theme.single-product div.product .summary {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 28px;
	background: #fff;
	border: 1px solid var(--asmart-line);
	border-radius: 20px;
}

body.asmart-theme.single-product .summary .woocommerce-breadcrumb {
	margin: 0 0 12px;
	font-size: 13px;
	color: var(--asmart-muted);
}

body.asmart-theme.single-product .summary .single-product-category {
	display: block;
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

body.asmart-theme.single-product .summary .single-product-category a {
	color: var(--asmart-green);
}

body.asmart-theme.single-product .summary .product_title {
	margin: 0 0 10px;
	font-size: 32px;
	line-height: 1.2;
	letter-spacing: -0.03em;
	color: var(--asmart-ink);
}

body.asmart-theme.single-product .summary .woocommerce-product-rating {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
}

body.asmart-theme.single-product .summary .woocommerce-product-rating .star-rating {
	margin: 0;
}

body.asmart-theme.single-product .summary .woocommerce-review-link {
	font-size: 13px;
	color: var(--asmart-muted);
}

body.asmart-theme.single-product .summary .price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 10px;
	margin: 0 0 12px;
	font-size: 30px;
	font-weight: 800;
	color: var(--asmart-sale);
}

body.asmart-theme.single-product .summary .price del {
	font-size: 18px;
	font-weight: 500;
	color: #9aa3af;
}

body.asmart-theme.single-product .summary .price ins {
	text-decoration: none;
	color: var(--asmart-sale);
}

body.asmart-theme.single-product .summary .ast-shipping-text {
	display: inline-flex;
	margin: 0 0 14px;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--asmart-green-soft);
	color: var(--asmart-green-dark);
	font-size: 12px;
	font-weight: 700;
}

body.asmart-theme.single-product .summary .woocommerce-product-details__short-description {
	margin: 0 0 20px;
	font-size: 15px;
	line-height: 1.7;
	color: #4b5563;
}

/* Quantity + Add to cart */
body.asmart-theme.single-product .summary form.cart:not(.variations_form) {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 12px;
	margin: 0 0 20px;
}

body.asmart-theme.single-product .summary form.cart .quantity {
	flex: 0 0 auto;
	margin: 0;
}

body.asmart-theme.single-product .summary form.cart .quantity input.qty {
	width: 84px;
	height: 52px;
	padding: 0 12px;
	border: 1px solid var(--asmart-line);
	border-radius: 999px;
	background: #fff;
	color: var(--asmart-ink);
	font-size: 16px;
	font-weight: 700;
	text-align: center;
}

body.asmart-theme.single-product .summary form.cart .quantity input.qty:focus {
	border-color: var(--asmart-green);
	outline: none;
}

body.asmart-theme.single-product .summary form.cart .single_add_to_cart_button {
	flex: 1 1 180px;
	min-height: 52px;
	margin: 0;
	padding: 0 28px;
	border: 0;
	border-radius: 999px;
	background: var(--asmart-green) !important;
	color: #fff !important;
	font-size: 16px;
	font-weight: 800;
	box-shadow: 0 8px 20px rgba(242, 121, 15, 0.28);
	cursor: pointer;
	transition: background-color 0.2s ease;
}

body.asmart-theme.single-product .summary form.cart .single_add_to_cart_button:hover {
	background: var(--asmart-green-dark) !important;
}

body.asmart-theme.single-product .summary form.cart .single_add_to_cart_button.loading {
	opacity: 0.65;
	pointer-events: none;
}

/* Variable products: option selects and the add-to-cart row underneath */
body.asmart-theme.single-product .summary table.variations {
	width: 100%;
	margin: 0 0 16px;
	border: 0;
}

body.asmart-theme.single-product .summary table.variations th,
body.asmart-theme.single-product .summary table.variations td {
	display: block;
	padding: 0 0 6px;
	border: 0;
	text-align: left;
}

body.asmart-theme.single-product .summary table.variations label {
	font-size: 14px;
	font-weight: 700;
}

body.asmart-theme.single-product .summary table.variations select {
	width: 100%;
	min-height: 46px;
	padding: 0 40px 0 16px;
	border: 1px solid var(--asmart-line);
	border-radius: 12px;
	background-color: #fff;
	font-size: 15px;
}

body.asmart-theme.single-product .summary .reset_variations {
	font-size: 12px;
	color: var(--asmart-muted);
}

body.asmart-theme.single-product .summary .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* SKU / categories */
body.asmart-theme.single-product .summary .product_meta {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding-top: 16px;
	border-top: 1px solid var(--asmart-line);
	font-size: 13px;
	color: var(--asmart-muted);
}

body.asmart-theme.single-product .summary .product_meta > span {
	display: block;
	margin: 0;
	border: 0;
}

body.asmart-theme.single-product .summary .product_meta a {
	font-weight: 600;
	color: var(--asmart-ink);
}

body.asmart-theme.single-product .summary .product_meta a:hover {
	color: var(--asmart-green);
}

/* Tabs card */
body.asmart-theme.single-product div.product .woocommerce-tabs {
	grid-column: 1 / -1;
	margin: 0;
	padding: 24px 28px;
	background: #fff;
	border: 1px solid var(--asmart-line);
	border-radius: 20px;
}

body.asmart-theme.single-product div.product .woocommerce-tabs ul.tabs {
	display: flex;
	gap: 8px;
	margin: 0 0 18px;
	padding: 0;
	border: 0;
	overflow-x: auto;
	scrollbar-width: none;
}

body.asmart-theme.single-product div.product .woocommerce-tabs ul.tabs::before,
body.asmart-theme.single-product div.product .woocommerce-tabs ul.tabs::after,
body.asmart-theme.single-product div.product .woocommerce-tabs ul.tabs li::before,
body.asmart-theme.single-product div.product .woocommerce-tabs ul.tabs li::after {
	display: none;
}

body.asmart-theme.single-product div.product .woocommerce-tabs ul.tabs li {
	flex: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

body.asmart-theme.single-product div.product .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 10px 18px;
	border: 0;
	border-radius: 999px;
	background: #f3f4f6;
	color: var(--asmart-ink);
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
}

body.asmart-theme.single-product div.product .woocommerce-tabs ul.tabs li.active a {
	background: var(--asmart-green) !important;
	color: #fff !important;
}

body.asmart-theme.single-product .woocommerce-Tabs-panel {
	margin: 0;
	padding: 0;
	font-size: 15px;
	line-height: 1.75;
	color: #374151;
}

body.asmart-theme.single-product .woocommerce-Tabs-panel h2 {
	margin: 0 0 12px;
	font-size: 18px;
}

/* Reviews */
body.asmart-theme.single-product #reviews .commentlist {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.asmart-theme.single-product #reviews .commentlist li {
	margin: 0;
	padding: 0;
	border: 0;
}

body.asmart-theme.single-product #reviews .commentlist li .comment_container {
	display: flex;
	gap: 14px;
	padding: 16px 0;
	border-bottom: 1px solid var(--asmart-line);
}

body.asmart-theme.single-product #reviews .commentlist li img.avatar {
	position: static;
	flex: none;
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 50%;
}

body.asmart-theme.single-product #reviews .commentlist li .comment-text {
	flex: 1;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

body.asmart-theme.single-product #review_form #respond textarea,
body.asmart-theme.single-product #review_form #respond input[type="text"],
body.asmart-theme.single-product #review_form #respond input[type="email"] {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--asmart-line);
	border-radius: 12px;
	background: #fff;
	font-size: 16px;
}

body.asmart-theme.single-product #review_form #respond textarea:focus,
body.asmart-theme.single-product #review_form #respond input:focus {
	border-color: var(--asmart-green);
	outline: none;
}

body.asmart-theme.single-product #review_form #respond input#submit {
	padding: 14px 28px;
	border: 0;
	border-radius: 999px;
	background: var(--asmart-green) !important;
	color: #fff !important;
	font-weight: 800;
	cursor: pointer;
}

body.asmart-theme.single-product #review_form #respond input#submit:hover {
	background: var(--asmart-green-dark) !important;
}

body.asmart-theme.single-product p.stars a {
	color: var(--asmart-star);
}

/* Related products / up-sells: same look as a section on the homepage */
body.asmart-theme.single-product section.related.products,
body.asmart-theme.single-product section.up-sells.products {
	grid-column: 1 / -1;
	margin: 8px 0 0;
}

body.asmart-theme.single-product section.related.products > h2,
body.asmart-theme.single-product section.up-sells.products > h2 {
	margin: 0 0 16px;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--asmart-ink);
}

body.asmart-theme.single-product #primary section.related ul.products:not(.elementor-grid),
body.asmart-theme.single-product #primary section.up-sells ul.products:not(.elementor-grid) {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

/* Card sale badge: Woo's single-product CSS turns it into a big circle; keep the shop-card pill. */
body.asmart-theme ul.products li.product .onsale {
	right: auto !important;
	left: 10px !important;
	top: 10px !important;
	width: auto !important;
	height: auto !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 4px 11px !important;
	border-radius: 999px !important;
	line-height: 1.4 !important;
}

@media (max-width: 1000px) {
	body.asmart-theme.single-product #primary section.related ul.products:not(.elementor-grid),
	body.asmart-theme.single-product #primary section.up-sells ul.products:not(.elementor-grid) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	body.asmart-theme.single-product div.product {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	body.asmart-theme.single-product div.product .woocommerce-product-gallery {
		padding: 12px;
	}

	body.asmart-theme.single-product div.product .summary {
		padding: 20px 18px;
	}

	body.asmart-theme.single-product .summary .product_title {
		font-size: 26px;
	}

	body.asmart-theme.single-product .summary .price {
		font-size: 26px;
	}

	body.asmart-theme.single-product div.product .woocommerce-tabs {
		padding: 18px;
	}
}

@media (max-width: 640px) {
	/* Related / up-sells: one card per row, identical to the shop cards (content-product.php). */
	body.asmart-theme.single-product #primary section.related ul.products:not(.elementor-grid),
	body.asmart-theme.single-product #primary section.up-sells ul.products:not(.elementor-grid) {
		grid-template-columns: minmax(0, 1fr);
	}

	body.asmart-theme.single-product section.related.products > h2,
	body.asmart-theme.single-product section.up-sells.products > h2 {
		font-size: 20px;
	}

	body.asmart-theme.single-product .summary form.cart .quantity input.qty {
		font-size: 16px; /* stops iOS Safari zooming in on focus */
	}

	body.asmart-theme.single-product .summary form.cart .single_add_to_cart_button {
		flex-basis: 0;
		min-width: 0;
		padding: 0 16px;
	}
}

/* Single product fixes: Woo's tab rule line, and review count / stars order */
body.asmart-theme.single-product div.product .woocommerce-tabs ul.tabs::before,
body.asmart-theme.single-product div.product .woocommerce-tabs ul.tabs::after {
	content: none !important;
	display: none !important;
}

body.asmart-theme.single-product .summary .woocommerce-product-rating {
	flex-direction: row !important;
}

body.asmart-theme.single-product .summary .woocommerce-product-rating .review-rating {
	order: -1;
}


/* ==========================================================================
   Cart page (WooCommerce Cart block on /cart/)
   Items and totals are two white cards on the grey page; buttons, prices and
   badges use the BSmart palette. Class names: wc-block-* (WooCommerce Blocks).
   ========================================================================== */
body.asmart-theme.woocommerce-cart #content > .ast-container {
	display: block;
	width: min(var(--asmart-max), calc(100% - 32px));
	max-width: none;
	margin: 24px auto 56px;
}

body.asmart-theme.woocommerce-cart #primary {
	width: 100%;
	margin: 0;
	padding: 0;
	background: transparent;
}

body.asmart-theme.woocommerce-cart article.ast-article-single {
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

body.asmart-theme.woocommerce-cart .entry-header {
	margin: 0 0 20px;
	padding: 0;
}

body.asmart-theme.woocommerce-cart .entry-title {
	margin: 0;
	font-family: inherit;
	font-size: 32px;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--asmart-ink);
}

body.asmart-theme.woocommerce-cart .entry-content {
	margin: 0;
	padding: 0;
}

body.asmart-theme .wp-block-woocommerce-cart {
	margin: 0;
}

/* Two cards side by side on wide screens; WooCommerce stacks them itself on narrow ones. */
body.asmart-theme .wc-block-components-sidebar-layout {
	gap: 24px;
	align-items: flex-start;
}

body.asmart-theme .wc-block-components-sidebar-layout.is-large {
	flex-wrap: nowrap;
}

body.asmart-theme .wc-block-components-sidebar-layout .wc-block-components-main {
	flex: 1 1 0;
	width: auto;
	min-width: 0;
	padding: 8px 24px;
	background: #fff;
	border: 1px solid var(--asmart-line);
	border-radius: 20px;
}

body.asmart-theme .wc-block-components-sidebar-layout .wc-block-components-sidebar {
	flex: 0 0 380px;
	width: auto;
	padding: 24px;
	background: #fff;
	border: 1px solid var(--asmart-line);
	border-radius: 20px;
}

body.asmart-theme .wc-block-components-sidebar-layout.is-large .wc-block-components-sidebar {
	position: sticky;
	top: 110px;
}

/* Line items */
body.asmart-theme table.wc-block-cart-items {
	margin: 0;
	border: 0;
}

body.asmart-theme table.wc-block-cart-items th {
	padding: 14px 0;
	border: 0;
	border-bottom: 1px solid var(--asmart-line);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--asmart-muted);
}

body.asmart-theme table.wc-block-cart-items td {
	padding: 20px 0;
	border: 0;
	border-bottom: 1px solid var(--asmart-line);
	vertical-align: top;
}

body.asmart-theme table.wc-block-cart-items tr:last-child td {
	border-bottom: 0;
}

body.asmart-theme .wc-block-cart-item__image {
	width: 104px;
	padding-right: 16px;
}

body.asmart-theme .wc-block-cart-item__image img {
	display: block;
	width: 88px;
	height: 88px;
	border-radius: 12px;
	object-fit: cover;
}

body.asmart-theme .wc-block-components-product-name {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	text-decoration: none;
	color: var(--asmart-ink);
}

body.asmart-theme .wc-block-components-product-name:hover {
	color: var(--asmart-green);
}

body.asmart-theme .wc-block-cart-item__prices .wc-block-components-product-price__value {
	font-weight: 800;
	color: var(--asmart-sale);
}

body.asmart-theme .wc-block-cart-item__prices del,
body.asmart-theme .wc-block-components-product-price__regular {
	font-weight: 500;
	color: #9aa3af;
}

body.asmart-theme .wc-block-components-product-metadata__description {
	font-size: 13px;
	line-height: 1.5;
	color: var(--asmart-muted);
}

body.asmart-theme .wc-block-components-quantity-selector {
	display: inline-flex;
	align-items: center;
	height: 40px;
	border: 1px solid var(--asmart-line);
	border-radius: 999px;
	background: #fff;
	overflow: hidden;
}

body.asmart-theme .wc-block-components-quantity-selector::after {
	display: none;
}

body.asmart-theme .wc-block-components-quantity-selector__button {
	width: 38px;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--asmart-ink);
	cursor: pointer;
}

body.asmart-theme .wc-block-components-quantity-selector__button:hover {
	background: var(--asmart-green-soft);
	color: var(--asmart-green-dark);
}

body.asmart-theme .wc-block-components-quantity-selector__input {
	width: 40px;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 15px;
	font-weight: 700;
	text-align: center;
	color: var(--asmart-ink);
}

body.asmart-theme .wc-block-cart-item__remove-link {
	color: var(--asmart-muted);
	font-size: 13px;
	cursor: pointer;
}

body.asmart-theme .wc-block-cart-item__remove-link:hover {
	color: var(--asmart-sale);
}

body.asmart-theme .wc-block-cart-item__total .wc-block-components-product-price__value {
	font-size: 16px;
	font-weight: 800;
	color: var(--asmart-ink);
}

body.asmart-theme .wc-block-components-sale-badge,
body.asmart-theme .wc-block-components-product-badge {
	padding: 2px 10px;
	border: 0;
	border-radius: 999px;
	background: var(--asmart-green-soft);
	color: var(--asmart-green-dark);
	font-size: 12px;
	font-weight: 700;
}

/* Totals card */
body.asmart-theme .wc-block-cart__totals-title {
	margin: 0 0 12px;
	padding: 0 0 14px;
	border-bottom: 1px solid var(--asmart-line);
	font-size: 18px;
	font-weight: 800;
	letter-spacing: -0.02em;
	text-transform: none;
	color: var(--asmart-ink);
}

body.asmart-theme .wc-block-components-totals-wrapper {
	border-color: var(--asmart-line);
}

body.asmart-theme .wc-block-components-panel__button {
	font-size: 14px;
	font-weight: 600;
	color: var(--asmart-ink);
}

body.asmart-theme .power-coupons-view-coupons-btn {
	width: 100%;
	padding: 11px 14px;
	border: 1px dashed var(--asmart-green);
	border-radius: 12px;
	background: var(--asmart-green-soft);
	color: var(--asmart-green-dark);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
}

body.asmart-theme .power-coupons-view-coupons-btn:hover {
	background: var(--asmart-green);
	border-style: solid;
	color: #fff;
}

body.asmart-theme .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	font-size: 16px;
	font-weight: 700;
	color: var(--asmart-ink);
}

body.asmart-theme .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-size: 24px;
	font-weight: 800;
	color: var(--asmart-ink);
}

body.asmart-theme .wc-block-cart__submit-button {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	border: 0;
	border-radius: 999px;
	background: var(--asmart-green) !important;
	color: #fff !important;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
	box-shadow: 0 8px 20px rgba(242, 121, 15, 0.28);
	transition: background-color 0.2s ease;
}

body.asmart-theme .wc-block-cart__submit-button:hover {
	background: var(--asmart-green-dark) !important;
}

body.asmart-theme .wc-block-cart__submit-button .wc-block-components-button__text {
	color: #fff;
}

/* Empty cart + "New in store" tiles */
body.asmart-theme .wp-block-woocommerce-empty-cart-block {
	padding: 24px;
	background: #fff;
	border: 1px solid var(--asmart-line);
	border-radius: 20px;
	text-align: center;
}

body.asmart-theme .wp-block-woocommerce-empty-cart-block h2,
body.asmart-theme .wp-block-woocommerce-empty-cart-block .wp-block-heading {
	color: var(--asmart-ink);
	letter-spacing: -0.02em;
}

body.asmart-theme .wp-block-woocommerce-empty-cart-block .wc-block-grid__products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	text-align: left;
}

body.asmart-theme .wp-block-woocommerce-empty-cart-block .wc-block-grid__product {
	display: flex;
	flex-direction: column;
	width: auto;
	max-width: none;
	margin: 0;
	padding: 12px;
	background: #fff;
	border: 1px solid var(--asmart-line);
	border-radius: 16px;
}

body.asmart-theme .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-image img {
	border-radius: 12px;
}

body.asmart-theme .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-title {
	margin: 8px 0 4px;
	font-size: 14px;
	font-weight: 700;
	color: var(--asmart-ink);
}

body.asmart-theme .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-price {
	color: var(--asmart-sale);
	font-weight: 800;
}

body.asmart-theme .wp-block-woocommerce-empty-cart-block .wp-block-button__link {
	width: 100%;
	padding: 11px 16px;
	border-radius: 999px;
	background: var(--asmart-green);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
}

body.asmart-theme .wp-block-woocommerce-empty-cart-block .wp-block-button__link:hover {
	background: var(--asmart-green-dark);
}

@media (max-width: 1000px) {
	body.asmart-theme .wp-block-woocommerce-empty-cart-block .wc-block-grid__products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 782px) {
	body.asmart-theme.woocommerce-cart #content > .ast-container {
		margin: 16px auto 40px;
	}

	body.asmart-theme.woocommerce-cart .entry-title {
		font-size: 26px;
	}

	body.asmart-theme .wc-block-components-sidebar-layout .wc-block-components-main {
		padding: 4px 16px;
	}

	body.asmart-theme .wc-block-components-sidebar-layout .wc-block-components-sidebar {
		flex: 1 1 100%;
		padding: 18px;
	}

	body.asmart-theme .wc-block-components-sidebar-layout .wc-block-components-sidebar,
	body.asmart-theme .wc-block-components-sidebar-layout .wc-block-components-main {
		width: 100%;
	}

	body.asmart-theme .wp-block-woocommerce-empty-cart-block {
		padding: 16px;
	}
}

@media (max-width: 640px) {
	body.asmart-theme .wp-block-woocommerce-empty-cart-block .wc-block-grid__products {
		grid-template-columns: minmax(0, 1fr);
	}

	body.asmart-theme .wc-block-cart-item__image {
		width: 84px;
		padding-right: 12px;
	}

	body.asmart-theme .wc-block-cart-item__image img {
		width: 72px;
		height: 72px;
	}
}

/* Cart page fixes: the block's "wide" alignment pushed it past the container, and row lines were drawn per cell. */
body.asmart-theme.woocommerce-cart .wp-block-woocommerce-cart.alignwide {
	width: 100%;
	max-width: none;
	margin-right: 0;
	margin-left: 0;
}

body.asmart-theme .wc-block-cart.wc-block-components-sidebar-layout {
	margin: 0;
	padding: 0;
}

body.asmart-theme .wc-block-components-sidebar-layout .wc-block-components-main.wc-block-cart__main {
	box-sizing: border-box;
	padding: 8px 24px;
}

body.asmart-theme table.wc-block-cart-items {
	border-collapse: collapse;
}

body.asmart-theme table.wc-block-cart-items tr.wc-block-cart-items__row {
	border-bottom: 1px solid var(--asmart-line);
}

body.asmart-theme table.wc-block-cart-items tr.wc-block-cart-items__row:last-child {
	border-bottom: 0;
}

body.asmart-theme table.wc-block-cart-items td {
	border: 0 !important;
}

@media (max-width: 782px) {
	body.asmart-theme .wc-block-components-sidebar-layout .wc-block-components-main.wc-block-cart__main {
		padding: 4px 16px;
	}
}

/* Cart rows on phones: thumbnail on the left; details, then price + savings underneath (nothing runs off-screen). */
@media (max-width: 640px) {
	body.asmart-theme table.wc-block-cart-items,
	body.asmart-theme table.wc-block-cart-items tbody {
		display: block;
		width: 100%;
	}

	body.asmart-theme table.wc-block-cart-items thead {
		display: none;
	}

	body.asmart-theme table.wc-block-cart-items tr.wc-block-cart-items__row {
		display: grid !important;
		grid-template-columns: 76px minmax(0, 1fr);
		column-gap: 12px;
		row-gap: 6px;
		padding: 16px 0;
	}

	body.asmart-theme table.wc-block-cart-items tr.wc-block-cart-items__row > td {
		display: block;
		min-width: 0;
		padding: 0;
	}

	body.asmart-theme .wc-block-cart-item__image {
		grid-column: 1;
		grid-row: 1 / span 2;
		width: auto;
		padding: 0;
	}

	body.asmart-theme .wc-block-cart-item__image img {
		width: 76px;
		height: 76px;
	}

	body.asmart-theme .wc-block-cart-item__product {
		grid-column: 2;
		grid-row: 1;
	}

	body.asmart-theme .wc-block-cart-item__total {
		grid-column: 2;
		grid-row: 2;
		text-align: left;
	}

	body.asmart-theme .wc-block-cart-item__total-price-and-sale-badge-wrapper {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: flex-start;
		gap: 4px 10px;
	}
}

@media (max-width: 640px) {
	/* WooCommerce absolutely positions the row total on small screens; keep it in the grid instead. */
	body.asmart-theme .wc-block-cart-item__total,
	body.asmart-theme .wc-block-cart-item__total .wc-block-cart-item__total-price-and-sale-badge-wrapper {
		position: static !important;
		inset: auto !important;
		width: auto !important;
		margin: 0 !important;
		transform: none !important;
	}
}

@media (max-width: 640px) {
	body.asmart-theme .wc-block-cart-item__image {
		grid-column: 1 !important;
		grid-row: 1 / span 2 !important;
	}

	body.asmart-theme .wc-block-cart-item__product {
		grid-column: 2 !important;
		grid-row: 1 !important;
	}

	body.asmart-theme .wc-block-cart-item__total {
		grid-column: 2 !important;
		grid-row: 2 !important;
		text-align: left !important;
	}
}

/* Empty-cart "New in store" tiles: same look as the shop cards */
body.asmart-theme .wp-block-woocommerce-empty-cart-block .wc-block-grid__product {
	position: relative;
	text-align: left;
}

body.asmart-theme .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
}

body.asmart-theme .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-price {
	margin: 0 0 6px;
	text-align: left;
}

body.asmart-theme .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-rating {
	justify-content: flex-start;
	margin: 0 0 10px;
}

body.asmart-theme .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart {
	margin-top: auto;
}

body.asmart-theme .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart .wp-block-button__link {
	display: block;
	width: 100%;
	box-sizing: border-box;
}

body.asmart-theme .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-onsale {
	position: absolute;
	top: 22px;
	left: 22px;
	right: auto;
	z-index: 2;
	width: auto;
	height: auto;
	min-width: 0;
	min-height: 0;
	padding: 4px 11px;
	border: 0;
	border-radius: 999px;
	background: var(--asmart-green);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	text-transform: none;
}

body.asmart-theme .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-onsale {
	width: auto !important;
	height: auto !important;
	min-width: 0 !important;
	min-height: 0 !important;
	padding: 4px 11px !important;
	border-radius: 999px !important;
	line-height: 1.4 !important;
}

body.asmart-theme .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart,
body.asmart-theme .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart .wp-block-button__link {
	display: block !important;
	width: 100% !important;
	text-align: center;
}

body.asmart-theme .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-rating {
	display: flex;
	justify-content: flex-start !important;
}

body.asmart-theme .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-rating .star-rating {
	margin: 0 !important;
}

/* ==========================================================================
   Checkout page (WooCommerce Checkout block on /checkout/)
   Same two-card layout as the cart: the form on the left, the order summary on
   the right (stacked on phones). Inputs, payment options and the Place order
   button use the BSmart palette.
   ========================================================================== */
body.asmart-theme.woocommerce-checkout #content > .ast-container {
	display: block;
	width: min(var(--asmart-max), calc(100% - 32px));
	max-width: none;
	margin: 24px auto 56px;
}

body.asmart-theme.woocommerce-checkout #primary {
	width: 100%;
	margin: 0;
	padding: 0;
	background: transparent;
}

body.asmart-theme.woocommerce-checkout article.ast-article-single {
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

body.asmart-theme.woocommerce-checkout .entry-header {
	margin: 0 0 20px;
	padding: 0;
}

body.asmart-theme.woocommerce-checkout .entry-title {
	margin: 0;
	font-family: inherit;
	font-size: 32px;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--asmart-ink);
}

body.asmart-theme.woocommerce-checkout .entry-content {
	margin: 0;
	padding: 0;
}

body.asmart-theme.woocommerce-checkout .wp-block-woocommerce-checkout.alignwide {
	width: 100%;
	max-width: none;
	margin: 0;
}

body.asmart-theme .wc-block-checkout.wc-block-components-sidebar-layout {
	margin: 0;
	padding: 0;
}

/* Two cards: the form, and the order summary. */
body.asmart-theme .wc-block-components-sidebar-layout .wc-block-components-main.wc-block-checkout__main {
	box-sizing: border-box;
	padding: 28px;
}

body.asmart-theme .wc-block-checkout__form {
	margin: 0;
	padding: 0;
}

body.asmart-theme .wc-block-checkout .wc-block-components-sidebar.wc-block-checkout__sidebar {
	box-sizing: border-box;
	padding: 24px;
}

/* The summary already sits in a card; drop the block's own second border. */
body.asmart-theme .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}

/* Step headings (Contact information, Billing address, Payment options) */
body.asmart-theme .wc-block-checkout .wc-block-components-checkout-step {
	margin: 0 0 28px;
	padding: 0;
	border: 0;
}

body.asmart-theme .wc-block-checkout .wc-block-components-checkout-step__heading {
	margin: 0 0 16px;
	align-items: center;
}

body.asmart-theme .wc-block-checkout .wc-block-components-title,
body.asmart-theme .wc-block-checkout .wc-block-components-checkout-order-summary__title-text {
	margin: 0;
	font-family: inherit;
	font-size: 18px;
	font-weight: 800;
	letter-spacing: -0.02em;
	text-transform: none;
	color: var(--asmart-ink);
}

body.asmart-theme .wc-block-checkout__login-prompt,
body.asmart-theme .wc-block-checkout .wc-block-components-checkout-return-to-cart-button {
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	color: var(--asmart-green-dark);
}

body.asmart-theme .wc-block-checkout__login-prompt:hover,
body.asmart-theme .wc-block-checkout .wc-block-components-checkout-return-to-cart-button:hover {
	text-decoration: underline;
}

body.asmart-theme .wc-block-checkout__guest-checkout-notice {
	margin: 10px 0 0;
	font-size: 13px;
	color: var(--asmart-muted);
}

/* Form fields: rounded, hairline border, orange focus ring. */
body.asmart-theme .wc-block-checkout .wc-block-components-text-input input,
body.asmart-theme .wc-block-checkout .wc-block-components-textarea,
body.asmart-theme .wc-block-checkout .wc-blocks-components-select__select {
	box-sizing: border-box;
	min-height: 54px;
	border: 1px solid #ddd3cc;
	border-radius: 12px;
	background-color: #fff;
	font-family: inherit;
	font-size: 15px;
	color: var(--asmart-ink);
	box-shadow: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.asmart-theme .wc-block-checkout .wc-block-components-text-input input:focus,
body.asmart-theme .wc-block-checkout .wc-block-components-textarea:focus,
body.asmart-theme .wc-block-checkout .wc-blocks-components-select__select:focus {
	border-color: var(--asmart-green);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(242, 121, 15, 0.18);
}

body.asmart-theme .wc-block-checkout .wc-block-components-text-input label,
body.asmart-theme .wc-block-checkout .wc-blocks-components-select__label {
	font-family: inherit;
	color: var(--asmart-muted);
}

body.asmart-theme .wc-block-checkout .wc-block-components-text-input.has-error input {
	border-color: var(--asmart-sale);
}

body.asmart-theme .wc-block-checkout .wc-block-components-validation-error {
	color: var(--asmart-sale);
	font-size: 12px;
}

body.asmart-theme .wc-block-checkout .wc-block-components-address-form__address_2-toggle,
body.asmart-theme .wc-block-checkout .wc-block-components-checkbox__label {
	font-size: 14px;
	color: var(--asmart-ink);
}

body.asmart-theme .wc-block-checkout .wc-block-components-address-form__address_2-toggle {
	font-weight: 600;
	color: var(--asmart-green-dark);
}

body.asmart-theme .wc-block-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] {
	border: 1px solid #c9bdb5;
	border-radius: 6px;
	background: #fff;
}

body.asmart-theme .wc-block-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked {
	border-color: var(--asmart-green);
	background: var(--asmart-green);
}

body.asmart-theme .wc-block-checkout .wc-block-components-checkbox .wc-block-components-checkbox__mark {
	fill: #fff;
}

/* Saved-address card */
body.asmart-theme .wc-block-components-address-card {
	border: 1px solid var(--asmart-line);
	border-radius: 12px;
	background: var(--asmart-green-soft);
}

body.asmart-theme .wc-block-components-address-card__edit {
	font-weight: 700;
	color: var(--asmart-green-dark);
}

/* Payment options */
body.asmart-theme .wc-block-checkout .wc-block-components-radio-control-accordion-option,
body.asmart-theme .wc-block-checkout .wc-block-components-radio-control__option {
	font-family: inherit;
}

body.asmart-theme .wc-block-checkout .wc-block-components-radio-control--highlight-checked {
	border: 0;
}

body.asmart-theme .wc-block-checkout .wc-block-components-radio-control-accordion-option {
	overflow: hidden;
	border: 1px solid #ddd3cc;
	border-radius: 12px;
	box-shadow: none;
}

body.asmart-theme .wc-block-checkout .wc-block-components-radio-control-accordion-option--checked-option-highlighted {
	border-color: var(--asmart-green);
	background: var(--asmart-green-soft);
	box-shadow: 0 0 0 1px var(--asmart-green);
}

body.asmart-theme .wc-block-checkout .wc-block-components-radio-control__option-checked {
	font-weight: 700;
}

body.asmart-theme .wc-block-checkout .wc-block-components-radio-control__input[type="radio"] {
	accent-color: var(--asmart-green);
	border-color: #c9bdb5;
}

body.asmart-theme .wc-block-checkout .wc-block-components-radio-control__input[type="radio"]:checked {
	border-color: var(--asmart-green);
	background: #fff;
}

body.asmart-theme .wc-block-checkout .wc-block-components-radio-control__input[type="radio"]:checked::before {
	background: var(--asmart-green);
}

body.asmart-theme .wc-block-checkout .wc-block-components-radio-control-accordion-content {
	padding: 0 16px 16px;
	font-size: 14px;
	color: var(--asmart-muted);
}

/* Terms + Place order */
body.asmart-theme .wc-block-checkout__terms {
	margin: 0 0 20px;
	font-size: 13px;
	line-height: 1.6;
	color: var(--asmart-muted);
}

body.asmart-theme .wc-block-checkout__terms a {
	font-weight: 600;
	color: var(--asmart-green-dark);
}

body.asmart-theme .wc-block-checkout__actions_row {
	align-items: center;
	gap: 16px;
}

body.asmart-theme .wc-block-components-checkout-place-order-button {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	background: var(--asmart-green) !important;
	color: #fff !important;
	font-family: inherit;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: none;
	box-shadow: 0 8px 20px rgba(242, 121, 15, 0.28);
	transition: background-color 0.2s ease;
	cursor: pointer;
}

body.asmart-theme .wc-block-components-checkout-place-order-button:hover {
	background: var(--asmart-green-dark) !important;
}

body.asmart-theme .wc-block-components-checkout-place-order-button .wc-block-components-button__text,
body.asmart-theme .wc-block-components-checkout-place-order-button__text {
	color: #fff;
}

/* Order summary card */
body.asmart-theme .wc-block-components-checkout-order-summary__title {
	padding: 0 0 14px;
	border-bottom: 1px solid var(--asmart-line);
}

body.asmart-theme .wc-block-components-checkout-order-summary__title-price {
	font-size: 15px;
	font-weight: 800;
	color: var(--asmart-ink);
}

body.asmart-theme .wc-block-components-order-summary-item {
	padding: 14px 0;
	border-bottom: 1px solid var(--asmart-line);
}

body.asmart-theme .wc-block-components-order-summary-item:last-child {
	border-bottom: 0;
}

body.asmart-theme .wc-block-components-order-summary-item__image img {
	width: 56px;
	height: 56px;
	border: 0;
	border-radius: 10px;
	object-fit: cover;
}

body.asmart-theme .wc-block-components-order-summary-item__quantity {
	min-width: 22px;
	height: 22px;
	border: 2px solid #fff;
	border-radius: 999px;
	background: var(--asmart-green);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	box-shadow: none;
}

body.asmart-theme .wc-block-components-order-summary-item__description .wc-block-components-product-name {
	font-size: 14px;
}

body.asmart-theme .wc-block-components-order-summary-item__total-price .wc-block-components-product-price__value {
	font-weight: 800;
	color: var(--asmart-ink);
}

body.asmart-theme .wc-block-components-totals-item__label {
	font-size: 14px;
	color: var(--asmart-muted);
}

body.asmart-theme .wc-block-components-totals-item__value {
	font-weight: 700;
	color: var(--asmart-ink);
}

body.asmart-theme .wc-block-components-totals-coupon__input input {
	border-radius: 12px;
}

body.asmart-theme .wc-block-components-totals-coupon__button {
	border-radius: 999px;
	background: var(--asmart-green);
	color: #fff;
}

body.asmart-theme .wc-block-components-notice-banner {
	border-radius: 12px;
	font-family: inherit;
}

@media (max-width: 782px) {
	body.asmart-theme.woocommerce-checkout #content > .ast-container {
		margin: 16px auto 40px;
	}

	body.asmart-theme.woocommerce-checkout .entry-title {
		font-size: 26px;
	}

	body.asmart-theme .wc-block-components-sidebar-layout .wc-block-components-main.wc-block-checkout__main {
		padding: 20px 16px;
	}

	body.asmart-theme .wc-block-checkout .wc-block-components-sidebar.wc-block-checkout__sidebar {
		padding: 16px;
	}

	body.asmart-theme .wc-block-checkout .wc-block-components-checkout-step {
		margin-bottom: 24px;
	}
}

@media (max-width: 480px) {
	/* Keep every input a comfortable full-width tap target on small phones. */
	body.asmart-theme .wc-block-checkout .wc-block-components-address-form__first_name,
	body.asmart-theme .wc-block-checkout .wc-block-components-address-form__last_name,
	body.asmart-theme .wc-block-checkout .wc-block-components-address-form__city,
	body.asmart-theme .wc-block-checkout .wc-block-components-address-form__state,
	body.asmart-theme .wc-block-checkout .wc-block-components-address-form__postcode,
	body.asmart-theme .wc-block-checkout .wc-block-components-address-form__phone {
		flex: 1 1 100%;
		width: 100%;
	}
}

/* Checkout fixes: even spacing between address fields, and product names use the theme font. */
body.asmart-theme .wc-block-checkout .wc-block-components-address-form:not(#contact) {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

body.asmart-theme .wc-block-checkout .wc-block-components-address-form:not(#contact) > *,
body.asmart-theme .wc-block-checkout .wc-block-components-address-form:not(#contact) .wc-blocks-components-select,
body.asmart-theme .wc-block-checkout .wc-block-components-address-form:not(#contact) .wc-blocks-components-select__container {
	margin: 0;
}

body.asmart-theme .wc-block-checkout .wc-block-components-address-form:not(#contact) .wc-block-components-address-form__first_name,
body.asmart-theme .wc-block-checkout .wc-block-components-address-form:not(#contact) .wc-block-components-address-form__last_name,
body.asmart-theme .wc-block-checkout .wc-block-components-address-form:not(#contact) .wc-block-components-address-form__city,
body.asmart-theme .wc-block-checkout .wc-block-components-address-form:not(#contact) .wc-block-components-address-form__state,
body.asmart-theme .wc-block-checkout .wc-block-components-address-form:not(#contact) .wc-block-components-address-form__postcode,
body.asmart-theme .wc-block-checkout .wc-block-components-address-form:not(#contact) .wc-block-components-address-form__phone {
	flex: 1 1 calc(50% - 7px);
	min-width: 0;
}

body.asmart-theme .wc-block-checkout .wc-block-components-address-form:not(#contact) .wc-block-components-address-form__country,
body.asmart-theme .wc-block-checkout .wc-block-components-address-form:not(#contact) .wc-block-components-address-form__address_1,
body.asmart-theme .wc-block-checkout .wc-block-components-address-form:not(#contact) .wc-block-components-address-form__address_2-toggle {
	flex: 1 1 100%;
}

body.asmart-theme .wc-block-checkout h2,
body.asmart-theme .wc-block-checkout h3,
body.asmart-theme .wc-block-checkout .wc-block-components-product-name {
	font-family: inherit;
	color: var(--asmart-ink);
}

body.asmart-theme .wc-block-checkout .wc-block-components-order-summary {
	border: 0;
}

/* On phones the summary is repeated above the button, inside the form card. */
body.asmart-theme .wc-block-checkout__main .wp-block-woocommerce-checkout-order-summary-block {
	border: 1px solid var(--asmart-line);
	border-radius: 12px;
}

body.asmart-theme .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block {
	border: 0;
}

@media (max-width: 480px) {
	body.asmart-theme .wc-block-checkout .wc-block-components-address-form:not(#contact) .wc-block-components-address-form__first_name,
	body.asmart-theme .wc-block-checkout .wc-block-components-address-form:not(#contact) .wc-block-components-address-form__last_name,
	body.asmart-theme .wc-block-checkout .wc-block-components-address-form:not(#contact) .wc-block-components-address-form__city,
	body.asmart-theme .wc-block-checkout .wc-block-components-address-form:not(#contact) .wc-block-components-address-form__state,
	body.asmart-theme .wc-block-checkout .wc-block-components-address-form:not(#contact) .wc-block-components-address-form__postcode,
	body.asmart-theme .wc-block-checkout .wc-block-components-address-form:not(#contact) .wc-block-components-address-form__phone {
		flex: 1 1 100%;
	}
}

/* Small phones: give product names the full row and drop the line total underneath. */
@media (max-width: 420px) {
	body.asmart-theme .wc-block-checkout .wc-block-components-order-summary-item {
		display: grid;
		grid-template-columns: 56px minmax(0, 1fr);
		column-gap: 12px;
		row-gap: 6px;
		align-items: start;
	}

	body.asmart-theme .wc-block-checkout .wc-block-components-order-summary-item > span:empty {
		display: none;
	}

	body.asmart-theme .wc-block-checkout .wc-block-components-order-summary-item__image {
		grid-row: 1 / span 2;
		width: 56px;
		padding: 0;
	}

	body.asmart-theme .wc-block-checkout .wc-block-components-order-summary-item__description {
		grid-column: 2;
		min-width: 0;
		padding: 0;
	}

	body.asmart-theme .wc-block-checkout .wc-block-components-order-summary-item__total-price {
		grid-column: 2;
		min-width: 0;
		text-align: left;
	}

	body.asmart-theme .wc-block-checkout .wc-block-cart-item__total-price-and-sale-badge-wrapper {
		align-items: flex-start;
	}
}

/* Tablets / large phones: WooCommerce can still mark the layout "large" (no wrap) below 783px,
   which squeezed the form into a sliver. Stack the two cards whenever the viewport is this narrow. */
@media (max-width: 782px) {
	body.asmart-theme .wc-block-components-sidebar-layout.is-large {
		flex-wrap: wrap;
	}

	body.asmart-theme .wc-block-components-sidebar-layout .wc-block-components-main,
	body.asmart-theme .wc-block-components-sidebar-layout .wc-block-components-sidebar {
		flex: 1 1 100%;
		width: 100%;
	}

	body.asmart-theme .wc-block-components-sidebar-layout.is-large .wc-block-components-sidebar {
		position: static;
	}
}

/* ==========================================================================
   Order confirmation page (/checkout/order-received/…)
   ========================================================================== */
body.asmart-theme.woocommerce-order-received .woocommerce-order,
body.asmart-theme.woocommerce-order-received .entry-content > .woocommerce {
	margin: 0;
	padding: 0;
}

/* "Thank you" banner */
body.asmart-theme .woocommerce-thankyou-order-received {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 20px;
	padding: 22px 24px;
	border: 1px solid #f7d9b8;
	border-radius: 20px;
	background: var(--asmart-green-soft);
	color: var(--asmart-ink);
	font-size: 18px;
	font-weight: 800;
	letter-spacing: -0.01em;
}

body.asmart-theme .woocommerce-thankyou-order-received::before {
	content: "";
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--asmart-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 24px no-repeat;
}

body.asmart-theme .woocommerce-thankyou-order-failed {
	margin: 0 0 20px;
	padding: 18px 22px;
	border: 1px solid #f3c6c6;
	border-radius: 16px;
	background: #fdeeee;
	color: var(--asmart-sale);
	font-weight: 700;
}

body.asmart-theme .woocommerce-thankyou-order-failed-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 20px;
}

body.asmart-theme .woocommerce-thankyou-order-failed-actions .button {
	margin: 0;
	padding: 12px 22px;
	border-radius: 999px;
	background: var(--asmart-green);
	color: #fff;
	font-weight: 800;
}

/* Order number / date / email / total / payment chips */
body.asmart-theme ul.woocommerce-order-overview {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 12px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

body.asmart-theme ul.woocommerce-order-overview li {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	margin: 0;
	padding: 16px 18px;
	border: 1px solid var(--asmart-line);
	border-radius: 16px;
	background: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--asmart-muted);
}

body.asmart-theme ul.woocommerce-order-overview li strong {
	font-size: 16px;
	font-weight: 800;
	letter-spacing: -0.01em;
	text-transform: none;
	color: var(--asmart-ink);
	overflow-wrap: anywhere;
}

body.asmart-theme ul.woocommerce-order-overview li.woocommerce-order-overview__total strong {
	color: var(--asmart-sale);
}

/* Payment instructions from the gateway */
body.asmart-theme.woocommerce-order-received .woocommerce-order > p:not(.woocommerce-thankyou-order-received):not(.woocommerce-thankyou-order-failed) {
	margin: 0 0 20px;
	color: var(--asmart-muted);
	font-size: 15px;
}

/* Order details + customer details cards */
body.asmart-theme section.woocommerce-order-details,
body.asmart-theme section.woocommerce-customer-details {
	margin: 0 0 20px;
	padding: 24px;
	border: 1px solid var(--asmart-line);
	border-radius: 20px;
	background: #fff;
}

body.asmart-theme .woocommerce-order-details__title,
body.asmart-theme .woocommerce-column__title,
body.asmart-theme .woocommerce-customer-details h2 {
	margin: 0 0 14px;
	padding: 0;
	border: 0;
	background: transparent;
	font-family: inherit;
	font-size: 18px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--asmart-ink);
}

body.asmart-theme table.woocommerce-table--order-details {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	background: transparent;
}

body.asmart-theme table.woocommerce-table--order-details th,
body.asmart-theme table.woocommerce-table--order-details td {
	padding: 14px 0;
	border: 0;
	border-bottom: 1px solid var(--asmart-line);
	background: transparent;
	font-size: 15px;
	vertical-align: top;
	color: var(--asmart-ink);
}

body.asmart-theme table.woocommerce-table--order-details thead th {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--asmart-muted);
}

body.asmart-theme table.woocommerce-table--order-details th:last-child,
body.asmart-theme table.woocommerce-table--order-details td:last-child {
	text-align: right;
	white-space: nowrap;
}

body.asmart-theme table.woocommerce-table--order-details .product-name a {
	font-weight: 700;
	text-decoration: none;
	color: var(--asmart-ink);
}

body.asmart-theme table.woocommerce-table--order-details .product-quantity {
	margin-left: 4px;
	font-weight: 700;
	color: var(--asmart-muted);
}

body.asmart-theme table.woocommerce-table--order-details tfoot th {
	font-weight: 600;
	color: var(--asmart-muted);
}

body.asmart-theme table.woocommerce-table--order-details tfoot tr:nth-last-child(2) th,
body.asmart-theme table.woocommerce-table--order-details tfoot tr:nth-last-child(2) td {
	font-size: 18px;
	font-weight: 800;
	color: var(--asmart-ink);
}

body.asmart-theme table.woocommerce-table--order-details tfoot tr:nth-last-child(2) td {
	color: var(--asmart-sale);
}

body.asmart-theme table.woocommerce-table--order-details tfoot tr:last-child th,
body.asmart-theme table.woocommerce-table--order-details tfoot tr:last-child td {
	border-bottom: 0;
}

body.asmart-theme .woocommerce-customer-details address {
	margin: 0;
	padding: 0;
	border: 0;
	font-style: normal;
	line-height: 1.7;
	color: var(--asmart-ink);
}

body.asmart-theme .woocommerce-customer-details address p {
	margin: 0 0 4px;
}

body.asmart-theme .woocommerce-customer-details .woocommerce-customer-details--phone,
body.asmart-theme .woocommerce-customer-details .woocommerce-customer-details--email {
	color: var(--asmart-muted);
}

/* Next-step buttons */
.asmart-order-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 8px;
}

.asmart-order-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0 28px;
	border: 1px solid var(--asmart-line);
	border-radius: 999px;
	background: #fff;
	color: var(--asmart-ink);
	font-size: 15px;
	font-weight: 800;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.asmart-order-btn:hover {
	border-color: var(--asmart-green);
	color: var(--asmart-green-dark);
}

.asmart-order-btn--primary {
	border-color: var(--asmart-green);
	background: var(--asmart-green);
	color: #fff;
	box-shadow: 0 8px 20px rgba(242, 121, 15, 0.28);
}

.asmart-order-btn--primary:hover {
	border-color: var(--asmart-green-dark);
	background: var(--asmart-green-dark);
	color: #fff;
}

/* Logged-out visitors: "please log in to view this order" */
body.asmart-theme.woocommerce-order-received .woocommerce-info {
	margin: 0 0 20px;
	padding: 16px 20px;
	border: 1px solid #f7d9b8;
	border-radius: 16px;
	background: var(--asmart-green-soft);
	color: var(--asmart-ink);
	font-weight: 600;
}

body.asmart-theme.woocommerce-order-received .woocommerce-info::before {
	color: var(--asmart-green);
}

body.asmart-theme.woocommerce-order-received form.woocommerce-form-login {
	max-width: 480px;
	margin: 0;
	padding: 24px;
	border: 1px solid var(--asmart-line);
	border-radius: 20px;
	background: #fff;
}

body.asmart-theme.woocommerce-order-received form.woocommerce-form-login .form-row {
	float: none;
	width: 100%;
	margin: 0 0 14px;
	padding: 0;
}

body.asmart-theme.woocommerce-order-received form.woocommerce-form-login label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 700;
	color: var(--asmart-ink);
}

body.asmart-theme.woocommerce-order-received form.woocommerce-form-login input.input-text {
	box-sizing: border-box;
	width: 100%;
	min-height: 50px;
	border: 1px solid #ddd3cc;
	border-radius: 12px;
	background: #fff;
	font-family: inherit;
	font-size: 15px;
	box-shadow: none;
}

body.asmart-theme.woocommerce-order-received form.woocommerce-form-login input.input-text:focus {
	border-color: var(--asmart-green);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(242, 121, 15, 0.18);
}

body.asmart-theme.woocommerce-order-received form.woocommerce-form-login .password-input {
	position: relative;
	display: block;
}

body.asmart-theme.woocommerce-order-received form.woocommerce-form-login .show-password-input {
	position: absolute;
	top: 50%;
	right: 14px;
	width: 24px;
	height: 24px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background-color: transparent;
	box-shadow: none;
	transform: translateY(-50%);
	cursor: pointer;
}

body.asmart-theme.woocommerce-order-received form.woocommerce-form-login .woocommerce-form__label-for-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
}

body.asmart-theme.woocommerce-order-received form.woocommerce-form-login .woocommerce-form__input-checkbox {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--asmart-green);
}

body.asmart-theme.woocommerce-order-received form.woocommerce-form-login .woocommerce-form-login__submit {
	width: 100%;
	min-height: 52px;
	border: 0;
	border-radius: 999px;
	background: var(--asmart-green);
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: none;
	box-shadow: 0 8px 20px rgba(242, 121, 15, 0.28);
}

body.asmart-theme.woocommerce-order-received form.woocommerce-form-login .woocommerce-form-login__submit:hover {
	background: var(--asmart-green-dark);
}

body.asmart-theme.woocommerce-order-received form.woocommerce-form-login .lost_password {
	margin: 14px 0 0;
}

body.asmart-theme.woocommerce-order-received form.woocommerce-form-login .lost_password a {
	font-weight: 700;
	color: var(--asmart-green-dark);
}

@media (max-width: 640px) {
	body.asmart-theme .woocommerce-thankyou-order-received {
		padding: 16px;
		font-size: 16px;
	}

	body.asmart-theme ul.woocommerce-order-overview {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	body.asmart-theme ul.woocommerce-order-overview li {
		padding: 12px 14px;
	}

	body.asmart-theme ul.woocommerce-order-overview li:first-child,
	body.asmart-theme ul.woocommerce-order-overview li.woocommerce-order-overview__email {
		grid-column: 1 / -1;
	}

	body.asmart-theme section.woocommerce-order-details,
	body.asmart-theme section.woocommerce-customer-details {
		padding: 18px 16px;
	}

	body.asmart-theme table.woocommerce-table--order-details th,
	body.asmart-theme table.woocommerce-table--order-details td {
		font-size: 14px;
	}

	.asmart-order-actions {
		flex-direction: column;
	}

	.asmart-order-btn {
		width: 100%;
	}

	body.asmart-theme.woocommerce-order-received form.woocommerce-form-login {
		padding: 18px 16px;
	}
}

/* Order page fixes: Woo's 1200px cap on .woocommerce, its clearfix pseudo-elements landing in the chip grid,
   and Astra's boxed heading style (higher specificity needed). */
body.asmart-theme.woocommerce-order-received .entry-content > .woocommerce {
	max-width: none;
	width: 100%;
}

body.asmart-theme ul.woocommerce-order-overview::before,
body.asmart-theme ul.woocommerce-order-overview::after {
	display: none;
}

body.asmart-theme.woocommerce-order-received section h2.woocommerce-order-details__title,
body.asmart-theme.woocommerce-order-received section h2.woocommerce-column__title,
body.asmart-theme.woocommerce-order-received section.woocommerce-customer-details h2 {
	margin: 0 0 14px !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
}

body.asmart-theme.woocommerce-order-received .woocommerce-columns--addresses,
body.asmart-theme.woocommerce-order-received .woocommerce-column {
	float: none;
	width: 100%;
	max-width: none;
	padding: 0;
	border: 0;
	background: transparent;
}

body.asmart-theme table.woocommerce-table--order-details th:first-child,
body.asmart-theme table.woocommerce-table--order-details td:first-child {
	padding-left: 0;
}

body.asmart-theme table.woocommerce-table--order-details th:last-child,
body.asmart-theme table.woocommerce-table--order-details td:last-child {
	padding-right: 0;
}

@media (max-width: 640px) {
	/* Pair order number + date, then email full width, then total + payment. */
	body.asmart-theme ul.woocommerce-order-overview li:first-child {
		grid-column: auto;
	}
}

body.asmart-theme.woocommerce-order-received .woocommerce-info::before {
	display: none;
}

/* ==========================================================================
   About page (page-about.php)
   ========================================================================== */
.asmart-about {
	flex: 1 1 100%;
	width: 100%;
	min-width: 0;
	padding: 24px 0 64px;
	overflow-x: clip;
}

.asmart-about h1,
.asmart-about h2,
.asmart-about b {
	font-family: inherit;
}

.asmart-about-hero {
	padding: 64px 48px;
	border-radius: 24px;
	background:
		radial-gradient(circle at 88% 12%, rgba(242, 121, 15, 0.35), transparent 42%),
		var(--asmart-footer-bg);
	color: #fff;
}

.asmart-about-badge {
	display: inline-block;
	margin-bottom: 18px;
	padding: 6px 14px;
	border-radius: 999px;
	background: #fde3c8;
	color: #b3540a;
	font-size: 12px;
	font-weight: 700;
}

.asmart-about-hero h1 {
	max-width: 720px;
	margin: 0 0 16px;
	font-size: 46px;
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.03em;
	color: #fff;
}

.asmart-about-hero p {
	max-width: 560px;
	margin: 0 0 28px;
	font-size: 17px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.82);
}

.asmart-about-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.asmart-about-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 50px;
	padding: 0 28px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 800;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.asmart-about-btn--primary {
	background: var(--asmart-green);
	color: #fff;
	box-shadow: 0 8px 20px rgba(242, 121, 15, 0.32);
}

.asmart-about-btn--primary:hover {
	background: var(--asmart-green-dark);
	color: #fff;
}

.asmart-about-btn--ghost {
	border-color: rgba(255, 255, 255, 0.4);
	color: #fff;
}

.asmart-about-btn--ghost:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.asmart-about h2 {
	margin: 0 0 14px;
	font-size: 30px;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--asmart-ink);
}

.asmart-about-story {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: 40px;
	align-items: center;
	margin: 56px 0;
}

.asmart-about-copy p {
	margin: 0 0 14px;
	font-size: 16px;
	line-height: 1.7;
	color: var(--asmart-muted);
}

.asmart-about-aisles {
	display: grid;
	gap: 12px;
}

.asmart-about-aisle {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 20px;
	border: 1px solid var(--asmart-line);
	border-radius: 18px;
	background: #fff;
	text-decoration: none;
	color: var(--asmart-ink);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.asmart-about-aisle:hover {
	border-color: var(--asmart-green);
	box-shadow: var(--asmart-shadow);
	transform: translateY(-2px);
	color: var(--asmart-ink);
}

.asmart-about-icon {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--asmart-green-soft);
	color: var(--asmart-green-dark);
}

.asmart-about-aisle-text {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.asmart-about-aisle-text b {
	font-size: 17px;
	font-weight: 800;
}

.asmart-about-aisle-text span {
	font-size: 14px;
	line-height: 1.5;
	color: var(--asmart-muted);
}

.asmart-about-aisle-arrow {
	flex: none;
	color: var(--asmart-green);
}

.asmart-about-why h2 {
	margin-bottom: 20px;
	text-align: center;
}

.asmart-about-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.asmart-about-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	padding: 24px;
	border: 1px solid var(--asmart-line);
	border-radius: 18px;
	background: #fff;
}

.asmart-about-card .asmart-about-icon {
	width: 46px;
	height: 46px;
	margin-bottom: 8px;
}

.asmart-about-card b {
	font-size: 17px;
	font-weight: 800;
	color: var(--asmart-ink);
}

.asmart-about-card > span:last-child {
	font-size: 14px;
	line-height: 1.6;
	color: var(--asmart-muted);
}

.asmart-about-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	margin-top: 56px;
	padding: 40px 48px;
	border-radius: 24px;
	background: var(--asmart-green);
	color: #fff;
}

.asmart-about-cta h2 {
	color: #fff;
}

.asmart-about-cta p {
	margin: 0 0 16px;
	font-size: 16px;
	color: rgba(255, 255, 255, 0.92);
}

.asmart-about-contact {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 15px;
}

.asmart-about-contact b {
	margin-right: 6px;
	font-weight: 800;
}

.asmart-about-contact a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.asmart-about-cta .asmart-about-btn--primary {
	flex: none;
	background: var(--asmart-purple);
	box-shadow: none;
}

.asmart-about-cta .asmart-about-btn--primary:hover {
	background: var(--asmart-purple-dark);
}

@media (max-width: 900px) {
	.asmart-about-story {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
		margin: 40px 0;
	}

	.asmart-about-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.asmart-about {
		padding: 16px 0 40px;
	}

	.asmart-about-hero {
		padding: 36px 22px;
		border-radius: 20px;
	}

	.asmart-about-hero h1 {
		font-size: 30px;
	}

	.asmart-about-hero p {
		margin-bottom: 22px;
		font-size: 15px;
	}

	.asmart-about-actions {
		flex-direction: column;
	}

	.asmart-about-btn {
		width: 100%;
	}

	.asmart-about h2 {
		font-size: 24px;
	}

	.asmart-about-aisle {
		padding: 14px 16px;
	}

	.asmart-about-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.asmart-about-cta {
		flex-direction: column;
		align-items: stretch;
		gap: 20px;
		margin-top: 40px;
		padding: 28px 22px;
		border-radius: 20px;
	}

	.asmart-about-contact {
		flex-direction: column;
		gap: 6px;
	}
}

/* About: help banner in peach (the newsletter band right below it is orange), compact cards on phones. */
.asmart-about-cta {
	border: 1px solid #f7d9b8;
	background: var(--asmart-green-soft);
	color: var(--asmart-ink);
}

.asmart-about-cta h2 {
	color: var(--asmart-ink);
}

.asmart-about-cta p {
	color: var(--asmart-muted);
}

.asmart-about-contact a {
	color: var(--asmart-green-dark);
}

.asmart-about-cta .asmart-about-btn--primary {
	background: var(--asmart-green);
	box-shadow: 0 8px 20px rgba(242, 121, 15, 0.28);
}

.asmart-about-cta .asmart-about-btn--primary:hover {
	background: var(--asmart-green-dark);
}

@media (max-width: 640px) {
	.asmart-about-card {
		display: grid;
		grid-template-columns: 46px minmax(0, 1fr);
		column-gap: 14px;
		row-gap: 2px;
		align-items: center;
		padding: 16px;
	}

	.asmart-about-card .asmart-about-icon {
		grid-row: 1 / span 2;
		margin: 0;
	}

	.asmart-about-card > span:last-child {
		grid-column: 2;
	}
}

/* ==========================================================================
   Contact page (page-contact-us.php) — reuses the About page building blocks
   ========================================================================== */
.asmart-contact .asmart-about-hero {
	padding: 52px 48px;
}

.asmart-contact-ways {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-top: 24px;
}

.asmart-contact-way-link {
	margin-top: 6px;
	font-size: 18px;
	font-weight: 800;
	color: var(--asmart-green-dark);
}

.asmart-contact-way-link a {
	color: var(--asmart-green-dark);
	text-decoration: none;
}

.asmart-contact-way-link a:hover {
	text-decoration: underline;
}

.asmart-contact-main {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	gap: 40px;
	align-items: start;
	margin: 56px 0 0;
}

.asmart-contact-form {
	padding: 28px;
	border: 1px solid var(--asmart-line);
	border-radius: 20px;
	background: #fff;
	min-width: 0;
}

/* SureForms takes its colours from CSS variables — point them at the BSmart palette. */
.asmart-contact-form .srfm-form-container {
	--srfm-color-scheme-primary: #f2790f;
	--srfm-color-scheme-text: #2b1a15;
	--srfm-color-scheme-text-on-primary: #fff;
	--srfm-color-input-label: #2b1a15;
	--srfm-color-input-text: #2b1a15;
	--srfm-color-input-placeholder: #9a8f89;
	--srfm-color-input-background: #fff;
	--srfm-color-input-background-hover: #fff;
	--srfm-color-input-border: #ddd3cc;
	--srfm-color-input-border-hover: #f2790f;
	--srfm-color-input-border-focus-glow: rgba(242, 121, 15, 0.22);
	--srfm-btn-color-hover: #c9600d;
	--srfm-btn-text-color: #fff;
	--srfm-btn-bg-color: #f2790f;
	--srfm-bg-color: transparent;
}

.asmart-contact-form .srfm-form-container,
.asmart-contact-form .srfm-form-container form {
	margin: 0;
	padding: 0;
	background: transparent;
	box-shadow: none;
}

.asmart-contact-form .srfm-block-label,
.asmart-contact-form .srfm-block-label * {
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	color: var(--asmart-ink);
}

.asmart-contact-form .srfm-input-common,
.asmart-contact-form input.srfm-input-common,
.asmart-contact-form textarea.srfm-input-common {
	box-sizing: border-box;
	width: 100%;
	min-height: 52px;
	padding: 12px 16px;
	border: 1px solid #ddd3cc;
	border-radius: 12px;
	background: #fff;
	font-family: inherit;
	font-size: 15px;
	color: var(--asmart-ink);
	box-shadow: none;
}

.asmart-contact-form textarea.srfm-input-common {
	min-height: 140px;
}

.asmart-contact-form .srfm-input-common:focus {
	border-color: var(--asmart-green);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(242, 121, 15, 0.18);
}

.asmart-contact-form .srfm-submit-container,
.asmart-contact-form .srfm-submit-wrap {
	width: 100%;
}

.asmart-contact-form .srfm-submit-button,
.asmart-contact-form button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 54px;
	padding: 0 32px;
	border: 0;
	border-radius: 999px;
	background: var(--asmart-green);
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: none;
	box-shadow: 0 8px 20px rgba(242, 121, 15, 0.28);
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.asmart-contact-form .srfm-submit-button:hover,
.asmart-contact-form button[type="submit"]:hover {
	background: var(--asmart-green-dark);
	color: #fff;
}

@media (max-width: 900px) {
	.asmart-contact-ways {
		grid-template-columns: minmax(0, 1fr);
	}

	.asmart-contact-main {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
		margin-top: 40px;
	}
}

@media (max-width: 640px) {
	.asmart-contact .asmart-about-hero {
		padding: 32px 22px;
	}

	.asmart-contact-form {
		padding: 18px 16px;
		border-radius: 18px;
	}
}

/* Contact fixes: card copy matches the About cards, phone layout for the link line, tighter form spacing. */
.asmart-contact-ways .asmart-about-card > span:not(.asmart-about-icon) {
	font-size: 14px;
	line-height: 1.6;
	color: var(--asmart-muted);
}

.asmart-contact-form .srfm-form-container {
	--srfm-row-gap-between-blocks: 18px;
	--srfm-col-gap-between-blocks: 16px;
}

.asmart-contact-form .srfm-form,
.asmart-contact-form form.srfm-form {
	row-gap: 18px;
}

.asmart-contact-form .srfm-block,
.asmart-contact-form .srfm-block-single {
	margin-bottom: 0;
}

.asmart-contact-form .srfm-input-common,
.asmart-contact-form .srfm-input-common::placeholder,
.asmart-contact-form .srfm-submit-button {
	text-transform: none;
}

@media (max-width: 640px) {
	.asmart-contact-ways .asmart-contact-way-link {
		grid-column: 2;
		margin-top: 2px;
		font-size: 16px;
		overflow-wrap: anywhere;
	}
}

.asmart-contact-form .srfm-input-common {
	margin-top: 0;
	margin-bottom: 0;
}

/* Product gallery fixes: thumbnails were squeezed to ~17px by WooCommerce's own (more specific) float/width rules,
   and slides of different shapes made the gallery jump. */
body.asmart-theme.single-product div.product div.images .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

body.asmart-theme.single-product div.product div.images .flex-control-thumbs li {
	float: none !important;
	width: auto !important;
	min-width: 0;
	margin: 0 !important;
	padding: 0;
}

body.asmart-theme.single-product div.product div.images .flex-control-thumbs li img {
	display: block;
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border: 2px solid transparent;
	border-radius: 10px;
	opacity: 0.65;
	cursor: pointer;
	transition: opacity 0.15s ease, border-color 0.15s ease;
}

body.asmart-theme.single-product div.product div.images .flex-control-thumbs li img.flex-active,
body.asmart-theme.single-product div.product div.images .flex-control-thumbs li img:hover {
	border-color: var(--asmart-green);
	opacity: 1;
}

/* Every slide the same square, whatever shape the uploaded photo is. */
body.asmart-theme.single-product div.product div.images .woocommerce-product-gallery__image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background: #fff;
}

@media (max-width: 640px) {
	/* Thumbnails become a swipeable row so many photos don't stack into a tall block. */
	body.asmart-theme.single-product div.product div.images .flex-control-thumbs {
		display: flex;
		gap: 8px;
		overflow-x: auto;
		padding-bottom: 4px;
		scroll-snap-type: x proximity;
		-webkit-overflow-scrolling: touch;
	}

	body.asmart-theme.single-product div.product div.images .flex-control-thumbs li {
		flex: 0 0 64px;
		scroll-snap-align: start;
	}
}

body.asmart-theme.single-product div.product div.images .flex-control-thumbs {
	grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
}

@media (max-width: 640px) {
	body.asmart-theme.single-product div.product div.images .flex-control-thumbs {
		grid-template-columns: none;
	}
}
