* {
  box-sizing: border-box;
  font-family: 'Figtree', sans-serif;
  padding: 0;
  margin: 0;
  user-select: none;
  -webkit-user-drag: none;
  
}


header {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  background-color: rgb(250, 250, 250);
  transition: max-height 0.3s ease-in-out; 
  overflow: hidden; 
  box-shadow: 0 0 10px 1px rgb(0, 0, 0, 0.1);
  max-height: 27vh;
  z-index: 1000;
}

#navbar {
  
  margin: 25px 35px;
  display: flex;
  justify-content: space-between;
  
}

#logo {
  width: 8rem;
  border-radius: 40%;
  
  
}

#middle-div {
  margin-left: 100px;
  display: flex;
  justify-content: space-between;
  
  
}

.icon-div {
  position: relative;
  display: flex;
  margin: 0 15px;
  align-items: center;
  font-size: 0.9rem;
  color: rgb(100, 100, 100);
  cursor: pointer;
}

.icon-div div span {
  margin-bottom: 5px;
}
.icon-div p {
  margin: 0 7px;
}
.icon-div:first-child {
  color: black;
  font-weight: 600;
  border-bottom: 3px solid black;
}

#iconh {
  width: 3rem;

  
}
#iconb {
  width: 2rem;
  margin-right:3px;
}
#iconr {
  width: 2.5rem;
  
}
@keyframes scale {
  100% {
    transform: scale(1.1);
  }
  
}
#iconh:hover,#iconb:hover ,#iconr:hover{
  animation: scale 0.5s ease forwards;
  
}


.newicon {
  top: 0%;
  position: absolute;
  font-size: 0.7rem;
  text-align: center;
  padding: 1px 5px;
  border-radius: 20px 20px 20px 5px;
  background-color: rgb(53, 53, 138);
  color: white;
  box-shadow: inset 0px 0px 10px 1px rgb(75 75 100);
}

#header-btn {
  display: flex;
  justify-content: space-evenly;
}

#header-btn button {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 5px;
  border: none;
  cursor: pointer;
}
#header-btn button:first-child {
  font-size: 13px;
  font-weight: 9;
  padding: 0 20px;
  border-radius: 30px;
  background-color: rgb(250, 250, 250);
}
#header-btn button:not(:first-child) {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}
#header-btn button:hover {
  background-color: rgb(230, 230, 230);
}

#search {
  margin: 0 auto;
  min-width: 55vw;
  display: flex;
  justify-content: space-between;
  box-shadow: 0 0 10px 1px rgb(0, 0, 0, 0.2);
  border-radius: 40px;
  margin-bottom: 35px;
  background-color: white;
}

#search div:not(:last-child) {
  padding: 15px 50px;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  
}
#search div:hover {
  background-color: rgb(230, 230, 230);
}

#search div span:not(:first-child) {
  color: gray;
}
#search div:last-child {
  margin: 5px 10px 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgb(240, 60, 80);
  color: white;
  cursor: pointer;
}
#search div:last-child:hover{
  background-color: crimson;
}



#search-later {
  
  
  margin: 0 auto;
  min-width: 25vw;
  display: flex;
  justify-content: space-evenly;
  box-shadow: 0 0 10px 1px rgb(0, 0, 0, 0.2);
  border-radius: 40px;
  align-items: center;
  cursor: pointer;
}

#search-later div {
  padding: 5px;
  border-radius: 30px;
  display: flex;
  flex-direction: column;

  justify-content: center;
  font-size: 0.8rem;
  
}
#iconh2 {
  width: 2rem;
}
#search-later div:last-child {
  align-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: rgb(240, 60, 80);
  color: white;
  
}
#search-later div:last-child:hover{
  background-color: crimson;
}





@keyframes mid {
  0% {
    
    translate: 0 0;
    transform: scale(1);
    
  }

  100% {
    display: none;
    translate: 0 -130px;
    transform: scale(0);
    
  }
  
}
@keyframes searchcss {
  0% {
    transform: scale(1);
  }
  100% {
    translate: 0 -130px;
    display: none;
    transform: scale(0.5);
    
  }

}
@keyframes lcss {
  0%{
    opacity: 0;
  }
  100% {
    opecity: 1;
    translate: 0 -70px;
  }
}
.anicss {
 
  opacity: 0;
}
header.header-shrink {
  height: 15vh; /* This is the target height */
}

.midcss{
  animation: mid 0.1s ease-in-out forwards;
  
}
.searchcss{
  animation: searchcss 0.2s ease-in-out forwards;
  
}
.latercss{
  animation: lcss 0.5s ease-in-out forwards;
}



