/* ==========================================================================
   Vape theme — tokens from docs/design-reference.md
   1rem = 14px (root 87.5%). Colours are RGB triplets for rgb(var(--x) / a).
   ========================================================================== */

@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Roboto Mono";
	src: url("../fonts/roboto-mono-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Roboto Mono";
	src: url("../fonts/roboto-mono-700.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

:root {
	/* Colour */
	--c-sale: 214 40 40; /* discounts: badge, sale price, savings line */
	--c-bg: 0 0 0;
	--c-text: 245 245 247;
	--c-accent: 183 172 153;
	--c-accent-contrast: 0 0 0;
	--c-line: 53 53 53;
	--c-muted: 149 149 152;

	--btn-bg: var(--c-text);
	--btn-text: var(--c-bg);
	--btn-bg-hover: var(--c-accent);
	--btn-text-hover: var(--c-accent-contrast);

	/* Type */
	--font-heading: "Inter", system-ui, sans-serif;
	--font-body: "Roboto Mono", ui-monospace, monospace;
	--tracking-heading: -0.025em;

	--fs-sm: 0.8rem;     /* 11.2 */
	--fs-base: 1rem;     /* 14 */
	--fs-lg: 1.25rem;    /* 17.5 */
	--fs-xl: 1.563rem;   /* 21.88 */
	--fs-2xl: 1.953rem;  /* 27.34 */
	--fs-3xl: 2.441rem;  /* 34.17 */
	--fs-4xl: 3.052rem;  /* 42.73 */
	--fs-6xl: 4.768rem;  /* 66.75 */
	--fs-8xl: 7.451rem;  /* 104.3 */

	--heading-standard: var(--fs-3xl);
	--heading-secondary: var(--fs-lg);

	/* Space */
	--space: 2rem;          /* 28 */
	--space-double: 4rem;   /* 56 */
	--space-half: 1rem;     /* 14 */
	--gutter: 0.5rem;       /* 7 mobile / 14 desktop */
	--line: 1px solid rgb(var(--c-line));
	--radius-pill: 9999px;
	--sticky-top: 53px;     /* measured by theme.js */

	/* Motion */
	--ease: cubic-bezier(.4, 0, .2, 1);
	--ease-slide: cubic-bezier(.25, 1, .5, 1);
	--dur-fast: 150ms;
	--dur-base: 200ms;
	--dur-drawer: 300ms;
}

@media (min-width: 1024px) {
	:root {
		--heading-standard: var(--fs-6xl);
		--heading-secondary: var(--fs-2xl);
		--gutter: 1rem;
	}
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html {
	font-size: 87.5%;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: rgb(var(--c-bg));
	color: rgb(var(--c-text));
	font: 400 var(--fs-base) / 1.5 var(--font-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

::selection {
	background: rgb(var(--c-accent));
	color: rgb(var(--c-accent-contrast));
}

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

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

h1, h2, h3, h4, h5, h6, p, ul, ol, figure {
	margin: 0;
}

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

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

:focus-visible {
	outline: 2px solid rgb(var(--c-accent));
	outline-offset: 4px;
}

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

.skip-link:focus {
	clip: auto;
	width: auto;
	height: auto;
	z-index: 100;
	top: 7px;
	left: 7px;
	padding: 7px 14px;
	background: rgb(var(--c-text));
	color: rgb(var(--c-bg));
}

.icon {
	width: 1.5rem;
	height: 1.5rem;
}

.icon path,
.icon circle {
	vector-effect: non-scaling-stroke;
}

@media (hover: hover) and (pointer: fine) {
	a:hover {
		color: rgb(var(--c-accent));
	}
}

/* ==========================================================================
   Primitives
   ========================================================================== */

.section {
	border-bottom: var(--line);
}

.section-header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--space-half);
	padding: var(--space-double) var(--gutter) var(--space);
	border-bottom: var(--line);
}

.section-header__title {
	font: 400 var(--heading-standard) / 1 var(--font-heading);
	letter-spacing: var(--tracking-heading);
}

.section-header__heading {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.section-header__meta {
	color: rgb(var(--c-muted));
	text-transform: uppercase;
}

.spacer {
	height: calc(var(--space) * 6);
	border-bottom: var(--line);
}

.spacer--footer {
	height: 160px;
}

@media (min-width: 768px) {
	.spacer {
		height: calc(var(--space) * 7);
	}

	.spacer--footer {
		height: 160px;
	}
}

/* Text link: 1px underline, uppercase, trailing arrow */
.text-link {
	display: inline-block;
	padding-bottom: 0.25rem;
	border-bottom: 1px solid currentColor;
	text-transform: uppercase;
	white-space: nowrap;
}

.text-link:not(.text-link--no-arrow)::after {
	content: "\00a0\2192";
}

/* Pill button — instant colour swap, hover gated to fine pointers */
.button,
button.button,
.single_add_to_cart_button,
.wc-block-components-button:not(.is-link),
.checkout-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 2.64rem;
	padding: 0.5rem 2rem;
	border: 1px solid rgb(var(--btn-bg));
	border-radius: var(--radius-pill);
	background: rgb(var(--btn-bg));
	color: rgb(var(--btn-text));
	font: 400 var(--fs-base) / 1.5 var(--font-body);
	text-transform: uppercase;
	text-align: center;
	cursor: pointer;
}

.single_add_to_cart_button::after,
.checkout-button::after {
	content: "\00a0\2192";
}

@media (hover: hover) and (pointer: fine) {
	.button:hover,
	.single_add_to_cart_button:hover,
	.wc-block-components-button:not(.is-link):hover,
	.checkout-button:hover {
		border-color: rgb(var(--btn-bg-hover));
		background: rgb(var(--btn-bg-hover));
		color: rgb(var(--btn-text-hover));
	}
}

.button:disabled,
.button.disabled,
.single_add_to_cart_button.disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.single_add_to_cart_button.disabled::after {
	content: none;
}

.single_add_to_cart_button.loading {
	opacity: 0.6;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
input[type="number"],
select,
textarea {
	width: 100%;
	padding: 0.5rem 0.75rem;
	border: var(--line);
	border-radius: 0;
	background: rgb(var(--c-bg));
	transition: border-color 150ms ease;
}

/* Fields: no accent outline on focus — the 1px border brightens instead */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: rgb(var(--c-text));
}

input::placeholder,
textarea::placeholder {
	color: rgb(var(--c-text) / 0.5);
}

/*
 * WooCommerce block checkout / cart fields render on a white background, but inherit the theme's light text,
 * so floating labels, placeholders and typed text vanished. Force dark text on those light fields.
 * (Theme fields on black — e.g. the search bar — keep the light placeholder above.)
 */
body .wc-block-components-form .wc-block-components-text-input input,
body .wc-block-components-text-input input,
body .wc-block-components-form .wc-block-components-textarea,
body .wc-block-components-textarea,
body .wc-blocks-components-select .wc-blocks-components-select__select,
body .wc-block-components-combobox .wc-block-components-combobox-control input,
body .wc-block-components-totals-coupon input {
	background-color: #fff;
	color: #000;
}

/* Form-scoped selectors too: Woo's `.wc-block-components-form .wc-block-components-text-input label { color: inherit }`
   out-specifies the plain ones, which left the address labels (first name, suburb, postcode…) near-white on white. */
body .wc-block-components-text-input label,
body .wc-block-components-text-input.is-active label,
body .wc-block-components-form .wc-block-components-text-input label,
body .wc-block-components-form .wc-block-components-text-input.is-active label,
body .wc-blocks-components-select .wc-blocks-components-select__label,
body .wc-block-components-combobox .wc-block-components-combobox-control label,
body .wc-block-components-checkout-step__description {
	color: rgb(0 0 0 / 0.6);
}

body .wc-block-components-text-input input::placeholder,
body .wc-block-components-form .wc-block-components-text-input input::placeholder,
body .wc-block-components-textarea::placeholder,
body .wc-block-components-totals-coupon input::placeholder {
	color: rgb(0 0 0 / 0.6);
	opacity: 1;
}

body .wc-blocks-components-select .wc-blocks-components-select__expand {
	fill: #000;
}

/* ==========================================================================
   Announcement bar — narrow white strip above the header (scrolls away; header stays sticky)
   ========================================================================== */

.announcement {
	background: #fff;
	color: #000;
}

.announcement__text {
	overflow: hidden;
	padding: 0.35rem var(--gutter);
	font-size: var(--fs-sm);
	font-weight: 400; /* Roboto Mono ships 400 / 700 only — 400 is the lighter option */
	letter-spacing: 0.04em;
	line-height: 1.5;
	text-align: center;
	text-transform: uppercase;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 30;
	background: rgb(var(--c-bg));
	border-bottom: var(--line);
}

/* Frosted glass where supported: translucent black + blur/saturate (solid black fallback above). */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.site-header,
	.site-header .search-bar,
	.site-nav .sub-menu {
		background: rgb(var(--c-bg) / 0.55);
		-webkit-backdrop-filter: blur(18px) saturate(160%);
		backdrop-filter: blur(18px) saturate(160%);
	}

	.site-header {
		border-bottom-color: rgb(var(--c-text) / 0.12);
	}
}

.admin-bar .site-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}
}

