/* Основни стилове */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom right, #fef9f4, #f8e1e7);
    color: #2b2b2b;
    background-image: url('https://www.transparenttextures.com/patterns/white-wall-3.png');
}

/* Хедър */
header {
    background: linear-gradient(to right, #3a1c71, #d76d77, #ffaf7b);
    color: white;
    padding: 0.6rem 1rem;
    text-align: center;
    position: relative;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
}

header h1 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0.3rem 0 0;
}

nav ul li {
    display: inline-block;
    margin: 0 0.7rem;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s, color 0.3s;
}

nav ul li a:hover {
    color: #ffe8d6;
    border-color: #ffe8d6;
}

/* Продукти */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1.2rem;
    padding: 1.5rem;
    max-width: 1200px;
    margin: auto;
}

.product {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.product:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.product img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product:hover img {
    transform: scale(1.07);
}

.product h3 {
    margin: 1rem 0 0.5rem;
    font-size: 1.2rem;
    color: #4e1d57;
}

.product p {
    margin-bottom: 1rem;
    color: #777;
    font-size: 1rem;
}

/* Хамбургер бутон */
.menu-toggle {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    font-size: 26px;
    cursor: pointer;
    background: none;
    border: none;
    color: white;
    z-index: 1000;
}

/* Странично меню */
.side-menu {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background: #2d1a3c;
    color: white;
    transition: left 0.3s ease-in-out;
    padding-top: 60px;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.4);
    z-index: 2000;
}

.side-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-menu ul li {
    padding: 15px;
    text-align: center;
}

.side-menu ul li a {
    color: #ffcbcb;
    text-decoration: none;
    display: block;
    font-size: 18px;
    transition: background 0.3s, color 0.3s;
}

.side-menu ul li a:hover {
    background: #523055;
    color: #ffd6e0;
}

/* Бутон за затваряне */
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 26px;
    cursor: pointer;
}

/* Отворено меню */
.side-menu.open {
    left: 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem;
    background-color: #3a1c71;
    color: #fdd;
    font-size: 1rem;
    margin-top: 2rem;
}

/* Responsive – МАХАМЕ едно под друго! */
@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr); /* Два продукта в ред дори на телефон */
        gap: 1rem;
        padding: 1rem;
    }

    nav ul li {
        display: block;
        margin: 0.5rem 0;
    }

    .menu-toggle {
        font-size: 22px;
    }

    header h1 {
        font-size: 1.2rem;
    }

    nav ul li a {
        font-size: 0.85rem;
    }
}
