/* =========================================================
   PRODUCT LISTING PAGES — unified stylesheet for all
   product archive/listing pages on this site.

   Install: wp-content/themes/motta-child/assets/css/dokan-dynamic-pages.css
   Loaded automatically by dokan-extended-permalinks.php on:
     - /products/{category}         (body.tax-product_cat)
     - /products/{cat}/{fam}        (body.tax-product_cat or dpp2)
     - /products/ct/...             (.dpp2-facet-archive)
     - /products/.../product-family/... (.dpp2-vendor-family-archive)
     - /offers/...                  (.dpp2-base-offers)
   This is the SINGLE source of truth for product card and archive
   page styling. Do not add product-listing CSS elsewhere.

   Tokens matched directly to jewelxy-product-page.css:
   muted gold #c9a96a, 4px radius, lift-only hover (no glow/shadow ramp).

   Body classes on these pages:
     Standard WooCommerce:
       .tax-product_cat              — /products/{category}
       .archive.woocommerce          — any WooCommerce archive
     Dynamic pages (dokan-extended-permalinks.php):
       .dpp2-dynamic-page            — all dynamic pages
       .dpp2-facet-archive           — /ct/{cat}/{facet-type}/{value}
       .dpp2-vendor-family-archive   — .../{vendor}/product-family/{family}
       .dpp2-vendor-product          — .../{vendor}/{product-slug}
       .dpp2-offers-category-archive — /offers/{category}
       .dpp2-base-products           — under /products/...
       .dpp2-base-offers             — under /offers/...
   ========================================================= */


/* =========================================================
   1. DESIGN TOKENS — unified with product.css
   Same names and values as product.css so a single token
   change propagates to both listing pages and product pages.
   ========================================================= */
:root {
    --gold:       #c9a96a;
    --gold-dark:  #b08e4a;
    --gold-soft:  #e9d9b3;

    --text:       #2b2b2b;
    --text-mute:  #6a6a6a;
    --text-light: #8a8a8a;

    --line:       #e6e6e6;
    --line-soft:  #efefef;
    --card:       #ffffff;

    --shadow:     0 1px 3px rgba(0, 0, 0, .04), 0 1px 2px rgba(0, 0, 0, .03);
    --radius:     4px;
}


/* =========================================================
   2. PAGE WRAPPER — shared across ALL listing page types
   ========================================================= */

/* Breadcrumb */
.tax-product_cat .woocommerce-breadcrumb,
.dpp2-dynamic-page .woocommerce-breadcrumb {
    margin-bottom: 28px !important;
    font-size: 13px;
    color: var(--text-mute);
}

.tax-product_cat .woocommerce-breadcrumb a,
.dpp2-dynamic-page .woocommerce-breadcrumb a {
    color: var(--gold-dark);
    text-decoration: none;
}

.tax-product_cat .woocommerce-breadcrumb a:hover,
.dpp2-dynamic-page .woocommerce-breadcrumb a:hover {
    text-decoration: underline;
}

/* Archive title */
.tax-product_cat .page-title,
.tax-product_cat .woocommerce-products-header__title,
.dpp2-dynamic-page .page-title,
.dpp2-dynamic-page .woocommerce-products-header__title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 16px;
}


/* =========================================================
   4. INLINE BANNERS — toast-style, same pattern as the
   wcboost/WooCommerce notice toast in jewelxy-product-page.css
   ========================================================= */

.tax-product_cat .pl-banner,
.dpp2-dynamic-page .dpp2-banner,
.dpp2-dynamic-page .pl-banner {
    display: block;
    background: #fff;
    border: 1px solid var(--gold-soft);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 12px 18px;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 20px;
}

.tax-product_cat .pl-banner strong,
.dpp2-dynamic-page .dpp2-banner strong,
.dpp2-dynamic-page .pl-banner strong {
    color: var(--gold-dark);
}

.tax-product_cat .pl-banner a,
.dpp2-dynamic-page .dpp2-banner a,
.dpp2-dynamic-page .pl-banner a {
    color: var(--text-mute);
    text-decoration: underline;
    margin-left: 10px;
}

.tax-product_cat .pl-banner a:hover,
.dpp2-dynamic-page .dpp2-banner a:hover,
.dpp2-dynamic-page .pl-banner a:hover {
    color: var(--gold-dark);
}


/* =========================================================
   5. PILL TAGS — vendor-type, facet labels, etc.
   Same shape as .jewelxy-seller-card__link: thin gold-soft
   border, pill radius, small capitalised label.
   ========================================================= */

