@import './base.css';
@import './base.css';

@font-face {
  font-family: 'Jost';
  src: url("./Jost/Jost-VariableFont_wght.ttf");
}

body {
    font-family: Jost, serif;
    background-color: #fff;
    color: #2c3e50;
}
input {outline:none;}

.page_main_block{
  width: 1280px;
  margin: 0 auto;
  padding-top: 20px;
}

.main_page_line{
  background: url("public/assets/img/main_page_baground_line.svg") no-repeat;
  background-position-x: calc(50% - 230px);
}

.page_main_block_h2{
  font-size: 30px;
  font-weight: 700;
  text-align: center;
  margin: 30px auto;
}

.main_block_list{
  display: grid;
  grid-template-columns: 23% 23% 23% 23%;
  column-gap: 34px;
}
.product_index{
  display: table-cell;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 30px;
  width: 100vh;
}
.product_index img{
  width: 100%;
  margin-bottom: -7px;
  transition: all 1s ease;
}
.product_index > div > img{
    height: 280px;
    object-fit: cover;
}
.product_index div{
  position: relative;
}

.product_index:hover > div > img{
  -webkit-filter: brightness(60%);
  -webkit-transition: all 1s ease;
  -moz-transition: all 1s ease;
  -o-transition: all 1s ease;
  -ms-transition: all 1s ease;
  transition: all 0.5s ease;
}

.product_index_title{
  font-size: 16px;
  background-color: #F5F2EA;
  padding: 10px;
  transition: all 0.9s ease;
}
.decorate_block_1{
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  bottom: 0;
  transition: all 0.5s ease;
}
.decorate_block_2{
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  transition: all 0.5s ease;
}
.product_index:hover > div > .decorate_block_1{
  border: 1px solid #F5F2EA;
  width: 90%;
  height: 75%;
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
  left: 0;
  margin: 0 auto;
  vert-align: middle;
  transition: all 0.5s ease;
}
.product_index:hover > div > .decorate_block_2{
  border: 1px solid #F5F2EA;
  width: 75%;
  height: 90%;
  position: absolute;
  z-index: 2;
  top: 10%;
  transform: translateY(-5%);
  right: 0;
  left: 0;
  margin: 0 auto;
  vert-align: middle;
  transition: all 0.5s ease;
}
.product_index:hover > .arr_right{
  display: block;
  opacity: 1;
  transition: 0.3s;
  margin-left: 0px;
}
.product_index:hover > .product_index_title{
  background-color: #D0C7C2;
}
.arr_right{
  position: absolute;
  color: #F5F2EA;
  width: 20px;
  height: 20px;
  font-size: 35px;
  margin-left: -50px;
  top: 50%;
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  opacity: 0;
  z-index: 5;
}
.catalog_page_slider{
  width: 100%;
  margin: 0 auto;
  padding-top: 20px;
  padding-bottom: 20px;
  background-image: url("public/assets/img/cat_block3_background.png");
}

.new_product_index{
  display: table-cell;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  padding-bottom: 20px;
  transition: 0.5s;
  border: 1px solid rgba(74, 51, 45, 0);
}
.new_product_index:hover{
  border: 1px solid rgba(74, 51, 45, 1);
}

.new_product_index img{
  width: 100%;
  margin-bottom: -7px;
  transition: all 1s ease;
  height: 370px;
  object-fit: cover;
}
.new_product_index div{
  position: relative;
}

.new_product_index_title{
  font-size: 15px;
  padding: 10px;
  margin: 10px;
}

.new_product_index_title > p{
  font-weight: 700;
}

.new_product_index_button_border1{
  background-color: #F5F2EA;
  border: 1px solid #4A332D;
  padding: 10px 0px;
  width: 200px;
  margin: 0 auto;
  transition: 0.8s;
}
.new_product_index_button_border2{
  background-color: #F5F2EA;
  border: 1px solid #4A332D;
  padding: 0px 10px;
  margin-left: -6%;
  width: 112%;
  transition: 0.5s;
}
.new_product_index_button{
  background-color: #F5F2EA;
  border-top: none;
  border-bottom: none;
  border-left: 1px solid #4A332D;
  border-right: 1px solid #4A332D;
  width: 100%;
  height: 50px;
  cursor: pointer;
  color: #434242;
  font-size: 18px;
  font-weight: 600;
  transition: 0.3s;
}

