/* ==========================================================================
   Doonails — base.css
   Design tokens + reset + typography. Values measured from the reference at
   1440 (Satoshi / ivypresto-headline, #272727 ink, #FAF8F5 secondary).
   ========================================================================== */

/* ------------------------------- fonts ---------------------------------- */
@font-face {
	font-family: "Satoshi";
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	src: url("../fonts/Satoshi-Regular.woff") format("woff");
}
@font-face {
	font-family: "Satoshi";
	font-weight: 500;
	font-style: normal;
	font-display: swap;
	src: url("../fonts/Satoshi-Medium.woff") format("woff");
}
@font-face {
	font-family: "Satoshi";
	font-weight: 700;
	font-style: normal;
	font-display: swap;
	src: url("../fonts/Satoshi-Bold.woff") format("woff");
}
@font-face {
	font-family: "ivypresto-headline";
	font-style: italic;
	font-weight: 300;
	font-stretch: normal;
	font-display: swap;
	src: url("../fonts/ivypresto-headline-i3.woff2") format("woff2");
}

/* ------------------------------- tokens --------------------------------- */
:root {
	--dn-ink: 39, 39, 39;
	--dn-bg: 255, 255, 255;
	--dn-bg-secondary: 250, 248, 245;
	--dn-bg-tertiary: 247, 246, 245;
	--dn-border: 223, 223, 223;
	--dn-muted: rgba(39, 39, 39, 0.55);
	--dn-accent: 166, 0, 57;
	--dn-red: #a60039;
	--dn-green: #78a97c;
	--dn-white: #fff;
	--dn-font: "Satoshi", Helvetica, Arial, sans-serif;
	--dn-font-serif: "ivypresto-headline", Georgia, serif;

	--container-max-width: 1600px;
	--container-gutter: 40px;
	--container-gutter-mobile: 20px;
	--header-height: 80px;
	--header-height-mobile: 64px;

	--button-height: 48px;
	--button-radius: 0px;

	--easing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (max-width: 767px) {
	:root {
		--container-gutter: 20px;
		--header-height: 64px;
	}
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: rgb(var(--dn-bg));
	color: rgb(var(--dn-ink));
	font-family: var(--dn-font);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.71429;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body.dn-no-scroll {
	overflow: hidden;
}

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

img {
	height: auto;
	border: 0;
}

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

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

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

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

p {
	margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	font-weight: 400;
	line-height: normal;
}

.visually-hidden,
.screen-reader-text {
	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-to-content:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 9999;
	background: #fff;
	color: #272727;
	padding: 10px 16px;
	width: auto;
	height: auto;
	clip: auto;
	margin: 0;
}

/* ------------------------------ layout ---------------------------------- */
.dn-container {
	width: 100%;
	max-width: var(--container-max-width);
	margin-inline: auto;
	padding-inline: var(--container-gutter);
}

.dn-main {
	display: block;
}

/* ---------------------------- typography -------------------------------- */
.dn-serif {
	font-family: var(--dn-font-serif);
	font-style: italic;
	font-weight: 300;
}

h1,
.h1 {
	font-size: 32px;
	line-height: 1.2;
}
h2,
.h2 {
	font-size: 28px;
	line-height: 1.25;
}
h3,
.h3 {
	font-size: 26px;
	line-height: 1.3;
}
h4,
.h4 {
	font-size: 22px;
	line-height: 1.35;
}

.dn-section-title {
	font-size: 32px;
	line-height: 1.2;
	font-weight: 400;
}

.dn-heading-small {
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* ------------------------------ buttons --------------------------------- */
.dn-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: var(--button-height);
	padding: 14px 24px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	background: #272727;
	color: #fff;
	border: 1px solid #272727;
	border-radius: var(--button-radius);
	transition: background 0.25s var(--easing), color 0.25s var(--easing);
	cursor: pointer;
}

.dn-btn:hover {
	background: #fff;
	color: #272727;
}

.dn-btn--outline {
	background: transparent;
	color: currentColor;
	border-color: currentColor;
}

.dn-btn--outline:hover {
	background: currentColor;
	filter: invert(0);
}

.dn-btn--white {
	background: #fff;
	color: #272727;
	border-color: #fff;
}

.dn-btn--ghost {
	background: transparent;
	border: 1px solid currentColor;
	color: currentColor;
}

.dn-btn--ghost:hover {
	background: #272727;
	border-color: #272727;
	color: #fff;
}

/* ------------------------------ forms ----------------------------------- */
.dn-field {
	width: 100%;
	height: var(--button-height);
	padding: 0 14px;
	border: 1px solid #d4c8bf;
	border-radius: 0;
	background: #fff;
	font-size: 14px;
	font-weight: 500;
	color: #272727;
}

.dn-field::placeholder {
	color: rgba(39, 39, 39, 0.5);
}

/* ------------------------- free shipping / notices ----------------------- */
.dn-notice {
	padding: 12px 16px;
	background: var(--dn-bg-secondary);
	font-size: 14px;
}

/* ------------------------------ helpers --------------------------------- */
.dn-text-center {
	text-align: center;
}

.dn-hidden {
	display: none !important;
}

.dn-scroll-lock {
	overflow: hidden;
}

@media (max-width: 767px) {
	body {
		font-size: 15px;
		line-height: 1.6;
	}
	h1,
	.h1 {
		font-size: 28px;
	}
	h2,
	.h2 {
		font-size: 24px;
	}
}

/* ==========================================================================
   Product card (home rails + PLP) + placeholders + generic page
   ========================================================================== */
.dn-ph {
	display: block;
	width: 100%;
	background:
		radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 60%),
		linear-gradient(135deg, #f2ede6 0%, #e9e1d7 50%, #f6f1ea 100%);
	position: relative;
	overflow: hidden;
}

.dn-ph::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(110deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.45) 50%, rgba(255, 255, 255, 0) 70%);
	transform: translateX(-100%);
	animation: dn-shimmer 2.4s ease-in-out infinite;
}

