/**
 * Reusable components: buttons, header, navigation, product card, footer.
 */

/* =========================================================
   Icons
   ========================================================= */

.munchi-icon {
	width: 1.25em;
	height: 1.25em;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2xs);
	/* 44px minimum so touch targets clear the WCAG target-size guidance. */
	min-height: 2.75rem;
	padding: var(--space-xs) var(--space-md);
	border: 1px solid transparent;
	border-radius: var(--radius-pill);
	font-family: var(--font-body);
	font-size: var(--text-sm);
	font-weight: var(--weight-bold);
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition:
		background-color var(--duration-base) var(--ease-out),
		color var(--duration-base) var(--ease-out),
		transform var(--duration-fast) var(--ease-out);
}

.btn:hover {
	transform: translateY(-2px);
}

.btn:active {
	transform: translateY(0);
}

.btn--large {
	min-height: 3.25rem;
	padding-inline: var(--space-lg);
	font-size: var(--text-base);
}

.btn--block {
	width: 100%;
}

.btn--primary {
	background: var(--munchi-yellow);
	color: var(--munchi-navy);
}

.btn--primary:hover {
	background: var(--munchi-yellow-dark);
}

.btn--dark {
	background: var(--munchi-navy);
	color: var(--color-text-inverse);
}

.btn--dark:hover {
	background: var(--munchi-navy-soft);
}

.btn--outline {
	border-color: var(--color-border-strong);
	color: var(--color-text);
}

.btn--outline:hover {
	background: var(--munchi-navy);
	border-color: var(--munchi-navy);
	color: var(--color-text-inverse);
}

/* Used on dark backgrounds, where a light border reads better. */
.btn--ghost {
	border-color: rgba(255, 255, 255, 0.45);
	color: var(--color-text-inverse);
}

.btn--ghost:hover {
	background: var(--color-text-inverse);
	border-color: var(--color-text-inverse);
	color: var(--munchi-navy);
}

.link-underline {
	display: inline-flex;
	align-items: center;
	gap: var(--space-3xs);
	padding-block-end: var(--space-3xs);
	border-block-end: 2px solid var(--munchi-yellow);
	font-weight: var(--weight-bold);
	text-decoration: none;
}

.link-underline:hover {
	border-color: var(--color-text);
}

/* =========================================================
   Announcement bar
   ========================================================= */

.announcement-bar {
	background: var(--munchi-yellow);
	color: var(--munchi-navy);
	font-size: var(--text-xs);
	font-weight: var(--weight-bold);
}

.announcement-bar__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xs) var(--space-xl);
	align-items: center;
	justify-content: center;
	min-height: 2.25rem;
	padding-block: var(--space-3xs);
	text-align: center;
}

.announcement-bar__item {
	display: inline-flex;
	gap: var(--space-2xs);
	align-items: center;
}

.announcement-bar__item .munchi-icon {
	width: 1.1rem;
	height: 1.1rem;
}

/*
 * On narrow screens only the first message stays. Three competing lines of
 * small text is noise on a phone, and wrapping them pushes the hero down.
 */
@media (max-width: 599px) {
	.announcement-bar__item--secondary {
		display: none;
	}
}

/* =========================================================
   Site header
   ========================================================= */

.site-header {
	position: sticky;
	top: 0;
	z-index: var(--z-header);
	background: var(--munchi-navy);
	color: var(--color-text-inverse);
}

.site-header__inner {
	display: flex;
	gap: var(--space-md);
	align-items: center;
	justify-content: space-between;
	min-height: 4.75rem;
}

.site-logo {
	display: block;
	flex: none;
	text-decoration: none;
}

.site-logo__image {
	width: auto;
	max-height: 2.75rem;
	object-fit: contain;
}

.site-logo--text {
	font-family: var(--font-display);
	font-size: var(--text-xl);
	font-weight: var(--weight-black);
}

/* ---------- Primary navigation ---------- */

.site-nav {
	margin-inline: var(--space-xl) auto;
}

.site-nav__list {
	display: flex;
	gap: clamp(var(--space-sm), 1.6vw, var(--space-lg));
	align-items: center;
}

.site-nav__list a {
	position: relative;
	display: block;
	padding-block: var(--space-2xs);
	font-size: var(--text-sm);
	font-weight: var(--weight-semibold);
	text-decoration: none;
	white-space: nowrap;
}