.new_product_index_button_border1:hover{
  background-color: #4A332D;
  border: 1px solid #F5F2EA;
}

.new_product_index_button_border1:hover > .new_product_index_button_border2{
  background-color: #4A332D;
  border: 1px solid #F5F2EA;
}

.new_product_index_button_border1:hover > div > .new_product_index_button{
  background-color: #4A332D;
  border-left: 1px solid #F5F2EA;
  border-right: 1px solid #F5F2EA;
  color: #F5F2EA;
}


.carousel__item{
  margin: 10px;
}
.slider_block{
  width: 1280px;
  margin: 0 auto 10px auto;
  position: relative;
}

.block_url{
  font-size: 22px;
  color: #4A332D;
  border-bottom: 1px solid #4A332D;
  width: auto;
  display: inline-block;
  position: absolute;
  right: 0;
  top: -75px;
  text-decoration: none;
  font-weight: 700;
}

.news_index{
  display: table-cell;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  padding-bottom: 20px;
  transition: 0.5s;
  border: 1px solid rgba(74, 51, 45, 0);
  margin-bottom: 50px;
}

.news_index img{
  width: 100%;
  margin-bottom: -7px;
  transition: all 1s ease;
  height: 300px;
  object-fit: cover;
}

.news_index button{
  width: 100%;
  padding: 10px;
  border: none;
  cursor: pointer;
  background-color: #D0C7C2;
  color: #4A332D;
  font-weight: 500;
  transition: 0.3s;
}

.news_index:hover button{
  background-color: #4A332D;
  color: #D0C7C2;
}
.news_date{
  margin-top: 10px;
}

.news_description_block{
  border-top: 1px solid #434242;
  margin-top: 10px;
  padding-top: 10px;
  height: 110px;
  overflow: hidden;
}
.novetly_main_block{
  display: grid;
  grid-template-columns: 31% 31% 31%;
  column-gap: 45px;
  row-gap: 45px;
  width: 1280px;
}

.block_actions{
  width: 100%;
  padding: 20px;
}
.block_actions_second{
  margin: 0 auto;
  width: 1280px;
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
}
.block_actions_left_child{
  width: 49%;
}

.block_actions_left_child > img{
  width: 100%;
  height: 372px;
}

.block_actions_right_child{
  width: 49%;
  margin-left: 2%;
  position: relative;
}

.block_actions_right_child > .new_product_index_button_border1{
  position: absolute;
  bottom: 0;
  right: 0;
}

.block_actions_right_child > h4{
  color: #434242;
  font-weight: 700;
  font-size: 22px;
}

.main_block_actions{
  margin-top: 50px;
  margin-bottom: 50px;
}

.main_block_actions .block_actions:nth-child(odd){
  background-image: url("public/assets/img/cat_block3_background.png");
}

.page_with_sidebar{
  display: flex;
  align-content: space-between;
}
.left_sidebar_block{
}
.right_sidebar_block{
  width: 100%;
  margin-left: 20px;
  margin-top: -25px;

}



.block_news_left_child{
    width: 30%;
}
.block_news_right_child{
    width: 69%;
    margin-left: 2%;
    position: relative;
}

.block_news_left_child > img{
    width: 100%;
    height: auto;
}


.cart_table{
  width: 100%;
  border-spacing:0;
  border-collapse: collapse;
}
.cart_table > tbody > tr{
  background-color: #F5F2EA;
  text-align: center;
  border-bottom: 5px solid #fff;
  transition: 0.3s;
}
.cart_table > tbody > tr:hover{
  background-color: #faf8f2;
}
.cart_table > tbody > tr > td{
  padding: 30px;
}
.cart_table > tbody > tr > td > img{
  width: 15px;
  cursor: pointer;
  transition: 0.3s;
}
.cart_table > tbody > tr > td > img:hover{
  filter: invert(50%);
}

.catalog-link{
  text-decoration: none;
  color: #2c3e50;
  margin-bottom: 30px;
}
