/*
Theme Name: FarmRay Child Theme
Template: astra
Version: 1.0
*/

/* Стили для сетки магазинов 3 колонки */
.dokan-seller-wrap {
    display: inline-block;
    width: 32%;
    margin: 0 2% 30px 0;
    vertical-align: top;
    box-sizing: border-box;
}

.dokan-seller-wrap:nth-child(3n) {
    margin-right: 0;
}

@media (max-width: 768px) {
    .dokan-seller-wrap {
        width: 48%;
    }
    .dokan-seller-wrap:nth-child(2n) {
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .dokan-seller-wrap {
        width: 100%;
        margin-right: 0;
    }
}

/* Стили для скрывающейся панели фильтров */
.filter-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 9999;
    padding: 20px;
    overflow-y: auto;
}

.filter-sidebar.active {
    right: 0;
}

.filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
}

.filter-overlay.active {
    display: block;
}

.filter-toggle-btn {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: #2ecc71;
    color: white;
    border: none;
    padding: 15px 10px;
    border-radius: 5px 0 0 5px;
    cursor: pointer;
    z-index: 1000;
}

/* Стили для QR-кодов в корзине */
.vendor-cart-section {
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    background: #fafafa;
}

.vendor-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.vendor-qr-section {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.vendor-qr-section img {
    max-width: 200px;
    height: auto;
    margin-bottom: 10px;
}

.qr-total {
    font-weight: bold;
    color: #27ae60;
    font-size: 1.1em;
}