/* Mokkalas vendor storefront compatibility for ParsKala + current Dokan.
   Scoped to Dokan store pages so the rest of the theme remains unchanged. */
body.pkd-dokan-store-page {
    --pkds-accent: #f4b63d;
    --pkds-accent-dark: #d8a22f;
    --pkds-accent-soft: #fff7e4;
    --pkds-accent-contrast: #202522;
    --pkds-line: #e7ebea;
    --pkds-text: #28302e;
    --pkds-muted: #79827f;
    --pkds-card: #fff;
}

body.pkd-dokan-store-page .dokan-store-wrap,
body.pkd-dokan-store-page .dokan-store-wrap.layout-left,
body.pkd-dokan-store-page .dokan-store-wrap.layout-right {
    display: block !important;
    width: min(1380px, calc(100% - 32px)) !important;
    max-width: 1380px !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 24px auto 56px !important;
    padding: 0 !important;
    float: none !important;
    position: relative !important;
    overflow: visible !important;
    direction: rtl !important;
}

body.pkd-dokan-store-page #dokan-primary,
body.pkd-dokan-store-page .dokan-single-store,
body.pkd-dokan-store-page #dokan-content,
body.pkd-dokan-store-page .store-page-wrap,
body.pkd-dokan-store-page .seller-items {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    float: none !important;
    clear: both !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

/* Clean vendor identity card. */
body.pkd-dokan-store-page .pkd-store-hero.seller-info-box {
    display: grid !important;
    grid-template-columns: 112px minmax(0, 1fr) auto !important;
    grid-template-areas: "avatar copy actions" !important;
    align-items: center !important;
    gap: 20px !important;
    min-height: 146px !important;
    height: auto !important;
    margin: 0 0 18px !important;
    padding: 20px 22px !important;
    background: linear-gradient(135deg, #ffffff 0%, #fbfefc 100%) !important;
    border: 1px solid var(--pkds-line) !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 35px rgba(35, 58, 49, .055) !important;
    overflow: hidden !important;
    text-align: right !important;
}
body.pkd-dokan-store-page .pkd-store-avatar.seller-info-box-header {
    grid-area: avatar !important;
    display: block !important;
    width: 104px !important;
    height: 104px !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    position: static !important;
}
body.pkd-dokan-store-page .pkd-store-avatar .seller-info-box-avatar {
    display: block !important;
    position: static !important;
    width: 104px !important;
    height: 104px !important;
    margin: 0 !important;
    padding: 5px !important;
    transform: none !important;
    border: 1px solid #dce6e2 !important;
    border-radius: 18px !important;
    background: #fff !important;
    overflow: hidden !important;
    box-shadow: none !important;
}
body.pkd-dokan-store-page .pkd-store-avatar .seller-info-box-avatar img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: cover !important;
    border-radius: 13px !important;
}
body.pkd-dokan-store-page .pkd-store-copy.vendors-names {
    grid-area: copy !important;
    display: block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    text-align: right !important;
    position: static !important;
}
body.pkd-dokan-store-page .pkd-store-kicker {
    display: block;
    margin-bottom: 3px;
    color: var(--pkds-accent-dark);
    font-size: 11px;
    font-weight: 700;
}
body.pkd-dokan-store-page .pkd-store-copy .seller-info-box-username {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--pkds-text) !important;
    text-align: right !important;
    font-size: clamp(20px, 2vw, 27px) !important;
    line-height: 1.6 !important;
    font-weight: 850 !important;
    letter-spacing: -.3px !important;
}
body.pkd-dokan-store-page .pkd-store-address.seller-info-box-registrations-date {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    max-width: 720px !important;
    margin: 7px 0 0 !important;
    padding: 0 !important;
    color: var(--pkds-muted) !important;
    text-align: right !important;
    font-size: 12px !important;
    line-height: 1.8 !important;
    overflow: visible !important;
}
body.pkd-dokan-store-page .pkd-store-meta-icon { color: var(--pkds-accent); font-size: 18px; }
body.pkd-dokan-store-page .pkd-store-actions.vendors-links {
    grid-area: actions !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    flex-direction: column !important;
    gap: 9px !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    position: static !important;
}
body.pkd-dokan-store-page .pkd-store-actions a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    min-height: 40px !important;
    padding: 0 14px !important;
    border-radius: 11px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
}
body.pkd-dokan-store-page .pkd-store-phone { color: #4e5955 !important; background: #f7f9f8 !important; border: 1px solid var(--pkds-line) !important; }
body.pkd-dokan-store-page .pkd-store-home { color: #fff !important; background: linear-gradient(135deg, #12cb73, #07ad60) !important; border: 1px solid transparent !important; }

/* Filter/search area created by current Dokan.
   Only the OUTER wrapper is a card. In v2.1 the order/search result wrappers
   inherited the same card border, which produced the visible "frame inside a
   frame" effect. */
body.pkd-dokan-store-page .dokan-store-products-filter-area {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 0 18px !important;
    padding: 14px !important;
    border: 1px solid var(--pkds-line) !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 6px 22px rgba(35,58,49,.025) !important;
    box-sizing: border-box !important;
}

/* Nested Dokan wrappers are layout helpers, not visual cards. */
body.pkd-dokan-store-page .dokan-store-products-filter-area #dokan-store-products-search-result,
body.pkd-dokan-store-page .dokan-store-products-filter-area .dokan-store-products-ordeby,
body.pkd-dokan-store-page .dokan-store-products-filter-area .dokan-store-products-orderby,
body.pkd-dokan-store-page #dokan-store-products-search-result,
body.pkd-dokan-store-page .dokan-store-products-ordeby,
body.pkd-dokan-store-page .dokan-store-products-orderby {
    float: none !important;
    width: auto !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
body.pkd-dokan-store-page #dokan-store-products-search-result:empty {
    display: none !important;
}

body.pkd-dokan-store-page .dokan-store-products-filter-area {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}
body.pkd-dokan-store-page .dokan-store-products-filter-area form,
body.pkd-dokan-store-page .dokan-store-products-filter-area .dokan-form-group {
    margin: 0 !important;
}
body.pkd-dokan-store-page .dokan-store-products-filter-area form {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
}
body.pkd-dokan-store-page .dokan-store-products-filter-area input,
body.pkd-dokan-store-page .dokan-store-products-filter-area select,
body.pkd-dokan-store-page .dokan-store-products-filter-area button {
    min-height: 42px !important;
    margin: 0 !important;
    border-radius: 11px !important;
    box-sizing: border-box !important;
}
body.pkd-dokan-store-page .dokan-store-products-filter-area input[type="text"],
body.pkd-dokan-store-page .dokan-store-products-filter-area input[type="search"] {
    min-width: 230px !important;
    padding: 0 12px !important;
    border: 1px solid #e3e7e6 !important;
    background: #fff !important;
}
body.pkd-dokan-store-page .dokan-store-products-filter-area select {
    min-width: 180px !important;
    padding-inline: 12px 34px !important;
    border: 1px solid #e3e7e6 !important;
    background-color: #fff !important;
}
body.pkd-dokan-store-page .dokan-store-products-filter-area button,
body.pkd-dokan-store-page .dokan-store-products-filter-area .dokan-btn {
    padding-inline: 20px !important;
    background: var(--pkds-accent) !important;
    border-color: var(--pkds-accent) !important;
    color: #fff !important;
}

/* Product cards: remove ParsKala's fixed 28rem height and absolute swatch bars. */
body.pkd-dokan-store-page .seller-items {
    margin-top: 18px !important;
    order: initial !important;
}
body.pkd-dokan-store-page .seller-items ul.products,
body.pkd-dokan-store-page #dokan-content ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    clear: both !important;
}
body.pkd-dokan-store-page .seller-items ul.products::before,
body.pkd-dokan-store-page .seller-items ul.products::after,
body.pkd-dokan-store-page #dokan-content ul.products::before,
body.pkd-dokan-store-page #dokan-content ul.products::after {
    display: none !important;
    content: none !important;
}
body.pkd-dokan-store-page .seller-items ul.products li.product,
body.pkd-dokan-store-page #dokan-content ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    float: none !important;
    clear: none !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 14px !important;
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    background: #fff !important;
    border: 1px solid var(--pkds-line) !important;
    border-radius: 17px !important;
    box-shadow: 0 7px 24px rgba(35, 58, 49, .035) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}
