* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #121212;
    color: #eee;
}

/* категории */
.categories {
    display: flex;
    overflow-x: auto;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(18,18,18,0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #2a2a2a;
}

/* скрываем скроллбар */
.categories::-webkit-scrollbar {
    display: none;
}

.categories a {
    padding: 14px 18px;
    color: #bbb;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    transition: color 0.2s;
}

.categories a:hover {
    color: #fff;
}

/* контейнер меню */
.menu {
    padding: 12px;
}

/* заголовок категории */
.category-title {
    margin-top: 28px;
    margin-bottom: 10px;
    font-size: 13px;
    letter-spacing: 1px;
    color: #888;

    /* фиксируем отступ для перехода по якорю */
    scroll-margin-top: 70px; /* подгоните под высоту header */
}

/* карточка продукта */
.product {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    margin-bottom: 10px;
    background: #1a1a1a;
    border-radius: 12px;
    transition: transform 0.1s;
}

.product:active {
    transform: scale(0.98);
}

/* текст */
.product-info {
    flex: 1;
}

.product-name {
    font-size: 16px;
    font-weight: 500;
}

.product-price {
    margin-top: 4px;
    color: #aaa;
}

/* блок изображения с белым фоном */
.product-image {
    width: 72px;
    height: 72px;
    margin-left: 12px;
    flex-shrink: 0;
    background: #ffffff; /* белый фон под прозрачные PNG */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* сама картинка */
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

/* модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.modal-content img {
    max-width: 100%;
    max-height: 70vh;
    margin-bottom: 12px;
    border-radius: 10px;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
}

#modal-desc {
    font-size: 16px;
    color: #333;
}