/*
 Theme Name:   Grange Child Theme
 Theme URI:    http://grange.ancorathemes.com
 Description:  Grange Child Theme
 Author:       AncoraThemes
 Author URI:   http://ancorathemes.com
 Template:     grange
 Version:      1.0
 Tags:         flexible-header, custom-background, custom-colors, custom-header, custom-menu, featured-image-header, featured-images, full-width-template, microformats, post-formats, theme-options, threaded-comments, translation-ready
 Text Domain:  grange
*/

/* =Child-Theme customization starts here
------------------------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@100;300;400;500;700;800;900&display=swap');
html,
body {
  font-family: 'M PLUS Rounded 1c', sans-serif !important;
}
body .elementor-kit-15 {
  font-family: 'M PLUS Rounded 1c', sans-serif !important;
}
.trx_addons_mouse_helper {
  display: none !important; /*Сховати крапку біля курсору*/
}
.sidebar {
  display: none !important;
}
.logo_slogan {
  display: none !important;
}
.logo_text {
  font-size: 3rem !important;
}
h1 {
  font-size: 2.5rem;
}
.page_content_wrap {
  padding-top: 2rem;
}
.pll-parent-menu-item > a > span {
  height: max-content;
  display: flex !important;
  align-items: center;
  /* margin: 7px 0; */
}
.lang-item > a > span > img {
  margin-top: 5px !important;
}
.current-lang > a::after {
  width: 100% !important;
}

header section div.sc_layouts_column_align_right {
  display: none;
}
.elementor-widget-trx_sc_layouts_cart,
.elementor-widget-trx_sc_layouts_search {
  display: none !important;
}
body.home header.top_panel {
  position: fixed;
}
body:not(.home) header.top_panel {
  position: relative;
  margin-top: 80px;
}
body:not(.home) header > div > section:first-child {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 8000;
}

body.home header.top_panel.down {
  background-color: rgba(0, 0, 0, 0.7) !important;
}

body:not(.home) header > div > section.down {
  background-color: rgb(255, 255, 255, 1) !important;
}

/* Приховати кнопку "Додати в кошик" на сторінці магазину */
.woocommerce ul.products li.product .button {
  display: none;
}

/* Приховати віджет кошика у сайдбарі */
.widget_shopping_cart,
.widget_shopping_cart_content {
  display: none;
}
footer .menu {
  list-style: none;
  padding-left: 0;
}
.sub-menu .sc_layouts_menu_item_description,
.menu .sc_layouts_menu_item_description {
  display: none;
}
.sub-menu li a:after {
  top: 10px !important;
}
/*Модіфікуємо сторінку продукції*/
.post-type-archive-product .content_wrap,
.tax-product_cat .content_wrap,
.tax-product_tag .content_wrap {
  display: grid;
}
.tax-product_cat .content_wrap.menu_mobile_content_wrap,
.tax-product_tag .content_wrap.menu_mobile_content_wrap {
  display: block;
}

.post-type-archive-product .content_wrap .content,
.tax-product_cat .content_wrap .content,
.tax-product_tag .content_wrap .content {
  /* display: flex; */
  width: 100% !important;
}
.post-type-archive-product .content_wrap .content .list_products,
.tax-product_cat .content_wrap .content .list_products,
.tax-product_tag .content_wrap .content .list_products {
  width: 100% !important;
}
.post-type-archive-product .content_wrap .sidebar,
.tax-product_cat .content_wrap .sidebar,
.tax-product_tag .content_wrap .sidebar {
  display: grid;
  width: 100% !important;
}
.post-type-archive-product .content_wrap .sidebar_inner,
.tax-product_cat .content_wrap .sidebar_inner,
.tax-product_tag .content_wrap .sidebar_inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 20px !important;
}
.post-type-archive-product .content_wrap .sidebar_inner aside,
.tax-product_cat .content_wrap .sidebar_inner aside,
.tax-product_tag .content_wrap .sidebar_inner aside {
  margin-top: 0 !important;
  width: 100% !important;
  padding: 0 !important;
}

.sidebar:not(.sidebar_float) .widget + .widget,
.sidebar:not(.sidebar_float)[class*='scheme_'] .widget + .widget {
  margin-top: 0px !important;
}

.post-type-archive-product
  .content_wrap
  .sidebar_inner
  aside
  .product-categories,
.tax-product_cat .content_wrap .sidebar_inner aside .product-categories,
.tax-product_tag .content_wrap .sidebar_inner aside .product-categories {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 16px;
  row-gap: 8px;
  padding-left: 0;
}
.post-type-archive-product
  .content_wrap
  .sidebar_inner
  aside
  .product-categories
  > li,
.tax-product_cat .content_wrap .sidebar_inner aside .product-categories > li,
.tax-product_tag .content_wrap .sidebar_inner aside .product-categories > li {
  margin: 0;
  padding: 6px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 30px;
}

.post-type-archive-product
  .content_wrap
  .sidebar_inner
  aside
  .product-categories
  > li
  > a:before,
.tax-product_cat
  .content_wrap
  .sidebar_inner
  aside
  .product-categories
  > li
  > a:before,
