@media screen and (max-width: 1000px) {
    header {
        width: 100vw;
    }
    nav {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }
    .logo {
        justify-content: center;
        margin: 10px 0;
    }
    .logo img {
        height: 35px;
    }
    nav ul {
        flex-direction: column;
        height: auto;
        width: 100%;
        text-align: center;
    }
    nav ul li {
        padding: 8px 0;
    }
    .search {
        width: 100%;
        justify-content: center;
        margin: 10px 0;
    }
    .search input {
        width: 90vw;
        max-width: 400px;
        margin: 0;
    }
    .btn {
        margin: 10px 0;
    }
    .slider {
        margin: 10px;
    }
    .card {
        padding: 0 10px;
    }
    .cards{
        justify-content: flex-start;
    }
    .item {
        width: 160px;
    }
    .item img {
        height: 160px;
    }
}

@media screen and (max-width: 600px) {
    .search input {
        width: 85vw;
    }
    .item {
        width: 140px;
    }
    .item img {
        height: 140px;
    }
    h2 {
        font-size: 18px;
    }
    .lines p {
        font-size: 11px;
    }
}