/* ==========================================================================
   Driftwood — Design System
   Earthy, minimal, direct-to-consumer aesthetic.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
	/* Palette */
	--color-cream:       #FAF8F5;
	--color-sand:        #EDE8E1;
	--color-pebble:      #D5CEC5;
	--color-stone:       #9E9189;
	--color-bark:        #5C4E44;
	--color-charcoal:    #2C2520;
	--color-forest:      #3D5E3A;
	--color-forest-dark: #2E4A2C;
	--color-clay:        #C4714A;
	--color-clay-dark:   #A85C38;
	--color-white:       #FFFFFF;
	--color-error:       #C0392B;

	/* Typography */
	--font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
	--fw-light:  300;
	--fw-reg:    400;
	--fw-med:    500;
	--fw-semi:   600;
	--fw-bold:   700;

	/* Sizes */
	--text-xs:   0.75rem;
	--text-sm:   0.875rem;
	--text-base: 1rem;
	--text-lg:   1.125rem;
	--text-xl:   1.25rem;
	--text-2xl:  1.5rem;
	--text-3xl:  1.875rem;
	--text-4xl:  2.25rem;
	--text-5xl:  3rem;
	--text-6xl:  3.75rem;

	/* Spacing */
	--sp-1:  0.25rem;
	--sp-2:  0.5rem;
	--sp-3:  0.75rem;
	--sp-4:  1rem;
	--sp-5:  1.25rem;
	--sp-6:  1.5rem;
	--sp-8:  2rem;
	--sp-10: 2.5rem;
	--sp-12: 3rem;
	--sp-16: 4rem;
	--sp-20: 5rem;
	--sp-24: 6rem;

	/* Layout */
	--container:    1280px;
	--container-sm: 860px;
	--gutter:       2rem;
	--radius-sm:    6px;
	--radius:       12px;
	--radius-lg:    20px;
	--radius-pill:  999px;

	/* Transitions */
	--ease:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
	--dur-fast: 160ms;
	--dur:      280ms;
	--dur-slow: 420ms;

	/* Shadows */
	--shadow-xs: 0 1px 3px rgba(44, 37, 32, .06);
	--shadow-sm: 0 2px 8px rgba(44, 37, 32, .08);
	--shadow:    0 4px 20px rgba(44, 37, 32, .10);
	--shadow-lg: 0 8px 40px rgba(44, 37, 32, .14);

	/* Header height */
	--header-h: 72px;
}

/* --------------------------------------------------------------------------
   2. BASE RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	font-family: var(--font-sans);
	font-size: var(--text-base);
	font-weight: var(--fw-reg);
	color: var(--color-charcoal);
	background-color: var(--color-cream);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

a {
	color: inherit;
	text-decoration: none;
	transition: color var(--dur-fast) var(--ease);
}

a:hover { color: var(--color-forest); }

ul, ol { list-style: none; }

button, input, select, textarea {
	font-family: inherit;
	font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-sans);
	font-weight: var(--fw-semi);
	line-height: 1.2;
	color: var(--color-charcoal);
}

/* --------------------------------------------------------------------------
   3. UTILITY CLASSES
   -------------------------------------------------------------------------- */
.container {
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.container--sm {
	max-width: var(--container-sm);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.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;
}

.text-center  { text-align: center; }
.text-forest  { color: var(--color-forest); }
.text-stone   { color: var(--color-stone); }
.text-sm      { font-size: var(--text-sm); }
.fw-med       { font-weight: var(--fw-med); }
.fw-semi      { font-weight: var(--fw-semi); }

.section-label {
	display: inline-block;
	font-size: var(--text-xs);
	font-weight: var(--fw-semi);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--color-stone);
	margin-bottom: var(--sp-3);
}

