/**
 *
 *   404 page
 *   ========
 *
 *   404.php: Findbar search, category tiles, featured products, contact,
 *   in full-width bands of the site's own colours: the navy-purple of the
 *   footer and buttons, the logo pink, the teal and pale aqua of the home
 *   page and the shop filters, the filter mauve.
 *
 */

.nvm-404 {
	--nvm-404-navy   : rgb(71, 73, 114);
	--nvm-404-pink   : rgb(248, 151, 194);
	--nvm-404-teal   : rgb(131, 180, 185);
	--nvm-404-aqua   : rgb(215, 231, 231);
	--nvm-404-mauve  : rgb(150, 88, 138);
	--nvm-404-blush  : rgb(253, 243, 248);
	--nvm-404-ink    : #1f1f1f;
	--nvm-404-gutter : clamp(16px, 4vw, 48px);
	--nvm-404-radius : 22px;

	color: var(--nvm-404-ink);
}

/* The coloured hero starts right under the fixed header, without the usual
   180px minimum of theme.header-offset.css. */
.error404 .nvm-404.content-main {
	padding-top: var(--nvm-header-height, 180px);
	padding-bottom: 0;
}

.nvm-404 *,
.nvm-404 *::before,
.nvm-404 *::after {
	box-sizing: border-box;
}

.nvm-404-inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 var(--nvm-404-gutter);
}

.nvm-404 a:focus-visible,
.nvm-404 button:focus-visible {
	outline: 3px solid var(--nvm-404-pink);
	outline-offset: 3px;
}

.nvm-404 h2 {
	margin: 0 0 28px;
	color: var(--nvm-404-navy);
	font-size: clamp(24px, 3vw, 34px);
	font-weight: 700;
	line-height: 1.2;
}

/* A short teal stroke under the section titles. */
.nvm-404 h2::after {
	content: "";
	display: block;
	width: 56px;
	height: 4px;
	margin-top: 12px;
	border-radius: 4px;
	background: var(--nvm-404-teal);
}



/* Hero: navy band, pink 404, Findbar. */

.nvm-404-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 7vw, 96px);
	background: var(--nvm-404-navy);
	color: #fff;
	text-align: center;
}

/* Soft teal and pink circles, like the shapes on the home page banners. */
.nvm-404-hero::before,
.nvm-404-hero::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}

.nvm-404-hero::before {
	top: -120px;
	left: -100px;
	width: 340px;
	height: 340px;
	background: var(--nvm-404-teal);
	opacity: 0.35;
}

.nvm-404-hero::after {
	right: -80px;
	bottom: -140px;
	width: 300px;
	height: 300px;
	background: var(--nvm-404-pink);
	opacity: 0.22;
}

.nvm-404-hero .nvm-404-inner {
	position: relative;
	z-index: 1;
}

.nvm-404 .nvm-404-code {
	margin: 0;
	color: var(--nvm-404-pink);
	font-size: clamp(88px, 15vw, 180px);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.03em;
}

.nvm-404-hero h1 {
	margin: 12px 0 14px;
	color: #fff;
	font-size: clamp(26px, 3.6vw, 42px);
	font-weight: 700;
	line-height: 1.2;
}

.nvm-404 .nvm-404-lead {
	max-width: 620px;
	margin: 0 auto 30px;
	color: rgba(255, 255, 255, 0.88);
	font-size: clamp(16px, 1.6vw, 18px);
	line-height: 1.6;
}

.nvm-404-findbar {
	max-width: 680px;
	margin: 0 auto;
	text-align: left;
}

/* Findbar's own box, moved in from the header: just give it room. */
.nvm-404-findbar.has-findbar .dgwt-wcas-search-form {
	width: 100%;
	max-width: none;
	margin: 0;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
	border-radius: 999px;
}

/* Fallback form, only while Findbar has not loaded. */
.nvm-404-search {
	display: flex;
	padding: 6px;
	border-radius: 999px;
	background: #fff;
}

.nvm-404-search input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	height: 48px;
	margin: 0;
	padding: 0 18px;
	border: 0;
	background: transparent;
	color: var(--nvm-404-ink);
	font-size: 16px; /* 16px stops iOS zooming in on focus. */
	box-shadow: none;
}

.nvm-404-search input[type="search"]:focus {
	outline: none;
}

.nvm-404-search button {
	flex: 0 0 auto;
	height: 48px;
	margin: 0;
	padding: 0 26px;
	border: 0;
	border-radius: 999px;
	background: var(--nvm-404-pink);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}

/* Quick links: pink pills with a chevron, like the home page buttons. */
.nvm-404 .nvm-404-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin: 30px 0 0;
	padding: 0;
	list-style: none;
}

.nvm-404 .nvm-404-links li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nvm-404 .nvm-404-links a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 11px 22px;
	border: 2px solid var(--nvm-404-pink);
	border-radius: 999px;
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.nvm-404 .nvm-404-links a::after {
	content: "";
	width: 8px;
	height: 8px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: rotate(45deg);
}

.nvm-404 .nvm-404-links li:first-child a,
.nvm-404 .nvm-404-links a:hover {
	background: var(--nvm-404-pink);
	color: var(--nvm-404-navy);
}



/* Categories: pale aqua band, photo tiles with navy labels. */

.nvm-404-categories {
	padding: clamp(48px, 6vw, 80px) 0;
	background: var(--nvm-404-aqua);
}

