/*
Theme Name: MAIKO
Theme URI: https://wordpress.org/
Description: Тема магазину MAIKO за дизайном бренду: авторське головне зображення, емблема, написи з Canva, шрифти Cormorant SC і Lora (з кирилицею, підключені локально). Сумісна з WooCommerce. Усе редагується в «Вигляд → Редактор».
Version: 1.3.0
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: maiko
Tags: e-commerce, full-site-editing, block-patterns, wide-blocks
*/

/* ===========================================================================
   Основа
   ======================================================================== */

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

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.wp-site-blocks {
	position: relative;
}

img {
	height: auto;
}

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--wp--preset--color--taupe);
	outline-offset: 3px;
}

::selection {
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--contrast);
}

h1 a, h2 a, h3 a,
.wp-block-heading a {
	color: inherit;
	text-decoration: none;
}

/* Легке «сяйво» під заголовками, як у макеті */
.maiko-glow {
	text-shadow: 0 3px 10px rgb(0 0 0 / 0.16);
}

.maiko-glow-soft {
	text-shadow: 0 0 22px rgb(0 0 0 / 0.14);
}

/* Фон з тонким графічним пейзажем (toile) */
.maiko-toile {
	background-color: var(--wp--preset--color--base);
	background-image: url("assets/images/toile.webp");
	background-repeat: repeat-y;
	background-position: center top;
	background-size: 100% auto;
}

.maiko-toile-soft {
	background-color: var(--wp--preset--color--base);
	background-image: linear-gradient(rgb(255 255 255 / 0.55), rgb(255 255 255 / 0.55)), url("assets/images/toile.webp");
	background-repeat: repeat-y;
	background-position: center top;
	background-size: 100% auto;
}

/* ===========================================================================
   Шапка
   ======================================================================== */

.maiko-header {
	background: var(--wp--preset--color--base);
	border-bottom: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--grey);
}

.maiko-headbar {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 1rem;
}

.maiko-headbar > .maiko-nav {
	justify-self: start;
}

.maiko-headbar > .maiko-header-icons {
	grid-column: 3;
	justify-self: end;
	gap: 0.5rem;
}

.maiko-header-emblem {
	margin: 0 !important;
}

/* Шапка залишається вгорі під час прокручування (крім головної) */
.wp-block-template-part:has(> .maiko-header):not(.maiko-header-overlay) {
	position: sticky;
	top: 0;
	z-index: 50;
}

.admin-bar .wp-block-template-part:has(> .maiko-header):not(.maiko-header-overlay) {
	top: var(--wp-admin--admin-bar--height, 32px);
}

@media (max-width: 600px) {
	.admin-bar .wp-block-template-part:has(> .maiko-header):not(.maiko-header-overlay) {
		top: 0;
	}
}

/* Головна: прозора шапка поверх фото */
.maiko-header-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 40;
}

.maiko-header--hero {
	background: transparent;
	border-bottom: 0;
	color: var(--wp--preset--color--ivory);
}

/* «Гамбургер» тонкими лініями, як у макеті */
.maiko-nav .wp-block-navigation__responsive-container-open {
	color: inherit;
}

.maiko-nav .wp-block-navigation__responsive-container-open svg {
	width: 46px;
	height: 46px;
}

/* Меню на весь екран */
.maiko-nav .wp-block-navigation__responsive-container.is-menu-open {
	background-image: linear-gradient(rgb(255 255 255 / 0.6), rgb(255 255 255 / 0.6)), url("assets/images/toile.webp");
	background-size: cover;
	padding: clamp(1.5rem, 5vw, 4rem);
}

.maiko-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: center;
	padding-top: clamp(3rem, 12vh, 8rem);
}

.maiko-nav .is-menu-open .wp-block-navigation__container {
	align-items: center !important;
	gap: 1.25rem;
}

.maiko-nav .is-menu-open .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(2rem, 5vw, 3.25rem);
	letter-spacing: 0.04em;
}

.maiko-nav .is-menu-open .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--taupe);
}

.maiko-nav .wp-block-navigation__responsive-container-close svg {
	width: 40px;
	height: 40px;
}

