/* ==========================================================================
   Pelier Market — base: tokens, reset, typography, buttons, placeholders,
   slider primitives. Shared by every template.
   ========================================================================== */

:root {
	--pm-espresso: #302823;
	--pm-ink: #111111;
	--pm-wine: #6b292d;
	--pm-olive: #3f4335;
	--pm-cream: #f3efe8;
	--pm-white: #ffffff;
	--pm-border: #c4c4c4;
	--pm-line: #e6e1da;
	--pm-muted: #6f6a66;
	--pm-ph: #ebe6df;
	--pm-ph-2: #e2dcd3;
	--pm-ph-dark: #b9afa4;
	--pm-ph-dark-2: #a39789;
	--pm-wa: #25d366;

	--font-body: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--font-head: "Fahkwang", Georgia, serif;

	--container-pad: 50px;
	--container-max: 1600px;
	--radius: 3px;
	--ease: cubic-bezier(.25, .46, .45, .94);
}

@media (max-width: 767px) {
	:root { --container-pad: 20px; }
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--pm-white);
	color: var(--pm-ink);
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 24px;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}
body.pm-lock { overflow: hidden; }
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	font-weight: 400;
	line-height: 1.2;
	margin: 0 0 .5em;
	color: inherit;
}
h1 { font-size: 36px; }
h2 { font-size: 30px; }
h3 { font-size: 18.68px; }
:focus-visible { outline: 2px solid var(--pm-wine); outline-offset: 2px; }

.screen-reader-text, .pm-sr {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 10000; width: auto; height: auto; clip: auto;
	background: var(--pm-white); padding: 10px 16px; border: 1px solid var(--pm-ink);
}

/* Layout ----------------------------------------------------------------- */
.pm-container {
	width: 100%;
	max-width: var(--container-max);
	margin: 0 auto;
	padding-left: var(--container-pad);
	padding-right: var(--container-pad);
}
.pm-container--narrow { max-width: 900px; }
.pm-section { padding: 60px 0; }
.pm-section--tight { padding: 40px 0; }
.pm-center { text-align: center; }

/* Typography helpers ----------------------------------------------------- */
.pm-eyebrow {
	font-family: var(--font-body);
	font-size: 12px;
	line-height: 15.6px;
	font-weight: 500;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	margin: 0 0 12px;
}
.pm-heading { font-family: var(--font-head); font-weight: 400; }
.pm-text-link {
	display: inline-block;
	font-size: 11.25px;
	line-height: 18px;
	font-weight: 500;
	letter-spacing: .9px;
	text-transform: uppercase;
	border-bottom: 1px solid currentColor;
	padding-bottom: 1px;
	transition: opacity .2s var(--ease);
}
.pm-text-link:hover { opacity: .7; }
.pm-muted { color: var(--pm-muted); }

