/* ==========================================================================
   HDREY base: tokens, fonts, reset, typography, container, buttons, icons,
   product card. Reference tokens ported from the reference theme (design-tokens.md).
   ========================================================================== */

/* --- Fonts (self-hosted, no external hosts) ------------------------------- */
@font-face {
	font-family: 'Arboria-Book';
	src: url('../fonts/Arboria-Book.woff') format('woff');
	font-weight: 300 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Butler';
	src: url('../fonts/Butler.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

/* --- Design tokens (reference) -------------------------------------------- */
:root {
	--g-container: 1440px;
	--g-gutter: 30px;
	--g-hgutter: 15px;
	--g-font-1: 'Arboria-Book', 'Helvetica Neue', Arial, sans-serif;
	--g-font-2: 'Arboria-Book', 'Helvetica Neue', Arial, sans-serif;
	--g-font-navigation: 'Arboria-Book', 'Helvetica Neue', Arial, sans-serif;
	--g-font-3: 'Butler', Georgia, serif;
	--g-font-size: 15px;
	--g-font-weight-body: 300;
	--g-body-lineheight: 1.6;

	--g-main: #000000;
	--g-main-2: #666666;
	--g-color-heading: #000000;
	--g-cta-button: #000000;
	--g-cta-text: #ffffff;

	--color-body: #ffffff;
	--color-content: #ffffff;
	--color-accent: #000000;
	--color-form: #f4f4f4;
	--color-form-text: #333333;
	--color-error: #ec523e;
	--color-disabled: #d5d5d5;

	--g-bg-sale: #84c8bb;
	--g-cl-sale: #ffffff;
	--g-font-color-subtop: #e35353;
	--g-font-size-subtop: 12px;
	--g-font-weight-subtop: 400;
	--g-font-spacing-subtop: 0.4em;
	--g-label-text: #ffffff;
	--g-label-sale: #34bf49;

	--g-h1-font-size: 40px;
	--g-h2-font-size: 36px;
	--g-h3-font-size: 32px;
	--g-input-bg: #f4f4f4;
	--g-input-border: #dee2e6;
	--g-input-height: 50px;
	--g-input-radius: 5px;

	--header-background: #ffffff;
	--header-text: #000000;
	--header-border-color: #e5e5e5;
	--tabs-height: 60px;
	--announcement-height: 36px;
	--container-pad: 24px;
}

/* --- Reset ---------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}
html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: auto;
}
html.hd-drawer-open,
html.hd-drawer-open body,
html.hd-nav-open,
html.hd-nav-open body {
	overflow: hidden;
}
body {
	margin: 0;
	background: var(--color-body);
	color: var(--g-main);
	font-family: var(--g-font-1);
	font-size: var(--g-font-size);
	font-weight: var(--g-font-weight-body);
	line-height: var(--g-body-lineheight);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
img,
svg,
video {
	max-width: 100%;
	height: auto;
	display: block;
}
a {
	color: inherit;
	text-decoration: none;
}
a:hover,
a:focus-visible {
	color: inherit;
}
button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}
ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}
p {
	margin: 0 0 1em;
}
h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em;
	color: var(--g-color-heading);
	font-family: var(--g-font-2);
	font-weight: 400;
	line-height: 1.4;
}
h1 { font-size: var(--g-h1-font-size); font-weight: 300; }
h2 { font-size: var(--g-h2-font-size); font-weight: 400; }
h3 { font-size: var(--g-h3-font-size); font-weight: 300; }
h4 { font-size: 28px; }
h5 { font-size: 24px; }
h6 { font-size: 20px; }
input,
select,
textarea {
	font: inherit;
	color: inherit;
	max-width: 100%;
}
fieldset {
	border: 0;
	margin: 0;
	padding: 0;
}

/* --- Utilities ------------------------------------------------------------ */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 9999;
	background: #000;
	color: #fff;
	padding: 12px 20px;
}
.skip-link:focus {
	left: 0;
}
.hd-container {
	width: 100%;
	max-width: var(--g-container);
	margin: 0 auto;
	padding: 0 var(--container-pad);
}
.hd-icon {
	display: inline-block;
	vertical-align: middle;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.hd-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 15px 12px;
	color: var(--g-main);
	background: none;
}
.hd-icon-btn:hover,
.hd-icon-btn:focus-visible {
	color: #666;
}

/* --- Content typography --------------------------------------------------- */
.site-main {
	display: block;
}
.hd-content {
	padding-top: 40px;
	padding-bottom: 60px;
	max-width: 1040px;
}
.hd-page-title {
	font-size: 36px;
	font-weight: 300;
	line-height: 1.4;
	margin: 0 0 30px;
}
.hd-entry__content h2 { margin-top: 1.2em; }
.hd-entry__content h3 { margin-top: 1em; }
.hd-entry__content a { text-decoration: underline; }
.hd-entry__content img { height: auto; }
.hd-entry__content table {
	width: 100%;
	border-collapse: collapse;
}
.hd-entry__content th,
.hd-entry__content td {
	border: 1px solid #e5e5e5;
	padding: 10px 14px;
	text-align: left;
}

/* --- Buttons -------------------------------------------------------------- */
.hd-btn,
.hd-btn--outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 17px 34px;
	background: var(--g-cta-button);
	color: var(--g-cta-text);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	border: 1px solid var(--g-cta-button);
	border-radius: 0;
	transition: background-color 0.25s ease, color 0.25s ease;
	cursor: pointer;
}
.hd-btn:hover,
.hd-btn:focus-visible {
	background: #2b2b2b;
	color: var(--g-cta-text);
}
.hd-btn--outline {
	background: transparent;
	color: var(--g-main);
}
.hd-btn--outline:hover {
	background: var(--g-cta-button);
	color: var(--g-cta-text);
}

