/*
 Theme Name:   Foodie Child Theme
 Theme URI:    https://foodie.themerex.net/
 Description:  Foodie Child Theme
 Author:       ThemeREX
 Author URI:   https://themerex.net/
 Template:     foodie
 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:  foodie
*/

/* =Child-Theme customization starts here
------------------------------------------------------------ */
@import url("https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,400;0,500;0,600;0,700;0,900;1,600&display=swap");

html,
body,
div,
span,
applet,
object,
iframe,
video,
audio,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
font,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
input,
textarea,
button,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
address,
section {
  font-family: "Raleway", sans-serif !important; /*Raleway*/
}
body {
  /* background-color: transparent !important; */
  /* background: url("images/bg.jpg") no-repeat center center fixed !important; */
}
body::before {
  content: "";
  background-image: url("images/bg_rsz.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
table td {
  font-size: 1.1rem !important;
}
h1 {
  text-transform: uppercase;
  font-weight: bold !important;
  font-size: 1.5rem !important;
}
/*Убираю фон по змовчуванню*/
.top_panel {
  background-color: transparent !important;
}
.page_content_wrap {
  background-color: transparent !important;
  padding-top: 1rem;
}
.scheme_dark .elementor-animation-sink > svg {
  fill: #fff !important;
}
/*Лінії в хедер*/
.body_wrap > .page_wrap > header {
  position: relative;
}
/* .body_wrap > .page_wrap > header::before {
  content: "";
  background-color: #fff;
  height: 3px;
  width: 80%;
  display: block;
  position: absolute;
  top: 140px;
  left: 10%;
} */

/*Сторінка Продукція*/
.link-wrap {
  display: flex;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 6px;
}
.link-wrap * {
  padding-bottom: 0;
  margin-bottom: 0;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.grid-item {
  display: grid;
  grid-template-rows: 366px auto;
  gap: 20px;
  position: relative;
}

/* .grid-item::after {
  content: "";
  width: 95%;
  height: 70%;
  background: #66ac66;
  position: absolute;
  top: 10%;
  left: 10%;
  border-radius: 90px 0 110px 0;
  z-index: -1;
} */
.grid-item > .grid-item__image {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}
.grid-item > .grid-item__image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* border-radius: 100px 0 100px 0; */
}
.grid-item > .grid-item__title {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  margin: 0 auto;
}
.grid-item > .grid-item__title::before {
  /* content: url('images/brush.png'); */
  /* content: "";
  position: absolute;
  top: 10%;
  left: 3%;
  width: 94%;
  height: 80%;
  z-index: -1;
  background-color: red; */
}
.grid-item > .grid-item__title > h3 {
  /*line-height: 1; */
  margin: 0;
  font-weight: bold;
  padding: 10px 20px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  /* height: 100%; */
  background: red;
  font-size: 1.5rem;
}
/**/
.product-grid {
  display: grid;
  gap: 40px;
}
.product-item_data {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 20px;
  padding: 20px 0px 40px 0px;
  border-bottom: 4px solid red;
  align-items: center;
}
.product-item:nth-child(even) > div.product-item_data {
  grid-template-columns: 1fr 1.7fr;
}
.product-item:nth-child(even) > div > div:first-child {
  order: 2;
}
.product-item:nth-child(even) > div > div:last-child {
  order: 1;
}
.product-item > h4 {
  color: red;
  font-weight: bold;
  font-size: 2.5rem;
  line-height: 1;
  margin: 0;
}
.product-item_data > div,
.product-item_data > div > .table-wrap {
  display: flex;
  align-items: center;
  width: 100%;
}
.product-item_data > div > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.product-item_data > div > .table-wrap > table {
  width: 100%;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
/* ==========Послуги=============*/
.service-image-link {
  cursor: pointer;
}
.qr-code-img {
  display: flex;
  gap: 20px;
}
/*========Магазини=========*/
.google-map > .container {
  position: relative;
}
.upadate-button {
  position: absolute;
  width: 160px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  border: none;
  border-radius: 6px;
  background-color: #54a029;
  top: 10px;
  left: calc(60% - 80px);
  z-index: 2;
  cursor: pointer;
}
.upadate-button:hover {
  background-color: #346d13;
}
#storesMap {
  height: 600px;
}
.map-wrap {
  display: grid;
  grid-template-columns: 1fr 4fr;
  gap: 20px;
  height: 600px;
}
.stores-grid {
  overflow-y: auto;
  display: grid;
  gap: 20px;
  padding: 20px;
}
/* Стилізація скролла */
.stores-grid::-webkit-scrollbar {
  width: 4px; /* Встановлює ширину скролла */
}

.stores-grid::-webkit-scrollbar-track {
  background-color: #c5a48e; /* Задає колір фону трека */
}

.stores-grid::-webkit-scrollbar-thumb {
  background-color: #54a029; /* Задає колір пластини скролла */
  border-radius: 4px; /* Задає радіус кутика пластини скролла */
}

.stores-map .gm-style-iw {
  color: #000;
}

.store-item {
  cursor: pointer;
  color: #000;
  font-size: 14px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  flex-direction: row-reverse;
  align-items: flex-start;
}
.store-item > img {
  transition: transform 0.3s ease;
}
.store-item:hover > img {
  transform: rotate(180deg);
}
.store-item h4 {
  margin: 0;
  color: #000;
  font-weight: 700;
  font-size: 18px;
}
.store-item.active h4 {
  color: red;
}
.store-item h5 {
  margin: 0;
  color: #000;
  font-weight: 600;
  /* font-size: 16px; */
}
.store-item .store-adress {
  margin: 0;
  color: #555555;
  font-weight: 600;
}
.store-item p {
  margin: 0;
}
.store-item .road {
  display: flex;
  margin-top: 6px;
}
.store-item-add {
  display: none;
}
.store-today {
  display: none;
}
.store-today.show {
  display: block;
}
/*map - markers*/
.gm-style-iw-d > div {
  font-weight: 700;
  font-size: 14px !important;
}
.gm-style-iw-d > div p {
  font-weight: 400;
}
.gm-style-iw-d > div .map-text {
  margin-bottom: 10px;
  font-weight: 600;
}
.gm-style-iw-d > div .map-text.first {
  margin-top: 10px;
}
.gm-style-iw-d > div .map-text > span {
  font-weight: 400;
}
.gm-style-iw-d > div .map-text.hours {
  margin-bottom: 2px;
}
.contact-item {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 2fr;
}
.contact-item.ci-footer {
  grid-template-columns: 1fr 2.5fr;
}
@keyframes slideInUp {
  0% {
    -webkit-transform: translateY(100%);
    transform: translateY(100%);
    visibility: visible;
  }
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

/*============Slider=============*/
.swiper-pagination-bullet {
  width: 12px !important;
  height: 12px !important;
  background: #54a029 !important;
}
.swiper-container-horizontal > .swiper-pagination-bullets,
.swiper-pagination-custom,
.swiper-pagination-fraction {
  bottom: 50px !important;
  z-index: 2 !important;
}

.elementor-swiper-button {
  color: rgb(84, 160, 41, 0.7) !important;
}
/*==============Footer===========*/
.footer-main {
  display: grid;
  gap: 40px;
  padding: 40px 0 20px;
}

.footer-wrap {
  display: grid;
  grid-template-columns: 0.5fr 1.2fr 2fr;
  gap: 20px;
}
.footer-wrap * {
  font-weight: 700 !important;
}
.footer-wrap .footer-nav > ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  grid-auto-rows: 40px;
  gap: 20px;
  margin-bottom: 0;
  padding-left: 0;
}
.footer-wrap h4 {
  margin: 0;
}
footer .footer-contacts-wrap > .footer-contacts {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}
footer .footer-contacts-wrap > .footer-contacts > .contact {
  display: flex;
  gap: 15px;
  align-items: center;
}

footer .footer-contacts-wrap > .footer-contacts > .contact > .phones-data-wrap {
  display: grid;
  gap: 10px;
}
footer
  .footer-contacts-wrap
  > .footer-contacts
  > .contact
  > .phones-data-wrap
  a {
  font-family: "Montserrat", sans-serif !important;
}
footer
  .footer-contacts-wrap
  > .footer-contacts
  > .contact
  > .phones-data-wrap
  p {
  overflow-wrap: break-word;
}
footer .adress-data {
  display: grid;
  gap: 10px;
}
footer .footer-social {
  display: flex;
  gap: 20px;
}
footer .footer-social > a {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  border: 1px solid #fff;
  padding: 10px;
  margin-top: 20px;
  transition: all 0.3s ease;
}
footer .footer-social > a:hover {
  border-color: #54a029;
}
footer .footer-social > a > svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  fill: #fff;
}
footer .footer-social > a:hover > svg {
  fill: #54a029;
}
.menu_mobile_widgets_area {
  display: none !important;
}
.menu_mobile.opened .menu_mobile_close .menu_button_close_text {
  display: none !important;
}
/*======Новини==============*/
.new-grid {
  display: grid;
  gap: 40px;
}
.new-grid-item {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-auto-rows: minmax(400px, auto);
  gap: 40px;
  border-bottom: 4px solid red;
  padding: 40px 0;
}
.new-grid-item:nth-child(even) {
  grid-template-columns: 1fr 2fr;
}
.new-grid-item:nth-child(even) .new-grid-item_content {
  order: 2;
}
.new-grid-item .new-grid-item_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.new-grid-item h2 {
  color: red;
  font-weight: bold;
  font-size: 2.5rem;
  line-height: 1;
  margin: 0;
}
.new-grid-item_content p {
  margin-bottom: 0;
}
.new-grid-item_content {
  display: grid;
  gap: 20px;
}
.new-grid-item_content .post-content p {
  font-size: 1.3rem;
  line-height: 1.5;
}
.new-grid-item_content .more-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 40px;
  background-color: #54a029;
  color: #fff;
  width: 220px;
  max-width: 100%;
  height: 50px;
}
.new-grid-item_content .more-btn:hover {
  background-color: #346d13;
}
.post-content.single-post {
  display: grid;
  grid-template-rows: 500px auto;
  gap: 40px;
}
.post-content.single-post .post-content-img {
  display: flex;
  justify-content: center;
  /* background-color: #ffffff99; */
}
.post-content.single-post .post-content-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.post-content .post-content-text p {
  font-size: 1.3rem;
  line-height: 1.5;
}

