/*
Theme Name: Bera
Theme URI: https://inweb.rs
Author: InWeb
Author URI: https://inweb.rs
Description: Prilagođena WordPress + WooCommerce tema za Bera Srbija — luksuzne ručno izrađene torbe. Minimalan, editorijalni dizajn, mobile-first. Izrada: InWeb.
Version: 1.0.1
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bera
Tags: e-commerce, custom-menu, featured-images, translation-ready, woocommerce
*/

/* ==========================================================================
   0. FONTS — Orelo (brand face, bundled) with Google Fonts fallbacks
   ========================================================================== */
@font-face {
	font-family: "Orelo";
	src: url("assets/fonts/Orelo-Light.otf") format("opentype");
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Orelo";
	src: url("assets/fonts/Orelo-Regular.otf") format("opentype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Orelo";
	src: url("assets/fonts/Orelo-Medium.otf") format("opentype");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Orelo";
	src: url("assets/fonts/Orelo-Italic.otf") format("opentype");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

/* ==========================================================================
   1. TOKENS
   ========================================================================== */
:root {
	/* Palette — white site ground (beradesign-like), warm neutrals as accents */
	--c-black: #0b0b0a;
	--c-ink: #1b1a18;
	--c-white: #ffffff;
	--c-paper: #ffffff;
	--c-stone: #ffffff;
	--c-sand: #e6e0d4;
	--c-beige: #d6cab8;
	--c-taupe: #7d766b;
	--c-mute: #a39c90;
	--c-line: rgba(11, 11, 10, 0.12);
	--c-line-strong: rgba(11, 11, 10, 0.28);
	--c-ok: #46614b;
	--c-error: #8f2d2d;

	/* Type — Orelo stays on the brand logo; editorial headings use a simpler serif */
	--font-brand: "Orelo", "Cormorant Garamond", "Iowan Old Style", "Times New Roman", serif;
	--font-display: "Cormorant Garamond", "Iowan Old Style", "Times New Roman", Georgia, serif;
	--font-ui: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

	--fs-xs: 0.72rem;
	--fs-sm: 0.8125rem;
	--fs-base: 0.9375rem;
	--fs-md: 1.0625rem;
	--fs-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
	--fs-xl: clamp(1.9rem, 1.4rem + 2vw, 3.1rem);
	--fs-2xl: clamp(2.4rem, 1.5rem + 3.6vw, 4.6rem);

	--track-wide: 0.16em;
	--track-logo: 0.34em;

	/* Space */
	--s-1: 0.25rem;
	--s-2: 0.5rem;
	--s-3: 0.75rem;
	--s-4: 1rem;
	--s-5: 1.5rem;
	--s-6: 2rem;
	--s-7: 3rem;
	--s-8: 4.5rem;
	--s-9: clamp(4rem, 9vw, 8rem);

	/* Layout */
	--container: 1360px;
	--container-narrow: 760px;
	--gutter: clamp(1.25rem, 4vw, 3rem);
	--bar-h: 0px;
	--row-h: 64px;
	--header-offset: calc(var(--bar-h) + var(--row-h));

	/* Motion */
	--ease-out: cubic-bezier(0.22, 0.8, 0.24, 1);
	--ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
	--dur: 0.45s;

	/* Header scroll progress (0 = top of home, 1 = scrolled / other pages) */
	--p: 1;
}

body.has-announcement {
	--bar-h: 34px;
}

@media (min-width: 900px) {
	:root {
		--row-h: 76px;
	}
}

/* ==========================================================================
   2. BASE
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-offset) + 1rem);
}

body {
	margin: 0;
	font-family: var(--font-ui);
	font-size: var(--fs-base);
	font-weight: 400;
	line-height: 1.65;
	color: var(--c-ink);
	background: var(--c-paper);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

body.nav-open {
	overflow: hidden;
}

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

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.25em;
	transition: color 0.25s var(--ease-out), opacity 0.25s var(--ease-out);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 var(--s-4);
	font-family: var(--font-display);
	font-weight: 300;
	line-height: 1.15;
	letter-spacing: 0.04em;
	color: var(--c-black);
}

p {
	margin: 0 0 var(--s-4);
}

ul,
ol {
	padding-left: 1.2em;
}

hr {
	border: 0;
	border-top: 1px solid var(--c-line);
	margin: var(--s-6) 0;
}

::selection {
	background: var(--c-black);
	color: var(--c-white);
}

:focus-visible {
	outline: 2px solid var(--c-black);
	outline-offset: 3px;
}

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

.skip-link {
	position: fixed;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 1000;
	padding: 0.75rem 1.25rem;
	background: var(--c-black);
	color: var(--c-white);
	font-size: var(--fs-sm);
	transform: translateY(-200%);
	transition: transform 0.25s var(--ease-out);
}
.skip-link:focus {
	transform: none;
}

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.container--narrow {
	max-width: calc(var(--container-narrow) + var(--gutter) * 2);
}

.site-main {
	min-height: 60vh;
}
body:not(.has-overlay-header) .site-main {
	padding-top: var(--header-offset);
}

/* Form controls (shared with WooCommerce) */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="url"],
select,
textarea {
	width: 100%;
	padding: 0.9rem 1rem;
	font: inherit;
	color: var(--c-black);
	background: var(--c-white);
	border: 1px solid var(--c-line-strong);
	border-radius: 0;
	appearance: none;
	-webkit-appearance: none;
	transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
select {
	padding-right: 2.5rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%230b0b0a' stroke-width='1.2'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
}
textarea {
	min-height: 9rem;
	resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: var(--c-black);
	box-shadow: 0 0 0 1px var(--c-black);
}
label {
	display: block;
	margin-bottom: 0.4rem;
	font-size: var(--fs-sm);
	letter-spacing: 0.04em;
	color: var(--c-taupe);
}

/* ==========================================================================
   3. BUTTONS
   ========================================================================== */
.btn,
button.button,
a.button,
input.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.7rem;
	min-height: 3.25rem;
	padding: 0.95rem 2.4rem;
	font-family: var(--font-ui);
	font-size: var(--fs-xs);
	font-weight: 500;
	letter-spacing: var(--track-wide);
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1.2;
	cursor: pointer;
	color: var(--c-white);
	background: var(--c-black);
	border: 1px solid var(--c-black);
	border-radius: 0;
	overflow: hidden;
	isolation: isolate;
	transition: color 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}

/* Intentional animation: fill sweep on hover */
.btn::before,
button.button::before,
a.button::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--c-white);
	transform: translateY(101%);
	transition: transform 0.45s var(--ease-out);
}
.btn:hover::before,
.btn:focus-visible::before,
button.button:hover::before,
a.button:hover::before {
	transform: translateY(0);
}
.btn:hover,
.btn:focus-visible,
button.button:hover,
a.button:hover {
	color: var(--c-black);
}

