/*
Theme Name: Storefront Child
Template: storefront
Version: 1.0.0
*/

/* убрать фокусную рамку только у кликабельных элементов */

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  box-shadow: 0 0 0 2px rgba(63, 80, 44, 0.25);
  border-radius: 6px;
}

.home .widget-area { display: none !important; }
.home .content-area { width: 100% !important; float: none !important; }
.home .site-main { margin-right: 0 !important; }
.main-text-startpage { margin-top: 40px !important;}
.home .site-content { margin-bottom: 30px;}

/* Убираю пустое место справа, где раньш была навигация по блогу */

#primary{
  width: 100%;
}

/* Меньше воздуха под шапкой */
.site-header { 
  margin-bottom: 0px !important;
  padding-bottom: 0px !important;
/* Отступ логотипа от верхнего края страницы */
    padding-top: 1em !important;
    border-bottom: none !important;
}

/* Часто ещё есть padding у site-content */
.site-content { padding-top: 0 !important; }

.site-main {
    margin-bottom: 0em;
}

.site-footer {
    padding: 10px 0 0;
}

.footer-widgets {
    padding-top: 10px;
    padding-bottom: 0px;
}

.site-info {
    text-align: center;
}

:root{
  --bg: #fff;
  --text: #1f1f1f;
  --muted: #6b6b6b;
  --border: #e6e0d8;
  --accent: #3f502c;
  --accent-2: #2f4b3f;
}