.section-title {
	font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
	font-weight: var(--fw-bold);
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.section-intro {
	font-size: var(--text-lg);
	color: var(--color-bark);
	max-width: 560px;
	line-height: 1.7;
}

/* --------------------------------------------------------------------------
   4. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--sp-2);
	padding: 0.8125rem 1.875rem;
	font-family: var(--font-sans);
	font-size: var(--text-sm);
	font-weight: var(--fw-semi);
	letter-spacing: 0.02em;
	line-height: 1;
	border-radius: var(--radius-pill);
	border: 2px solid transparent;
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
	transition: background var(--dur) var(--ease),
	            color var(--dur) var(--ease),
	            border-color var(--dur) var(--ease),
	            transform var(--dur-fast) var(--ease),
	            box-shadow var(--dur) var(--ease);
}

.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Primary — forest fill */
.btn-primary {
	background: var(--color-charcoal);
	color: var(--color-cream);
	border-color: var(--color-charcoal);
}
.btn-primary:hover {
	background: var(--color-bark);
	border-color: var(--color-bark);
	color: var(--color-cream);
	box-shadow: var(--shadow);
}

/* Forest fill */
.btn-forest {
	background: var(--color-forest);
	color: var(--color-white);
	border-color: var(--color-forest);
}
.btn-forest:hover {
	background: var(--color-forest-dark);
	border-color: var(--color-forest-dark);
	color: var(--color-white);
	box-shadow: var(--shadow);
}

/* Outline on dark backgrounds */
.btn-outline-light {
	background: transparent;
	color: var(--color-cream);
	border-color: rgba(250, 248, 245, 0.6);
}
.btn-outline-light:hover {
	background: var(--color-cream);
	color: var(--color-charcoal);
	border-color: var(--color-cream);
}

/* Outline on light backgrounds */
.btn-outline-dark {
	background: transparent;
	color: var(--color-charcoal);
	border-color: var(--color-charcoal);
}
.btn-outline-dark:hover {
	background: var(--color-charcoal);
	color: var(--color-cream);
}

.btn-sm {
	padding: 0.5625rem 1.25rem;
	font-size: var(--text-xs);
}

.btn-lg {
	padding: 1rem 2.25rem;
	font-size: var(--text-base);
}

/* --------------------------------------------------------------------------
   5. SITE HEADER / NAV
   -------------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 200;
	background: var(--color-cream);
	border-bottom: 1px solid transparent;
	transition: border-color var(--dur) var(--ease),
	            box-shadow var(--dur) var(--ease),
	            background var(--dur) var(--ease);
}

.site-header.scrolled {
	border-bottom-color: var(--color-pebble);
	box-shadow: var(--shadow-sm);
	background: rgba(250, 248, 245, 0.96);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.header-inner {
	display: flex;
	align-items: center;
	height: var(--header-h);
	gap: var(--sp-6);
}

/* Logo */
.header-logo {
	flex: 0 0 auto;
}

.header-logo a,
.header-logo .custom-logo-link {
	display: flex;
	align-items: center;
}

.header-logo img.custom-logo {
	height: 36px;
	width: auto;
}

.site-name {
	font-size: var(--text-xl);
	font-weight: var(--fw-bold);
	letter-spacing: -0.03em;
	color: var(--color-charcoal);
	text-decoration: none;
}
.site-name:hover { color: var(--color-forest); }

/* Centre nav */
.header-nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.nav-menu {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
}

.nav-menu li a {
	display: block;
	padding: var(--sp-2) var(--sp-4);
	font-size: var(--text-sm);
	font-weight: var(--fw-med);
	color: var(--color-charcoal);
	border-radius: var(--radius-pill);
	transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item > a {
	background: var(--color-sand);
	color: var(--color-forest);
}

/* Right icons */
.header-actions {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: var(--sp-3);
}

.action-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: var(--color-charcoal);
	transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.action-icon:hover {
	background: var(--color-sand);
	color: var(--color-forest);
}

/* Hamburger */
.hamburger {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	background: none;
	border: none;
	cursor: pointer;
	border-radius: 50%;
	transition: background var(--dur-fast) var(--ease);
}

.hamburger:hover { background: var(--color-sand); }

.hamburger span {
	display: block;
	width: 20px;
	height: 1.5px;
	background: var(--color-charcoal);
	transition: transform var(--dur) var(--ease), opacity var(--dur-fast) var(--ease), width var(--dur-fast) var(--ease);
	transform-origin: center;
}

/* Open state */
.hamburger[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(6.5px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
	width: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-6.5px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   6. MOBILE MENU
   -------------------------------------------------------------------------- */
.mobile-menu {
	position: fixed;
	inset: var(--header-h) 0 0 0;
	background: var(--color-cream);
	padding: var(--sp-8) var(--gutter);
	overflow-y: auto;
	z-index: 199;
	transform: translateX(100%);
	transition: transform var(--dur-slow) var(--ease);
}

.mobile-menu:not([hidden]) {
	transform: translateX(0);
}

/* hide [hidden] attribute but still animate */
.mobile-menu[hidden] {
	display: block;
	pointer-events: none;
	visibility: hidden;
}

.mobile-nav-menu {
	display: flex;
	flex-direction: column;
	gap: var(--sp-1);
}

.mobile-nav-menu li a {
	display: block;
	padding: var(--sp-4) var(--sp-3);
	font-size: var(--text-xl);
	font-weight: var(--fw-semi);
	color: var(--color-charcoal);
	border-bottom: 1px solid var(--color-sand);
	transition: color var(--dur-fast) var(--ease), padding-left var(--dur-fast) var(--ease);
}

.mobile-nav-menu li a:hover {
	color: var(--color-forest);
	padding-left: var(--sp-5);
}

/* --------------------------------------------------------------------------
   7. HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
	position: relative;
	min-height: calc(100svh - var(--header-h));
	min-height: 560px;
	display: flex;
	align-items: center;
	overflow: hidden;
	background: var(--color-sand);
}

.hero-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		105deg,
		rgba(44, 37, 32, 0.62) 0%,
		rgba(44, 37, 32, 0.25) 55%,
		transparent 100%
	);
}

.hero-content {
	position: relative;
	z-index: 2;
	max-width: 620px;
	padding: var(--sp-20) 0;
}

.hero-eyebrow {
	display: inline-block;
	font-size: var(--text-xs);
	font-weight: var(--fw-semi);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(250, 248, 245, 0.75);
	margin-bottom: var(--sp-5);
}

.hero-title {
	font-size: clamp(var(--text-4xl), 6vw, var(--text-6xl));
	font-weight: var(--fw-bold);
	letter-spacing: -0.03em;
	line-height: 1.05;
	color: var(--color-cream);
	margin-bottom: var(--sp-6);
}

.hero-subtitle {
	font-size: clamp(var(--text-base), 2vw, var(--text-xl));
	color: rgba(250, 248, 245, 0.85);
	line-height: 1.65;
	margin-bottom: var(--sp-10);
	max-width: 480px;
}

.hero-actions {
	display: flex;
	gap: var(--sp-4);
	flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   8. CATEGORY GRID
   -------------------------------------------------------------------------- */
.categories-section {
	padding: var(--sp-20) 0;
	background: var(--color-cream);
}

.categories-header {
	margin-bottom: var(--sp-12);
}

.categories-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--sp-5);
}

.category-card {
	position: relative;
	border-radius: var(--radius-lg);
	overflow: hidden;
	aspect-ratio: 3 / 4;
	background: var(--color-sand);
	cursor: pointer;
	text-decoration: none;
	display: block;
	group: true;
}

.category-card:hover .category-img {
	transform: scale(1.05);
}

.category-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--dur-slow) var(--ease);
}

