body {
    margin: 0;
    padding: 0;
    background-color: rgb(31, 33, 44);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* color: #333; */
}

html {
  scroll-behavior: smooth;
}

main {
    flex-grow: 1;
}

header {
  background-color: #111;
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 10px;
  font-size: 0.8rem;
}

nav a:hover {
  color: #ccc;
}

header{
  position: relative;
}
 

footer {
  background-color: #000000ee;
  color: white;
  padding: 70px;
  text-align: center;
  margin-top: 100px;
  font-size: 0.8rem;
}
  
.footer a {
  color: white;
  margin: 20px;
  text-decoration: none;
}
  
.footer a:hover {
  color: rgba(255, 255, 255, 0.689);
}
  
div a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.662);
}
  
div a:hover {
  color: rgba(255, 255, 255, 0.564);
}


.products {
    max-width: 80vw;
    margin: auto;
    margin-top: 50px;
    /* background-color: #d7d7d7; */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.product img {
    width: 100%;
    height: 48%;
    object-fit: cover;
    object-position: center;
}

.product h1 {
    color: rgb(240, 233, 233);
    font-size: clamp(10px,1vw,768px);
}

.product p {
    color: #1879b9;
    font-size: clamp(0px,2vw,768px);
}

.product {
    text-align: center;
    /* border-radius: 5px; */
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
    transform: scale(1);
    display: block;
    margin: 0;
    padding: 0;
}

.products-wrapper {
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.product.hidden {
    opacity: 0;
    transform: scale(0.95);
    display: none;
}

.product.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

#category {
    margin-top: 70px;
    margin-left: 40px;
    font-size: 0.5rem;
}


@media screen and (min-width: 768px) {
    .products {
        max-width: 80vw;
        margin: auto;
        margin-top: 50px;
        /* background-color: #d7d7d7; */
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        /* grid-template-rows: repeat(6, 1fr); */
        /* grid-auto-rows: minmax(50px, 100px); */
        /* grid-auto-flow: row dense; */
        gap: 16px;
    }

    .product img {
        /* min-height: -100vh; */
        width: 100%;
        height: 50%;
        object-fit: cover;
        object-position: center;
    }

    .product h1 {
        color: rgb(240, 233, 233);
        font-size: clamp(0px,2vw,768px);
    }

    .product p {
        color: #1879b9;
        font-size: clamp(0px,2vw,768px);
    }

    #category {
        margin-top: 150px;
        margin-left: 80px;
    }

    header h1 {
        font-size: 2rem;
    }

    nav a {
        font-size: 1rem;
    }

    footer {
        font-size: 1rem;
    }
}


@media  screen and (min-width: 1024px) {
    header h1 {
      font-size: 2.3rem;
    }

    nav a {
      font-size: 1.1rem;
    }

    footer {
        font-size: 1.1rem;
    }

    .products {
        max-width: 80vw;
        margin: auto;
        margin-top: 40px;
        /* background-color: #d7d7d7; */
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        /* grid-template-rows: repeat(6, 1fr); */
        /* grid-auto-rows: minmax(50px, 100px); */
        /* grid-auto-flow: row dense; */
        gap: 16px;
    }

    .product img {
        /* min-height: -100vh; */
        width: 100%;
        height: 55%;
        object-fit: cover;
        object-position: center;
    }

    .product h1 {
        color: rgb(240, 233, 233);
        font-size: clamp(0px,4vw,30px);
    }

    .product p {
        color: #1879b9;
        font-size: clamp(0px,2vw,20px);
    }

    .filter {
        margin-bottom: 20px;
    }

    .product {
        border: 1px solid #9b9b9b1e;
        padding: 10px;
        margin: 10px;
        /* width: 200px; */
        text-align: center;
        /* border-radius: 5px; */
        transition: opacity 0.3s ease, transform 0.3s ease;
        opacity: 1;
        transition: opacity 0.3s ease, transform 0.3s ease;
        opacity: 1;
        transform: scale(1);
        display: block;
    }

    .product.hidden {
        opacity: 0;
        transform: scale(0.95);
        display: none;
    }

    .product.fade-out {
        opacity: 0;
        transform: scale(0.95);
    }

    #category {
        margin-top: 150px;
        margin-left: 200px;
        font-size: 1rem;
    }
    
}