body.pkd-dokan-store-page .seller-items ul.products li.product > a,
body.pkd-dokan-store-page #dokan-content ul.products li.product > a {
    display: block !important;
    width: 100% !important;
    color: inherit !important;
    text-decoration: none !important;
}
body.pkd-dokan-store-page .seller-items ul.products li.product img,
body.pkd-dokan-store-page #dokan-content ul.products li.product img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    margin: 0 auto 12px !important;
    padding: 0 !important;
    position: static !important;
    transform: none !important;
}
body.pkd-dokan-store-page .seller-items ul.products li.product .woocommerce-loop-product__title,
body.pkd-dokan-store-page #dokan-content ul.products li.product .woocommerce-loop-product__title {
    min-height: 48px !important;
    margin: 2px 0 8px !important;
    padding: 0 !important;
    color: #333b38 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.85 !important;
    text-align: right !important;
}
body.pkd-dokan-store-page .seller-items ul.products li.product .price,
body.pkd-dokan-store-page #dokan-content ul.products li.product .price {
    display: block !important;
    margin: auto 0 10px !important;
    color: #222a27 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-align: left !important;
    direction: rtl !important;
}
body.pkd-dokan-store-page .seller-items ul.products li.product .button,
body.pkd-dokan-store-page #dokan-content ul.products li.product .button,
body.pkd-dokan-store-page .seller-items ul.products li.product .add_to_cart_button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 11px !important;
    color: #fff !important;
    background: var(--pkds-accent) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}
