/* ── Home promo banners (hero + two half-width) ──────────────────────────── */

.home-banners {
	margin-block-start: var(--banner-gap);
}

.home-banners__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--banner-gap);
	margin-block-start: var(--banner-gap);
}

.home-banners__item {
	display: block;
	overflow: hidden;
	border-radius: var(--banner-radius);
	line-height: 0;
}

.home-banners__item img {
	display: block;
	width: 100%;
	height: auto;
}

a.home-banners__item:hover img {
	opacity: 0.94;
}

@media (max-width: 699px) {
	.home-banners__row {
		grid-template-columns: 1fr;
	}
}

/*
 * Home page sections. One block per section, top to bottom.
 */

/* The last home section is full-bleed purple and sits flush on the footer. */
.site-main--home + .site-footer {
	margin-top: 0;
}

/* ─── Mission band (above the footer) ────────────────────────────────── */
.home-mission {
	padding: 36px 0 32px;
	background: var(--color-primary);
	color: var(--color-white);
	text-align: center;
}

.home-mission__inner {
	max-width: calc(900px + 2 * var(--container-pad));
	margin-inline: auto;
	padding-inline: var(--container-pad);
}

.home-mission__heading {
	margin: 0;
	padding-bottom: 18px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.14);
	font-family: var(--font-display);
	font-size: 30px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

.home-mission__body {
	margin: 24px 0 22px;
	font-size: 17px;
	line-height: 1.5;
}

.home-mission__link {
	display: inline-block;
	color: var(--color-white);
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
}

.home-mission__link:hover,
.home-mission__link:focus-visible {
	text-decoration-thickness: 2.5px;
}

@media (max-width: 767px) {
	.home-mission {
		padding: 30px 0 28px;
	}

	.home-mission__heading {
		padding-bottom: 14px;
		font-size: 24px;
	}

	.home-mission__body {
		margin: 18px 0 18px;
		font-size: 16px;
	}

	.home-mission__link {
		font-size: 16px;
	}
}

/* ─── Shared section headings ────────────────────────────────────────── */
.home-heading {
	margin: 0 0 8px;
	font-family: var(--font-display);
	font-size: 52px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.01em;
	text-transform: uppercase;
}

.home-subheading {
	margin: 0 0 26px;
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.2;
}

/* ─── Verified customer reviews carousel ─────────────────────────────── */
.home-reviews {
	padding: 56px 0 60px;
	background: var(--footer-bg);
	color: var(--footer-text);
	text-align: center;
}

.reviews-carousel__track {
	gap: 25px;
	padding: 4px 2px 12px;
}

.review-card {
	display: flex;
	flex: 0 0 245px;
	flex-direction: column;
	min-height: 522px;
	overflow: hidden;
	border-radius: 6px;
	background: var(--color-white);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.03);
	text-align: left;
}

.review-card__image {
	display: grid;
	place-items: center;
	height: 300px;
	padding: 20px;
	background: #f7f7f7;
}

.review-card__image img {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: 260px;
	object-fit: contain;
}

.review-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 18px 20px 20px;
}

.review-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 14px;
}

.review-stars {
	display: inline-flex;
	gap: 2px;
}

.review-stars svg {
	width: 20px;
	height: 20px;
	fill: #f8be00;
}

.review-stars svg.is-off {
	fill: #d9d9d9;
}

.review-card__time {
	font-size: 14px;
	color: #6b6b6b;
	white-space: nowrap;
}

.review-card__title {
	margin: 0 0 10px;
	overflow: hidden;
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.review-card__text {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	font-size: 15px;
	line-height: 1.6;
	color: #333;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.review-card__author {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: auto 0 0;
	padding-top: 22px;
	font-size: 14px;
	color: #4a4a4a;
}

.review-card__badge {
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
}

.reviews-carousel__btn {
	top: 150px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--color-white);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
	color: #202223;
}

.reviews-carousel__btn svg {
	width: 18px;
	height: 18px;
}

.reviews-carousel__btn:hover,
.reviews-carousel__btn:focus-visible {
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.26);
}

.reviews-carousel .carousel__btn--prev {
	left: -16px;
}

