/* Product category / shop archive — ported from Elementor archive template 2165 */

.acat-hero__inner,
.acat-band__inner {
	width: 100%;
	max-width: 1920px;
	margin: 0 auto;
	box-sizing: border-box;
	/* live: 5% of the padded content box */
	padding: 4.2% 8%;
}

/* ---------- hero ---------- */
.acat-hero__title {
	font-size: 2.6rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--orange);
	margin: 0 0 2rem;
}

/* paragraph with the grey rule on its left */
.acat-hero__lead {
	position: relative;
	padding-left: 13rem;
	/* the old site adds the paragraph gap to the 2rem heading margin below */
	padding-bottom: 0.9rem;
}

.acat-hero__lead p:last-child,
.acat__desc p:last-child {
	margin-bottom: 0;
}

.acat-hero__lead::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.8rem;
	width: 11rem;
	height: 1px;
	background: var(--border-1);
}

.acat-hero__lead p,
.acat-hero__sub p,
.acat__desc p {
	font-size: 1rem;
	line-height: 1.4;
	margin: 0 0 0.9rem;
}

.acat-hero__h2 {
	font-size: 2.6rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--orange);
	margin: 2rem 0 0;
}

.acat-hero__sub {
	margin-top: 1rem;
}

.acat-benefits {
	display: flex;
}

.acat-benefit {
	/* the old site sized the four cards slightly differently so the slants line up */
	width: 25%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
}

.acat-benefit:nth-child(1) { width: 25.289%; }
.acat-benefit:nth-child(2) { width: 24.994%; }
.acat-benefit:nth-child(3) { width: 24.802%; }
.acat-benefit:nth-child(4) { width: 24.215%; }

.acat-benefit img {
	display: block;
	width: 100%;
	height: auto;
}

.acat-benefit__title {
	font-size: 1.8rem;
	font-weight: 600;
	line-height: 1.4;
	margin: 3% 0 3% 8%;
}

.acat-benefit__text {
	font-size: 1rem;
	line-height: 1.4;
	margin: 2% 0 0.9rem 10%;
}

@media (min-width: 768px) {
	.acat-benefit:nth-child(1) {
		clip-path: polygon(0 0, 91.5% 0, 100% 100%, 0 100%);
	}

	.acat-benefit:nth-child(2),
	.acat-benefit:nth-child(3) {
		clip-path: polygon(0 0, 91.5% 0, 100% 100%, 8.5% 100%);
	}

	.acat-benefit:nth-child(4) {
		clip-path: polygon(0 0, 100% 0, 100% 100%, 8.5% 100%);
	}
}

/* ---------- sidebar + products ---------- */
.acat-band {
	border-top: 1px solid var(--border-1);
}

.acat-band__inner {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.acat__side {
	width: 25%;
	box-sizing: border-box;
	background: var(--bg-2);
	padding: 20px;
	position: sticky;
	top: 66px;
}

.acat__main {
	width: 70%;
	box-sizing: border-box;
	padding: 10px;
}

.acat__title {
	font-size: 1.8rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--orange);
	margin: 0;
}

.acat__desc {
	margin: 2rem 0 0;
	padding-bottom: 0.9rem;
	font-size: 1rem;
	line-height: 1.4;
}

.acat .productgrid {
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-top: 2rem;
}

.acat .pcard {
	border: 1px solid var(--border-1);
	background: var(--white);
}

.acat .pcard__media {
	padding: 10px;
	background: var(--white);
}

.acat .pcard:hover .pcard__media img {
	transform: none;
}

.acat .pcard__title {
	font-size: 21px;
	font-weight: 400;
	line-height: 1.4rem;
	margin: 0;
	padding: 0 20px 20px;
}