.pl-pill-tag,
.dpp2-vendor-type-tag,
.dpp2-vendor-type-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border: 1px solid var(--gold-soft);
    border-radius: 14px;
    color: var(--gold-dark);
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
    margin-bottom: 12px;
}


/* =========================================================
   6. OFFERS PAGES — sale flash override + shared banner slot
   ========================================================= */

.dpp2-base-offers .pl-product-card .pl-card-link .onsale {
    background: var(--gold) !important;
    color: #fff !important;
    font-weight: 600;
    font-size: 11px;
    border-radius: var(--radius);
}


/* =========================================================
   7. RESPONSIVE — breakpoints matched to jewelxy-product-page.css
   ========================================================= */

@media (max-width: 1024px) {
}

@media (max-width: 760px) {

    .tax-product_cat .pl-banner,
    .dpp2-dynamic-page .dpp2-banner,
    .dpp2-dynamic-page .pl-banner {
        font-size: 13px;
        padding: 10px 14px;
    }
}


/* =========================================================
   HIDE PAGE TITLE — on all product listing pages
   Targets every element Motta might use to render a title
   above the product grid.
   ========================================================= */

.tax-product_cat .woocommerce-products-header,
.tax-product_cat .woocommerce-products-header__title,
.tax-product_cat .page-title,
.tax-product_cat .entry-title,
.tax-product_cat .motta-page-header,
.tax-product_cat .motta-page-header__title,
.dpp2-dynamic-page .woocommerce-products-header,
.dpp2-dynamic-page .woocommerce-products-header__title,
.dpp2-dynamic-page .page-title,
.dpp2-dynamic-page .entry-title,
.dpp2-dynamic-page .motta-page-header,
.dpp2-dynamic-page .motta-page-header__title,
.dokan-listing-page .woocommerce-products-header,
.dokan-listing-page .woocommerce-products-header__title,
.dokan-listing-page .page-title,
.dokan-listing-page .entry-title,
.dokan-listing-page .motta-page-header,
.dokan-listing-page .motta-page-header__title {
    display: none !important;
}


/* =========================================================
   HIDE DEFAULT WOOCOMMERCE PAGINATION — replaced by View More
   ========================================================= */

.tax-product_cat .woocommerce-pagination,
.dpp2-dynamic-page .woocommerce-pagination,
.dokan-listing-page .woocommerce-pagination {
    display: none !important;
}


/* =========================================================
   HIDE DOKAN / MOTTA DEFAULT LOAD-MORE AND RESULT COUNT
   Dokan injects its own "Load More Products" button and
   WooCommerce result count on product listing pages.
   We use View More instead — suppress everything else.
   ========================================================= */

.dokan-listing-page .woocommerce-result-count,
.dokan-listing-page .dokan-product-count,
.dokan-listing-page .dokan-loadmore-wrap,
.dokan-listing-page .dokan-load-more,
.dokan-listing-page [class*="dokan-load"][class*="more"],
.dokan-listing-page [class*="motta-loadmore"],
.dokan-listing-page [class*="motta-products-loadmore"],
.dokan-listing-page #dokan-product-listing-loadmore,
.dokan-listing-page #dokan-load-more-products {
    display: none !important;
}


/* =========================================================
   SEARCH ROW — compact, no boxed background. Sits between the
   page header and the sidebar+grid layout on every listing
   page type (category, facet, vendor-type, offers).
   ========================================================= */

.pl-search-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: 0 0 20px;
    padding: 0;
    background: none;
    border: none;
}

.pl-results-count {
    font-size: 13px;
    color: var(--text-mute);
    white-space: nowrap;
    flex-shrink: 0;
}

.pl-filter-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
}

.pl-filter-select {
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 5px;
    font-size: 13px;
    font-family: inherit;
    background: var(--card);
    color: var(--text);
    appearance: auto;
    box-sizing: border-box;
    cursor: pointer;
}

.pl-filter-select:focus {
    outline: none;
    border-color: var(--gold);
}

/* Prevent the WooCommerce ordering select Motta or WC may also render
   from conflicting — hide the native one since we render our own */
.tax-product_cat .woocommerce-ordering,
.dpp2-dynamic-page .woocommerce-ordering {
    display: none !important;
}


/* =========================================================
   VIEW MORE BUTTON — ghost/outline style, matched exactly to
   .dnob-viewmore-btn in dokan-nature-of-business.php
   ========================================================= */

