/**
 * MiniWild shared components: header, footer, product card.
 * Built on tokens.css and theme.json presets. Figma: MiniWild Design System
 * (Header, Context ribbon, Footer, Cards / Product).
 *
 * Breakpoints follow the design system: Compact <600, Medium 600–1023,
 * Expanded ≥1024. The header switches to the full menu at 1280.
 */

/* ------------------------------------------------------------------ */
/* Shared                                                              */
/* ------------------------------------------------------------------ */

/* Sticky footer: the page is at least one screen tall and <main> takes
   the spare room, so a short page never shows blank space under the
   footer. The admin bar pushes <html> down, so its height comes off. */
.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px));
}

.wp-site-blocks > main {
	flex-grow: 1;
}

.mw-section {
	padding-block: var(--mw-layout-section-y);
	padding-inline: var(--mw-layout-margin);
}

.mw-section__heading {
	margin-block-end: var(--wp--preset--spacing--40);
}

.mw-section__heading h2 {
	margin: 0;
}

.mw-link-arrow {
	margin: 0;
}

.mw-link-arrow a {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	text-decoration: none;
}

.mw-link-arrow a::after {
	content: " →";
}

.mw-link-arrow a:hover {
	text-decoration: underline;
}

/* ------------------------------------------------------------------ */
/* Header + Context ribbon                                             */
/* ------------------------------------------------------------------ */

/* The header follows the page: the ribbon scrolls away, the bar (logo,
   menu, search, cart) stays at the top. WordPress wraps the pattern in its
   own <header class="wp-block-template-part"> of the same height, so the
   sticky rule goes on that wrapper; on .mw-header it had no room to move.
   assets/js/header.js measures the ribbon and the bar:
   --mw-ribbon-height  how far the header slides up before it sticks
   --mw-header-height  what stays on screen (the bar)
   --mw-header-shown   how much of the bar shows right now
   --mw-sticky-top     where other sticky panels and anchor jumps start.
   Scrolling down hides the bar, scrolling up brings it back: the script
   sets .mw-header-hidden on <html>. The bar slides by its `top`, not a
   transform, so the mobile menu and mini-cart (position: fixed inside the
   header) still cover the whole screen.
   Without the script the whole header sticks, ribbon included. */
:root {
	--mw-admin-bar: var(--wp-admin--admin-bar--height, 0px);
	--mw-ribbon-height: 0px;
	--mw-header-height: 0px;
	--mw-header-shown: var(--mw-header-height);
	--mw-sticky-top: calc(var(--mw-admin-bar) + var(--mw-header-shown));
}

:root.mw-header-hidden {
	--mw-header-shown: 0px;
}

/* Below 600px the admin bar scrolls away with the page. */
@media (max-width: 600px) {
	:root {
		--mw-admin-bar: 0px;
	}
}

html {
	scroll-padding-top: var(--mw-sticky-top);
}

.wp-block-template-part:has(> .mw-header) {
	position: sticky;
	top: calc(var(--mw-admin-bar) - var(--mw-ribbon-height) - var(--mw-header-height) + var(--mw-header-shown));
	z-index: 100;
	transition: top var(--mw-motion-slow) var(--mw-easing);
}

.mw-header {
	background: var(--wp--preset--color--base);
	border-block-end: var(--mw-border-thin) solid var(--mw-color-outline-variant);
}

.mw-ribbon {
	gap: var(--wp--preset--spacing--20);
	padding: var(--mw-space-sm) var(--mw-layout-margin);
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--mw-font-size-x-small);
	font-weight: 600;
	text-align: center;
}

.mw-ribbon p {
	margin: 0;
}

.mw-ribbon a {
	margin-inline-start: var(--wp--preset--spacing--20);
	color: inherit;
	text-decoration: underline;
}

.mw-header__bar {
	padding-block: var(--mw-space-sm);
	padding-inline: var(--mw-layout-margin);
}

.mw-header__inner {
	gap: var(--wp--preset--spacing--40);
	align-items: center;
}

.mw-header__logo {
	flex: 0 0 auto;
	margin: 0;
}

.mw-header__logo img {
	display: block;
	width: auto;
	height: 56px;
}

/* theme.json rounds every image block; on the logos that clips the "M", the "d" and the bird. */
.mw-header__logo img,
.mw-footer__logo img {
	border-radius: 0 !important;
}

.mw-header__nav {
	flex: 0 0 auto; /* menu hugs its items; the search takes the rest (as in Figma) */
	gap: var(--wp--preset--spacing--40);
}

.mw-header__nav .wp-block-navigation-item__content {
	white-space: nowrap;
}

/* 1280–1439: a little less space between menu items, so the search stays readable. */
@media (min-width: 1280px) and (max-width: 1439px) {
	.mw-header__nav {
		gap: var(--wp--preset--spacing--30);
	}
}

.mw-header__nav .wp-block-navigation-item__content {
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.0625rem;
	font-weight: 700;
	text-decoration: none;
}