.site-header__bar {
	display: flex;
	align-items: stretch;
	gap: var(--space-half);
	padding-inline: var(--gutter);
}

.site-logo {
	display: flex;
	align-items: center;
	padding-block: 0.75rem;
	font: 400 var(--fs-xl) / 1 var(--font-heading);
	letter-spacing: var(--tracking-heading);
	white-space: nowrap; /* keep the site name on one line in the header */
}

.site-logo img {
	max-width: 180px;
	max-height: 2.5rem;
	width: auto;
	height: auto;
}

.site-nav {
	display: none;
	flex: 1;
}

.site-nav__list {
	display: flex;
	flex: 1;
	justify-content: flex-start; /* left-aligned after the logo, not spread across the bar */
	gap: 2.5rem;
	height: 100%;
	white-space: nowrap;
}

/* 4 shop links + 6 brands: tighten the gap on small laptops (14px at 1024px → 2.5rem from ~1540px). */
.site-header .site-nav__list {
	gap: clamp(1rem, 4.2vw - 2.1rem, 2.5rem);
}

.site-nav__list > li > a {
	display: flex;
	align-items: center;
	height: 100%;
	padding-block: 1rem;
}

.site-nav__list .current-menu-item > a,
.site-nav__list .current-product_cat-ancestor > a {
	color: rgb(var(--c-accent));
}

/* One-level dropdown: full-width panel under the header, 200ms fade */
.site-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	gap: var(--space);
	padding-block: 1rem;
	background: rgb(var(--c-bg));
	border-block: var(--line);
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--dur-base) var(--ease), visibility 0s linear var(--dur-base);
}

.site-nav .menu-item-has-children:hover > .sub-menu,
.site-nav .menu-item-has-children:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transition: opacity var(--dur-base) var(--ease);
}

.site-nav .sub-menu a {
	display: block;
	padding-block: 0.25rem;
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-left: auto;
}

.icon-button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	min-height: 2.25rem;
}

.icon-button--desktop {
	display: none;
}

.cart-count.has-items {
	position: absolute;
	top: 0.4rem;
	right: 0.25rem;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: var(--radius-pill);
	background: rgb(var(--c-accent));
}

@media (min-width: 1024px) {
	.site-header__bar {
		gap: var(--space);
	}

	.site-logo img {
		max-width: 220px;
		max-height: 3rem;
	}

	.site-nav,
	.icon-button--desktop {
		display: flex;
	}

	.site-header__actions {
		gap: 1rem;
	}

	.icon-button--mobile {
		display: none;
	}
}

/* Search bar */
.search-bar {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	padding: 1rem var(--gutter);
	background: rgb(var(--c-bg));
	border-bottom: var(--line);
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--dur-base) var(--ease), visibility 0s linear var(--dur-base);
}

.search-bar.is-open {
	opacity: 1;
	visibility: visible;
	transition: opacity var(--dur-base) var(--ease);
}

.search-bar input[type="search"] {
	border: 0;
	border-bottom: var(--line);
	padding-inline: 0;
	font: 400 var(--fs-xl) / 1.5 var(--font-heading);
	letter-spacing: var(--tracking-heading);
}

.search-bar input[type="search"]:focus {
	outline: none;
	border-bottom-color: rgb(var(--c-text));
}

/* ==========================================================================
   Drawer (mobile menu) — slides 300ms, no dim
   ========================================================================== */

.drawer {
	position: fixed;
	inset: 0;
	z-index: 110;
	visibility: hidden;
	transition: visibility 0s linear var(--dur-drawer);
}

.drawer.is-open {
	visibility: visible;
	transition: none;
}

.drawer__panel {
	width: 91.666%;
	max-width: 28rem;
	height: 100%;
	overflow-y: auto;
	background: rgb(var(--c-bg));
	border-right: var(--line);
	transform: translateX(-100%);
	transition: transform var(--dur-drawer) var(--ease);
}

.drawer.is-open .drawer__panel {
	transform: none;
}

.drawer__head {
	display: flex;
	justify-content: flex-end;
	padding: 0.5rem var(--gutter);
}

.drawer__menu {
	display: block;
	height: auto;
}

.drawer__menu > li {
	border-top: var(--line);
}

.drawer__menu > li > a {
	display: block;
	padding: 1rem var(--gutter);
	font: 400 var(--heading-standard) / 1 var(--font-heading);
	letter-spacing: var(--tracking-heading);
}

/* ==========================================================================
   Marquee — rows of thumbnail + name, translate 0 → -50% at constant speed (duration set in JS)
   ========================================================================== */

.marquee {
	--marquee-seconds: 22; /* seconds per 1024px of track: 22 ≈ 23px/s (reference site: 11 ≈ 46px/s). Higher = slower. */
	overflow: hidden;
	border-bottom: var(--line);
}

.marquee__track {
	display: flex;
	width: max-content;
	white-space: nowrap;
}

.marquee__group {
	display: flex;
	align-items: center;
	gap: var(--marquee-gap);
	padding-right: var(--marquee-gap);
}

.marquee__item {
	display: inline-flex;
	align-items: center;
	gap: 0.22em;
}

.marquee__thumb {
	position: relative;
	flex: none;
	width: 0.82em;
	height: 0.82em;
	overflow: hidden;
}

.marquee__thumb-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.marquee__rule {
	display: inline-block;
	width: 6em;
	height: 1px;
	margin-inline: 0.2em 0.35em;
	background: currentColor;
}

/* Heading rows: Inter, fluid 27px (phone) → 67px (wide desktop) */
.marquee--heading {
	--marquee-gap: 1.25em;
	padding-block: 0.12em;
	font: 400 clamp(1.953rem, 1rem + 3.4vw, 4.768rem) / 1.25 var(--font-heading);
	letter-spacing: var(--tracking-heading);
}

.marquee--heading + .marquee--heading {
	margin-top: 0;
}

.marquee--strip {
	--marquee-gap: 0;
	padding-block: 0.5rem;
}

.marquee--strip .marquee__rule {
	width: 3em;
	margin-inline: 1em;
}

.marquee-stack {
	border-top: var(--line);
}