.pl-viewmore-wrap {
    text-align: center;
    margin: 8px 0 32px;
}

.pl-viewmore-btn {
    display: inline-block;
    padding: 6px 40px;
    background: transparent;
    color: var(--text-mute);
    border: 2px solid var(--gold);
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    line-height: normal;
    transition: background 0.2s, color 0.2s;
}

.pl-viewmore-btn:hover {
    background: var(--gold);
    color: #fff;
}

.pl-viewmore-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}


/* =========================================================
   RESPONSIVE — filter bar
   ========================================================= */

@media (max-width: 760px) {
    .pl-search-row {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .pl-filter-input {
        flex: 1 1 100%;
        max-width: none;
    }

    .pl-search-box {
        flex: 1 1 100%;
        max-width: none;
    }

    .pl-filter-select {
        flex: 1 1 100%;
    }

    .pl-filter-btn,
    .pl-filter-reset {
        flex: 1 1 auto;
    }
}


/* =========================================================
   SEARCH ROW ADDITIONS — pl-filter-input, pl-filter-btn,
   pl-filter-reset, pl-select-narrow
   Compact sizing so the search row reads as a small inline
   control, not a heavy boxed bar.
   ========================================================= */

.pl-filter-input {
    flex: 0 1 280px;
    min-width: 0;
    max-width: 280px;
    padding: 0 38px 0 12px !important;
    border: 1px solid var(--line) !important;
    border-radius: 5px !important;
    font-size: 13px !important;
    line-height: normal !important;
    font-family: inherit;
    background: var(--card);
    color: var(--text);
    height: 38px !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.pl-filter-input:focus {
    outline: none;
    border-color: var(--gold);
}

/* Search box: input + overlaid icon button, no separate text button.
   !important throughout — Motta's global form-input CSS (large padding,
   loose line-height) otherwise overrides this and inflates the box. */
.pl-search-box {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 0 1 280px;
    max-width: 280px;
    height: 38px;
}

.pl-search-box .pl-filter-input {
    width: 100% !important;
    max-width: none !important;
    height: 38px !important;
}

.pl-search-icon-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 38px !important;
    height: 38px !important;
    min-height: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    color: var(--text-mute);
    font-size: 13px;
    line-height: normal !important;
    cursor: pointer;
    transition: color 0.2s;
}

.pl-search-icon-btn:hover { color: var(--gold-dark); }
.pl-search-icon-btn:focus { outline: none; }

/* Narrow variant for the sort select */
.pl-select-narrow { flex: 0 0 140px !important; }

.pl-filter-btn {
    flex-shrink: 0;
    padding: 0 18px;
    background: var(--gold);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    height: 38px;
    transition: background 0.2s;
}

.pl-filter-btn:hover { background: var(--gold-dark); }

.pl-filter-reset {
    flex-shrink: 0;
    display: inline-block;
    padding: 0 12px;
    background: var(--line-soft);
    color: var(--text-mute);
    border: 1px solid var(--line);
    border-radius: 5px;
    font-size: 13px;
    font-family: inherit;
    text-decoration: none;
    height: 38px;
    line-height: 38px;
    box-sizing: border-box;
    transition: background 0.2s;
}

.pl-filter-reset:hover { background: var(--line); }

/* Hide the country filter wherever it still renders — kept as a flag
   slot for now, not currently shown on product listing pages */
.pl-search-row select[name="vendor_country"] { display: none !important; }


/* =========================================================
   CUSTOM-RENDERED PRODUCT PAGES — unified card, grid, header
   Used by dokan-category-pages.php and dokan-product-filters.php.
   All classes share the pl-* namespace so there is only one
   set of rules for all dynamic product listing pages.
   ========================================================= */

/* --- Breadcrumb --- */
.pl-breadcrumb {
    font-size: 13px;
    color: var(--text-mute);
    margin-bottom: 20px;
}

.pl-breadcrumb a {
    color: var(--gold-dark);
    text-decoration: none;
}

.pl-breadcrumb a:hover { text-decoration: underline; }


/* --- Page header ---
   Title is visually hidden (breadcrumb is enough on screen) but the <h1>
   stays in the DOM for SEO/accessibility — search engines and screen
   readers still see a proper page heading. */
.pl-page-header { margin-bottom: 0; }

.pl-page-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.pl-title-meta {
    font-size: 15px;
    color: var(--text-mute);
    font-weight: 400;
    margin-left: 6px;
}

.pl-page-subtitle {
    font-size: 14px;
    color: var(--text-mute);
    margin: 0;
}


/* --- Product grid --- */
ul.pl-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
}