.category-label {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: var(--sp-6) var(--sp-5) var(--sp-5);
	background: linear-gradient(transparent, rgba(44, 37, 32, 0.7));
	color: var(--color-cream);
}

.category-label-name {
	font-size: var(--text-lg);
	font-weight: var(--fw-semi);
	letter-spacing: -0.01em;
	display: block;
	margin-bottom: var(--sp-2);
}

.category-label-sub {
	font-size: var(--text-xs);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(250, 248, 245, 0.7);
}

/* --------------------------------------------------------------------------
   9. PRODUCT GRID
   -------------------------------------------------------------------------- */
.products-section {
	padding: var(--sp-20) 0;
	background: var(--color-sand);
}

.products-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: var(--sp-12);
	gap: var(--sp-6);
}

.products-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--sp-6) var(--sp-5);
}

/* Product Card */
.product-card {
	background: var(--color-cream);
	border-radius: var(--radius);
	overflow: hidden;
	transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
	display: flex;
	flex-direction: column;
}

.product-card:hover {
	box-shadow: var(--shadow-lg);
	transform: translateY(-4px);
}

.product-card__image-wrap {
	position: relative;
	aspect-ratio: 1;
	overflow: hidden;
	background: var(--color-sand);
}

.product-card__image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--dur-slow) var(--ease);
}

.product-card:hover .product-card__image-wrap img {
	transform: scale(1.06);
}