.btn--light {
	color: var(--c-black);
	background: var(--c-white);
	border-color: var(--c-white);
}
.btn--light::before {
	background: var(--c-black);
}
.btn--light:hover,
.btn--light:focus-visible {
	color: var(--c-white);
	border-color: var(--c-black);
}

.btn--outline {
	color: var(--c-black);
	background: transparent;
	border-color: var(--c-black);
}
.btn--outline::before {
	background: var(--c-black);
}
.btn--outline:hover,
.btn--outline:focus-visible {
	color: var(--c-white);
}

.btn--ghost {
	color: var(--c-white);
	background: transparent;
	border-color: rgba(255, 255, 255, 0.7);
}
.btn--ghost::before {
	background: var(--c-white);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
	color: var(--c-black);
	border-color: var(--c-white);
}

.btn[disabled],
.btn.is-disabled,
button.button:disabled {
	opacity: 0.45;
	pointer-events: none;
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-size: var(--fs-xs);
	font-weight: 500;
	letter-spacing: var(--track-wide);
	text-transform: uppercase;
	text-decoration: none;
	padding-bottom: 0.35rem;
	background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
	transition: background-size 0.5s var(--ease-out);
}
.link-arrow .icon {
	transition: transform 0.4s var(--ease-out);
}
.link-arrow:hover {
	background-size: 0 1px;
	background-position: 100% 100%;
}
.link-arrow:hover .icon {
	transform: translateX(5px);
}

/* ==========================================================================
   4. REVEAL MOTION (JS-gated, reduced-motion safe)
   ========================================================================== */