.site-nav__list a::after {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	inset-block-end: 0;
	width: 0;
	height: 2px;
	background: var(--munchi-yellow);
	transition: width var(--duration-base) var(--ease-out);
}

.site-nav__list a:hover::after,
.site-nav__list .current-menu-item > a::after,
.site-nav__list .current_page_item > a::after {
	width: 100%;
}

/* ---------- Header actions ---------- */

.site-header__actions {
	display: flex;
	gap: var(--space-3xs);
	align-items: center;
}

.header-action {
	position: relative;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	background: none;
	border: 0;
	border-radius: var(--radius-pill);
	color: inherit;
	cursor: pointer;
	text-decoration: none;
	transition: background-color var(--duration-fast) var(--ease-out);
}

.header-action:hover {
	background: var(--munchi-navy-soft);
}

.header-action .munchi-icon {
	width: 1.3rem;
	height: 1.3rem;
}

.header-cart-count {
	position: absolute;
	top: 0.3rem;
	right: 0.25rem;
	display: grid;
	place-items: center;
	min-width: 1.15rem;
	height: 1.15rem;
	padding-inline: 0.25rem;
	background: var(--munchi-yellow);
	border-radius: var(--radius-pill);
	color: var(--munchi-navy);
	font-size: 0.625rem;
	font-weight: var(--weight-black);
	line-height: 1;
}

/* An empty cart shows no badge at all. */
.header-cart-count.is-empty {
	display: none;
}

/* ---------- Hamburger ---------- */

.header-action--menu {
	display: none;
}

.hamburger {
	display: grid;
	gap: 4px;
	width: 1.25rem;
}

.hamburger span {
	display: block;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform var(--duration-base) var(--ease-out);
}

/* The desktop nav gives way to the hamburger on tablets and below. */
@media (max-width: 1023px) {
	.site-nav {
		display: none;
	}

	.header-action--menu {
		display: grid;
	}
}

/* =========================================================
   Off-canvas mobile menu
   ========================================================= */

.mobile-menu,
.search-overlay {
	position: fixed;
	inset: 0;
	z-index: var(--z-overlay);
}

.mobile-menu[hidden],
.search-overlay[hidden] {
	display: none;
}

.mobile-menu__backdrop,
.search-overlay__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(17, 26, 36, 0.55);
	animation: munchi-fade-in var(--duration-base) var(--ease-out);
}

.mobile-menu__panel {
	position: absolute;
	inset-block: 0;
	inset-inline-end: 0;
	display: flex;
	flex-direction: column;
	gap: var(--space-lg);
	width: min(22rem, 90vw);
	padding: var(--space-md);
	overflow-y: auto;
	background: var(--color-surface);
	animation: munchi-slide-in var(--duration-base) var(--ease-out);
}

.mobile-menu__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.mobile-menu__close,
.search-overlay__close {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	background: none;
	border: 0;
	border-radius: var(--radius-pill);
	cursor: pointer;
}

.mobile-menu__close:hover,
.search-overlay__close:hover {
	background: var(--color-surface-sunken);
}

.mobile-menu__list {
	display: grid;
	gap: var(--space-3xs);
}

.mobile-menu__list a {
	display: block;
	padding: var(--space-xs) var(--space-2xs);
	border-block-end: 1px solid var(--color-border);
	font-family: var(--font-display);
	font-size: var(--text-lg);
	font-weight: var(--weight-bold);
	text-decoration: none;
}

.mobile-menu__footer {
	display: grid;
	gap: var(--space-sm);
	margin-block-start: auto;
}

.mobile-menu__account {
	display: flex;
	gap: var(--space-2xs);
	align-items: center;
	justify-content: center;
	font-size: var(--text-sm);
	font-weight: var(--weight-semibold);
	text-decoration: none;
}

/* =========================================================
   Search overlay
   ========================================================= */

.search-overlay__panel {
	position: relative;
	width: min(40rem, calc(100% - var(--gutter) * 2));
	margin: clamp(3rem, 12vh, 8rem) auto 0;
	padding: var(--space-xl) var(--space-lg);
	background: var(--color-surface);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
	animation: munchi-pop-in var(--duration-base) var(--ease-out);
}

.search-overlay__close {
	position: absolute;
	top: var(--space-sm);
	right: var(--space-sm);
}

