html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: sans-serif;
    color: #f5f5f5;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.25),
            rgba(0, 0, 0, 0.75)
        ),
        url("/assets/images/photo_2026-03-30_22-50-51.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
}


main {
    padding: 10px;
    flex: 1;
}

header,
footer {
    background: #2b1d0e;
    color: #fff;
    padding: 10px;
    text-align: center;
}

nav a {
    margin: 0 10px;
    color: #f4f0e8;
    text-decoration: none;
    font-weight: bold;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    border: 2px solid #2b1d0e;
    padding: 12px;
    background: #fff0e0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card img {
    width: 100%;
    height: auto;
}

.price {
    font-weight: bold;
}

button {
    padding: 5px 10px;
    cursor: pointer;
    background: #2b1d0e;
    color: #fff;
    border: none;
}

button:hover {
    background: #4b2d0e;
}


.hero {
    text-align: center;
}

.logo {
    max-height: 100px;
}

.product-card {
    color: #1a0e00;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #1a120b;
    padding: 25px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    color: #f5f5f5;
    text-align: center;
    border: 2px solid #3a2a1a;
}

.modal-content img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 15px;
}

.close {
    position: absolute;
    right: 25px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
}