.js [data-reveal] {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
	transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal].is-visible {
	opacity: 1;
	transform: none;
}
.js [data-reveal="fade"] {
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	.js [data-reveal] {
		opacity: 1;
		transform: none;
		transition: none;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* ==========================================================================
   5. HEADER
   ========================================================================== */
.site-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	color: var(--c-black);
	background: rgba(255, 255, 255, 0.94);
	border-bottom: 1px solid var(--c-line);
	transition: background-color 0.5s var(--ease-out), color 0.5s var(--ease-out), border-color 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
@supports (backdrop-filter: blur(10px)) {
	.site-header {
		background: rgba(255, 255, 255, 0.82);
		-webkit-backdrop-filter: saturate(1.4) blur(14px);
		backdrop-filter: saturate(1.4) blur(14px);
	}
}

.site-header__bar {
	height: var(--bar-h);
	display: flex;
	align-items: center;
	justify-content: center;
	padding-inline: var(--gutter);
	font-size: var(--fs-xs);
	letter-spacing: var(--track-wide);
	text-transform: uppercase;
	color: var(--c-white);
	background: var(--c-black);
	overflow: hidden;
	transition: height 0.5s var(--ease-out), opacity 0.4s var(--ease-out);
}
.site-header.is-scrolled .site-header__bar {
	height: 0;
	opacity: 0;
}
body.has-announcement .site-header.is-scrolled {
	--bar-h: 0px;
}

.site-header__row {
	position: relative;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	height: var(--row-h);
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* Logo */
.site-logo {
	grid-column: 2;
	display: block;
	align-self: start;
	margin-top: calc(var(--row-h) / 2 - 0.85rem);
	font-family: var(--font-brand);
	font-size: 1.7rem;
	font-weight: 400;
	line-height: 1;
	letter-spacing: var(--track-logo);
	text-indent: var(--track-logo); /* optically centre the tracking */
	text-transform: uppercase;
	text-decoration: none;
	color: inherit;
	white-space: nowrap;
	transform-origin: 50% 0;
	transform: scale(calc(1 + var(--logo-boost, 0) * (1 - var(--p))));
	will-change: transform;
}
.site-logo img {
	max-height: 2.2rem;
	width: auto;
}

/* Nav (desktop) */
.site-nav {
	grid-column: 1;
	justify-self: start;
}
.site-nav .menu {
	display: flex;
	gap: clamp(1.25rem, 2.4vw, 2.5rem);
	margin: 0;
	padding: 0;
	list-style: none;
}
.site-nav a {
	position: relative;
	display: inline-block;
	padding: 0.35rem 0;
	font-size: var(--fs-xs);
	font-weight: 500;
	letter-spacing: var(--track-wide);
	text-transform: uppercase;
	text-decoration: none;
}
.site-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.5s var(--ease-out);
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav .current-menu-item > a::after,
.site-nav a[aria-current="page"]::after {
	transform: scaleX(1);
	transform-origin: left;
}

/* Actions */
.site-header__actions {
	grid-column: 3;
	justify-self: end;
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.cart-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	min-width: 44px;
	min-height: 44px;
	justify-content: center;
	color: inherit;
	text-decoration: none;
}
.cart-link__text {
	display: none;
	font-size: var(--fs-xs);
	font-weight: 500;
	letter-spacing: var(--track-wide);
	text-transform: uppercase;
}
.cart-link__count {
	position: absolute;
	top: 4px;
	right: 2px;
	min-width: 1.15rem;
	height: 1.15rem;
	padding: 0 0.25rem;
	display: grid;
	place-items: center;
	font-size: 0.64rem;
	font-weight: 600;
	line-height: 1;
	color: var(--c-white);
	background: var(--c-black);
	border-radius: 999px;
	transform: scale(0);
	transition: transform 0.45s var(--ease-out);
}
.cart-link__count.has-items {
	transform: scale(1);
}

/* Toggle (mobile) */
.nav-toggle {
	display: none;
	position: relative;
	width: 44px;
	height: 44px;
	margin-left: -10px;
	padding: 0;
	color: inherit;
	background: none;
	border: 0;
	cursor: pointer;
	grid-column: 1;
	justify-self: start;
}
.nav-toggle__line {
	position: absolute;
	left: 11px;
	right: 11px;
	height: 1px;
	background: currentColor;
	transition: transform 0.5s var(--ease-out), top 0.5s var(--ease-out), opacity 0.3s;
}
.nav-toggle__line:nth-child(1) {
	top: 17px;
}
.nav-toggle__line:nth-child(2) {
	top: 26px;
}
.nav-open .nav-toggle__line:nth-child(1) {
	top: 21.5px;
	transform: rotate(45deg);
}
.nav-open .nav-toggle__line:nth-child(2) {
	top: 21.5px;
	transform: rotate(-45deg);
}

/* Home: transparent header over hero; big logo shrinks on scroll
   (JS drives --p from 0 to 1 over the first 160px of scroll). */
.js .has-overlay-header .site-header {
	--p: 0;
}
.js .has-overlay-header .site-header:not(.is-scrolled):not(.is-open) {
	color: var(--c-white);
	background: transparent;
	border-color: transparent;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}
.has-overlay-header .site-logo {
	--logo-boost: 1.35;
}
.has-overlay-header .site-header__bar {
	background: rgba(11, 11, 10, 0.92);
}

@media (max-width: 899px) {
	/* backdrop-filter would turn the header into the containing block of the
	   fixed full-screen menu panel, so it is disabled on small screens. */
	.site-header {
		background: rgba(255, 255, 255, 0.97);
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}
	.has-overlay-header .site-logo {
		--logo-boost: 0.75;
	}
	.site-logo {
		font-size: 1.45rem;
	}
	.nav-toggle {
		display: block;
	}

	.site-nav {
		position: fixed;
		inset: 0;
		z-index: -1;
		display: flex;
		flex-direction: column;
		justify-content: center;
		padding: calc(var(--header-offset) + 2rem) var(--gutter) 3rem;
		color: var(--c-black);
		background: var(--c-paper);
		opacity: 0;
		visibility: hidden;
		clip-path: inset(0 0 100% 0);
		transition: clip-path 0.7s var(--ease-in-out), opacity 0.3s, visibility 0s 0.7s;
	}
	.nav-open .site-nav {
		opacity: 1;
		visibility: visible;
		clip-path: inset(0 0 0 0);
		transition: clip-path 0.7s var(--ease-in-out), opacity 0.2s, visibility 0s;
	}
	.site-nav .menu {
		flex-direction: column;
		align-items: center;
		gap: 0.4rem;
	}
	.site-nav a {
		font-family: var(--font-display);
		font-size: clamp(2rem, 9vw, 3rem);
		font-weight: 300;
		letter-spacing: 0.02em;
		text-transform: none;
		padding: 0.35rem 0;
	}
	.site-nav li {
		opacity: 0;
		transform: translateY(18px);
		transition: opacity 0.4s, transform 0.4s;
	}
	.nav-open .site-nav li {
		opacity: 1;
		transform: none;
		transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
		transition-delay: calc(0.25s + var(--n, 0) * 70ms);
	}
	.nav-open .site-nav li:nth-child(1) { --n: 0; }
	.nav-open .site-nav li:nth-child(2) { --n: 1; }
	.nav-open .site-nav li:nth-child(3) { --n: 2; }
	.nav-open .site-nav li:nth-child(4) { --n: 3; }
	.nav-open .site-nav li:nth-child(5) { --n: 4; }

	.site-nav__meta {
		margin-top: 3rem;
		text-align: center;
		font-size: var(--fs-sm);
		color: var(--c-taupe);
	}

	/* Keep header controls above the open panel */
	.nav-open .site-header,
	.js .nav-open.has-overlay-header .site-header:not(.is-scrolled) {
		color: var(--c-black);
		background: transparent;
		border-color: transparent;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}
	.nav-open .site-header__bar {
		display: none;
	}
}

@media (min-width: 900px) {
	.site-nav__meta {
		display: none;
	}
	.site-logo {
		font-size: 1.9rem;
	}
	.cart-link__text {
		display: inline;
	}
	.cart-link__count {
		position: static;
		transform: scale(1);
		min-width: 1.2rem;
		height: 1.2rem;
		background: transparent;
		color: inherit;
		border: 1px solid currentColor;
		opacity: 0.55;
		transition: opacity 0.3s;
	}
	.cart-link__count.has-items {
		opacity: 1;
		color: var(--c-white);
		background: var(--c-black);
		border-color: var(--c-black);
	}
	.js .has-overlay-header .site-header:not(.is-scrolled) .cart-link__count.has-items {
		color: var(--c-black);
		background: var(--c-white);
		border-color: var(--c-white);
	}
}

/* ==========================================================================
   6. HERO
   ========================================================================== */
.hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	min-height: 100vh;
	min-height: 100svh;
	color: var(--c-white);
	background: var(--c-black);
	overflow: hidden;
	isolation: isolate;
}
.hero__media {
	position: absolute;
	inset: 0;
	z-index: -2;
}
.hero__video,
.hero__poster {
	width: 100%;
	height: 100%;
	object-fit: cover;
	animation: hero-settle 2.4s var(--ease-out) both;
}
.hero__media--empty {
	background:
		radial-gradient(120% 90% at 70% 10%, #3a352d 0%, transparent 60%),
		linear-gradient(160deg, #1b1a18 0%, #0b0b0a 100%);
}
.hero__overlay {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(11, 11, 10, 0.35) 0%, rgba(11, 11, 10, 0) 32%),
		linear-gradient(0deg, rgba(11, 11, 10, 0.28) 0%, rgba(11, 11, 10, 0) 42%);
}
.hero__content {
	position: absolute;
	left: 50%;
	bottom: clamp(5.5rem, 12vh, 7.5rem);
	z-index: 2;
	width: max-content;
	max-width: calc(100% - var(--gutter) * 2);
	padding: 0;
	text-align: center;
	transform: translateX(-50%);
}
.hero__cta {
	animation: rise 1.2s var(--ease-out) 0.45s both;
	min-width: 12.5rem;
	padding-inline: 1.6rem;
	letter-spacing: 0.22em;
}

.hero__toggle {
	position: absolute;
	right: var(--gutter);
	bottom: clamp(1.25rem, 3vh, 2rem);
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	color: var(--c-white);
	background: rgba(11, 11, 10, 0.25);
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	cursor: pointer;
	transition: background-color 0.3s, color 0.3s;
}
.hero__toggle:hover {
	color: var(--c-black);
	background: var(--c-white);
}
.hero__toggle .icon--play {
	display: none;
}
.hero__toggle[aria-pressed="true"] .icon--play {
	display: block;
}
.hero__toggle[aria-pressed="true"] .icon--pause {
	display: none;
}

.hero__scroll {
	position: absolute;
	left: 50%;
	bottom: clamp(1.35rem, 3.2vh, 2.1rem);
	z-index: 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin: 0;
	color: var(--c-black);
	background: var(--c-white);
	border-radius: 50%;
	text-decoration: none;
	transform: translateX(-50%);
	box-shadow: 0 6px 20px rgba(11, 11, 10, 0.18);
	animation: rise 1.2s var(--ease-out) 0.7s both, scroll-bob 2.4s var(--ease-in-out) 1.4s infinite;
}
.hero__scroll-icon {
	display: grid;
	place-items: center;
	line-height: 0;
}
.hero__scroll::after {
	display: none;
}

@keyframes hero-settle {
	from {
		transform: scale(1.1);
	}
	to {
		transform: scale(1);
	}
}
@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(26px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
@keyframes scroll-cue {
	0% {
		transform: scaleY(0);
	}
	45% {
		transform: scaleY(1);
		opacity: 1;
	}
	100% {
		transform: scaleY(1);
		opacity: 0;
	}
}
@keyframes scroll-bob {
	0%,
	100% {
		transform: translateX(-50%) translateY(0);
	}
	50% {
		transform: translateX(-50%) translateY(5px);
	}
}

/* ==========================================================================
   7. SECTIONS
   ========================================================================== */
.section {
	padding-block: var(--s-9);
}
.section--paper {
	background: var(--c-paper);
}
.section--stone {
	background: var(--c-stone);
}
.section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.25rem 2rem;
	margin-bottom: clamp(1.75rem, 4vw, 3.25rem);
}
.section__head--center {
	flex-direction: column;
	align-items: center;
	text-align: center;
	justify-content: center;
}
.eyebrow {
	display: block;
	margin-bottom: 0.9rem;
	font-size: var(--fs-xs);
	font-weight: 500;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--c-taupe);
}
.section__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: var(--fs-xl);
	font-weight: 300;
	line-height: 1.1;
	letter-spacing: 0.06em;
}
.section__title--edit {
	font-size: clamp(1.2rem, 0.95rem + 1.1vw, 1.75rem);
	font-weight: 300;
	letter-spacing: 0.28em;
	text-indent: 0.28em;
	text-transform: uppercase;
}
.section__tools {
	display: flex;
	align-items: center;
	gap: 1.75rem;
}
.section__foot {
	margin-top: clamp(2.5rem, 5vw, 4rem);
	text-align: center;
}

/* ---- Carousel ---- */
.carousel {
	--rail-pad: var(--gutter);
	--gap: clamp(0.75rem, 1.6vw, 1.5rem);
	position: relative;
	max-width: var(--container);
	margin-inline: auto;
}
.carousel__track {
	display: flex;
	gap: var(--gap);
	margin: 0;
	padding: 0 var(--rail-pad);
	list-style: none;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--rail-pad);
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.carousel__track::-webkit-scrollbar {
	display: none;
}
.carousel__slide {
	flex: 0 0 calc((100% - var(--rail-pad) * 2 - var(--gap)) / 2);
	min-width: 0;
	scroll-snap-align: start;
}
@media (min-width: 768px) {
	.carousel__slide {
		flex-basis: calc((100% - var(--rail-pad) * 2 - var(--gap) * 2) / 3);
	}
}
@media (min-width: 1100px) {
	.carousel__slide {
		flex-basis: calc((100% - var(--rail-pad) * 2 - var(--gap) * 3) / 4);
	}
}
.carousel__track:focus-visible {
	outline-offset: -2px;
}

.carousel__footer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem 2rem;
	flex-wrap: wrap;
	margin-top: clamp(1.5rem, 3vw, 2.25rem);
	padding-inline: var(--rail-pad);
}
.carousel__nav {
	display: inline-flex;
	gap: 0.6rem;
}
.carousel__btn {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	color: var(--c-black);
	background: transparent;
	border: 1px solid var(--c-line-strong);
	border-radius: 50%;
	cursor: pointer;
	transition: background-color 0.3s, color 0.3s, border-color 0.3s, opacity 0.3s;
}
.carousel__btn:hover:not(:disabled) {
	color: var(--c-white);
	background: var(--c-black);
	border-color: var(--c-black);
}
.carousel__btn:disabled {
	opacity: 0.3;
	cursor: default;
}

