/*
====================================================================================================
VILLEM SÖÖGI- JA JOOGIKAART - Frontend stiil
====================================================================================================
*/
.vm-wrap {
    max-width: 820px;
    margin: 0 auto;
    --vm-accent: #93bda9;
    --vm-ink: #2b2317;
}

.vm-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.vm-tabs {
    display: flex;
    gap: 8px;
}
.vm-tab {
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid #ddd6ca;
    background: #fff;
    color: #6b6559;
    font-size: 14px;
    letter-spacing: .5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .18s ease;
}
.vm-tab:hover { border-color: var(--vm-accent); color: var(--vm-accent); }
.vm-tab.active { background: var(--vm-accent); border-color: var(--vm-accent); color: #fff; }

.vm-langs { display: flex; gap: 6px; }
.vm-langs a {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #ddd6ca;
    font-size: 12px;
    color: #6b6559;
    text-decoration: none;
    background: #fff;
}
.vm-langs a.active { background: #2b2317; border-color: #2b2317; color: #fff; }

.vm-cat-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 2px 14px 2px;
    margin-bottom: 12px;
    scrollbar-width: none;
    position: sticky;
    top: 0;
    background: linear-gradient(#faf8f4 80%, transparent);
    z-index: 3;
}
.vm-cat-nav::-webkit-scrollbar { display: none; }
.vm-cat-chip {
    flex: 0 0 auto;
    padding: 8px 16px;
    background: #f3efe6;
    border: 1px solid #e0d8c6;
    border-radius: 999px;
    font-size: 13px;
    color: #5a4d33;
    text-decoration: none;
    white-space: nowrap;
    transition: all .15s ease;
}
.vm-cat-chip:hover, .vm-cat-chip.vm-chip-active {
    background: var(--vm-accent);
    border-color: var(--vm-accent);
    color: #fff;
}

.vm-category {
    margin-bottom: 34px;
    scroll-margin-top: 70px;
}
.vm-cat-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 22px;
    color: #8a6d2f;
    letter-spacing: 1px;
    text-align: center;
    margin: 0 0 18px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee2c9;
}

.vm-items {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
}

.vm-item {
    display: flex;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px dashed #eee7d8;
    width: 100%;
}
.vm-item:last-child { border-bottom: none; }

.vm-item-img {
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    border-radius: 10px;
    overflow: hidden;
}
.vm-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vm-item-body { flex: 1; min-width: 0; }

.vm-item-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
.vm-item-name {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 16.5px;
    color: var(--vm-ink);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    min-width: 0;
}
.vm-item-price {
    font-size: 16px;
    color: #b0562e;
    white-space: nowrap;
    flex: 0 0 auto;
}
.vm-item-desc {
    margin-top: 4px;
    font-size: 13.5px;
    color: #9a917f;
    font-style: italic;
    line-height: 1.45;
}

.vm-flag {
    font-size: 17px;
    margin-right: 2px;
    line-height: 1;
}

.vm-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 11px;
    color: #fff;
}

.vm-empty {
    text-align: center;
    color: #9a917f;
    padding: 30px 0;
    font-style: italic;
}

@media screen and (max-width: 640px) {
    .vm-toolbar { flex-direction: column; align-items: stretch; }
    .vm-tabs { justify-content: center; }
    .vm-langs { justify-content: center; }
    .vm-item-name { font-size: 15.5px; }
}