main section {
  margin: 30px 90px ;


}

.gallery img{
  
  border-radius: 20px;
  height: 175px;
  width: 100%;
  cursor: pointer;
  margin-bottom: 2px;

}

.gallery{
  display: grid;
  grid-auto-columns: minmax(182px, 1fr); 
  grid-auto-flow: column;

  gap: 10px;
  overflow-x: scroll;
  
}
.gallery::-webkit-scrollbar {
  display: none; /* Hide scrollbar for webkit browsers */
}

.section-header {
  font-size: 17px;
  margin-bottom: 10px;
}

 h5{
  margin-left: 3%;
  font-weight: 600;
  margin-bottom: 2px;
  
}
.arrow-icon {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 5.33333;
  overflow: visible;
  
}

.gallery div{
  position: relative;
  overflow: hidden;
}
.heart{
  position: absolute;
  top: 7%;
  right: 7%;
  color: gray;
  width: 23px;
  cursor: pointer;
}

.heart:hover{
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.gallery div p {
  position: absolute;
  top: 7%;
  left: 7%;
  opacity: 0.9;
  font-size: 11px;
  font-weight: 550;
  color: black;
  background-color: whitesmoke;
  padding: 7px 9px;
  border-radius: 20px;
}

.price{
  margin-left: 3%;
  font-weight: 500;
  font-size: 12px;
  color: gray;
  display: flex;
  align-items: center;
  gap: 5px;
}
.price svg {
  width: 7px;
  height: 7px;
  fill: rgb(85, 85, 85);
  
}

footer{
  background-color: rgb(250, 250, 250);
  padding: 20px 0;
  margin-top: 50px;
  box-shadow: 0 0 10px 1px rgb(0, 0, 0, 0.1);
}
.footer-links{
  padding: 30px 0;
  display: flex;
  justify-content: space-between;
  margin: 0 100px;

}
.footer-links p{
  
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 15px;
}
.footer-links div ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
  list-style: none;
  
}
.footer-links div ul li a {
  
  text-decoration: none;
  color: black;
  
  transition: color 0.3s ease;
  
}
.footer-links div ul li {
  
  color: gray;
  cursor: pointer;
}

.footer-info {
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  margin: 0 50px;
  margin-top: 20px;
  padding-top: 30px;
  border-top: 1px solid rgb(230, 230, 230);
  
  
}

.footer-info div {
  display: flex;
  flex-direction: row;
  align-items: center;
  cursor: pointer;
  gap: 10px;
  font-weight: 500;
  font-size: 15px;
  
}
.footer-info div a{
  text-decoration: none;
  color: black;
  font-size: 14px;
  transition: color 0.3s ease;
  
}
footer a:hover {
  text-decoration: underline;
}

.footer-info div i {
  
  padding: 10px;
  
}
.footer-info div i:hover {
  background-color: rgb(230, 230, 230);
  border-radius: 50%;
}



@media screen and (max-width: 950px) {
 #logo {
    width: 7rem;
  }
  #header-btn button:first-child {
    display: none;
  }
  #header-btn button:not(:first-child) {
    width: 40px;
    height: 40px;
  }
 
  #iconh,#iconr {
    width: 2rem;
  }
  #iconb{
    width: 1.5rem;
  }
  #middle-div {
    margin-left: 50px;
  }
  
}
@media screen and (max-width: 770px) {
  #search {
    display: none;
  }
  header {
    height: 13vh;
  }
  header.header-shrink {
  height: 11vh; /* This is the target height */
  }
  footer{
    font-size: 13px;
  }
  .footer-info div a , .footer-info div{
    font-size: 11px;
  }
  main section{
    margin: 30px 40px;
  }
  #middle-div {
    margin-left: 0;
    
  }
  .footer-links {
  padding: 30px;
  margin: auto;
  justify-content: space-between;
  
    
}
}

@media screen and (max-width: 650px) {
  #header-btn{
    display: none;
  }

  header {
    height: 12vh;
  }
  .newicon{
    margin: -7px 4px;
  }
  
.footer-links {
  padding: 10px;
  margin: auto;
  justify-content: space-between;
  
    
}
}

@media screen and (max-width: 560px) {
  .icon-div {
    margin: 2px;
  }
  #navbar {
    justify-content: center;
  }
  #logo {
    display: none;
  }
  @keyframes lcss {
  0%{
    opacity: 0;
  }
  100% {
    opecity: 1;
    translate: 0 -30px;
  }
}
  .footer-links {
    font-size: 10px;
  padding: 10px;
  margin: auto;
  justify-content: space-between;
  
    
}
  .footer-info {
    flex-direction: column;
    align-items: center;
  }
}