/* Іконки кабінету й кошика */
.maiko-header-icons .wc-block-mini-cart__button,
.maiko-header-icons .wc-block-customer-account a {
	color: inherit;
	padding: 0.25rem;
}

.maiko-header-icons .wc-block-mini-cart__icon {
	width: 40px;
	height: 40px;
}

.maiko-header-icons .wp-block-woocommerce-customer-account a .wc-block-customer-account__account-icon {
	width: 36px;
	height: 36px;
}

.maiko-header--hero .wc-block-mini-cart__icon {
	width: 52px;
	height: 52px;
}

.maiko-header--hero .wp-block-woocommerce-customer-account a .wc-block-customer-account__account-icon {
	width: 50px;
	height: 50px;
}

.maiko-header--hero .maiko-nav .wp-block-navigation__responsive-container-open svg {
	width: 56px;
	height: 56px;
}

.maiko-header-icons .wc-block-mini-cart__badge {
	background: var(--wp--preset--color--taupe);
	color: var(--wp--preset--color--ivory);
	border: 0;
	font-family: var(--wp--preset--font-family--body);
}

/* ===========================================================================
   Обране (серце в шапці, на картках і на сторінці товару)
   ======================================================================== */

.maiko-wishlist-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.25rem;
	color: inherit;
	text-decoration: none;
}

.maiko-wishlist-link:hover {
	color: var(--wp--preset--color--taupe);
}

.maiko-wishlist-link__icon {
	width: 40px;
	height: 40px;
}

.maiko-header--hero .maiko-wishlist-link__icon {
	width: 52px;
	height: 52px;
	filter: drop-shadow(0 1px 5px rgb(0 0 0 / 0.4));
}

.maiko-header--hero .maiko-wishlist-link:hover {
	color: var(--wp--preset--color--cream);
}

.maiko-wishlist-count {
	position: absolute;
	top: 0.1rem;
	right: -0.1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 1.25rem;
	height: 1.25rem;
	padding: 0 0.3rem;
	border-radius: 999px;
	background: var(--wp--preset--color--taupe);
	color: var(--wp--preset--color--ivory);
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.72rem;
	line-height: 1;
}

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

/* Серце в кутку фото на картці товару */
.wc-block-product .yith-wcwl-add-to-wishlist-button--icon-button {
	top: 0.75rem !important;
	left: 0.75rem !important;
	width: 44px;
	height: 44px;
	padding: 0 !important;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0 !important;
	border-radius: 50% !important;
	background: rgb(255 255 255 / 0.88) !important;
	color: var(--wp--preset--color--taupe) !important;
	box-shadow: 0 2px 10px rgb(0 0 0 / 0.12);
	transition: transform 0.25s ease, background-color 0.25s ease;
}

.wc-block-product .yith-wcwl-add-to-wishlist-button--icon-button:hover {
	transform: scale(1.06);
	background: var(--wp--preset--color--base) !important;
}

.wc-block-product .yith-wcwl-add-to-wishlist-button--icon-button svg {
	width: 24px !important;
	height: 24px !important;
	color: var(--wp--preset--color--taupe) !important;
}

/* Сторінка «Обране»: таблиця ширша за текстову колонку */
.woocommerce-wishlist .wp-block-post-content,
.woocommerce-wishlist .wp-block-post-content > .yith-wcwl-form {
	max-width: min(100%, 1000px) !important;
	margin-inline: auto !important;
}

.yith-wcwl-form .wishlist_table .product-add-to-cart a {
	white-space: nowrap;
}

/* Кнопка «Додати в обране» на сторінці товару: контурна «пігулка» */
.yith-add-to-wishlist-button-block--single {
	margin-top: 0.75rem;
}

.yith-add-to-wishlist-button-block--single .yith-wcwl-add-to-wishlist-button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.55em 1.5em !important;
	border: 1.5px solid var(--wp--preset--color--line) !important;
	border-radius: 999px !important;
	background: transparent !important;
	color: var(--wp--preset--color--grey) !important;
	font-family: var(--wp--preset--font-family--heading) !important;
	font-size: 1.1rem !important;
	letter-spacing: 0.05em;
	box-shadow: none !important;
}