/* --- Product card (reference component-card port) ------------------------- */
.hd-card {
	position: relative;
	text-align: center;
	color: inherit;
	display: flex;
	flex-direction: column;
	height: 100%;
	width: 100%;
}
.hd-card__media {
	display: block;
	position: relative;
	overflow: hidden;
	background: #fff;
}
.hd-card__media-inner {
	display: block;
	position: relative;
	padding-top: 125%;
	overflow: hidden;
}
.hd-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: opacity 0.35s ease;
}
.hd-card__img--hover {
	opacity: 0;
}
.hd-card:hover .hd-card__img--hover,
.hd-card:focus-within .hd-card__img--hover {
	opacity: 1;
}
.hd-card:hover .hd-card__img--main {
	opacity: 0;
}
.hd-card__badge {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 2;
	padding: 6px 8px;
	background: var(--g-bg-sale);
	color: var(--g-cl-sale);
	font-size: 12px;
	font-weight: 300;
	line-height: 1;
	border-radius: 2px;
	letter-spacing: 0.02em;
}
.hd-card__quick {
	position: absolute;
	left: 50%;
	bottom: 20px;
	transform: translate(-50%, 8px);
	z-index: 2;
	padding: 15px 30px;
	background: #000;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}
.hd-card:hover .hd-card__quick,
.hd-card:focus-within .hd-card__quick {
	opacity: 1;
	pointer-events: auto;
	transform: translate(-50%, 0);
}
.hd-card__quick:hover {
	background: #2b2b2b;
}
.hd-card__info {
	padding: 24px 0 16px;
	margin: 0 0 0;
}
.hd-card__vendor {
	display: block;
	margin: 0 0 4px;
	color: rgba(0, 0, 0, 0.6);
	font-size: 15px;
	font-weight: 300;
	line-height: 24px;
}
.hd-card__title {
	display: block;
	margin: 0 0 10px;
	color: var(--g-main);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.2;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}
.hd-card__price {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 300;
	line-height: 24px;
	color: var(--g-main);
}
.hd-card__price del,
.hd-card__price ins {
	display: inline-block;
	line-height: 24px;
	text-decoration: none;
}
.hd-card__price del {
	color: rgba(0, 0, 0, 0.45);
	text-decoration: line-through;
	margin-right: 6px;
}
.hd-card__price ins {
	color: var(--g-main);
}
body:not(.hd-front) .hd-card__info {
	padding-top: 20px;
}
.hd-card__quick:disabled {
	opacity: 0.6;
	cursor: progress;
}

@media (max-width: 749px) {
	:root {
		--container-pad: 20px;
	}
	h1 { font-size: 27px; }
	h2 { font-size: 24px; }
	.hd-card__badge {
		top: 16px;
		left: 16px;
		padding: 3px 6px;
		font-size: 10px;
	}
	.hd-card__info {
		padding: 0 0 8px;
	}
	.hd-card__title {
		font-size: 15px;
		line-height: 1.2;
		margin-bottom: 10px;
	}
	.hd-card__vendor,
	.hd-card__price {
		font-size: 15px;
		line-height: 24px;
	}
	.hd-card__quick {
		left: auto;
		right: 6px;
		bottom: 6px;
		transform: none;
		width: 36px;
		height: 36px;
		padding: 0;
		border-radius: 50%;
		opacity: 1;
		pointer-events: auto;
	}
	.hd-card__quick span {
		display: none;
	}
	.hd-card__quick::after {
		content: '+';
		font-size: 22px;
		font-weight: 300;
		line-height: 1;
	}
	.hd-card__quick svg {
		display: none;
	}
	.hd-card:hover .hd-card__img--main {
		opacity: 1;
	}
	.hd-card:hover .hd-card__img--hover {
		opacity: 0;
	}
}
