/* ===== Linai New Theme - Main Stylesheet ===== */

/* CSS Variables */
:root {
	--primary-color: #c9a76a;
	--secondary-color: #a68d54;
	--accent-color: #c9a76a;
	--dark-color: #5a5349;
	--light-bg: #fffaf4;
	--header-bg: #fbf7f0;
	--footer-bg: #f7f2ea;
	--border-color: #e9dcc8;
	--text-dark: #3d3a36;
	--text-gray: #5a5349;
	--text-light: #7a7268;
	--error-color: #d32f2f;
	--success-color: #388e3c;
	--warning-color: #f57c00;
	--white: #ffffff;
	--border-light: #e6e0d8;
	--text-muted: #8a8177;
	--text-charcoal: #333333;
	--border-neutral: #e9ecef;
	--bg-neutral-light: #f8f9fa;
	--bg-cream-hover: #f0ece3;
	--border-tan: #d9cbb6;
	--primary-hover: #b8956f;
	--error-terracotta: #b3453a;
	--text-medium: #666666;
	--error-bg-light: #fdf1f0;
	--error-bg-soft: #f7e6e4;
	--bg-gray-light: #f5f5f5;
	--success-bg-light: #e4f2e9;
	--border-gray: #dddddd;
	--border-gray-light: #cccccc;
	--primary-muted: #bfa16a;
	--placeholder-color: #b3aa9c;
	--secondary-hover: #a88d5c;
	--text-faded: #a39c8f;
	--link-blue: #667eea;
	--text-dim: #555555;
	--success-dark: #2f7a4f;
	--heading-dark: #2c3e50;
	--heading-darker: #1a252f;
	--primary-color-rgb: 201, 167, 106;
	--shadow-rgb: 0, 0, 0;
	--overlay-rgb: 20, 18, 15;
	--white-rgb: 255, 255, 255;
	--spacing-xs: 0.5rem;
	--spacing-sm: 1rem;
	--spacing-md: 1.5rem;
	--spacing-lg: 2rem;
	--spacing-xl: 3rem;
	--border-radius: 5px;
	--transition: all 0.2s ease;
}

/* Reset & Base */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	line-height: 1.6;
	color: var(--text-dark);
	background-color: var(--white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Locks background scrolling while the full-screen mobile menu overlay
   (assets/js/main.js initMobileMenu) is open. */
body.menu-open {
	overflow: hidden;
}

/* Category tile placeholder (homepage category showcase, category
   subcategory tiles) - shown via linai_new_category_tile_image_html()
   (functions.php) whenever a category has no thumbnail set yet, instead
   of silently rendering nothing. Sized by the img-sibling rules in
   homepage.css / woocommerce-category.css. */
.category-tile-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	background: var(--light-bg);
	border: 1px dashed var(--border-light);
	color: var(--primary-color);
	opacity: 0.6;
}

.category-tile-placeholder svg {
	width: 28px;
	height: 28px;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
	line-height: 1.2;
	margin-bottom: var(--spacing-md);
	font-weight: 600;
	color: var(--text-dark);
}

h1 {
	font-size: 2.5rem;
}

h2 {
	font-size: 2rem;
}

h3 {
	font-size: 1.5rem;
}

h4 {
	font-size: 1.25rem;
}

h5 {
	font-size: 1.1rem;
}

h6 {
	font-size: 1rem;
}

p {
	margin-bottom: 1rem;
	color: var(--text-gray);
	line-height: 1.8;
}

p:last-child {
	margin-bottom: 0;
}

a {
	color: var(--primary-color);
	text-decoration: none;
	transition: var(--transition);
	cursor: pointer;
}

a:hover {
	color: var(--secondary-color);
	text-decoration: underline;
}

a:active {
	color: var(--dark-color);
}

strong, b {
	font-weight: 600;
	color: var(--text-dark);
}

em, i {
	font-style: italic;
	color: var(--text-gray);
}

small {
	font-size: 0.875rem;
	color: var(--text-light);
}

code, pre {
	background: var(--light-bg);
	padding: var(--spacing-xs);
	border-radius: var(--border-radius);
	font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
	font-size: 0.875rem;
}

pre {
	padding: var(--spacing-sm);
	overflow-x: auto;
}

