/* ==========================================================================
   Pilgrim — base.css
   Design tokens traced from the reference Horizon theme (pilgrim.net /da-dk):
   body 14px/1.6 "Helvetica Neue" 400 rgba(0,0,0,.81) on #fff,
   page content 1360px with 40px gutters (desktop) / 20px (mobile),
   headings weight 500, primary buttons black.
   ========================================================================== */

@font-face {
	font-family: 'Helvetica Neue';
	src: url('../fonts/HelveticaNeueLTStd-Roman.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Helvetica Neue';
	src: url('../fonts/HelveticaNeueLTStd-Md.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Helvetica Neue';
	src: url('../fonts/HelveticaNeueLTStd-Bd.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

:root {
	--pilgrim-font: 'Helvetica Neue', Helvetica, Arial, sans-serif;

	--color-background: #fff;
	--color-foreground: rgba(0, 0, 0, 0.81);
	--color-foreground-heading: #000;
	--color-muted: rgba(0, 0, 0, 0.6);
	--color-border: rgba(0, 0, 0, 0.06);
	--color-input-border: #dfdfdf;
	--color-sale: #b00020;

	--font-size-body: 14px;
	--line-height-body: 1.6;

	--page-width: 1440px;
	--content-width: 1360px;
	--page-gutter: 40px;

	--header-height: 70.39px;
	--header-height-dynamic: var(--header-height);
	--p-header-height: var(--header-height);

	--radius: 0px;

	--transition-fast: 0.18s ease-out;
	--transition-mega: 0.2s ease-out;

	--layer-header: 90;
	--layer-mega: 89;
	--layer-drawer: 95;
	--layer-overlay: 99;
	--layer-cookie: 900;
}

@media (max-width: 989px) {
	:root {
		--page-gutter: 20px;
		--header-height: 60px;
	}
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

html.pilgrim-no-scroll,
html.pilgrim-no-scroll body {
	overflow: hidden;
}

body {
	margin: 0;
	background: var(--color-background);
	color: var(--color-foreground);
	font-family: var(--pilgrim-font);
	font-size: var(--font-size-body);
	font-weight: 400;
	line-height: var(--line-height-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body.pilgrim-lock {
	overflow: hidden;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
	margin: 0 0 0.5em;
	color: var(--color-foreground-heading);
	font-family: var(--pilgrim-font);
	font-weight: 500;
	line-height: 1.2;
}

h1, .h1 { font-size: clamp(24px, 2.2vw, 32px); }
h2, .h2 { font-size: clamp(20px, 1.7vw, 24px); }
h3, .h3 { font-size: 20px; }
h4, .h4 { font-size: 18px; }
h5, .h5 { font-size: 16px; }
h6, .h6 { font-size: 14px; }

p { margin: 0 0 1em; }

a {
	color: inherit;
	text-decoration: none;
}

a:hover,
a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 2px;
}

button {
	font-family: inherit;
	font-size: inherit;
	color: inherit;
	cursor: pointer;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

ul, ol {
	margin: 0;
	padding: 0;
}

figure { margin: 0; }

input, textarea, select {
	font-family: inherit;
	font-size: inherit;
}

:focus-visible {
	outline: 1px solid #000;
	outline-offset: 2px;
}

/* ---------- layout helpers ---------- */
.pilgrim-container {
	width: 100%;
	max-width: var(--page-width);
	margin-inline: auto;
	padding-inline: var(--page-gutter);
}

.pilgrim-full-bleed {
	width: 100%;
}

.screen-reader-text,
.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.pilgrim-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	background: #000;
	color: #fff;
	padding: 10px 16px;
	font-size: 14px;
}
.pilgrim-skip-link:focus {
	left: 10px;
	top: 10px;
}

.screen-reader-text:focus,
.visually-hidden:focus {
	position: static !important;
	width: auto;
	height: auto;
	clip: auto;
	clip-path: none;
}

/* ---------- icons ---------- */
.pilgrim-icon {
	display: inline-block;
	flex: none;
	vertical-align: middle;
	overflow: visible;
}

/* ---------- buttons ---------- */
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	border: 1px solid #000;
	border-radius: var(--radius);
	background: transparent;
	color: #000;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	text-decoration: none;
	transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
	cursor: pointer;
}

.button:hover,
.button:focus-visible {
	text-decoration: none;
}

.button--primary {
	background: #000;
	border-color: #000;
	color: #fff;
}

.button--primary:hover,
.button--primary:focus-visible {
	background: #333;
	border-color: #333;
	color: #fff;
}

.button--secondary:hover,
.button--secondary:focus-visible {
	background: #fafafa;
	color: #333;
	border-color: #333;
}

/* ---------- forms ---------- */
input[type='text'],
input[type='email'],
input[type='search'],
input[type='password'],
input[type='tel'],
textarea,
select {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--color-input-border);
	border-radius: var(--radius);
	background: #fff;
	color: var(--color-foreground);
	font-size: 14px;
	line-height: 1.4;
}

input::placeholder,
textarea::placeholder {
	color: var(--color-muted);
}

/* ---------- product card (shared: home rails, PLP, related) ---------- */
.product-card {
	position: relative;
	display: block;
	width: 100%;
	list-style: none;
	background: #fff;
	transition: opacity var(--transition-fast);
}

.product-card__content {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.product-card__link {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.product-card__media {
	position: relative;
	overflow: hidden;
	background: #f5f5f5;
	aspect-ratio: 4 / 5;
}

.product-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity var(--transition-fast);
}

.product-card__img--secondary {
	opacity: 0;
}

.product-card:hover .product-card__img--secondary {
	opacity: 1;
}

.product-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	display: inline-block;
	padding: 0;
	background: transparent;
	color: #000;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.product-card__info {
	padding-top: 12px;
}

.product-card__title {
	margin: 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.product-card__title-link {
	position: relative;
	z-index: 2;
}

.product-card__title-link:hover {
	text-decoration: none;
}

.product-card__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px;
	margin-top: 4px;
	font-size: 14px;
	line-height: 1.4;
}

.product-card__price .price__regular {
	color: var(--color-muted);
}

.product-card__price .price__regular del {
	text-decoration: line-through;
}

.product-card__price .price__sale ins {
	text-decoration: none;
	font-weight: 400;
}

.product-card__quick-add {
	position: absolute;
	right: 10px;
	bottom: 10px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid rgba(0, 0, 0, 0.13);
	border-radius: 50%;
	background: #fff;
	color: #000;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity var(--transition-fast), transform var(--transition-fast), background var(--transition-fast);
}

.product-card:hover .product-card__quick-add,
.product-card:focus-within .product-card__quick-add {
	opacity: 1;
	transform: translateY(0);
}

.product-card__quick-add:hover {
	background: #000;
	color: #fff;
}

@media (hover: none) {
	.product-card__quick-add {
		opacity: 1;
		transform: none;
	}
}

/* ---------- generic content pages ---------- */
.pilgrim-content {
	padding-block: 48px 72px;
}

.pilgrim-article {
	max-width: 860px;
}

.pilgrim-article__title {
	margin-bottom: 24px;
}

.pilgrim-article__content > * + * {
	margin-top: 1em;
}

.pilgrim-empty {
	padding-block: 80px;
	text-align: center;
}

/* ---------- utility classes ---------- */
.pilgrim-strike {
	text-decoration: line-through;
}

.pilgrim-muted {
	color: var(--color-muted);
}

[hidden] {
	display: none !important;
}

.product-card__quick-add.is-loading {
	opacity: 0.45;
	pointer-events: none;
}

.product-card__quick-add.is-added {
	background: #000;
	border-color: #000;
	color: #fff;
}