/* Buttons ---------------------------------------------------------------- */
.pm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 15.6px 25px;
	border: 1px solid transparent;
	border-radius: var(--radius);
	font-family: var(--font-body);
	font-size: 13px;
	line-height: 13px;
	font-weight: 400;
	letter-spacing: 1.04px;
	text-transform: uppercase;
	text-align: center;
	cursor: pointer;
	transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), opacity .2s var(--ease);
	white-space: nowrap;
}
.pm-btn--white { background: var(--pm-white); color: #000; }
.pm-btn--white:hover { background: var(--pm-espresso); color: var(--pm-white); }
.pm-btn--dark { background: var(--pm-espresso); color: var(--pm-white); }
.pm-btn--dark:hover { background: #000; color: var(--pm-white); }
.pm-btn--outline { background: var(--pm-white); color: #000; border-color: #000; }
.pm-btn--outline:hover { background: #000; color: var(--pm-white); }
.pm-btn--wa { background: var(--pm-wa); color: #fff; }
.pm-btn--wa:hover { background: #1fb457; color: #fff; }
.pm-btn--block { display: flex; width: 100%; }
.pm-btn[disabled], .pm-btn.is-disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* Forms ------------------------------------------------------------------ */
.pm-input, .pm-select, .pm-textarea {
	width: 100%;
	min-height: 48px;
	padding: 12.8px 15px;
	font-size: 16px;
	line-height: 20.8px;
	color: var(--pm-ink);
	background: var(--pm-white);
	border: 1px solid var(--pm-border);
	border-radius: var(--radius);
	transition: border-color .2s var(--ease);
}
.pm-input:focus, .pm-select:focus, .pm-textarea:focus { border-color: var(--pm-ink); outline: none; }
.pm-textarea { min-height: 96px; resize: vertical; }
.pm-label { display: block; font-size: 13px; margin: 0 0 6px; }

/* Modern blank photo placeholder ---------------------------------------- */
.pm-ph {
	position: relative;
	width: 100%;
	overflow: hidden;
	background:
		radial-gradient(120% 90% at 20% 10%, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 55%),
		linear-gradient(160deg, var(--pm-ph) 0%, var(--pm-ph-2) 100%);
	color: rgba(48, 40, 35, .42);
}
.pm-ph--dark {
	background:
		radial-gradient(120% 90% at 25% 15%, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 60%),
		linear-gradient(160deg, var(--pm-ph-dark) 0%, var(--pm-ph-dark-2) 100%);
	color: rgba(255, 255, 255, .7);
}
.pm-ph::after {
	/* thin inset frame for an editorial feel */
	content: "";
	position: absolute;
	inset: 14px;
	border: 1px solid currentColor;
	opacity: .18;
	pointer-events: none;
}
.pm-ph__inner {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	text-align: center;
	padding: 24px;
}
.pm-ph__label {
	font-family: var(--font-body);
	font-size: 10.5px;
	line-height: 1.4;
	font-weight: 500;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	max-width: 80%;
}
.pm-ph .pm-icon { opacity: .9; }

/* Generic media box (img or placeholder fills it) ----------------------- */
.pm-media { position: relative; overflow: hidden; background: var(--pm-ph); }
.pm-media > img, .pm-media > .pm-ph {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.pm-media > .pm-ph { aspect-ratio: auto !important; }

/* Slider primitives (behaviour in assets/js/slider.js) ------------------- */
.pm-slider { position: relative; }
.pm-slider__track {
	display: flex;
	gap: var(--pm-slider-gap, 20px);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.pm-slider__track::-webkit-scrollbar { display: none; }
.pm-slider__slide { flex: 0 0 auto; scroll-snap-align: start; }

/* Fade mode: slides stacked */
.pm-slider--fade .pm-slider__track { display: block; overflow: hidden; position: relative; height: 100%; }
.pm-slider--fade .pm-slider__slide {
	position: absolute; inset: 0; opacity: 0; visibility: hidden;
	transition: opacity .8s var(--ease), visibility .8s;
}
.pm-slider--fade .pm-slider__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }

.pm-slider__arrow {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px;
	color: currentColor;
	transition: opacity .2s var(--ease);
}
.pm-slider__arrow:hover { opacity: .6; }
.pm-slider__arrow[disabled] { opacity: .25; cursor: default; }
.pm-slider__dots { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.pm-slider__dot {
	width: 8px; height: 8px; border-radius: 50%;
	background: currentColor; opacity: .25; transition: opacity .2s var(--ease);
}
.pm-slider__dot.is-active { opacity: 1; }

/* Badges ----------------------------------------------------------------- */
.pm-badge {
	display: inline-block;
	padding: 4px 8px;
	font-size: 11px;
	line-height: 1.2;
	font-weight: 500;
	letter-spacing: .8px;
	text-transform: uppercase;
	color: var(--pm-white);
	background: var(--pm-espresso);
	border-radius: 2px;
}
.pm-badge--sale { background: var(--pm-wine); }

/* Utilities -------------------------------------------------------------- */
.pm-hide { display: none !important; }
@media (max-width: 767px) { .pm-hide-mobile { display: none !important; } }
@media (min-width: 768px) { .pm-hide-desktop { display: none !important; } }

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