.search-overlay__title {
	margin-block-end: var(--space-md);
	font-size: var(--text-2xl);
}

.search-overlay__suggestions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2xs);
	align-items: center;
	margin-block-start: var(--space-md);
	font-size: var(--text-sm);
}

.search-overlay__suggestions-label {
	color: var(--color-text-muted);
}

.search-overlay__suggestions-list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2xs);
}

.search-overlay__suggestions-list a {
	display: block;
	padding: var(--space-3xs) var(--space-xs);
	background: var(--color-surface-sunken);
	border-radius: var(--radius-pill);
	font-weight: var(--weight-semibold);
	text-decoration: none;
}

.search-overlay__suggestions-list a:hover {
	background: var(--munchi-yellow);
}

/* =========================================================
   Forms
   ========================================================= */

.search-form__row {
	display: flex;
	gap: var(--space-2xs);
}

.search-form__input,
input[type="text"],
input[type="email"],
input[type="search"],
input[type="tel"],
input[type="number"],
input[type="password"],
textarea,
select {
	width: 100%;
	min-height: 2.75rem;
	padding: var(--space-2xs) var(--space-sm);
	background: var(--color-surface);
	border: 1px solid var(--color-border-strong);
	border-radius: var(--radius-sm);
	font-size: var(--text-base);
}

/* Room for the browser's dropdown arrow, so a long option never runs under it. */
select {
	padding-inline-end: 2.5rem;
}

.search-form__input:focus,
input:focus,
textarea:focus,
select:focus {
	border-color: var(--munchi-navy);
}

.search-form__submit {
	flex: none;
}

/* =========================================================
   Product card
   ========================================================= */

.product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	text-align: center;
	transition: box-shadow var(--duration-base) var(--ease-out);
}

.product-card:hover {
	box-shadow: var(--shadow-lg);
}

.product-card__media {
	position: relative;
	/*
	 * A fixed aspect ratio reserves the space before the image loads, so the
	 * grid never shifts as photography streams in.
	 */
	aspect-ratio: 1;
	background: var(--color-surface-sunken);
}

/*
 * The square frame never takes its size from the photo. In WooCommerce loops
 * its `.woocommerce ul.products li.product a img { height: auto }` rule gave the
 * photo its natural 2:3 height; Safari then grew the frame to fit, and the
 * photo covered the product name and price. The photo is laid out inside the
 * frame instead, so the frame stays square whatever any other rule says.
 */
.product-card__media {
	overflow: hidden;
}

.product-card__image-link {
	position: absolute;
	inset: 0;
	display: block;
}

/* Outranks WooCommerce's loop rule above, which also sets height: auto. */
.product-card__media .product-card__image,
.woocommerce ul.products li.product .product-card__media img.product-card__image {
	position: absolute;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	margin: 0;
}

.product-card__image {
	width: 100%;
	height: 100%;
	/*
	 * The brand's jar shots are 2:3 with the jar in the middle and props
	 * around it. A square cover crop trims the props, and the position keeps
	 * the lid and the label in frame; only the base of the jar can be cut.
	 */
	object-fit: cover;
	object-position: 50% 42%;
	transition: transform var(--duration-slow) var(--ease-out);
}

.product-card:hover .product-card__image {
	transform: scale(1.04);
}

.product-card--out-of-stock .product-card__image {
	opacity: 0.55;
}

.product-card__badges {
	position: absolute;
	top: var(--space-xs);
	left: var(--space-xs);
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: var(--space-3xs);
	align-items: flex-start;
}

.product-card__badge {
	padding: 0.35rem 0.65rem;
	border-radius: var(--radius-pill);
	font-size: var(--text-xs);
	font-weight: var(--weight-black);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.product-card__badge.is-featured {
	background: var(--munchi-yellow);
	color: var(--munchi-navy);
}

.product-card__badge.is-sale {
	background: var(--color-sale);
	color: var(--color-text-inverse);
}

.product-card__badge.is-muted {
	background: var(--munchi-navy);
	color: var(--color-text-inverse);
}

.product-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	gap: var(--space-3xs);
	padding: var(--space-sm) var(--space-sm) var(--space-md);
}

.product-card__title {
	font-size: var(--text-base);
	line-height: var(--leading-snug);
}