.reviews-carousel .carousel__btn--next {
	right: -16px;
}

@media (max-width: 767px) {
	.home-reviews {
		padding: 40px 0 44px;
	}

	.home-heading {
		font-size: 38px;
	}

	.home-subheading {
		font-size: 18px;
		margin-bottom: 20px;
	}

	.review-card {
		flex-basis: 240px;
	}

	.reviews-carousel .carousel__btn--prev {
		left: 2px;
	}

	.reviews-carousel .carousel__btn--next {
		right: 2px;
	}
}

/* ─── "Get insider access" signup band (above the reviews) ───────────── */
.home-signup {
	padding: 50px 0 46px;
	border-top: 1px solid #dedede;
	border-bottom: 1px solid #dedede;
	background: var(--footer-bg);
	color: var(--footer-text);
}

.home-signup__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 590px);
	gap: 32px 80px;
	align-items: start;
}

.home-signup__heading {
	max-width: 640px;
	margin: 0;
	font-family: var(--font-display);
	font-size: 30px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

.home-signup__heading strong {
	font-weight: 700;
	color: var(--color-primary);
}

.home-signup__form {
	width: 100%;
	max-width: 590px;
	justify-self: end;
}

@media (max-width: 991px) {
	.home-signup__inner {
		grid-template-columns: 1fr;
	}

	.home-signup__form {
		justify-self: start;
	}
}

@media (max-width: 767px) {
	.home-signup {
		padding: 36px 0 34px;
	}

	.home-signup__heading {
		font-size: 24px;
	}
}

/* ─── "Supplements to go beyond" goal tiles ──────────────────────────── */
.home-goals {
	padding: 40px 0 70px;
	background: var(--footer-bg);
	color: var(--footer-text);
	text-align: center;
}

.goals-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px 10px;
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
}

.goal-tile {
	display: block;
	overflow: hidden;
	border-radius: 2px;
	background: var(--color-primary-dark);
}

.goal-tile img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 425 / 276;
	object-fit: cover;
	transition: transform 0.35s ease;
}

a.goal-tile:hover img,
a.goal-tile:focus-visible img {
	transform: scale(1.04);
}

a.goal-tile:focus-visible {
	outline: 3px solid var(--color-primary);
	outline-offset: 2px;
}

@media (max-width: 991px) {
	.goals-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.home-goals {
		padding: 32px 0 44px;
	}

	.goals-grid {
		gap: 10px;
	}
}

/* ─── Generic carousel (reviews + product sliders) ───────────────────── */
.carousel {
	position: relative;
}

.carousel__track {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: 2px;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.carousel__track::-webkit-scrollbar {
	display: none;
}

.carousel__item {
	scroll-snap-align: start;
}

.carousel__btn {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	cursor: pointer;
	transform: translateY(-50%);
}

.carousel__btn[hidden] {
	display: none;
}

/* ─── "Our bestsellers" tabs + product slider ────────────────────────── */
.home-bestsellers {
	padding: 30px 0 34px;
	background: var(--footer-bg);
	color: var(--footer-text);
}

.home-bestsellers__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
	margin-bottom: 26px;
}

.home-bestsellers__heading {
	margin: 0;
	text-align: left;
}

.tab-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.tab-pills__tab {
	padding: 0 26px;
	height: 52px;
	border: 0;
	border-radius: 999px;
	background: var(--color-white);
	color: var(--footer-text);
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.tab-pills__tab:hover,
.tab-pills__tab:focus-visible {
	background: #e8e8e8;
}

.tab-pills__tab.is-active {
	background: #000;
	color: var(--color-white);
}

.product-carousel {
	padding: 0 24px; /* room for the arrows either side */
}

.product-carousel__track {
	gap: 26px;
	padding: 4px 2px 8px;
}

.product-card {
	display: flex;
	flex: 0 0 245px;
	flex-direction: column;
	align-items: center;
	padding: 24px 16px 18px;
	border-radius: 4px;
	background: var(--color-white);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.03);
	text-align: center;
}

.product-card__image {
	display: grid;
	place-items: center;
	width: 100%;
	height: 130px;
	margin-bottom: 14px;
}