.mw-header__nav .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--primary-dark);
	text-decoration: underline;
}

.mw-header__nav .is-highlight .wp-block-navigation-item__content {
	color: var(--mw-color-accent-text);
}

/* Search field (pill, as Search / Medium). */
.mw-header__search {
	flex: 1 1 300px;
	min-width: 10rem;
	max-width: 300px;
	margin: 0;
}

.mw-header__search .wp-block-search__inside-wrapper {
	min-height: var(--mw-size-control-md);
	padding: 0 var(--mw-space-2xs) 0 var(--wp--preset--spacing--30);
	border: var(--mw-border-thin) solid var(--mw-color-outline-variant);
	border-radius: var(--wp--custom--radius--pill);
	background: var(--mw-color-surface-container-low);
}

.mw-header__search .wp-block-search__input {
	min-width: 0;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
}

.mw-header__search .wp-block-search__input::placeholder {
	color: var(--mw-color-on-surface-variant);
	opacity: 1;
}

.mw-header__search .wp-block-search__button,
.mw-header__search-toggle .wp-block-search__button {
	margin: 0;
	padding: var(--wp--preset--spacing--20);
	border-radius: var(--wp--custom--radius--pill);
	background: transparent;
	color: var(--wp--preset--color--contrast);
}

.mw-header__search .wp-block-search__button svg,
.mw-header__search-toggle .wp-block-search__button svg {
	fill: currentColor;
}

/* Icon actions: 48px touch targets (Button icon / Standard). */
.mw-header__actions {
	gap: var(--mw-space-2xs);
	align-items: center;
}

.mw-header__actions .wc-block-mini-cart__button,
.mw-header__search-toggle .wp-block-search__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: var(--mw-size-control-lg);
	min-height: var(--mw-size-control-lg);
	color: var(--wp--preset--color--contrast);
}

.mw-header__actions .wc-block-mini-cart__badge {
	background: var(--mw-color-error) !important; /* WooCommerce sets badge colours inline */
	color: var(--mw-color-on-error) !important;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
}

/* Account (Dropdown user / Compact): person icon for guests, avatar with
   initials when signed in. The menu is absolute, so the header keeps its height. */
.mw-user {
	position: relative;
	flex: none;
}

.mw-user__trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--mw-size-control-lg);
	height: var(--mw-size-control-lg);
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: var(--wp--custom--radius--pill);
	background: transparent;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	cursor: pointer;
}

.mw-user__trigger:hover {
	background: var(--mw-color-surface-container-low);
}

.mw-user__button[aria-expanded="true"] {
	background: var(--mw-color-surface-container-high);
}

.mw-user__trigger:focus-visible,
.mw-user__menu a:focus-visible {
	outline: var(--mw-border-thick) solid var(--mw-color-focus);
	outline-offset: 2px;
}

.mw-user__icon {
	width: var(--mw-size-icon-lg);
	height: var(--mw-size-icon-lg);
	background: currentColor;
	-webkit-mask: var(--mw-icon-person) center / contain no-repeat;
	mask: var(--mw-icon-person) center / contain no-repeat;
}

.mw-user__avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--primary-light);
	color: var(--mw-color-on-primary-container);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.1px;
}

/* Tablet and desktop: the avatar is a menu button; phones get the plain link. */
.mw-user__link {
	display: none;
}

.mw-user__menu {
	position: absolute;
	top: calc(100% + var(--mw-space-2xs));
	right: 0;
	z-index: 100;
	width: 280px;
	margin: 0;
	padding: var(--wp--preset--spacing--20) 0;
	border-radius: var(--wp--custom--radius--small);
	background: var(--wp--preset--color--white);
	box-shadow: var(--wp--preset--shadow--floating);
	list-style: none;
}

.mw-user__menu[hidden] {
	display: none;
}

.mw-user__menu a {
	display: flex;
	align-items: center;
	gap: var(--mw-space-sm);
	min-height: var(--mw-size-control-lg);
	padding-inline: var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.6;
	text-decoration: none;
}

.mw-user__menu a::before {
	content: "";
	flex: none;
	width: var(--mw-size-icon-md);
	height: var(--mw-size-icon-md);
	background: var(--mw-color-on-surface-variant);
	-webkit-mask: var(--mw-icon) center / contain no-repeat;
	mask: var(--mw-icon) center / contain no-repeat;
}

.mw-user__menu a:hover,
.mw-user__menu a:focus-visible {
	background: var(--mw-color-surface-container-low);
}

.mw-user__menu a:focus-visible {
	outline-offset: -2px;
}

.mw-user__logout {
	border-block-start: var(--mw-border-thin) solid var(--mw-color-outline-variant);
}

@media (max-width: 599px) {
	.mw-user__link {
		display: inline-flex;
	}

	.mw-user__button,
	.mw-user__menu {
		display: none !important;
	}
}