/* Home marquee rows: about half the product-page size — 17.5px (phone) → 34px (desktop). */
.marquee-stack .marquee--heading {
	--marquee-gap: 1.5em;
	padding-block: 0.3em;
	font-size: clamp(1.25rem, 0.8rem + 1.8vw, 2.441rem);
}

@media (prefers-reduced-motion: no-preference) {
	.marquee.is-ready .marquee__track {
		animation: marquee var(--marquee-duration, 20s) linear infinite;
	}

	.marquee--reverse.is-ready .marquee__track {
		animation-direction: reverse;
	}

	@media (hover: hover) and (pointer: fine) {
		.marquee:hover .marquee__track {
			animation-play-state: paused;
		}
	}
}

@keyframes marquee {
	from { transform: translate3d(0, 0, 0); }
	to   { transform: translate3d(-50%, 0, 0); }
}

/* ==========================================================================
   Product grid + card — 1px hairlines drawn only around existing cells
   ========================================================================== */

.product-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	overflow: hidden;
}

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

.product-card {
	position: relative;
	background: rgb(var(--c-bg));
	box-shadow: 1px 0 0 rgb(var(--c-line)), 0 1px 0 rgb(var(--c-line));
}

.product-card__link {
	display: block;
	height: 100%;
}

.product-card__media {
	padding: 0.5rem var(--gutter) 0;
}

/* List pages (shop, category, home grids, carousels): square cards, photos centre-cropped. */
.product-card__frame {
	--card-ratio: 1;
	position: relative;
	aspect-ratio: var(--card-ratio);
	overflow: hidden;
	background: rgb(var(--c-text) / 0.05);
}

.product-card__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Focus crop (vape_card_image): uncropped image scaled/offset so a chosen square fills the frame. */
.product-card__image.is-cropped,
.marquee__thumb-img.is-cropped {
	inset: auto;
	top: var(--crop-y);
	left: var(--crop-x);
	width: var(--crop-w);
	max-width: none;
	height: auto;
	object-fit: fill;
}

.product-card__badge {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	z-index: 1;
	padding: 0.1rem 0.4rem;
	background: rgb(var(--c-accent));
	color: rgb(var(--c-accent-contrast));
	font-size: var(--fs-sm);
}

/* Discount badge keeps the original look (tan, square, top-right) — just shows the percentage, bolder. */
.product-card__badge--sale {
	font-weight: 700;
}

@media (min-width: 1024px) {
	.product-card__badge--sale {
		font-size: var(--fs-base);
	}
}

.product-card__badge--muted {
	background: rgb(var(--c-bg));
	color: rgb(var(--c-muted));
	border: var(--line);
}

.product-card__image--hover {
	opacity: 0;
	transition: opacity var(--dur-base) var(--ease);
}

.product-card__body {
	padding: 1rem var(--gutter);
}

.product-card__title {
	font: 400 var(--fs-sm) / 1.5 var(--font-body);
}

.product-card__price {
	margin-top: 0.25rem;
	font-size: var(--fs-sm);
}

/* Sale price: new price first, larger and red; original struck through beside it. */
.product-card__price:has(ins) {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 0.5rem;
}

.product-card__price del {
	order: 2;
	color: rgb(var(--c-text) / 0.45);
}

.product-card__price ins {
	order: 1;
	text-decoration: none;
	color: rgb(var(--c-sale));
	font-weight: 700;
	font-size: 1.15em;
}

@media (min-width: 1024px) {
	.product-card__media {
		padding-top: 1rem;
	}

	.product-card__title,
	.product-card__price {
		font-size: var(--fs-base);
	}

	.product-card__price {
		margin-top: 0.5rem;
	}
}

@media (hover: hover) and (pointer: fine) {
	.product-card:hover .product-card__image--hover,
	.product-card:focus-within .product-card__image--hover {
		opacity: 1;
	}

	.product-card:hover .product-card__body {
		color: rgb(var(--c-accent));
	}
}

/* ==========================================================================
   Slider (carousel + mobile gallery) — scroll-snap, dots + arrows
   ========================================================================== */

[data-slider-track] {
	scroll-behavior: smooth;
	scrollbar-width: none;
}

[data-slider-track]::-webkit-scrollbar {
	display: none;
}

.slider-controls {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	margin: 0.5rem 0.25rem 0;
	padding-bottom: var(--space-double);
}

.slider-dots {
	display: flex;
	flex-wrap: wrap;
}

.slider-dot {
	position: relative;
	width: 0.5rem;
	height: 0.5rem;
	margin: 0.25rem;
	border: 1px solid currentColor;
	border-radius: var(--radius-pill);
}

.slider-dot::before {
	content: "";
	position: absolute;
	inset: -0.4rem;
}

.slider-dot.is-active {
	background: currentColor;
}

.slider-arrows {
	display: flex;
	gap: 0.25rem;
}

.slider-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
}

.slider-arrow:disabled {
	opacity: 0.3;
	cursor: default;
}

@media (min-width: 1024px) {
	.slider-controls {
		margin-inline: 1rem;
	}
}

.carousel__track {
	display: flex;
	gap: 1px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	border-bottom: var(--line);
}

.carousel__track > .product-card {
	flex: 0 0 80%;
	scroll-snap-align: start;
	box-shadow: 1px 0 0 rgb(var(--c-line));
}

@media (min-width: 1024px) {
	.carousel__track > .product-card {
		flex-basis: 22%;
	}
}

/* Home combos: carousel below 1024px (like the product lines), 4-up grid on desktop with no slider controls. */
@media (min-width: 1024px) {
	.home-packs .carousel__track {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		overflow: visible;
	}

	.home-packs .slider-controls {
		display: none;
	}
}

/* ==========================================================================
   Single product
   ========================================================================== */

.product-main {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	border-bottom: var(--line);
}

.product-media {
	padding-bottom: 0;
	border-bottom: var(--line);
}

.product-summary {
	padding-inline: var(--gutter);
}

.product-summary__inner {
	padding-block: var(--space);
}

/* Gallery: slider on mobile */
.product-gallery__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
}

.product-gallery__item {
	flex: 0 0 100%;
	padding: 0.5rem;
	scroll-snap-align: start;
}

/* Detail page shows the full photo at its natural ratio — never cropped. */
.product-gallery__item img {
	width: 100%;
}

.product-gallery__controls {
	padding-bottom: 0.5rem;
}

@media (min-width: 1024px) {
	.product-main {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1px;
		background: rgb(var(--c-line));
	}

	.product-media,
	.product-summary {
		background: rgb(var(--c-bg));
		border-bottom: 0;
	}

	.product-gallery {
		position: sticky;
		top: calc(var(--sticky-top) - 1px);
		padding: 1rem;
	}

	.product-gallery__track {
		display: grid;
		gap: 1rem;
		overflow: visible;
	}

	.product-gallery__item {
		padding: 0;
	}

	.product-gallery__controls {
		display: none;
	}

	.product-summary__inner {
		position: sticky;
		top: var(--sticky-top);
	}
}

/* Summary stack — 28px rhythm */
.product-summary__inner > * + * {
	margin-top: var(--space);
}

.product-info__title {
	margin-top: 1rem;
	font: 400 var(--heading-standard) / 1 var(--font-heading);
	letter-spacing: var(--tracking-heading);
}

.product-summary__inner > .product-info__brand {
	display: block;
	margin-top: 0.5rem;
}

.product-info__price {
	font: 400 var(--heading-secondary) / 1 var(--font-heading);
	letter-spacing: var(--tracking-heading);
}

.product-info__price del {
	color: rgb(var(--c-text) / 0.45);
	margin-right: 0.5rem;
	font-size: 0.7em;
}

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