.product-card__image img {
	display: block;
	max-width: 100%;
	max-height: 130px;
	width: auto;
	object-fit: contain;
}

.product-card__meta {
	margin: 0 0 6px;
	font-family: var(--font-display);
	font-size: 15px;
	font-weight: 600;
	color: var(--color-primary);
}

.product-card__name {
	margin: 0 0 4px;
	font-family: var(--font-display);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

.product-card__name a {
	color: inherit;
	text-decoration: none;
}

.product-stars {
	display: inline-flex;
	gap: 1px;
	margin-bottom: 8px;
}

.product-stars svg {
	width: 18px;
	height: 18px;
	fill: #f8be00;
}

.product-stars svg.is-off {
	fill: #d9d9d9;
}

.product-stars svg.is-half {
	fill: #d9d9d9;
}

.product-stars svg.is-half .product-stars__half {
	fill: #f8be00;
	clip-path: inset(0 50% 0 0);
}

.product-card__price {
	margin: 0 0 12px;
	font-size: 17px;
	font-weight: 700;
}

.product-card__buy {
	margin-top: auto;
	padding: 9px 18px;
	border: 0;
	border-radius: 3px;
	background: #1a1a1a;
	color: var(--color-white);
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.product-card__buy:hover,
.product-card__buy:focus-visible {
	background: #000;
}

.product-carousel .carousel__btn {
	width: 36px;
	height: 36px;
	background: transparent;
	color: #1a1a1a;
}

.product-carousel .carousel__btn svg {
	width: 26px;
	height: 26px;
}

.product-carousel .carousel__btn:disabled {
	color: #b5b5b5;
	cursor: default;
}

.product-carousel .carousel__btn--prev {
	left: -14px;
}

.product-carousel .carousel__btn--next {
	right: -14px;
}

@media (max-width: 991px) {
	.home-bestsellers__head {
		align-items: flex-start;
		flex-direction: column;
	}

	.tab-pills {
		flex-wrap: nowrap;
		max-width: 100%;
		overflow-x: auto;
		padding-bottom: 4px;
		scrollbar-width: none;
	}

	.tab-pills::-webkit-scrollbar {
		display: none;
	}
}

@media (max-width: 767px) {
	.home-bestsellers {
		padding: 26px 0 28px;
	}

	.tab-pills__tab {
		height: 44px;
		padding: 0 18px;
		font-size: 14px;
	}

	.product-carousel {
		padding: 0;
	}

	.product-card {
		flex-basis: 200px;
		padding: 18px 12px 16px;
	}

	.product-card__image {
		height: 110px;
	}

	.product-card__image img {
		max-height: 110px;
	}

	.product-carousel .carousel__btn {
		width: 32px;
		height: 32px;
		border-radius: 50%;
		background: var(--color-white);
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
	}

	.product-carousel .carousel__btn--prev {
		left: 2px;
	}

	.product-carousel .carousel__btn--next {
		right: 2px;
	}
}


/* ── Home "Our top categories" ───────────────────────────────────────────── */

.home-categories {
	margin-block-start: 48px;
}

.home-categories__heading {
	margin: 0 0 20px;
	font-family: var(--font-display);
	font-size: clamp(26px, 3.2vw, 38px);
	font-weight: 700;
	letter-spacing: 0.01em;
	text-align: center;
	text-transform: uppercase;
}

.home-categories__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--banner-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.category-card {
	position: relative;
	display: block;
	overflow: hidden;
	text-decoration: none;
	line-height: 0;
}

.category-card__img {
	display: block;
	width: 100%;
	height: auto;
}

/* Measured from the reference: half the card wide, centred, 4% off the bottom. */
.category-card__button {
	position: absolute;
	inset-inline: 25%;
	inset-block-end: 4%;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 10.4%;
	padding: 8px 4px;
	border-radius: 6px;
	background: var(--category-button-bg);
	color: var(--category-button-text);
	font-family: var(--font-display);
	font-size: clamp(13px, 1.25vw, 17px);
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1;
	text-align: center;
	text-transform: uppercase;
}

a.category-card:hover .category-card__button {
	background: var(--color-primary);
	color: var(--color-white);
}

@media (max-width: 899px) {
	.home-categories__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