li.pl-product-card { margin: 0; padding: 0; }

a.pl-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: var(--card);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s, transform 0.2s;
    height: 100%;
}

a.pl-card-link:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, .10);
    transform: translateY(-2px);
}


/* --- Card image --- */
.pl-card-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--line-soft);
}

.pl-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pl-card-image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--line-soft);
}


/* --- Card info --- */
.pl-card-info {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pl-card-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .15s ease;
}

a.pl-card-link:hover .pl-card-name { color: var(--gold-dark); }

.pl-card-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.pl-card-price .woocommerce-Price-amount { color: var(--gold-dark); }

.pl-card-rating { display: flex; align-items: center; gap: 6px; }

.pl-rating-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--gold);
    color: #fff;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.pl-rating-pill i { font-size: 9px; }


/* --- Vendor info strip --- */
.pl-card-vendor {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--line-soft);
}

.pl-vendor-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: contain;
    border: 1px solid var(--line-soft);
    flex-shrink: 0;
}

.pl-vendor-info { display: flex; flex-direction: column; min-width: 0; }

.pl-vendor-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pl-verified { color: #28a745; font-size: 11px; margin-left: 3px; }

.pl-vendor-location {
    font-size: 11px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 3px;
}

.pl-vendor-location i { color: var(--gold); font-size: 9px; }


/* --- Responsive — custom product grid --- */
@media (max-width: 900px) {
    ul.pl-product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    ul.pl-product-grid { grid-template-columns: 1fr; }

    .pl-search-row { flex-wrap: wrap; justify-content: flex-start; }

    .pl-filter-input,
    .pl-filter-select,
    .pl-search-box {
        flex: 1 1 100%;
        max-width: none;
        height: 38px;
    }

    .pl-filter-btn,
    .pl-filter-reset {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}


/* =========================================================
   THEME BREADCRUMB SUPPRESSION
   Hides any theme- or plugin-generated breadcrumb on custom
   listing pages. Our pl-breadcrumb replaces it entirely.
   ========================================================= */

.dokan-listing-page .breadcrumbs,
.dokan-listing-page .woocommerce-breadcrumb,
.dokan-listing-page .site-breadcrumb,
.dokan-listing-page .motta-breadcrumb,
.dokan-listing-page nav[aria-label="breadcrumb"] { display: none !important; }


/* =========================================================
   FILTER PILLS — for controls with ≤ 3 options
   Pills sit inline in the filter bar alongside <select>
   dropdowns. The hidden radio auto-submits the form.
   ========================================================= */

.pl-filter-pills {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

.pl-filter-pill {
    display: inline-block;
    padding: 0 14px;
    height: 42px;
    line-height: 42px;
    border: 1px solid var(--line);
    border-radius: 5px;
    font-size: 13px;
    font-family: inherit;
    color: var(--text-mute);
    background: #fff;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

/* Hide the native radio visually; form submits on change via JS */
.pl-filter-pill input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.pl-filter-pill:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
}

.pl-filter-pill.pl-pill-active {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
}

/* Allow search row to wrap on narrow viewports */
.pl-search-row { flex-wrap: wrap; }

@media (max-width: 600px) {
    .pl-filter-pills { flex-wrap: wrap; }
    .pl-filter-pill  { flex: 1 1 auto; text-align: center; }
}


/* =========================================================
   SIDEBAR LAYOUT — two-column: filters left, grid right
   ========================================================= */

.pl-listing-wrap {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: start;
}


/* ── Sidebar ── */
.pl-sidebar {
    position: sticky;
    top: 24px;
    background: var(--card);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.pl-sidebar-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-mute);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line-soft);
}

.pl-sidebar-group {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line-soft);
}

.pl-sidebar-group:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.pl-sidebar-group-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text);
    margin: 0 0 10px;
}

/* Search input full-width in sidebar */
.pl-sidebar .pl-filter-input {
    width: 100%;
    height: 38px;
    box-sizing: border-box;
}

/* Select full-width in sidebar */
.pl-sidebar .pl-filter-select {
    width: 100%;
    height: 38px;
    box-sizing: border-box;
    flex: none;
}