.product-card__badge {
	position: absolute;
	top: var(--sp-3);
	left: var(--sp-3);
	padding: var(--sp-1) var(--sp-3);
	background: var(--color-charcoal);
	color: var(--color-cream);
	font-size: var(--text-xs);
	font-weight: var(--fw-semi);
	letter-spacing: 0.05em;
	border-radius: var(--radius-pill);
	line-height: 1.4;
}

.product-card__badge--sale  { background: var(--color-clay); }
.product-card__badge--new   { background: var(--color-forest); }

.product-card__wishlist {
	position: absolute;
	top: var(--sp-3);
	right: var(--sp-3);
	width: 36px;
	height: 36px;
	background: rgba(250, 248, 245, 0.88);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
	backdrop-filter: blur(4px);
}

.product-card:hover .product-card__wishlist {
	opacity: 1;
}

.product-card__wishlist:hover {
	background: var(--color-cream);
}

.product-card__body {
	padding: var(--sp-4) var(--sp-5) var(--sp-5);
	display: flex;
	flex-direction: column;
	gap: var(--sp-3);
	flex: 1;
}

.product-card__name {
	font-size: var(--text-base);
	font-weight: var(--fw-semi);
	color: var(--color-charcoal);
	text-decoration: none;
	display: block;
}

.product-card__name:hover { color: var(--color-forest); }

.product-card__price {
	font-size: var(--text-base);
	font-weight: var(--fw-med);
	color: var(--color-bark);
}

/* Swatches */
.product-card__swatches {
	display: flex;
	gap: var(--sp-2);
	align-items: center;
	flex-wrap: wrap;
}

.swatch {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
	outline: none;
}

.swatch:hover,
.swatch.is-active {
	transform: scale(1.25);
	border-color: var(--color-stone);
	box-shadow: 0 0 0 2px var(--color-cream), 0 0 0 4px var(--color-stone);
}

.swatch--white {
	border-color: var(--color-pebble);
}

.product-card__cta {
	margin-top: auto;
}

.product-card__cta .btn {
	width: 100%;
}

/* --------------------------------------------------------------------------
   10. STORY BAND
   -------------------------------------------------------------------------- */
.story-band {
	padding: var(--sp-24) 0;
	overflow: hidden;
}

.story-band--alt {
	background: var(--color-sand);
}

.story-band__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--sp-16);
	align-items: center;
}

.story-band--flip .story-band__inner {
	direction: rtl;
}

.story-band--flip .story-band__inner > * {
	direction: ltr;
}

.story-band__visual {
	border-radius: var(--radius-lg);
	overflow: hidden;
	aspect-ratio: 4 / 5;
	background: var(--color-pebble);
}

.story-band__visual img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--dur-slow) var(--ease);
}

.story-band:hover .story-band__visual img {
	transform: scale(1.03);
}

.story-band__text {
	display: flex;
	flex-direction: column;
	gap: var(--sp-6);
}

.story-band__icon {
	width: 48px;
	height: 48px;
	background: var(--color-forest);
	color: var(--color-white);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.story-band__eyebrow {
	font-size: var(--text-xs);
	font-weight: var(--fw-semi);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--color-stone);
}

.story-band__title {
	font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
	font-weight: var(--fw-bold);
	letter-spacing: -0.02em;
	line-height: 1.15;
}

.story-band__body {
	font-size: var(--text-lg);
	color: var(--color-bark);
	line-height: 1.75;
}

.story-band__stats {
	display: flex;
	gap: var(--sp-8);
}

.story-stat__number {
	font-size: var(--text-3xl);
	font-weight: var(--fw-bold);
	letter-spacing: -0.03em;
	color: var(--color-forest);
	display: block;
}

.story-stat__label {
	font-size: var(--text-xs);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--color-stone);
}

/* --------------------------------------------------------------------------
   11. NEWSLETTER SECTION
   -------------------------------------------------------------------------- */
.newsletter-section {
	padding: var(--sp-20) 0;
	background: var(--color-charcoal);
	text-align: center;
}

.newsletter-section .section-label {
	color: rgba(250, 248, 245, 0.5);
}

.newsletter-section .section-title {
	color: var(--color-cream);
	margin-bottom: var(--sp-4);
}