.product-card__link {
	text-decoration: none;
}

/* Make the whole card clickable without nesting interactive elements. */
.product-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
}

/* The flavour reads as the second line of the name, as on the jar label. */
.product-card__descriptor {
	margin-block-start: calc(-1 * var(--space-3xs));
	font-family: var(--font-display);
	font-size: var(--text-base);
	font-weight: var(--weight-bold);
	line-height: var(--leading-snug);
}

.product-card__rating {
	display: flex;
	gap: var(--space-3xs);
	align-items: center;
	font-size: var(--text-xs);
}

.product-card__review-count {
	color: var(--color-text-muted);
}

.product-card__footer {
	display: flex;
	flex-direction: column;
	gap: var(--space-xs);
	align-items: center;
	width: 100%;
	margin-block-start: auto;
	padding-block-start: var(--space-2xs);
}

.product-card__price {
	font-family: var(--font-display);
	font-size: var(--text-lg);
	font-weight: var(--weight-black);
}

.product-card__price del {
	margin-inline-end: var(--space-3xs);
	color: var(--color-text-muted);
	font-size: var(--text-sm);
	font-weight: var(--weight-regular);
}

.product-card__price ins {
	color: var(--color-sale);
	text-decoration: none;
}

/* The add-to-cart button sits above the card-wide click target. */
.product-card__button,
.product-card__stock-notice {
	position: relative;
	z-index: 1;
}

.product-card__button {
	width: min(100%, 11rem);
}

/*
 * WooCommerce prints the button text only, so the cart icon is drawn from
 * the theme's own icon file and coloured with the text.
 */
.product-card__button::before {
	content: "";
	width: 1.35em;
	height: 1.35em;
	flex: none;
	background: currentColor;
	-webkit-mask: url("../images/icons/cart.svg") center / contain no-repeat;
	mask: url("../images/icons/cart.svg") center / contain no-repeat;
}

/* WooCommerce's "View cart" link, added after an AJAX add to cart. */
.product-card .added_to_cart {
	position: relative;
	z-index: 1;
	font-size: var(--text-xs);
	font-weight: var(--weight-bold);
}

.product-card__stock-notice {
	padding: var(--space-2xs) var(--space-sm);
	background: var(--color-surface-sunken);
	border-radius: var(--radius-pill);
	color: var(--color-text-muted);
	font-size: var(--text-xs);
	font-weight: var(--weight-bold);
}

/* ---------- Product grid ---------- */

.product-grid {
	display: grid;
	gap: var(--space-md);
	grid-template-columns: repeat(4, 1fr);
}

/* One scrolling row, four cards wide, on the homepage. */
.product-grid--rail {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-block: var(--space-3xs) var(--space-sm);
}

.product-grid--rail::-webkit-scrollbar {
	display: none;
}

.product-grid--rail > .product-card {
	flex: 0 0 calc((100% - 3 * var(--space-md)) / 4);
	scroll-snap-align: start;
}

.product-grid[aria-busy="true"] {
	opacity: 0.5;
	transition: opacity var(--duration-fast) var(--ease-out);
}

.product-grid__empty {
	grid-column: 1 / -1;
	flex: 1;
	padding: var(--space-xl);
	color: var(--color-text-muted);
	text-align: center;
}

@media (max-width: 1023px) {
	.product-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.product-grid--rail > .product-card {
		flex-basis: calc((100% - 2 * var(--space-md)) / 3);
	}
}

@media (max-width: 767px) {
	.product-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: var(--space-sm);
	}

	.product-grid--rail > .product-card {
		flex-basis: 70%;
	}
}

/* =========================================================
   Social links
   ========================================================= */

.social-links {
	display: flex;
	gap: var(--space-xs);
	align-items: center;
}

.social-links__link {
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid currentColor;
	border-radius: var(--radius-pill);
	opacity: 0.75;
	text-decoration: none;
	transition: opacity var(--duration-fast) var(--ease-out);
}

.social-links__link:hover {
	opacity: 1;
}

/* =========================================================
   Site footer
   ========================================================= */

.site-footer {
	padding-block: var(--space-2xl) var(--space-md);
	background: var(--munchi-navy);
	color: var(--color-text-inverse);
}