/* ===== Site Header ===== */
.site-header {
	background-color: var(--header-bg);
	border-bottom: 1px solid var(--border-color);
	padding: var(--spacing-lg) 0;
	margin-bottom: var(--spacing-lg);
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 2px 4px rgba(var(--shadow-rgb), 0.05);
	transition: padding 0.25s ease;
}

/* Shrinks once scrolled (see assets/js/main.js initStickyHeaderShrink) -
   ~10px less top and bottom padding, animated via the transition above. */
.site-header.is-scrolled {
	padding-top: calc(var(--spacing-lg) - 25px);
	padding-bottom: calc(var(--spacing-lg) - 25px);
}

.site-header-inner {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 1rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 2rem;
}

/* Groups logo + divider + menu together on the left, hugging each other,
   so the menu sits right after the divider instead of being pushed all
   the way to the far right - the cart/actions stay pinned right via the
   space-between on .site-header-inner above. */
.site-header-left {
	display: flex;
	align-items: center;
	gap: 2rem;
	min-width: 0;
}

.site-header-divider {
	width: 1px;
	height: 32px;
	background-color: var(--border-color);
	flex-shrink: 0;
}

.site-branding {
	flex: 0 1 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
}

.site-branding img {
	max-height: 48px;
	width: auto;
}

.site-branding .custom-logo-link {
	line-height: 0;
}

.site-title {
	font-size: 1.8rem;
	margin: 0;
	font-weight: 700;
	letter-spacing: -0.5px;
}

.site-title a {
	color: var(--text-dark);
	text-decoration: none;
}

.site-title a:hover {
	color: var(--primary-color);
	text-decoration: none;
}

.site-description {
	margin: 0.25rem 0 0 0;
	color: var(--text-light);
	font-size: 0.85rem;
	font-weight: 400;
	text-align: center;
}

.primary-navigation ul {
	list-style: none;
	display: flex;
	gap: 2.5rem;
	justify-content: flex-start;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}

.primary-navigation li {
	list-style: none;
	position: relative;
}

.primary-navigation a {
	display: block;
	color: var(--text-gray);
	font-weight: 500;
	padding: 0.5rem 1rem;
	border-radius: var(--border-radius);
	transition: var(--transition);
	text-decoration: none;
}

.primary-navigation a:hover {
	background-color: var(--border-color);
	color: var(--primary-color);
	text-decoration: none;
}

.primary-navigation .current-menu-item > a {
	color: var(--primary-color);
	font-weight: 600;
}

.site-header-actions {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.language-switcher {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

/* Hidden by default everywhere - only meant to appear inside the
   full-screen mobile menu overlay, which un-hides it explicitly under
   "@media (max-width: 1000px) .primary-navigation.is-open" below. */
.mobile-nav-language-switcher {
	display: none;
}

.language-switcher-link {
	color: var(--text-gray);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-decoration: none;
}

.language-switcher-link:hover {
	color: var(--primary-color);
	text-decoration: none;
}

.language-switcher-link + .language-switcher-link {
	border-left: 1px solid var(--border-color);
	padding-left: 0.5rem;
}

.cart-icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	color: var(--text-dark);
}

.cart-icon:hover {
	color: var(--primary-color);
}

.cart-count {
	position: absolute;
	top: -8px;
	right: -8px;
	background: var(--error-color);
	color: var(--white);
	width: 20px;
	height: 20px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
	font-weight: 600;
}

/* Hamburger menu toggle - hidden on desktop, shown only under the
   mobile breakpoint where the nav collapses (see media query below). */
.menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 32px;
	height: 32px;
	padding: 0;
	background: transparent;
	border: none;
	cursor: pointer;
}