/* Favourites: heart (outlined) with the number saved. */
.mw-header__wishlist {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: var(--mw-size-control-lg);
	min-height: var(--mw-size-control-lg);
	color: var(--wp--preset--color--contrast);
}

.mw-header__wishlist::before {
	content: "";
	width: var(--mw-size-icon-lg);
	height: var(--mw-size-icon-lg);
	background: currentColor;
	-webkit-mask: var(--mw-icon-favorite) center / contain no-repeat;
	mask: var(--mw-icon-favorite) center / contain no-repeat;
}

.mw-wishlist-count {
	position: absolute;
	top: 6px;
	right: 4px;
	min-width: 1.125rem;
	height: 1.125rem;
	padding-inline: 0.25rem;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.125rem;
	text-align: center;
}

.mw-wishlist-count[hidden] {
	display: none;
}

/* The icon-only search is only for compact screens. */
.mw-header__search-toggle {
	display: none;
}

/* Below 1280 (Header / Tablet in Figma, used at 768 and 1024): the six menu
   items do not fit next to the search, so use the hamburger and let search grow. */
@media (max-width: 1279px) {
	.mw-header__inner {
		gap: var(--wp--preset--spacing--20);
	}

	.mw-header__nav {
		flex: 0 0 auto;
		order: -1;
	}

	/* Core switches to the hamburger at 600px; we want it below 1280px. */
	.mw-header__nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.mw-header__nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}

	.mw-header__logo img {
		height: 48px;
	}

	.mw-header__search {
		flex: 1 1 auto;
		max-width: none;
	}
}

/* Compact (<600): menu · logo (centre) · search icon · account · cart. */
@media (max-width: 599px) {
	.mw-ribbon a {
		display: none;
	}

	.mw-header__logo {
		flex: 1 1 auto;
		display: flex;
		justify-content: center;
	}

	.mw-header__logo img {
		height: 44px;
	}

	.mw-header__search,
	.mw-header__wishlist {
		display: none;
	}

	.mw-header__search-toggle {
		display: block;
	}
}

/* Open menu overlay (all sizes). */
.mw-header__nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--preset--spacing--40) var(--mw-layout-margin);
}

.mw-header__nav .is-menu-open .wp-block-navigation-item__content {
	font-size: var(--wp--preset--font-size--large);
}

/* "Αγαπημένα" in the menu: phones only (tablet and desktop have the heart in the
   header). Set apart from the categories with a divider and the heart icon. */
@media (min-width: 600px) {
	.mw-header__nav .mw-nav-favourites {
		display: none !important; /* core's open-menu rules set every item to flex */
	}
}

@media (max-width: 599px) {
	.mw-header__nav .is-menu-open .wp-block-navigation__container {
		align-self: stretch; /* so the divider spans the menu */
	}

	.mw-header__nav .is-menu-open .mw-nav-favourites {
		align-self: stretch;
		margin-block-start: var(--wp--preset--spacing--20);
		padding-block-start: var(--wp--preset--spacing--40);
		border-block-start: var(--mw-border-thin) solid var(--mw-color-outline-variant);
	}

	.mw-header__nav .mw-nav-favourites .wp-block-navigation-item__content {
		display: inline-flex;
		align-items: center;
		gap: var(--mw-space-sm);
	}

	.mw-header__nav .mw-nav-favourites .wp-block-navigation-item__content::before {
		content: "";
		flex: none;
		width: var(--mw-size-icon-lg);
		height: var(--mw-size-icon-lg);
		background: currentColor;
		-webkit-mask: var(--mw-icon-favorite) center / contain no-repeat;
		mask: var(--mw-icon-favorite) center / contain no-repeat;
	}
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.mw-footer {
	margin-block-start: 0;
	padding-block-start: var(--mw-layout-section-y);
	padding-inline: var(--mw-layout-margin);
	background: var(--wp--preset--color--primary-dark);
	color: var(--wp--preset--color--primary-light);
	font-size: var(--wp--preset--font-size--small);
}

.mw-footer a {
	color: inherit;
	text-decoration: none;
}

.mw-footer a:hover {
	color: var(--wp--preset--color--white);
	text-decoration: underline;
}

.mw-footer__columns {
	gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
	margin-block-end: var(--mw-layout-section-y);
}

/* Core stacks columns below 782px (with !important); keep the link lists side by side instead. */
@media (max-width: 1023px) {
	.mw-footer__columns {
		flex-wrap: wrap !important;
	}

	.mw-footer .mw-footer__columns.wp-block-columns > .wp-block-column {
		flex-grow: 0;
		flex-basis: calc((100% - 2 * var(--wp--preset--spacing--50)) / 3) !important;
	}

	.mw-footer .mw-footer__columns.wp-block-columns > .mw-footer__brand,
	.mw-footer .mw-footer__columns.wp-block-columns > .mw-footer__newsletter {
		flex-basis: 100% !important;
	}
}

@media (max-width: 599px) {
	.mw-footer .mw-footer__columns.wp-block-columns > .wp-block-column:not(.mw-footer__brand):not(.mw-footer__newsletter) {
		flex-basis: calc((100% - var(--wp--preset--spacing--50)) / 2) !important;
	}
}

.mw-footer__logo img {
	display: block;
	width: 120px;
	height: auto;
}

.mw-footer__title {
	margin-block-end: var(--wp--preset--spacing--20);
	color: var(--wp--preset--color--white);
	font-weight: 600;
}

.mw-footer__links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mw-footer__links li + li {
	margin-block-start: var(--wp--preset--spacing--20);
}

.mw-footer__social .wp-social-link {
	color: var(--wp--preset--color--white);
}

.mw-footer__heading {
	margin-block-start: 0;
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--large);
}

