General Styles
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

#preloader {
  position: fixed;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 1s ease-out;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color:white;
}


.logo {
  display: flex;
  animation: fadeIn 1s ease-in-out;
  justify-content: flex-start;
}
.logo img{
  width: 90px;
  height: 90px;
  border-radius: 100px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color:white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  
}

.menu-toggle {
  font-size: 24px;
  cursor: pointer;
  display: none;
  z-index: 1001;
  right: 0;
 
}

#close-icon {
  display: none; 
}


.navigation {
  display: flex;
  align-items: center;
  position: relative;
  justify-content: space-between;
  text-align: center;
  gap: 35px;
  height: 100%;
  color: #000;
}

.navigation.active {
  position: fixed;
  top: 0;
  right: 0;
  width: 250px;
  height: 100vh;
  background-color: white;
  box-shadow: 2px 0px 5px rgba(0, 0, 0, 0.2);
  flex-direction: column;
  padding: 20px;
  animation: slideIn 0.5s ease-in-out;
}

.nav-link{
  display: flex;
  align-items: center;
  gap: 30px;
  flex-grow: 1;
  display: flex;
}

nav ul li a {
text-decoration: none;
color: black;
font-weight: 500;
}

.nav-link li {
display: inline;
text-decoration: none;
color: black;
font-weight: bold;
}

.nav-link a {
text-decoration: none;
color: black;
font-size: 18px;
font-weight: bold;
transition: all 0.3s ease-in-out;
position: relative;
padding: 5px 0;
}

.nav-link a::after {
content: "";
width: 0;
height: 3px;
background: linear-gradient(90deg, #D63384, #ff85b6);
position: absolute;
left: 50%;
bottom: -5px;
transition: width 0.4s ease, left 0.4s ease;
border-radius: 2px;
}

.nav-link a:hover::after {
width: 100%;
left: 0;
}

.nav-link a:hover {
color: #D63384;
}



.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

@keyframes slideIn {
  from {
    right: -320px;
    opacity: 0;
  }
  to {
    right: 0;
    opacity: 1;
  }
}



.breadcrumb {
  margin: 20px;
  font-size: 14px;
  color: gray;
  display: flex;
  gap:10px;
}
.breadcrumb a{
  text-decoration: none;
  color: black;
}
.breadcrumb span{
  color: black;
}

.product-container {
  display: flex;
  gap: 10px;
  padding: 20px;
  margin: 5px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#main-img{
  width: 22rem;
  height: 350px;
  border-radius: 50px 10px 50px 30px;
  object-fit: fill;
}
.thumbnail-container {
  display: flex;
  gap: 19px;
  margin-top: 10px;
}
.thumbnail-container img{
  width: 70px;
  border-radius: 50px 10px;
}

.thumbnail {
  width: 30px;
  cursor: pointer;
  border: 2px solid transparent;
}

.thumbnail:hover {
  border: 2px solid #d10a42;
}


.product-info {
  flex: 1;
  border-radius: 10px;

}
.description{
  margin-left: 10px;
  font-size: 10px;
}

.product-info h2 {
  font-size: 20px;
  margin-bottom: 10px;
  margin-left: 10px;
}


.price {
  font-size: 22px;
  font-weight: bold;
  margin-left: 10px;
}


.old-price {
  position: absolute;
  text-decoration: line-through;
  color: gray;
  -webkit-animation: mover 1s infinite alternate;
  animation: mover 1s infinite alternate;
}

.new-price {
  color: #d10a42;
  -webkit-animation: mover 1s infinite alternate;
  animation: mover 1s infinite alternate;
  margin-left: 60px;
}
@-webkit-keyframes mover{
  0%{
    transform: translateX(0);
    transform: translateY(-120deg);
  }
  100%{
    transform: translateX(-10px);
    transform: translateY(-120deg);
  }
}

.rating {
  margin: 10px 10px;
}

.buttons {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  color: #ffffff80;
  text-shadow: none;
  background: transparent;
  box-shadow: transparent;
  border: 1px solid #ffffff80;
  transition: 0.5s ease;
}

.buy-btn, .cart-btn {
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  border-radius: 10px;
  
}

.buy-btn {
  margin: 0.5em;
  background: whitesmoke;
  color: black;
  border: 1px solid grey;
}

.cart-btn {
  margin: 0.5em;
  background: black;
  color: #eee;
  border: none;
  border-radius: 0.625em;
  position: relative;
  z-index: 1;
  overflow: hidden;

}
.cart-btn:hover{
  color: #e73c7e;
}
.cart-btn::after{
  content: "";
  background: #ff6f61;
  position: absolute;
  z-index: -1;
  left: -20%;
  right: -20%;
  top: 0;
  bottom: 0;
  transform: skewX(-45deg) scale(0,1);
  transition: all 0.5s;
}
.cart-btn:hover::after{
  transform: skewX(-45deg) scale(1,1);
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
}

.buy-btn:hover,.buy-btn:focus{
  color: #ffffff;
  background: #f86a92;
  border: 1px solid #f86a92;
  text-shadow: 0 0 2px #ffffff,0 0 5px #ffffff,0 0 10px #ffffff;
  box-shadow: 0 0 1px #f86a92,0 0 1px #f86a92,0 0 5px #f86a92,0 0 5px #f86a92;
}

.box1 h1{
  font-size: 24px;
  margin-left: 30px;
}
.social-media h2{
  font-size: 24px;
  margin-left: 30px;
}

.social-media i{
  margin-left: 40px;
  font-size: 20px;
}

.media{
  display: flex;
}

.social-media .fa-brands{
  color:black;
}

.share-btn i:hover{
  color: green;
}

.share-btn .fa-instagram:hover{
  color: rgb(252,175, 69);
}

.para-details{
 padding: 20px;
}

.para-details p{
  margin-left: 10%;
}

.recommendation{
  margin: 20px;
  margin-top: 5%;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.recommendation h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

.direction{
  text-align: center;
}
.direction button{
  font-family: cursive;
  font-weight: bold;
  background-color: #ffffff44;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: 0.5s;
  margin: 0 10px;
  cursor: pointer;
}
.direction button:hover{
  background-color: #ffffff;
}
.item{
  overflow: hidden;
  transition: 0.5s;
  margin: 10px;
  scroll-snap-align: start;
}

.item .avatar{
  display: block;
  margin: 0 10px;
  width: 100px;
  height: 150px;
  object-fit: cover;
  border-radius: 20px;
  cursor: pointer;
}

.item h1{
  font-size: 16px;
  font-weight: bold;
  margin-left: 20px;
}
#list{
  display: flex;
  width: max-content;
  justify-content: center;
  align-items: center;
}
#formList{
  width: 1280px;
  max-width: 100%;
  overflow: auto;
  scroll-behavior: smooth;
  scroll-snap-type: both;

}

