*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.img{
    width: 300px;
    height: 200px;
    
}

body{
    min-height: 200vh;
    background-image: url(./black-bowl-with-pasta-dark-plate.jpg);
    background-size: 200vh;
    background-repeat: no-repeat;
    background-position: right;
    background-attachment: fixed;
}
main{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    background-color: #000000;


}

select, input{
    width: 150px;
    height: 40px;
    color: white !important;
    background-color: black;
    border-radius: 10px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
select::backdrop{
    cursor: pointer;
}
.cont{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 120px;
    margin-bottom: 30px;

}
.card{
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    transition: transform 0.5s ease-in-out;
    background-image: url(https://media.istockphoto.com/id/185005145/ru/%D1%84%D0%BE%D1%82%D0%BE/%D1%82%D0%B5%D0%BC%D0%BD%D1%83%D1%8E-%D1%82%D0%B5%D0%BA%D1%81%D1%82%D1%83%D1%80%D1%83-%D1%84%D0%BE%D0%BD%D0%B0-%D1%87%D0%B5%D1%80%D0%BD%D1%8B%D0%B9-%D1%82%D0%BA%D0%B0%D0%BD%D1%8C.jpg?s=612x612&w=0&k=20&c=r9MwlDiPKMvlDWVIMwsBjSpqealIXWGlAG_XLqnvJkw=) !important;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid white !important;
    border-radius: 10px ;
    overflow: hidden;
    gap: 5px;
}
.card-content{
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    width: 100%;
}
.card-buttons{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;

}
.card-buttons input{
    width: 40px;
    height: 40px;
    color: white !important;
    background-color: black !important;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
    height: 35px;
    border: 1px solid white;
    padding-left: 3px;
    
}
.card-buttons input:hover{
    border-color: rgb(0, 255, 13) !important;
    color: rgb(0, 255, 13) !important;
    transition: 500ms;
}
a,h1,h2,h3,h4,h5,h6,p,span,select,textarea,option,button,input{
    color: white !important;
    text-decoration: none !important;
    font-family: "Quintessential", serif !important;
    font-weight: 400 !important;
    font-style: normal !important;
    font-size: 20px;
}
.card-content h3{
    font-size: 24px !important;
    color: rgb(255, 174, 0) !important;
    height: 20px;
}
.card-back img, .card img{
    width: 280px;
    height: 280px;
}
h6{
    color: rgb(51, 255, 0) !important;
}
.btn{
    color: white !important;
    border-color: white !important; 
    background-color: black !important;
    width: 145px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
}
.btn:hover{
    color: rgb(0, 255, 13) !important;
    transition: 500ms;
    border-color: rgb(0, 255, 13) !important;
}
h1,.logo{
    font-size: 72px !important;
    margin: 100px !important;
    
}
.resetFilter{
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgb(165, 165, 165);
    width: 45px;
    height: 40px;
    color: white;
    background-color: black;
    border-radius: 10px;
    align-items: center;
    cursor: pointer;
}
.mainBsktBtn{
    position: fixed;
    top: 50%;
    right: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgb(165, 165, 165);
    width: 45px;
    height: 40px;
    color: white;
    background-color: black;
    border-radius: 10px;
    cursor: pointer;
    z-index: 1111111;
}
.fillterCont{
    border: solid 1px black;
    background-color: rgba(128, 128, 128, 0.021);
    height: 150px;
    width: 100%;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-bottom:300px;
}
.basket{
    overflow-y: auto;
    position: fixed;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    background-color: white;
    border: 1px solid white;
    height: 99vh;
    width: 30%;
    top: 5px;
    bottom: 5px;
    background-image: url(./black-bowl-with-pasta-dark-plate.jpg);
    background-size: auto;
    background-repeat: no-repeat;
    background-position: cover;
    overflow-y: scroll;
    overflow-x: hidden;
    z-index: 100;
    border-radius: 10px;
    right: -100%;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    transition: right 0.7s ease-in-out;
}
.basket p{
    color: white;
}
.product-basket{
    width: 200px;
    height: 200px;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    padding: 5px;
    margin: 5px !important;
    border-radius: 5px;
    border: 1px solid rgb(37, 37, 37);
}
#close-basket{
    display: none;
    cursor: pointer;
    border-radius: 50%;
    z-index: 111;
    position: relative;
    top: 70px;
    left: 192px;
}
.remove-product{
    cursor: pointer;
    margin-top: 15px;
    border: solid 1px white;
    border-radius: 50%;
    width: 32px;
    height: 32px;

}
.stage{
    height: 350px;
    width: 250px;
    margin-left: auto;
    margin-right: auto;
}
.p{
  font-size: 35px;
  text-align: center;
  margin-top: 0;
  cursor: pointer;
  width: 100%;
  background: #000000;
  border-radius: 10px;
  font-family: Century Gothic;
  letter-spacing: 5px;
}
.div{
  margin-left: auto;
  margin-right: auto;
  border-radius: 10px;
  width: 200px;
  height: 40px;
  margin-top: 4%;
 transition-duration: 0.2s;

}
.p:hover{
  background: rgb(255, 0, 0);
  color: black;
}
.div:nth-child(odd){
  transform: perspective(300px) rotateY(45deg);
  box-shadow: -2px 2px 7px gray;
}
.div:nth-child(even){
  transform: perspective(300px) rotateY(-45deg);
    box-shadow: 2px 2px 7px gray;
}
.div:hover{
  transform: rotateY(0);
  background: white;
  color: rgb(255, 0, 0);
  box-shadow: 0px 0px 0px;
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #000000 !important;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background-color: #ffffff;
  border-radius: 10px;
  border: 1px solid #000000;
}
::-webkit-scrollbar-thumb:hover {
  background-color: #ff0000;
}
.card-back{
    width: 300px;
    height: 480px !important;
    background-image: url(https://media.istockphoto.com/id/185005145/ru/%D1%84%D0%BE%D1%82%D0%BE/%D1%82%D0%B5%D0%BC%D0%BD%D1%83%D1%8E-%D1%82%D0%B5%D0%BA%D1%81%D1%82%D1%83%D1%80%D1%83-%D1%84%D0%BE%D0%BD%D0%B0-%D1%87%D0%B5%D1%80%D0%BD%D1%8B%D0%B9-%D1%82%D0%BA%D0%B0%D0%BD%D1%8C.jpg?s=612x612&w=0&k=20&c=r9MwlDiPKMvlDWVIMwsBjSpqealIXWGlAG_XLqnvJkw=) !important;
    padding: 15px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid white !important;
    border-radius: 10px ;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: rotateY(180deg);
    display: flex;
}
.card-back .card-content{
    display: flex;
    gap: 40px;
}
.card-back .card-content p{
    color: white;
    font-size: 20px;
    font-family: Century Gothic;
    letter-spacing: 3px;

}

.card-back button{
    background-color: black;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease;
    font-size: 15px;
    font-family: Century Gothic;
    letter-spacing: 2px;
    margin-bottom: 25px;
    border: 1px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    &:hover{
        color: rgb(0, 255, 13) !important;
        border-color: rgb(0, 255, 13);
        transition: 0.7s;
        
    }
}
.basket-visible {
    right: 0;
}
.change-quan{
    padding-left: 5px;
    width: 50px;
    height: 40px;
    background-color: black;
    color: white;
    border: 1px solid white;
    &:hover{
        color: rgb(0, 255, 13) !important;
        border-color: rgb(0, 255, 13);
        transition: 0.7s;
        
    }
}
.btn-change{
    width: 100px;
    background-color: black;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: Century Gothic;
    letter-spacing: 2px;
    border: 1px solid rgb(255, 255, 255);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    height: 40px;
    &:hover{
        color: rgb(0, 255, 13)!important;
        border-color: rgb(0, 255, 13);
        transition: 0.7s;
        
    }
}
footer {
    background-color: black;
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
}

.footer-info,
.footer-map,
.social-links {
    max-width: 300px;
}

h3 {
    color: rgb(255, 174, 0);
    margin-bottom: 10px;
}

p {
    font-size: 16px;
    margin-bottom: 8px;
}

.social-links a {
    color: white;
    font-size: 24px;
    margin: 0 10px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: rgb(0, 255, 13);
}

.footer-rights {
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.7;
}

iframe {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-info,
    .footer-map,
    .social-links {
        text-align: center;
    }

    iframe {
        width: 90%;
        height: 200px;
    }
}
.main-card {
    perspective: 1000px;
    position: relative;
    width: 300px;
    height: 480px;
}
.card-front {
    transform: rotateY(0deg);
}

.flip .card-front {
    transform: rotateY(-180deg);
}

.flip .card-back {
    transform: rotateY(0deg);
}
.basket {
    overflow-y: auto;
    position: fixed;
    display: flex;
    background-color: white;
    border: 1px solid white;
    height: 99vh;
    width: 30%;
    top: 5px;
    bottom: 5px;
    right: -100%;
    transition: right 0.7s ease-in-out;
    z-index: 1000;
    padding: 20px;
}
@media (max-width: 1024px) {
    .basket {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .basket {
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100vh;
        top: 0;
        bottom: 0;
        right: -100%;
        padding: 15px;
        border-radius: 0;
        box-shadow: none;
    }
}
.basket-visible {
    right: 0;
}
#cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: red;
    color: white;
    font-size: 14px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