/* Newsletter form: pill field + Secondary button. */
.mw-newsletter {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--20);
}

.mw-newsletter input {
	flex: 1 1 180px;
	min-height: var(--mw-size-control-lg);
	padding: 0 var(--wp--preset--spacing--30);
	border: 0;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: var(--wp--preset--font-size--medium);
}

.mw-newsletter button {
	min-height: var(--mw-size-control-lg);
	padding: 0 var(--wp--preset--spacing--40);
	border: 0;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent-contrast);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.0625rem;
	font-weight: 700;
	cursor: pointer;
}

.mw-newsletter input:focus-visible,
.mw-newsletter button:focus-visible {
	outline: var(--mw-border-thick) solid var(--mw-color-inverse-primary);
	outline-offset: 3px;
}

.mw-newsletter input[aria-invalid="true"] {
	box-shadow: inset 0 0 0 var(--mw-border-thick) var(--mw-terracotta-500);
}

.mw-newsletter button:disabled {
	opacity: 0.7;
	cursor: progress;
}

/* Hidden field that only bots fill in. */
.mw-newsletter__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.mw-newsletter__status,
.mw-newsletter__note {
	flex: 1 0 100%;
	margin: 0;
}

.mw-newsletter__status:empty {
	display: none;
}

.mw-newsletter__note {
	font-size: var(--mw-font-size-x-small);
	opacity: 0.85;
}

.mw-newsletter__note a {
	text-decoration: underline !important;
}

/*
 * Message (Medium) on the dark footer: icon + text, never colour alone.
 * Success = check circle, Info = info, Error = block; light tints of the
 * status colours so they stay readable on Σκούρο λαδί.
 */
.mw-newsletter .mw-message {
	display: flex;
	align-items: flex-start;
	gap: var(--mw-space-2xs);
	font-size: 1rem;
	font-weight: 600;
	line-height: 22px;
}

.mw-newsletter .mw-message::before {
	content: "";
	flex: none;
	width: var(--mw-size-icon-md);
	height: var(--mw-size-icon-md);
	background: currentColor;
	-webkit-mask: var(--mw-icon-check-circle) center / contain no-repeat;
	mask: var(--mw-icon-check-circle) center / contain no-repeat;
}

.mw-newsletter .mw-message--success {
	color: var(--mw-sage-100);
}

.mw-newsletter .mw-message--info {
	color: var(--mw-lake-100);
}

.mw-newsletter .mw-message--info::before {
	-webkit-mask-image: var(--mw-icon-info);
	mask-image: var(--mw-icon-info);
}

.mw-newsletter .mw-message--error {
	color: var(--mw-terracotta-100);
}

.mw-newsletter .mw-message--error::before {
	-webkit-mask-image: var(--mw-icon-block);
	mask-image: var(--mw-icon-block);
}

.mw-footer__legal {
	padding-block: var(--wp--preset--spacing--40);
	border-block-start: var(--mw-border-thin) solid var(--mw-color-inverse-primary);
}

.mw-footer__legal p {
	margin: 0;
}

.mw-footer__legal a + a {
	margin-inline-start: var(--wp--preset--spacing--40);
}

/* ------------------------------------------------------------------ */
/* Product card (WooCommerce product template)                         */
/* ------------------------------------------------------------------ */

/* Only the row gap: WooCommerce sizes the columns with its own column gap. */
.wc-block-product-template {
	row-gap: var(--wp--preset--spacing--50);
}

.wc-block-product-template .wc-block-product {
	min-width: 0; /* let grid columns shrink on small screens */
	display: flex;
	flex-direction: column;
	gap: var(--mw-space-2xs);
	text-align: start;
}

.wc-block-product .wc-block-components-product-image {
	position: relative;
	margin-block-end: var(--mw-space-sm);
	overflow: hidden;
	border-radius: var(--wp--custom--radius--medium);
	background: var(--mw-color-surface-container-high);
}

.wc-block-product .wc-block-components-product-image img {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
}

/* No photo yet: tinted square with a small image icon, as the design's placeholders. */
.wc-block-product .wc-block-components-product-image:has(img[src*="woocommerce-placeholder"]) {
	aspect-ratio: 1;
}

.wc-block-product .wc-block-components-product-image img[src*="woocommerce-placeholder"] {
	opacity: 0;
}