.product-summary__inner > .product-info__save {
	display: inline-block;
	margin-top: 0.75rem;
	padding: 0.25rem 0.75rem;
	background: rgb(var(--c-sale));
	color: #fff;
	font-weight: 700;
	font-size: var(--fs-sm);
	text-transform: uppercase;
	border-radius: var(--radius-pill);
}

.product-summary__inner > .product-info__minimum {
	margin-top: 1rem;
	padding: 0.6rem 0.9rem;
	border: var(--line);
	color: rgb(var(--c-text) / 0.8);
	font-size: var(--fs-sm);
	text-transform: uppercase;
}

.product-info__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.stock {
	color: rgb(var(--c-muted));
}

.stock.out-of-stock {
	color: rgb(var(--c-accent));
}

/* Key feature icons — hairline grid, packaging-style */
.product-highlights {
	display: grid;
	/* Column count comes from the item count (vape_single_highlights) so no empty cells show the line colour. */
	grid-template-columns: repeat(var(--hl-cols-phone, 2), minmax(0, 1fr));
	gap: 1px;
	max-width: 42rem;
	overflow: hidden;
	border: var(--line);
	background: rgb(var(--c-line));
}

.product-highlights__item {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 0.75rem;
	background: rgb(var(--c-bg));
}

.product-highlights__item:last-child {
	grid-column: span var(--hl-last-span-phone, 1);
}

@media (min-width: 600px) {
	.product-highlights {
		grid-template-columns: repeat(var(--hl-cols, 4), minmax(0, 1fr));
	}

	.product-highlights__item:last-child {
		grid-column: span var(--hl-last-span, 1);
	}
}

.product-highlights__item .icon {
	width: 1.75rem;
	height: 1.75rem;
	margin-bottom: 0.25rem;
	color: rgb(var(--c-accent));
}

.product-highlights__label {
	font-size: var(--fs-sm);
	text-transform: uppercase;
}

.product-highlights__detail {
	font-size: var(--fs-sm);
	line-height: 1.4;
	color: rgb(var(--c-muted));
}

/* Add-to-cart form */
form.cart {
	max-width: 42rem;
}

form.cart:not(.variations_form),
.woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0.5rem;
}

form.cart:not(.variations_form) .single_add_to_cart_button {
	flex: 1;
	width: auto;
}

.quantity input.qty {
	width: 4.5rem;
	height: 100%;
	border-radius: var(--radius-pill);
	text-align: center;
	-moz-appearance: textfield;
}

.quantity input.qty::-webkit-outer-spin-button,
.quantity input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
}

/* Mix & match pack: one flavour select per device */
.pack-picker {
	flex-basis: 100%;
	margin: 0 0 var(--space-half);
	padding: 0;
	border: 0;
}

.pack-picker__legend {
	margin-bottom: 0.5rem;
	padding: 0;
}

.pack-picker__slots {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
	gap: 0.5rem;
}

.pack-picker__slot {
	display: flex;
	align-items: center;
	border: var(--line);
	border-radius: var(--radius-pill);
}

.pack-picker__index {
	flex: none;
	width: 2.25rem;
	color: rgb(var(--c-muted));
	text-align: center;
	border-right: var(--line);
}

.pack-picker__slot select {
	border: 0;
	border-radius: var(--radius-pill);
	background: transparent;
	cursor: pointer;
}

.pack-picker__slot select:focus-visible {
	outline: 2px solid rgb(var(--c-accent));
	outline-offset: 2px;
}

.pack-picker__slot:has(select:invalid) select {
	color: rgb(var(--c-muted));
}

/* Variations → pills (select stays in DOM, synced by product.js) */
table.variations,
table.variations tbody,
table.variations tr,
table.variations th,
table.variations td {
	display: block;
	padding: 0;
	text-align: left;
}

table.variations {
	border-collapse: collapse;
}

table.variations tr + tr {
	margin-top: var(--space-half);
}

table.variations th label {
	font-weight: 400;
}

table.variations th label::after {
	content: ":";
}

table.variations td.value {
	margin-top: 0.5rem;
}

.variations select.is-enhanced {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
}

.pill {
	position: relative;
}

.pill input {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}

.pill span {
	display: block;
	min-width: 2.25rem;
	padding: 0.5rem 0.75rem;
	border: 1px solid transparent;
	border-radius: var(--radius-pill);
	text-align: center;
	user-select: none;
}

.pill input:checked + span {
	border-color: rgb(var(--c-text));
}

.pill input:focus-visible + span {
	outline: 2px solid rgb(var(--c-accent));
	outline-offset: 2px;
}

.pill.is-unavailable span {
	color: rgb(var(--c-text) / 0.4);
	text-decoration: line-through;
}

.reset_variations {
	display: inline-block;
	margin-top: 0.5rem;
	font-size: var(--fs-sm);
	text-transform: uppercase;
	border-bottom: 1px solid currentColor;
}

.single_variation_wrap {
	margin-top: var(--space);
}

.woocommerce-variation-price {
	display: none; /* price is mirrored into the heading price */
}

.woocommerce-variation-availability,
.woocommerce-variation-description {
	margin-bottom: var(--space-half);
}

/* Flavour profile (variation description): label left, ●●●○○ right */
.flavour-profile {
	max-width: 20rem;
	border-top: var(--line);
}

.flavour-profile li {
	display: flex;
	justify-content: space-between;
	padding-block: 0.25rem;
	border-bottom: var(--line);
}

.flavour-profile li span:first-child {
	color: rgb(var(--c-muted));
}

.flavour-profile li span:last-child {
	letter-spacing: 0.2em;
}

/* Rich text */
.rte > * + * {
	margin-top: 1rem;
}

.rte ul {
	list-style: none;
}

.rte li + li {
	margin-top: 0.5rem;
}

.rte strong {
	font-weight: 700;
}

.rte a {
	border-bottom: 1px solid currentColor;
}

.rte h1,
.rte h2,
.rte h3 {
	font-family: var(--font-heading);
	font-weight: 400;
	letter-spacing: var(--tracking-heading);
	line-height: 1.2;
}

.rte h2 { font-size: var(--fs-2xl); }
.rte h3 { font-size: var(--fs-xl); }

.rte__label {
	color: rgb(var(--c-muted));
}

.rte__features {
	margin-top: 0.25rem !important;
	color: rgb(var(--c-muted));
}

.rte__features li {
	margin-top: 0 !important;
}

.rte__features li::before {
	content: "· ";
}

/* ==========================================================================
   Archive — title, category tabs, sidebar (sort/filter), 3-col grid, pagination
   ========================================================================== */

.archive-header {
	padding: var(--space-double) var(--gutter) var(--space);
	border-bottom: var(--line);
}

.archive-header__title {
	font: 400 var(--heading-standard) / 1 var(--font-heading);
	letter-spacing: var(--tracking-heading);
}

.archive-header__intro {
	max-width: 60ch;
	margin-top: 1rem;
}

.archive-nav {
	display: flex;
	gap: 0.5rem 1.5rem;
	padding: 1rem var(--gutter);
	overflow-x: auto;
	white-space: nowrap;
	scrollbar-width: none;
	border-bottom: var(--line);
}

.archive-nav::-webkit-scrollbar {
	display: none;
}

.archive-nav a {
	padding-bottom: 0.25rem;
	border-bottom: 1px solid transparent;
}

.archive-nav a.is-active {
	border-bottom-color: currentColor;
}

.archive-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
}

/* Sidebar */
.shop-sidebar {
	border-bottom: var(--line);
}

.shop-sidebar__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 0.75rem var(--gutter);
	text-transform: uppercase;
}

