
:root {
    --primary: #4caf50;
    --primary-dark: #3c8a3f;
    --secondary: #1e1e1e;
    --bg: #f8f9fb;
    --white: #ffffff;
    --radius: 10px;
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
    --gray: #6c757d;
    --facebook: #3b5998;
    --apple: #000000;
    --orange: #FFA500;
    --orange-dark: #E69500;
    --blue: #4285F4;
    --light-gray: #EEEEEE;
    --accent: #FFA000;
    --dark: #333333;
}

.seller-container{
    max-width: 1280px;
    margin:-40px auto auto auto;
    padding: 0 24px;
}

.seller-main-layout{
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    max-width: 1280px;
    margin: 0 auto;
    /*padding: 0 24px;*/
}


.agro-author-sidebar{
    background: #fff;
    border-radius: 10px;
}

 p:empty {
    display: none !important;
}

.agro-author-sidebar-heading{
    border-radius: 10px 10px 0 0;
    padding: 15px;
    background-color: var(--primary);
    color: var(--white);
    font-weight: 600;
    line-height:1;
}

.agro-author-sidebar-body__heading{
    margin: 15px 0 0 0;
    color: #3C8A3F;
    font-size: 14px;
    font-weight: 600;
}

.agro-author-sidebar-body{
    padding: 0 15px;
}


.custom-call-btn, .custom-msg-btn {
    padding: 10px 16px !important;
    border: none!important;
    border-radius: 10px !important;
    font-weight: 500!important;
    font-size: 14px!important;
    cursor: pointer!important;
    display: flex!important;
    align-items: center!important;
    justify-content: center!important;
    gap: 8px!important;
    transition: all 0.3s ease!important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08)!important;
    font-family: "Agro-Regular", Arial, Helvetica, sans-serif!important;
    height: 38px !important;
    min-height: 38px !important;
}

.custom-call-btn {
    background: #2ecc71 !important;
    color: white;
}


.custom-call-btn .btn-text {
    padding-top: 2px;
}
.call-btn-with-number .btn-text {
    padding-top: 0;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600;
    line-height: 24px;
}

.custom-msg-btn .btn-text {
    padding-top: 2px;
}
.custom-call-btn:hover {
    background: #27ae60 !important;
}


.custom-msg-btn {
    background: #2ecc71 !important;
    color: white!important;
}
.custom-msg-btn:hover {
    background: #128c7e !important;
}

.custom-call-btn i, .custom-msg-btn i {
    font-size: 16px;
}

.custom-call-btn.call-btn-with-number {
    background: linear-gradient(135deg, #2ecc71, #1abc9c) !important;
}

/* Seller Header Section */
.seller-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background-color: #eafaf0;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.seller-photo{
    display: flex;
    align-items: center;
    gap: 20px;
}

.seller-photo .custom-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.seller-photo .custom-avatar img{
    border-radius: 50%!important;
}

.seller-photo .author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.seller-photo .author-avatar img{
    border-radius: 50% !important;
}

.seller-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0;
    font-family: 'Agro-Regular', sans-serif;
}

.author-contact{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}

