:root {
    --bg-color-wh: white;
	--bg-color-bk: black;
    --color-txt-bk: black;
    --color-txt-wh: white;
    --color-btn: #365B3D;
    --color-btn-hover: #436e4b;
}

html {
	scroll-behavior: smooth;
}
body {
	font-family: 'Cormorant Garamond';
	background: var(--bg-color-wh);
    color: var(--color-txt-bk);
    font-size: 27px;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
    min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px));
    width: 100%;
	line-height: 1.5;
}

body > .footer {
    margin-top: auto;
}

p {
	line-height: 1.5;
}

a {
    text-decoration: none;
    color: var(--color-txt-bk);
}

.container, #primary {
    max-width: 1440px;
    margin: 0 auto;
	width: 90%;
}

.section-30 {
    padding: 30px 0;
}

		.section-50 {
			padding: 50px 0;
		}

        .flex {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
		.gap-10 {
			gap: 10px;
		}
		.gap-20 {
			gap: 20px;
		}
		.gap-50 {
			gap: 50px;
		}
.padding-20 {
	padding: 20px;
}

        .column {
            flex-direction: column;
            padding: 20px;
        }

        .grid {
            display: grid;
        }

		.site-block {
			width: 100%;
		}

.no-scroll {
    overflow: hidden;
}
.btn, .button, .wc-block-cart__submit, .filters-toggle {
  padding: 8px 16px;
  background: linear-gradient(to right, #365B3D 0%, #4A7A52 100%);
  color: var(--color-txt-wh);
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.8em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 300ms ease-in-out;
}

.btn:hover, .button:hover, .wc-block-cart__submit:hover {
  background: linear-gradient(to right, #2E4D34 0%, #426B49 100%);
}

.wc-block-components-button__text {
	 color: var(--color-txt-wh);
}

.mobile-only {
  opacity: 0;
}
.filters-content {
    transition: opacity 0.3s cubic-bezier(.24,.24,.74,.75);
}

.home-title {
    font-size: 2em;
    text-align: center;
    padding: 20px 20px 50px;
}
/* ==================================================================================================== */

.logo-block, .social-icons {
	z-index: 12;
}
.logo-link {
	display: flex;
	gap: 10px;
	align-items: center;
}
.menu-list {
	font-size: 0.8em;
	display: flex;
	gap: 50px;
}
.menu-list li {
  position: relative;
  overflow: hidden;
}

.menu-list li::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: black;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.menu-list li:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.social-icons {
	display: flex;
	gap: 10px;
}

/* ==================================================================================================== */
.footer-block {
	display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

/* ==================================================================================================== */

.burger-menu {
        display: none;
        background: none;
        border: none;
        cursor: pointer;
        padding: 15px;
        z-index: 1001;
        position: relative;
    }

    .burger-line {
        display: block;
        width: 25px;
        height: 2px;
        background: var(--bg-color-bk);
        margin: 5px 0;
        transition: all 0.3s ease;
    }


/* ==================================================================================================== */

        .name-ru {
            font-size: 5em;
            font-family: 'Futura PT Book', serif;
            color: var(--color-txt-bk);
            letter-spacing: 0.1em;
        }

        .logo-img, .icons {
            max-height: 30px;
            width: auto;
        }
        .nav-link {
            margin-left: 20px;
            text-decoration: none;
            color: #333;
        }
.hero-txt {
	    height: 100%;
    margin: auto 0;
	    align-items: stretch;
}
.hero-head {
	width: 100%;
}
        .hero-head h1 {
            font-size: 2em;
        }
.hero-head h2 {
	font-size: 1.5em;
	text-align: right;
}
.hero-info {
	    justify-items: start;
    align-content: space-between;
}

.hero-img {
	max-width: 600px;
}

.quote {
	padding: 20px 0;
}

/* ============================================================================================= */
.main-hero {
      grid-template-columns: 1fr 1fr;
}

.hero-text h1 {
  font-size: 1.5em;
}

.hero-featured {
    grid-row: span 2;
	display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-featured-img img {
	max-width: 100%;
    width: auto;
    height: auto;
    border-radius: 10px;
}
.hero-featured-img {
    width: 100%;
    height: 100%;
    display: grid;
    justify-items: center;
    align-items: center;
}
.hero-featured-info {
    writing-mode: sideways-lr;
}
.hero-featured-info h3 {
  font-size: 24px;
  margin-bottom: 10px;
}
.hero-big {
	display: flex;
    position: relative;
    width: 100%;
    height: 100%;
}
.hero-thumbs {
  display: flex;
  gap: 1em;
  font-size: 0.7em;
}
.hero-thumb {
	display: grid;
	gap: 10px;
	width: auto;
	max-width: 200px;
  padding: 10px;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}
.hero-thumb:hover {
  transform: scale(1.05);
}
.hero-thumb img {
   width: 100%;
  object-fit: contain;
}

.product-info {
	display: flex;
	gap: 10px;
}

/* Плавный кроссфейд изображения главного товара: два слоя в .hero-featured-img.
   Активный слой (класс .active) видим, запасной — прозрачен и заполняется JS
   новым изображением перед сменой класса. Grid-ячейка 1/1 накладывает слои друг на друга. */

.hero-featured-img img.hero-featured-img-layer {
    grid-area: 1 / 1;
    opacity: 0;
    transition: opacity 0.45s ease-in-out;
    will-change: opacity;
}

.hero-featured-img img.hero-featured-img-layer.active {
    opacity: 1;
}

.hero-featured-info h3,
.product-price {
    transition: opacity 0.3s ease-in-out;
}

/* Уважаем предпочтение пользователя: без анимаций — мгновенная смена. */
@media (prefers-reduced-motion: reduce) {
    .hero-featured-img img.hero-featured-img-layer,
    .hero-featured-info h3,
    .product-price {
        transition: none;
    }
}

.hero-thumb {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.hero-thumb:hover {
  transform: scale(1.05);
}

/* ============================================================================================= */

.home-about {
	display: flex;
    gap: 50px;
	align-items: center;
}
.home-about-txt {
	font-size: 1em;
}
.home-about-img img {
	max-height: 400px;
    height: auto;
    width: auto;
	border-radius: 20px;
}
.home-about-txt p {
	padding: 10px 0;
}

/* ============================================================================================= */
.shop-page .shop-layout {
	display: flex;
    justify-content: space-between;
    align-items: flex-start;
	gap: 50px;
}
.shop-page .shop-sidebar p {
	padding: 20px 0;
}
.shop-page .widget_wpc_filters_widget {
	padding: 50px 0;
}
.shop-page .shop-products {
	display: grid;
	align-items: center;
	width: 100%;
	justify-content: space-between;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}
.shop-page .woocommerce-result-count {
	font-size: 0.9em;
}
.shop-page .woocommerce-ordering {
	 text-align: end;
}
.shop-page .products,
.related > .products {
	grid-column: span 2;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 20px;
	padding: 50px 0;
}

.related {
	padding: 50px 0;
}
.shop-page .product {
	padding: 10px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}
.shop-page .product h2 {
	font-size: 0.8em;
}
.shop-page .woocommerce-LoopProduct-link {
	display: flex;
    flex-direction: column;
    align-items: center;
	gap: 10px;
}

.shop-page .product:hover {
	 box-shadow: 0 2px 8px rgb(54 91 61 / 20%);
}
.shop-page .price {
	color: var(--color-btn);
    width: 100%;
    text-align: start;
    font-size: 0.8em;
    font-weight: 600;
	padding: 0 0 10px 0;
}
.shop-page .woocommerce-notices-wrapper,
.shop-page .wpc-custom-selected-terms {
	display: none;
}
/* ============================================================================================= */

.contacts-section a {
	display: flex;
    gap: 0.5em;
    align-items: center;
}

.contacts-block {
	display: flex;
    justify-content: space-between;
    gap: 20px;
}

.contacts-block .social-icons {
	margin: 10px 0;
}

.phone-head {
	display: flex;
	gap: 10px;
}

.contact-card {
	border-radius: 20px;
    overflow: hidden;
}

/* ============================================================================================= */

/* -------------СЛАЙДЕР ОТЗЫВОВ--------------- */

/* Стили для слайдера */
.slider-reviews {
    overflow: hidden;
    position: relative;
    width: 100%;
    /* Вы можете изменить ширину слайдера */
}

.slider-reviews-track {
    display: flex;
    will-change: transform;
    transition: none;
    /* Отключаем анимации */
}

.slider-reviews-item {
    flex-shrink: 0;
    width: max-content;
    /* Вы можете изменить ширину здесь */
    margin: 15px;
    border-radius: 10px;
    transition: transform 0.5s, box-shadow 0.5s;
    text-align: center;
}


.slider-reviews-avatar {
    width: 300px;
    height: auto;
    margin: 10px;
	border-radius: 20px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}


.slider-reviews-item:hover {
    transform: scale(1.05);
    cursor: pointer;
}

.slider-reviews-text {
    font-size: 17px;
}

/* Стили для модального окна */
.reviews-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.reviews-modal-content {
    position: relative;
    max-width: 80%;
    max-height: 80%;
    margin: auto;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.reviews-modal-close {
    position: absolute;
    top: -3rem;
    right: -3rem;
    font-size: 3rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1010;
}

.reviews-modal-prev,
.reviews-modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 56px;
    background: none;
    color: rgba(255, 255, 255, 0.678);
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1010;
}

.reviews-modal-prev:hover,
.reviews-modal-next:hover {
    color: rgba(172, 172, 172, 0.678);
}

.reviews-modal-prev {
    left: -3rem;
}

.reviews-modal-next {
    right: -3rem;
}

.reviews-modal-slide img {

	max-height: 70vh;
    width: auto;
    height: 100%;
    border-radius: 10px;
}

.wp-block-list {
    list-style-type: disc;
}



/* ============================================================================================= */
.copyright {
	background: black;
    color: white;
}
.copyright p {
	font-size: 0.6em;
	padding: 20px;
}
.copy-link {
	color: #82dc92;
}
.copy-link:hover {
	color: #8cec9d;
}

/* ============================================================================================= */





@media (max-width: 1300px) {
	.section-50 {
		padding: 20px 0;
	}
	.main-hero {
    grid-template-columns: 1fr;
	}
	.hero-text {
		text-align: center;
	}
	.hero-featured {
		margin-top: -10%;
		z-index: -1;
	}
	.hero-thumbs {
        justify-content: center;
    }
	.hero-big {
    flex-direction: column;
	align-items: center;
	}
	.hero-featured-info {
    writing-mode: horizontal-tb;
		text-align: center;
	}
	.burger-menu {
            display: block;
        }

        .header .menu-container {
            position: fixed;
            top: -100vh;
            left: 0;
            width: 100%;
            height: 100vh;
            background: var(--bg-color-wh);
            z-index: 11;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            transition: top 0.3s cubic-bezier(.24,.24,.74,.75);
        }

       .header .menu-list {
            flex-direction: column;
            align-items: center;
            gap: 30px !important;
            width: 100%;
            text-align: center;
        }

        /* Состояние открытого меню */
       .header .menu-container.active {
            top: 0;
        }

        /* Анимация бургера */
        .burger-menu.active .burger-line:nth-child(1) {
            transform: translateY(7px) rotate(45deg);
        }

        .burger-menu.active .burger-line:nth-child(2) {
            opacity: 0;
        }

        .burger-menu.active .burger-line:nth-child(3) {
            transform: translateY(-7px) rotate(-45deg);
        }
		.slider-reviews-avatar {
		width: 200px;
	}
}



@media (max-width: 900px) {
	.home-about {
		flex-direction: column;
	}
	.home-about-img img {
    max-height: 90vw;
	}
	.footer .menu-list {
		gap: 20px;
	}
}
@media (max-width: 768px) {
	body {
		font-size: 20px;
	}
	.hero-thumb {
		max-width: 100px;
	}
}
@media (max-width: 600px) {
		body {
		font-size: 16px;
	}
		.name-ru {
    font-size: 4em;
	}
		.hero-thumb {
		max-width: 70px;
	}
		.shop-page .shop-products {
		 display: flex;
		 flex-direction: column;
		 align-items: flex-start;
	}
		.shop-page .products {
		 align-self: center;
	}
	.shop-page .shop-layout {
		flex-direction: column;
	}
	
	
	.mobile-only {
    opacity: 1;
  	}
  
  .desctop-only .filters-content {
    opacity: 0;
	  height: 0;
  }
  
  .desctop-only .filters-content.active {
    opacity: 1;
	  height: 100%;
  }
	
	.contacts-block {
		flex-wrap: wrap;
	}
	
	.footer .menu-list {
		flex-direction: column;
		gap: 10px;
	}
	
}
@media (max-width: 467px) {
.shop-page .shop-layout {
    gap: 20px;
	}
	.hero-thumb {
        max-width: 60px;
    }
}
@media (max-width: 400px) {
	.shop-page .size-woocommerce_thumbnail {

	}
		.shop-page .products {
	    grid-template-columns: 60vw;
	}
		.hero-thumbs {
		flex-wrap: wrap;
	}
}
@media (max-width: 340px) {
	.header .social-icons {
		display: none;
	}
	    .name-ru {
        font-size: 3em;
    }
	.footer-block {
		flex-direction: column;
	}
	.footer .menu-list {
		text-align: center;
	}
}
@media (max-width: 300px) {
	body {
		font-size: 14px;
	}
}

/* WooCommerce purchase actions */
.woocommerce :is(a.button, button.button, input.button).button:not(.remove),
.woocommerce a.added_to_cart,
.woocommerce a.checkout-button.button.alt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    box-sizing: border-box;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: linear-gradient(100deg, #365b3d, #4a7a52);
    color: #fff;
    font: 600 16px/1.25 'Futura PT Book', system-ui, sans-serif;
    text-align: center;
    text-decoration: none;
}

.woocommerce :is(a.button, button.button, input.button).button:not(.remove):hover,
.woocommerce a.checkout-button.button.alt:hover {
    background: linear-gradient(100deg, #2e4d34, #426b49);
    color: #fff;
}

.woocommerce a.added_to_cart {
    border-color: var(--color-btn);
    background: transparent;
    color: var(--color-btn);
}

.woocommerce a.added_to_cart:hover {
    background: #eef3ee;
    color: #2e4d34;
}

.woocommerce button.button.button:disabled,
.woocommerce input.button.button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.woocommerce :is(.button, .added_to_cart):focus-visible,
.elvain-header-cart:focus-visible {
    outline: 2px solid var(--color-btn);
    outline-offset: 3px;
}

.woocommerce ul.products li.product a.added_to_cart {
    display: table;
    margin-top: 8px;
}

.elvain-header-cart {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    padding: 0 10px;
    border: 1px solid #d8dfd8;
    border-radius: 7px;
    color: var(--color-btn);
    font: 600 16px/1 'Futura PT Book', system-ui, sans-serif;
    white-space: nowrap;
    z-index: 12;
}

.elvain-header-cart:hover {
    background: #eef3ee;
}

.elvain-header-cart img {
    display: block;
    width: 20px;
    height: 20px;
}

@media (max-width: 600px) {
    .elvain-header-cart {
        min-width: 44px;
        justify-content: center;
        padding-inline: 8px;
    }

    .elvain-header-cart .elvain-cart-label {
        display: none;
    }
}

/* Site navigation and document pages */
.elvain-site-header {
    position: relative;
    z-index: 20;
    padding: 16px 0;
    border-bottom: 1px solid #e7ebe5;
    background: #fff;
}

.elvain-header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
}

.elvain-header-inner .logo-link { justify-self: start; }
.elvain-header-inner .elvain-header-cart { justify-self: end; }
.elvain-header-nav { grid-column: 2; }

.elvain-site-header .elvain-header-menu .menu-list {
    flex-direction: row;
    justify-content: center;
    gap: clamp(20px, 4vw, 52px) !important;
    font-size: 22px;
}

.elvain-header-menu li:has(> a[href$="#top"]) { display: none; }
.elvain-header-menu :is(a:hover, a[aria-current="page"]) { color: var(--color-btn); }

.elvain-menu-toggle {
    width: 44px;
    height: 44px;
    place-content: center;
    gap: 4px;
    padding: 0;
    background: #fff;
    color: var(--color-btn);
    border: 1px solid #d8dfd8;
    border-radius: 7px;
    cursor: pointer;
}

.elvain-menu-toggle:not([hidden]) { display: grid; }
.elvain-menu-toggle span { width: 17px; height: 1px; background: currentColor; }
.elvain-menu-toggle[aria-expanded="true"] { background: #eef3ee; }
.elvain-header-inner .elvain-header-cart .elvain-cart-count {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    min-height: 20px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--color-btn);
    color: #fff;
    font: 600 12px/1 'Futura PT Book', system-ui, sans-serif;
}
.elvain-header-inner .elvain-header-cart [data-elvain-cart-count="0"] { display: none; }

.elvain-site-header :is(a, button):focus-visible,
.elvain-site-footer a:focus-visible,
.elvain-prose a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.elvain-site-footer {
    background: #f5f6f2;
    border-top: 1px solid #e4e9e1;
}

.elvain-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 40px;
    padding: 32px 0;
}

.elvain-footer-grid h2 {
    margin: 0 0 8px;
    color: var(--color-btn);
    font: 600 26px/1.2 'Cormorant Garamond', Georgia, serif;
}

.elvain-footer-links {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    font: 400 17px/1.35 'Futura PT Book', system-ui, sans-serif;
}

.elvain-footer-links a { display: inline-flex; align-items: center; gap: 8px; }
.elvain-footer-links a:hover { color: var(--color-btn); text-decoration: underline; }
.elvain-footer-links img { width: 21px; height: 21px; }
.elvain-footer-meta { display: flex; justify-content: space-between; gap: 12px 24px; padding: 14px 0; }
.elvain-site-footer .elvain-footer-meta p { margin: 0; padding: 0; font: 400 14px/1.55 'Futura PT Book', system-ui, sans-serif; }

.elvain-prose {
    max-width: 760px;
    padding: clamp(32px, 5vw, 64px) 0 clamp(42px, 7vw, 88px);
    font: 400 18px/1.65 'Futura PT Book', system-ui, sans-serif;
    overflow-wrap: anywhere;
}

.elvain-prose .elvain-page-title {
    margin: 0 0 28px;
    font: 600 clamp(32px, 5vw, 54px)/1.08 'Cormorant Garamond', Georgia, serif;
}

.elvain-prose :is(h2, h3, h4) {
    margin: 1.1em 0 .35em;
    font: 600 clamp(23px, 3.5vw, 32px)/1.2 'Cormorant Garamond', Georgia, serif;
}

.elvain-prose :is(p, ul, ol) { margin: 0 0 1em; line-height: inherit; }
.elvain-prose :is(ul, ol) { padding-inline-start: 1.4em; }
.elvain-prose ul { list-style: disc; }
.elvain-prose ol { list-style: decimal; }
.elvain-prose a { color: var(--color-btn); text-decoration: underline; text-underline-offset: .16em; }

@media (max-width: 760px) {
    .elvain-site-header { padding: 10px 0; }
    .elvain-header-inner { grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
    .elvain-header-inner .elvain-header-cart { grid-area: 1 / 2; }
    .elvain-header-nav { grid-area: 1 / 3; }
    .elvain-header-menu {
        position: absolute;
        inset: 100% 0 auto;
        padding: 10px 5vw 16px;
        border-bottom: 1px solid #e4e9e1;
        background: #fff;
        box-shadow: 0 8px 16px #18261912;
    }
    .elvain-site-header .elvain-header-menu .menu-list { flex-direction: column; gap: 0 !important; }
    .elvain-header-menu a { display: block; padding: 9px 12px; }
    .elvain-footer-meta { flex-wrap: wrap; }
}

@media (max-width: 580px) {
    .elvain-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; padding: 24px 0; }
    .elvain-footer-grid > :last-child { grid-column: 1 / -1; }
}