body.pkd-dokan-store-page .seller-items ul.products li.product .star-rating { margin: 0 0 8px auto !important; }

/* ParsKala variation swatches were positioned absolutely in a vertical strip;
   on a Dokan store loop that can turn into full-width colour bars. */
body.pkd-dokan-store-page .prk-archive-swatches {
    position: static !important;
    inset: auto !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
    height: auto !important;
    margin: 7px 0 10px !important;
    padding: 0 !important;
    transform: none !important;
}
body.pkd-dokan-store-page .prk-archive-swatch {
    display: inline-block !important;
    position: relative !important;
    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(0,0,0,.11) !important;
    border-radius: 50% !important;
    overflow: visible !important;
}
body.pkd-dokan-store-page .prk-archive-swatch .tooltiptext {
    width: auto !important;
    max-width: 140px !important;
    height: auto !important;
    padding: 3px 7px !important;
    background: #39413f !important;
    color: #fff !important;
    border-radius: 6px !important;
    font-size: 10px !important;
    line-height: 1.6 !important;
    white-space: nowrap !important;
}
body.pkd-dokan-store-page .prk_swatches-divider { margin: 0 3px 0 0 !important; font-size: 10px !important; }

body.pkd-dokan-store-page nav#nav-below,
body.pkd-dokan-store-page .dokan-pagination-container {
    clear: both !important;
    width: 100% !important;
    margin: 24px 0 0 !important;
    order: initial !important;
}

