/* assets/css/vershina-vkusov.css */
.vv-menu-wrapper {
    font-family: 'Montserrat', sans-serif;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0px;
    box-sizing: border-box;
}
.vv-checkout-button:focus {color:white;}
.vv-checkout-button:visited {color:white;}
.vv-menu-main {
    flex: 1 1 65%;
    min-width: 0;
}
.vv-mini-cart-wrapper {
    flex: 0 0 300px;
    position: sticky;
    top: 20px;
    align-self: flex-start;
}

/* Dates tabs */
.vv-dates-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 20;
    padding: 10px 0;
}
.vv-date-tab {
    padding: 8px 15px;
    background: #f5f5f5;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
    font-size: 14px;
    border: 1px solid transparent;
}
.vv-date-tab.active {
    background: #2ca63b;
    color: #fff;
    border-color: #2ca63b;
}
.vv-date-tab:hover:not(.active) {
    background: #e0e0e0;
}

/* Categories nav */
.vv-categories-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}
.vv-cat-link {
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    transition: 0.2s;
}
.vv-cat-link:hover {
    background: #2ca63b;
    color: #fff;
}

/* Category titles sticky */
.vv-category-title {
    position: sticky;
    top: 50px; /* dynamically overridden by JS */
    background: #fff;
    padding: 10px 0;
    margin: 0 0 15px;
    z-index: 10;
    font-size: 20px;
    border-bottom: 2px solid #2ca63b;
}

/* Products grid */
.vv-category-products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Product card */
.vv-product-card {
    display: flex;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s;
}
.vv-product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.vv-product-image {
    flex: 0 0 130px;
    width: 130px;
    overflow: hidden;
}
.vv-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.vv-product-details {
    flex: 1;
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.vv-product-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px;
    line-height: 1.3;
}
.vv-product-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.4;
}
.vv-product-bottom {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    flex-wrap: wrap;
}
.vv-product-price {
    font-weight: 700;
    font-size: 16px;
    min-width: 60px;
    color: #333;
}
.vv-quantity-control {
    display: flex;
    align-items: center;
    gap: 0;
}
.vv-qty-minus, .vv-qty-plus {
    width: 28px;
    height: 28px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    cursor: pointer;
    font-size: 16px;
    line-height: 28px;
    text-align: center;
    padding: 0;
    user-select: none;
}
.vv-qty-input {
    width: 40px;
    height: 28px;
    text-align: center;
    border: 1px solid #ddd;
    border-left: none;
    border-right: none;
    -moz-appearance: textfield;
}
.vv-qty-input::-webkit-outer-spin-button,
.vv-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.vv-add-to-cart {
    background: #2ca63b;
    border: none;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
    font-size: 13px;
    white-space: nowrap;
}
.vv-add-to-cart:hover {
    background: #238e2e;
}

/* Load more */
.vv-load-more-wrapper {
    text-align: center;
    margin: 20px 0;
}
.vv-load-more {
    background: #fff;
    border: 1px solid #2ca63b;
    color: #2ca63b;
    padding: 8px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}
.vv-load-more:hover {
    background: #2ca63b;
    color: #fff;
}

/* Mini cart */
.vv-mini-cart {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #eee;
}
.vv-mini-cart-title {
    font-size: 18px;
    margin: 0 0 15px;
    color: #333;
}
.vv-mini-cart-items {
    list-style: none;
    margin: 0 0 15px;
    padding: 0;
}
.vv-mini-cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}
.vv-mini-cart-item-name {
    flex: 2;
}
.vv-mini-cart-item-price {
    font-weight: 600;
    margin: 0 10px;
}
.vv-mini-cart-remove {
    background: none;
    border: none;
    color: #c0392b;
    font-size: 18px;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
}
.vv-mini-cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    margin-bottom: 15px;
}
.vv-checkout-button {
    display: block;
    text-align: center;
    background: #2ca63b;
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}
.vv-checkout-button:hover {
    background: #238e2e;
    color: #fff;
}
.vv-mini-cart-empty {
    color: #999;
    text-align: center;
    padding: 15px;
}

/* Menu dates shortcode */
.vv-menu-dates-shortcode a {
    color: #2ca63b;
    text-decoration: none;
    margin-right: 10px;
}
.vv-menu-dates-shortcode a:hover {
    text-decoration: underline;
}

/* No products */
.vv-no-products {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* Loading state */
.vv-products-list.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .vv-menu-wrapper {
        flex-direction: column;
    }
    .vv-mini-cart-wrapper {
        position: relative;
        top: 0;
        flex: auto;
        width: 100%;
    }
    .vv-category-products {
        grid-template-columns: 1fr;
    }
    .vv-product-card {
        flex-direction: column;
    }
    .vv-product-image {
        flex: auto;
        width: 100%;
        height: 180px;
    }
    .vv-dates-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
}