:root {
  --background: #FFFEF8;
  --text: #000000;
  --text-light: #FFFEF8;
  --header: #33322D;
  --footer: #000;
  --wishlist-background: #F5F5F5;
}


@font-face {
  font-family: 'Satoshi-Regular';
  src: url('fonts/Satoshi-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}

*{
  margin: 0; 
  padding: 0;
}

body{
  font-family: Satoshi-Regular;
  background: var(--background)
}

header {
  padding: 1rem 0 1rem 0.5rem;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  margin-top: 1rem;
}

.logo{
  width: 2em;
  margin-left: 0.5rem;
}


.navigation li{
  display: inline;
  margin: 0 3rem 0 0;
}

.card{
  width: 10rem;
  height: auto;
  border-radius: 0.25rem;

}

.card img{
  width: 100%;
    height: 11.4rem;
    object-fit: cover;
    border-radius: 0.25rem;
  }
}

.card p{
  margin-top: 0;
  font-size: 1rem;
}

.wishlist-button{
 background: none;
 border: none;
 font-size: 1rem;
 font-family: Satoshi-Regular;

}

.product-details{
  display: flex;
  justify-content: space-between;
}

.main{
 display: flex;
 justify-content: center;
 flex-wrap: wrap;
 gap: 1.5rem;
}

.main a{
  text-decoration: none;
  color: var(--text);
}

.wishlist {
  display: none;
  position: absolute;
  background: var(--wishlist-background);
  color: var(--text);
  border-radius: 0.25rem;
  margin-right: 2rem;
  width: 12rem;
  right: 2rem;
  top: 3rem;
  z-index: 99;
}

.wishlist.open {
  display: block;
}

.wishlist-close{
 background: none;
 border: none;
 font-size: 1rem;
 font-family: Satoshi-Regular;
 margin-bottom: 1rem;
}

.wishlist ul {
  padding: 0;
  margin: 0;
}
.wishlist li {
  list-style: none;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.wishlist li button {
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
}

.wishlist-button.fa-heart {
  cursor: pointer;
  transition: color 0.2s ease;
}

.wishlist-button.fa-solid {
  color: red;
}

#backToTop {
  display: inline-block; 
  margin-top: 0;
  border: none;
  background-color: #000; 
  color: white;
  padding: 10px 20px; 
  cursor: pointer;
  font-size: 30px;
  margin-top: 0.5em;
  width: 9%;
}

#backToTop img{
  width: 1rem;
}

footer {
    background: #000;
    color: white;
    text-align: center;
    position: relative; 
    margin-top: 1rem;
    padding-top: 0.75rem;
    
}


.slider {
  overflow: hidden;
  position: relative;
  width: 100%;
  margin-bottom: 1rem;
}

.slide-track {
  display: flex;
  width: calc(200%);
  animation: scroll 8s linear infinite;
}

.slide {
  width: 40rem;
  height: 20rem;
  object-fit: contain; 
}


@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.productimg{
  height: 11.4rem;
}
.filter-bar {
  display: flex;
  align-items: center;
  width: 20rem;
  max-width: 400px;
  padding: 0 1rem;
  box-sizing: border-box;
  border: 2px solid #ccc;
  border-radius: 8px;
}

.filter-bar i {
  font-size: 1.2rem;
  color: #ccc;
}

#product-filter {
  flex: 1;
  padding: 10px 15px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
  box-sizing: border-box;
  border: 2px solid color(display-p3 1 0.996 0.976);
  border-radius: 8px;
}