@media (max-width: 1100px) {
    body.pkd-dokan-store-page .seller-items ul.products,
    body.pkd-dokan-store-page #dokan-content ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 820px) {
    body.pkd-dokan-store-page .pkd-store-hero.seller-info-box {
        grid-template-columns: 88px minmax(0,1fr) !important;
        grid-template-areas: "avatar copy" "actions actions" !important;
        gap: 14px !important;
        padding: 16px !important;
    }
    body.pkd-dokan-store-page .pkd-store-avatar.seller-info-box-header,
    body.pkd-dokan-store-page .pkd-store-avatar .seller-info-box-avatar { width: 82px !important; height: 82px !important; }
    body.pkd-dokan-store-page .pkd-store-actions.vendors-links { align-items: stretch !important; flex-direction: row !important; }
    body.pkd-dokan-store-page .seller-items ul.products,
    body.pkd-dokan-store-page #dokan-content ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 520px) {
    body.pkd-dokan-store-page .dokan-store-wrap { width: min(100% - 20px, 1380px) !important; margin-top: 14px !important; }
    body.pkd-dokan-store-page .seller-items ul.products,
    body.pkd-dokan-store-page #dokan-content ul.products { grid-template-columns: 1fr !important; gap: 12px !important; }
    body.pkd-dokan-store-page .pkd-store-actions.vendors-links { flex-direction: column !important; }
}


/* v2.2 storefront stability */
body.pkd-dokan-store-page .seller-items ul.products li.product::before,
body.pkd-dokan-store-page .seller-items ul.products li.product::after,
body.pkd-dokan-store-page #dokan-content ul.products li.product::before,
body.pkd-dokan-store-page #dokan-content ul.products li.product::after {
    max-width: 100% !important;
}

/* ParsKala can leave small coloured strips from archive add-to-cart helpers.
   Keep those helpers inside the product card and behind the actual buttons. */
body.pkd-dokan-store-page .seller-items ul.products li.product .product-cart,
body.pkd-dokan-store-page #dokan-content ul.products li.product .product-cart,
body.pkd-dokan-store-page .seller-items ul.products li.product .quick_add2cart,
body.pkd-dokan-store-page #dokan-content ul.products li.product .quick_add2cart {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    transform: none !important;
}

/* Search suggestions may be populated dynamically; when they contain content
   they should sit below the controls without drawing a second outer frame. */
body.pkd-dokan-store-page #dokan-store-products-search-result:not(:empty) {
    flex: 1 0 100% !important;
    width: 100% !important;
    margin-top: 8px !important;
    padding: 8px 0 0 !important;
    border-top: 1px solid #eef1f0 !important;
}

@media (max-width: 700px) {
    body.pkd-dokan-store-page .dokan-store-products-filter-area {
        align-items: stretch !important;
    }
    body.pkd-dokan-store-page .dokan-store-products-filter-area form,
    body.pkd-dokan-store-page .dokan-store-products-filter-area .dokan-store-products-ordeby,
    body.pkd-dokan-store-page .dokan-store-products-filter-area .dokan-store-products-orderby {
        width: 100% !important;
    }
    body.pkd-dokan-store-page .dokan-store-products-filter-area input[type="text"],
    body.pkd-dokan-store-page .dokan-store-products-filter-area input[type="search"],
    body.pkd-dokan-store-page .dokan-store-products-filter-area select {
        min-width: 0 !important;
        width: 100% !important;
    }
}

/* =========================================================
   v2.3 — Elementor/Swiper style vendor products carousel
   ========================================================= */
body.pkd-dokan-store-page .seller-items {
    margin-top: 20px !important;
    overflow: visible !important;
}
body.pkd-dokan-store-page .pkd-store-carousel {
    width: 100%;
    margin: 0 0 26px;
    padding: 0;
    direction: rtl;
}
body.pkd-dokan-store-page .pkd-store-carousel__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    padding: 0 4px;
}
body.pkd-dokan-store-page .pkd-store-carousel__head span {
    display: block;
    margin-bottom: 3px;
    color: #9a7460;
    font-size: 10px;
    font-weight: 700;
}
body.pkd-dokan-store-page .pkd-store-carousel__head h2 {
    margin: 0 !important;
    padding: 0 0 10px !important;
    position: relative;
    border: 0 !important;
    color: #252b29 !important;
    font-size: 18px !important;
    line-height: 1.55 !important;
    font-weight: 850 !important;
}
body.pkd-dokan-store-page .pkd-store-carousel__head h2::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 74px;
    height: 2px;
    border-radius: 4px;
    background: #f5b83d;
}
body.pkd-dokan-store-page .pkd-store-carousel__nav {
    display: flex;
    align-items: center;
    gap: 8px;
    direction: ltr;
}
body.pkd-dokan-store-page .pkd-store-carousel__nav button {
    width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    display: grid !important;
    place-items: center;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #e4e7e6 !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #8b9491 !important;
    font: 400 26px/1 Arial !important;
    box-shadow: 0 4px 14px rgba(35, 48, 43, .04) !important;
    cursor: pointer;
    transition: .18s ease;
}
body.pkd-dokan-store-page .pkd-store-carousel__nav button:hover {
    color: #fff !important;
    border-color: var(--pkds-accent) !important;
    background: var(--pkds-accent) !important;
}
body.pkd-dokan-store-page .pkd-store-carousel__nav .swiper-button-disabled {
    opacity: .38 !important;
    cursor: default !important;
}
body.pkd-dokan-store-page .pkd-products-swiper {
    width: 100%;
    overflow: hidden;
    padding: 3px 2px 10px;
}