.more-news {
  margin-top: 40px;
}
.more-news h2 {
  color: red;
  font-size: 2.5rem;
  font-weight: 700;
}
.more-news-grid {
  display: grid;
  grid-template-columns: repeat(
    3,
    1fr
  ); /*repeat(auto-fit, minmax(calc(100% / 4 - 20px), 1fr));*/
  gap: 40px;
  margin-top: 40px;
}

.more-news-grid-item {
  display: grid;
  color: #fff;
  transition: transform 0.3s ease;
  overflow: hidden;
}
.more-news-grid-item:hover {
  color: #fff;
  transform: scale(1.05);
}
.more-news-grid-item h3 {
  font-size: 2rem;
  color: #54a029;
  font-weight: 700;
}
.more-news-grid-item .image-wrap {
  height: 300px;
  width: 100%;
}

.more-news-grid-item .image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*==========Media==============*/
@media (max-width: 1279px) {
  .footer-nav .widget_custom_links .custom_links_list {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    row-gap: 20px;
    margin-top: 10px;
  }
  .footer-nav
    .widget_custom_links
    ul.custom_links_list
    .custom_links_list_item
    + .custom_links_list_item {
    margin-top: 0 !important;
  }
}
@media (max-width: 1200px) {
  /* .body_wrap > .page_wrap > header::before {
    content: "";
    background-color: #fff;
    height: 3px;
    width: 98%;
    display: block;
    position: absolute;
    top: 140px;
    left: 0.4%;
  } */
  .category-grid {
    grid-template-columns: repeat(2, calc(50% - 20px));
  }
  .grid-item > .grid-item__title {
    width: 100%;
  }
  .map-wrap {
    grid-template-columns: 1fr;
    grid-template-rows: auto 600px;
    height: auto;
  }
  .stores-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    padding: 10px;
    max-height: 400px;
  }
  #storesMap {
    border-top: 1px solid black;
  }
  .upadate-button {
    top: auto;
    bottom: 10px;
    left: calc(50% - 80px);
  }
}
@media (max-width: 1100px) {
  .footer-wrap {
    grid-template-columns: 1fr 2fr;
    grid-template-rows: repeat(2, auto);
  }
  .footer-contacts-wrap {
    grid-column-start: 1;
    grid-column-end: 3;
  }
  footer .footer-contacts-wrap > .footer-contacts {
    grid-template-columns: 1fr 0.5fr 2fr;
  }
}
@media (max-width: 960px) {
  .new-grid-item {
    grid-template-columns: 1fr 1fr;
  }
  .new-grid-item:nth-child(even) {
    grid-template-columns: 1fr 1fr;
  }
  .new-grid-item .new-grid-item_img img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}
