/*!
Theme Name: Azalea
Author: Space
Version: 1.0.0
Text Domain: azalea
*/


/* --- fixes --- */
.site-header__nav-right .lang-switcher__menu a {
  color: var(--magenta);
  text-align: center;
  display: block;
  transition: opacity .2s ease;
}
.site-header__nav-right .lang-switcher__menu a:hover {
  opacity: .7;
}

.catalog-products--empty {
  padding: 50px 0 90px;
  text-align: center;
}
.catalog-products--empty p {
  color: var(--magenta);
  font-size: 18px;
  line-height: 1.5;
  max-width: 640px;
  margin: 0 auto;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-on-scroll {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .75s cubic-bezier(.22,.61,.36,1), transform .75s cubic-bezier(.22,.61,.36,1);
    will-change: opacity, transform;
  }
  .reveal-on-scroll.is-visible {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll { opacity: 1 !important; transform: none !important; }
}

/* UI FIX 2026-09-18 */

/* --- Карточка товара: мягкий подъём вместо «капсулы» --- */
a.product-card {
	transition: transform .4s cubic-bezier(.22,.61,.36,1),
	            box-shadow .4s ease,
	            border-color .4s ease,
	            background-color .4s ease;
}
a.product-card:hover,
.catalog-products a.product-card:hover,
.products a.product-card:hover {
	border-radius: 15px;
	transform: translateY(-6px);
	box-shadow: 0 18px 34px -16px rgba(151, 5, 61, .38);
	background-color: #fff;
}
a.product-card .product-card__image img {
	transition: transform .6s cubic-bezier(.22,.61,.36,1);
}
a.product-card:hover .product-card__image,
.catalog-products a.product-card:hover .product-card__image,
.products a.product-card:hover .product-card__image {
	transform: none;
}
a.product-card:hover .product-card__image img {
	transform: scale(1.06);
}

/* --- Ровная сетка каталога и адаптив --- */
.catalog-products .row > [class*="col-"] { display: flex; }
.catalog-products a.product-card {
	width: 100%;
	display: flex;
	flex-direction: column;
}
.catalog-products a.product-card .product-card__image { flex: 0 0 auto; }
.catalog-products .product-card__content {
	margin-top: auto;
	padding: 12px 6px 4px;
}
.product-card__title { line-height: 1.35; }

@media (max-width: 1199px) {
	.catalog-products .row > .col-3 { width: 33.3333%; }
}
@media (max-width: 991px) {
	.catalog-products .row > .col-3 { width: 50%; }
	.catalog-products .product-card__image { height: 300px; }
}
@media (max-width: 575px) {
	.catalog-products .row > .col-3 { width: 50%; }
	.catalog-products .product-card__image { height: 205px; }
	.catalog-products .product-card__title { font-size: 14px; }
	.catalog-products .product-card__content { padding: 10px 4px 2px; }
}

/* --- Постраничная навигация --- */
.wp-pagenavi {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 0;
	padding: 50px 0 0;
	clear: both;
}
.wp-pagenavi a,
.wp-pagenavi span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 16px;
	margin: 0;
	border: 1px solid rgba(151, 5, 61, .28);
	border-radius: 999px;
	color: var(--magenta);
	font-size: 15px;
	line-height: 1;
	text-decoration: none;
	transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.wp-pagenavi a:hover,
.wp-pagenavi span.current {
	background-color: var(--magenta);
	border-color: var(--magenta);
	color: #fffeea;
}
.wp-pagenavi span.pages {
	border-color: transparent;
	opacity: .55;
}

/* --- Меню каталога: читаемые названия категорий --- */
.site-header .catalog-menu__list-wrapper a {
	display: inline-block;
	opacity: .66;
	transition: opacity .35s ease,
	            transform .35s cubic-bezier(.22,.61,.36,1),
	            text-shadow .35s ease;
}
.site-header .catalog-menu__list-wrapper ul:hover a { opacity: .34; }
.site-header .catalog-menu__list-wrapper a:hover,
.site-header .catalog-menu__list-wrapper a:focus-visible,
.site-header .catalog-menu__list-wrapper ul:hover a:hover,
.site-header .catalog-menu__list-wrapper ul:hover a:focus-visible {
	opacity: 1;
	transform: scale(1.05);
	text-shadow: 0 8px 28px rgba(217, 193, 144, .45);
}
.site-header .catalog-menu__list li {
	transform: translateY(18px);
	transition: transform .55s cubic-bezier(.22,.61,.36,1);
}
.site-header.catalog-open .catalog-menu__list li { transform: none; }
.site-header.catalog-open .catalog-menu__list li:nth-child(1) { transition-delay: .05s; }
.site-header.catalog-open .catalog-menu__list li:nth-child(2) { transition-delay: .09s; }
.site-header.catalog-open .catalog-menu__list li:nth-child(3) { transition-delay: .13s; }
.site-header.catalog-open .catalog-menu__list li:nth-child(4) { transition-delay: .17s; }
.site-header.catalog-open .catalog-menu__list li:nth-child(5) { transition-delay: .21s; }
.site-header.catalog-open .catalog-menu__list li:nth-child(6) { transition-delay: .25s; }
.site-header .catalog-menu__icon-img {
	filter: drop-shadow(0 20px 34px rgba(0, 0, 0, .45));
}

@media (prefers-reduced-motion: reduce) {
	a.product-card,
	a.product-card .product-card__image img,
	.site-header .catalog-menu__list li { transition: none; }
	a.product-card:hover,
	a.product-card:hover .product-card__image img,
	.site-header .catalog-menu__list li { transform: none; }
	.site-header .catalog-menu__list-wrapper a:hover { transform: none; }
}

/* UI FIX 2 */

/* --- Превью в меню каталога отрисованы в 2x --- */
.site-header .catalog-menu__icon--left .catalog-menu__icon-img {
	width: 292px;
	height: auto;
}
.site-header .catalog-menu__icon--right .catalog-menu__icon-img {
	width: 278px;
	height: auto;
}

/* --- Фильтр категорий не должен уезжать за экран --- */
.catalog-section .catalog-buttons { flex-wrap: wrap; }
@media (max-width: 991px) {
	.catalog-section .catalog-buttons { justify-content: center; }
}
@media (max-width: 575px) {
	.catalog-section .catalog-buttons { gap: 8px; }
	.catalog-section .catalog-buttons a { padding: 11px 18px; font-size: 15px; }
}

/* --- Никакой горизонтальной прокрутки на телефоне --- */
@media (max-width: 991px) {
	body { overflow-x: hidden; }
}

/* MOBILE */

/* --- Одинаковая высота карточек во всех сетках товаров --- */
.catalog-products .row > [class*="col-"] { display: flex; }
.products__content .row > [class*="col-"] { display: flex; }
a.product-card,
a.products__button { width: 100%; }
a.product-card {
	display: flex;
	flex-direction: column;
}
a.product-card .product-card__image { flex: 0 0 auto; }
a.product-card .product-card__content {
	margin-top: auto;
	padding: 12px 6px 4px;
}

/* --- Сетка товаров по ширине экрана --- */
@media (max-width: 1199px) {
	.products__content .row > .col-3,
	.catalog-products .row > .col-3 { width: 33.3333%; }
}
@media (max-width: 991px) {
	.products__content .row > .col-3,
	.catalog-products .row > .col-3 { width: 50%; }
	.product-card__image { height: 300px; }
}
@media (max-width: 575px) {
	.products__content .row > .col-3,
	.catalog-products .row > .col-3 { width: 50%; }
	.product-card__image { height: 205px; }
	.product-card { padding: 6px; }
	.product-card__title { font-size: 14px; line-height: 1.35; }
	.product-card__content { padding: 10px 4px 2px; }
	a.products__button { font-size: 15px; }
}

/* --- Пункты мобильного меню под палец --- */
@media (max-width: 991px) {
	.mobile-menu__link,
	.mobile-catalog-menu__list a,
	.mobile-dropdown__content a,
	.mobile-lang-switcher__menu a {
		display: flex;
		align-items: center;
		min-height: 42px;
	}
	.mobile-menu__link--contacts,
	.mobile-lang-switcher__menu a { justify-content: center; }
}

/* --- На телефоне анимация короче и мягче --- */
@media (max-width: 991px) and (prefers-reduced-motion: no-preference) {
	.reveal-on-scroll {
		transform: translateY(10px);
		transition-duration: .4s;
		will-change: auto;
	}
}

@media (max-width: 575px) {
	.qa-section { padding-top: 56px; }
}

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

/* --- Ссылки в подвале тоже под палец --- */
@media (max-width: 991px) {
	.site-footer__nav-list a {
		display: flex;
		align-items: center;
		min-height: 36px;
	}
}

/* CARD TYPO */

/* --- Описание товара: заголовки и таблица характеристик --- */
.product-section h3 {
	margin: 34px 0 14px;
	font-size: 22px;
	line-height: 1.25;
	font-weight: 500;
	color: var(--magenta);
}
.product-section h3:first-child { margin-top: 0; }
.product-section p { margin: 0 0 14px; }
.product-section ul {
	list-style: none;
	padding: 0;
	margin: 0 0 20px;
	border-top: 1px solid rgba(151, 5, 61, .14);
}
.product-section ul li {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	padding: 11px 2px;
	border-bottom: 1px solid rgba(151, 5, 61, .14);
	line-height: 1.45;
}
.product-section ul li strong {
	flex: 0 0 auto;
	min-width: 172px;
	font-weight: 500;
	opacity: .68;
}
.product-section em {
	display: inline-block;
	margin-top: 6px;
	font-size: 14px;
	line-height: 1.5;
	opacity: .62;
}
@media (max-width: 575px) {
	.product-section h3 { margin: 26px 0 10px; font-size: 20px; }
	.product-section ul li { padding: 9px 0; gap: 1px; }
	.product-section ul li strong { min-width: 100%; font-size: 14px; opacity: .6; }
}