.acat__more {
	margin: 3rem 0;
	min-height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* loading spinner, shown only while the next batch is fetched */
.acat__more-spinner {
	display: block;
	width: 24px;
	height: 24px;
	box-sizing: border-box;
	border: 2px solid rgba(238, 110, 0, 0.3);
	border-top-color: var(--orange);
	border-radius: 50%;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.acat__more.is-loading .acat__more-spinner {
	opacity: 1;
	animation: acat-spin 0.8s linear infinite;
}

@keyframes acat-spin {
	to {
		transform: rotate(360deg);
	}
}

.acat__more-fallback {
	font-size: 0.9rem;
	color: var(--orange);
}

/* ---------- category accordion menu ---------- */
.catmenu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.catmenu a {
	text-decoration: none;
	color: var(--ink);
}

.catmenu a:hover {
	color: var(--orange);
}

/* level 1: the big category links */
.catmenu__row {
	display: flex;
	align-items: center;
	padding: 20px 20px 20px 0;
	font-size: 1.8rem;
	font-weight: 600;
	line-height: 1.4;
}

/* level 2 / 3 rows sit inside the hairline */
.catmenu__item--2 > .catmenu__row {
	padding: 15px 30px;
	font-size: 1rem;
	font-weight: 400;
}

.catmenu__item--3 > .catmenu__row {
	padding: 10px 50px;
	font-size: 1rem;
	font-weight: 400;
}

/* open branch + current item (and its label link): orange, like the old sidebar */
.catmenu__item.is-open > .catmenu__row,
.catmenu__item.is-open > .catmenu__row a,
.catmenu__item.is-current > .catmenu__row,
.catmenu__item.is-current > .catmenu__row a {
	color: var(--orange);
}

/* the current sub-category gets the 6px orange bar on the hairline */
.catmenu__item--2.is-current > .catmenu__row,
.catmenu__item--2.is-current > .catmenu__row a,
.catmenu__item--3.is-current > .catmenu__row,
.catmenu__item--3.is-current > .catmenu__row a {
	color: var(--orange);
}

.catmenu__item--2.is-current > .catmenu__row,
.catmenu__item--3.is-current > .catmenu__row {
	border-left: 6px solid var(--orange);
}

.catmenu__item--2.is-current > .catmenu__row {
	padding-left: 24px;
}

.catmenu__item--3.is-current > .catmenu__row {
	padding-left: 44px;
}

.catmenu__toggle {
	flex: none;
	position: relative;
	width: 15px;
	height: 15px;
	margin: 0 15px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}

/* chevron, flipped when the list is open */
.catmenu__toggle::after {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	transition: transform 0.2s ease;
}

.catmenu__toggle[aria-expanded="true"]::after {
	transform: translateY(2px) rotate(-135deg);
}

.catmenu__sub {
	list-style: none;
	margin: 0;
	padding: 0;
	border-left: 1px solid var(--border-1);
}

@media (max-width: 1024px) and (min-width: 768px) {
	.acat__side { width: 35%; }
	.acat__main { width: 65%; }
}

@media (max-width: 1024px) {
	.acat .productgrid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.acat-hero__inner {
		padding: 9% 5% 4.5%;
	}

	.acat-band__inner {
		padding: 4.5% 5%;
	}

	.acat-hero__title,
	.acat-hero__h2 {
		font-size: 2.5rem;
		line-height: 1.2;
	}

	.acat-hero__lead {
		padding-left: 6rem;
	}

	.acat-hero__lead::before {
		width: 5.5rem;
	}

	.acat-benefits {
		display: block;
	}

	.acat-benefit,
	.acat-benefit:nth-child(n) {
		width: 100%;
	}

	.acat-benefit__title {
		margin: 1rem 0;
	}

	.acat-benefit__text {
		margin: 2% 2% 4%;
	}

	/* the old site hides the category menu on phones */
	.acat__side {
		display: none;
	}

	.acat__main {
		width: 100%;
		padding: 0;
	}

	.acat .productgrid {
		grid-template-columns: 1fr;
	}
}

/* ---------- wide screens ---------- */
/* the inner is a 1920px box, so on wider screens the gutter has to be a fixed
   8% of that box; a percentage would keep growing with the viewport */
@media (min-width: 1921px) {
	.acat-hero__inner,
	.acat-band__inner {
		padding-left: 153.6px;
		padding-right: 153.6px;
	}
}
