/* ==========================================================================
   GLOBAL
   ========================================================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f6f7fb;
    color: #222;
    line-height: 1.5;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */

.navbar {
    width: 100%;
    background: #111827;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    color: #ffffff;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
    white-space: nowrap;
}

nav {
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;

    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;

    flex-wrap: wrap;
}

.nav-links li {
    margin: 0;
    padding: 0;
}

.nav-links a {
    display: inline-block;

    color: #ffffff;
    text-decoration: none;

    padding: 8px 12px;

    border-radius: 6px;

    transition: background-color .2s ease;
}

.nav-links a:hover {
    background: rgba(255,255,255,.12);
}

/* ==========================================================================
   PRODUCT GRID
   ========================================================================== */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));

    gap: 20px;

    padding: 25px;
}

.product-card {
    background: #ffffff;

    border-radius: 10px;

    padding: 18px;

    box-shadow: 0 2px 8px rgba(0,0,0,.08);

    transition: transform .15s ease,
                box-shadow .15s ease;
}

.product-card:hover {
    transform: translateY(-3px);

    box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

button,
.btn {
    display: inline-block;

    padding: 10px 16px;

    background: #2563eb;

    color: #ffffff;

    border: none;

    border-radius: 6px;

    cursor: pointer;

    text-decoration: none;

    transition: background-color .2s ease;
}

button:hover,
.btn:hover {
    background: #1d4ed8;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    margin-top: 40px;

    padding: 20px;

    background: #111827;

    color: #ffffff;

    text-align: center;
}

/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 768px) {

    .navbar-container {
        flex-direction: column;
        align-items: stretch;
    }

    nav {
        width: 100%;
    }

    .nav-links {
        justify-content: center;
        width: 100%;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

}