.shop-sidebar__toggle .icon,
.filter-group__title .icon {
	width: 0.9rem;
	height: 0.9rem;
	transition: transform var(--dur-fast) var(--ease);
}

.shop-sidebar.is-open .shop-sidebar__toggle .icon,
.filter-group[open] > .filter-group__title .icon {
	transform: rotate(180deg);
}

.shop-filters {
	display: none;
	border-top: var(--line);
}

.shop-sidebar.is-open .shop-filters {
	display: block;
}

.filter-group {
	border-bottom: var(--line);
}

.filter-group:last-child {
	border-bottom: 0;
}

.filter-group__title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem var(--gutter);
	font-size: var(--fs-sm);
	text-transform: uppercase;
	list-style: none;
	cursor: pointer;
	user-select: none;
}

.filter-group__title::-webkit-details-marker {
	display: none;
}

.filter-group__list {
	padding: 0 var(--gutter) 1rem;
	font-size: var(--fs-sm);
	text-transform: uppercase;
}

.filter-link {
	display: block;
	padding-block: 0.1rem;
}

.filter-link::before {
	content: "\25CB\00a0";
}

.filter-link.is-active::before {
	content: "\25CF\00a0";
}

@media (pointer: coarse) {
	.filter-link {
		padding-block: 0.4rem;
	}
}

@media (min-width: 1024px) {
	.archive-body {
		grid-template-columns: 18.75rem minmax(0, 1fr);
	}

	.shop-sidebar {
		border-bottom: 0;
		border-right: var(--line);
	}

	.shop-sidebar__toggle {
		display: none;
	}

	.shop-filters {
		position: sticky;
		top: var(--sticky-top);
		display: block;
		max-height: calc(100vh - var(--sticky-top));
		overflow-y: auto;
		border-top: 0;
		border-bottom: var(--line);
		scrollbar-width: thin;
	}
}

/* Results */
.archive-results {
	min-width: 0;
	transition: opacity var(--dur-base) var(--ease);
}

.archive-results.is-loading {
	opacity: 0.4;
	pointer-events: none;
}

.archive-results.is-entering {
	opacity: 0;
	transition: none;
}

.archive-results > .woocommerce-notices-wrapper:empty {
	display: none;
}

/* 2 cols on phones, 3 on small desktops, 4 from laptop width (13" ≈ 1280px+) */
@media (min-width: 1024px) {
	.archive-results .product-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1280px) {
	.archive-results .product-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.archive-empty {
	padding: var(--space) var(--gutter);
}

.archive-empty > * + * {
	margin-top: 1rem;
}

/* Pagination */
.archive-pagination {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	padding: var(--space) var(--gutter);
	border-top: var(--line);
}

.archive-pagination__pages {
	display: flex;
	gap: 0.75rem;
}

.archive-pagination__pages .page-numbers {
	display: inline-block;
	padding-bottom: 0.15rem;
	border-bottom: 1px solid transparent;
}

.archive-pagination__pages .current {
	border-bottom-color: currentColor;
}

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

.text-link--back::before {
	content: "\2190\00a0";
}

.text-link--back::after {
	content: none !important;
}

/* ==========================================================================
   Home top = banner carousel + marquee (.home-top)
   Slides crossfade. Banner photo sits on the right at a size that fits the stage; copy is inset from the
   left edge and vertically centred. The last slide is the product render, kept as it was before the
   carousel: leaning 40° on desktop, over on the right, with the cutaway wiping in on page scroll.
   Dots: the active one is a longer pill.
   ========================================================================== */

.home-top {
	/* Carousel + marquee together fill 90% of the screen under the header. */
	--hero-screen: calc((100svh - var(--sticky-top)) * 0.9);
	--hero-product-size: calc(var(--hero-screen) * 0.92); /* product render (square); the device is ~92% of it */
	--hero-product-x: 80vw;          /* product centre, from the left edge */
	--hero-reveal-distance: 45svh;   /* page scroll over which the cutaway wipes in */
	--hero-reveal-feather: 0.2;      /* soft wipe edge, as a fraction of the image height */
	--hero-reveal-start: 20px;       /* the wipe starts this far above the image bottom */
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: var(--hero-screen);
}

.hero-carousel {
	position: relative;
	flex: 1;
	min-height: 20rem;
	border-bottom: var(--line);
	background: #000;
	overflow: hidden;
	touch-action: pan-y;
}

.hero-carousel__viewport {
	position: absolute;
	inset: 0;
}

/* Slides stack; only the active one is painted. */
.hero-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 700ms var(--ease), visibility 0s linear 700ms;
}

.hero-slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity 700ms var(--ease);
}

/* Banner photo: scaled to the stage, over on the right, never cropped. */
.hero-slide__image {
	position: absolute;
	top: 50%;
	right: 2vw;
	width: min(56vw, 60rem);
	height: 84%;
	translate: 0 -50%;
	object-fit: contain;
	object-position: right center;
	/* Soften both side edges into the black stage instead of ending on a straight cut. */
	-webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
	mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
	/* Slow drift while the slide is up, so a 2s hold doesn't feel static. */
	scale: 1.04;
	transition: scale 6s linear;
}

.hero-slide.is-active .hero-slide__image {
	scale: 1;
}

/* Copy: inset from the left edge, sitting above the middle of the stage. */
.hero-slide__copy {
	position: absolute;
	top: 50%;
	left: clamp(var(--gutter), 7vw, 9rem);
	z-index: 1;
	max-width: min(38rem, 52vw);
	translate: 0 -58%; /* a little above centre */
}