.carousel__progress {
	position: relative;
	height: 14px;
	margin: clamp(1.25rem, 2.5vw, 2rem) var(--rail-pad) 0;
	background: transparent;
	cursor: grab;
	touch-action: none;
	user-select: none;
}
.carousel__progress::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	height: 1px;
	background: var(--c-line);
	transform: translateY(-50%);
	pointer-events: none;
}
.carousel__progress:focus-visible {
	outline: 2px solid var(--c-black);
	outline-offset: 4px;
}
.carousel__progress.is-dragging {
	cursor: grabbing;
}
.carousel__bar {
	position: absolute;
	top: calc(50% - 1px);
	left: 0;
	width: 25%;
	height: 2px;
	background: var(--c-black);
	pointer-events: none;
}

/* ---- Band (secondary media) ---- */
.band {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: min(88vh, 860px);
	min-height: min(88svh, 860px);
	color: var(--c-white);
	background: var(--c-sand);
	overflow: hidden;
	isolation: isolate;
}
.band__media {
	position: absolute;
	inset: -14% 0;
	z-index: -2;
	overflow: hidden;
	transform: translate3d(0, var(--py, 0px), 0);
	will-change: transform;
	background: #1a1814;
}
.band__media img,
.band__media video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
.band__media--empty {
	background:
		radial-gradient(90% 80% at 20% 20%, #efe8da 0%, transparent 70%),
		linear-gradient(135deg, #d9cfbd 0%, #bfb29d 100%);
}
.band::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(0deg, rgba(11, 11, 10, 0.55) 0%, rgba(11, 11, 10, 0) 60%);
}
.band__inner {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding: clamp(5rem, 12vh, 8rem) var(--gutter) clamp(2.5rem, 7vh, 5rem);
}
.band__title {
	max-width: 14ch;
	margin-bottom: 1.1rem;
	font-size: var(--fs-2xl);
	font-weight: 300;
	line-height: 1.02;
	color: var(--c-white);
}
.band__text {
	max-width: 34rem;
	margin-bottom: 2rem;
	font-size: var(--fs-md);
	color: rgba(255, 255, 255, 0.88);
}

/* ==========================================================================
   8. PRODUCT GRID + CARD
   ========================================================================== */
.product-grid,
ul.products {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(2rem, 5vw, 3.5rem) clamp(0.75rem, 2vw, 1.5rem);
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 768px) {
	.product-grid,
	ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
@media (min-width: 1100px) {
	.product-grid,
	ul.products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
}
.product-card__media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #ffffff;
}
.product-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 1.2s var(--ease-out), opacity 0.7s var(--ease-out);
}
.product-card__img--hover {
	opacity: 0;
}
@media (hover: hover) {
	.product-card:hover .product-card__img--main {
		transform: scale(1.04);
	}
	.product-card:hover .product-card__img--hover {
		opacity: 1;
		transform: scale(1.02);
	}
	.product-card:hover .product-card__img--main:only-of-type {
		transform: scale(1.05);
	}
}