.menu-toggle-bar {
	display: block;
	width: 100%;
	height: 2px;
	background: var(--text-dark);
	border-radius: 5px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-active .menu-toggle-bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active .menu-toggle-bar:nth-child(2) {
	opacity: 0;
}

.menu-toggle.is-active .menu-toggle-bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ===== Main Content ===== */
.site-main {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 1rem 2rem;
	min-height: calc(100vh - 200px);
}

.content-area {
	width: 100%;
}

.site-content {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: var(--spacing-lg);
}

/* ===== Homepage Hero ===== */
.homepage-hero {
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
	color: var(--white);
	padding: 4rem 2rem;
	border-radius: 5px;
	margin-bottom: var(--spacing-xl);
	text-align: center;
}

.hero-content h1 {
	color: var(--white);
	margin-bottom: 1rem;
	font-size: 2.5rem;
}

.hero-content .tagline {
	font-size: 1.25rem;
	color: rgba(var(--white-rgb), 0.95);
	margin: 0;
}

/* ===== Featured Products ===== */
.featured-products {
	margin-bottom: var(--spacing-xl);
}

.featured-products h2 {
	margin-bottom: var(--spacing-lg);
	text-align: center;
	font-size: 2rem;
}

.products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: var(--spacing-lg);
	margin-bottom: var(--spacing-lg);
}

.product-item {
	text-align: center;
	padding: var(--spacing-sm);
	border: 1px solid var(--border-color);
	border-radius: 5px;
	transition: var(--transition);
	display: flex;
	flex-direction: column;
	gap: var(--spacing-sm);
	background: var(--white);
}

.product-item:hover {
	box-shadow: 0 4px 12px rgba(var(--shadow-rgb), 0.1);
	border-color: var(--primary-color);
	transform: translateY(-4px);
}

.product-item a {
	display: block;
	color: inherit;
	text-decoration: none;
	flex-grow: 1;
}

.product-item img {
	max-width: 100%;
	height: 200px;
	object-fit: cover;
	margin-bottom: var(--spacing-xs);
	display: block;
	border-radius: var(--border-radius);
}

.product-item h3 {
	font-size: 1.1rem;
	margin: 0;
	color: var(--text-dark);
}

.product-item .price {
	color: var(--primary-color);
	font-weight: 600;
	font-size: 1.2rem;
	margin: 0;
}

/* ===== Page Content ===== */
.page-content {
	margin-bottom: var(--spacing-lg);
	background: var(--light-bg);
	padding: var(--spacing-lg);
	border-radius: 5px;
	border: 1px solid var(--border-color);
}

.page-content img {
	max-width: 100%;
	height: auto;
	margin: var(--spacing-lg) 0;
	border-radius: 5px;
}

/* ===== Articles/Posts ===== */
.entry-thumbnail {
	margin-bottom: var(--spacing-lg);
}

.entry-thumbnail img {
	width: 100%;
	max-height: 480px;
	object-fit: cover;
	border-radius: 5px;
	display: block;
}

.entry-header {
	margin-bottom: var(--spacing-md);
	border-bottom: 1px solid var(--border-color);
	padding-bottom: var(--spacing-md);
}

.entry-title {
	margin: 0 0 0.5rem 0;
	color: var(--text-dark);
}

.entry-date {
	margin-bottom: var(--spacing-xl);
	font-size: 0.85rem;
	color: var(--text-light);
}

