/*                                                                            GARAN / ΕΓΓΥΗΣΗ (D4U)
[2] ===================================================================================================== */

/* Inter, self-hosted.
   The EU harmonised guarantee notice must render in Inter. Serving it from a
   third-party CDN would let a cookie-consent blocker strip the font from a
   legally mandated element, so it is hosted here instead. Greek and Latin
   subsets only, weights 400/600/800 as the specification requires. */
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('fonts/inter/inter-400-greek-ext.woff2') format('woff2');
	unicode-range: U+1F00-1FFF;
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('fonts/inter/inter-400-greek.woff2') format('woff2');
	unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('fonts/inter/inter-400-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('fonts/inter/inter-400-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('fonts/inter/inter-600-greek-ext.woff2') format('woff2');
	unicode-range: U+1F00-1FFF;
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('fonts/inter/inter-600-greek.woff2') format('woff2');
	unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('fonts/inter/inter-600-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('fonts/inter/inter-600-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url('fonts/inter/inter-800-greek-ext.woff2') format('woff2');
	unicode-range: U+1F00-1FFF;
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url('fonts/inter/inter-800-greek.woff2') format('woff2');
	unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url('fonts/inter/inter-800-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url('fonts/inter/inter-800-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* --- the harmonised guarantee badge ---------------------------------------------------
   Colours are fixed by the specification and must render in RGB on an online interface:
     Reflex Blue  #003399      Yellow  #FFED00
     Black 6      #000000      White   #FFFFFF
   Do not restyle these values. The whole badge is one anchor because the specification
   requires a clickable link sharing the QR code's destination - a QR cannot be scanned
   on the device the buyer is already using. */

.garan-eu-badge {
	display: inline-flex;
	align-items: center;
	padding: 5px 10px;
	border: 1px solid #003399;
	border-radius: 3px;
	background: #FFFFFF;
	color: #000000 !important;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.25;
	text-decoration: none !important;
	vertical-align: middle;
	max-width: 100%;
}

/* Hover is not part of the harmonised specification - it says nothing about interaction
   states - so this is the shop's own brand red rather than a palette colour. The wording
   goes white with it: black on #BA0C2F is only 3.18:1, below the 4.5:1 WCAG AA needs,
   while white reaches 6.60:1. The emblem itself is left untouched. */
.garan-eu-badge:hover,
.garan-eu-badge:focus {
	background: #BA0C2F;
	border-color: #BA0C2F;
	color: #FFFFFF !important;
}

.garan-eu-badge:hover .garan-eu-badge-text,
.garan-eu-badge:focus .garan-eu-badge-text {
	color: #FFFFFF;
}

.garan-eu-badge:focus-visible {
	outline: 2px solid #003399;
	outline-offset: 2px;
}

/* The official shield is taller than it is wide (38.65 x 50.81), so it is sized by
   height with the width left to follow - forcing a square would squash the emblem. */
.garan-shield {
	flex: 0 0 auto;
	display: block;
	height: 15px;
	width: auto;
	/* margin rather than flex gap: gap is unsupported in Safari before 14.1, where the
	   emblem would sit flush against the wording. */
	margin-right: 9px;
}

.garan-eu-badge-text {
	font-weight: 800;
	letter-spacing: .005em;
}

/* --- the official GARAN label -----------------------------------------------------
   Inlined rather than referenced as an image so the artwork's own colours sit literally
   in the markup, the year count stays real text, and it renders in the self-hosted Inter.
   The aspect ratio is roughly 11:1, so every placement sizes by width and lets the height
   follow. */

.garan-label-link {
	display: block;
	text-decoration: none !important;
	line-height: 0;
}

.garan-label {
	display: block;
	width: 100%;
	height: auto;
}

/* the full label is portrait (~0.95:1) and carries a QR; it sizes to the aside column */
.garan-certificate {
	display: block;
	width: 100%;
	height: auto;
	max-width: 260px;
	margin: 0 auto;
}

.garan-doc-certificate .garan-artwork {
	line-height: 0;
}

/* product page: wording in the specification list, under the product code */
li.p-garan-model {
	margin: 8px 0 !important;
}

.garan-model.garan-eu-badge {
	padding: 3px 8px;
	font-size: 11.5px;
	white-space: nowrap;
}

.garan-model.garan-eu-badge .garan-shield {
	height: 14px;
	margin-right: 7px;
}

/* product page: under the add-to-cart button. Without the producer and collection
   blocks the label is back to its native 6.5:1, so it is capped rather than run full
   width, and given room to breathe away from the button and whatever follows. */
.garan-product {
	max-width: 320px;
}

.p-garan {
	margin: 20px 0;
}

/* product grid: the card is narrow, so the label takes the caption width */
.garan-grid.garan-label,
a.garan-grid .garan-label {
	max-width: 100%;
}

a.garan-grid:not(.garan-eu-badge) {
	display: block;
	margin: 6px 0 2px;
}

/* cart and checkout rows */
.garan-cart,
.garan-xcart {
	display: block;
	margin-top: 6px;
}

@media (max-width: 767px) {
	.garan-product {
		max-width: 280px;
	}
}

/* --- product grid: between the brand and the price --- */
.garan-grid {
	display: inline-flex;
	margin: 6px 0 2px;
	line-height: 1;
	text-decoration: none !important;
}

.garan-grid.garan-eu-badge {
	display: inline-flex;
	align-items: center;
	margin: 6px 0 2px;
	padding: 3px 8px;
	font-size: 11px;
	line-height: 1.3;
	white-space: nowrap;
}

/* Matched to the 11px wording so the emblem sits level with it rather than
   overhanging the line. */
.garan-grid.garan-eu-badge .garan-shield {
	height: 13px;
	margin-right: 7px;
}

.garan-grid-icon {
	height: 22px;
	width: auto;
	display: inline-block;
	vertical-align: middle;
}

/* --- cart and checkout rows --- */
.garan-cart,
.garan-xcart {
	display: inline-block;
	margin-top: 5px;
}

.garan-chip.garan-eu-badge {
	padding: 3px 8px;
	font-size: 11px;
	line-height: 1.3;
	white-space: nowrap;
}

.garan-chip.garan-eu-badge .garan-shield {
	height: 13px;
	margin-right: 7px;
}



/* --- product page: the Guarantee tab ---
   Keyed on the id, not a class: the theme's custom JS restructures the tabs into an
   accordion and calls removeClass() on every pane, so any class here would be stripped. */
#garan {
	display: flex;
	gap: 28px;
	align-items: flex-start;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

#garan .garan-legal {
	flex: 1 1 auto;
	min-width: 0;
}

/* The official notice is the tab's main content, so it gets the wide column and a
   readable size rather than being squeezed into the side panel. */
.garan-notice {
	display: block;
	text-decoration: none !important;
	line-height: 0;
}

.garan-notice img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 560px;
	border: 1px solid #e5e5e5;
}

.garan-notice-pdf {
	height: 620px;
	max-width: 560px;
}

#garan .garan-legal-heading {
	margin-top: 0;
	font-size: 15px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #003399;
}

