/* ==========================================================================
   PLS base: tokens, reset, typography, layout, buttons, forms, drawers, notices.
   Foundation-owned. Area styles go in their own file and use these tokens only.
   Reference feel: us.sirthelabel.com + faithfullthebrand.com (minimal, image-led,
   small uppercase UI type, hairline rules, square corners, black/white/cream).
   ========================================================================== */

:root {
	/* Colour */
	--c-ink: #111111;
	--c-ink-2: #3a3a3a;
	--c-muted: #767676;       /* AA on white for small text */
	--c-line: #e4e2dd;
	--c-line-strong: #111111;
	--c-bg: #ffffff;
	--c-cream: #f4f2ed;       /* announcement bar, soft panels, image placeholders */
	--c-overlay: rgba(17, 17, 17, .35);
	--c-sale: #8a2c1d;
	--c-success: #2f5d3a;
	--c-error: #9b1c1c;

	/* Type (Commissioner has Greek + Latin) */
	--font: "Commissioner", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--fs-xxs: 10px;
	--fs-xs: 11px;            /* UI labels, nav, buttons (uppercase) */
	--fs-s: 12px;
	--fs-m: 13px;             /* body */
	--fs-l: 15px;
	--fs-xl: 20px;
	--fs-xxl: clamp(22px, 2.4vw, 32px);  /* hero / section display */
	--lh: 1.55;
	--lh-tight: 1.2;
	--tracking-ui: .08em;     /* uppercase UI */
	--tracking-display: .04em;
	--fw-light: 300;
	--fw-regular: 400;
	--fw-medium: 500;

	/* Space (4px scale) */
	--s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 20px;
	--s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-24: 96px;
	--gutter: 12px;           /* page side padding (mobile) */
	--grid-gap: 2px;          /* product grid: near-bleed like Faithfull */
	--content-max: 1440px;
	--text-max: 680px;

	/* Chrome */
	--announce-h: 32px;
	--header-h: 56px;
	--radius: 0;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--dur: .25s;
	--z-header: 50;
	--z-drawer: 100;
	--z-overlay: 90;
	--z-popup: 110;
}
@media (min-width: 990px) {
	:root { --gutter: 24px; --header-h: 64px; }
}

/* Reset -------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0; background: var(--c-bg); color: var(--c-ink);
	font-family: var(--font); font-size: var(--fs-m); line-height: var(--lh);
	font-weight: var(--fw-regular); -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote { margin: 0; }
:focus-visible { outline: 1px solid var(--c-ink); outline-offset: 2px; }
.screen-reader-text, .sr-only {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; background: var(--c-bg); padding: var(--s-2) var(--s-3); clip: auto; clip-path: none; width: auto; height: auto; }

/* Typography --------------------------------------------------------------- */
.t-ui, .t-label {
	font-size: var(--fs-xs); letter-spacing: var(--tracking-ui);
	text-transform: uppercase; font-weight: var(--fw-regular); line-height: 1.3;
}
.t-display {
	font-size: var(--fs-xxl); letter-spacing: var(--tracking-display);
	text-transform: uppercase; font-weight: var(--fw-light); line-height: var(--lh-tight);
}
.t-title { font-size: var(--fs-l); letter-spacing: .06em; text-transform: uppercase; font-weight: var(--fw-regular); line-height: 1.3; }
.t-muted { color: var(--c-muted); }
.t-link {
	font-size: var(--fs-xs); letter-spacing: var(--tracking-ui); text-transform: uppercase;
	text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.prose { max-width: var(--text-max); font-size: var(--fs-m); }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3 { font-size: var(--fs-l); letter-spacing: .06em; text-transform: uppercase; font-weight: var(--fw-regular); margin-top: 2em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose ol { list-style: decimal; padding-left: 1.2em; }

/* Layout ------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--content-max); margin-inline: auto; padding-inline: var(--gutter); }
.container--bleed { max-width: none; padding-inline: 0; }
.site-main { min-height: 60vh; }
.section { padding-block: var(--s-12); }
@media (min-width: 990px) { .section { padding-block: var(--s-16); } }
.page-head { padding-block: var(--s-8) var(--s-6); }
.hairline { border: 0; border-top: 1px solid var(--c-line); margin: 0; }

/* Buttons ------------------------------------------------------------------ */
.btn, .button, button.button, a.button, input[type="submit"], .wp-element-button {
	display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
	min-height: 44px; padding: 0 var(--s-6);
	font-family: var(--font); font-size: var(--fs-xs); letter-spacing: var(--tracking-ui);
	text-transform: uppercase; font-weight: var(--fw-medium); line-height: 1;
	background: var(--c-ink); color: #fff; border: 1px solid var(--c-ink); border-radius: var(--radius);
	cursor: pointer; text-decoration: none; transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn:hover, .button:hover, input[type="submit"]:hover { background: var(--c-ink-2); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--c-ink); }
.btn--ghost:hover { background: var(--c-ink); color: #fff; }
.btn--light { background: #fff; color: var(--c-ink); border-color: #fff; }
.btn--block { width: 100%; }
.btn[disabled], .button.disabled, .button:disabled { opacity: .4; cursor: not-allowed; }
.button.loading { opacity: .6; pointer-events: none; }

/* Forms -------------------------------------------------------------------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="search"],
input[type="number"], input[type="url"], select, textarea {
	width: 100%; min-height: 44px; padding: var(--s-2) var(--s-3);
	font: inherit; font-size: 16px; /* no iOS zoom */ color: var(--c-ink);
	background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius);
	appearance: none;
}
@media (min-width: 990px) {
	input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="search"],
	input[type="number"], input[type="url"], select, textarea { font-size: var(--fs-m); }
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--c-ink); }
select {
	padding-right: var(--s-8);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center;
}
label { display: block; font-size: var(--fs-xs); letter-spacing: var(--tracking-ui); text-transform: uppercase; margin-bottom: var(--s-1); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--c-ink); width: 16px; height: 16px; }

