/*
 * Parskala Dokan Repair 2.0
 * Scoped, high-specificity corrections for Dokan 4.x on Parskala.
 */

body.prk-dokan-repair-active .dokan-dashboard-wrap,
body.prk-dokan-repair-active .dokan-store-wrap {
    direction: rtl;
    width: min(100% - 32px, 1320px) !important;
    max-width: 1320px !important;
    margin: 32px auto !important;
    padding: 0 !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 24px !important;
    box-sizing: border-box !important;
    float: none !important;
}

body.prk-dokan-repair-active .dokan-dashboard-wrap *,
body.prk-dokan-repair-active .dokan-store-wrap * {
    box-sizing: border-box;
}

/* Seller dashboard */
body.prk-dokan-repair-active .dokan-dashboard-wrap .dokan-dash-sidebar {
    flex: 0 0 260px !important;
    width: 260px !important;
    float: none !important;
    position: relative !important;
    inset: auto !important;
    margin: 0 !important;
    overflow: hidden !important;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 28px rgba(15, 23, 42, .06) !important;
}

body.prk-dokan-repair-active .dokan-dashboard-wrap .dokan-dashboard-content {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    float: none !important;
    margin: 0 !important;
    padding: 24px !important;
    position: relative !important;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 28px rgba(15, 23, 42, .06) !important;
}

body.prk-dokan-repair-active .dokan-dashboard-menu {
    width: 100% !important;
    margin: 0 !important;
    padding: 10px !important;
    list-style: none !important;
}

body.prk-dokan-repair-active .dokan-dashboard-menu li {
    display: block !important;
    width: 100% !important;
    margin: 2px 0 !important;
    padding: 0 !important;
    float: none !important;
    list-style: none !important;
    border: 0 !important;
}

body.prk-dokan-repair-active .dokan-dashboard-menu li a {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    width: 100% !important;
    min-height: 44px !important;
    padding: 10px 12px !important;
    color: #334155 !important;
    background: transparent !important;
    border-radius: 10px !important;
    text-decoration: none !important;
}

body.prk-dokan-repair-active .dokan-dashboard-menu li.active > a,
body.prk-dokan-repair-active .dokan-dashboard-menu li a:hover {
    color: #fff !important;
    background: #0f8ff2 !important;
}

body.prk-dokan-repair-active .dashboard-content-area,
body.prk-dokan-repair-active .dokan-dashboard-content article {
    width: 100% !important;
    min-width: 0 !important;
}

body.prk-dokan-repair-active .dokan-w6 {
    width: 50% !important;
    padding: 8px !important;
}

/* Public vendor store */
body.prk-dokan-repair-active .dokan-store-wrap .dokan-store-sidebar {
    flex: 0 0 280px !important;
    width: 280px !important;
    float: none !important;
    margin: 0 !important;
}

body.prk-dokan-repair-active .dokan-store-wrap .dokan-single-store {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    float: none !important;
    margin: 0 !important;
}

body.prk-dokan-repair-active .dokan-store-wrap #dokan-content {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
}

body.prk-dokan-repair-active .dokan-store-wrap .profile-frame,
body.prk-dokan-repair-active .dokan-store-wrap .seller-info-box {
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 24px !important;
    overflow: hidden !important;
    border-radius: 16px !important;
}

body.prk-dokan-repair-active .dokan-store-products-filter-area,
body.prk-dokan-repair-active .dokan-store-products-ordeby {
    width: 100% !important;
    max-width: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    float: none !important;
    margin: 0 0 24px !important;
}

body.prk-dokan-repair-active .dokan-store-products-ordeby .product-name-search {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 160px !important;
}

body.prk-dokan-repair-active .dokan-store-wrap .seller-items,
body.prk-dokan-repair-active .dokan-store-wrap ul.products {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    clear: both !important;
}

body.prk-dokan-repair-active .dokan-store-wrap ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.prk-dokan-repair-active .dokan-store-wrap ul.products::before,
body.prk-dokan-repair-active .dokan-store-wrap ul.products::after {
    display: none !important;
}

body.prk-dokan-repair-active .dokan-store-wrap ul.products li.product {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    float: none !important;
    margin: 0 !important;
    position: relative !important;
}

body.prk-dokan-repair-active .dokan-store-wrap ul.products li.product img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto 12px !important;
}

@media (max-width: 991px) {
    body.prk-dokan-repair-active .dokan-dashboard-wrap,
    body.prk-dokan-repair-active .dokan-store-wrap {
        gap: 16px !important;
    }

    body.prk-dokan-repair-active .dokan-store-wrap ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767px) {
    body.prk-dokan-repair-active .dokan-dashboard-wrap,
    body.prk-dokan-repair-active .dokan-store-wrap {
        width: min(100% - 20px, 1320px) !important;
        margin: 18px auto !important;
        flex-direction: column !important;
    }

    body.prk-dokan-repair-active .dokan-dashboard-wrap .dokan-dash-sidebar,
    body.prk-dokan-repair-active .dokan-dashboard-wrap .dokan-dashboard-content,
    body.prk-dokan-repair-active .dokan-store-wrap .dokan-store-sidebar,
    body.prk-dokan-repair-active .dokan-store-wrap .dokan-single-store {
        flex: 0 0 auto !important;
        width: 100% !important;
    }

    body.prk-dokan-repair-active .dokan-w6 {
        width: 100% !important;
        float: none !important;
    }

    body.prk-dokan-repair-active .dokan-store-products-ordeby {
        align-items: stretch !important;
        flex-wrap: wrap !important;
    }

    body.prk-dokan-repair-active .dokan-store-wrap ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
}

@media (max-width: 480px) {
    body.prk-dokan-repair-active .dokan-store-wrap ul.products {
        grid-template-columns: 1fr !important;
    }
}