@media (max-width: 910px) {
  .footer-main {
    display: grid;
    gap: 20px;
    padding: 20px 0;
  }
  .contact-item {
    grid-template-columns: 1.2fr 2fr;
  }
  footer .footer-contacts-wrap > .footer-contacts {
    display: flex;
    flex-wrap: wrap;
  }
  footer .footer-contacts-wrap > .footer-contacts > .contact.adress {
    order: 1;
    width: calc(30% - 10px);
  }
  footer .footer-contacts-wrap > .footer-contacts > .contact.email {
    order: 3;
  }
  footer .footer-contacts-wrap > .footer-contacts > .contact.phones {
    order: 2;
    width: calc(70% - 10px);
  }
}

@media (max-width: 820px) {
  .product-item_data {
    grid-template-columns: 1fr;
  }
  .product-item:nth-child(even) > div.product-item_data {
    grid-template-columns: 1fr;
  }
  .product-item:nth-child(even) > div > div:first-child {
    grid-template-columns: 1fr;
    order: 1;
  }
  .product-item:nth-child(even) > div > div:last-child {
    grid-template-columns: 1fr;
    order: 2;
  }
}

@media (max-width: 813px) {
  .contact-item {
    grid-template-columns: repeat(auto-fit, minmax(122px, 1fr));
  }
  .more-news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
  }
}
@media (max-width: 799px) {
  /* .body_wrap > .page_wrap > header::before {
    display: none;
  } */
  .footer-wrap {
    grid-template-columns: 0.5fr 2fr;
  }
  /* footer .footer-contacts-wrap > .footer-contacts > .contact.adress {
    width: calc(35% - 10px);
  }

  footer .footer-contacts-wrap > .footer-contacts > .contact.phones {
    width: calc(65% - 10px);
  } */
}
@media (max-width: 767px) {
  .category-grid {
    grid-template-columns: repeat(1, 100%);
    gap: 20px;
  }
  .grid-item {
    grid-template-rows: 1fr auto;
    gap: 20px;
  }
  .product-item > h4 {
    font-size: 2rem;
  }
  .link-wrap {
    margin-bottom: 20px;
  }
}
@media (max-width: 729px) {
  .footer-contacts {
    column-gap: 30px;
  }
  footer .footer-contacts-wrap > .footer-contacts > .contact.adress {
    width: 40%;
  }
  footer .footer-contacts-wrap > .footer-contacts > .contact.email {
    order: 2;
  }
  footer .footer-contacts-wrap > .footer-contacts > .contact.phones {
    order: 3;
    width: 100%;
  }
  .contact-item.ci-footer {
    grid-template-columns: 1.55fr 2.5fr;
  }
  .post-content.single-post {
    grid-template-rows: 300px auto;
    gap: 20px;
  }
}
@media (max-width: 699px) {
  footer .footer-contacts-wrap > .footer-contacts > .contact.adress {
    width: 100%;
  }
  .contact-item.ci-footer {
    grid-template-columns: 1fr 2.5fr;
  }
  .new-grid {
    gap: 20px;
  }
  .new-grid-item:nth-child(even) .new-grid-item_content {
    order: 2;
  }
  .new-grid-item:nth-child(even) .new-grid-item_img {
    order: 1;
  }
  .new-grid-item:nth-child(odd) .new-grid-item_content {
    order: 2;
  }
  .new-grid-item:nth-child(odd) .new-grid-item_img {
    order: 1;
  }
  .new-grid-item {
    grid-template-columns: 1fr;
    grid-template-rows: 300px auto;
    grid-auto-rows: auto;
    padding: 20px 0;
  }
  .new-grid-item:nth-child(even) {
    grid-template-columns: 1fr;
  }
  .new-grid-item .new-grid-item_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (max-width: 599px) {
  .footer-wrap {
    display: block;
  }
  .footer-nav {
    margin: 30px 0;
  }
  .footer-wrap .footer-nav > ul {
    grid-auto-rows: auto;
  }
}
@media (max-width: 519px) {
  .contact-item.ci-footer {
    gap: 10px;
  }
  .post-content.single-post {
    grid-template-rows: 300px auto;
    gap: 20px;
  }
  .more-news-grid {
    grid-template-columns: 1fr;
  }
  .more-news-grid-item .image-wrap {
    height: 200px;
    width: 100%;
  }
}
@media (max-width: 449px) {
  .contact-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 419px) {
  footer
    .footer-contacts-wrap
    > .footer-contacts
    > .contact
    > .phones-data-wrap {
    gap: 20px;
  }
  .contact-item.ci-footer {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
