@import url('https://fonts.googleapis.com/css?family=Baloo+2');
@import url('https://fonts.googleapis.com/css?family=Nothing+You+Could+Do');
html,
body {
    height: 100%;
    margin: 0;
}

body {
    background-image: url("bg.png");
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #222;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header {
    background: #222;
    color: #fff;
    padding: 15px;
    text-align: center;
}

.header h1 {
    font-family: 'Nothing You Could Do', sans-serif;
    font-size: 2.5rem;
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.nav-list {
    list-style: none;
    padding: 0;
}

.nav-list li {
    display: inline;
    margin: 0 10px;
}

.nav-list a {
    color: #fff;
    text-decoration: none;
}

.hero {
    background: rgba(250, 248, 244, 0.9);
    padding: 10px;
    text-align: center;
}

.hero h2 {
    font-family: 'Baloo 2', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1rem;
    margin: 0 auto;
    color: #444;
}

.products {
    display: flex;
    justify-content: space-around;
    padding: 20px;
}

.product {
    text-align: center;
    border: 1px solid #ddd;
    padding: 15px;
    width: 150px;
}

.product img {
    width: 100%;
    height: auto;
}

.price {
    color: #d00;
    font-weight: bold;
}

.footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 10px;
    padding-top: 10px;
    font-size: 0.85rem;
    color: #eee;
    letter-spacing: 0.02em;
}

.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    place-content: center;
    gap: 20px;
    flex: 1;
    margin: 20px;
}

.category-card {
    text-decoration: none;
    color: rgb(250, 248, 244);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: rgba(189, 122, 119, 0.9);
}

.category-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.category-card h3 {
    font-family: 'Baloo 2', sans-serif;
    font-size: 1.5em;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0px 0;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.listing {
    list-style: none;
    margin: 2em;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

.listing h2 {
    text-align: center;
}

.listing li {
    border-radius: 5px;
    border-style: solid;
    border-width: 2px;
    border-color: rgba(189, 122, 119, 0.9);
    background: rgba(250, 248, 244, 0.9);
    display: flex;
    flex-direction: column;
}

.listing .body {
    padding: 10px;
}

.images {
    margin-bottom: 1rem;
}

.images img {
    width: 100%;
    display: block;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    object-fit: cover;
    max-height: 300px;
}

@media (min-width: 700px) {
    .images {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 0.75rem;
    }
    .images img {
        margin-bottom: 0;
    }
}

.details {
    list-style: none;
    padding: 0;
    margin-top: auto;
}

.details li {
    margin-bottom: 0.35rem;
}

.details strong {
    font-weight: 600;
}


/* ---------- Lightbox ---------- */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 6px;
}

.lightbox .prev,
.lightbox .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    user-select: none;
    padding: 0 1rem;
}

.lightbox .prev {
    left: 0;
}

.lightbox .next {
    right: 0;
}

.lightbox .close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}