nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1em 5em 0 5em;
}

nav h1 {
    font-size: 1.8rem;
    color: rgb(253, 252, 252);
    font-weight: normal;
}

nav ul li a {
    border-radius: 0.5em;
}

nav ul li:nth-child(4) a:hover {
    cursor: pointer;
}

.products-header {
    display: flex;
    justify-content: space-between;
    padding: 4em 12em 3em 12em;
    color: #2c3e50;
}

.products-header h1 {
    font-size: 2.8rem;
    color: #1859bb;
}

.products-header a {
    padding: 0.6em 1.5em;
    background-color: #a0c4ff;
    color: #1b1b1b;
    text-decoration: none;
    border-radius: 0.5em;
    font-weight: bold;
    transition: background 0.3s ease;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2em;
    padding: 5em 5%;
}

.product-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.product-info {
    padding: 2em;
}

.product-info h3 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

.product-info p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.product-info a {
    display: inline-block;
    padding: 0.6em 1.5em;
    background-color: #a0c4ff;
    color: #1b1b1b;
    text-decoration: none;
    border-radius: 0.5em;
    font-weight: bold;
    transition: background 0.3s ease;
}

.product-info a:hover {
    background-color: #89b0f0;
}

@media screen and (max-width: 800px) {
    nav {
        padding-left: 2em;
    }

    .products-header {
        flex-direction: column;
        padding: 2em;
        align-items: center;
        gap: 1em
    }
}