.agro-author-view-controls{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.agro-author-orderby{
    display: flex;
    align-items: center;
    gap: 10px;
}

.ag-author-orderby{
    padding: 5px 27px 4px 20px!important;
    border: 1px solid var(--light-gray) !important;
    border-radius: 4px !important;
    background-color: var(--white) !important;
    font-size: 13px !important;
    color: #000 !important;
    cursor: pointer;
    height: 37px !important;
}

label.ag-author-orderby-label{
    font-size: 14px;
    color: var(--gray);
    margin: 0;
}

.agro-author-products-count{
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 13px;
}

.agro-author-products .wd-product .product-wrapper{
    border-radius: 8px;
    background-color: var(--white) !important;
}


.agro-author-products.is-loading {
    opacity:.6;
    pointer-events:none;
}

.ag-author-ajax-pagination {
    display:flex;
    gap:6px;
    justify-content:center;
    margin:40px 0 0;
}

.ag-page-btn {
    padding: 8px 16px 3px 16px !important;
    margin: 0 4px!important;
    color: var(--dark)!important;
    border: 1px solid #ddd!important;
    border-radius: 4px!important;
    background-color: transparent !important;
    font-weight: 100 !important;
    font-size:15px !important;
    cursor: pointer;
}

.ag-page-btn:hover {
    background-color: #eeeeee!important;
}

.ag-page-prev.disabled {
    cursor: default;
}

.ag-page-next.disabled {
    cursor: default;
}

.ag-page-btn.is-active {
    background-color: var(--primary) !important;
    color: var(--white) !important;
    border-color: var(--primary)!important;
}



@media only screen and (max-width: 768px) {
    .seller-container{
        padding:0;
    }

    .seller-main-layout{
        padding: 0;
    }
}


@media only screen and (max-width: 695px) {
    .seller-header {
        flex-direction: column;
        padding: 15px;
    }
}


@media only screen and (max-width: 465px) {
    .seller-name {
        font-size: 16px;
    }

    .seller-photo .custom-avatar{
        width: 60px;
        height: 60px;
    }

    .seller-photo .author-avatar {
        width: 60px;
        height: 60px;
    }

    label.ag-author-orderby-label{
        display: none;
    }
}


.agro-view-toggle {
    display:flex;
    gap:10px;
    margin-left:10px;
}

.agro-view-toggle .view-btn {
    border:1px solid #e2e2e2;
    background:#fff;
    padding: 9px 11px 9px 11px;
    border-radius:4px;
    cursor:pointer;
    min-height: auto;
}
.agro-view-toggle .view-btn:hover {
    background:#eeeeee;
    color: #000;
}

.agro-view-toggle .view-btn i {
    color: #000 !important;
    font-size: 13px !important;
}

.agro-view-toggle .view-btn:hover i {
    color: #000 !important;
}


.agro-view-toggle .view-btn.is-active {
    background-color: var(--primary) !important;
    color: white;
    border-color: var(--primary);
}

.agro-view-toggle .view-btn.is-active i{
    color: white !important;
}

.products.wd-products.wd-grid-g.grid-columns-4.elements-grid.pagination-pagination.title-line-two.wd-stretch-cont-lg.wd-products-with-bg.wd-products-with-shadow{
    gap: 20px !important;
}


.agro-author-products.author-list-view .products.wd-products.wd-grid-g{
    display: grid;
    grid-template-columns: repeat(1, 1fr) !important;
    gap: 30px !important;
}

.agro-author-products.author-list-view .products.wd-products.wd-grid-g .wd-product.product-grid-item{
    width: 100%;
    max-width:952px !important;
}

.agro-author-products.author-list-view .products.wd-products.wd-grid-g .wd-product.product-grid-item .product-wrapper{
    display: flex;
    flex-direction: row;
    padding: 16px !important;
    gap: 36px !important;
}

.agro-author-products.author-list-view .products.wd-products.wd-grid-g .wd-product.product-grid-item .product-wrapper .swiper-slide-agro{
    width: 100% !important;
}

.agro-author-products.author-list-view .products.wd-products.wd-grid-g .wd-product.product-grid-item .product-wrapper .swiper-slide-agro img{
    height: 140px !important;
}

.agro-author-products.author-list-view .products.wd-products.wd-grid-g .wd-product.product-grid-item .product-wrapper .swiper.agroSwiper-slider{
    max-width: 180px;
    height: 140px;
    border-radius: 8px !important;
}

.agro-author-products.author-list-view .att__wrapper {
    max-width: 205px;
}

.agro-author-products.author-list-view .wd-wishlist-btn{
    position: absolute;
    right: 17px;
}

.agro-author-products.author-list-view .att-term.pa_city{
    overflow: visible;
    max-width: 100%;
}



.ag-cat-filter.is-loading {
    opacity:.6;
    pointer-events:none;
}

.ag-cat-head {
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:12px;
}
.ag-cat-back {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: #2e7d32;
    font-size: 15px;
    cursor:pointer;
    margin-top: 15px;
}
.ag-cat-root-title {
    font-weight:600;
    opacity:.75;
}
.ag-cat-list {
    list-style:none;
    margin:0;
    padding:0;
    display:flex;
    flex-direction:column;
    align-items: flex-start;
}

.ag-cat-list li .ag-cat-link {
    width:100%;
    text-align:start;
    background:none;
    color:#767676;
    border:0;
    cursor:pointer;
    padding:0;
    font-size:15px;
    font-family: 'Agro-Medium', 'Arial Narrow', Arial, sans-serif;
    font-weight: 100;
    min-height: auto;
}

.ag-cat-list li{
    margin-bottom:10px;
}
.ag-cat-list li .ag-cat-link:hover {
    color:#333;
}

.ag-cat-link.is-active-category{
    color:#2e7d32 !important;
}

.ag-cat-list .count {
    font-size: 12px;
    font-family: 'Agro-Regulad', 'Arial Narrow', Arial, sans-serif;
}

.agro-author-products-special-slider{
    width: 100%;
    max-width:952px !important;
    margin-bottom: 20px;
}


/*canva*/
/* --- Filters trigger (default: desktop-ზე დამალული) --- */
.ag-filter-trigger{
    display:none;
    align-items:center !important;
    gap:5px !important;
    padding:0 !important;
    cursor:pointer;
    min-height: auto !important;
    background: transparent!important;
    color: #333!important;
    font-weight: 500!important;
    font-size: 16px!important;
    margin-bottom: 15px;
}

/* Overlay default */
.ag-filters-overlay{
    display:none;
}

.ag-filter-close {
    display: none !important;
    background: transparent;
    border: none !important;
    cursor: pointer;
    color: #444 !important;
    transition: color .2s ease !important;
    font-size: 16px !important;
    background: unset !important;
}
.ag-filter-close:hover { color: #000; }

/* Off-canvas header wrapper */
.agro-author-sidebar-header {
    position: relative;
    padding: 1rem 1rem 0 1rem;
}



/* ====== ≤1024px: sidebar ხდება off-canvas ====== */
@media (max-width: 1023.98px){


    .seller-main-layout{
        grid-template-columns:100%;
    }

    .ag-filter-trigger{
        display:inline-flex;
    }

    /* Drawer (იგივე sidebar ელემენტი) */
    #ag-offcanvas-filters.agro-author-sidebar{
        position: fixed;
        top: 0; left: 0;
        height: 100vh;
        width: min(90vw, 360px);
        background: #fff;
        z-index: 100001;
        overflow: auto;
        box-shadow: 0 10px 30px rgba(0,0,0,.2);
        transform: translateX(-100%);
        transition: transform .28s ease;
    }

    /* გახსნილი მდგომარეობა */
    .ag-filters-open #ag-offcanvas-filters{
        transform: translateX(0);
    }

    /* Overlay */
    .ag-filters-overlay{
        position: fixed; inset: 0;
        background: rgba(0,0,0,.35);
        z-index: 100000;
        display: none;
    }
    .ag-filters-open .ag-filters-overlay{
        display:block;
    }

    .ag-filters-open .agro-start-author-product{
        will-change: filter;
        filter: blur(0px);
    }

    .ag-filter-close {
        display: flex !important;
        width: 100%;
        text-align: end;
        justify-content: flex-end !important;
    }
}

/* ≥1024px: ჩვეულებრივი sidebar; overlay/ღილაკი არ ჩანს */
@media (min-width: 1024px){
    .ag-filters-overlay{
        display:none !important;
    }
    .ag-filter-trigger{
        display:none !important;
    }
}