.entry-meta {
	font-size: 0.85rem;
	color: var(--text-light);
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.entry-content {
	line-height: 1.8;
	color: var(--text-gray);
}

.entry-content p {
	margin-bottom: 1rem;
}

.entry-content h2,
.entry-content h3 {
	margin-top: 1.5rem;
	margin-bottom: 1rem;
}

/* The global "* { margin: 0; padding: 0; }" reset above also strips list
   indentation/spacing from editorial WYSIWYG content (post/page content,
   the product description tab) - restore normal browser-default list
   rendering there specifically, rather than everywhere. */
.entry-content ul,
.entry-content ol,
.product-description-tab ul,
.product-description-tab ol,
.homepage-page-content ul,
.homepage-page-content ol {
	margin: 0 0 1rem;
	padding-left: 1.5rem;
}

.entry-content ul li,
.entry-content ol li,
.product-description-tab ul li,
.product-description-tab ol li,
.homepage-page-content ul li,
.homepage-page-content ol li {
	margin-bottom: 0;
}

article {
	padding: var(--spacing-lg);
	border-radius: 5px;
	border: 1px solid var(--border-color);
	margin-bottom: var(--spacing-lg);
}

/* ===== Site Footer ===== */
.site-footer {
	background-color: var(--footer-bg);
	color: var(--text-dark);
	margin-top: var(--spacing-xl);
	padding: var(--spacing-xl) 0 var(--spacing-sm);
	border-top: 1px solid var(--border-color);
}

.footer-content {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 1rem;
}

.footer-columns {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
	gap: var(--spacing-lg);
	margin-bottom: var(--spacing-lg);
	padding-bottom: var(--spacing-lg);
	border-bottom: 1px solid var(--border-color);
}

.footer-column {
	color: var(--text-gray);
}

.footer-brand .custom-logo-link {
	display: inline-block;
	line-height: 0;
}

.footer-brand img {
	max-height: 44px;
	width: auto;
}

.footer-logo-text {
	margin: 0 0 0.5rem 0;
	font-size: 1.5rem;
	font-weight: 700;
}

.footer-logo-text a {
	color: var(--text-dark);
	text-decoration: none;
}

.footer-tagline {
	margin: 0.75rem 0 0;
	color: var(--text-light);
	font-size: 0.9rem;
	line-height: 1.5;
	max-width: 32ch;
}

.footer-column .widget {
	margin-bottom: var(--spacing-md);
}

.footer-column .widget-title {
	color: var(--text-dark);
	font-size: 0.95rem;
	margin-bottom: var(--spacing-sm);
	font-weight: 600;
}

.footer-column ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-column li {
	margin-bottom: 0.6rem;
	list-style: none;
}

.footer-column a {
	color: var(--text-gray);
	transition: var(--transition);
	text-decoration: none;
	font-size: 0.9rem;
}

.footer-column a:hover {
	color: var(--primary-color);
	text-decoration: underline;
}

/* Newsletter column - styles both the official "Mailchimp" plugin's own
   signup form (mailchimp_sf_signup_form(): .mc_container, .mc_merge_var,
   .mc_signup_submit_button, etc. - see functions.php/footer.php) and,
   generically, any other form dropped into the "Footer Column 4 -
   Newsletter" widget area. */
.footer-newsletter .widget-title {
	color: var(--text-dark);
}

.footer-newsletter-notice {
	color: var(--text-light);
	font-size: 0.8rem;
	line-height: 1.5;
	margin-top: 0.5rem;
}

.footer-newsletter .mc_container {
	margin: 0;
}

.footer-newsletter .mc_custom_border_hdr {
	display: none;
}

.footer-newsletter .mc_form_inside,
.footer-newsletter form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.footer-newsletter .mc_merge_var {
	flex: 1;
	min-width: 140px;
	margin: 0 !important;
}

.footer-newsletter .mc_merge_var label {
	display: none;
}

.footer-newsletter input[type="email"],
.footer-newsletter input[type="text"] {
	width: 100%;
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--border-color);
	border-radius: var(--border-radius);
	background: var(--white);
	color: var(--text-dark);
	font-size: 0.9rem;
}

.footer-newsletter .mc_signup_submit,
.footer-newsletter .mc-indicates-required,
.footer-newsletter .mc_message_wrapper:empty {
	margin: 0;
}

.footer-newsletter input[type="submit"],
.footer-newsletter button[type="submit"] {
	padding: 0.65rem 1.25rem;
	background: var(--primary-color);
	color: var(--white);
	border: none;
	border-radius: var(--border-radius);
	font-weight: 600;
	cursor: pointer;
	transition: var(--transition);
	white-space: nowrap;
}

.footer-newsletter input[type="submit"]:hover,
.footer-newsletter button[type="submit"]:hover {
	background: var(--secondary-color);
}

.footer-social {
	display: flex;
	gap: 0.75rem;
	margin-top: 1.25rem;
}

.footer-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--white);
	border: 1px solid var(--border-color);
	color: var(--text-dark);
	transition: var(--transition);
}

.footer-social-link:hover {
	color: var(--white);
	background: var(--primary-color);
	border-color: var(--primary-color);
	text-decoration: none;
}

.footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--spacing-lg);
	flex-wrap: wrap;
	padding-top: var(--spacing-sm);
}

.footer-navigation {
	flex: 1;
	min-width: 200px;
}

.footer-navigation ul {
	list-style: none;
	display: flex;
	gap: 1.5rem;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
}

.footer-navigation li {
	list-style: none;
}

.footer-navigation a {
	color: var(--text-gray);
	transition: var(--transition);
	text-decoration: none;
	font-size: 0.9rem;
}

.footer-navigation a:hover {
	color: var(--primary-color);
	text-decoration: underline;
}