/* Drawer / modal (driven by app.js; used by cart, mobile menu, filters, size guide, popup) */
.pls-overlay {
	position: fixed; inset: 0; background: var(--c-overlay); z-index: var(--z-overlay);
	opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease), visibility var(--dur);
}
.pls-overlay.is-open { opacity: 1; visibility: visible; }
.drawer {
	position: fixed; top: 0; bottom: 0; z-index: var(--z-drawer);
	width: min(440px, 100vw); background: var(--c-bg);
	display: flex; flex-direction: column;
	transition: transform .35s var(--ease), visibility .35s;
	visibility: hidden;
}
.drawer--right { right: 0; transform: translateX(100%); }
.drawer--left { left: 0; transform: translateX(-100%); }
.drawer.is-open { transform: none; visibility: visible; }
.drawer__head {
	display: flex; align-items: center; justify-content: space-between;
	min-height: var(--header-h); padding-inline: var(--s-5); border-bottom: 1px solid var(--c-line);
}
.drawer__body { flex: 1; overflow-y: auto; padding: var(--s-5); overscroll-behavior: contain; }
.drawer__foot { padding: var(--s-5); border-top: 1px solid var(--c-line); }
.modal {
	position: fixed; z-index: var(--z-popup); left: 50%; top: 50%;
	width: min(560px, calc(100vw - 2 * var(--gutter))); max-height: calc(100vh - 48px); overflow: auto;
	background: var(--c-bg); transform: translate(-50%, -46%); opacity: 0; visibility: hidden;
	transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.modal.is-open { opacity: 1; visibility: visible; transform: translate(-50%, -50%); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; }

/* Accordion (<details class="accordion">) ---------------------------------- */
.accordion { border-bottom: 1px solid var(--c-line); }
.accordion > summary {
	list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
	padding-block: var(--s-4); font-size: var(--fs-xs); letter-spacing: var(--tracking-ui); text-transform: uppercase;
}
.accordion > summary::-webkit-details-marker { display: none; }
.accordion > summary::after { content: "+"; font-size: 16px; font-weight: var(--fw-light); }
.accordion[open] > summary::after { content: "\2212"; }
.accordion__body { padding-bottom: var(--s-5); }

/* WooCommerce notices + prices (shared) ------------------------------------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	margin: 0 0 var(--s-5); padding: var(--s-3) var(--s-4); list-style: none;
	background: var(--c-cream); font-size: var(--fs-s); border-left: 2px solid var(--c-ink);
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3);
}
.woocommerce-error { border-left-color: var(--c-error); }
.woocommerce-message .button, .woocommerce-info .button { min-height: 32px; padding: 0 var(--s-4); order: 2; }
.price { font-size: var(--fs-s); letter-spacing: .02em; }
.price del { color: var(--c-muted); margin-right: var(--s-1); }
.price ins { text-decoration: none; color: var(--c-sale); }
.onsale { font-size: var(--fs-xxs); letter-spacing: var(--tracking-ui); text-transform: uppercase; }
.star-rating, .woocommerce-review-link { display: none; }

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