.yith-add-to-wishlist-button-block--single .yith-wcwl-add-to-wishlist-button:hover {
	border-color: var(--wp--preset--color--taupe) !important;
	color: var(--wp--preset--color--taupe) !important;
}

.yith-add-to-wishlist-button-block--single .yith-wcwl-add-to-wishlist-button svg {
	width: 20px !important;
	height: 20px !important;
	color: var(--wp--preset--color--taupe) !important;
}

/* ===========================================================================
   Головний екран: авторське фото з написами (одне зображення з Canva)
   ======================================================================== */

.maiko-hero {
	margin-top: 0 !important;
	line-height: 0;
}

.maiko-hero > * {
	margin-block: 0 !important;
}

.maiko-hero picture,
.maiko-hero__img {
	display: block;
	width: 100%;
	height: auto;
}

/* Іконки шапки добре видно на будь-якій ділянці фото.
   Тінь лише на самих іконках: filter на обгортці зламав би висувний кошик. */
.maiko-header--hero .wp-block-navigation__responsive-container-open svg,
.maiko-header--hero .wc-block-mini-cart__icon,
.maiko-header--hero .wc-block-customer-account__account-icon {
	filter: drop-shadow(0 1px 5px rgb(0 0 0 / 0.4));
}

/* Текст лише для читачів екрана й пошукових систем */
.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

/* ===========================================================================
   Products / Journal
   ======================================================================== */

.maiko-tabs {
	border-bottom: 2px solid var(--wp--preset--color--line);
	margin-bottom: var(--wp--preset--spacing--50) !important;
}

.maiko-tabs .wp-block-heading {
	margin-block: 0.4em;
}

.maiko-tabs .wp-block-heading a:hover {
	color: var(--wp--preset--color--taupe);
}

/* Кнопки-стрілки каруселей */
.maiko-slider__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	padding: 0;
	border: 2px solid currentColor;
	border-radius: 50%;
	background: transparent;
	color: var(--wp--preset--color--grey);
	cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}

.maiko-slider__btn svg {
	width: 30px;
	height: 30px;
}

.maiko-slider__btn:hover {
	background: var(--wp--preset--color--grey);
	color: var(--wp--preset--color--base);
}

.maiko-slider__btn[disabled] {
	opacity: 0.3;
	cursor: default;
	background: transparent;
	color: var(--wp--preset--color--grey);
}

/* Вертикальна стрічка товарів */
.maiko-slider--vertical {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--wp--preset--spacing--30);
}

.maiko-slider--vertical > .wp-block-woocommerce-product-collection {
	flex: 1 1 0;
	min-height: 0;
	width: 100%;
	display: flex;
	flex-direction: column;
	margin: 0 !important;
}

.maiko-slider--vertical .wc-block-product-template {
	flex: 1 1 0;
	min-height: 0;
	display: flex !important;
	flex-direction: column;
	flex-wrap: nowrap !important;
	gap: var(--wp--preset--spacing--50) !important;
	overflow-y: auto;
	scroll-snap-type: y mandatory;
	scrollbar-width: none;
	margin: 0;
	padding: 0;
}

.maiko-slider--vertical .wc-block-product-template,
.maiko-slider--horizontal .wp-block-post-template {
	contain: paint;
}

.maiko-slider .wc-block-product,
.maiko-slider .wp-block-post {
	position: relative;
}

.maiko-slider--vertical .wc-block-product-template::-webkit-scrollbar {
	display: none;
}

.maiko-slider--vertical .wc-block-product {
	scroll-snap-align: start;
	width: min(100%, 440px) !important;
	max-width: none !important;
	margin-inline: auto !important;
	flex: 0 0 auto;
}

/* Журнал: горизонтальна карусель з арками */
.maiko-slider--horizontal {
	position: relative;
}