.site-footer__grid {
	display: grid;
	gap: var(--space-xl);
	grid-template-columns: 1.7fr 1fr 1fr 1fr 1.5fr;
	padding-block-end: var(--space-xl);
	border-block-end: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__logo {
	margin-block-end: var(--space-sm);
}

/*
 * The Munchi wordmark is yellow on transparency, which holds its contrast on
 * both the cream header and the navy footer, so it is used as supplied. A
 * brand that later supplies a dark-background variant can swap it in here.
 */
.site-logo--dark .site-logo__image {
	max-height: 2.5rem;
}

.site-footer__description {
	max-width: 24rem;
	color: var(--color-text-inverse-muted);
	font-size: var(--text-sm);
}

.social-links--footer {
	margin-block-start: var(--space-md);
}

.social-links--footer .social-links__link {
	width: 2rem;
	height: 2rem;
	border: 0;
}

.site-footer__tagline {
	margin-inline-start: auto;
}

.site-footer__heart {
	color: var(--color-heart);
}

.site-footer__contact {
	display: grid;
	gap: var(--space-2xs);
	margin-block-start: var(--space-md);
	font-size: var(--text-sm);
}

.site-footer__contact li {
	display: flex;
	gap: var(--space-2xs);
	align-items: center;
	color: var(--color-text-inverse-muted);
}

.site-footer__contact .munchi-icon {
	color: var(--munchi-yellow);
}

.site-footer__contact a {
	color: inherit;
	text-decoration: none;
}

.site-footer__contact a:hover {
	color: var(--munchi-yellow);
}

/* Legal entity, FSSAI licence and grievance officer, with the payment badges beside them. */
.site-footer__compliance {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm) var(--space-lg);
	align-items: center;
	justify-content: space-between;
	margin-block-start: var(--space-sm);
	padding-block-start: var(--space-sm);
	border-block-start: 1px solid rgba(255, 255, 255, 0.08);
	color: var(--color-text-inverse-muted);
	font-size: var(--text-xs);
}

.site-footer__compliance-list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3xs) var(--space-lg);
}

.site-footer__compliance a {
	color: inherit;
}

.site-footer__payments {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2xs);
}

.site-footer__payments li {
	padding: 0.2rem var(--space-xs);
	background: var(--color-text-inverse);
	border-radius: var(--radius-sm);
	color: var(--munchi-navy);
	font-size: 0.6875rem;
	font-weight: var(--weight-black);
	letter-spacing: 0.02em;
}

/*
 * The newsletter always takes the last column, so a link column with no menu
 * assigned leaves a gap in the middle rather than squeezing the form.
 */
@media (min-width: 1024px) {
	.site-footer__newsletter {
		grid-column: -2 / -1;
	}
}

.site-footer__heading {
	margin-block-end: var(--space-sm);
	font-size: var(--text-base);
	font-weight: var(--weight-bold);
}

.site-footer__list,
.site-footer__legal-list {
	display: grid;
	gap: var(--space-2xs);
}

.site-footer__list a,
.site-footer__legal-list a {
	color: var(--color-text-inverse-muted);
	font-size: var(--text-sm);
	text-decoration: none;
	transition: color var(--duration-fast) var(--ease-out);
}

.site-footer__list a:hover,
.site-footer__legal-list a:hover {
	color: var(--munchi-yellow);
}

.site-footer__newsletter-text {
	margin-block-end: var(--space-sm);
	color: var(--color-text-inverse-muted);
	font-size: var(--text-sm);
}

.site-footer__setup-note {
	padding: var(--space-sm);
	border: 1px dashed rgba(255, 255, 255, 0.3);
	border-radius: var(--radius-sm);
	color: var(--color-text-inverse-muted);
	font-size: var(--text-xs);
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
	align-items: center;
	justify-content: space-between;
	padding-block-start: var(--space-md);
	color: var(--color-text-inverse-muted);
	font-size: var(--text-xs);
}

.site-footer__legal-list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-md);
}

@media (max-width: 1023px) {
	.site-footer__grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.site-footer__brand,
	.site-footer__newsletter {
		grid-column: span 3;
	}
}

@media (max-width: 599px) {
	.site-footer__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.site-footer__brand,
	.site-footer__newsletter {
		grid-column: span 2;
	}
}

/* =========================================================
   Animations
   ========================================================= */

@keyframes munchi-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes munchi-slide-in {
	from { transform: translateX(100%); }
	to { transform: translateX(0); }
}