.wc-block-product .wc-block-components-product-image:has(img[src*="woocommerce-placeholder"])::after {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: var(--mw-size-icon-lg);
	height: var(--mw-size-icon-lg);
	background: var(--mw-color-on-surface-variant);
	-webkit-mask: var(--mw-icon-image) center / contain no-repeat;
	mask: var(--mw-icon-image) center / contain no-repeat;
	pointer-events: none;
}

/* Brand above the title (Label/Small). */
.wc-block-product .mw-card__brand {
	margin: 0;
	color: var(--mw-color-on-surface-variant);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.3px;
}

/* "Νέο" tag: same place and look as the sale tag (Tag / Secondary, small). */
.wc-block-product .mw-card__tag {
	position: absolute;
	top: var(--mw-space-sm);
	left: var(--mw-space-sm);
	z-index: 1;
	display: inline-flex;
	align-items: center;
	height: 1.375rem;
	padding-inline: var(--wp--preset--spacing--20);
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--accent-light);
	color: var(--mw-color-on-secondary-container);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.3px;
	pointer-events: none;
}

/* Heart (Button icon / Standard, 48px), top-right of the image. */
.wc-block-product .mw-wish {
	position: absolute;
	top: var(--wp--preset--spacing--20);
	right: var(--mw-space-sm);
	z-index: 2;
	display: grid;
	place-items: center;
	width: var(--mw-size-control-lg);
	height: var(--mw-size-control-lg);
	margin-inline-end: calc(-1 * var(--mw-space-2xs));
	padding: 0;
	border: 0;
	border-radius: var(--wp--custom--radius--pill);
	background: none;
	color: var(--mw-color-on-surface-variant);
	cursor: pointer;
}

.wc-block-product .mw-wish::before {
	content: "";
	width: var(--mw-size-icon-lg);
	height: var(--mw-size-icon-lg);
	background: currentColor;
	-webkit-mask: var(--mw-icon-favorite) center / contain no-repeat;
	mask: var(--mw-icon-favorite) center / contain no-repeat;
}

.wc-block-product .mw-wish:hover {
	background: color-mix(in srgb, var(--mw-color-on-surface-variant) 8%, transparent);
}

.wc-block-product .mw-wish:focus-visible {
	outline: 2px solid var(--mw-color-focus);
	outline-offset: -2px;
}

.wc-block-product .mw-wish[aria-pressed="true"] {
	color: var(--mw-color-error);
}

.wc-block-product .mw-wish[aria-pressed="true"]::before {
	-webkit-mask-image: var(--mw-icon-favorite-fill);
	mask-image: var(--mw-icon-favorite-fill);
}

/* Sale badge as Tag / Secondary, always top-left (WooCommerce aligns it right). */
.wc-block-product .wp-block-woocommerce-product-sale-badge {
	justify-content: flex-start;
}

.wc-block-product .wc-block-components-product-sale-badge.alignright {
	float: none;
	margin-inline: 0 auto;
}

.wc-block-product .wc-block-components-product-sale-badge {
	top: var(--mw-space-sm) !important;
	left: var(--mw-space-sm) !important; /* always top-left, as in the design */
	right: auto !important;
	display: inline-flex;
	align-items: center;
	height: 1.375rem;
	padding: 0 var(--wp--preset--spacing--20);
	border: 0;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--accent-light);
	color: var(--mw-color-on-secondary-container);
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.3px;
	text-transform: none;
}

/* WooCommerce's shop template centres the card text; the design is left-aligned. */
.wc-block-product .has-text-align-center {
	text-align: start;
}

.wc-block-product .wc-block-components-product-price.has-text-align-center,
.wc-block-product .wc-block-components-product-rating {
	justify-content: flex-start;
}

.wc-block-product .wp-block-post-title {
	margin: 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium) !important; /* beats the preset class */
	font-weight: 600;
	line-height: 1.45;
}

.wc-block-product .wp-block-post-title a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.wc-block-product .wp-block-post-title a:hover {
	text-decoration: underline;
}

.wc-block-product .wc-block-components-product-rating {
	margin: 0;
	color: var(--mw-color-rating);
	font-size: var(--mw-font-size-x-small);
}

.wc-block-product .wc-block-components-product-price {
	margin: 0;
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.0625rem !important; /* beats the has-*-font-size preset class */
	font-weight: 700;
}

.wc-block-product .wc-block-components-product-price del {
	margin-inline-start: var(--wp--preset--spacing--20);
	color: var(--mw-color-on-surface-variant);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--mw-font-size-x-small);
	font-weight: 400;
}

.wc-block-product .wc-block-components-product-price ins {
	color: var(--mw-color-error);
	text-decoration: none;
}

/* Sale price first, as in the design. */
.wc-block-product .wc-block-components-product-price:has(ins) {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: baseline;
	gap: 0 var(--wp--preset--spacing--20);
}