.site-copyright {
	color: var(--text-light);
	font-size: 0.85rem;
	margin: 0;
	text-align: right;
}

.footer-socials {
	display: flex;
	gap: 1rem;
	align-items: center;
}

.footer-socials a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: rgba(var(--primary-color-rgb), 0.15);
	color: var(--primary-color);
	border-radius: 50%;
	transition: var(--transition);
	text-decoration: none;
}

.footer-socials a:hover {
	background: var(--primary-color);
	color: var(--white);
}

/* ===== Utility Classes ===== */
.container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 1rem;
}

.wrapper {
	max-width: 1400px;
	margin: 0 auto;
}

.text-center {
	text-align: center;
}

.text-left {
	text-align: left;
}

.text-right {
	text-align: right;
}

.hidden {
	display: none !important;
}

.visible {
	display: block !important;
}

/* These used to come from WordPress's block-library CSS, which is no longer
   loaded on pages without block content (see linai_new_dequeue_block_styles).
   WooCommerce relies on .screen-reader-text to hide accessibility labels. */
.screen-reader-text {
	word-wrap: normal !important;
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-break: normal !important;
}

.screen-reader-text:focus {
	background-color: #ddd;
	clip-path: none;
	color: #444;
	display: block;
	font-size: 1em;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

.aligncenter {
	clear: both;
}

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

/* ===== WooCommerce Notices (success/info/error messages - cart, checkout,
   my account, stock notices, etc.) - restyled from WooCommerce's own
   plain grey/blue default box to match the site's palette and rounded
   card look. Site-wide, not page-specific. ===== */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 1.5rem;
	margin: 0 0 1.5rem;
	background-color: var(--light-bg);
	border: 1px solid var(--border-light);
	border-top: 3px solid var(--primary-color);
	border-radius: var(--border-radius);
	color: var(--text-dark);
	list-style: none outside;
	width: auto;
	word-wrap: break-word;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
	position: static;
	flex-shrink: 0;
	color: var(--primary-color);
}

.woocommerce-message {
	border-top-color: var(--success-dark);
	background-color: var(--success-bg-light);
}

.woocommerce-message::before {
	color: var(--success-dark);
}

.woocommerce-error {
	border-top-color: var(--error-terracotta);
	background-color: var(--error-bg-light);
}

.woocommerce-error::before {
	color: var(--error-terracotta);
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
	float: none;
	margin-left: auto;
}

.woocommerce-message li,
.woocommerce-info li,
.woocommerce-error li {
	list-style: none outside !important;
	padding-left: 0 !important;
	margin-left: 0 !important;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
	.primary-navigation ul {
		gap: 1.5rem;
	}

	.products-grid {
		grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	}

	.footer-columns {
		grid-template-columns: 1fr 1fr;
	}
}

/* Hamburger/mobile-menu breakpoint - deliberately separate from (and wider
   than) the general @media (max-width: 768px) block below, since the menu
   should already collapse to the burger by 1000px, ahead of the rest of
   the mobile-typography/spacing adjustments. */