/* Cancel the v2.2 grid only for the enhanced list. */
body.pkd-dokan-store-page .seller-items ul.products.pkd-products-track,
body.pkd-dokan-store-page #dokan-content ul.products.pkd-products-track {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: stretch !important;
    direction: rtl !important;
    list-style: none !important;
}
body.pkd-dokan-store-page .pkd-products-track > li.pkd-product-card {
    display: block !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    background: transparent !important;
}
body.pkd-dokan-store-page .pkd-product-card__inner {
    height: 100%;
    min-height: 390px;
    display: flex;
    flex-direction: column;
    padding: 13px;
    border: 1px solid #e3e6e5;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(40, 54, 49, .035);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
body.pkd-dokan-store-page .pkd-product-card__inner:hover {
    transform: translateY(-2px);
    border-color: #d9dfdd;
    box-shadow: 0 12px 34px rgba(40, 54, 49, .07);
}
body.pkd-dokan-store-page .pkd-product-card__media {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: 218px;
    margin: 0 0 10px !important;
    padding: 8px !important;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}
body.pkd-dokan-store-page .pkd-product-card__media img.pkd-product-card__image {
    width: 100% !important;
    max-width: 205px !important;
    height: 100% !important;
    max-height: 202px !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    transform: none !important;
}
body.pkd-dokan-store-page .pkd-product-card__sale {
    position: absolute;
    z-index: 2;
    top: 8px;
    right: 8px;
    min-width: 38px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border-radius: 8px;
    color: var(--pkds-accent-contrast, #fff);
    background: var(--pkds-accent);
    font-size: 10px;
    font-weight: 850;
}
body.pkd-dokan-store-page .pkd-product-card__body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 2px 3px 3px;
}
body.pkd-dokan-store-page .pkd-product-card__category {
    min-height: 17px;
    margin-bottom: 4px;
    color: #9ba3a0;
    font-size: 9.5px;
    font-weight: 600;
}
body.pkd-dokan-store-page .pkd-product-card__title {
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 49px;
    margin: 0 0 10px !important;
    overflow: hidden;
    color: #2f3533 !important;
    font-size: 12.5px !important;
    font-weight: 750 !important;
    line-height: 1.95 !important;
    text-decoration: none !important;
}
body.pkd-dokan-store-page .pkd-product-card__footer {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    direction: rtl;
}
body.pkd-dokan-store-page .pkd-product-card__price {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 3px 6px;
    color: #242a28 !important;
    font-size: 12px !important;
    font-weight: 850 !important;
    line-height: 1.75;
    direction: rtl;
}
body.pkd-dokan-store-page .pkd-product-card__price del {
    order: 1;
    width: 100%;
    color: #a2aaa7 !important;
    font-size: 9.5px !important;
    font-weight: 500 !important;
    opacity: 1 !important;
}
body.pkd-dokan-store-page .pkd-product-card__price ins {
    order: 2;
    color: #252b29 !important;
    font-weight: 850 !important;
    text-decoration: none !important;
}
body.pkd-dokan-store-page .pkd-product-card__price .woocommerce-Price-amount {
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
}
body.pkd-dokan-store-page .pkd-product-card__no-price {
    color: #8d9693;
    font-weight: 650;
}
body.pkd-dokan-store-page .pkd-product-card__action {
    flex: 0 0 42px;
    width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    display: grid !important;
    place-items: center;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 11px !important;
    background: var(--pkds-accent) !important;
    color: #fff !important;
    box-shadow: none !important;
    text-decoration: none !important;
    transition: .18s ease;
}
body.pkd-dokan-store-page .pkd-product-card__action:hover {
    background: var(--pkds-accent-dark) !important;
    color: #fff !important;
    transform: translateY(-1px);
}
body.pkd-dokan-store-page .pkd-product-card__action svg {
    width: 18px !important;
    height: 18px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.7 !important;
    stroke-linecap: round;
    stroke-linejoin: round;
}
body.pkd-dokan-store-page .pkd-product-card__action.loading {
    opacity: .65;
    pointer-events: none;
}
body.pkd-dokan-store-page .pkd-product-card__action.added::after {
    content: "✓";
    font-size: 16px;
    font-weight: 800;
}
body.pkd-dokan-store-page .pkd-product-card__action.added svg {
    display: none !important;
}

/* Native scroll-snap fallback if Elementor/Swiper is unavailable. */
body.pkd-dokan-store-page .pkd-products-swiper.pkd-carousel-fallback {
    overflow-x: auto !important;
    scrollbar-width: thin;
    scroll-snap-type: x mandatory;
}
body.pkd-dokan-store-page .pkd-products-swiper.pkd-carousel-fallback .pkd-products-track {
    width: max-content !important;
}
body.pkd-dokan-store-page .pkd-products-swiper.pkd-carousel-fallback .pkd-product-card {
    width: min(270px, 78vw) !important;
    scroll-snap-align: start;
}
body.pkd-dokan-store-page .pkd-products-swiper.pkd-carousel-fallback + * {
    clear: both;
}

@media (max-width: 767px) {
    body.pkd-dokan-store-page .pkd-store-carousel__head h2 { font-size: 16px !important; }
    body.pkd-dokan-store-page .pkd-product-card__inner { min-height: 350px; padding: 11px; }
    body.pkd-dokan-store-page .pkd-product-card__media { height: 190px; }
    body.pkd-dokan-store-page .pkd-store-carousel__nav button { width: 34px !important; height: 34px !important; min-height: 34px !important; }
}

/* v2.4: every carousel action follows ParsKala's primary corporate colour.
   Extra specificity prevents legacy theme product-type rules from painting
   individual buttons green/red. */
body.pkd-dokan-store-page .woocommerce ul.products.pkd-products-track li.product a.pkd-product-card__action,
body.pkd-dokan-store-page #dokan-content ul.products.pkd-products-track li.product a.pkd-product-card__action,
body.pkd-dokan-store-page .seller-items ul.products.pkd-products-track li.product a.pkd-product-card__action {
    background-color: var(--pkds-accent) !important;
    background-image: none !important;
    border-color: var(--pkds-accent) !important;
    color: var(--pkds-accent-contrast, #fff) !important;
}
body.pkd-dokan-store-page .woocommerce ul.products.pkd-products-track li.product a.pkd-product-card__action:hover,
body.pkd-dokan-store-page #dokan-content ul.products.pkd-products-track li.product a.pkd-product-card__action:hover,
body.pkd-dokan-store-page .seller-items ul.products.pkd-products-track li.product a.pkd-product-card__action:hover {
    background-color: var(--pkds-accent-dark) !important;
    background-image: none !important;
    border-color: var(--pkds-accent-dark) !important;
}
body.pkd-dokan-store-page .pkd-product-card__sale {
    background-color: var(--pkds-accent) !important;
    color: var(--pkds-accent-contrast, #fff) !important;
}

/* =========================================================
   v2.5 — static store banner + 20-product infinite grid
   ========================================================= */
body.pkd-dokan-store-page .pkd-store-banner {
    position: relative;
    width: 100%;
    height: clamp(190px, 24vw, 330px);
    margin: 0 0 18px;
    overflow: hidden;
    border: 1px solid var(--pkds-line);
    border-radius: 22px;
    background: linear-gradient(135deg, var(--pkds-accent-dark), var(--pkds-accent));
    box-shadow: 0 12px 38px rgba(35, 58, 49, .08);
}
body.pkd-dokan-store-page .pkd-store-banner img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
}
body.pkd-dokan-store-page .pkd-store-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(15, 22, 20, .54), rgba(15, 22, 20, .04) 68%);
}
body.pkd-dokan-store-page .pkd-store-banner--fallback::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    left: -100px;
    top: -210px;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
}
body.pkd-dokan-store-page .pkd-store-banner figcaption {
    position: absolute;
    z-index: 2;
    right: 28px;
    bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    max-width: min(580px, calc(100% - 56px));
    color: #fff;
    text-align: right;
    text-shadow: 0 2px 12px rgba(0,0,0,.28);
}
body.pkd-dokan-store-page .pkd-store-banner figcaption span {
    font-size: 11px;
    font-weight: 700;
    opacity: .9;
}
body.pkd-dokan-store-page .pkd-store-banner figcaption strong {
    font-size: clamp(22px, 3vw, 38px);
    line-height: 1.5;
    font-weight: 900;
}