#formList:hover{
  -webkit-animation: mover 1s infinite alternate;
  animation: mover 1s infinite alternate;
}

@-webkit-keyframes mover{
  0%{
    transform: translateY(0);
  }
  100%{
    transform: translateY(-15px);
  }
}

#formList::-webkit-scrollbar{
  display: none;
}

.recommendation h3 {
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.recommendation p {
  font-size: 20px;
  color: #d10a42;
  font-weight: bold;
}



/* @media screen and (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
  }

  .navigation {
    flex-direction: column;
    gap: 10px;
  }

  .nav-link {
    flex-direction:column;
    gap: 20px;
    width: 100%;
    
text-align: center;
}

.nav-link li {
    width: 100%;

text-align: center;
}

.menu-toggle {
  display: flex;
}

.nav-link a {
    width: 100%;

    padding: 10px 0;
    display: block;
    text-align: center;
}

  .nav-link {
    flex-direction: column;
    gap: 10px;
  }

  .old-price{
    left: 39%;
  }
  .new-price{
    left: 39%;
  }

  .product-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .product-images{
    align-items: center;
    margin-left: 20px;
    margin-right: 20px;
  }

  .buttons {
    flex-direction: column;
  }

  .box {
    width: 100%;
  }
} */

@media screen and (max-width: 768px) {
  header{
    display: flex;
  }
  .menu-toggle {
    display: block; 
    left: 320px;
}

.navigation {
    position: fixed;
    top: 0;
    right: -320px; 
    width: 250px;
    height: 100vh;
    background-color: white;
    box-shadow: 2px 0px 5px rgba(0, 0, 0, 0.2);
    flex-direction: column;
    padding: 20px;
    transition: 0.3s ease-in-out;
    z-index: 999;
}


.navigation.active {
    right: 0;
}



.navigation ul {
    flex-direction: column;
    width: 100%;
}

.navigation ul li {
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.navigation ul li a {
    font-size: 18px;
}

.menu-toggle {
  display: flex;
  margin-left:100%;
}
  .logo img{
    width: 50px;
    height: 50px;
    border-radius: 50px;
  }
  .breadcrumb {
    flex-direction: row;
  }

  .product-container {
    flex-direction: column;
    align-items: center;
  }

  .buttons {
    flex-direction: row;
    align-items: center;
  }

  .buy-btn, .cart-btn {
    width: 100%;
  }

  header {
    flex-direction: column;
    align-items: center;
  }

  .navigation {
    flex-direction: column;
    gap: 10px;
  }

  .nav-link {
    flex-direction:column;
    gap: 20px;
    width: 100%;
    
text-align: center;
}

.nav-link li {
    width: 100%;

text-align: center;
}

.menu-toggle {
  display: flex;
}

.nav-link a {
    width: 100%;

    padding: 10px 0;
    display: block;
    text-align: center;
}



  .nav-link {
    flex-direction: column;
    gap: 10px;
  }
  .media{
    display: flex;
    margin-left: 30%;
  }



  .old-price{
    left: 39%;
  }
  .new-price{
    left: 39%;
  }

  .product-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .product-images{
    align-items: center;
    margin-left: 20px;
    margin-right: 20px;
  }

  .buttons {
    flex-direction: row;
  }

  .box {
    width: 100%;
  }
  
}