.maiko-slider--horizontal .wp-block-post-template {
	display: flex !important;
	flex-wrap: nowrap;
	gap: 0 !important;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.maiko-slider--horizontal .wp-block-post-template::-webkit-scrollbar {
	display: none;
}

.maiko-slider--horizontal .wp-block-post-template > li {
	flex: 0 0 100%;
	scroll-snap-align: start;
	margin: 0 !important;
}

.maiko-slider--horizontal .maiko-slider__btn {
	position: absolute;
	top: calc(50% - 4rem);
	z-index: 2;
	color: var(--wp--preset--color--base);
	border-color: rgb(255 255 255 / 0.85);
	background: rgb(0 0 0 / 0.08);
}

.maiko-slider--horizontal .maiko-slider__btn:hover {
	background: rgb(255 255 255 / 0.9);
	color: var(--wp--preset--color--grey);
}

.maiko-slider--horizontal .maiko-slider__btn[disabled] {
	opacity: 0;
	pointer-events: none;
}

.maiko-slider--horizontal .maiko-slider__prev {
	left: 1rem;
}

.maiko-slider--horizontal .maiko-slider__next {
	right: 1rem;
}

/* Арка: зображення з напівкруглим верхом */
.maiko-arch,
.maiko-arch img {
	border-radius: 999px 999px 0 0;
	overflow: hidden;
}

.maiko-arch img {
	width: 100%;
	object-fit: cover;
}

.maiko-card,
.maiko-panel {
	overflow: hidden;
}

/* Картка «100% Mulberry Silk»: листочок над підписом, праворуч унизу */
.maiko-card .wp-block-cover__inner-container {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.25rem;
}

.maiko-card .wp-block-cover__inner-container > * {
	margin: 0 !important;
	float: none !important;
}

/* ===========================================================================
   Картки товарів (усі сітки)
   ======================================================================== */

.wc-block-product-template .wc-block-components-product-image {
	border-radius: var(--wp--custom--radius--card);
	overflow: hidden;
	background: var(--wp--preset--color--base);
	box-shadow: 0 10px 30px -18px rgb(0 0 0 / 0.35);
}

.wc-block-product-template .wc-block-components-product-image img {
	transition: transform 1s var(--wp--custom--ease);
}

.wc-block-product-template .wc-block-product:hover .wc-block-components-product-image img {
	transform: scale(1.03);
}

.wc-block-product-template .wp-block-post-title {
	font-family: var(--wp--preset--font-family--heading);
	letter-spacing: 0.03em;
}

.maiko-product-subtitle,
.maiko-product-subtitle p {
	margin: 0 !important;
	text-align: center;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--medium);
	letter-spacing: 0.05em;
	color: var(--wp--preset--color--contrast);
}

.wc-block-product-template .wc-block-components-product-sale-badge {
	background: var(--wp--preset--color--taupe);
	color: var(--wp--preset--color--ivory);
	border: 0;
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--heading);
}

/* ===========================================================================
   Philosophy
   ======================================================================== */

.maiko-panel .wp-block-cover__inner-container > * {
	margin-block: 0;
}

.maiko-panel .wp-block-cover__inner-container > * + * {
	margin-top: clamp(1rem, 3vh, 2rem) !important;
}

/* Векторний MAIKO (запасний, якщо немає philosophy-maiko з Canva) */
.maiko-wordmark-img img {
	width: clamp(220px, 38vw, 520px) !important;
	filter: drop-shadow(0 0 14px rgb(70 60 40 / 0.3));
}

/* PHILOSOPHY і MAIKO — графіка з Canva (ефект скла й підсвітка вже у файлах).
   Обидва файли вирізані з одного полотна однакової ширини, тому мають
   однакову ширину на сайті; відстань між ними теж узята з Canva. */
.maiko-philosophy-title {
	line-height: 0;
}

.maiko-philosophy-title__img,
.maiko-wordmark-img--canva img {
	width: clamp(240px, 36vw, 525px) !important;
	height: auto;
	filter: none;
}

.maiko-panel .wp-block-cover__inner-container > .maiko-philosophy-title + .maiko-wordmark-img--canva {
	margin-top: 0 !important;
}

/* Запасний варіант, якщо файлу PHILOSOPHY немає: живий текст тим самим шрифтом */
.maiko-glass {
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: 0.02em;
	text-shadow: 0 4px 16px rgb(0 0 0 / 0.16);
}

/* Текст філософії (Shelley Script) — графіка з Canva у два рядки.
   Масштаб той самий, що в PHILOSOPHY і MAIKO: полотно Canva = ширина панелі. */
