/* GLOBAL */

body {
    margin: 0;
    padding: 0;
    font-family: Georgia, serif;
    background-color: #000;
    color: #fff;
}


/* HEADER */

header {
    background-color: #000;
    padding: 2.5rem 1.5rem 1.5rem;
    color: white;
    text-align: center;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.icon-left {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    align-items: center;
}

.icon-right {
    display: none;
}

.logo-centered {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.main-logo {
    height: 160px;
    max-width: 100%;
    transition: height 0.3s ease;
}


/* NAVIGATION */

.nav-links-container {
    margin-top: 1rem;
    background-color: #000;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-links li a.active::after,
.nav-links li a:hover::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 1px;
    background: white;
}


/* SEARCH BAR */

.search-container {
    text-align: center;
    margin: 2.5rem auto 1.5rem;
}

#search-bar {
    padding: 0.75rem 1.25rem;
    width: 80%;
    max-width: 500px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    background: #1a1a1a;
    color: #fff;
    outline: none;
}


/* PAGE TITLE */

.page-title {
    text-align: center;
    font-size: 2.5rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}


/* PRODUCT GRID */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.product-card {
    background: #a3a3a3;
    color: #000;
    border: 1px solid black;
    border-radius: 8px;
    padding: 1.25rem 1rem;
    text-align: center;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.product-card:hover {
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.05);
    transform: translateY(-4px);
}

.product-img {
    max-width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.price {
    font-weight: bold;
    margin-bottom: 1rem;
}

.product-card button {
    padding: 0.5rem 1.25rem;
    background: black;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
}

.product-card button:hover {
    background-color: #333;
    transform: scale(1.03);
}


/* FOOTER */

footer {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
}


/* RESPONSIVE */

@media (max-width: 768px) {
    .main-logo {
        height: 100px;
    }
    .nav-links {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }
    .products-grid {
        padding: 1rem;
        gap: 1.5rem;
    }
    #search-bar {
        width: 90%;
    }
}