.products-wrapper {
    display: flex;
    flex-direction: column;
    margin-top: 4vh;
    padding: 0 5vw;
    width: 90%;
}

.products-wrapper h1 {
    font-family: 'HKGrotesk';
}

.categories {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 4vw;
    margin-right: 5vw;
    width: 100%;
}

#brand-selector,
#sorting-selector {
    background-color: black;
    font-family: "HKGrotesk";
    color: white;
    font-size: 1.3vw;
    padding: 1vh 1vw;
}

#brand-selector:hover,
#sorting-selector:hover {
    cursor: pointer;
}

.results {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-evenly;
    gap: 1vw;
}

.product-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border: 1px solid white;
}

.product-box img {
    object-fit: contain;
}

.product-title {
    font-family: "HKGrotesk";
    font-weight: 300;
    max-width: 28ch;
}

.product-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5vw;
}

.product-price {
    font-weight: bold;
}

.discount {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.old-product-price {
    text-decoration: line-through;
    margin: 0;
}

.new-product-price {
    margin: 0;
    font-weight: bold;
    color: red;
}

.details-button {
    background-color: black;
    color: white;
    font-family: "HKGrotesk";
    font-weight: 300;
    border: 2px solid white;
    padding: 1vh 2vw;
    margin: 0;
}

.details-button:hover {
    background-color: white;
    color: black;
    cursor: pointer;
}

@media (max-width:350px) {
    #brand-selector, #sorting-selector {
        font-size: 3vw;
    }

    .results {
        gap: 3vh;
    }

    .product-container {
        padding: 3vh 2vw;
        height: auto;
        max-width: 60vw;
    }
    
    .product-box {
        width: 75vw;
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .product-box img {
        width: 60vw;
        height: auto;
        max-height: 16vh;
    }
    
    .product-title {
        font-size: 5vw;
        margin-left: 10px;
    }
    
    .product-price {
        font-weight: bold;
        margin-left: 2vw;
        font-size: 5vw;
    }
    
    .old-product-price {
        margin: 0;
        margin-left: 2vw;
        font-size: 2.5vw;
    }
    
    .new-product-price {
        margin: 0;
        margin-left: 2vw;
        font-size: 5vw;
    }
    
    .details-button {
        padding: 1vh 2vw;
        margin: 0;
        margin-right: 2vw;
        font-size: 6vw;
    }
}

@media (min-width: 350px) and (max-width: 750px) {
    #brand-selector, #sorting-selector {
        font-size: 3vw;
        padding: 3vw 1vw;
    }

    .product-container {
        gap: 0.5vw;
        padding: 1vh 2vw;
        height: 30vh;
        max-width: 35vw;
    }
    
    .product-box {
        width: 45vw;
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .product-box img {
        width: 40vw;
        height: auto;
        max-height: 16vh;
    }

    .product-title {
        font-size: 3vw;
    }
    
    .product-price {
        font-weight: bold;
        margin-left: 2vw;
        font-size: 4vw;
    }
    
    .old-product-price {
        margin: 0;
        margin-left: 2vw;
        font-size: 2vw;
    }
    
    .new-product-price {
        margin: 0;
        margin-left: 2vw;
        font-size: 4vw;
    }
    
    .details-button {
        padding: 1vh 2vw;
        margin: 0;
        margin-right: 2vw;
        font-size: 3.5vw;
    }
}

@media (min-width: 750px) and (max-width: 1000px) {
    .product-container {
        gap: 2vw;
        padding: 3vh 2vw;
        height: 28vh;
        max-width: 15vw;
    }
    
    .product-box {
        width: 15vw;
        flex: 1;
    }
    
    .product-box img {
        width: 20vw;
        height: 15vh;
    }

    .product-title {
        max-width: 28ch;
        font-size: 1vw;
    }
    
    .product-price {
        font-weight: bold;
        margin-left: 2vw;
        font-size: 1.2vw;
    }
    
    .old-product-price {
        margin: 0;
        margin-left: 2vw;
        font-size: 0.4vw;
    }
    
    .new-product-price {
        margin: 0;
        margin-left: 2vw;
        font-size: 1.2vw;
    }
    
    .details-button {
        padding: 1vh 2vw;
        margin: 0;
        margin-right: 2vw;
        font-size: 1.3vw;
    }
}

@media (min-width: 1000px) {
    .product-container {
        gap: 2vw;
        padding: 3vh 3vw;
        height: 40vh;
        max-width: 15vw;
    }
    
    .product-box {
        width: 15vw;
        flex: 1;
    }
    
    .product-box img {
        width: 20vw;
        height: 20vh;
    }

    .product-content {
        justify-content: center;
    }

    .product-title {
        max-width: 28ch;
        font-size: 1vw;
        text-align: center;
    }
    
    .product-price {
        font-weight: bold;
        margin-left: 2vw;
        font-size: 1.2vw;
        margin: 0;
        margin-left: 2vw;
    }

    .discount {
        margin: 0;
    }
    
    .old-product-price {
        margin: 0;
        margin-left: 2vw;
        font-size: 0.8vw;
    }
    
    .new-product-price {
        margin: 0;
        margin-left: 2vw;
        font-size: 1.2vw;
    }
    
    .details-button {
        padding: 1vh 2vw;
        margin: 0;
        margin-right: 2vw;
        font-size: 1.3vw;
    }
}