.product-card__badge {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 2;
	padding: 0.35rem 0.7rem;
	font-size: 0.66rem;
	font-weight: 500;
	letter-spacing: var(--track-wide);
	text-transform: uppercase;
	color: var(--c-black);
	background: rgba(255, 255, 255, 0.92);
}
.product-card.is-soldout .product-card__img {
	opacity: 0.55;
}
.product-card.is-soldout .product-card__img--hover {
	opacity: 0;
}

.product-card__cta {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	padding: 0.9rem 1rem;
	text-align: center;
	font-size: var(--fs-xs);
	font-weight: 500;
	letter-spacing: var(--track-wide);
	text-transform: uppercase;
	color: var(--c-white);
	background: var(--c-black);
	transform: translateY(101%);
	transition: transform 0.55s var(--ease-out);
	pointer-events: none;
}
@media (hover: hover) {
	.product-card:hover .product-card__cta,
	.product-card__media:focus-visible .product-card__cta {
		transform: none;
	}
}
@media (hover: none) {
	.product-card__cta {
		display: none;
	}
}

.product-card__body {
	padding-top: 0.9rem;
	text-align: center;
}
.product-card__title {
	margin: 0 0 0.35rem;
	font-family: var(--font-ui);
	font-size: 0.72rem;
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.product-card__title a {
	color: var(--c-taupe);
	text-decoration: none;
}
.product-card__title a:hover {
	color: var(--c-black);
}
.product-card__color {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 0.45rem;
	font-size: var(--fs-xs);
	letter-spacing: var(--track-wide);
	text-transform: uppercase;
	color: var(--c-taupe);
}
.product-card__dot {
	width: 0.7rem;
	height: 0.7rem;
	border-radius: 50%;
	background: var(--swatch, var(--c-beige));
	box-shadow: inset 0 0 0 1px rgba(11, 11, 10, 0.25);
}
.product-card__price {
	margin: 0;
	font-family: var(--font-ui);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	color: var(--c-mute);
}
.product-card__price del {
	margin-right: 0.5rem;
	color: var(--c-mute);
	font-weight: 400;
}
.product-card__price ins {
	text-decoration: none;
}

/* ==========================================================================
   9. COLOUR SWATCHES
   ========================================================================== */
.swatches {
	margin: 1.5rem 0;
}
.swatches__label {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	margin-bottom: 0.85rem;
	font-size: var(--fs-xs);
	letter-spacing: var(--track-wide);
	text-transform: uppercase;
	color: var(--c-taupe);
}
.swatches__name {
	color: var(--c-black);
	font-weight: 500;
}
.swatches__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.swatch {
	position: relative;
	display: block;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--swatch, var(--c-beige));
	box-shadow: inset 0 0 0 1px rgba(11, 11, 10, 0.22);
	text-decoration: none;
	transition: transform 0.4s var(--ease-out);
}
.swatch::before {
	/* selection ring */
	content: "";
	position: absolute;
	inset: -5px;
	border: 1px solid var(--c-black);
	border-radius: 50%;
	opacity: 0;
	transform: scale(0.85);
	transition: opacity 0.35s var(--ease-out), transform 0.5s var(--ease-out);
}
.swatch:hover,
.swatch:focus-visible {
	transform: scale(1.08);
}
.swatch:hover::before,
.swatch:focus-visible::before,
.swatch.is-current::before {
	opacity: 1;
	transform: none;
}
.swatch.is-soldout::after {
	/* diagonal strike for sold-out colours */
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: linear-gradient(135deg, transparent calc(50% - 0.75px), rgba(11, 11, 10, 0.6) calc(50% - 0.75px), rgba(11, 11, 10, 0.6) calc(50% + 0.75px), transparent calc(50% + 0.75px));
	mix-blend-mode: normal;
}
.swatch.is-soldout {
	opacity: 0.7;
}

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
.site-footer {
	color: rgba(255, 255, 255, 0.78);
	background: var(--c-black);
}
.site-footer a {
	text-decoration: none;
}
.site-footer a:hover {
	color: var(--c-white);
	text-decoration: underline;
}
.site-footer__top {
	display: grid;
	gap: 3rem;
	padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 800px) {
	.site-footer__top {
		grid-template-columns: 1.4fr 1fr 1fr 1fr;
		gap: 2rem 3rem;
	}
}
.site-footer__logo {
	display: inline-block;
	margin-bottom: 1.25rem;
	font-family: var(--font-display);
	font-size: clamp(2.4rem, 5vw, 3.4rem);
	font-weight: 300;
	line-height: 1;
	letter-spacing: var(--track-logo);
	text-transform: uppercase;
	color: var(--c-white);
}
.site-footer__about {
	max-width: 22rem;
	font-size: var(--fs-sm);
	color: rgba(255, 255, 255, 0.6);
}
.site-footer__title {
	margin-bottom: 1.1rem;
	font-family: var(--font-ui);
	font-size: var(--fs-xs);
	font-weight: 500;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--c-white);
}
.site-footer__list {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--fs-sm);
}
.site-footer__list li {
	margin-bottom: 0.55rem;
}
.site-footer address {
	font-style: normal;
	font-size: var(--fs-sm);
}
.social {
	display: flex;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.social a {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	color: var(--c-white);
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	transition: background-color 0.3s, color 0.3s;
}
.social a:hover {
	color: var(--c-black);
	background: var(--c-white);
	text-decoration: none;
}
.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 0.5rem 2rem;
	padding-block: 1.5rem 2rem;
	font-size: var(--fs-xs);
	letter-spacing: 0.06em;
	color: rgba(255, 255, 255, 0.5);
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer__credit {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
}

.site-footer__inweb {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	color: rgba(255, 255, 255, 0.78);
	text-decoration: none;
	letter-spacing: 0.04em;
	transition: color 0.2s ease, opacity 0.2s ease;
}

.site-footer__inweb img {
	display: block;
	width: 16px;
	height: 17px;
	opacity: 0.9;
}

.site-footer__inweb:hover,
.site-footer__inweb:focus-visible {
	color: #fff;
}

.site-footer__inweb:hover img,
.site-footer__inweb:focus-visible img {
	opacity: 1;
}

/* ==========================================================================
   11. PAGES (generic, about, contact, 404)
   ========================================================================== */
.page-head {
	padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(1.75rem, 4vw, 3rem);
	text-align: center;
}
.page-title {
	margin: 0;
	font-size: var(--fs-2xl);
	font-weight: 300;
}
.page-lead {
	max-width: 36rem;
	margin: 1.25rem auto 0;
	font-size: var(--fs-md);
	color: var(--c-taupe);
}

.entry-content {
	padding-bottom: var(--s-9);
}
.entry-content > * {
	max-width: var(--container-narrow);
	margin-inline: auto;
}
.entry-content > .alignwide {
	max-width: var(--container);
}
.entry-content > .alignfull {
	max-width: none;
}
.entry-content h2 {
	margin-top: 2.5rem;
	font-size: var(--fs-xl);
	font-weight: 300;
}
.entry-content h3 {
	margin-top: 2rem;
	font-size: var(--fs-lg);
}
.entry-content img {
	height: auto;
}
.entry-content a {
	text-decoration: underline;
}
.entry-content--wide > * {
	max-width: none;
}

/* Post list (index) */
.post-list {
	display: grid;
	gap: 3rem 2rem;
	padding-bottom: var(--s-9);
}
@media (min-width: 768px) {
	.post-list {
		grid-template-columns: repeat(3, 1fr);
	}
}
.post-card__title {
	font-size: var(--fs-lg);
}
.post-card__title a {
	text-decoration: none;
}
.post-card__thumb {
	display: block;
	aspect-ratio: 4 / 3;
	margin-bottom: 1rem;
	overflow: hidden;
	background: var(--c-stone);
}
.post-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.empty-state {
	padding: clamp(3rem, 10vw, 8rem) 0;
	text-align: center;
}
.empty-state__code {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(5rem, 22vw, 14rem);
	font-weight: 300;
	line-height: 1;
	letter-spacing: 0.06em;
	color: var(--c-sand);
}

/* ---- About ---- */
.about-hero {
	position: relative;
	padding: clamp(3rem, 8vw, 7rem) 0 clamp(2rem, 5vw, 4rem);
	text-align: center;
}
.about-hero__title {
	margin: 0 auto 1.5rem;
	max-width: 16ch;
	font-size: var(--fs-2xl);
	font-weight: 300;
	line-height: 1.04;
	text-wrap: balance;
}
.about-hero__lead {
	max-width: 38rem;
	margin: 0 auto;
	font-size: var(--fs-md);
	color: var(--c-taupe);
}
.about-split {
	display: grid;
	gap: 2rem;
	align-items: center;
	padding-block: clamp(2rem, 5vw, 4.5rem);
}
@media (min-width: 900px) {
	.about-split {
		grid-template-columns: 1fr 1fr;
		gap: clamp(3rem, 8vw, 7rem);
	}
	.about-split--reverse .about-split__media {
		order: 2;
	}
}
.about-split__media {
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background:
		radial-gradient(90% 70% at 30% 20%, #f3eee3 0%, transparent 70%),
		linear-gradient(150deg, #e0d6c4 0%, #c7baa2 100%);
}
.about-split__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.about-split__title {
	font-size: var(--fs-xl);
	font-weight: 300;
}
.about-split__text {
	max-width: 30rem;
	color: var(--c-taupe);
	font-size: var(--fs-md);
}
.values {
	display: grid;
	gap: 0;
	margin: clamp(2rem, 5vw, 4rem) 0 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--c-line);
}
@media (min-width: 800px) {
	.values {
		grid-template-columns: repeat(3, 1fr);
	}
	.values li + li {
		border-left: 1px solid var(--c-line);
	}
}
.values li {
	padding: clamp(1.75rem, 4vw, 3rem) clamp(0rem, 2vw, 2rem);
	border-bottom: 1px solid var(--c-line);
}
@media (min-width: 800px) {
	.values li {
		padding-inline: clamp(1.25rem, 3vw, 2.5rem);
	}
}
.values__num {
	display: block;
	margin-bottom: 1rem;
	font-family: var(--font-display);
	font-size: 1rem;
	letter-spacing: 0.2em;
	color: var(--c-mute);
}
.values h3 {
	font-size: var(--fs-lg);
	font-weight: 400;
}
.values p {
	margin: 0;
	color: var(--c-taupe);
}
.about-cta {
	padding-block: var(--s-9);
	text-align: center;
	background: var(--c-stone);
}

/* ---- Contact ---- */
.contact {
	display: grid;
	gap: 3rem;
	padding-bottom: var(--s-9);
}
@media (min-width: 900px) {
	.contact {
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
		gap: clamp(3rem, 8vw, 7rem);
	}
}
.contact__info h2,
.contact__form h2 {
	font-size: var(--fs-lg);
}
.contact__list {
	margin: 0 0 2rem;
	padding: 0;
	list-style: none;
}
.contact__list li {
	padding: 1.1rem 0;
	border-bottom: 1px solid var(--c-line);
}
.contact__list span {
	display: block;
	margin-bottom: 0.15rem;
	font-size: var(--fs-xs);
	letter-spacing: var(--track-wide);
	text-transform: uppercase;
	color: var(--c-taupe);
}
.contact__list a {
	text-decoration: none;
}
.contact__list a:hover {
	text-decoration: underline;
}
.contact__note {
	font-size: var(--fs-sm);
	color: var(--c-taupe);
}
.form-grid {
	display: grid;
	gap: 1.25rem;
}
@media (min-width: 640px) {
	.form-grid--2 {
		grid-template-columns: 1fr 1fr;
	}
}
.form-field--full {
	grid-column: 1 / -1;
}
.hp-field {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.form-notice {
	margin-bottom: 1.5rem;
	padding: 1rem 1.25rem;
	font-size: var(--fs-sm);
	border-left: 2px solid var(--c-black);
	background: var(--c-stone);
}
.form-notice--error {
	border-color: var(--c-error);
	color: var(--c-error);
	background: #f6ecea;
}
.form-notice--ok {
	border-color: var(--c-ok);
	color: var(--c-ok);
	background: #edf2ec;
}

/* ==========================================================================
   12. PRINT
   ========================================================================== */
@media print {
	.site-header,
	.site-footer,
	.hero__toggle {
		display: none !important;
	}
}