@keyframes dn-shimmer {
	to {
		transform: translateX(100%);
	}
}

.dn-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.dn-card__media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f7f6f5;
}

.dn-card__img-wrap {
	position: absolute;
	inset: 0;
	display: block;
}

.dn-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.25s ease;
}

.dn-card__img--hover {
	position: absolute;
	inset: 0;
	opacity: 0;
}

@media (hover: hover) and (pointer: fine) {
	.dn-card:hover .dn-card__img--hover {
		opacity: 1;
	}
}

.dn-card__badges {
	position: absolute;
	top: 12px;
	left: 12px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	z-index: 2;
}

.dn-card__badge {
	display: inline-block;
	padding: 4px 8px 5px;
	background: #272727;
	color: #fff;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0.02em;
}

.dn-card__badge--sale {
	background: #a60039;
}

.dn-card__badge--featured {
	background: #fff;
	color: #272727;
	box-shadow: inset 0 0 0 1px #272727;
}

.dn-card__quick {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 12px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: auto;
	height: 44px;
	padding: 0 14px;
	background: #fff;
	color: #272727;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	border-radius: 0;
	box-shadow: none;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.22s ease, transform 0.22s ease, background 0.2s ease, color 0.2s ease;
}

.dn-card__quick svg {
	width: 18px;
	height: 18px;
}

@media (hover: hover) and (pointer: fine) {
	.dn-card:hover .dn-card__quick {
		opacity: 1;
		transform: translateY(0);
	}
}

.dn-card__quick:focus-visible {
	opacity: 1;
	transform: translateY(0);
}

.dn-card__quick:hover {
	background: #272727;
	color: #fff;
}

.dn-card__quick.is-busy {
	pointer-events: none;
	opacity: 0.6;
}

.dn-card__body {
	padding: 12px 2px 0;
}

.dn-card__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 16px;
}

