/* ==========================================================================
   ZAMOTIN MANUFACTURA — visual polish layer
   Loaded after style.css, so rules here safely extend/override the template
   without touching the original files.
   ========================================================================== */

/* Smooth in-page scrolling (used by the "yakorClick" anchor links) */
html {
	scroll-behavior: smooth;
}

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

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

/* Product cards: gentle lift + shadow + image zoom on hover */
.product {
	transition: transform 0.35s ease, box-shadow 0.35s ease;
	border-radius: 8px;
}

.product:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 32px rgba(43, 43, 42, 0.12);
}

.product .thumb .image img {
	transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.product:hover .thumb .image img:not(.hover-image) {
	transform: scale(1.08);
}

/* Category circles on the homepage */
.krugiNaVi div a img {
	transition: transform 0.35s ease, box-shadow 0.35s ease;
	border-radius: 50%;
}

.krugiNaVi div a:hover img {
	transform: translateY(-4px) scale(1.06);
	box-shadow: 0 10px 20px rgba(43, 43, 42, 0.15);
}

.krugiNaVi div a span {
	transition: color 0.25s ease;
}

.krugiNaVi div a:hover span {
	color: #eaaa85;
}

/* Buttons: subtle press/hover feedback across the site */
.btn,
.add-to-cart,
.add-to-cart2,
.add-to-cart3,
button.cart-btn-3 {
	transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.btn:hover,
.add-to-cart2:hover,
.add-to-cart3:hover,
button.cart-btn-3:hover {
	transform: translateY(-2px);
}

.btn:active,
.add-to-cart2:active,
.add-to-cart3:active {
	transform: translateY(0);
}

/* Header logo + nav links */
.header-logo a .logoSvg,
.header-logo a .logoSvgMob {
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.header-logo a:hover .logoSvg,
.header-logo a:hover .logoSvgMob {
	opacity: 0.85;
}

.main-menu ul>li>a {
	position: relative;
	transition: color 0.25s ease;
}

.main-menu ul>li>a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -4px;
	width: 0;
	height: 2px;
	background: currentColor;
	transition: width 0.3s ease;
}

.main-menu ul>li>a:hover::after {
	width: 100%;
}

/* Lazy-loaded images fade in once the browser paints them */
img[loading="lazy"] {
	transition: opacity 0.4s ease;
}

/* AOS reveal tuning: keep content readable before JS kicks in */
[data-aos] {
	will-change: transform, opacity;
}

/* Product badges: light pulse for "new" to draw the eye without being noisy */
.product .thumb .badges span.new {
	animation: zm-badge-pulse 2.4s ease-in-out infinite;
}

@keyframes zm-badge-pulse {

	0%,
	100% {
		box-shadow: 0 0 0 0 rgba(234, 170, 133, 0.45);
	}

	50% {
		box-shadow: 0 0 0 6px rgba(234, 170, 133, 0);
	}
}

/* Certificate PDF block on the homepage: the original ".deal-image" rule
   (width: 87%, position: absolute) was sized for a small certificate photo
   and now stretches the PDF iframe across the whole section, covering the
   "Сертификат качества" text that sits in normal flow on the left half. */
.deal-image {
	width: 42%;
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
	.deal-image {
		width: 38%;
	}
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
	.deal-image {
		width: 45%;
	}
}

@media only screen and (max-width: 767px) {
	.deal-image {
		width: 100%;
	}

	.deal-image iframe {
		width: 100%;
	}
}

/* Category circle row: 5 fixed-width labels in a non-wrapping flex row
   overflow the viewport on phones and force horizontal scrolling */
@media (max-width: 575.98px) {
	.krugiNaVi {
		flex-wrap: wrap !important;
		row-gap: 18px !important;
	}

	.krugiNaVi>div {
		flex: 0 0 30%;
		max-width: 30%;
	}

	.krugiNaVi div a span {
		width: 100%;
		height: auto;
		display: block;
	}
}

/* Mobile hero: 700px was designed for desktop and pushed all content
   below the fold on phones — give mobile its own, viewport-relative height */
.divka-mobile {
	height: 62vh;
	min-height: 320px;
	max-height: 520px;
}

/* Extra marketplace buttons managed from the admin panel (Яндекс Маркет / произвольная ссылка) */
.t-store__prod-popup__text a.yandex {
	color: #000000 !important;
	background-color: #FFDB4D;
}

.t-store__prod-popup__text a.yandex:before,
.t-store__prod-popup__text a.custom-market:before {
	content: none;
	width: 0;
	margin-right: 0;
}

.t-store__prod-popup__text a.custom-market {
	color: #ffffff !important;
	background-color: #2b2b2a;
}

/* Newsletter / socials footer band: subtle icon hover */
.newsletter-area a img {
	transition: transform 0.3s ease;
}

.newsletter-area a:hover img {
	transform: scale(1.12);
}