body.pkd-dokan-store-page .seller-items ul.products.pkd-products-grid,
body.pkd-dokan-store-page #dokan-content ul.products.pkd-products-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 18px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.pkd-dokan-store-page .seller-items ul.products.pkd-products-grid > li.pkd-product-card,
body.pkd-dokan-store-page #dokan-content ul.products.pkd-products-grid > li.pkd-product-card,
body.pkd-dokan-store-page .seller-items ul.products > li.pkd-product-card,
body.pkd-dokan-store-page #dokan-content ul.products > li.pkd-product-card {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}
body.pkd-dokan-store-page .pkd-products-grid .pkd-product-card__inner,
body.pkd-dokan-store-page ul.products > li.pkd-product-card .pkd-product-card__inner {
    min-height: 390px;
}

body.pkd-dokan-store-page .pkd-infinite-source {
    display: none !important;
}
body.pkd-dokan-store-page .pkd-infinite-status {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 78px;
    margin: 18px 0 0;
    color: var(--pkds-muted);
    font-size: 12px;
    text-align: center;
}
body.pkd-dokan-store-page .pkd-infinite-status__button {
    min-height: 44px !important;
    padding: 0 22px !important;
    border: 1px solid var(--pkds-accent) !important;
    border-radius: 12px !important;
    background: var(--pkds-accent) !important;
    color: var(--pkds-accent-contrast) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    cursor: pointer;
}
body.pkd-dokan-store-page .pkd-infinite-status--loading .pkd-infinite-status__button {
    opacity: .68;
    cursor: wait;
}
body.pkd-dokan-store-page .pkd-infinite-status--done {
    min-height: 52px;
    border-top: 1px solid #eef1f0;
}

@media (max-width: 1100px) {
    body.pkd-dokan-store-page .seller-items ul.products.pkd-products-grid,
    body.pkd-dokan-store-page #dokan-content ul.products.pkd-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 820px) {
    body.pkd-dokan-store-page .seller-items ul.products.pkd-products-grid,
    body.pkd-dokan-store-page #dokan-content ul.products.pkd-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 520px) {
    body.pkd-dokan-store-page .pkd-store-banner {
        height: 180px;
        border-radius: 17px;
    }
    body.pkd-dokan-store-page .pkd-store-banner figcaption {
        right: 18px;
        bottom: 16px;
        max-width: calc(100% - 36px);
    }
    body.pkd-dokan-store-page .seller-items ul.products.pkd-products-grid,
    body.pkd-dokan-store-page #dokan-content ul.products.pkd-products-grid {
        grid-template-columns: 1fr !important;
        gap: 13px !important;
    }
}