.newsletter-intro {
	font-size: var(--text-lg);
	color: rgba(250, 248, 245, 0.65);
	margin-bottom: var(--sp-10);
	max-width: 440px;
	margin-inline: auto;
	margin-bottom: var(--sp-10);
}

.newsletter-form {
	display: flex;
	gap: var(--sp-3);
	max-width: 460px;
	margin-inline: auto;
}

.newsletter-input {
	flex: 1;
	height: 52px;
	padding: 0 var(--sp-5);
	background: rgba(250, 248, 245, 0.1);
	border: 1px solid rgba(250, 248, 245, 0.2);
	border-radius: var(--radius-pill);
	color: var(--color-cream);
	font-size: var(--text-sm);
	font-weight: var(--fw-reg);
	transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
	outline: none;
}

.newsletter-input::placeholder {
	color: rgba(250, 248, 245, 0.4);
}

.newsletter-input:focus {
	border-color: rgba(250, 248, 245, 0.5);
	background: rgba(250, 248, 245, 0.15);
}

.newsletter-note {
	margin-top: var(--sp-4);
	font-size: var(--text-xs);
	color: rgba(250, 248, 245, 0.35);
}

/* --------------------------------------------------------------------------
   12. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
	background: var(--color-charcoal);
	color: rgba(250, 248, 245, 0.75);
}

.footer-main {
	padding: var(--sp-16) 0 var(--sp-12);
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: var(--sp-16);
	border-top: 1px solid rgba(250, 248, 245, 0.08);
}

.footer-brand .site-name {
	color: var(--color-cream);
	font-size: var(--text-2xl);
}

.footer-brand .site-name:hover { color: var(--color-clay); }

.footer-tagline {
	margin-top: var(--sp-3);
	font-size: var(--text-sm);
	color: rgba(250, 248, 245, 0.5);
	line-height: 1.65;
	max-width: 240px;
}

.footer-brand__leaf {
	margin-top: var(--sp-6);
	color: var(--color-forest);
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	font-size: var(--text-xs);
	font-weight: var(--fw-med);
	color: rgba(250, 248, 245, 0.5);
}

.footer-brand__leaf svg {
	color: var(--color-forest);
	flex-shrink: 0;
}

.footer-nav-columns {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--sp-8);
}

.footer-nav-title {
	font-size: var(--text-xs);
	font-weight: var(--fw-semi);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-cream);
	margin-bottom: var(--sp-5);
}

.footer-menu li {
	margin-bottom: var(--sp-3);
}

.footer-menu a {
	font-size: var(--text-sm);
	color: rgba(250, 248, 245, 0.55);
	transition: color var(--dur-fast) var(--ease);
}

.footer-menu a:hover {
	color: var(--color-cream);
}

/* Footer bottom */
.footer-bottom {
	border-top: 1px solid rgba(250, 248, 245, 0.08);
	padding: var(--sp-6) 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-6);
}

.footer-copyright {
	font-size: var(--text-xs);
	color: rgba(250, 248, 245, 0.35);
}

.footer-legal {
	display: flex;
	gap: var(--sp-6);
}

.footer-legal a {
	font-size: var(--text-xs);
	color: rgba(250, 248, 245, 0.35);
}

.footer-legal a:hover {
	color: rgba(250, 248, 245, 0.7);
}

.footer-social {
	display: flex;
	gap: var(--sp-3);
}

.social-link {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid rgba(250, 248, 245, 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(250, 248, 245, 0.5);
	transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
	font-size: var(--text-sm);
	font-weight: var(--fw-semi);
}

.social-link:hover {
	border-color: rgba(250, 248, 245, 0.5);
	color: var(--color-cream);
	background: rgba(250, 248, 245, 0.08);
}

/* --------------------------------------------------------------------------
   13. TRUST BAR
   -------------------------------------------------------------------------- */
.trust-bar {
	background: var(--color-forest);
	color: var(--color-white);
	padding: var(--sp-4) 0;
}

.trust-bar__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--sp-10);
}

.trust-item {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	font-size: var(--text-sm);
	font-weight: var(--fw-med);
}

.trust-item__icon {
	font-size: 1.25rem;
}

/* --------------------------------------------------------------------------
   14. PAGE TEMPLATES
   -------------------------------------------------------------------------- */