.maiko-panel .wp-block-cover__inner-container > figure.maiko-philosophy-text {
	width: 100%;
	max-width: 1150px;
}

.maiko-philosophy-text img {
	width: 100%;
	height: auto;
}

p.maiko-philosophy-text {
	max-width: 36em;
	margin-inline: auto !important;
}

/* Окрема версія тексту для телефонів — лише якщо є файл philosophy-text-mobile */
.maiko-panel .wp-block-cover__inner-container > .maiko-philosophy-text--mobile {
	display: none;
}

@media (max-width: 781px) {
	.maiko-panel .wp-block-cover__inner-container > .maiko-philosophy-text--desktop {
		display: none;
	}

	.maiko-panel .wp-block-cover__inner-container > .maiko-philosophy-text--mobile {
		display: block;
	}
}

.maiko-more .wp-block-button__link {
	min-width: min(100%, 22rem);
	padding: 0.35em 2.4em 0.6em;
	font-size: clamp(1.4rem, 2.4vw, 2.2rem);
	font-weight: 400;
	letter-spacing: 0.04em;
}

.maiko-more .wp-block-button__link::after {
	content: "• • •";
	display: block;
	font-size: 0.45em;
	letter-spacing: 0.6em;
	line-height: 0.6;
	margin-right: -0.6em;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--grey);
	color: var(--wp--preset--color--base);
}

/* ===========================================================================
   Підвал
   ======================================================================== */

.maiko-divider-leaf {
	display: flex !important;
	align-items: center;
	gap: 0;
	width: 100%;
	margin-bottom: var(--wp--preset--spacing--30) !important;
}

.maiko-divider-leaf::before,
.maiko-divider-leaf::after {
	content: "";
	flex: 1 1 auto;
	height: 2px;
	background: var(--wp--preset--color--line);
}

.maiko-divider-leaf img {
	flex: 0 0 auto;
	margin: 0 0.75rem;
}

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

.maiko-footer a:hover {
	text-decoration: underline;
}

/* Девіз у підвалі — графіка з Canva */
.maiko-motto-img {
	margin-block: 0;
}

.maiko-motto-img img {
	width: clamp(240px, 25vw, 380px);
	height: auto;
}

@media (min-width: 782px) {
	.maiko-footer-motto {
		border-left: 2px solid var(--wp--preset--color--line);
		border-right: 2px solid var(--wp--preset--color--line);
		padding-block: 0.5rem;
	}
}

.maiko-social .wp-social-link {
	border: 2px solid var(--wp--preset--color--line);
	border-radius: 50%;
	background: var(--wp--preset--color--base);
}

.maiko-social .wp-social-link a {
	padding: 0.4em !important;
}

.maiko-social .wp-social-link:hover {
	transform: none;
	border-color: var(--wp--preset--color--taupe);
}

/* ===========================================================================
   Сторінка товару
   ======================================================================== */

.maiko-product-gallery .wp-block-woocommerce-product-image-gallery {
	max-width: none;
}

.maiko-product-gallery .woocommerce-product-gallery {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
}

.maiko-product-gallery .woocommerce-product-gallery__wrapper,
.maiko-product-gallery .flex-viewport {
	border-radius: var(--wp--custom--radius--card);
	overflow: hidden;
	background: var(--wp--preset--color--base);
}

.maiko-product-gallery .woocommerce-product-gallery__image img {
	width: 100%;
	height: auto;
	display: block;
}

.maiko-product-gallery .flex-control-thumbs {
	display: grid !important;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0.75rem;
	margin: 0.75rem 0 0 !important;
	padding: 0;
	list-style: none;
}

.maiko-product-gallery .flex-control-thumbs li {
	width: auto !important;
	float: none !important;
	margin: 0 !important;
}

.maiko-product-gallery .flex-control-thumbs img {
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 14px;
	opacity: 0.55;
	cursor: pointer;
	transition: opacity 0.3s ease;
}

.maiko-product-gallery .flex-control-thumbs img:hover,
.maiko-product-gallery .flex-control-thumbs img.flex-active {
	opacity: 1;
}

