/* Переменные проекта */
:root {
  --color-primary: #2c4a2e;
  --color-primary-hover: #1f3521;
  --color-bg-light: #faf5e8;
  --color-text: #333333;
  --color-border: #e2e8f0;
  --radius-card: 12px;
}

.col{
	width: 1510px;
	margin: 0 auto;
}

.site-header{
	width: 1860px;
	margin: 0 auto;
	margin-bottom: 120px;
}

.headerImage{
	background:url("../images/header.jpg") no-repeat;	
	height: 950px;
	margin-top: -40px;
}

.headerLine {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
	margin-top: 31px;
	margin-bottom: 29px;
}

.headerAdress {
	margin-left: 70px;
	font-size: 22px;
}

.headerPhone a{
	display: inline-block;
	height: 40px;
	line-height: 40px;
	padding: 0 20px;
	font-size: 22px;
	background: #fef3dd;
	border-radius: 40px;
	margin-left: 100px;
	color:#000;
}

.headerVk a{
	display: inline-block;
	background: url("../images/icon_vk.png");
	color:#000;
	width: 40px;
	height: 40px;
	border-radius: 40px;
	margin-left: 10px;
}

.headerMax a{
	display: inline-block;
	background: url("../images/icon_max.png");
	color:#000;
	width: 40px;
	height: 40px;
	border-radius: 40px;
	margin-left: 10px;
}

.headerMail a{
	display: inline-block;
	height: 40px;
	line-height: 40px;
	padding: 0 20px;
	font-size: 22px;
	background: #fef3dd;
	border-radius: 40px;
	color:#000;
	margin-left: 10px;
}

.headerCart {
    margin-left: auto;
}

.headerText{
	font-size: 90px;
	font-family: 'MinionPro-Semibold';
	color:#fef3dd;
	text-align: center;
	padding-top: 278px;
	padding-bottom: 100px;
	line-height: 140%;
}

.headerLink a{
	font-size: 34px;
	font-family: 'MinionPro-Semibold';
	color:#fef3dd;
	width: 250px;
	height: 80px;
	line-height: 80px;
	text-align: center;
	margin: 0 auto;
	border:1px solid #fef3dd;
	display: block;
	border-radius: 20px;
}

.main-navigation{
	background: #ffffff;
	width: 1510px;
	height: 80px;
	border:1px solid #e8ebdf;
	display: inline-block;
	border-radius: 20px;
}

.main-content{
	width: 1510px;
	margin: 0 auto;
}

.assortmentBox{
	width: 1850px;
	margin: 0 auto;
	border-radius: 20px;
	background: #fef3dd;
}

.assortment{
	width: 1510px;
	margin: 0 auto;
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    gap: 20px;
	padding-bottom: 80px;
}

.assortmentTitle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-basis: 100%;
    width: 100%;
    
    font-family: 'Georgia', serif;
    font-size: 70px;
    font-weight: normal;
    color: #687629;
    margin: 0;
	margin-top: 90px;
	margin-bottom: 50px;
    gap: 17px;
}

/* Рисуем тонкие линии по бокам с помощью псевдоэлементов */
.assortmentTitle::before,
.assortmentTitle::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #556B2F;
    opacity: 0.5;
}

/* Отступы от линий до текста и иконки */
.assortmentTitle::before {
    margin-right: 40px;
}

.assortmentTitle::after {
    margin-left: 40px;
}

.item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 200px;
}

.itemImage img {
    max-width: 100%;
    height: auto;
    display: block;
}

.itemTitle{
	font-size: 22px;
	padding-top: 17px;
	padding-bottom: 58px;
}

/* Основной контейнер галереи */
.gallery-slider-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

/* Главный слайдер */
.main-slider {
  width: 100%;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 10px;
}

.main-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Цвет стрелок навигации */
.main-slider .swiper-button-next,
.main-slider .swiper-button-prev {
	background: #687629 url("../images/icon_slider_arrow_home.png") no-repeat center center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color:transparent;
}

.main-slider .swiper-button-next{
	transform: rotate(180deg);
}

/* Слайдер миниатюр */
.thumbs-slider {
  height: 89px;
  box-sizing: border-box;
}

.thumbs-slider .swiper-slide {
  width: 122px;
  height: 89px;
  cursor: pointer;
}

.thumbs-slider .swiper-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 20px;
}