/* Generic Page / Single */
.page-header {
	padding: var(--sp-16) 0 var(--sp-10);
	border-bottom: 1px solid var(--color-pebble);
	margin-bottom: var(--sp-10);
}

.page-title {
	font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
	font-weight: var(--fw-bold);
	letter-spacing: -0.02em;
}

.entry-content {
	font-size: var(--text-lg);
	line-height: 1.8;
	color: var(--color-bark);
}

.entry-content h2 {
	font-size: var(--text-2xl);
	margin: var(--sp-10) 0 var(--sp-4);
}

.entry-content h3 {
	font-size: var(--text-xl);
	margin: var(--sp-8) 0 var(--sp-3);
}

.entry-content p + p {
	margin-top: var(--sp-5);
}

.entry-content a {
	color: var(--color-forest);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.entry-content ul,
.entry-content ol {
	margin: var(--sp-5) 0 var(--sp-5) var(--sp-6);
	list-style: disc;
}

.entry-content ol { list-style: decimal; }

.entry-content li + li { margin-top: var(--sp-2); }

.entry-content blockquote {
	margin: var(--sp-8) 0;
	padding: var(--sp-6) var(--sp-8);
	border-left: 3px solid var(--color-forest);
	background: var(--color-sand);
	border-radius: 0 var(--radius) var(--radius) 0;
	font-size: var(--text-xl);
	font-style: italic;
	color: var(--color-bark);
}

.entry-content img {
	border-radius: var(--radius);
	margin: var(--sp-8) 0;
}

/* Post meta */
.post-meta {
	display: flex;
	align-items: center;
	gap: var(--sp-4);
	font-size: var(--text-sm);
	color: var(--color-stone);
	margin-bottom: var(--sp-6);
	flex-wrap: wrap;
}

.post-meta a { color: var(--color-stone); }
.post-meta a:hover { color: var(--color-forest); }

/* Content + sidebar layout */
.content-area {
	padding: var(--sp-10) 0 var(--sp-20);
}

.content-with-sidebar {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: var(--sp-12);
	align-items: start;
}

/* --------------------------------------------------------------------------
   15. SIDEBAR
   -------------------------------------------------------------------------- */
.sidebar {
	position: sticky;
	top: calc(var(--header-h) + var(--sp-6));
}

.widget {
	margin-bottom: var(--sp-10);
}

.widget-title {
	font-size: var(--text-base);
	font-weight: var(--fw-semi);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--color-bark);
	margin-bottom: var(--sp-5);
	padding-bottom: var(--sp-3);
	border-bottom: 1px solid var(--color-pebble);
}

.widget ul li {
	padding: var(--sp-2) 0;
	border-bottom: 1px solid var(--color-sand);
	font-size: var(--text-sm);
}

.widget ul li a:hover { color: var(--color-forest); }

/* --------------------------------------------------------------------------
   16. BLOG INDEX
   -------------------------------------------------------------------------- */
.posts-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--sp-8);
}

.post-card {
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--color-white);
	box-shadow: var(--shadow-xs);
	transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.post-card:hover {
	box-shadow: var(--shadow);
	transform: translateY(-3px);
}

.post-card__thumb {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--color-sand);
}

.post-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--dur-slow) var(--ease);
}

.post-card:hover .post-card__thumb img {
	transform: scale(1.05);
}

.post-card__body {
	padding: var(--sp-5) var(--sp-6) var(--sp-6);
}

.post-card__cat {
	font-size: var(--text-xs);
	font-weight: var(--fw-semi);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--color-forest);
	margin-bottom: var(--sp-3);
	display: block;
}

.post-card__title {
	font-size: var(--text-lg);
	font-weight: var(--fw-semi);
	line-height: 1.35;
	margin-bottom: var(--sp-3);
}

.post-card__title a:hover { color: var(--color-forest); }

.post-card__excerpt {
	font-size: var(--text-sm);
	color: var(--color-stone);
	line-height: 1.65;
}

/* --------------------------------------------------------------------------
   17. 404 PAGE
   -------------------------------------------------------------------------- */
.not-found-page {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 60vh;
	text-align: center;
	padding: var(--sp-20) var(--gutter);
}

.not-found-code {
	font-size: clamp(6rem, 15vw, 12rem);
	font-weight: var(--fw-bold);
	line-height: 1;
	letter-spacing: -0.05em;
	color: var(--color-pebble);
	display: block;
}

