* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth; /* smooth scrolling */
}

body {
    align-content: center;
    background: #0f172a;
    color: white;
}

.section-background {
    background: #2030465c;
    padding: 40px 0;
}
    .section-background h1 {
        text-align: center;
        margin-bottom: 36px;
    }

.section-no-background h1 {
    text-align: center;
    margin-bottom: 36px;
}

.section-block {
    text-align: center;
}

.page-container {
    /*max-width: 1150px;*/
    margin: 0 auto;
}

section {
    scroll-margin-top: 100px;
}


.nav-main {
    display: flex;
    text-align: center;
    gap: 24px;
}

    .nav-main ul {
        list-style: none;
        display: flex;
        gap: 30px;
    }

    .nav-main a {
        text-decoration: none;
        color: white;
        font-weight: 500;
        opacity: 0.7;
        transition: opacity 0.2s ease;
    }

        .nav-main a:hover {
            opacity: 1;
        }

        .nav-main a.active {
            opacity: 1;
            border-bottom: 2px solid white;
            padding-bottom: 4px;
        }

.header-main {
    position: sticky;
    top: 0;

    width: 100%; /* full width */
    background: rgb(0, 0, 0, 0.90);
    backdrop-filter: blur(8px);
    height: 100px;
    z-index: 1000;

    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;

    padding: 0 60px; /* content padding inside full-width bg */
    margin: 0 0 20px 0; /* only bottom margin */
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
}

    .header-logo img {
        max-width: 42px;
        display: block;
    }

hr {
    border: none;
    height: 2px;
    background: rgba(255,255,255,0.1);
    margin: 80px 180px;
}

/* Responsive layout - makes the three columns stack on top of each other instead of next to each other */
@media (max-width: 600px) {

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

    p {
        margin-bottom: 30px;
        opacity: 0.7;
    }

    .header{
        display: flex;
    }



.featured-wrapper {
    display: flex;
    justify-content: center;
}

.featured-card {
    max-width: 520px;
    width: fit-content;
}

.product-list {
    display: grid;
    max-width: 1150px;
    margin: 0 auto;
    grid-template-columns: repeat(auto-fit, minmax(370px, 1fr));
    gap: 20px;
    justify-content: center; /* center the cards */
}


.card {
    position: relative;
    transition: transform 0.2s ease, background 0.2s ease;
}

    .card img {
        display: block;
        border-radius: 12px;
        max-width: 100%; /* never exceed original size */
        height: auto; /* preserve aspect ratio */
    }

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

        .card:hover .overlay {
            opacity: 1;
        }

.overlay {
    position: absolute;
    inset: 0; /* shorthand for top/left/right/bottom */

    display: flex;
    justify-content: center; /* horizontal center */
    align-items: center; /* vertical center */

    text-align: center;
    background: rgba(0, 0, 0, 0.8); /* semi-transparent background */
    color: white;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.13s ease;
}


footer {
    margin-top: 180px;
    justify-content: center;
    text-align: center;
}