.hero-slide__eyebrow {
	font-size: var(--fs-xl);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.hero-slide__headline {
	margin-top: 0.5rem;
	font: 400 clamp(3rem, 7.6vw, 7rem) / 0.98 var(--font-heading);
	letter-spacing: var(--tracking-heading);
}

.hero-slide__sub {
	margin-top: 1rem;
	color: rgb(var(--c-text) / 0.85);
	font-size: var(--fs-xl);
}

.hero-slide__cta {
	display: inline-flex;
	align-items: center;
	margin-top: var(--space);
	padding: 0.7rem 1.8rem;
	border: 1px solid rgb(var(--btn-bg));
	border-radius: var(--radius-pill);
	background: rgb(var(--btn-bg));
	color: rgb(var(--btn-text));
	font-size: var(--fs-lg);
	text-transform: uppercase;
}

.hero-slide__cta::after {
	content: "\00a0\2192";
}

@media (hover: hover) and (pointer: fine) {
	.hero-slide__cta:hover {
		border-color: rgb(var(--btn-bg-hover));
		background: rgb(var(--btn-bg-hover));
		color: rgb(var(--btn-text-hover));
	}
}

/*
 * Product slide — unchanged from the pre-carousel hero: square render centred on --hero-product-x,
 * reflection faded at the bottom, cutaway revealed by page scroll.
 */
.hero__product {
	position: absolute;
	top: 50%;
	left: var(--hero-product-x);
	height: var(--hero-product-size);
	aspect-ratio: 1;
	translate: -50% -50%;
	/* The render's floor reflection (below the device, ~91% down) is opaque and ends in a hard line at the
	   image edge — fade it out so no sharp strip shows under the device. */
	-webkit-mask-image: linear-gradient(#000 90%, transparent 99%);
	mask-image: linear-gradient(#000 90%, transparent 99%);
}

.hero__product-img {
	width: 100%;
	height: 100%;
	max-width: none;
}

/*
 * Scroll reveal: the cutaway sits in a clipping window that rises from below over the photo while the
 * image inside slides the opposite way by the same amount, so the render stays locked to the photo
 * pixel-for-pixel. Transform-only → composited; driven by a CSS scroll timeline where supported,
 * with a rAF fallback in assets/js/hero-reveal.js. The window is 1 + feather tall; the extra strip is
 * the soft edge.
 */
.hero__reveal {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: calc(100% * (1 + var(--hero-reveal-feather)));
	overflow: hidden;
	/* Soft edge on top: the wipe rises bottom → top. */
	-webkit-mask-image: linear-gradient(transparent, #000 calc(100% * var(--hero-reveal-feather) / (1 + var(--hero-reveal-feather))));
	mask-image: linear-gradient(transparent, #000 calc(100% * var(--hero-reveal-feather) / (1 + var(--hero-reveal-feather))));
	transform: translate3d(0, calc(100% - var(--hero-reveal-start)), 0);
}

.hero__reveal-img {
	height: calc(100% / (1 + var(--hero-reveal-feather)));
	transform: translate3d(0, calc(var(--hero-reveal-start) - (1 + var(--hero-reveal-feather)) * 100%), 0);
}

@supports (animation-timeline: scroll(root)) {
	.hero__reveal,
	.hero__reveal-img {
		animation: linear both;
		animation-timeline: scroll(root);
		animation-range: 0 var(--hero-reveal-distance);
	}

	.hero__reveal {
		animation-name: vape-hero-reveal-window;
	}

	.hero__reveal-img {
		animation-name: vape-hero-reveal-image;
	}
}

@keyframes vape-hero-reveal-window {
	from { transform: translate3d(0, calc(100% - var(--hero-reveal-start)), 0); }
	to   { transform: translate3d(0, 0, 0); }
}

@keyframes vape-hero-reveal-image {
	from { transform: translate3d(0, calc(var(--hero-reveal-start) - (1 + var(--hero-reveal-feather)) * 100%), 0); }
	to   { transform: translate3d(0, 0, 0); }
}

/* Arrows: hairline circles, clear of the copy. */
.hero-carousel__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	translate: 0 -50%;
	border: var(--line);
	border-radius: var(--radius-pill);
	background: rgb(0 0 0 / 0.35);
	color: rgb(var(--c-text));
	cursor: pointer;
	transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.hero-carousel__arrow .icon {
	width: 1.1rem;
	height: 1.1rem;
}

.hero-carousel__arrow--prev {
	left: var(--gutter);
}

.hero-carousel__arrow--prev .icon {
	rotate: 180deg;
}

.hero-carousel__arrow--next {
	right: var(--gutter);
}

@media (hover: hover) and (pointer: fine) {
	.hero-carousel__arrow:hover {
		border-color: rgb(var(--c-text));
		background: rgb(0 0 0 / 0.7);
	}
}

/* Dots: small bars; the current slide is a longer pill in the accent colour. */
.hero-carousel__dots {
	position: absolute;
	right: 0;
	bottom: 1rem;
	left: 0;
	z-index: 2;
	display: flex;
	gap: 0.5rem;
	justify-content: center;
}

.hero-carousel__dot {
	width: 0.5rem;
	height: 0.5rem;
	padding: 0;
	border: 0;
	border-radius: var(--radius-pill);
	background: rgb(var(--c-text) / 0.45);
	cursor: pointer;
	transition: width var(--dur-base) var(--ease), background var(--dur-base) var(--ease);
}

.hero-carousel__dot.is-active {
	width: 2rem;
	background: rgb(var(--c-accent));
}

@media (min-width: 1024px) {
	/* Desktop: the device leans 40° clockwise (cutaway, reveal wipe and reflection fade turn with it). */
	.home-top {
		--hero-product-x: 77vw;
	}

	.hero-slide--product .hero__product {
		rotate: 40deg;
	}

	.hero-carousel__dots {
		bottom: 1.5rem;
	}
}

@media (max-width: 767px) {
	/* Phones: photo on top, copy under it on solid black. */
	.home-top {
		--hero-product-x: 62vw;
		--hero-product-size: min(96vw, calc(var(--hero-screen) * 0.62));
		--hero-reveal-distance: 22svh; /* cutaway wipes in faster than desktop */
	}

	.hero-slide__image {
		top: 46%;
		right: 0;
		left: 0;
		width: 100%;
		height: 62%;
		translate: 0 -50%;
		object-fit: cover;
		object-position: center;
		/* Soft top and bottom edges instead of the desktop side fade. */
		-webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent);
		mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent);
	}

	.hero-slide__copy {
		top: auto;
		bottom: 3.5rem;
		left: var(--gutter);
		max-width: none;
		padding-right: var(--gutter);
		translate: 0 0;
	}

	.hero-slide__headline {
		font-size: clamp(2.5rem, 12vw, 4rem);
	}

	.hero-slide--product .hero__product {
		top: 42%;
	}

	.hero-carousel__arrow {
		width: 2.1rem;
		height: 2.1rem;
	}

	.hero-carousel__dots {
		bottom: 0.6rem;
	}
}

/* ==========================================================================
   Pages (cart, checkout, account)
   ========================================================================== */

.page__content {
	padding: var(--space) var(--gutter) var(--space-double);
}

.page__content > .woocommerce,
.page__content > .wp-block-woocommerce-cart,
.page__content > .wp-block-woocommerce-checkout {
	max-width: none;
}

/* Empty cart (content written by store-settings): centred heading, muted line, pill button — no Woo sad-face icon. */
.wp-block-woocommerce-empty-cart-block {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-half);
	padding: calc(var(--space) * 3) var(--gutter);
	text-align: center;
}

.wp-block-woocommerce-empty-cart-block .with-empty-cart-icon::before,
.wp-block-woocommerce-empty-cart-block .wp-block-separator {
	display: none;
}

.wp-block-woocommerce-empty-cart-block .cart-empty__title {
	margin: 0;
	font: 400 var(--heading-secondary) / 1.2 var(--font-heading);
	letter-spacing: var(--tracking-heading);
}

.wp-block-woocommerce-empty-cart-block .cart-empty__text {
	margin: 0;
	color: rgb(var(--c-muted));
	text-transform: uppercase;
	font-size: var(--fs-sm);
}

.wp-block-woocommerce-empty-cart-block .cart-empty__actions {
	margin-top: var(--space-half);
}

.wp-block-woocommerce-empty-cart-block .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	min-height: 2.64rem;
	padding: 0.5rem 2rem;
	border: 1px solid rgb(var(--btn-bg));
	border-radius: var(--radius-pill);
	background: rgb(var(--btn-bg));
	color: rgb(var(--btn-text));
	font: 400 var(--fs-base) / 1.5 var(--font-body);
	text-transform: uppercase;
	text-decoration: none;
}

.wp-block-woocommerce-empty-cart-block .wp-block-button__link::after {
	content: "\00a0\2192";
}

@media (hover: hover) and (pointer: fine) {
	.wp-block-woocommerce-empty-cart-block .wp-block-button__link:hover {
		border-color: rgb(var(--btn-bg-hover));
		background: rgb(var(--btn-bg-hover));
		color: rgb(var(--btn-text-hover));
	}
}

/* Order pay + order received (classic Woo templates, no Woo stylesheet): hairline summary, spaced sections. */
.woocommerce-thankyou-order-received {
	margin-bottom: var(--space);
	font: 400 var(--heading-secondary) / 1.3 var(--font-heading);
	letter-spacing: var(--tracking-heading);
}

.woocommerce ul.order_details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
	margin: 0 0 var(--space);
	border-top: var(--line);
}

.woocommerce ul.order_details li {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	margin: 0; /* not the .rte `li + li` spacing, which staggered the cells */
	padding: 0.75rem 1rem 0.75rem 0;
	border-bottom: var(--line);
	color: rgb(var(--c-muted));
	text-transform: uppercase;
	font-size: var(--fs-sm);
}