/* Stacked radio pills in sidebar */
.pl-sidebar .pl-filter-pills {
    flex-direction: column;
    gap: 4px;
}

.pl-sidebar .pl-filter-pill {
    width: 100%;
    height: 34px;
    line-height: 34px;
    text-align: left;
    padding: 0 12px;
    font-size: 13px;
    border-radius: 5px;
    box-sizing: border-box;
}

/* Sidebar action buttons */
.pl-sidebar-actions {
    display: flex;
    gap: 8px;
    padding-top: 16px;
}

.pl-sidebar-actions .pl-filter-btn {
    flex: 1;
    height: 38px;
    padding: 0;
}

.pl-sidebar-actions .pl-filter-reset {
    height: 38px;
    line-height: 38px;
    padding: 0 14px;
    flex-shrink: 0;
}


/* ── Main content area ── */
.pl-main-content { min-width: 0; }

/* Sort bar: dropdown right-aligned (count removed) */
.pl-sort-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 16px;
    gap: 12px;
    padding: 10px 14px;
    background: var(--line-soft);
    border: 1px solid var(--line-soft);
    border-radius: 6px;
}

.pl-results-count {
    font-size: 14px;
    color: var(--text-mute);
}

.pl-sort-bar .pl-filter-select {
    height: 36px;
    flex: 0 0 auto;
    width: auto;
    min-width: 140px;
}

/* Grid inside main: 3 cols → 2 at narrow viewport */
.pl-main-content ul.pl-product-grid {
    grid-template-columns: repeat(3, 1fr);
}


/* ── Responsive ── */
@media (max-width: 1100px) {
    .pl-listing-wrap { grid-template-columns: 220px 1fr; }
    .pl-main-content ul.pl-product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .pl-listing-wrap { grid-template-columns: 1fr; }

    .pl-sidebar {
        position: static;
        /* Collapse sidebar to a summary bar on mobile */
    }

    .pl-main-content ul.pl-product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .pl-main-content ul.pl-product-grid { grid-template-columns: 1fr; }
}



/* =========================================================
   ATTRIBUTE SIDEBAR — interactive pill JS state + empty state
   ========================================================= */

/* Pill interactivity: JS adds pl-pill-active on radio change.
   The server also sets it via PHP checked() so both paths work. */
.pl-filter-pill input[type="radio"]:checked ~ * { /* covered by .pl-pill-active */ }

/* Click-target: make the whole label feel like a button */
.pl-filter-pill { cursor: pointer; transition: border-color .15s, background .15s, color .15s; }

/* Empty state button (outline variant) */
.pl-filter-btn--outline {
    display: inline-block;
    padding: 10px 24px;
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none !important;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.pl-filter-btn--outline:hover {
    background: var(--gold);
    color: #fff;
}

.pl-empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-mute);
}

.pl-empty p { margin: 0 0 16px; font-size: 15px; }


/* =========================================================
   FORCED HEADER — hide the empty Motta #site-header
   When dpp2_render_product_archive() / dokan_cat_render_page()
   calls get_header(), Motta's do_action('motta_header') fires
   but outputs nothing (its callbacks check is_shop() etc.).
   The motta_before_header hook in dokan-extended-permalinks.php
   injects a real #site-header-fallback before it.
   Hide the original empty shell so only the fallback shows —
   same technique as product.css uses for single-product pages.
   ========================================================= */

.dokan-listing-page #site-header:empty,
.dpp2-dynamic-page  #site-header:empty {
    display: none !important;
}


/* =========================================================
   SHORTCODE LISTING CARDS — [dokan_category_listing] and
   [dokan_family_listing] both use this one set of .dcat-listing*
   classes, rather than each shipping its own inline <style>
   block. Keeps the two shortcodes visually identical and
   means a token/spacing change only has to happen once here.
   ========================================================= */

.dcat-listing {
    display: grid;
    grid-template-columns: repeat(var(--dcat-cols, 3), 1fr);
    gap: 16px;
    margin: 24px 0;
}

.dcat-listing-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    background: var(--card);
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s, color 0.2s;
}

.dcat-listing-card:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 20px rgba(201, 169, 106, .2);
    transform: translateY(-2px);
    color: var(--gold-dark);
}

.dcat-listing-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.dcat-listing-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px;
}

.dcat-listing-count {
    font-size: 12px;
    color: var(--text-mute);
}

@media (max-width: 768px) {
    .dcat-listing { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .dcat-listing { grid-template-columns: 1fr; }
}