.nvm-404 .nvm-404-categories ul {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(12px, 2vw, 24px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.nvm-404 .nvm-404-categories li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nvm-404 .nvm-404-categories a {
	position: relative;
	display: block;
	overflow: hidden;
	border-bottom: 0; /* theme.typography.css underlines links with a bottom border. */
	border-radius: var(--nvm-404-radius);
	background: var(--nvm-404-teal);
	text-decoration: none;
	box-shadow: 0 6px 18px rgba(71, 73, 114, 0.12);
}

/* Responsiville sets img { height: auto !important }. */
.responsiville .nvm-404 .nvm-404-categories img {
	display: block;
	width: 100%;
	height: 100% !important;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.nvm-404 .nvm-404-categories a:hover img {
	transform: scale(1.05);
}

.nvm-404 .nvm-404-categories span {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 12px;
	padding: 10px 14px;
	border-radius: 999px;
	background: var(--nvm-404-navy);
	color: #fff;
	font-size: clamp(14px, 1.4vw, 17px);
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.nvm-404 .nvm-404-categories a:hover span {
	background: var(--nvm-404-pink);
	color: var(--nvm-404-navy);
}



/* Featured products. */

.nvm-404-products {
	padding: clamp(48px, 6vw, 80px) 0 clamp(24px, 4vw, 48px);
}



/* Help: store photo beside three contact cards, on a blush band. */

.nvm-404-help {
	padding: clamp(48px, 6vw, 80px) 0;
	background: var(--nvm-404-blush);
}

.nvm-404-help-box {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
}

.nvm-404-help-photo {
	position: relative;
	margin: 0;
}

/* Responsiville sets img { height: auto !important }. */
.responsiville .nvm-404 .nvm-404-help-photo img {
	display: block;
	width: 100%;
	height: 100% !important;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: var(--nvm-404-radius);
	box-shadow: 18px 18px 0 var(--nvm-404-teal);
}

.nvm-404-help-photo figcaption {
	position: absolute;
	top: 20px;
	left: -12px;
	padding: 10px 18px;
	border-radius: 999px;
	background: var(--nvm-404-pink);
	color: var(--nvm-404-navy);
	font-size: 15px;
	font-weight: 700;
	box-shadow: 0 6px 16px rgba(71, 73, 114, 0.2);
}

.nvm-404 .nvm-404-eyebrow {
	margin: 0 0 8px;
	color: var(--nvm-404-mauve);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.nvm-404 .nvm-404-help h2 {
	margin-bottom: 18px;
}

.nvm-404 .nvm-404-help-lead {
	margin: 0 0 28px;
	color: var(--nvm-404-ink);
	font-size: clamp(16px, 1.6vw, 18px);
	line-height: 1.6;
}

.nvm-404 .nvm-404-contact {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nvm-404 .nvm-404-contact li {
	--nvm-404-accent: var(--nvm-404-pink);

	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin: 0;
	padding: 18px 20px;
	border-left: 5px solid var(--nvm-404-accent);
	border-radius: 16px;
	background: #fff;
	list-style: none;
	box-shadow: 0 4px 14px rgba(71, 73, 114, 0.08);
}

.nvm-404 .nvm-404-contact li.is-message {
	--nvm-404-accent: var(--nvm-404-teal);
}

.nvm-404 .nvm-404-contact li.is-store {
	--nvm-404-accent: var(--nvm-404-mauve);
}

.nvm-404-contact-icon {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--nvm-404-accent);
}

.nvm-404-contact-icon svg {
	width: 26px;
	height: 26px;
}

.nvm-404-contact-icon svg path {
	fill: #fff;
}

.nvm-404-contact-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.nvm-404-contact-label {
	color: var(--nvm-404-mauve);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.nvm-404 .nvm-404-contact-text > a {
	align-self: flex-start;
	border-bottom: 0;
	color: var(--nvm-404-navy);
	font-size: clamp(18px, 2vw, 22px);
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
}

.nvm-404 .nvm-404-contact-text > a:hover {
	color: var(--nvm-404-mauve);
}

.nvm-404-contact-note {
	color: #5c5c66;
	font-size: 14px;
	line-height: 1.5;
}

.nvm-404 .nvm-404-contact-note a {
	color: var(--nvm-404-navy);
	font-weight: 600;
}



@media ( max-width: 900px ) {

	.nvm-404 .nvm-404-categories ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nvm-404-help-box {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Photo as a wide banner above the cards. */
	.responsiville .nvm-404 .nvm-404-help-photo img {
		aspect-ratio: 16 / 10;
		box-shadow: 10px 10px 0 var(--nvm-404-teal);
	}

	/* Bottom corner, clear of the faces in the wide crop. */
	.nvm-404-help-photo figcaption {
		top: auto;
		bottom: 22px;
		left: 12px;
	}

}

@media ( max-width: 600px ) {

	.nvm-404-hero::before {
		width: 220px;
		height: 220px;
	}

	.nvm-404-hero::after {
		width: 200px;
		height: 200px;
	}

	.nvm-404-search {
		flex-direction: column;
		gap: 6px;
		border-radius: 26px;
	}

	.nvm-404 .nvm-404-links a {
		padding: 10px 18px;
		font-size: 15px;
	}

	.nvm-404 .nvm-404-categories span {
		left: 8px;
		right: 8px;
		bottom: 8px;
		padding: 8px 10px;
		font-size: clamp(12px, 3.5vw, 15px); /* "Χριστουγεννιάτικα" fits on one line. */
	}

	.nvm-404 .nvm-404-contact li {
		padding: 16px;
		gap: 14px;
	}

	.nvm-404-contact-icon {
		width: 42px;
		height: 42px;
	}

}