.thumbs-slider .swiper-slide-thumb-active img {
	outline: 2px solid #687629;
	outline-offset: -2px;
}

.node__content{
	display: flex;
	gap: 80px;
}

.field--name-field-body{
	width: 910px;
	text-align: justify;
}

.field--name-field-image{
	width: 520px;
}

.blog{
	width: 1510px;
	margin: 0 auto;
}

.blogTitle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-basis: 100%;
    width: 100%;
    
    font-family: 'Georgia', serif;
    font-size: 70px;
    font-weight: normal;
    color: #687629;
    margin: 0;
	margin-top: 80px;
	margin-bottom: 80px;
    gap: 17px;
}

/* Рисуем тонкие линии по бокам с помощью псевдоэлементов */
.blogTitle::before,
.blogTitle::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #556B2F;
    opacity: 0.5;
}

/* Отступы от линий до текста и иконки */
.blogTitle::before {
    margin-right: 40px;
}

.blogTitle::after {
    margin-left: 40px;
}

.blog .blog-wrapper{
    display: flex;
    flex-wrap: wrap;
	gap:40px;
}

#block-agronom53-views-block-blog-block-1,
#block-agronom53-views-block-blog-block-2{
	width: 735px;
}

#block-agronom53-views-block-blog-block-1 .views-field-field-blog-image{
	border:1px solid #e8ebdf;
	border-radius: 20px;
	padding: 10px;
	position: relative;
}

#block-agronom53-views-block-blog-block-1 .views-field-title{
	position: absolute;
	bottom: 40px;
	left: 50px;
	right: 90px;
}

#block-agronom53-views-block-blog-block-1 .views-field-title a{
	font-size: 26px;
	color:#fff;
    font-family: 'OfficinaSansCTT';
	font-weight: bold;
}

#block-agronom53-views-block-blog-block-1 .views-field-field-blog-image img,
#block-agronom53-views-block-blog-block-2 .views-field-field-blog-image img{
	border-radius: 20px;	
}

#block-agronom53-views-block-blog-block-2 .view-content{
	display: flex;
    flex-direction: column;
    row-gap: 40px;
}

#block-agronom53-views-block-blog-block-2 .views-row{
	display: flex;
	border:1px solid #e8ebdf;
	border-radius: 20px;
	padding: 10px;
	gap:40px;
	align-items: center;
	padding-right: 30px;
}

#block-agronom53-views-block-blog-block-2 .views-field-field-body h2{
	margin: 0;
	padding: 0;
	text-decoration: none;
	color:#687629;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;  
	overflow: hidden;
	word-break: normal;
	overflow-wrap: normal;
}

#block-agronom53-views-block-blog-block-2 .views-field-field-body p{
	margin: 0;
	padding: 0;
	padding-top: 12px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;  
	overflow: hidden;
	word-break: normal;
	overflow-wrap: normal;
}

#block-agronom53-views-block-blog-block-2 .views-field-field-body h2 a{
	font-size: 26px;
	color:#687629;
	text-decoration: none;
}

.blogLink a,
.product-single__footer-back a{
	background: #ffffff;
    width: 1510px;
    height: 80px;
	line-height: 80px;
    border: 1px solid #e8ebdf;
    display: inline-block;
    border-radius: 20px;
	font-size: 26px;
	text-align: center;
	margin-top: 40px;
    font-family: 'OfficinaSansCTT';
	font-weight: bold;
	color:#687629;
}

.product-single__back-link a{
	font-weight: normal;
}

.site-footer{
	border-top:1px solid #e8ebdf;
	margin-top: 80px;
}

.site-footer .col{
	display: flex;
    justify-content: space-between;
	padding: 100px 0;
}

.footerSocial .headerPhone a{
	margin-left: 0;
}

.footerSocialLine{
	display: flex;
	gap: 10px;
}

.footerSocial .headerVk a,
.footerSocial .headerMax a,
.footerSocial .headerMail a{
	margin-left: 0;
	margin-top: 10px;
}

.footerSocial .headerAdress{
	margin-left: 0;
	margin-top: 33px;
}

.footerTextOferta{
	margin: 0;
	padding: 0;
	font-size: 16px;
	color:#cccccc;
	line-height: 120%;
}

.footerMenu{
	margin: 0 170px;
	line-height: 180%;
}

.badge{
	max-width: 100% !important;
}

/* Контейнер галереи */
.product-gallery {
  max-width: 735px;
  width: 100%;
}

