/* up */

html{
  box-sizing: border-box;
}

*,
*::after,
*::before{
  box-sizing: inherit;
}

a{
  color: #706F6F;
  text-decoration: none;
}

ul{
  list-style-type: none;
}

button{
  background-color: transparent;
  padding: 0;
  border: 0;
  cursor: pointer;
}

.menu__link:hover{
  color: #f14f1e;
}

.container{
  max-width: 1220px;
  padding: 0 10px;
  margin: 0 auto;  
}

body{
  font-family: "Oxanium", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  color: #706F6F;
  background:  #706F6F;
}

/* сам сайт */
section{
  padding: 4rem 0 3rem;
  margin-bottom: 100px;
}

.pict {
  font-size: 40px;
  color: #5d4848;
  font-weight: 600;
  font-family: 'Quicksand', sans-serif;
}

#cart-icon {
  position: relative;
  font-size: 1.8rem;
  cursor: pointer;
}

#cart-icon[data-quantity="0"]::after{
  contain: '';
}

#cart-icon[data-quantity]::after{
  content: attr(data-quantity);
  position: absolute;
  top: 0;
  right: -12px;
  width: 20px;
  height: 20px;
  background: #FF3333;
  border-radius: 50%;
  color: #faebd7;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cart{
  position: fixed;
  right: 10px;
  top: -120%;
  width: 360px;
  max-height: 100%;
  padding: 20px;
  background:  #28292D;
  box-shadow: -2px 0 4px hsl(0, 4%, 15% / 10%);
  transition: 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
  border-radius: none;
  border: 1px solid #000;
  z-index: 999;
}

.cart.active {
  top: 20px;
  transition: 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
  z-index: 999;
  color: #706F6F;
}

.cart-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
color: #706F6F;
}

.total {
  display: flex;
  justify-content: flex-end;
  margin: 1.5rem;
  border-top: 1px solid #fff;
  color: #706F6F;
}

.total-title{
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 1rem;
}

.total-price{
  font-size: 1.075rem;
  margin: 1rem 0 0 0.7rem;
}

.btn-buy{
  display: flex;
  justify-content: center;
  margin: 1.5rem auto 0 auto;
  padding: 12px 20px;
  width: 50%;
  text-align: center;
  border: 1px solid  #000;
  background: #272937;
  color: #706F6F;
  font-size: 1rem;
  font-style: italic;
  font-weight: 500;
  cursor: pointer;
  transition: 0.5s;
}

.btn-buy:hover{
  background: #f14f1e;
  color: #5d4848;
}

#close-cart{
  position: absolute;
  top: 1rem;
  right: 0.8rem;
  font-size: 2rem;
  color: #000;
  cursor: pointer;
}

.cart-box{
  display: grid;
  grid-template-columns: 32% 50% 18%;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.cart-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  object-position: center;
  padding: 10px;
}

.detail-box {
  display: grid;
  row-gap: 0.5rem;
}

.cart-product-title{
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
}

.cart-price {
  font-weight: 500;
}

.cart-quantity{
  border: 1px solid #f14f1e;
  outline-color: #5d4848;
  background: transparent;
  width: 2.8rem;
  text-align: center;
  font-size: 1rem;
  border-radius: 4px;
}

.cart-remove{
  font-size: 24px;
  color: #000;
  cursor: pointer;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.8rem;
}


.shop-content{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, auto));
  gap: 1.5rem;
}

.product-box {
  position: relative;
  background:  #28292D;
  padding: 20px;
  transition: 0.4s cubic-bezier(0.075, 0.82, 0.165, 1);
  border: 1px solid #000;
}

.product-box:hover{
  border: 5px solid  #272937;
  box-shadow: 0 14px 46px #fff;
  transition: 0.5s
}

.heading {
  text-align: center;
  margin-bottom: 2rem;
  color:  #28292D;
  font-size: calc(12px + (16 - 12) * ((200vw - 200px) / (1600 - 700)));
  font-family: "Oxanium", sans-serif;
  font-weight: 400;
  margin-top: 100px;
}

.product-img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 0.5rem;
}

.product-title{
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.price{
  font-weight: 500;
}

.add-cart {
  position: absolute;
  text-align: center;
  left: 60px;
  bottom: 10px;
  background: #706F6F;
  color: #404040 ;
  padding: 10px;
  font-size: 1.2rem;
  cursor: pointer;
  width: 70%;
  transition: 0.5s;
}

.add-cart:hover{
  background:  #C0C0C0;
}

.contain{
  max-width: 1220px;
  padding: 0 10px;
  margin: 0 auto;  
}

.header {
  margin-bottom: 90px;
  background:  #272937;
}

.header__inner{
  display: flex;
  justify-content: space-between;
  padding-top: 30px;
}

/* footer */

.footer{
  background-color: #272937;
  padding: 66px 0 100px;
  margin-top: 100px;
}

.footer__top{
  margin-bottom: 70px;
  display: flex;
  gap: 0 70px;
  justify-content: space-between;
}

.footer__logo{
  margin-right: 10px;
}

.footer__items{
  flex-basis: 387px;
}

.footer__item + .footer__item{
  margin-top: 70px;
}

.footer__item-title{
  text-transform: uppercase;
  margin-bottom: 10px;
}

.footer__item-form{
  position: relative;
}

.footer__item-input{
  font-family: "Oxanium", sans-serif;
  font-weight: 400;
  width: 100%;
  display: block;
  padding: 10px 0;
  border: none;
  border-bottom: 1px solid #000;
  background-color:  #272937;
  margin-bottom: 5px;
}

.footer__item-input::placeholder{
  font-family: "Oxanium", sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #fff;
  opacity: 0.4;
}

.footer__img{
  max-width: 100%;
  height: 100%;
}

.footer__item-btn{
    position: absolute;
    color: #706F6F;
    text-transform: uppercase;
    font-weight: 700;
    padding: 10px 25px;
    border: 1px solid #000;
    transition: 0.5s;
    background-color:  #28292D;
    display: inline-block;
  }
  
  .footer__item-btn:hover{
    background: #272937;
    color: #fff;
  }


.footer__item-link{
  display: block;
  padding-top: 10px;
}

.footer__social-list{
  margin-left: -40px;
  align-self: flex-end;
  margin-right: 120px;
}

.footer__nav{
  display: flex;
  justify-content: flex-end;
}

.footer__nav-list{
  display: flex;
  gap: 0 10px;
  margin-right: 5px;
  font-size: 10px;
}
