/* ==========================================================================
   1. Design tokens
   ========================================================================== */

:root {
	--color-text:        #1a1a1a;
	--color-muted:       #666;
	--color-muted-2:     #8a8a8a;
	--color-bg:          #fff;
	--color-surface:     #f6f1eb;
	--color-border:      #e5e0da;
	--color-accent:      #2d6a4f;
	--color-brand-blue:  #003da5;

	--font-base: "Manrope", sans-serif;

	--space-1: 0.25rem;
	--space-2: 0.5rem;
	--space-3: 1rem;
	--space-4: 1.5rem;
	--space-5: 2rem;
	--space-6: 3rem;
	--space-7: 5rem;

	/* Vertical rhythm between stacked page sections (margin-bottom). */
	--section-space: 2rem; /* 32px mobile */

	--container: 79.375rem; /* 1270px */
	--radius:    0.5rem;

	--header-height: 4rem;
}

@media (min-width: 768px) {
	:root {
		--section-space: 4rem; /* 64px desktop */
	}
}

/* ==========================================================================
   2. Reset
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	max-width: 100%;
	overflow-x: hidden;
	scroll-behavior: smooth;
}

body {
	max-width: 100%;
	overflow-x: hidden;
	margin: 0;
	color: var(--color-text);
	background: var(--color-bg);
	font-family: var(--font-base);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img,
picture,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

.alignleft {
	float: left;
	margin: 0 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0 0 1em 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.alignnone {
	margin: 0;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	line-height: 1.2;
}

p {
	margin: 0;
}

ul, ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-main ul:not([class]),
.site-main ol:not([class]) {
	margin-block: 0 1em;
	padding-left: 1.25rem;
}

.site-main ul:not([class]) {
	list-style: disc outside;
}

.site-main ol:not([class]) {
	list-style: decimal outside;
}

.site-main ul:not([class]) ul:not([class]) {
	list-style-type: circle;
	margin-block: 0.35em 0;
}

.site-main ol:not([class]) ol:not([class]) {
	list-style-type: lower-alpha;
	margin-block: 0.35em 0;
}

.site-main ul:not([class]) > li,
.site-main ol:not([class]) > li {
	display: list-item;
	margin-bottom: 0.35em;
}

ul.list-dash {
	margin-block: 0 1em;
	padding-left: 1.25rem;
}

ul.list-dash > li {
	position: relative;
	margin-bottom: 0.35em;
	padding-left: 0.25rem;
}

ul.list-dash > li::before {
	content: "\2013";
	position: absolute;
	left: -1rem;
}

hr {
	display: block;
	width: 100%;
	height: 0;
	margin: 1.5em 0;
	border: 0;
	border-top: 1px solid #4c4d4f;
}

a {
	color: inherit;
	text-decoration: none;
}

.category-intro__content a,
.text-and-image__body a,
.product-text-and-image__body a,
.product-boxes__body a,
.product-ingredients__narrative-body a,
.product-ingredients__title a,
.product-ingredients__description a,
.product-inci-modal__list a,
.banner-three-row__title a,
.banner-three-row__description a,
.showcase__description a,
.accordion__body a,
.product-hero-info__description a {
	color: var(--color-brand-blue, #003da5);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

@media (hover: hover) {
	.category-intro__content a:hover,
	.text-and-image__body a:hover,
	.product-text-and-image__body a:hover,
	.product-boxes__body a:hover,
	.product-ingredients__narrative-body a:hover,
	.product-ingredients__title a:hover,
	.product-ingredients__description a:hover,
	.product-inci-modal__list a:hover,
	.banner-three-row__title a:hover,
	.banner-three-row__description a:hover,
	.showcase__description a:hover,
	.accordion__body a:hover,
	.product-hero-info__description a:hover {
		opacity: 0.85;
	}
}

.category-intro__content a:focus-visible,
.text-and-image__body a:focus-visible,
.product-text-and-image__body a:focus-visible,
.product-boxes__body a:focus-visible,
.product-ingredients__narrative-body a:focus-visible,
.product-ingredients__title a:focus-visible,
.product-ingredients__description a:focus-visible,
.product-inci-modal__list a:focus-visible,
.banner-three-row__title a:focus-visible,
.banner-three-row__description a:focus-visible,
.showcase__description a:focus-visible,
.accordion__body a:focus-visible,
.product-hero-info__description a:focus-visible {
	outline: 2px solid var(--color-brand-blue, #003da5);
	outline-offset: 2px;
}

button {
	cursor: pointer;
	font: inherit;
}

/* ==========================================================================
   3. Layout
   ========================================================================== */

.container {
	width: min(100% - 2rem, var(--container));
	margin-inline: auto;
}

.site-main {}

/* ==========================================================================
   4. Site header — see assets/css/components/site-header.css
   ========================================================================== */

/* ==========================================================================
   5. Nav panels (featured / mega) — shared with header
   ========================================================================== */