.maiko-product-gallery .woocommerce-product-gallery__trigger {
	background: var(--wp--preset--color--base) !important;
	border-radius: 50% !important;
	box-shadow: 0 2px 10px rgb(0 0 0 / 0.12);
}

.maiko-product-gallery .onsale {
	display: none;
}

@media (min-width: 782px) {
	.maiko-product-summary {
		position: sticky;
		top: calc(var(--wp-admin--admin-bar--height, 0px) + 7rem);
		align-self: flex-start;
	}
}

.maiko-product-summary form.cart {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: stretch;
}

.maiko-product-summary form.cart .quantity {
	margin: 0 !important;
}

.maiko-product-summary .quantity .qty {
	min-height: 3.2em;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	background: var(--wp--preset--color--base);
	color: inherit;
}

.maiko-product-summary .single_add_to_cart_button {
	flex: 1 1 auto;
}

.maiko-product-summary .stock {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--grey);
}

.wp-block-woocommerce-product-details .woocommerce-tabs ul.tabs {
	border-bottom: 2px solid var(--wp--preset--color--line);
}

.wp-block-woocommerce-product-details .woocommerce-tabs ul.tabs li a {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--grey);
	text-decoration: none;
}

.wp-block-woocommerce-product-details .woocommerce-Tabs-panel > h2:first-child {
	display: none;
}

/* ===========================================================================
   Кнопки й поля WooCommerce у стилі бренду
   ======================================================================== */

.woocommerce .button,
.woocommerce button.button,
.woocommerce a.button,
.wc-block-components-button:not(.is-link) {
	border-radius: 999px !important;
	font-family: var(--wp--preset--font-family--heading);
	letter-spacing: 0.05em;
}

.wc-block-components-text-input input,
.wc-block-components-combobox .components-combobox-control input,
.wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-components-textarea {
	border-radius: 12px !important;
}

/* ===========================================================================
   Телефони й планшети
   ======================================================================== */

@media (max-width: 781px) {
	.maiko-headbar {
		gap: 0.5rem;
	}

	.maiko-nav .wp-block-navigation__responsive-container-open svg {
		width: 38px;
		height: 38px;
	}

	.maiko-header-emblem img {
		width: 52px !important;
	}

	/* На телефоні фото головного екрана невелике — іконки компактніші */
	.maiko-header--hero .maiko-nav .wp-block-navigation__responsive-container-open svg {
		width: 36px;
		height: 36px;
	}

	.maiko-header--hero .wc-block-mini-cart__icon {
		width: 34px;
		height: 34px;
	}

	.maiko-header--hero .wp-block-woocommerce-customer-account a .wc-block-customer-account__account-icon,
	.maiko-header--hero .maiko-wishlist-link__icon {
		width: 34px;
		height: 34px;
	}

	.maiko-wishlist-link__icon {
		width: 34px;
		height: 34px;
	}

	.maiko-header--hero {
		padding-top: 0.75rem !important;
	}

		.maiko-tabs .wp-block-heading {
		font-size: clamp(1.6rem, 8vw, 2.4rem) !important;
	}

	.maiko-card {
		min-height: 420px !important;
	}

	/* Товари гортаються вбік, як стрічка */
	.maiko-slider--vertical > .wp-block-woocommerce-product-collection {
		flex: 0 0 auto;
	}

	.maiko-slider--vertical .wc-block-product-template {
		flex: 0 0 auto;
		flex-direction: row;
		overflow-x: auto;
		overflow-y: visible;
		scroll-snap-type: x mandatory;
		gap: 1rem !important;
		padding-bottom: 0.5rem;
	}

	.maiko-slider--vertical .wc-block-product {
		flex: 0 0 78% !important;
		width: auto !important;
	}

	.maiko-slider--vertical > .maiko-slider__btn {
		display: none;
	}

	.maiko-slider--horizontal .maiko-slider__btn {
		width: 48px;
		height: 48px;
	}

	.maiko-footer-contact,
	.maiko-footer-brand,
	.maiko-footer-motto {
		flex-basis: 100% !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

/* У редакторі сайту шапка головної не накладається на фото — даємо їй темний фон,
   щоб світлі іконки було видно */
.editor-styles-wrapper .maiko-header--hero {
	background: var(--wp--preset--color--taupe);
}