/* 1. Большой слайдер */
.product-main-slider {
  width: 100%;
  height: 735px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
}

.product-main-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

/* 2. Карусель миниатюр */
.product-thumbs-slider {
  width: 100%;
  height: 114px;
}

.product-thumbs-slider .swiper-slide {
  width: 114px;
  height: 114px;
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
  transition: opacity 0.2s ease;
}

.product-thumbs-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ховер эффекты и рамка активного слайда */
.product-thumbs-slider .swiper-slide:hover {
  opacity: 0.3;
}

.product-thumbs-slider .swiper-slide-thumb-active {
  outline: 2px solid #000;
  outline-offset: -2px;
  opacity: 1 !important;
}

.cat{
	padding: 10px;
	border:1px solid #e8ebdf;
	border-radius: 20px;
}

.catTitle{
	padding: 0 30px;
	padding-top: 20px;
	padding-bottom: 21px;
}

.catTitle a{
	font-size: 22px;
	color:#000;
}

.catImage img{	
	border-radius: 20px;
}

.catPrice{
	background: #fef3dd;
	height: 52px;
	line-height: 52px;
	font-size: 24px;
    font-family: 'OfficinaSansCTT';
	font-weight: bold;
	color:#23410a;
	padding: 0 20px;
	display: flex;
	border-radius: 20px;
}

.catLink{
	margin-left: auto;
}

.catBody{
	display: flex;
    align-items: center;
	padding: 0 30px;
	padding-bottom: 30px;
}

/* Сетка из двух колонок */
.product-single__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Блок покупки с желтоватым/серым фоном как на скрине */
.product-single__buy-block {
  background-color: #fbf8ee;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
}

/* Основной кремовый блок покупки */
.product-single__buy-block {
  background-color: #fdf5e6; /* Кремовый фон под макет */
  border-radius: 12px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 25px;
}

/* Цена */
.product-single__price {
  font-size: 24px;
  font-weight: 700;
  color: #1c3211;
  white-space: nowrap;
}

/* Форма Drupal Commerce */
.product-single__cart-form form {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0;
}

/* Скрываем заголовок поля количества (Label) */
.product-single__cart-form label {
  display: none !important;
}

.product-single__cart-form .form-item {
  margin: 0;
}

/* Белый контейнер для стэппера (- 12 +) */
.quantity-stepper {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 10px;
  padding: 2px 6px;
  height: 44px;
  box-shadow: inset 0 0 0 1px #e2e2e2;
}

/* Кнопки «-» и «+» */
.qty-btn {
  background: transparent;
  border: none;
  width: 32px;
  height: 100%;
  font-size: 18px;
  color: #333333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  transition: opacity 0.2s;
}

.qty-btn:hover {
  opacity: 0.6;
}

/* Поле ввода количества внутри стэппера */
.quantity-stepper input[type="number"] {
  width: 38px;
  height: 100%;
  border: none !important;
  background: transparent !important;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #333333;
  outline: none !important;
  padding: 0;
  /* Убираем стандартные стрелки у number-инпута */
  -moz-appearance: textfield;
}

.quantity-stepper input[type="number"]::-webkit-outer-spin-button,
.quantity-stepper input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Кнопка «В корзину» (Темно-оливковая) */
.product-single__cart-form input[type="submit"],
.product-single__cart-form button.form-submit {
  background-color: #586b29 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 0 28px !important;
  height: 44px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.product-single__cart-form input[type="submit"]:hover,
.product-single__cart-form button.form-submit:hover {
  background-color: #46561f !important;
}

/* Контейнер описания */
.product-description-wrapper {
  margin-top: 15px;
}

/* Ограничение строго в 5 строк */
.product-description-wrapper.is-collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

/* Сбрасываем нижний margin у параграфа inside обертки, чтобы он не выталкивал текст */
.product-description-wrapper p {
  margin: 0 !important;
  padding: 0 !important;
}

/* Если в поле несколько параграфов — добавляем отступ между ними, но не у последнего */
.product-description-wrapper p + p {
  margin-top: 0.5em !important;
}

/* Кнопка "Читать далее" */
.product-description-toggle {
  background: none;
  border: none;
  padding: 0;
  margin-top: 10px;
  color: #586b29;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-block;
}

.product-description-toggle:hover {
  color: #385324;
}

.product-description-toggle.is-hidden {
  display: none;
}