.wc-block-product .wc-block-components-product-price ins {
	order: -1;
}

.wc-block-product .wc-block-components-product-price:has(ins) del {
	margin-inline-start: 0;
}

/* Add to cart as Button / Tonal, pushed to the bottom of the card. */
.wc-block-product .wc-block-components-product-button {
	margin-block-start: auto;
	padding-block-start: var(--mw-space-sm);
}

/* The card says "Στο καλάθι" (inc/product-card.php), which fits a 156px card on one line. */
.wc-block-product .wc-block-components-product-button .wp-block-button__link {
	width: 100%;
	min-height: var(--mw-size-control-lg);
	padding-inline: var(--wp--preset--spacing--30);
	white-space: nowrap;
	background: var(--wp--preset--color--primary-light);
	color: var(--mw-color-on-primary-container);
}

.wc-block-product .wc-block-components-product-button .wp-block-button__link:hover {
	background: var(--mw-olive-200);
}

@media (max-width: 599px) {
	.wc-block-product .wp-block-post-title {
		font-size: var(--wp--preset--font-size--small) !important;
	}
}

/* ------------------------------------------------------------------ */
/* Checkout header (logo + "Ασφαλής πληρωμή")                         */
/* ------------------------------------------------------------------ */

.mw-checkout-header {
	padding: var(--mw-space-sm) var(--mw-layout-margin);
	border-block-end: var(--mw-border-thin) solid var(--mw-color-outline-variant);
	background: var(--wp--preset--color--base);
}

.mw-checkout-header .mw-header__logo img {
	height: 48px;
}

