@tailwind base;
@tailwind components;
@tailwind utilities;
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
.site {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100%;
}

* {
	font-family: 'Lato';
	color: #331d16;
	scroll-behavior: smooth;
	accent-color: #152428;
}

.playfair {
	font-family: 'Playfair Display', serif !important;
}

html {
	background: #f5eee6;
}

.wp * {
	color: inherit;
	font-size: inherit;
	font-family: inherit;
	line-height: inherit;
	letter-spacing: inherit;
}

.wp strong {
	color: inherit;
	line-height: inherit;
	font-weight: 700;
	/* font-size: 32px; */
}

.multiply {
	background-blend-mode: multiply;
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

/* .__logo.open {
    display: none;
}
.__logo-mob.open {
    display: block;
} */

.__custom-btn.-out-1 {
	--theme: #0f1047;

	border: 2px solid var(--theme);
	overflow: hidden;
	transition: 0.3s 0.1s;
	/* padding: 12px 24px; */
	/* font-weight: 700; */
	/* font-size: 1.2rem; */
	text-align: center;
	position: relative;
	display: inline-block;
	text-decoration: none;
	color: var(--theme);
	background: #fff;
	cursor: pointer;

	/* &:active {
        transform: translateX(100px);
        background: rgba(255, 255, 255, 0.5);
    } */

	span {
		position: relative;
		z-index: 5;
		transition: 1s ease-in-out;
	}

	&:hover,
	&:active {
		span {
			color: #fff;
		}
	}

	&:before,
	&:after {
		content: '';
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		height: 20px;
		width: 20px;
		border-radius: 50%;
		background-color: var(--theme);
	}

	&:hover,
	&:active {
		&:before {
			animation: collisionLeft 1s both alternate;
		}
		&:after {
			animation: collisionRight 1s both alternate;
		}
	}

	&:before {
		left: -30%;
	}
	&:after {
		left: 125%;
	}
}

.marquee__track {
	display: inline-flex;
	animation: marquee 2s linear infinite;
	gap: 30px;
	white-space: nowrap;
}

/* .animate-marquee {
	animation: marquee 2s linear infinite;
	will-change: transform;
} */

.our-menu {
	position: relative;

	text-align: center;
}

/* левая картинка */
.our-menu::before {
	content: '';
	position: absolute;
	top: 25%;
	left: 0;
	/* left: 100px; */
	width: 163px; /* подгоните под размер вашего SVG/PNG */
	height: 135px;
	background: url('/wp-content/themes/codex/assets/image/sidel.png') no-repeat
		center/contain;
}

/* правая картинка */
.our-menu::after {
	content: '';
	position: absolute;
	top: 25%;
	/* right: 100px; */
	right: 0;
	width: 163px;
	height: 135px;
	background: url('/wp-content/themes/codex/assets/image/sider.png') no-repeat
		center/contain;
}
@media (max-width: 375px) {
	.our-menu::before,
	.our-menu::after {
		width: 100px;
		height: 70px;
	}
}
@media (max-width: 500px) {
	.our-menu::before {
		left: 20px;
	}

	.our-menu::after {
		right: 20px;
	}
}

@media (max-width: 1024px) {
	.our-menu::before {
		left: 20px;
	}

	.our-menu::after {
		right: 20px;
	}
}

.filter-btn {
	padding: 0.5rem 1rem;
	border: none;
	border-radius: 1.25rem;
	background-color: #fff;
	color: #331d16;
	cursor: pointer;
	position: relative;
	font-weight: 500;
	transition:
		background-color 0.2s,
		color 0.2s;
}

/* активный фильтр */
.filter-btn.active {
	background-color: #331d16;
	color: #fff;
	background-image:
		url('/wp-content/themes/codex/assets/image/leafl.svg'),
		url('/wp-content/themes/codex/assets/image/leafr.png');
	background-repeat: no-repeat, no-repeat;
	background-position:
		left 0 center,
		right 0 center;
	padding-left: 2.125rem;
	padding-right: 2.125rem;
}
.woocommerce a.remove {
	all: unset;
	display: inline-block !important;
	margin: 0 !important;
	padding: 10px 15px !important;
	width: auto !important;
	height: auto !important;
	color: inherit !important;
	text-decoration: none !important;
	border: 1px solid #331d16 !important;
	border-radius: 50px !important;
	font-size: 1.25rem !important;
	font-weight: 500 !important;
	line-height: 1 !important;
}
#mini-cart-update {
	display: none;
}

.card {
	position: relative;
	display: block;
	overflow: hidden;
	transition: 0.3s;
	border-radius: 30px;
	aspect-ratio: 1/1;
}
@media (min-width: 1024px) {
	.card {
		aspect-ratio: 25.4375/34.5;
	}
}

.card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 30px;
	transition: border-radius 0.3s ease;
}
.card:hover .card__img {
	border-bottom-left-radius: 36px;
	border-bottom-right-radius: 36px;
}

.card__badge {
	position: absolute;
	top: 0;
	left: 0;
	color: #fff;
	background: #a27550;
	width: max-content;
	padding: 10px 20px;
	font-size: 16px;
	font-weight: 600;
	line-height: 150%;
	border-top-left-radius: 30px;
	border-bottom-right-radius: 30px;
	border-top-right-radius: 10px;
	border-bottom-left-radius: 10px;
}

.card__bottom {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 0.94rem;
	padding: 0.78rem 1.56rem;
	background: #feecd899;
	border-top-left-radius: 30px;
	border-top-right-radius: 30px;
	transition: background 0.3s ease;
}
@media (min-width: 768px) {
	.card__bottom {
		padding: 1.56rem;
	}
}
.card:hover .card__bottom {
	background: #fce1c4;
}

.card__title {
	font-size: 24px;
	font-weight: 700;
	line-height: 150%;
	color: #331d16;
}
.card__desc {
	color: #331d16;
	opacity: 0;
	max-height: 0;
	overflow: hidden;
	transition:
		opacity 0.3s,
		max-height 0.3s;
}
.card:hover .card__desc {
	opacity: 1;
	max-height: 200px;
}

.card__cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding-left: 10px;
	border-radius: 25px;
	line-height: 150%;
	transition:
		background 0.3s ease,
		color 0.3s ease;
	z-index: 100;
}

.card__cta:hover {
	background: #331d16;
}

.card__cta-text {
	transition: color 0.3s ease;
}

.card__cta:hover .card__cta-text {
	color: #fff;
}

/* SVG */
.card__cta svg {
	transition: 0.3s ease;
}

.card__cta rect {
	stroke: #331d16;
	fill: none;
}

.card__cta path {
	fill: #331d16;
}

.card__cta:hover rect {
	stroke: #fff;
	fill: #fff;
	transition: 0.3s ease;
}

.card__cta:hover path {
	fill: #a27550;
	stroke: #a27550;
}
.w svg {
	transition: 0.3s ease;
}

.w rect {
	stroke: #fff !important;
	fill: none;
}

.w path {
	fill: #fff !important;
}

.w:hover rect {
	stroke: #fff;
	fill: #fff;
	transition: 0.3s ease;
}

.w:hover path {
	fill: #a27550 !important;
	stroke: #a27550 !important;
}