#garan .garan-legal > .garan-eu-badge {
	margin-bottom: 14px;
}

#garan .garan-lede {
	font-size: 15px;
	font-weight: 600;
}

#garan .garan-subhead {
	margin-bottom: 4px;
}

#garan .garan-note {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid #e5e5e5;
	font-size: 12px;
	color: #444;
}

#garan .garan-aside {
	flex: 0 0 230px;
	text-align: center;
}

#garan .garan-doc {
	padding: 14px;
	margin-bottom: 14px;
	border: 1px solid #e5e5e5;
	border-radius: 3px;
	background: #fafbfc;
}

#garan .garan-aside-heading {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
}

#garan .garan-artwork {
	display: block;
}

#garan .garan-artwork img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
}

/* Display-only: pointer-events are off so every click reaches the wrapping anchor and
   lands on the EU destination, which is what the specification requires. */
#garan .garan-pdf-preview {
	display: block;
	width: 100%;
	height: 230px;
	border: 1px solid #e0e0e0;
	background: #FFFFFF;
	pointer-events: none;
}

#garan .garan-doc-name {
	display: block;
	margin-top: 8px;
	font-size: 12px;
	text-decoration: underline;
	word-break: break-word;
}

#garan .garan-aside-years {
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 6px;
}

#garan .garan-eu {
	display: inline-block;
	font-size: 12px;
	text-decoration: underline;
}

#garan .garan-artwork-alt {
	display: none;
}

@media (max-width: 1024px) {
	#garan .garan-aside {
		flex-basis: 200px;
	}
	#garan .garan-pdf-preview {
		height: 180px;
	}
}

@media (max-width: 767px) {
	#garan {
		display: block;
	}
	#garan .garan-aside {
		margin-top: 22px;
		text-align: left;
	}
	/* Inline PDF viewers are unreliable on mobile browsers, so the still image takes
	   over. The badge above still carries the guarantee statement and the link. */
	#garan .garan-pdf-preview {
		display: none;
	}
	#garan .garan-artwork-alt {
		display: block;
	}
	.garan-eu-badge {
		font-size: 12px;
		padding: 4px 8px;
	}
	.garan-grid.garan-eu-badge {
		font-size: 10px;
	}
	.garan-grid.garan-eu-badge .garan-shield {
		height: 12px;
		margin-right: 6px;
	}
}

@media print {
	#garan {
		display: block !important;
	}
	#garan .garan-pdf-preview {
		display: none;
	}
	#garan .garan-artwork-alt {
		display: block;
	}
	/* Print keeps the colours: the notice must stay in RGB/colour wherever it appears. */
	.garan-eu-badge {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}
}