.mw-checkout-header__secure {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
	margin: 0;
	color: var(--mw-color-on-surface-variant);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

/* Lock icon (Material Symbols "lock") in success colour. */
.mw-checkout-header__secure::before {
	content: "";
	width: 20px;
	height: 20px;
	background-color: var(--mw-color-success);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='M240-80q-33 0-56.5-23.5T160-160v-400q0-33 23.5-56.5T240-640h40v-80q0-83 58.5-141.5T480-920q83 0 141.5 58.5T680-720v80h40q33 0 56.5 23.5T800-560v400q0 33-23.5 56.5T720-80H240Zm240-200q33 0 56.5-23.5T560-360q0-33-23.5-56.5T480-440q-33 0-56.5 23.5T400-360q0 33 23.5 56.5T480-280ZM360-640h240v-80q0-50-35-85t-85-35q-50 0-85 35t-35 85v80Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='M240-80q-33 0-56.5-23.5T160-160v-400q0-33 23.5-56.5T240-640h40v-80q0-83 58.5-141.5T480-920q83 0 141.5 58.5T680-720v80h40q33 0 56.5 23.5T800-560v400q0 33-23.5 56.5T720-80H240Zm240-200q33 0 56.5-23.5T560-360q0-33-23.5-56.5T480-440q-33 0-56.5 23.5T400-360q0 33 23.5 56.5T480-280ZM360-640h240v-80q0-50-35-85t-85-35q-50 0-85 35t-35 85v80Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ------------------------------------------------------------------ */
/* Language switcher (ΕΛ / EN)                                         */
/* ------------------------------------------------------------------ */

.mw-lang ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mw-lang a {
	text-decoration: none;
}

/* Compact: header, desktop and tablet. */
.mw-lang--compact {
	position: relative;
}

.mw-lang--compact summary {
	display: flex;
	align-items: center;
	gap: var(--mw-space-2xs);
	min-height: var(--mw-size-control-lg);
	padding-inline: var(--mw-space-sm);
	border-radius: var(--wp--custom--radius--pill);
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}

.mw-lang--compact summary::-webkit-details-marker {
	display: none;
}

.mw-lang--compact summary::before,
.mw-lang--compact summary::after,
.mw-lang__menu a[aria-current]::after,
.mw-lang--segmented a[aria-current]::before {
	content: "";
	flex: none;
	background: currentColor;
	-webkit-mask: var(--mw-icon) center / contain no-repeat;
	mask: var(--mw-icon) center / contain no-repeat;
}

.mw-lang--compact summary::before {
	--mw-icon: var(--mw-icon-language);
	width: var(--mw-size-icon-lg);
	height: var(--mw-size-icon-lg);
}

.mw-lang--compact summary::after {
	--mw-icon: var(--mw-icon-expand-more);
	width: var(--mw-size-icon-md);
	height: var(--mw-size-icon-md);
	transition: transform var(--mw-motion-fast) var(--mw-easing);
}

.mw-lang--compact[open] summary::after {
	transform: rotate(180deg);
}

.mw-lang--compact summary:hover,
.mw-lang--compact[open] summary {
	background: var(--mw-color-surface-container-low);
}

.mw-lang--compact summary:focus-visible {
	outline: 2px solid var(--mw-color-focus);
	outline-offset: 2px;
}

.mw-lang__menu {
	position: absolute;
	top: calc(100% + var(--mw-space-2xs));
	right: 0;
	z-index: 100;
	min-width: 10rem;
	padding-block: var(--wp--preset--spacing--20) !important;
	border-radius: var(--wp--custom--radius--medium);
	background: var(--wp--preset--color--white);
	box-shadow: var(--wp--preset--shadow--floating);
}

.mw-lang__menu a {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
	min-height: var(--mw-size-control-lg);
	padding-inline: var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--medium);
}

.mw-lang__menu a:hover,
.mw-lang__menu a:focus-visible {
	background: var(--mw-color-surface-container-low);
}

.mw-lang__menu a:focus-visible {
	outline: 2px solid var(--mw-color-focus);
	outline-offset: -2px;
}

.mw-lang__menu a[aria-current] {
	font-weight: 600;
}

.mw-lang__menu a[aria-current]::after {
	--mw-icon: var(--mw-icon-check);
	width: var(--mw-size-icon-md);
	height: var(--mw-size-icon-md);
	margin-inline-start: auto;
}

/* Phones: no room in the header; the switcher is in the menu (☰) and the footer. */
@media (max-width: 599px) {
	.mw-header__actions .mw-lang--compact {
		display: none;
	}
}

/* Segmented: top of the open mobile menu. */
.mw-lang--segmented {
	margin-block-end: var(--wp--preset--spacing--40);
}

.wp-block-navigation__responsive-container:not(.is-menu-open) .mw-lang--segmented {
	display: none;
}

.mw-lang--segmented ul {
	display: flex;
	width: max-content;
	overflow: hidden;
	border: var(--mw-border-thin) solid var(--mw-color-outline);
	border-radius: var(--wp--custom--radius--pill);
}

.mw-lang--segmented li + li a {
	border-inline-start: var(--mw-border-thin) solid var(--mw-color-outline);
}

.mw-lang--segmented a {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
	min-height: var(--mw-size-control-lg);
	padding-inline: var(--wp--preset--spacing--40);
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.mw-lang--segmented a[aria-current] {
	background: var(--wp--preset--color--accent-light);
	color: var(--mw-color-on-secondary-container);
}

.mw-lang--segmented a[aria-current]::before {
	--mw-icon: var(--mw-icon-check);
	width: var(--mw-size-icon-md);
	height: var(--mw-size-icon-md);
}

.mw-lang--segmented a:focus-visible {
	outline: 2px solid var(--mw-color-focus);
	outline-offset: -2px;
}

/* Inline: footer legal row, takes the surrounding text colour. */
.mw-lang--inline {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
}

.mw-lang--inline a {
	color: inherit;
	text-decoration: underline;
}

.mw-lang--inline a[aria-current] {
	font-weight: 600;
	text-decoration: none;
}

.mw-footer__legal-links {
	align-items: center;
	gap: var(--wp--preset--spacing--20) var(--wp--preset--spacing--40);
}

/* ------------------------------------------------------------------ */
/* Favourites page ("Αγαπημένα")                                       */
/* ------------------------------------------------------------------ */

/* The page content column is narrow (text width); the product grid uses the wide width. */
.mw-wishlist,
main:has(.mw-wishlist) > .wp-block-post-title {
	width: min(80rem, calc(100vw - 2 * var(--mw-layout-margin)));
	max-width: none !important;
	margin-inline: calc(50% - min(40rem, 50vw - var(--mw-layout-margin))) !important;
}

.mw-wishlist--empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
	padding-block: var(--mw-space-xl);
	color: var(--mw-color-on-surface-variant);
	text-align: center;
}

.mw-wishlist--empty p {
	margin: 0;
}

.mw-wishlist--empty .mw-wishlist__title {
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
}

.mw-wishlist--empty .wp-element-button {
	margin-block-start: var(--wp--preset--spacing--30);
	text-decoration: none;
}

/* ------------------------------------------------------------------ */
/* Toggle                                                              */
/* ------------------------------------------------------------------ */

/* Toggle (Design system: Toggle): label + 52×32 track; on: primary track, 24px white
 * handle with a check. Used by gift wrap (product page) and the cookie preferences. */
.mw-switch {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--30);
	justify-self: start;
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 400;
	line-height: 29px;
	cursor: pointer;
}

.mw-switch__input {
	position: relative;
	flex: none;
	width: 52px;
	height: 32px;
	margin: 0;
	border: var(--mw-border-thick) solid var(--mw-color-outline);
	border-radius: var(--wp--custom--radius--pill);
	background: var(--mw-color-surface-container-high);
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	transition: background var(--mw-motion-fast) var(--mw-easing), border-color var(--mw-motion-fast) var(--mw-easing);
}

.mw-switch__input::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 6px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--mw-color-outline);
	transform: translateY(-50%);
	transition: all var(--mw-motion-fast) var(--mw-easing);
}

.mw-switch__input:checked {
	border-color: var(--wp--preset--color--primary);
	background: var(--wp--preset--color--primary);
}