@keyframes munchi-pop-in {
	from {
		opacity: 0;
		transform: translateY(-0.75rem);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* =========================================================
   Carousel controls
   ========================================================= */

.carousel {
	position: relative;
}

/*
 * The arrows sit outside the rail's edges, vertically centred on it. The bar
 * that holds them lets clicks through to the cards underneath.
 */
.carousel-nav {
	position: absolute;
	top: 50%;
	right: calc(-1 * var(--space-xl));
	left: calc(-1 * var(--space-xl));
	display: flex;
	justify-content: space-between;
	transform: translateY(-50%);
	pointer-events: none;
}

.carousel-nav__button {
	pointer-events: auto;
}

/* Without room beside the container, the arrows overlap the rail's edges. */
@media (max-width: 1359px) {
	.carousel-nav {
		right: calc(-1 * var(--space-xs));
		left: calc(-1 * var(--space-xs));
	}
}

.carousel-nav__button {
	z-index: 2;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	background: var(--color-surface);
	border: 1px solid var(--color-border-strong);
	border-radius: var(--radius-pill);
	cursor: pointer;
	transition:
		background-color var(--duration-fast) var(--ease-out),
		opacity var(--duration-fast) var(--ease-out);
}

.carousel-nav__button:hover:not(:disabled) {
	background: var(--munchi-yellow);
	border-color: var(--munchi-yellow);
}

.carousel-nav__button:disabled {
	opacity: 0.35;
	cursor: default;
}

/* The rails scroll natively on touch, so the buttons are pointer-only. */
@media (hover: none) {
	.carousel-nav {
		display: none;
	}
}

/* =========================================================
   Comments
   ========================================================= */

.comments-area {
	margin-block-start: var(--space-2xl);
	padding-block-start: var(--space-xl);
	border-block-start: 1px solid var(--color-border);
}

.comments-area__title {
	margin-block-end: var(--space-lg);
	font-size: var(--text-xl);
}

.comment-list {
	display: grid;
	gap: var(--space-lg);
	margin-block-end: var(--space-xl);
	padding: 0;
	list-style: none;
}

.comment-list .children {
	display: grid;
	gap: var(--space-lg);
	margin-block-start: var(--space-lg);
	padding-inline-start: var(--space-lg);
	border-inline-start: 2px solid var(--color-border);
	list-style: none;
}

.comment-body {
	font-size: var(--text-base);
}

.comment-meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2xs);
	align-items: center;
	margin-block-end: var(--space-2xs);
}

.comment-author .avatar {
	border-radius: var(--radius-pill);
}

.comment-metadata {
	color: var(--color-text-muted);
	font-size: var(--text-sm);
}

.comment-respond {
	padding: var(--space-lg);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
}

.comment-reply-title {
	margin-block-end: var(--space-md);
	font-size: var(--text-lg);
}

.comment-form label {
	display: block;
	margin-block-end: var(--space-3xs);
	font-size: var(--text-sm);
	font-weight: var(--weight-semibold);
}

.comment-form p {
	margin-block-end: var(--space-sm);
}

/* =========================================================
   Contact page
   ========================================================= */

.contact-layout {
	display: grid;
	gap: var(--space-2xl);
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
	align-items: start;
	padding-block-end: var(--space-3xl);
}

.contact-details__intro {
	margin-block-end: var(--space-lg);
	color: var(--color-text-muted);
}

.contact-details__list {
	display: grid;
	gap: var(--space-lg);
	padding: 0;
	list-style: none;
}

.contact-details__item {
	display: flex;
	gap: var(--space-sm);
	align-items: flex-start;
}

.contact-details__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 2.5rem;
	height: 2.5rem;
	background: var(--munchi-yellow-soft);
	border-radius: var(--radius-pill);
	color: var(--munchi-yellow-dark);
}