@media (max-width: 1000px) {
	/* Mobile top bar: [hamburger] centered-[logo] [cart], nothing else.
	   .site-header-left/.site-header-actions exist for the desktop layout
	   (logo+divider+menu grouped left, language switcher+cart+burger
	   grouped right) - "display: contents" unwraps them here so their
	   children become direct grid items of .site-header-inner instead,
	   which can then be freely reordered/placed into the 3 columns below
	   regardless of which wrapper they originally lived in. */
	.site-header-inner {
		display: grid;
		grid-template-columns: auto 1fr auto;
		align-items: center;
		gap: var(--spacing-sm);
	}

	.site-header-left,
	.site-header-actions {
		display: contents;
	}

	.site-header-divider,
	.site-description,
	.site-header-actions > .language-switcher {
		display: none;
	}

	.site-branding {
		order: 2;
		align-items: center;
	}

	.menu-toggle {
		order: 1;
		display: flex;
	}

	.cart-icon {
		order: 3;
	}

	/* Full-screen overlay - always rendered (never display:none, which
	   can't be transitioned) but pushed fully above the viewport via
	   transform and made non-interactive/invisible-in-effect via
	   pointer-events, so JS (assets/js/main.js) toggling .is-open just
	   slides it down into place; removing the class reverses the same
	   transition, sliding it back up. z-index is lower than .site-header's
	   (100 - see above) and .menu-toggle gets its own, higher one below,
	   so the header bar - specifically the hamburger button, which flips
	   into an X via .menu-toggle.is-active further down (the bars rotate/
	   fade into a cross) - stays visible and clickable on top of the
	   overlay, at the same spot it was before opening. */
	.primary-navigation {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		position: fixed;
		inset: 0;
		width: 100vw;
		height: 100vh;
		background-color: var(--header-bg);
		z-index: 90;
		overflow-y: auto;
		padding: 2rem 1.5rem;
		transform: translateY(-100%);
		transition: transform 0.4s ease;
		pointer-events: none;
	}

	.primary-navigation.is-open {
		transform: translateY(0);
		pointer-events: auto;
	}

	.menu-toggle {
		position: relative;
		z-index: 110;
	}

	.cart-icon svg {
		width: 28px;
		height: 28px;
	}

	.cart-count {
		width: 22px;
		height: 22px;
		font-size: 0.8rem;
	}

	.primary-navigation ul {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: var(--spacing-lg);
		justify-content: center;
		width: 100%;
	}

	.primary-navigation a {
		font-size: 1.15rem;
	}

	.primary-navigation.is-open .mobile-nav-language-switcher {
		display: block;
		margin-top: var(--spacing-lg);
	}

	.mobile-nav-language-switcher .language-switcher {
		justify-content: center;
		font-size: 1rem;
	}
}

@media (max-width: 768px) {
	:root {
		--spacing-sm: 0.75rem;
		--spacing-md: 1.25rem;
		--spacing-lg: 1.5rem;
	}

	html {
		font-size: 15px;
	}

	.site-header {
		padding: var(--spacing-md) 0;
		margin-bottom: var(--spacing-md);
	}

	.site-main {
		padding: 0 1rem 1.5rem;
	}

	article {
		padding: calc( var( --spacing-lg ) / 2 );
	}

	h1 {
		font-size: 2rem;
	}

	h2 {
		font-size: 1.5rem;
	}

	h3 {
		font-size: 1.25rem;
	}

	.homepage-hero {
		padding: 2.5rem 1.5rem;
	}

	.hero-content h1 {
		font-size: 2rem;
	}

	.products-grid {
		grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
		gap: var(--spacing-md);
	}

	.footer-bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--spacing-md);
	}

	.footer-navigation ul {
		gap: 1rem;
	}

	.site-copyright {
		text-align: left;
		width: 100%;
	}
}

@media (max-width: 480px) {
	html {
		font-size: 14px;
	}

	body {
		line-height: 1.5;
	}

	.site-header {
		padding: 0.75rem 0;
		margin-bottom: 0.75rem;
	}

	.site-header-inner {
		padding: 0.75rem 1rem;
	}

	.site-title {
		font-size: 1.5rem;
	}

	.site-main {
		padding: 0 0.75rem 1rem;
	}

	h1 {
		font-size: 1.5rem;
		margin-bottom: 0.75rem;
	}

	h2 {
		font-size: 1.25rem;
		margin-bottom: 0.75rem;
	}

	h3 {
		font-size: 1.1rem;
		margin-bottom: 0.5rem;
	}

	p {
		margin-bottom: 0.75rem;
		font-size: 0.95rem;
	}

	.homepage-hero {
		padding: 2rem 1rem;
		margin-bottom: 1.5rem;
	}

	.hero-content h1 {
		font-size: 1.5rem;
		margin-bottom: 0.75rem;
	}

	.hero-content .tagline {
		font-size: 1rem;
	}

	.products-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.75rem;
	}

	.product-item {
		padding: 0.75rem;
	}

	.product-item img {
		height: 120px;
	}

	.product-item h3 {
		font-size: 0.9rem;
	}

	.page-content {
		padding: var(--spacing-sm);
		margin-bottom: var(--spacing-sm);
	}

	.footer-columns {
		grid-template-columns: 1fr;
		gap: var(--spacing-md);
		margin-bottom: var(--spacing-md);
		padding-bottom: var(--spacing-md);
	}

	.footer-navigation ul {
		flex-direction: column;
		gap: 0.5rem;
	}
}