.woocommerce ul.order_details li strong {
	color: rgb(var(--c-text));
	text-transform: none;
	font-size: var(--fs-base);
	font-weight: 400;
	overflow-wrap: anywhere; /* long emails */
}

.woocommerce-order-details,
.woocommerce-customer-details {
	margin-top: var(--space-double);
}

.woocommerce-order-details__title,
.woocommerce-column__title {
	margin-bottom: var(--space-half);
	font: 400 var(--heading-secondary) / 1.2 var(--font-heading);
	letter-spacing: var(--tracking-heading);
}

.woocommerce-table--order-details {
	width: 100%;
	border-collapse: collapse;
	border-top: var(--line);
}

.woocommerce-table--order-details th,
.woocommerce-table--order-details td {
	padding: 0.75rem 0;
	border-bottom: var(--line);
	text-align: left;
	font-weight: 400;
	vertical-align: top;
}

.woocommerce-table--order-details thead th {
	color: rgb(var(--c-muted));
	text-transform: uppercase;
	font-size: var(--fs-sm);
}

.woocommerce-table--order-details :is(th, td):last-child {
	padding-left: 1rem;
	text-align: right;
}

.woocommerce-table--order-details tfoot th {
	color: rgb(var(--c-muted));
}

.woocommerce-table--order-details .product-quantity {
	color: rgb(var(--c-muted));
}

.woocommerce-customer-details .woocommerce-columns--addresses {
	display: grid;
	gap: var(--space-double) var(--space);
}

@media (min-width: 768px) {
	.woocommerce-customer-details .woocommerce-columns--addresses {
		grid-template-columns: 1fr 1fr;
	}
}

.woocommerce-customer-details address {
	padding-top: 0.75rem;
	border-top: var(--line);
	font-style: normal;
	line-height: 1.7;
}

.woocommerce-customer-details address p {
	margin: 0;
}

/* Logged-out My account (log in / create account / lost password): one centred column.
   The big "My account" page header is kept for screen readers only. */
.woocommerce-account:not(.logged-in) .page > .section-header {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	border: 0;
	padding: 0;
}

.woocommerce-account:not(.logged-in) .page__content {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 70vh;
	padding-block: var(--space-double);
}

.woocommerce-account:not(.logged-in) .page__content > .woocommerce {
	width: 100%;
	max-width: 48rem; /* 672px — doubled for desktop (was 24rem); phones stay full-width */
}

.woocommerce-account:not(.logged-in) .woocommerce-notices-wrapper:not(:empty) {
	margin-bottom: var(--space);
}

.woocommerce-account:not(.logged-in) .woocommerce-message,
.woocommerce-account:not(.logged-in) .woocommerce-info,
.woocommerce-account:not(.logged-in) .woocommerce-error {
	padding: 0.75rem 1rem;
	border: var(--line);
}

.auth__title {
	margin-bottom: var(--space);
	text-align: center;
}

.auth__form,
.lost_reset_password {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.rte .auth__form > *,
.rte .lost_reset_password > * {
	margin: 0;
}

.auth__field,
.lost_reset_password .form-row {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.auth__field input,
.lost_reset_password input.input-text {
	padding-block: 0.75rem;
}

.auth__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	font-size: var(--fs-sm);
}

.auth__check {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
}

.auth__check input {
	width: 0.9rem;
	height: 0.9rem;
	margin: 0;
	accent-color: rgb(var(--c-text));
}

.auth__form .button,
.lost_reset_password .button {
	width: 100%;
	margin-top: 0.25rem;
}

.rte .auth .auth__link {
	border-bottom-color: rgb(var(--c-text) / 0.4);
	transition: border-color 150ms ease;
}

.rte .auth .auth__link:hover {
	border-bottom-color: currentColor;
}

.auth__switch {
	margin-top: var(--space);
	padding-top: var(--space);
	border-top: var(--line);
	color: rgb(var(--c-text) / 0.6);
	font-size: var(--fs-sm);
	text-align: center;
}

.auth__switch .auth__link {
	margin-left: 0.25rem;
	color: rgb(var(--c-text));
}

.auth__note,
.lost_reset_password > p:first-child {
	color: rgb(var(--c-text) / 0.6);
	font-size: var(--fs-sm);
}

.lost_reset_password .clear {
	display: none;
}

/* Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	margin: 0;
	padding: 1rem var(--gutter);
	border-bottom: var(--line);
	list-style: none;
}

.woocommerce-error {
	color: rgb(var(--c-accent));
}

.woocommerce-message .button,
.woocommerce-info .button {
	width: auto;
	order: 2;
}

/* Block cart / checkout notices (e.g. series minimum): black box + 1px hairline instead of Woo's pastel fills.
   The notice type only tints the outlined icon — red error, beige warning, white success/info. */
body .wc-block-components-notice-banner[class] { /* [class] outranks Woo's .is-error / .is-success fills */
	--notice-tone: var(--c-text);
	align-items: center;
	border: var(--line);
	border-radius: 0;
	background: rgb(var(--c-bg));
	color: rgb(var(--c-text));
	font: 400 var(--fs-base) / 1.5 var(--font-body);
}

body .wc-block-components-notice-banner.is-error {
	--notice-tone: var(--c-sale);
}

body .wc-block-components-notice-banner.is-warning {
	--notice-tone: var(--c-accent);
}

body .wc-block-components-notice-banner > svg {
	width: 1.75rem;
	height: 1.75rem;
	padding: 0.2rem;
	border: 1px solid rgb(var(--notice-tone));
	background: transparent;
	fill: rgb(var(--notice-tone));
}

body .wc-block-components-notice-banner.is-error > svg,
body .wc-block-components-notice-banner.is-warning > svg,
body .wc-block-components-notice-banner.is-success > svg,
body .wc-block-components-notice-banner.is-info > svg {
	background: transparent;
}

body .wc-block-components-notice-banner > .wc-block-components-notice-banner__content .wc-forward,
body .wc-block-components-notice-banner > .wc-block-components-button {
	color: rgb(var(--c-text)) !important;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer-grid {
	display: grid;
	gap: 1px;
	background: rgb(var(--c-line));
	border-bottom: var(--line);
}

.footer-cell {
	padding: var(--space) var(--gutter);
	background: rgb(var(--c-bg));
}

.footer-cell__heading {
	margin-bottom: 1rem;
}

.footer-cell .site-nav__list {
	display: block;
	height: auto;
}

.footer-cell .site-nav__list li + li {
	margin-top: 0.25rem;
}

.footer-cell__text {
	max-width: 32ch;
}

@media (min-width: 1024px) {
	.footer-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	align-items: center;
	padding: var(--space) var(--gutter);
	font-size: var(--fs-sm);
}

.payment-icons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	list-style: none;
}

.payment-icons__item {
	display: flex;
}

.payment-icons svg {
	width: 38px;
	height: 24px;
}

.wordmark {
	overflow: hidden;
	padding: 0 var(--gutter) var(--space);
}

.wordmark__text {
	display: inline-block;
	font: 400 24vw / 0.8 var(--font-heading);
	letter-spacing: -0.06em;
	white-space: nowrap;
}

/* 18+ notice strip */
.footer-warning {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem var(--gutter);
	border-bottom: var(--line);
}

.footer-warning__badge {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	padding: 0.25rem 0.6rem;
	border: 1px solid currentColor;
	border-radius: var(--radius-pill);
	font-weight: 700;
}

.footer-warning__text {
	color: rgb(var(--c-muted));
	font-size: var(--fs-sm);
	text-transform: uppercase;
}

/* ==========================================================================
   Age gate — full-screen overlay, hairline panel, 200ms fade
   ========================================================================== */

.age-gate {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: none;
	align-items: center;
	justify-content: center;
	padding: var(--gutter);
	background: rgb(var(--c-bg) / 0.92);
}

.age-gate-open,
.age-gate-open body {
	overflow: hidden;
}

.age-gate-open .age-gate {
	display: flex;
	animation: age-gate-in var(--dur-base) var(--ease);
}

.age-gate-closing .age-gate {
	opacity: 0;
	transition: opacity var(--dur-base) var(--ease);
}

@keyframes age-gate-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.age-gate__panel {
	width: 100%;
	max-width: 20rem;
	padding: var(--space);
	background: rgb(var(--c-bg));
	border: var(--line);
	text-align: center;
}

.age-gate__panel:focus {
	outline: none;
}

.age-gate__title {
	font: 400 var(--fs-xl) / 1.2 var(--font-heading);
	letter-spacing: var(--tracking-heading);
}

.age-gate__text {
	margin-top: 0.5rem;
	font-size: var(--fs-sm);
	color: rgb(var(--c-muted));
}

.age-gate__actions {
	display: flex;
	justify-content: center;
	gap: 0.35rem;
	margin-top: 1.25rem;
}

.button.age-gate__button {
	width: auto;
	min-width: 4rem;
	min-height: 0;
	padding: 0.25rem 0.9rem;
	font-size: var(--fs-sm);
}

.button.button--secondary {
	background: transparent;
	border-color: rgb(var(--c-line));
	color: rgb(var(--c-text));
}

@media (hover: hover) and (pointer: fine) {
	.button.button--secondary:hover {
		background: transparent;
		border-color: rgb(var(--c-text));
		color: rgb(var(--c-text));
	}
}

.age-gate__denied {
	display: none;
	margin-top: 1rem;
	font-size: var(--fs-sm);
	color: rgb(var(--c-muted));
}

.age-gate.is-denied .age-gate__denied {
	display: block;
}

.age-gate.is-denied .age-gate__actions {
	display: none;
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0ms !important;
		scroll-behavior: auto !important;
	}
}