.not-found-title {
	font-size: var(--text-2xl);
	font-weight: var(--fw-semi);
	margin: var(--sp-4) 0 var(--sp-3);
}

.not-found-text {
	color: var(--color-stone);
	max-width: 400px;
	margin-bottom: var(--sp-8);
}

/* --------------------------------------------------------------------------
   18. PAGINATION
   -------------------------------------------------------------------------- */
.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: var(--sp-2);
	margin-top: var(--sp-12);
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 var(--sp-3);
	border: 1px solid var(--color-pebble);
	border-radius: var(--radius-pill);
	font-size: var(--text-sm);
	font-weight: var(--fw-med);
	color: var(--color-charcoal);
	transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
	background: var(--color-charcoal);
	border-color: var(--color-charcoal);
	color: var(--color-cream);
}

/* --------------------------------------------------------------------------
   19. MISC / HELPERS
   -------------------------------------------------------------------------- */
.visually-hidden { @extend .sr-only; }

/* Skip link */
.skip-link {
	position: absolute;
	top: -100%;
	left: var(--sp-4);
	padding: var(--sp-3) var(--sp-5);
	background: var(--color-forest);
	color: var(--color-white);
	font-size: var(--text-sm);
	font-weight: var(--fw-semi);
	border-radius: 0 0 var(--radius) var(--radius);
	z-index: 9999;
	transition: top var(--dur-fast) var(--ease);
}

.skip-link:focus { top: 0; color: var(--color-white); }

/* WP core */
.alignnone  { margin: 0.5em 1em 1em 0; }
.aligncenter{ display: block; margin: var(--sp-6) auto; text-align: center; }
.alignleft  { float: left; margin: 0 var(--sp-6) var(--sp-4) 0; }
.alignright { float: right; margin: 0 0 var(--sp-4) var(--sp-6); }
.wp-caption  { max-width: 100%; }
.wp-caption-text { font-size: var(--text-xs); color: var(--color-stone); text-align: center; margin-top: var(--sp-2); }

/* --------------------------------------------------------------------------
   20. RESPONSIVE
   -------------------------------------------------------------------------- */

/* Large screens */
@media (max-width: 1200px) {
	:root { --gutter: 1.5rem; }
	.categories-grid { grid-template-columns: repeat(2, 1fr); }
	.products-grid   { grid-template-columns: repeat(3, 1fr); }
}

/* Tablets */
@media (max-width: 1024px) {
	.footer-main {
		grid-template-columns: 1fr;
		gap: var(--sp-10);
	}
	.story-band__inner {
		grid-template-columns: 1fr;
		gap: var(--sp-10);
	}
	.story-band--flip .story-band__inner {
		direction: ltr;
	}
	.story-band__visual {
		aspect-ratio: 16 / 9;
	}
	.content-with-sidebar {
		grid-template-columns: 1fr;
	}
	.sidebar {
		position: static;
	}
	.posts-list {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Mobile breakpoint */
@media (max-width: 768px) {
	:root { --gutter: 1rem; }

	/* Show hamburger, hide desktop nav */
	.header-nav,
	.action-icon:not(.cart-icon) {
		display: none;
	}
	.hamburger { display: flex; }

	.hero { min-height: 480px; }
	.hero-title { font-size: var(--text-4xl); }

	.categories-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }

	.products-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-4) var(--sp-3); }

	.products-header { flex-direction: column; align-items: flex-start; }

	.newsletter-form {
		flex-direction: column;
	}
	.newsletter-input {
		width: 100%;
	}

	.footer-nav-columns { grid-template-columns: repeat(2, 1fr); }

	.footer-bottom {
		flex-direction: column;
		text-align: center;
		gap: var(--sp-4);
	}

	.trust-bar__inner {
		flex-direction: column;
		gap: var(--sp-4);
	}

	.story-band { padding: var(--sp-12) 0; }
}

/* Small mobile */
@media (max-width: 480px) {
	.products-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
	.categories-grid { grid-template-columns: 1fr 1fr; }
	.footer-nav-columns { grid-template-columns: 1fr; }
	.hero-actions { flex-direction: column; width: 100%; }
	.hero-actions .btn { width: 100%; justify-content: center; }
	.posts-list { grid-template-columns: 1fr; }
}