.nav-panel__featured {
	display: flex;
	justify-content: center;
	align-items: stretch;
	gap: var(--space-5);
	margin: 0;
	padding: var(--space-4);
	list-style: none;
}

.nav-panel__featured-item {
	flex: 0 0 12rem;
	width: 12rem;
}

.nav-panel__featured-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-2);
	width: 100%;
	height: 100%;
	text-align: center;
	text-decoration: none;
	color: inherit;
}

.nav-panel__featured-media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 7.5rem;
}

.nav-panel__featured-image {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.nav-panel__featured-title {
	display: block;
	width: 100%;
	min-height: 2.75rem;
	font-size: 0.875rem;
	line-height: 1.4;
}

.nav-panel__featured-title p {
	margin: 0;
}

.nav-panel__featured-title strong {
	font-weight: 700;
}

/* Desktop featured panel — larger tiles */
@media (min-width: 64rem) {
	.nav-panel__featured {
		gap: 1.5rem;
		padding: var(--space-5);
	}

	.nav-panel__featured-item {
		flex: 0 0 20rem;
		width: 20rem;
	}

	.nav-panel__featured-media {
		height: 14rem;
	}

	.nav-panel__featured-title {
		font-size: 1rem;
	}
}

.nav-panel__mega {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	gap: clamp(2rem, 4vw, 3.5rem);
	padding: var(--space-5) var(--space-4);
	width: 100%;
}

.nav-panel__mega-column {
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	flex: 0 0 auto;
	min-width: 9rem;
	max-width: 14rem;
	text-align: center;
}

.nav-panel__mega-column-title {
	margin: 0;
	font-weight: 700;
	font-size: 0.875rem;
	text-align: center;
}

.nav-panel__mega-links {
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: center;
}

.nav-panel .nav-panel__mega-links a {
	display: block;
	padding-block: 0;
	font-size: 0.875rem;
	line-height: 1.35;
	text-decoration: none;
	color: #4c4d4f;
}

@media (hover: hover) {
	.nav-panel .nav-panel__mega-links a:hover {
		text-decoration: underline;
	}
}

/* ==========================================================================
   6. Utilities
   ========================================================================== */

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	position: static;
	width: auto;
	height: auto;
	overflow: visible;
	clip: auto;
	white-space: normal;
	padding: var(--space-2) var(--space-3);
	background: var(--color-accent);
	color: #fff;
}

a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 3px;
	border-radius: 2px;
}

/* Component styles live in assets/css/components/ and are loaded
   per-component via wp_print_styles() inside each template part. */

/* =========================================================
   Product Archive Grid
   ========================================================= */

.product-archive {
	padding-bottom: 1.5rem;
}

@media (min-width: 768px) {
	.product-archive {
		padding-bottom: 4rem;
	}
}

.product-archive__header {
	padding-block: 2rem 1.5rem;
}

.product-archive__title {
	margin: 0;
	font-size: clamp(1.5rem, 4vw, 2.5rem);
	color: var(--color-text);
}

.product-archive__description {
	margin-block: var(--space-4) var(--space-3);
	max-width: 42rem;
	color: var(--color-muted);
	font-size: 0.9375rem;
	line-height: 1.6;
}

.product-archive__empty {
	padding-block: 3rem;
	color: var(--color-muted);
}

.product-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

.product-grid__item {
	display: flex;
}

.product-grid__item .product-card {
	width: 100%;
}

@media (min-width: 480px) {
	.product-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

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

@media (min-width: 1024px) {
	.product-grid {
		grid-template-columns: repeat(4, 1fr);
		gap: 1.625rem;
	}
}

.product-archive__after {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	margin-top: 2.5rem;
}

/* =========================================================
   Archive pagination
   ========================================================= */

.navigation.pagination {
	display: flex;
	justify-content: center;
	width: 100%;
	margin: 0;
}

.navigation.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.navigation.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.75rem;
	border: 1px solid #d4d9db;
	border-radius: 0.5rem;
	background: #fff;
	color: #4c4d4f;
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
}

.navigation.pagination .page-numbers.current {
	border-color: #1a2340;
	background: #1a2340;
	color: #fff;
}

.navigation.pagination .page-numbers.dots {
	min-width: 1.5rem;
	height: auto;
	padding: 0;
	border: 0;
	background: transparent;
	color: #4c4d4f;
}

.navigation.pagination .page-numbers.prev,
.navigation.pagination .page-numbers.next {
	min-width: auto;
	padding-inline: 1rem;
}

@media (hover: hover) {
	.navigation.pagination a.page-numbers:hover {
		border-color: #1a2340;
		color: #1a2340;
	}

	.navigation.pagination a.page-numbers.current:hover {
		color: #fff;
	}
}

.navigation.pagination a.page-numbers:focus-visible {
	outline: 2px solid #1a2340;
	outline-offset: 2px;
}
