/**
 * Theme Name: Acta Shop
 * Description: Acta Shop presentation layer built as an Astra child theme.
 * Author: Acta Shop
 * Template: astra
 * Version: 1.3.7
 * Text Domain: acta-shop
 */

@font-face {
	font-family: 'Manrope';
	src: url('assets/fonts/manrope-regular.otf') format('opentype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Manrope';
	src: url('assets/fonts/manrope-medium.otf') format('opentype');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Manrope';
	src: url('assets/fonts/manrope-semibold.otf') format('opentype');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Manrope';
	src: url('assets/fonts/manrope-bold.otf') format('opentype');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* Announcement Bar */
.acta-announcement-bar {
	background-color: var(--acta-announcement-background-color, #3259e5);
	color: var(--acta-announcement-text-color, #ffffff);
	font-family: 'Manrope', sans-serif;
}

.acta-announcement-bar__inner {
	box-sizing: border-box;
	max-width: 1440px;
	margin: 0 auto;
	/* Manrope's line-height leading sits low in its own line box, so equal
	 * top/bottom padding still reads as more room above the text than below.
	 * Shifted to compensate -- adjust both together to keep the total
	 * unchanged if the row height ever needs to change. */
	padding: 6px 16px 10px;
}

.acta-announcement-bar__viewport {
	overflow: hidden;
}

.acta-announcement-bar__track,
.acta-announcement-bar__track-group {
	display: flex;
}

.acta-announcement-bar__track {
	width: max-content;
	animation: acta-announcement-scroll var(--acta-announcement-duration, 52s) linear infinite;
}

.acta-announcement-bar__track-group {
	flex: 0 0 auto;
}

.acta-announcement-bar__message,
.acta-announcement-bar__static-message {
	margin: 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
}

.acta-announcement-bar__message {
	flex: 0 0 auto;
	padding-right: 64px;
	white-space: nowrap;
}

.acta-announcement-bar__static-message {
	display: none;
	text-align: center;
}

@keyframes acta-announcement-scroll {
	to {
		transform: translate3d(-50%, 0, 0);
	}
}

@media (min-width: 768px) {
	.acta-announcement-bar__inner {
		padding-right: 24px;
		padding-left: 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.acta-announcement-bar__track {
		display: none;
		animation: none;
	}

	.acta-announcement-bar__static-message {
		display: block;
	}
}

/* Sticky Header */
:root {
	--acta-admin-bar-height: 0px;
	--acta-header-floating-panel-gap: 16px;
}

body.admin-bar {
	--acta-admin-bar-height: 32px;
}

#masthead.acta-site-header {
	position: sticky;
	top: calc(8px + var(--acta-admin-bar-height));
	z-index: 100;
	box-sizing: border-box;
	width: calc(100% - 16px);
	max-width: none;
	margin: 8px auto -78px;
	border: 0;
	border-radius: 8px;
	background-color: var(--acta-header-background-color, #f4cdd5);
	color: var(--acta-header-text-color, #3259e5);
	font-family: 'Manrope', sans-serif;
	transition: box-shadow 180ms ease;
}

.acta-site-header--scrolled {
	box-shadow: 0 6px 18px rgba(17, 17, 17, 0.08);
}

/* Astra Pro's own native "Sticky Header" row option can be switched on
 * independently under Tilpass → Sidehode, on top of the position:sticky
 * treatment above. When it is, Astra turns this row into its own full-width,
 * fixed, square-cornered, blurred duplicate -- visible as a second header
 * layered over Acta's rounded one, and losing the rounded corners while
 * scrolled. Neutralised here so Acta's own header stays the only visible
 * sticky header no matter how that unrelated Astra setting is configured.
 * (Astra sets `top`/`max-width` inline via its own sticky script, but those
 * only take effect on a positioned element, so switching position back to
 * static makes them inert without needing to fight the inline style.) */
#masthead.acta-site-header .ast-primary-header-bar.ast-sticky-active,
#masthead.acta-site-header .ast-primary-header-bar.ast-header-sticked {
	position: static;
	z-index: auto;
	width: auto;
	max-width: none;
	background: transparent;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	box-shadow: none;
	border-radius: inherit;
}

/* Astra's own builder chrome wrapping the grid row below: neutralised so
 * only this stylesheet's colors/spacing are visible, matching the header's
 * previous single-wrapper markup. */
#masthead.acta-site-header .ast-main-header-wrap,
#masthead.acta-site-header .ast-primary-header-bar,
#masthead.acta-site-header .site-primary-header-wrap {
	background: transparent;
	border: 0;
	padding: 0;
	max-width: none;
}

#masthead.acta-site-header .ast-builder-grid-row {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	min-height: 70px;
	max-width: 1440px;
	margin: 0 auto;
	padding: 4px 12px;
	gap: 12px;
}

#masthead.acta-site-header .site-header-primary-section-left {
	grid-column: 1;
}

#masthead.acta-site-header .site-header-primary-section-center {
	grid-column: 2;
	justify-content: center;
}

#masthead.acta-site-header .site-header-primary-section-right {
	grid-column: 3;
	justify-content: flex-end;
	gap: 2px;
}