.mw-switch__input:checked::before {
	left: 22px;
	width: 24px;
	height: 24px;
	background: var(--wp--preset--color--white) var(--mw-icon-check-primary) center / 16px no-repeat;
}

.mw-switch__input:focus-visible {
	outline: 2px solid var(--mw-color-focus);
	outline-offset: 2px;
}

/* Always on (e.g. necessary cookies): muted track, handle with a muted check. */
.mw-switch__input:disabled {
	cursor: default;
}

.mw-switch__input:disabled:checked {
	border-color: var(--mw-color-on-disabled);
	background: var(--mw-color-on-disabled);
}

.mw-switch__input:disabled:checked::before {
	background-color: var(--wp--preset--color--base);
	filter: grayscale(1);
}

/* Moved from catalog.css: used by the catalog and the blog. */

/* ------------------------------------------------------------------ */
/* Filter chips (subcategories): radius sm, outline; current = accent  */
/* ------------------------------------------------------------------ */

.mw-chips ul {
	display: flex;
	gap: var(--wp--preset--spacing--20);
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Phones and tablets: one row that scrolls sideways. */
@media (max-width: 1023px) {
	.mw-chips {
		margin-inline: calc(-1 * var(--mw-layout-margin)) !important;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.mw-chips ul {
		width: max-content;
		padding-inline: var(--mw-layout-margin);
	}
}

@media (min-width: 1024px) {
	.mw-chips ul {
		flex-wrap: wrap;
	}
}

.mw-chip {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
	min-height: 2rem;
	padding-inline: var(--mw-space-sm);
	border: var(--mw-border-thin) solid var(--mw-color-outline);
	border-radius: var(--wp--custom--radius--small);
	color: var(--mw-color-on-surface-variant);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.1px;
	white-space: nowrap;
	text-decoration: none;
}

.mw-chip:hover {
	background: var(--mw-color-surface-container);
}

.mw-chip[aria-current] {
	border-color: transparent;
	background: var(--wp--preset--color--accent-light);
	color: var(--mw-color-on-secondary-container);
}

.mw-chip[aria-current]::before {
	content: "";
	width: 1rem;
	height: 1rem;
	background: currentColor;
	-webkit-mask: var(--mw-icon-check) center / contain no-repeat;
	mask: var(--mw-icon-check) center / contain no-repeat;
}

/* Pagination (Design system: Pagination): 40px circles, current = primary. */
.mw-pagination {
	gap: var(--wp--preset--spacing--20);
	margin-block-start: var(--wp--preset--spacing--40) !important;
	padding-block-start: var(--wp--preset--spacing--30);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.mw-pagination .wp-block-query-pagination-numbers {
	display: flex;
	gap: var(--wp--preset--spacing--20);
	margin: 0;
}

.mw-pagination .page-numbers,
.mw-pagination .wp-block-query-pagination-previous,
.mw-pagination .wp-block-query-pagination-next {
	display: inline-grid;
	place-items: center;
	min-width: var(--mw-size-control-md);
	height: var(--mw-size-control-md);
	margin: 0;
	border-radius: var(--wp--custom--radius--pill);
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.mw-pagination a.page-numbers:hover,
.mw-pagination .wp-block-query-pagination-previous:hover,
.mw-pagination .wp-block-query-pagination-next:hover {
	background: var(--mw-color-surface-container);
}

.mw-pagination .page-numbers.current {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}

.mw-pagination .page-numbers.dots {
	min-width: 1.5rem;
}

.mw-pagination .wp-block-query-pagination-previous,
.mw-pagination .wp-block-query-pagination-next {
	border: var(--mw-border-thin) solid var(--mw-color-outline);
}

.mw-pagination .wp-block-query-pagination-previous-arrow,
.mw-pagination .wp-block-query-pagination-next-arrow {
	display: block;
	width: 1.25rem;
	height: 1.25rem;
	margin: 0;
	overflow: hidden;
	color: transparent;
	background: var(--wp--preset--color--contrast);
	-webkit-mask: var(--mw-icon-chevron-right) center / contain no-repeat;
	mask: var(--mw-icon-chevron-right) center / contain no-repeat;
}

.mw-pagination .wp-block-query-pagination-previous-arrow {
	transform: scaleX(-1);
}

/* Pagination from paginate_links() (blog): previous / next as outlined circles. */
.mw-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
}

.mw-pagination .page-numbers.prev,
.mw-pagination .page-numbers.next {
	border: var(--mw-border-thin) solid var(--mw-color-outline);
}

.mw-pagination .page-numbers.prev::before,
.mw-pagination .page-numbers.next::before {
	content: "";
	width: 1.25rem;
	height: 1.25rem;
	background: var(--wp--preset--color--contrast);
	-webkit-mask: var(--mw-icon-chevron-right) center / contain no-repeat;
	mask: var(--mw-icon-chevron-right) center / contain no-repeat;
}

.mw-pagination .page-numbers.prev::before {
	transform: scaleX(-1);
}