/* ==========================================================================
   Product reviews — list left / form right (stacked below 1024px)
   ========================================================================== */

.stars {
	position: relative;
	display: inline-block;
	color: rgb(var(--c-text) / 0.2);
	font-family: system-ui, sans-serif;
	line-height: 1;
	letter-spacing: 0.1em;
	white-space: nowrap;
}

.stars__fill {
	position: absolute;
	inset: 0 auto 0 0;
	overflow: hidden;
	color: rgb(var(--c-accent));
}

.product-reviews__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
}

.product-reviews__list,
.product-reviews__form {
	padding: var(--space) var(--gutter);
}

.product-reviews__list {
	border-bottom: var(--line);
}

.product-reviews__average {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding-bottom: var(--space);
	border-bottom: var(--line);
}

.product-reviews__score {
	font: 400 var(--fs-4xl) / 1 var(--font-heading);
	letter-spacing: var(--tracking-heading);
}

.product-reviews__average .stars {
	font-size: var(--fs-xl);
}

.product-reviews__empty,
.product-reviews__note,
.must-log-in {
	color: rgb(var(--c-text) / 0.6);
}

.review {
	padding-block: var(--space);
	border-bottom: var(--line);
}

.review:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.review__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.review__date,
.review__verified {
	color: rgb(var(--c-muted));
	font-size: var(--fs-sm);
	text-transform: uppercase;
}

.review__author {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: 0.75rem;
}

.review__avatar {
	flex: none;
	width: 2.5rem;
	height: 2.5rem;
}

.review__who {
	min-width: 0;
}

.review__name {
	font-weight: 700;
}

.review__email {
	color: rgb(var(--c-muted));
	font-size: var(--fs-sm);
}

.review__verified {
	margin-left: 0.5rem;
	font-weight: 400;
}

.review__pending {
	margin-top: 0.5rem;
	color: rgb(var(--c-accent));
	font-size: var(--fs-sm);
}

.review__text {
	margin-top: 0.75rem;
	color: rgb(var(--c-text) / 0.8);
}

.product-reviews__pagination .page-numbers {
	display: inline-block;
	margin-top: var(--space);
	margin-right: 1rem;
}

.product-reviews__pagination .current {
	border-bottom: 1px solid currentColor;
}

.review-form__title {
	margin-bottom: var(--space);
	font: 400 var(--heading-secondary) / 1.1 var(--font-heading);
	letter-spacing: var(--tracking-heading);
}

.review-form__title small {
	margin-left: 1rem;
	font: 400 var(--fs-sm) / 1 var(--font-body);
	text-transform: uppercase;
}

.review-form {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.review-form__field {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.review-form__field label {
	text-transform: uppercase;
	font-size: var(--fs-sm);
}

.review-form .required {
	color: rgb(var(--c-muted));
}

.review-form input[type="text"],
.review-form input[type="email"],
.review-form textarea {
	padding-block: 0.75rem;
	color: inherit;
	font: inherit;
}

.review-form textarea {
	resize: vertical;
}

.review-form .form-submit {
	margin-top: 0.25rem;
}

/* WooCommerce's single-product.js swaps #rating for clickable stars (p.stars > span > a). */
.review-form p.stars {
	margin: 0;
}

.review-form p.stars span {
	display: inline-flex;
}

.review-form p.stars a {
	position: relative;
	width: 2rem;
	height: 2rem;
	overflow: hidden;
	color: transparent;
	font-size: 0;
}

.review-form p.stars a::before {
	content: "★";
	position: absolute;
	inset: 0;
	color: rgb(var(--c-text) / 0.2);
	font: 1.75rem / 2rem system-ui, sans-serif;
	transition: color var(--dur-fast) var(--ease);
}

.review-form p.stars:hover a::before,
.review-form p.stars.selected a::before {
	color: rgb(var(--c-accent));
}

.review-form p.stars a:hover ~ a::before,
.review-form p.stars.selected a.active ~ a::before,
.review-form p.stars.selected:hover a:hover ~ a::before {
	color: rgb(var(--c-text) / 0.2);
}

.review-form p.stars.selected:hover a::before {
	color: rgb(var(--c-accent));
}

.review-form p.stars a:focus-visible {
	outline: 1px solid rgb(var(--c-text));
}

@media (min-width: 1024px) {
	.product-reviews__body {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1px;
		background: rgb(var(--c-line));
	}

	.product-reviews__list,
	.product-reviews__form {
		padding: var(--space) var(--gutter) var(--space-double);
		border-bottom: 0;
		background: rgb(var(--c-bg));
	}

	.product-reviews__form > div {
		position: sticky;
		top: calc(var(--sticky-top) + var(--space));
	}
}

/* ==========================================================================
   Brand mark (assets/brand/logo.svg, inlined — takes the current text colour)
   ========================================================================== */

.site-logo .brand-mark {
	width: auto;
	height: 3rem;
	/* Optical, not geometric, centring: the mark's ink sits 10.9% below its own box centre (bottom-heavy S),
	   and the nav's cap-height centre sits slightly above its line box. Lift it so the two read as one line. */
	translate: 0 -14%;
}

.site-logo a {
	display: flex;
	align-items: center;
}

.wordmark__mark {
	display: flex;
	justify-content: center;
	padding: var(--space) var(--gutter);
}

.wordmark__mark .brand-mark {
	width: auto;
	height: clamp(3rem, 9vw, 6rem);
}

@media (min-width: 1024px) {
	.site-logo .brand-mark {
		height: 3.5rem;
	}
}