.tax-product_tag
  .content_wrap
  .sidebar_inner
  aside
  .product-categories
  > li
  > a:before {
  display: none !important;
}

.woocommerce-product-gallery__wrapper > div > a > img {
  min-height: 500px !important;
  object-fit: cover;
}

/* .product-category-banner {
  margin-bottom: 20px; 
  clear: both; 
}
.product-category-banner .rs-fullwidth-wrap {
  position: static !important;
}

.product-category-banner .rs-fullwidth-wrap .rs-module-wrap {
  position: static !important;
} */

.product-category-banner {
  margin-bottom: 60px; /* Відступ знизу */
  clear: both; /* Очистка флоту */
  width: 100%; /* Ширина на всю доступну ширину */
}

.product-categories-home {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-auto-rows: 1fr;
  gap: 80px;
}
.product-categories-home li {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  /* grid-auto-rows: max-content; */
}
.product-categories-home li * {
  color: #080808;
}
/* Реверс напрямку */
.product-categories-home li:nth-child(even) > *:nth-child(1) {
  order: 2; /* Поміняти місцями елементи */
}

.product-categories-home li:nth-child(even) > *:nth-child(2) {
  order: 1; /* Поміняти місцями елементи */
}
.product-categories-home li:nth-child(even) > * {
  text-align: left; /* Вирівнювання тексту */
}
.product-categories-home li > a > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
  max-height: 500px;
}
.product-categories-home li > a {
  position: relative;
  overflow: hidden;
}
/* .product-categories-home li > a:before {
  content: '';
  background-color: rgb(168, 120, 96, 0);
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  transition: background-color 0.3s ease;
}
.product-categories-home li > a:hover:before {
  background-color: rgb(168, 120, 96, 0.6);
} */
.product-categories-home li > a:hover > img {
  transform: scale(1.1);
}
.contacts-list .sc_icons_columns_wrap > div .sc_icons_item {
  transition: background-color 0.3s ease;
  padding: 30px 15px 30px;
}
.contacts-list .sc_icons_columns_wrap > div:hover .sc_icons_item {
  background-color: #617e44;
}
.contacts-list .sc_icons_columns_wrap > div .sc_icons_item * {
  transition: color 0.3s ease;
}
.contacts-list .sc_icons_columns_wrap > div:hover .sc_icons_item * {
  color: #fff !important;
}
/*=======Products==========*/
.woocommerce ul.products,
.woocommerce-page ul.products {
  gap: 80px;
}
.custom-product {
  position: relative;
}
.custom-product:nth-child(even) > .product > a {
  order: 2;
}
.custom-product:nth-child(even) > .product > text {
  order: 1;
}
.custom-product > .product {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
}
.custom-product h2 {
  margin-top: 0;
}
.custom-product .price {
  margin-bottom: 12px;
}
.custom-product > .product > a {
  overflow: hidden;
}
.custom-product > .product > a > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}
.custom-product > .product > a:hover > img {
  transform: scale(1.1);
}
.custom-product .onsale {
  position: absolute !important;
  padding: 10px !important;
  top: 1rem !important;
  left: 1rem !important;
}
.custom-product:nth-child(even) .onsale {
  right: 1rem !important;
  left: auto !important;
}
.custom-product .text {
  background-color: #fff;
  margin-left: -120px;
  margin-top: 40px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
  padding: 40px 60px;
  box-shadow: 0px 0px 8px 6px rgba(0, 0, 0, 0.1);
}

.custom-product:nth-child(even) .text {
  margin-left: 0px;
  margin-right: -120px;
}

.advantages .sc_icons_divider3 .sc_icons_item {
  padding: 40px 0 !important;
}
.advantages h4,
.advantages h4 * {
  font-weight: 700;
}
.h2-title > div {
  display: flex;
  justify-content: center;
}
.h2-title h2 {
  width: max-content;
  position: relative;
}
.h2-title h2:before {
  position: absolute;
  content: '';
  width: 100px;
  height: 4px;
  background-color: #265e02;
  top: calc(50% - 2px);
  left: -120px;
}
.h2-title h2:after {
  position: absolute;
  content: '';
  width: 100px;
  height: 4px;
  background-color: #265e02;
  top: 50%;
  right: -120px;
}
.benefit-wrap {
  margin-top: 60px;
}
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  position: relative;
  margin-top: 60px;
}

/* .benefit-grid .image{
  min-height: 620px;
} */
.benefit-grid .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.benefit-grid .text {
  position: absolute;
  top: 8%;
  left: calc(50% - 100px);
  background-color: #fff;
  padding: 40px;
}
.benefit-grid .text * {
  color: #000;
}
.benefit-grid .text ul {
  display: grid;
  gap: 24px;
}

.btn-cats a {
  padding: 16px 30px !important;
}
.price {
  display: none;
}
@media (max-width: 1024px) {
  .h2-title h2:before {
    top: calc(50% - 1px);
    height: 2px;
  }
  .h2-title h2:after {
    height: 2px;
  }
}
@media (max-width: 768px) {
  .h2-title h2:before {
    width: 50px;
    left: -65px;
  }
  .h2-title h2:after {
    width: 50px;
    right: -65px;
  }
}
@media (max-width: 450px) {
  .change-order {
    order: 2;
  }
}