.dn-card__vendor {
	font-size: 10px;
	line-height: 1.2;
	letter-spacing: 0.02em;
	color: rgba(39, 39, 39, 0.72);
}

.dn-card__rating {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	line-height: 1;
	color: #272727;
}

.dn-card__rating svg {
	width: 11px;
	height: 11px;
}

.dn-card__title {
	margin: 6px 0 0;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
}

.dn-card--rail .dn-card__title {
	font-size: 16px;
	line-height: 1.15;
}

.dn-card__title a:hover {
	opacity: 0.75;
}

.dn-card__subtitle {
	margin: 4px 0 0;
	font-size: 12px;
	line-height: 1.35;
	color: rgba(39, 39, 39, 0.6);
}

.dn-card__price {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
	font-size: 14px;
	line-height: 1.2;
}

.dn-card__price-old {
	color: rgba(39, 39, 39, 0.45);
	text-decoration: line-through;
}

.dn-card__price-new {
	text-decoration: none;
	font-weight: 500;
}

.dn-card__save {
	display: inline-block;
	padding: 3px 5px;
	background: #a60039;
	color: #fff;
	font-size: 11px;
	line-height: 1;
}

.dn-card__colors {
	display: flex;
	align-items: center;
	gap: 5px;
	margin-top: 10px;
}

.dn-card__color {
	display: block;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgba(39, 39, 39, 0.16);
}

.dn-card__color-more {
	font-size: 11px;
	color: rgba(39, 39, 39, 0.6);
	margin-left: 2px;
}

@media (max-width: 767px) {
	.dn-card__title {
		font-size: 15px;
	}
	.dn-card__price {
		font-size: 13px;
	}
	.dn-card__badge {
		font-size: 10px;
		padding: 3px 7px 4px;
	}
	.dn-card__quick {
		display: none;
	}
}

/* generic content pages (fallback template) */
.dn-page {
	padding: 48px 0 72px;
}

.dn-page__title {
	margin: 0 0 32px;
	font-size: 36px;
	line-height: 1.1;
	font-weight: 300;
}

.dn-page__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
}

.dn-post-card__media img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.dn-post-card__title {
	margin: 14px 0 8px;
	font-size: 20px;
	line-height: 1.25;
}

.dn-post-card__more {
	display: inline-block;
	margin-top: 10px;
	font-size: 14px;
	text-decoration: underline;
}

.dn-empty {
	padding: 32px 0;
	color: rgba(39, 39, 39, 0.6);
}

@media (max-width: 991px) {
	.dn-page__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.dn-page__list {
		grid-template-columns: 1fr;
	}
}

/* ------------------------------- toast ---------------------------------- */
.dn-toast {
	position: fixed;
	left: 50%;
	bottom: 28px;
	z-index: 400;
	transform: translate(-50%, 16px);
	max-width: calc(100vw - 40px);
	padding: 13px 22px;
	background: #272727;
	color: #fff;
	font-size: 14px;
	line-height: 1.3;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.dn-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

.dn-logo--white {
	filter: brightness(0) invert(1);
}

.dn-flag {
	display: inline-flex;
	width: 18px;
	height: 12px;
	background: url("../img/flag-de.svg") center / cover no-repeat;
	text-indent: -9999px;
	overflow: hidden;
	font-size: 0;
	line-height: 0;
}

.dn-rail__nav {
	top: 38%;
}

.dn-rail__arrow[hidden] {
	display: none;
}


@media (prefers-reduced-motion: reduce) {
	.dn-press__track {
		animation: none;
	}
	.dn-ph::after {
		animation: none;
	}
	* {
		scroll-behavior: auto !important;
	}
}

/* Accessibility: improve contrast of muted card/rail text (WCAG AA). */
.dn-card__subtitle,
.dn-card__meta,
.dn-card__price-old {
	color: #5c5c5c;
}
.dn-card__rating { color: #4a4a4a; }
.dn-tp__note { color: #4f4f4f; }
.dn-seo__eyebrow { color: #5a5a5a; }