.acta-site-header__brand {
	color: var(--acta-header-text-color, #3259e5);
	display: inline-flex;
	align-items: center;
	max-width: 100px;
}

.acta-site-header__brand img {
	display: block;
	width: 100%;
	height: auto;
}

.acta-site-header__desktop-navigation,
.acta-site-header__desktop-dropdown {
	display: none;
}

.acta-header-control {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 50px;
	min-height: 50px;
	margin: 0;
	padding: 7px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
}

.acta-header-control svg {
	/* +25% from the original 25px. Search, cart and mobile-menu icons only:
	 * the "Mer" dropdown arrow overrides this with its own, smaller rule. */
	width: 31.25px;
	height: 31.25px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.acta-header-control:hover,
.acta-header-control:focus-visible,
.acta-header-dropdown[open] > .acta-header-control {
	color: #111111;
}

.acta-header-control:focus-visible,
.acta-navigation a:focus-visible,
.acta-utility-links a:focus-visible,
.acta-site-header__brand:focus-visible {
	outline: 2px solid #3259e5;
	outline-offset: 2px;
}

.acta-header-cart {
	position: relative;
}

.acta-header-cart__count {
	position: absolute;
	top: 3px;
	right: 2px;
	min-width: 15px;
	padding: 2px 3px;
	border-radius: 999px;
	border: 1px solid var(--acta-header-text-color, #3259e5);
	background-color: var(--acta-header-background-color, #f4cdd5);
	color: var(--acta-header-text-color, #3259e5);
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
}

.acta-header-search,
.acta-header-dropdown,
.acta-mobile-navigation {
	position: relative;
}

.acta-header-search summary,
.acta-header-dropdown summary,
.acta-mobile-navigation summary {
	list-style: none;
}

.acta-header-search summary::-webkit-details-marker,
.acta-header-dropdown summary::-webkit-details-marker,
.acta-mobile-navigation summary::-webkit-details-marker {
	display: none;
}

.acta-header-search__form,
.acta-header-dropdown__panel,
.acta-mobile-navigation__panel {
	box-sizing: border-box;
	background-color: var(--acta-header-background-color, #f4cdd5);
	color: var(--acta-header-text-color, #3259e5);
	box-shadow: 0 12px 26px rgba(17, 17, 17, 0.12);
}

.acta-header-search__form {
	position: absolute;
	top: calc(100% + var(--acta-header-floating-panel-gap));
	right: 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px;
	width: min(320px, calc(100vw - 32px));
	padding: 10px;
	border: 0;
	border-radius: 16px;
	z-index: 1;
}

/* Invisible bridge over the gap so hovering from the search button down into
 * the form doesn't briefly leave the details element and trigger the
 * mouseleave-to-close behavior. Mirrors the existing sub-menu bridge. */
.acta-header-search__form::before {
	position: absolute;
	top: calc(var(--acta-header-floating-panel-gap) * -1);
	right: 0;
	left: 0;
	height: var(--acta-header-floating-panel-gap);
	content: '';
}

.acta-header-search__form.woocommerce-product-search .acta-header-search__field {
	min-width: 0;
	min-height: 42px;
	padding: 0 12px;
	border: 0;
	border-radius: 10px;
	background-color: #ffffff;
	box-shadow: none;
	/* Search input remains legible on its intentionally white field. */
	color: #3259e5;
	font: inherit;
	font-size: 14px;
}

.acta-header-search__form.woocommerce-product-search .acta-header-search__field:focus,
.acta-header-search__form.woocommerce-product-search .acta-header-search__field:focus-visible {
	border: 0;
	outline: 0;
	box-shadow: none;
}

.acta-header-search__submit {
	min-height: 42px;
	padding: 0 14px;
	border: 0;
	border-radius: 10px;
	background-color: #3259e5;
	color: #ffffff;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.acta-header-search__submit:hover,
.acta-header-search__submit:focus-visible {
	background-color: #2548c5;
}

.acta-header-search__results {
	grid-column: 1 / -1;
	max-height: min(360px, calc(100vh - 150px));
	overflow-y: auto;
	border-top: 1px solid rgba(50, 89, 229, 0.18);
}

.acta-header-search__result {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	gap: 10px;
	align-items: center;
	min-height: 82px;
	padding: 8px 0;
	border-bottom: 1px solid rgba(50, 89, 229, 0.12);
	color: #3259e5;
	text-decoration: none;
}

.acta-header-search__result:hover,
.acta-header-search__result:focus-visible {
	color: #111111;
	text-decoration: none;
}

.acta-header-search__result:focus-visible {
	outline: 2px solid #3259e5;
	outline-offset: -2px;
}

.acta-header-search__result-image {
	display: block;
	width: 56px;
	height: 70px;
	background-color: rgba(255, 255, 255, 0.45);
	object-fit: cover;
}

.acta-header-search__result-content {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.acta-header-search__result-name,
.acta-header-search__result-price {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.acta-header-search__result-name {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
}

.acta-header-search__result-price {
	color: #111111;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
}

.acta-header-search__status {
	grid-column: 1 / -1;
	min-height: 0;
	margin: 0;
	color: #4f4f4f;
	font-size: 12px;
	line-height: 1.4;
}

.acta-mobile-navigation__toggle {
	padding-right: 0;
	padding-left: 0;
}

.acta-mobile-navigation__panel {
	position: absolute;
	top: calc(100% + var(--acta-header-floating-panel-gap));
	left: -16px;
	width: min(360px, calc(100vw - 16px));
	/* Keeps the panel within the viewport so long category lists scroll
	 * inside the menu itself instead of the page scrolling underneath it.
	 * The custom property is set live by sticky-header.js, which measures
	 * the panel's actual distance from the top of the screen; the calc()
	 * values are only the fallback before that JS runs. */
	max-height: calc(100vh - 150px);
	max-height: calc(100dvh - 150px);
	max-height: var(--acta-mobile-nav-max-height, calc(100dvh - 150px));
	padding: 20px 16px;
	border: 1px solid #dddddd;
	border-radius: 16px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

/* Invisible bridge over the gap, matching the same technique used by the
 * other floating panels, for hybrid mouse/touch devices at this width. */
.acta-mobile-navigation__panel::before {
	position: absolute;
	top: calc(var(--acta-header-floating-panel-gap) * -1);
	right: 0;
	left: 0;
	height: var(--acta-header-floating-panel-gap);
	content: '';
}

.acta-navigation__list,
.acta-navigation .sub-menu,
.acta-utility-links,
.acta-utility-links .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.acta-navigation--mobile .acta-navigation__list,
.acta-mobile-navigation .acta-utility-links {
	display: grid;
	gap: 2px;
}

.acta-navigation--mobile .acta-navigation__list {
	padding-bottom: 16px;
	border-bottom: 1px solid #e9e9e9;
}

.acta-navigation--mobile .sub-menu {
	display: grid;
	gap: 2px;
	margin: 0 0 4px 14px;
	padding: 2px 0 2px 14px;
	border-left: 1px solid #d9d9d9;
}

.acta-mobile-navigation .acta-utility-links {
	padding-top: 16px;
}

.acta-mobile-navigation .acta-utility-links .sub-menu {
	display: grid;
	gap: 2px;
	margin: 0 0 4px 14px;
	padding: 2px 0 2px 14px;
	border-left: 1px solid #d9d9d9;
}

.acta-navigation--mobile a,
.acta-mobile-navigation .acta-utility-links a {
	display: block;
	padding: 10px 0;
	color: var(--acta-header-text-color, #3259e5);
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
}

/* +25% from the original 15px. Category navigation only -- utility links
 * (account, sale, contact, etc.) keep their original size below. */
.acta-navigation--mobile a {
	font-size: 18.75px;
}

.acta-mobile-navigation .acta-utility-links a {
	font-size: 15px;
	font-weight: 400;
}

.acta-navigation--mobile .sub-menu a {
	padding-top: 8px;
	padding-bottom: 8px;
	/* +25% from the original 14px, to match the enlarged parent category link. */
	font-size: 17.5px;
	font-weight: 400;
}

.acta-mobile-navigation .acta-utility-links .sub-menu a {
	padding-top: 8px;
	padding-bottom: 8px;
	font-size: 14px;
}

/* Optional mobile-only menu (Tilpass → Menyer → Acta mobilmeny). Empty and
 * absent from the DOM until an administrator assigns a menu to it. */
.acta-mobile-navigation__extra-menu.acta-navigation--mobile .acta-navigation__list {
	padding-top: 16px;
	padding-bottom: 0;
	border-top: 1px solid #e9e9e9;
	border-bottom: 0;
}

/* Optional mobile-only widget area (Tilpass → Widgets → Mobilmeny). Empty
 * and absent from the DOM until an administrator adds a widget to it. */
.acta-mobile-navigation__widgets {
	display: grid;
	gap: 16px;
	padding-top: 16px;
	border-top: 1px solid #e9e9e9;
}

.acta-mobile-navigation__widget {
	display: grid;
	gap: 8px;
}

.acta-mobile-navigation__widget-title {
	margin: 0;
	color: var(--acta-header-text-color, #3259e5);
	font-family: 'Manrope', sans-serif;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.acta-mobile-navigation__widget a {
	color: var(--acta-header-text-color, #3259e5);
}

.acta-mobile-navigation__widget a:hover {
	color: #111111;
}

@media (min-width: 768px) {
	#masthead.acta-site-header .ast-builder-grid-row {
		min-height: 75px;
		padding-top: 4px;
		padding-bottom: 4px;
		padding-right: 24px;
		padding-left: 24px;
	}

	.acta-site-header__brand {
		max-width: 116px;
	}
}

@media (min-width: 1280px) {
	#masthead.acta-site-header {
		top: calc(16px + var(--acta-admin-bar-height));
		width: calc(100% - 32px);
		margin-top: 16px;
		margin-bottom: -97px;
		border-radius: 10px;
	}

	#masthead.acta-site-header .ast-builder-grid-row {
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
		min-height: 75px;
		padding-top: 4px;
		padding-bottom: 4px;
		padding-right: 40px;
		padding-left: 40px;
	}

	.acta-site-header__brand {
		max-width: 128px;
	}

	.acta-site-header__desktop-navigation {
		display: block;
	}

	.acta-mobile-navigation {
		display: none;
	}

	.acta-navigation__list {
		display: flex;
		align-items: center;
		gap: clamp(12px, 1.3vw, 24px);
	}

	.acta-site-header__desktop-navigation .menu-item-has-children {
		position: relative;
		/* Match the 50px header-control height so the sub-menu's `top: 100%`
		 * offset starts from the same reference line as the search/"Mer"
		 * panels, giving it the identical visual gap from the header. */
		display: flex;
		min-height: 50px;
		align-items: center;
	}

	.acta-site-header__desktop-navigation .sub-menu {
		position: absolute;
		/* Astra can otherwise reset submenu positioning to top: 100%. */
		top: 100% !important;
		left: -16px;
		z-index: 20;
		display: grid;
		gap: 2px;
		width: max-content;
		min-width: 190px;
		max-width: min(280px, calc(100vw - 48px));
		padding: 12px 16px;
		margin-block-start: var(--acta-header-floating-panel-gap) !important;
		border: 0;
		border-radius: 16px;
		background-color: var(--acta-header-background-color, #f4cdd5);
		box-shadow: 0 12px 26px rgba(17, 17, 17, 0.12);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: none;
		transition: opacity 160ms ease, visibility 160ms ease;
	}

	.acta-site-header__desktop-navigation .sub-menu::before {
		position: absolute;
		top: calc(var(--acta-header-floating-panel-gap) * -1);
		right: 0;
		left: 0;
		height: var(--acta-header-floating-panel-gap);
		content: '';
	}

	.acta-site-header__desktop-navigation .menu-item-has-children:hover > .sub-menu,
	.acta-site-header__desktop-navigation .menu-item-has-children:focus-within > .sub-menu {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	.acta-navigation a {
		color: var(--acta-header-text-color, #3259e5);
		/* +25% from the original 12px. Desktop dropdown sub-menu links inherit
		 * this automatically since they don't set their own font-size. */
		font-size: 15px;
		font-weight: 700;
		line-height: 1.3;
		text-decoration: none;
		white-space: nowrap;
	}

	.acta-navigation a:hover {
		color: #111111;
	}

	.acta-site-header__desktop-navigation .sub-menu a {
		display: block;
		padding: 8px 0;
		white-space: normal;
	}

	.acta-site-header__desktop-dropdown {
		display: block;
	}

	.acta-header-dropdown__toggle {
		gap: 2px;
		min-width: auto;
		padding-right: 0;
		padding-left: 6px;
	}

	.acta-header-dropdown__toggle svg {
		width: 15px;
		height: 15px;
	}

	.acta-header-dropdown[open] .acta-header-dropdown__toggle svg {
		transform: rotate(180deg);
	}

	.acta-header-dropdown__panel {
		position: absolute;
		top: 100% !important;
		right: 0;
		width: 190px;
		margin-block-start: var(--acta-header-floating-panel-gap) !important;
		padding: 12px 16px;
		border: 1px solid #dddddd;
		/* Matches the rounded treatment already used by the search panel and
		 * the desktop category sub-menu. */
		border-radius: 16px;
	}

	/* Invisible bridge over the gap so hovering from the "Mer" button down
	 * into its panel doesn't briefly leave the details element and trigger
	 * the mouseleave-to-close behavior. Mirrors the existing sub-menu bridge. */
	.acta-header-dropdown__panel::before {
		position: absolute;
		top: calc(var(--acta-header-floating-panel-gap) * -1);
		right: 0;
		left: 0;
		height: var(--acta-header-floating-panel-gap);
		content: '';
	}

	.acta-utility-links {
		display: grid;
		gap: 2px;
	}

	.acta-utility-links a {
		display: block;
		padding: 7px 0;
		color: var(--acta-header-text-color, #3259e5);
		font-size: 13px;
		font-weight: 600;
		line-height: 1.4;
		text-decoration: none;
	}

	.acta-utility-links a:hover {
		color: #111111;
	}

	.acta-header-dropdown__panel .acta-utility-links > .menu-item-has-children > a {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
	}

	.acta-header-dropdown__panel .acta-utility-links > .menu-item-has-children > a::after {
		width: 10px;
		height: 10px;
		content: '';
		border-right: 1.5px solid currentColor;
		border-bottom: 1.5px solid currentColor;
		transform: rotate(45deg) translateY(-2px);
		transition: transform 160ms ease;
	}

	.acta-header-dropdown__panel .acta-utility-links > .menu-item-has-children > .sub-menu {
		display: none;
		gap: 2px;
		margin: 0 0 4px 12px;
		padding: 2px 0 2px 12px;
		border-left: 1px solid rgba(50, 89, 229, 0.24);
	}

	.acta-header-dropdown__panel .acta-utility-links > .menu-item-has-children:hover > .sub-menu,
	.acta-header-dropdown__panel .acta-utility-links > .menu-item-has-children:focus-within > .sub-menu {
		display: grid;
	}

	.acta-header-dropdown__panel .acta-utility-links > .menu-item-has-children:hover > a::after,
	.acta-header-dropdown__panel .acta-utility-links > .menu-item-has-children:focus-within > a::after {
		transform: rotate(225deg) translateY(-2px);
	}

	.acta-header-dropdown__panel .acta-utility-links .sub-menu a {
		padding-top: 6px;
		padding-bottom: 6px;
		font-size: 12px;
		font-weight: 500;
	}
}

/* The negative header margin belongs exclusively to the home hero. Keeping the
 * header in normal flow everywhere else reserves its actual responsive height
 * before content starts, including on archives, searches and WooCommerce. */
body:not(.acta-header-overlaps-home-hero) #masthead.acta-site-header {
	margin-bottom: 0;
}

/* Added only when the measured template clearance is smaller than the design
 * minimum. A generated block preserves each template's existing spacing. */
#content.acta-site-content--header-clearance::before {
	display: block;
	height: var(--acta-header-content-clearance, 0px);
	content: '';
}

@media screen and (max-width: 782px) {
	body.admin-bar {
		--acta-admin-bar-height: 46px;
	}
}

@media (prefers-reduced-motion: reduce) {
	#masthead.acta-site-header,
	.acta-header-dropdown__toggle svg {
		transition: none;
	}
}

/* Hero */
.acta-hero {
	position: relative;
	width: 100%;
	background-color: #3259e5;
	font-family: 'Manrope', sans-serif;
}

.acta-hero__link {
	position: relative;
	display: block;
	color: inherit;
	text-decoration: none;
}

.acta-hero__media {
	display: block;
}

.acta-hero__image {
	display: block;
	width: 100%;
	height: auto;
}

.acta-hero__title-wrap {
	position: absolute;
	top: 50%;
	left: var(--acta-hero-edge-space, 16px);
	max-width: calc(100% - (var(--acta-hero-edge-space, 16px) * 2));
	transform: translateY(-50%);
}

.acta-hero__title-wrap--top-left,
.acta-hero__title-wrap--top-center,
.acta-hero__title-wrap--top-right {
	top: var(--acta-hero-edge-space, 16px);
	transform: none;
}

.acta-hero__title-wrap--middle-center,
.acta-hero__title-wrap--top-center,
.acta-hero__title-wrap--bottom-center {
	left: 50%;
	text-align: center;
}

.acta-hero__title-wrap--middle-center {
	transform: translate(-50%, -50%);
}

.acta-hero__title-wrap--top-center {
	transform: translateX(-50%);
}

.acta-hero__title-wrap--middle-right,
.acta-hero__title-wrap--top-right,
.acta-hero__title-wrap--bottom-right {
	right: var(--acta-hero-edge-space, 16px);
	left: auto;
	text-align: right;
}

.acta-hero__title-wrap--middle-right {
	transform: translateY(-50%);
}

.acta-hero__title-wrap--bottom-left,
.acta-hero__title-wrap--bottom-center,
.acta-hero__title-wrap--bottom-right {
	top: auto;
	bottom: var(--acta-hero-edge-space, 16px);
	transform: none;
}

.acta-hero__title-wrap--bottom-center {
	transform: translateX(-50%);
}

.acta-hero__title {
	margin: 0;
	color: var(--acta-hero-title-color, #3259e5);
	font-family: 'Manrope', sans-serif;
	font-size: clamp(42px, 11vw, 72px);
	font-weight: 700;
	letter-spacing: -0.06em;
	line-height: 0.95;
}

.acta-hero__link:focus-visible {
	outline: 3px solid #3259e5;
	outline-offset: -6px;
}

/* Hide the original, incomplete front-page hero placeholders. */
body.home .entry-content > .wp-block-uagb-advanced-heading:first-child,
body.home .entry-content > .wp-block-image .wp-image-37 {
	display: none;
}

@media (min-width: 768px) {
	.acta-hero__title-wrap {
		--acta-hero-edge-space: clamp(24px, 5vw, 80px);
	}

	.acta-hero__title {
		font-size: clamp(56px, 7vw, 108px);
	}
}

/* Single product layout */
.single-product #primary.content-area.primary {
	/* Half of Astra's standard 60px product-page offset. */
	margin-top: 30px;
	margin-bottom: clamp(80px, 6vw, 96px);
}

@media (min-width: 1024px) {
	.single-product .site-content > .ast-container {
		max-width: 1600px;
	}

	.single-product.woocommerce-page #content .ast-woocommerce-container div.product .woocommerce-product-gallery {
		width: 60%;
	}

	.single-product.woocommerce-page #content .ast-woocommerce-container div.product .summary.entry-summary {
		width: 35%;
	}
}

/* Product-gallery main image
 *
 * WooCommerce renders each gallery photo at its own natural size, so the
 * main viewer's shape changed from image to image and never matched the A4
 * frame used everywhere else product imagery appears. Constrain every slide
 * to the same A4 frame the thumbnails below also use, filling it the same
 * way category/archive product cards do -- cropping only as much as the
 * frame requires, never zooming further. This only changes the inline
 * display box -- the zoom/lightbox link still opens the original,
 * unconstrained image untouched.
 *
 * The aspect-ratio lives on the <img> itself, not just its wrapper. WordPress
 * prints each gallery image with its own native `width`/`height` attributes,
 * which browsers treat as the image's intrinsic ratio; a wrapper-only
 * aspect-ratio combined with `height: 100%` on the image does not reliably
 * override that intrinsic ratio (the browser keeps sizing the image itself
 * from its own attributes instead of the wrapper), so square or landscape
 * source photos were rendering at their own natural shape instead of being
 * cropped to A4. Setting the ratio directly on the image sidesteps that.
 */
.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__image {
	overflow: hidden;
}

.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1.414;
	object-fit: cover;
}

/* Product-gallery thumbnail controls
 *
 * Scope these rules to WooCommerce's native thumbnail list on a single
 * product. Product cards, carousels and every other image treatment remain
 * untouched. Thumbnails use the same A4 frame as the main image and every
 * other product preview in the shop -- see the note above on why the ratio
 * is set on the <img> itself rather than its wrapper.
 */
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li {
	box-sizing: border-box;
	flex: 0 0 clamp(64px, 14vw, 112px);
	width: clamp(64px, 14vw, 112px);
	margin: 0;
	overflow: hidden;
	border-radius: 8px;
	background: #f7f7f7;
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1.414;
	object-fit: cover;
	margin: 0;
	border-radius: inherit;
}

/* Single product purchase panel
 *
 * WooCommerce and Astra retain ownership of the product data, form markup and
 * purchase flow. These rules only establish Acta's visual hierarchy around
 * those native, accessible elements.
 */
.single-product div.product .summary.entry-summary {
	max-width: 560px;
	margin: 0;
	color: #111111;
	font-family: 'Manrope', sans-serif;
}

.single-product .summary .woocommerce-breadcrumb {
	margin: 0 0 24px;
	color: #6c6c6c;
	font-size: 13px;
	line-height: 1.5;
}

.single-product .summary .woocommerce-breadcrumb a,
.single-product .summary .single-product-category a,
.single-product .summary .product_meta a {
	color: #3259e5;
	text-decoration: none;
}

.single-product .summary .woocommerce-breadcrumb a:hover,
.single-product .summary .woocommerce-breadcrumb a:focus-visible,
.single-product .summary .single-product-category a:hover,
.single-product .summary .single-product-category a:focus-visible,
.single-product .summary .product_meta a:hover,
.single-product .summary .product_meta a:focus-visible {
	text-decoration: underline;
}

.single-product .summary .single-product-category {
	display: block;
	margin: 0 0 8px;
	color: #3259e5;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.single-product .summary .product_title {
	margin: 0 0 16px;
	color: #111111;
	font-family: 'Manrope', sans-serif;
	font-size: clamp(32px, 3vw, 48px);
	font-weight: 700;
	letter-spacing: -0.045em;
	line-height: 1.05;
}

.single-product .summary > .price,
.single-product .summary .woocommerce-variation-price .price {
	margin: 0 0 24px;
	color: #111111;
	font-family: 'Manrope', sans-serif;
	font-size: 24px;
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.25;
}

.single-product .summary .price del {
	margin-right: 8px;
	color: #6c6c6c;
	font-weight: 400;
}

.single-product .summary .price ins {
	color: #3259e5;
	font-weight: 700;
	text-decoration: none;
}

.single-product .summary .woocommerce-product-details__short-description {
	max-width: 52ch;
	margin: 0 0 32px;
	color: #2c2c2c;
	font-size: 16px;
	line-height: 1.6;
}

.single-product .summary .woocommerce-product-details__short-description > :first-child {
	margin-top: 0;
}

.single-product .summary .woocommerce-product-details__short-description > :last-child {
	margin-bottom: 0;
}

.single-product .summary .stock,
.single-product .summary .woocommerce-variation-availability .stock {
	margin: 0 0 16px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
}

.single-product .summary .stock.in-stock {
	color: #1b5e20;
}

.single-product .summary .stock.out-of-stock,
.single-product .summary .out-of-stock {
	color: #9d1f15;
}

.single-product .summary form.cart {
	margin: 0;
}

.single-product .summary form.cart:not(.variations_form),
.single-product .summary .woocommerce-variation-add-to-cart {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	gap: 8px;
	align-items: stretch;
}

.single-product .summary form.cart:not(.variations_form)::before,
.single-product .summary form.cart:not(.variations_form)::after,
.single-product div.product .summary.entry-summary form.variations_form::before,
.single-product div.product .summary.entry-summary form.variations_form::after,
.single-product div.product .summary.entry-summary .woocommerce-variation-add-to-cart::before,
.single-product div.product .summary.entry-summary .woocommerce-variation-add-to-cart::after {
	display: none;
	content: none;
}

.single-product div.product .summary.entry-summary form.cart .quantity {
	float: none !important;
	grid-column: 1;
	grid-row: 1;
	width: 64px !important;
	margin: 0 !important;
}

.single-product .summary form.cart .quantity .qty {
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 8px;
	border: 1px solid #b8b8b8;
	border-radius: 0;
	background: #ffffff;
	color: #111111;
	font: inherit;
	font-size: 16px;
	text-align: center;
}

/* Astra can add minus/plus controls after the page loads. Keep those controls
 * inside the quantity component instead of letting their default offsets
 * overlap the numeric value. */
.single-product div.product .summary.entry-summary form.cart .quantity.buttons_added,
.single-product div.product .summary.entry-summary form.cart .quantity:has(.ast-qty-placeholder) {
	display: grid !important;
	grid-template-columns: 40px minmax(48px, 1fr) 40px;
	width: 128px !important;
	min-height: 48px;
}

.single-product div.product .summary.entry-summary form.cart .quantity.buttons_added .minus,
.single-product div.product .summary.entry-summary form.cart .quantity.buttons_added .plus,
.single-product div.product .summary.entry-summary form.cart .quantity:has(.ast-qty-placeholder) .minus,
.single-product div.product .summary.entry-summary form.cart .quantity:has(.ast-qty-placeholder) .plus {
	display: grid;
	width: auto !important;
	min-height: 48px;
	margin: 0 !important;
	padding: 0;
	border: 1px solid #b8b8b8;
	background: #ffffff;
	color: #111111;
	font: inherit;
	font-size: 22px;
	line-height: 1;
	place-items: center;
	position: static;
	text-decoration: none;
}

.single-product div.product .summary.entry-summary form.cart .quantity.buttons_added .minus,
.single-product div.product .summary.entry-summary form.cart .quantity:has(.ast-qty-placeholder) .minus {
	grid-column: 1;
	grid-row: 1;
	border-right: 0;
}

.single-product div.product .summary.entry-summary form.cart .quantity.buttons_added .qty,
.single-product div.product .summary.entry-summary form.cart .quantity:has(.ast-qty-placeholder) .qty {
	grid-column: 2;
	grid-row: 1;
	min-width: 0;
	margin: 0 !important;
	text-decoration: none !important;
}

.single-product div.product .summary.entry-summary form.cart .quantity.buttons_added .plus,
.single-product div.product .summary.entry-summary form.cart .quantity:has(.ast-qty-placeholder) .plus {
	grid-column: 3;
	grid-row: 1;
	border-left: 0;
}

.single-product div.product .summary.entry-summary form.cart .quantity .minus:focus-visible,
.single-product div.product .summary.entry-summary form.cart .quantity .plus:focus-visible {
	position: relative;
	z-index: 1;
	outline: 3px solid rgb(50 89 229 / 0.28);
	outline-offset: 2px;
}

.single-product div.product .summary.entry-summary .single_add_to_cart_button {
	box-sizing: border-box;
	float: none !important;
	grid-column: 2;
	grid-row: 1;
	width: 100%;
	min-height: 48px;
	margin: 0 !important;
	padding: 12px 24px;
	border: 1px solid #3259e5;
	border-radius: 0;
	background: #3259e5;
	color: #ffffff;
	font-family: 'Manrope', sans-serif;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1.2;
	text-align: center;
	transition: background-color 180ms ease, border-color 180ms ease;
}

.single-product .summary .single_add_to_cart_button:hover,
.single-product .summary .single_add_to_cart_button:focus-visible {
	border-color: #2748b9;
	background: #2748b9;
	color: #ffffff;
}

.single-product .summary input.qty:focus-visible,
.single-product .summary .variations select:focus-visible {
	border-color: #3259e5;
	outline: 3px solid rgb(50 89 229 / 0.28);
	outline-offset: 2px;
}

.single-product .summary .single_add_to_cart_button:focus-visible {
	outline: 3px solid #111111;
	outline-offset: 3px;
}

.single-product .summary form.variations_form {
	display: grid;
	gap: 24px;
}

.single-product .summary .variations {
	display: block;
	width: 100%;
	margin: 0;
	border: 0;
}

.single-product .summary .variations tbody {
	display: grid;
	gap: 16px;
}

.single-product .summary .variations tr {
	display: grid;
	gap: 8px;
}

.single-product .summary .variations th.label,
.single-product .summary .variations td.value {
	display: block;
	padding: 0;
	text-align: left;
}

.single-product .summary .variations label {
	color: #111111;
	font-family: 'Manrope', sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
}

.single-product .summary .variations select {
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 8px 40px 8px 12px;
	border: 1px solid #b8b8b8;
	border-radius: 0;
	background-color: #ffffff;
	color: #111111;
	font: inherit;
	font-size: 16px;
	line-height: 1.4;
}

.single-product .summary .reset_variations {
	display: inline-block;
	float: none;
	margin-top: 8px;
	color: #3259e5;
	font-size: 14px;
	font-weight: 600;
}

.single-product .summary .single_variation_wrap {
	display: grid;
	gap: 16px;
}

.single-product .summary .woocommerce-variation-description,
.single-product .summary .woocommerce-variation-price,
.single-product .summary .woocommerce-variation-availability {
	margin: 0;
}

.single-product .summary .single_variation_wrap .woocommerce-variation-price .price {
	margin: 0;
}

.single-product .summary .product_meta,
.single-product .summary .ast-single-product-payments {
	margin: 32px 0 0;
	padding: 24px 0 0;
	border: 0;
	border-top: 1px solid #e0e0e0;
	color: #6c6c6c;
	font-size: 13px;
	line-height: 1.5;
}

.single-product .summary .ast-single-product-payments legend {
	padding: 0;
	color: #111111;
	font-family: 'Manrope', sans-serif;
	font-size: 14px;
	font-weight: 700;
}

.single-product .summary .ast-single-product-payments ul {
	margin: 16px 0 0;
}

@media (min-width: 768px) {
	.single-product .summary form.cart:not(.variations_form),
	.single-product .summary .woocommerce-variation-add-to-cart {
		grid-template-columns: max-content minmax(0, 1fr);
		gap: 16px;
	}

	.single-product div.product .summary.entry-summary form.cart .quantity {
		width: 72px !important;
	}
}

/* Keep the complete related-products section distinct from the site footer. */
.single-product .related.products {
	clear: both;
	margin-block-end: clamp(80px, 6vw, 96px);
}

/* Keep WooCommerce product details in the purchase column after the cart. */
.single-product .summary .woocommerce-tabs {
	clear: none;
	width: auto;
	margin: 40px 0 0;
	padding: 32px 0 0;
	border-top: 1px solid #e0e0e0;
}

.single-product .summary .woocommerce-tabs ul.tabs,
.single-product .summary .woocommerce-tabs .woocommerce-Tabs-panel {
	width: auto;
}

.single-product .summary .woocommerce-tabs .woocommerce-Tabs-panel {
	margin-bottom: 0;
}

/* WooCommerce's description above remains the sole product description.
 * This only guards against Astra Pro rendering its second accordion below the
 * product gallery on installations where its setting was previously enabled. */
.single-product .ast-woocommerce-accordion {
	display: none;
}

/* Astra Quick View is disabled in PHP. These selectors keep a cached or
 * third-party Astra control from becoming an accessible storefront entrypoint. */
.ast-quick-view-text,
.ast-quick-view-button,
.ast-quick-view-trigger,
.ast-qv-button-wrap,
.ast-quick-view-modal,
.ast-quick-view-bg,
.ast-quick-view-loader {
	display: none !important;
}

/* Related products keep the shared portrait frame while showing the full source image. */
.single-product .related.products ul.products li.product .astra-shop-thumbnail-wrap img {
	object-fit: contain;
}

/* WooCommerce Product Card
 *
 * This presentation layer intentionally uses WooCommerce's native product
 * loop markup and Product Collection block markup. Product editors continue
 * to manage images, names, prices, sale status and stock in WooCommerce.
 */
.woocommerce ul.products li.product,
.wc-block-product-template .wc-block-product {
	/*
	 * Both the native WooCommerce loop and Product Collection blocks use this
	 * token. Keeping it on the card makes the image-to-title space identical
	 * wherever a product card appears.
	 */
	--acta-product-card-content-gap: 24px;
	margin: 0;
	padding: 0;
	background: transparent;
	font-family: 'Manrope', sans-serif;
}

.woocommerce ul.products li.product .astra-shop-thumbnail-wrap,
.wc-block-product-template .wc-block-components-product-image {
	position: relative;
	margin: 0;
	aspect-ratio: 210 / 297;
	overflow: hidden;
	background-color: #f7f7f7;
	transition: box-shadow 220ms ease;
}

.woocommerce ul.products li.product .astra-shop-thumbnail-wrap > a,
.wc-block-product-template .wc-block-components-product-image > a {
	display: block;
	height: 100%;
}

.woocommerce ul.products li.product .astra-shop-thumbnail-wrap img,
.wc-block-product-template .wc-block-components-product-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	transition: transform 220ms ease;
}

/*
 * A grid row ends at its tallest complete card, including gallery controls and
 * product details. The gap therefore belongs between rows rather than to
 * individual cards with unequal content heights.
 */
.woocommerce ul.products:not(.is-product-collection-layout-carousel),
.wc-block-product-template:not(.is-product-collection-layout-carousel) {
	display: grid;
	grid-auto-flow: row;
	grid-auto-rows: auto;
	align-items: stretch;
	row-gap: 48px;
}

.woocommerce ul.products:not(.is-product-collection-layout-carousel) > li.product,
.wc-block-product-template:not(.is-product-collection-layout-carousel) > .wc-block-product {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-width: 0;
	margin: 0;
}

.woocommerce ul.products li.product:hover .astra-shop-thumbnail-wrap img,
.woocommerce ul.products li.product:focus-within .astra-shop-thumbnail-wrap img,
.wc-block-product-template .wc-block-product:hover .wc-block-components-product-image img,
.wc-block-product-template .wc-block-product:focus-within .wc-block-components-product-image img {
	transform: scale(1.025);
}

.woocommerce ul.products li.product:hover .astra-shop-thumbnail-wrap,
.woocommerce ul.products li.product:focus-within .astra-shop-thumbnail-wrap,
.wc-block-product-template .wc-block-product:hover .wc-block-components-product-image,
.wc-block-product-template .wc-block-product:focus-within .wc-block-components-product-image {
	box-shadow: 0 8px 20px rgba(17, 17, 17, 0.08);
}

.woocommerce ul.products li.product .ast-woo-product-category,
.woocommerce ul.products li.product .astra-shop-summary-wrap > .button,
.woocommerce ul.products li.product .ast-select-options-trigger,
.wc-block-product-template .wc-block-components-product-button {
	display: none;
}

.woocommerce ul.products li.product .ast-onsale-card,
.woocommerce ul.products li.product .onsale,
.wc-block-product-template .wc-block-components-product-sale-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	left: auto;
	z-index: 1;
	min-height: 0;
	margin: 0;
	padding: 5px 7px;
	border: 0;
	border-radius: 0;
	background-color: #3259e5;
	color: #ffffff;
	font-family: 'Manrope', sans-serif;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.03em;
	line-height: 1.2;
	text-transform: uppercase;
}

.woocommerce ul.products li.product .ast-loop-product__link,
.wc-block-product-template .wc-block-components-product-name,
.wc-block-product-template .wp-block-post-title,
.wc-block-product-template .wp-block-post-title > a {
	border-bottom: 0;
	box-shadow: none;
	text-decoration: none !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.wc-block-product-template .wc-block-components-product-name,
.wc-block-product-template .wp-block-post-title {
	display: block;
	min-block-size: 1.35em;
	block-size: 1.35em;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	margin: 0;
	color: #3259e5;
	font-family: 'Manrope', sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.35;
}

/*
 * Astra's product loop keeps its title inside a summary wrapper, whereas
 * WooCommerce Product Collection blocks render the title as a direct card
 * child. Set the same explicit block-start margin for both structures.
 *
 * Gutenberg can add a block-spacing value inline to Product Title blocks.
 * This controlled property must win so that an editorial spacing setting in
 * one collection cannot make its cards drift away from the site-wide rhythm.
 */
.woocommerce ul.products li.product .astra-shop-summary-wrap,
.wc-block-product-template .wc-block-product > .wc-block-components-product-name,
.wc-block-product-template .wc-block-product > .wp-block-post-title {
	margin-block-start: var(--acta-product-card-content-gap) !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title > a,
.wc-block-product-template .wp-block-post-title > a {
	display: block;
	max-width: 100%;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	text-decoration: none !important;
}

.woocommerce ul.products li.product .ast-loop-product__link:hover .woocommerce-loop-product__title,
.woocommerce ul.products li.product .ast-loop-product__link:focus-visible .woocommerce-loop-product__title,
.woocommerce ul.products li.product .ast-loop-product__link:active .woocommerce-loop-product__title,
.wc-block-product-template .wc-block-components-product-name:hover,
.wc-block-product-template .wc-block-components-product-name:focus-visible,
.wc-block-product-template .wc-block-components-product-name:active,
.wc-block-product-template .wp-block-post-title a:hover,
.wc-block-product-template .wp-block-post-title a:focus-visible,
.wc-block-product-template .wp-block-post-title a:active {
	color: #111111;
	text-decoration: none !important;
}

.woocommerce ul.products li.product .price,
.wc-block-product-template .wc-block-components-product-price,
.wc-block-product-template .wp-block-woocommerce-product-price {
	display: block;
	/* Two logical price lines keep sale and standard-price cards aligned without
	 * tying their layout to a pixel value or clipping price information. */
	min-block-size: 2.8em;
	min-block-size: calc(2 * 1lh);
	margin: 2px 0 0;
	color: #111111;
	font-family: 'Manrope', sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.woocommerce ul.products li.product .price del,
.wc-block-product-template .wc-block-components-product-price del {
	margin-right: 4px;
	color: #6c6c6c;
	font-weight: 400;
}

.woocommerce ul.products li.product .price ins,
.wc-block-product-template .wc-block-components-product-price ins {
	color: #3259e5;
	font-weight: 700;
	text-decoration: none;
}

.woocommerce ul.products li.product .acta-product-card-gallery {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 0;
	padding-top: 5px;
}

.wc-block-product-template .acta-product-card-gallery {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 0;
	padding-top: 5px;
}

/* Product carousels share the same card width, gaps and native scrolling. */
.wp-block-woocommerce-product-collection .is-product-collection-layout-carousel,
.acta-manual-product-carousel__track {
	display: flex;
	gap: 18px;
	margin: 0;
	padding: 4px 0;
	list-style: none;
	overflow-x: auto;
	overflow-y: hidden;
	/* Permit native horizontal swipe while retaining normal vertical page scroll. */
	touch-action: pan-x pan-y;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scroll-padding-inline: 0;
	cursor: grab;
}

.wp-block-woocommerce-product-collection .is-product-collection-layout-carousel:focus-visible,
.acta-manual-product-carousel__track:focus-visible {
	outline: 3px solid #3259e5;
	outline-offset: 4px;
}

.wp-block-woocommerce-product-collection .is-product-collection-layout-carousel > .wc-block-product,
.acta-manual-product-carousel__track > .wc-block-product {
	box-sizing: border-box;
	/* Three complete cards and a glimpse of the fourth invite horizontal browsing. */
	flex: 0 0 calc((100% - 54px) / 3.5);
	min-width: 0;
	max-width: none;
	scroll-snap-align: start;
}

.wp-block-woocommerce-product-collection .is-product-collection-layout-carousel.is-dragging,
.acta-manual-product-carousel__track.is-dragging {
	cursor: grabbing;
	user-select: none;
}

.acta-manual-product-carousel__heading {
	margin: 0 0 32px;
	color: #3259e5;
	font-family: 'Manrope', sans-serif;
	font-size: clamp(28px, 3vw, 40px);
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 1.1;
}

.acta-category-cards { max-width: 1360px; margin: 0 auto 96px; padding: 0 24px; }
.acta-category-cards__title { margin: 0 0 32px; color: #3259e5; font-family: 'Manrope', sans-serif; font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }
.acta-category-cards__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.acta-category-cards__card { position: relative; display: grid; aspect-ratio: 16 / 9; place-items: center; overflow: hidden; background: #f4cdd5; color: #fff; text-decoration: none !important; }
.acta-category-cards__image, .acta-category-cards__overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.acta-category-cards__image { display: block; object-fit: cover; object-position: center; transition: transform 180ms ease; }
.acta-category-cards__image--placeholder { background: #f4cdd5; }
.acta-category-cards__overlay { background: rgb(0 0 0 / var(--acta-category-overlay-opacity, 0.42)); transition: background-color 180ms ease; }
.acta-category-cards__name { position: relative; z-index: 1; padding: 16px; color: #fff; font-family: 'Manrope', sans-serif; font-size: clamp(18px, 1.65vw, 26px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; text-align: center; text-decoration: none; text-shadow: 0 1px 8px rgb(0 0 0 / 0.28); }
.acta-category-cards__card:hover, .acta-category-cards__card:focus-visible { text-decoration: none; }
.acta-category-cards__card:hover .acta-category-cards__image { transform: scale(1.025); }
.acta-category-cards__card:hover .acta-category-cards__overlay { background: rgb(0 0 0 / calc(var(--acta-category-overlay-opacity, 0.42) + 0.06)); }
.acta-category-cards__card:focus-visible { outline: 3px solid #3259e5; outline-offset: 4px; }

@media (max-width: 781px) {
	.acta-category-cards { margin-bottom: 64px; padding-inline: 16px; }
	.acta-category-cards__title { margin-bottom: 24px; }
	.acta-category-cards__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

	/* Keep product-image frames consistent with the desktop portrait ratio. */
	.woocommerce ul.products li.product .astra-shop-thumbnail-wrap,
	.wc-block-product-template .wc-block-components-product-image {
		aspect-ratio: 210 / 297 !important;
	}

	.wp-block-woocommerce-product-collection .is-product-collection-layout-carousel,
	.acta-manual-product-carousel__track {
		gap: 12px;
	}

	.wp-block-woocommerce-product-collection .is-product-collection-layout-carousel > .wc-block-product,
	.acta-manual-product-carousel__track > .wc-block-product {
		flex-basis: min(82%, 320px);
	}

}

.woocommerce ul.products li.product .acta-product-card-gallery__button,
.wc-block-product-template .acta-product-card-gallery__button {
	box-sizing: border-box;
	flex: 0 0 clamp(36px, 4vw, 52px);
	width: clamp(36px, 4vw, 52px);
	height: auto;
	aspect-ratio: 1 / 1.414;
	margin: 0;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 8px;
	background: #f7f7f7;
	cursor: pointer;
	overflow: hidden;
}

.woocommerce ul.products li.product .acta-product-card-gallery__button.is-selected,
.wc-block-product-template .acta-product-card-gallery__button.is-selected {
	border-color: #3259e5;
}

.woocommerce ul.products li.product .acta-product-card-gallery__button:focus-visible,
.wc-block-product-template .acta-product-card-gallery__button:focus-visible {
	outline: 2px solid #3259e5;
	outline-offset: 3px;
}

.woocommerce ul.products li.product .acta-product-card-gallery__image,
.wc-block-product-template .acta-product-card-gallery__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	border-radius: inherit;
}

.woocommerce ul.products li.product .woocommerce-LoopProduct-link:focus-visible,
.woocommerce ul.products li.product .ast-loop-product__link:focus-visible,
.wc-block-product-template .wc-block-components-product-image a:focus-visible,
.wc-block-product-template .wc-block-components-product-name:focus-visible {
	outline: 2px solid #3259e5;
	outline-offset: 3px;
}

@media (min-width: 768px) {
	.woocommerce ul.products:not(.is-product-collection-layout-carousel),
	.wc-block-product-template:not(.is-product-collection-layout-carousel) {
		row-gap: 64px;
	}

	.woocommerce ul.products li.product .woocommerce-loop-product__title,
	.wc-block-product-template .wc-block-components-product-name,
	.wc-block-product-template .wp-block-post-title,
	.woocommerce ul.products li.product .price,
	.wc-block-product-template .wc-block-components-product-price,
	.wc-block-product-template .wp-block-woocommerce-product-price {
		font-size: 15px;
	}

}

/* The manual carousel's gallery controls are portrait miniatures of the
 * product image. This deliberately does not affect product grids or native
 * Product Collection blocks that share the generic card-gallery component. */
.acta-manual-product-carousel .acta-product-card-gallery__button {
	box-sizing: border-box;
	flex: 0 0 clamp(36px, 4vw, 52px);
	width: clamp(36px, 4vw, 52px);
	height: auto;
	aspect-ratio: 1 / 1.414;
	border-radius: 8px;
	background: #f7f7f7;
	overflow: hidden;
}

.acta-manual-product-carousel .acta-product-card-gallery__image {
	object-fit: cover;
	object-position: center;
	border-radius: inherit;
}

@media (min-width: 1024px) {
	.woocommerce ul.products:not(.is-product-collection-layout-carousel),
	.wc-block-product-template:not(.is-product-collection-layout-carousel) {
		row-gap: clamp(72px, 5vw, 96px);
	}
}

@media (max-width: 480px) { .acta-category-cards__grid { grid-template-columns: 1fr; } .acta-category-cards__name { font-size: 22px; } }

@media (prefers-reduced-motion: reduce) {
	.single-product .summary .single_add_to_cart_button {
		transition: none;
	}

	.woocommerce ul.products li.product .astra-shop-thumbnail-wrap img,
	.wc-block-product-template .wc-block-components-product-image img,
	.woocommerce ul.products li.product .astra-shop-thumbnail-wrap,
	.wc-block-product-template .wc-block-components-product-image {
		transition: none;
	}

	.wp-block-woocommerce-product-collection.acta-product-carousel .is-product-collection-layout-carousel,
	.acta-manual-product-carousel__track {
		scroll-behavior: auto;
		transition: none;
	}
}