/* Фон и базовая типографика */
body{
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

h1.entry-title{
  font-family: 'Montserrat', Georgia, "Times New Roman", Times, serif;
  color: #d5a300;
}

h1.woocommerce-products-header__title{
  font-family: 'Montserrat', Georgia, "Times New Roman", Times, serif;
  color: #d5a300;
}

/* Заголовки — “премиальный” serif с безопасными фолбэками */
h2,h3,.entry-title{
  font-family: Georgia, "Times New Roman", Times, serif;
}

/* Чуть мягче цвет вторичного текста */
p, .site-footer, .widget, .entry-content{
  color: var(--text);
}
small, .woocommerce-result-count, .posted-on, .byline{
  color: var(--muted);
}

/* Фирменная кнопка только на главной (и/или в конкретном блоке) */

.home a.wp-block-button__link,
a.product_type_simple,
a.added_to_cart.wc-forward,
.single-product form.cart .single_add_to_cart_button,
.login .button,
.register .button,
.lost_reset_password .button,
.edit-account .button,
.woocommerce-address-fields .button{
  min-height: 40px;
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
  padding: 8px 16px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  box-shadow: none !important;
}

.home a.wp-block-button__link:hover,
a.product_type_simple:hover,
a.added_to_cart.wc-forward:hover,
.single-product form.cart .single_add_to_cart_button:hover{
  background: var(--accent-2) !important;
  border-color: var(--accent-2) !important;
}

/* Когда товар добавлен — скрыть кнопку "Dodaj do koszyka" */
ul.products li.product a.button.added {
  display: none !important;
}

/* Убираем поиск из header */
.site-header .site-search {
  display: none !important;
}

/* Центрируем логотип в шапке */
  .site-header .site-branding {
  line-height: 0;
  width: 100% !important;
  margin: 0 !important;
  text-align: center;
}

/* Центрируем сам логотип */
.site-header .custom-logo-link {
  display: inline-block;
}

/* Контроль размера логотипа */
.site-header .custom-logo {
  max-height: 230px !important;
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
}

/* HERO section */
.hero{
  position: relative;
  overflow: hidden;          /* важно */
  border-bottom: 1px solid rgba(0,0,0,.04);
  gap: 22px; /* одинаковый шаг между заголовком/текстом/кнопкой */
  background-position: center;
  background-repeat: no-repeat;
  min-height: 225px;
  padding: 0px !important;
}

.hero-button {
	margin-bottom: 0 !important;
	margin-top: 10px !important;
}

/* HERO button: отдельная настройка */
.hero .wp-block-button__link,
.hero a.button{
  padding: 12px 40px !important;
  border-radius: 6px !important;
  letter-spacing: 0.04em;
font-size: 1.1em !important;
}

/* Сброс стандартных margin у заголовков/параграфов внутри hero */
.hero h1, .hero h2, .hero p { margin: 0 !important; letter-spacing: 0.02em;}

/* Чуть аккуратнее размер заголовка */
.hero h1, .hero h2{
  font-family: Georgia, "Times New Roman", Times, serif;
  color: #172b00;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.05;
}
.hero p{
  color: var(--muted);
  font-size: clamp(12px, 1.6vw, 18px);
}

/* Если блок категорий идёт сразу после hero */
.hero + .wp-block-heading{
  margin-top: 28px !important;
  margin-bottom: 28px !important;
}

.plashka{
  gap: 8px;
  position: relative;
  z-index: 2;
  background: rgba(255,255,255);
  padding: 0px 20px 8px 20px;
  border-radius: 0px 0px 30px 30px;
  max-width: 720px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
}

/* ВОГНУТЫЕ “вырезы” на картинке слева/справа */
.plashka::before,
.plashka::after{
  content: "";
  position: absolute;
  top: 0%;                 /* ставим прямо под карточкой */
  width: 50px;
  height: 50px;
  /* это “ластик” — цвет должен совпадать с фоном hero-карточки/страницы */
  background: rgba(255,255,255);
  z-index: 3;
}

/* ИНВЕРТИРОВАННАЯ МАСКА */
/* Левый вырез */
.plashka::before{
  left: -50px;               /* выдвигаем наружу */
  -webkit-mask: radial-gradient(circle at bottom left, transparent 50px, #000 51px);
          mask: radial-gradient(circle at bottom left, transparent 50px, #000 51px);
}

/* Правый вырез */
.plashka::after{
  right: -50px;
  -webkit-mask: radial-gradient(circle at bottom right, transparent 50px, #000 51px);
          mask: radial-gradient(circle at bottom right, transparent 50px, #000 51px);
}

.auri-site-hero{
  margin-bottom: 36px;
}

/* Уменьшение расстояния между строкой меню и соседними блоками по вертикали (лого и hero) */
.storefront-primary-navigation {
  padding: 0px 0 !important;
}

.main-navigation ul > li > a {
  padding: 0 0 10px 0 !important;
  font-size: 15px;
}

.site-header-cart > li > a,
.auri-header-right a{
  padding: 0px 0px 10px 0 !important;
  font-size: 15px;
}

.site-header-cart > li > a span{
  font-size: 15px !important;
}

.site-header-cart > li > a::after{
  font-size: 18px !important;
  line-height: 1.3 !important;
}

/* Уменьшение расстояния между строкой меню и соседними блоками по вертикали (лого и hero) */

.feature-section{
  padding: 36px 0px 0px 0px;
  margin-block-start: 0px;
}

/* Убираем лишние отступы у блоков внутри */
.feature-section h2,
.feature-section h3,
.feature-section p{
  margin: 0;
}

/* Заголовок секции (большой, “желтоватый”) */
.feature-section h2.wp-block-heading,
.siatka-blog h2.wp-block-heading{
  font-family: 'Montserrat', Georgia, "Times New Roman", Times, serif;
  color: #d5a300;                /* золотистый */
  font-size: clamp(36px, 4vw, 44px);
  line-height: 1.05;
  margin-left: 34px;
  margin-top: 10px !important; 
}

.feature-section div.wp-block-group,
.siatka-blog div.wp-block-group{
  margin-block-start: 14px;
}

.feature-section .wp-block-group__inner-container,
.two-banners .wp-block-group__inner-container,
.siatka-blog .wp-block-group__inner-container{
max-width: 66.4989378333em;
  margin: 0 auto;
}

/* Настройка двух баннеров */
.two-banners{
  margin-block-start: 50px;
}

.two-banners figure.wp-block-image{
  margin: 0 !important;
}

.two-banners .wp-block-group__inner-container{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

@media (min-width: 650px){
.two-banners figure.wp-block-image{
  width: 49%;
}
.two-banners .wp-block-group__inner-container{
  gap: 3px;
}
}

.feature-section .group-column {
padding: 0;
}

/* Колонки: картинка + текст */
.feature-section .group-column .wp-block-columns{
  margin: 0;
  gap: 0px;
  align-items: center;
  padding: 0;
}

.feature-section .wp-block-column{
  margin: 0 !important;
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding-right: 0px !important;
}

.feature-section .column-with-img{
  align-items: center;
}

.feature-section .wp-block-columns .column-with-text{
  padding: 0px 20px !important;
}

/* Картинка */
.feature-section .column-with-img figure{
  margin: 0 !important;
}

.feature-section .wp-block-image img{
  display: block;
  max-width: 280px;              /* подгони под свои картинки */
  height: auto;
}

/* Текст справа */
.feature-section p.clamp-5{
  color: #1f1f1f;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 12px;
}

/* Обрезка текста до 6 строк + троеточие */
.clamp-5{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
}

/* === ========================================================= === */
/* === Featured products new === */
/* === ========================================================= === */

  .home .wp-block-woocommerce-product-collection ul{
  margin: 14px 0 !important;
  padding-top: 15px;
}

/* Скрыть цену в Featured Products */
  .home .wp-block-woocommerce-product-collection .wp-block-woocommerce-product-price {
    display: none;
}

/* Скрыть кнопку "Dodaj do koszyka" */
.home .wp-block-woocommerce-product-collection .wp-block-button__link {
  display: none !important;
}

/* заголовок под картинкой */
  .home .wp-block-woocommerce-product-collection h2.wp-block-post-title{
    font-size: 1.3em !important;
}

  .home .wp-block-woocommerce-product-collection h2.wp-block-post-title a{
    text-decoration: none !important;
    color: #333333;
  }

  .wp-block-group.has-background{
    padding: 0 !important;
}

/* ограничить заголовок товара до 3 строк */
.wp-block-woocommerce-product-collection .wp-block-post-title a,
.wp-block-woocommerce-featured-products .wp-block-post-title a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* === ========================================================= === */
/* === Featured products new === */
/* === ========================================================= === */

/* === ========================================================= === */
/* === Blog === */
/* === ========================================================= === */

.blok-blog-main-page{
  margin: 14px 0 !important;
  margin-bottom: 0px !important;
  padding-top: 15px;
}

.blok-blog-main-page .wp-block-post-excerpt {
  padding-bottom: 24px;
  margin-block-start: 6px;
}

.blok-blog-main-page h3 {
  margin: 0;
  padding: 0px 14px !important;
  font-size: 1.3em;
}

.siatka-blog .wp-block-group__inner-container .wp-block-post-excerpt p{
  padding: 0px 14px !important;
    text-align: left;
}

.hentry .blok-blog-main-page figure img {
  margin-bottom: 10px;
}

.siatka-blog div.wp-block-buttons{
  margin-top: 0px;
}


/* === ========================================================= === */
/* === Blog === */
/* === ========================================================= === */

/* === ========================================================= === */
/* ============================= Footer ============================ */
/* === ========================================================= === */

.site-footer {
    background-color: #ffffff;
}


   .footer_kontakt{
     gap: 0px;
}

  .footer_kontakt p {
     font-size: 14px;
     font-weight: 400;
     color: #333333;
     line-height: 1.5;
}

   .footer_kontakt p:first-child {
     font-size: 16px;
     color: #333333;
     margin-bottom: 14px;
}

/* Чистим списки меню в футере (аккуратнее выглядит) */
.footer-widgets .widget_nav_menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-widgets .widget_nav_menu li {
  margin: 0 0 6px;
}

/* Убираем линию под заголовками в футере */
.footer-widgets .widget-title {
    border-bottom: none;
    padding-bottom: 0;
    font-size: 16px;      /* идеально под лого 280px */
    font-weight: 600;     /* semibold, как на примере */
    margin-bottom: 14px;
    color: #111;
}

/* Пункты меню футера */
.footer-widgets .widget_nav_menu a {
    font-size: 14px;
    font-weight: 400;
    color: #333;
    line-height: 1.5;
}

.widget_nav_menu ul li::before {
    display: none;
}

.footer-widgets .widget_nav_menu li {
    padding: 0px;
}

.footer-widgets .widget a {
  text-decoration: none; /* Убирает подчеркивание */
}

/* === ========================================================= === */
/* ============================= Footer ============================ */
/* === ========================================================= === */

@media (max-width: 767px){

  .main-navigation ul.menu > li > a {
    padding: 0 !important;
    font-size: 13px;
  }

  .site-header-cart > li > a {
    padding: 0px 12px !important;
    font-size: 10px;
  }

  /* показываем кнопку меню */
  .storefront-primary-navigation .main-navigation{
    width: auto !important;
  }

/*------------------------------------------------------------------------------------------------------ */
  /* нормальный вид кнопки меню через Бургер */

/* 1) отключаем бургер, который рисует тема (верх/низ) */
button.menu-toggle::before,
button.menu-toggle::after{
  content: none !important;
  display: none !important;
}

/* 2) "Меню" оставляем только для screen readers (не ломает SEO/доступность) */
button.menu-toggle > span{
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* 3) рисуем свою иконку бургером фоном кнопки */
button.menu-toggle{
  float: left;
  width: 44px;
  height: 44px;
  padding: 0 !important;
  border: 0 !important;
  background-color: transparent !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 24px 24px !important;

  /* SVG бургер (цвет — чёрный). Чтобы сменить цвет: %23000 -> %23ffffff (белый) и т.п. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M3 6h18v2H3zm0 5h18v2H3zm0 5h18v2H3z'/%3E%3C/svg%3E") !important;
}

/* 5) отступы для пунктов меню */
.main-navigation .handheld-navigation ul.menu{
  padding-left: 12px;
  box-sizing: border-box;
}

/* 6) Ускоряем анимацию мобильного меню Storefront */
.main-navigation .handheld-navigation{
  transition: max-height 0.25s ease-in-out !important;
}

.main-navigation .handheld-navigation ul{
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
margin-bottom: 16px;
}

.main-navigation .handheld-navigation li{
  width: auto;
}

.main-navigation .handheld-navigation a{
  white-space: nowrap;
}

/*---------------------------------------------------------------------------------------------------------- */
  /* Конец стилей нормальный вид кнопки меню */
/*---------------------------------------------------------------------------------------------------------- */

  .feature-section h2.wp-block-heading,
  .siatka-blog h2.wp-block-heading{
    text-align: center;
    margin-left: 0px;
  }

  .auri-header-right{
    display: none;
  }

/* === ========================================================= === */
/* ============================= Footer ============================ */
/* === ========================================================= === */

  .footer_kontakt{
    align-items: flex-end !important;
}

/* Лого (первая колонка) — на всю ширину и по центру */
  .footer-widgets.row-1.col-2.fix > .block.footer-widget-1{
    text-align: center;
    justify-self: center;
  }

  .footer-widgets .block.footer-widget-1 .wp-block-image{
    margin: 0 auto;
  }

  .footer-widgets .block.footer-widget-1 .wp-block-image img{
    max-width: 280px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .footer-widgets .widget.widget_block.widget_media_image {
    margin-bottom: 10px !important;
}

  .footer-widgets .block.footer-widget-2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;  /* вся сетка по центру */
    column-gap: 24px;
    row-gap: 28px;
  }

  /* Каждая "плитка" меню = половина */
  .footer-widgets .block.footer-widget-2 .widget{
    flex: 0 0 calc(50% - 12px); /* 2 колонки */
    max-width: 260px;           /* ограничиваем ширину, чтобы выглядело аккуратно */
    width: 100%;
    margin-bottom: 0 !important;
  }

  /* Левый столбец (1-й и 3-й виджет) прижимаем вправо */
  .footer-widgets .block.footer-widget-2 .widget:nth-child(1),
  .footer-widgets .block.footer-widget-2 .widget:nth-child(3){
    justify-self: end;
    margin-left: auto;          /* ключ: прижать вправо в своей половине */
    text-align: right;
  }

  /* Правый столбец (2-й и 4-й) прижимаем влево */
  .footer-widgets .block.footer-widget-2 .widget:nth-child(2),
  .footer-widgets .block.footer-widget-2 .widget:nth-child(4){
    margin-right: auto;         /* ключ: прижать влево */
    text-align: left;
  }

  .footer-widgets .block.footer-widget-2 .widget:nth-child(1) .widget-title,
  .footer-widgets .block.footer-widget-2 .widget:nth-child(1) ul,
  .footer-widgets .block.footer-widget-2 .widget:nth-child(3) .widget-title,
  .footer-widgets .block.footer-widget-2 .widget:nth-child(3) ul {
    text-align: right;
  }

  .footer-widgets .block.footer-widget-2 .widget:nth-child(2) .widget-title,
  .footer-widgets .block.footer-widget-2 .widget:nth-child(2) ul,
  .footer-widgets .block.footer-widget-2 .widget:nth-child(4) .widget-title,
  .footer-widgets .block.footer-widget-2 .widget:nth-child(4) ul {
    text-align: left;
  }

/* === ========================================================= === */
/* ============================= Footer ============================ */
/* === ========================================================= === */

/* Мобилка: подменю не "вбок", а вниз */

/* 1) Делаем список меню flex + разрешаем перенос строк */
  .main-navigation .handheld-navigation > ul.menu{
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start;
    gap: 14px;
  }

  /* 2) Пункты верхнего уровня — по содержимому (не растягиваются) */
  .main-navigation .handheld-navigation > ul.menu > li{
    flex: 0 0 auto !important;
    width: auto !important;
  }

  /* 3) Подменю: отдельной строкой на всю ширину и не влияет на ширину пункта */
  .main-navigation .handheld-navigation > ul.menu > li > ul.sub-menu{
    flex: 0 0 100% !important;      /* новая строка */
    width: 100% !important;
    padding: 6px 0 0 0 !important;
    margin: 0 !important;

    /* по умолчанию скрыто */
    display: none !important;

    /* важное: не раздувает высоту/ширину пункта */
    position: static !important;
    float: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: none !important;
    overflow: visible !important;
    transition: none !important;
  }

  /* 4) Открытое состояние (класс ты уже используешь) */
  .main-navigation .handheld-navigation > ul.menu > li.menu-open > ul.sub-menu{
    display: block !important;
  }

  /* 5) Оформление ссылок категорий */
  .main-navigation .handheld-navigation > ul.menu > li > ul.sub-menu > li > a{
    display: block;
    padding: 5px 0 5px 0 !important;
  }

  /* 6) Стрелку скрываем */
  .main-navigation .dropdown-toggle,
  .main-navigation button.dropdown-toggle{
    display: none !important;
  }

}

@media (min-width: 768px){

  .content-area {
    margin-bottom: 0em;
  }

/* 1) Родитель внутри storefront-primary-navigation */
.storefront-primary-navigation > .col-full{
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* 2) Основное меню занимает всё доступное место */
.storefront-primary-navigation .main-navigation{
  flex: 1 1 auto;
  margin-left: auto;
  width: auto !important;
  min-width: 0; /* важно, чтобы меню могло сжиматься */
}


/* 3) отступы между элементами меню */
.main-navigation ul.menu li:nth-child(n+2),
.sub-menu li{
  margin-left: 10px;
}

.sub-menu li:nth-child(1){
  margin-top: 10px;
}

/* 4) Правый блок (аккаунт + корзина) */
.auri-header-right{
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

/* 5) Корзина: отключаем float и фиксированную ширину Storefront */
.woocommerce-active .site-header .site-header-cart,
.woocommerce-active .site-header #site-header-cart{
  float: none !important;
  width: auto;
  justify-content: flex-end;
  margin: 0 !important;
}

/* 6) Чтобы UL корзины корректно вела себя как flex-элемент */
#site-header-cart{
  display: flex;
  align-items: center;
}

/* 7) Чтобы иконка корзины отодвинулась от надписи */
.site-header-cart .cart-contents .count {
    margin-right: .7em;
  }

.auri-account-link{
    display: flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    font-size: 15px;
}

/* === ========================================================= === */
/* ============================= Footer ============================ */
/* === ========================================================= === */

.footer_kontakt p {
    width: 80%;
}
  /* 1) Делаем footer flex-контейнером */
  .footer-widgets.row-1.col-2.fix {
    display: flex;
    flex-wrap: nowrap;
  }

  /* 2) Вторая колонка — 75% */
  .footer-widgets .block.footer-widget-2 {
    flex: 0 0 75%;
    display: flex;
    align-items: flex-start;
    gap: 0px;
  }

  /* 3) Убираем стандартные отступы Storefront у виджетов */
  .footer-widgets .block.footer-widget-2 .widget {
    margin: 0;
  }

  /* 4) Лого — фиксированная ширина */
  .footer-widgets .block.footer-widget-1 .widget_media_image {
    flex: 0 0 280px;
  }

  .footer-widgets .block.footer-widget-1 .wp-block-image img {
    max-width: 280px;
    width: 100%;
    height: auto;
    display: block;
  }

  .footer-widgets .block.footer-widget-2 .widget_nav_menu{
    flex: 0 0 calc(100% / 4);
  }

/* === ========================================================= === */
/* ============================= Footer ============================ */
/* === ========================================================= === */

.home .entry-content p {
margin: 0 0 0em;
}

}

@media (max-width: 374px){

  .footer-widgets .block.footer-widget-2 .widget{
    width: 10%;
  }

}

@media (min-width: 1100px){

  .footer_kontakt p {
        width: 70%;
    }

}

/* Цвет заголовков подкатегорий на странице Растения */

.term-tropische-terrarium-pflanzen h2.woocommerce-loop-category__title{
  color: #d5a300;
  font-size: 1.8rem !important;
}

/* Отключение показа кол-ва товара в подкатегории */
.term-tropische-terrarium-pflanzen li.product-category .count {
    display: none;
}

/* Перенос описания подкатегории вниз страницы, под товары */
.woocommerce .category-description-bottom-plants{
  clear: both;
  display: block;
  width: 100%;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e5e5e5;
}

/* =========================
   PRODUCT: Кнопка вернуться в подкатегорию/категорию
   ========================= */

.am-back-to-cat{
  margin-bottom: 30px;
  text-align: center;
}

.am-back-button{
  background-color: #f3eacb;
  border: 1px solid rgba(0,0,0,.2) !important;
  color: inherit !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
}

.am-back-button:hover{
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

ul.products li.product{
  margin-bottom: 40px;
}

@media (max-width: 767px){
  ul.products li.product{
    margin-bottom: 30px;
  }
}

@media (min-width: 768px){
  ul.products li:nth-last-child(-n+3) {
    margin-bottom: 30px;
  }
}

/* =========================
   PRODUCT: Кнопка вернуться в подкатегорию/категорию
   ========================= */

/* =========================
   PRODUCT: Стиль надписи Нет в наличии
   ========================= */
ul.products li.product .price.out-of-stock-label {
    display: block;
    margin: 8px 0 12px;
    color: #b94a48;
    font-weight: 600;
    text-align: center;
}
.stock.out-of-stock:before {
    display: none !important;
}
/* =========================
   PRODUCT: Стиль надписи Нет в наличии
   ========================= */

/* =========================
   Pinterest
   ========================= */
/* Pinterest Save button: оставить только иконку */
/* убрать текст кнопки Pinterest */

/* чтобы текст не занимал место */
.pinterest-for-woocommerce-image-wrapper a::after {
    content: "";
}
/* контейнер кнопки */
.pinterest-for-woocommerce-image-wrapper {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

/* сама кнопка */
.pinterest-for-woocommerce-image-wrapper a {
    font-size: 0 !important; /* скрыть текст */
    width: 28px !important;
    height: 28px !important;
    background-color: #bf0521 !important;
    background-size: 20px 20px !important;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    line-height: 0 !important;
}

/* =========================
   Pinterest
   ========================= */