.contact-details__label {
	margin-block-end: var(--space-3xs);
	font-size: var(--text-sm);
	font-weight: var(--weight-bold);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.contact-details__item a {
	font-weight: var(--weight-semibold);
	text-decoration-color: var(--munchi-yellow);
}

.contact-details__item address,
.contact-details__item p {
	color: var(--color-text-muted);
	font-style: normal;
	font-size: var(--text-base);
}

.social-links--contact {
	margin-block-start: var(--space-xl);
}

/* ---------- Form ---------- */

.contact-form-panel {
	padding: var(--space-xl);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
}

.contact-form-panel__title {
	margin-block-end: var(--space-lg);
	font-size: var(--text-2xl);
}

.contact-form__row {
	display: grid;
	gap: var(--space-sm);
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-form__field {
	margin-block-end: var(--space-sm);
}

.contact-form__field label {
	display: block;
	margin-block-end: var(--space-3xs);
	font-size: var(--text-sm);
	font-weight: var(--weight-semibold);
}

.contact-form__required {
	color: var(--color-error);
}

.contact-form textarea {
	min-height: 9rem;
	resize: vertical;
}

.contact-form__actions {
	margin-block: var(--space-md) var(--space-sm);
}

.contact-form__note {
	color: var(--color-text-muted);
	font-size: var(--text-sm);
}

/*
 * The honeypot must be unreachable by people — including by keyboard and by a
 * screen reader — while remaining a real, fillable field for a bot.
 */
.contact-form__honeypot {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- Notices ---------- */

.contact-notice {
	margin-block-end: var(--space-lg);
	padding: var(--space-sm) var(--space-md);
	border-inline-start: 4px solid;
	border-radius: var(--radius-sm);
	font-size: var(--text-base);
	font-weight: var(--weight-semibold);
}

.contact-notice--success {
	background: #e7f5ec;
	border-color: var(--color-success);
	color: #14532d;
}

.contact-notice--error {
	background: #fdeaea;
	border-color: var(--color-error);
	color: #7f1d1d;
}

@media (max-width: 899px) {
	.contact-layout {
		grid-template-columns: 1fr;
		gap: var(--space-xl);
	}

	.contact-form-panel {
		padding: var(--space-lg);
	}
}

@media (max-width: 599px) {
	.contact-form__row {
		grid-template-columns: 1fr;
		gap: 0;
	}
}

/* =========================================================
   Legal and policy pages
   ========================================================= */

.legal-page .entry-content {
	max-width: 44rem;
}

.legal-page .entry-content h2 {
	margin-block-start: var(--space-2xl);
	padding-block-start: var(--space-md);
	border-block-start: 1px solid var(--color-border);
	font-size: var(--text-xl);
}

.legal-page .entry-content h3 {
	margin-block-start: var(--space-lg);
	font-size: var(--text-lg);
}

.legal-page .entry-content ul,
.legal-page .entry-content ol {
	display: grid;
	gap: var(--space-2xs);
}

.legal-updated {
	margin-block-end: var(--space-xl);
	padding: var(--space-2xs) var(--space-sm);
	background: var(--color-surface-sunken);
	border-radius: var(--radius-pill);
	color: var(--color-text-muted);
	font-size: var(--text-sm);
	display: inline-block;
}

/* An admin-only warning on an unreviewed policy draft. */
.legal-draft-warning {
	margin-block-end: var(--space-xl);
	padding: var(--space-md) var(--space-lg);
	background: #fff8e1;
	border: 1px dashed var(--munchi-yellow-dark);
	border-radius: var(--radius-md);
	color: #6b4e00;
	font-size: var(--text-sm);
}

.legal-draft-warning strong {
	display: block;
	margin-block-end: var(--space-3xs);
}

/* =========================================================
   Newsletter signup
   ========================================================= */

.newsletter__form {
	display: grid;
	gap: var(--space-2xs);
}

.newsletter__row {
	display: grid;
	gap: var(--space-2xs);
}

.newsletter__input {
	width: 100%;
	min-height: 2.75rem;
	padding: var(--space-2xs) var(--space-sm);
	background: var(--color-surface);
	border: 1px solid transparent;
	border-radius: var(--radius-sm);
	color: var(--color-text);
	font-size: var(--text-sm);
}

.newsletter__input::placeholder {
	color: var(--color-text-muted);
}

.newsletter__input:focus {
	border-color: var(--munchi-yellow);
}

.newsletter__submit {
	min-height: 2.75rem;
	padding: var(--space-2xs) var(--space-md);
	background: var(--munchi-yellow);
	border: 0;
	border-radius: var(--radius-sm);
	color: var(--munchi-navy);
	font-size: var(--text-sm);
	font-weight: var(--weight-black);
	cursor: pointer;
	transition: background-color var(--duration-fast) var(--ease-out);
}

.newsletter__submit:hover {
	background: var(--munchi-yellow-dark);
}

.newsletter__note {
	color: var(--color-text-inverse-muted);
	font-size: var(--text-xs);
}

/*
 * Unreachable by people — including by keyboard and screen reader — while
 * staying a real, fillable field for a bot.
 */
.newsletter__honeypot {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.newsletter__notice {
	margin-block-end: var(--space-sm);
	padding: var(--space-2xs) var(--space-sm);
	border-inline-start: 3px solid;
	border-radius: var(--radius-sm);
	font-size: var(--text-sm);
	font-weight: var(--weight-semibold);
}

.newsletter__notice--success {
	background: rgba(21, 128, 61, 0.15);
	border-color: #4ade80;
	color: #bbf7d0;
}

.newsletter__notice--error {
	background: rgba(185, 28, 28, 0.15);
	border-color: #f87171;
	color: #fecaca;
}

/*
 * Outside the dark footer — on a page that shows a confirmation after
 * following an email link — the notice sits on a light background.
 */
.site-main .newsletter__notice--success {
	background: #e7f5ec;
	border-color: var(--color-success);
	color: #14532d;
}

.site-main .newsletter__notice--error {
	background: #fdeaea;
	border-color: var(--color-error);
	color: #7f1d1d;
}

/* Side by side once there is room for it. */
@media (min-width: 480px) and (max-width: 1023px) {
	.newsletter__row {
		grid-template-columns: 1fr auto;
	}
}

/* =========================================================
   Floating WhatsApp button
   ========================================================= */

.whatsapp-float {
	position: fixed;
	right: var(--space-md);
	bottom: var(--space-md);
	/* Above page content, below the header and the open menus and dialogs. */
	z-index: 90;
	display: inline-flex;
	gap: var(--space-2xs);
	align-items: center;
	min-height: 3.25rem;
	padding: var(--space-xs) var(--space-md) var(--space-xs) var(--space-sm);
	background: var(--color-whatsapp);
	border-radius: var(--radius-pill);
	box-shadow: 0 8px 24px rgba(17, 26, 36, 0.22);
	color: var(--munchi-white);
	font-size: var(--text-sm);
	font-weight: var(--weight-bold);
	text-decoration: none;
	transition:
		background-color var(--duration-fast) var(--ease-out),
		transform var(--duration-fast) var(--ease-out);
}

.whatsapp-float:hover {
	background: var(--color-whatsapp-dark);
	color: var(--munchi-white);
	transform: translateY(-2px);
}

.whatsapp-float:focus-visible {
	outline: 3px solid var(--color-focus);
	outline-offset: 3px;
}

.whatsapp-float__icon.munchi-icon {
	width: 1.75rem;
	height: 1.75rem;
	stroke-width: 1.6;
}

/* Phones: an icon-only circle, so it covers as little of the page as possible. */
@media (max-width: 599px) {
	.whatsapp-float {
		right: var(--space-sm);
		bottom: var(--space-sm);
		width: 3.5rem;
		height: 3.5rem;
		padding: 0;
		justify-content: center;
	}

	.whatsapp-float__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
	}
}

/* Product pages on phones pin Add to cart to the bottom: sit above that bar. */
@media (max-width: 767px) {
	.single-product .whatsapp-float {
		bottom: 5.5rem;
	}
}


/* Two cards to a row on phones: keep "Add to cart" on one line. */
@media (max-width: 479px) {
	.product-card__button,
	.woocommerce a.button.product-card__button {
		width: 100%;
		padding-inline: var(--space-2xs);
		font-size: var(--text-xs);
		white-space: nowrap;
	}

	.product-card__body {
		padding-inline: var(--space-xs);
	}
}

/*
 * Dropdowns drawn by the theme rather than the browser, so they are the same
 * 44px height everywhere. Safari ignores min-height on a native select.
 */
select {
	-webkit-appearance: none;
	appearance: none;
	min-height: 2.75rem;
	padding-inline-end: 2.5rem;
	background-color: var(--color-surface);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111a24' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-position: right 0.85rem center;
	background-repeat: no-repeat;
	background-size: 1rem;
	cursor: pointer;
}

select::-ms-expand {
	display: none;
}
