/* AJAX Product Finder Pro 3.1 */
.apf-root,
.apf-root *,
.apf-root *:before,
.apf-root *:after {
    box-sizing: border-box;
}
.apf-root {
    --navy: #103f6d;
    --navy2: #0c355d;
    --blue: #349bd8;
    --text: #30363b;
    --muted: #727a81;
    --border: #e1e5e8;
    --soft: #f7f8f9;
    width: 100%;
    font-family: inherit;
    color: var(--text);
}
.apf-layout {
    display: grid !important;
    grid-template-columns: 300px minmax(0, 1fr) !important;
    gap: 42px !important;
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    align-items: stretch !important;
}
.apf-main {
    min-width: 0 !important;
    width: 95% !important;
	padding-top: 47px;
	padding-bottom: 47px;
}
.apf-sidebar {
    min-width: 0 !important;
    width: 100% !important;
	    background: #F7F7F7;
    padding: 44px 28px;
}

.filter-stikcy {
    position: sticky;
    top: 40px;
}

.apf-mobile-filter-btn,
.apf-mobile-head {
    display: none;
}
.apf-active-wrap {
    display: none;
    padding: 0 0 18px;
    margin-bottom: 4px;
}
.apf-active-wrap.is-active {
    display: block;
}
.apf-active-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 11px;
    font-size: 11px;
    font-weight: 700;
}
#apf-clear-all,
#apf-clear-search {
    border: 0 !important;
    background: none !important;
    padding: 0 !important;
    color: var(--blue) !important;
    font: inherit !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}
#apf-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.apf-active-chip {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 6px 9px !important;
    border: 1px solid #d5dce2 !important;
    border-radius: 3px !important;
    background: #fff !important;
    color: #58616a !important;
    font: inherit !important;
    font-size: 11px !important;
    cursor: pointer !important;
}
.apf-active-chip b {
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
}
.apf-filter-group {
    border-top: 1px solid var(--border);
}
.apf-filter-group:last-child {
    border-bottom: 1px solid var(--border);
}
.apf-filter-title {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 17px 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #000000 !important;
    font: inherit !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-align: left !important;
    cursor: pointer !important;
}
.apf-filter-symbol {
    font-size: 21px;
    line-height: 1;
}
.apf-filter-options {
    padding: 0 0 15px;
}
.apf-filter-option {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    min-height: 29px !important;
    margin: 0 !important;
    color: #000000 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    cursor: pointer !important;
}
.apf-option-left {
    display: flex;
    align-items: center;
    min-width: 0;
}
.apf-tax-filter {
    position: absolute !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
}
.apf-check {
position: relative;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    margin-right: 8px;
    border: 1px solid #bdc4c9;
    border-radius: 2px;
    background: #ffffff00;
}
.apf-tax-filter:checked + .apf-check {
    border-color: var(--navy);
    background: var(--navy);
}
.apf-tax-filter:checked + .apf-check:after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.apf-term-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.apf-term-count {
    font-size: 11px;
    flex: none;
}
.apf-intro {
    margin: 0 0 18px;
}
.apf-intro h1 {
    margin: 0 0 9px !important;
    padding: 0 !important;
    color: #303438 !important;
    font: inherit !important;
    font-size: 30px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}
.apf-intro p {
    margin: 0 !important;
    max-width: 1000px;
    color: #747b81 !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
}
.apf-search-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 215px !important;
    gap: 12px !important;
    margin: 18px 0 22px !important;
}
.apf-search-field {
    position: relative;
}
#apf-search {
    display: block !important;
    width: 100% !important;
    height: 46px !important;
    margin: 0 !important;
    padding: 0 44px 0 14px !important;
    border: 1px solid #dce0e3 !important;
    border-radius: 4px !important;
    background: #fff !important;
    box-shadow: none !important;
    color: #333 !important;
    font: inherit !important;
    font-size: 13px !important;
    outline: none !important;
}
#apf-search:focus {
    border-color: var(--blue) !important;
    box-shadow: 0 0 0 3px rgba(52, 155, 216, 0.1) !important;
}
#apf-search-x {
    display: none;
    position: absolute;
    right: 9px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f0f2f3;
    color: #666;
    font-size: 18px;
    cursor: pointer;
}
#apf-search-x.is-active {
    display: block;
}
#apf-search-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 46px !important;
    margin: 0 !important;
    padding: 0 18px !important;
    border: 0 !important;
    border-radius: 4px !important;
    background: var(--blue) !important;
    color: #fff !important;
    font: inherit !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}
#apf-search-btn:hover {
    background: #238bc7 !important;
}
.apf-search-state {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: -9px 0 18px;
    padding: 9px 12px;
    border: 1px solid #dce9f0;
    background: #f5fafc;
    color: #65717a;
    font-size: 11px;
}
.apf-search-state.is-active {
    display: flex;
}
.apf-toolbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    margin: 0 0 24px !important;
}
.apf-results-count {
font-size: 15px;
    color: #000000;
}
.apf-sort {
    display: flex;
    align-items: center;
    gap: 13px;
}
.apf-sort label {
    margin: 0 !important;
    color: #50575d !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    white-space: nowrap;
}
#apf-sort {
width: 270px !important;
    height: 43px !important;
    margin: 0 !important;
    padding: 0 38px 0 14px !important;
    border: 1px solid #dce0e3 !important;
    border-radius: 4px !important;
    background-color: #fff !important;
    color: #000000 !important;
    font: inherit !important;
    font-size: 13px !important;
    box-shadow: none !important;
}
#apf-products {
    width: 100%;
    min-height: 100px;
}
.apf-card {
    display: grid !important;
    grid-template-columns: 290px minmax(0, 1fr) !important;
    width: 100% !important;
    min-height: 240px !important;
    margin: 0 0 22px !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 5px !important;
    background: var(--navy) !important;
    box-shadow: 0 2px 8px rgba(16, 63, 109, 0.07) !important;
}
.apf-card-image {
    width: 100%;
    height: 240px;
    min-height: 240px;
    overflow: hidden;
    background: #eceff1;
}
.apf-card-image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 240px !important;
    margin: 0 !important;
    object-fit: cover !important;
}
.apf-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #929ba2;
    font-size: 11px;
    letter-spacing: 0.06em;
}
.apf-card-body {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-width: 0 !important;
    padding: 27px 32px !important;
    background: var(--navy) !important;
}
.apf-card-body h2 {
    margin: 0 !important;
    padding: 0 !important;
    color: #fff !important;
    font: inherit !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
    text-transform: uppercase !important;
}
.apf-card-rule {
    height: 1px;
    width: 100%;
    margin: 10px 0 18px;
    background: rgba(255, 255, 255, 0.12);
}
.apf-card-desc {
    max-width: 780px;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
}
.apf-card-desc p {
    margin: 0 !important;
    color: inherit !important;
    font: inherit !important;
}
.apf-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}
.apf-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    min-height: 39px !important;
    padding: 8px 15px !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    border-radius: 4px !important;
    background: transparent !important;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.07em !important;
    line-height: 1.2 !important;
}
.apf-btn:hover {
    background: #fff !important;
    color: var(--navy) !important;
}
.apf-bottom {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 25px !important;
    padding-top: 7px !important;
}
.apf-page-size {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555d63;
    font-size: 11px;
}
.apf-size-group,
.apf-pagination {
    display: flex;
    align-items: center;
}
.apf-size,
.apf-page {
    min-width: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 9px !important;
    border: 1px solid #cfd4d8 !important;
    border-right: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #535b61 !important;
    font: inherit !important;
    font-size: 11px !important;
    cursor: pointer !important;
}
.apf-size:last-child,
.apf-page:last-child {
    border-right: 1px solid #cfd4d8 !important;
}
.apf-size.active,
.apf-page.active {
    border-color: #24282c !important;
    background: #103f6d !important;
    color: #fff !important;
}
.apf-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 38px;
    font-size: 12px;
}
.apf-empty {
    padding: 65px 25px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: #fafbfc;
    text-align: center;
}
.apf-empty-icon {
    font-size: 28px;
}
.apf-empty h3 {
    margin: 8px 0 !important;
    font-size: 20px !important;
}
.apf-empty p {
    margin: 0 0 18px !important;
    color: #777 !important;
}
#apf-reset-empty {
    padding: 10px 16px;
    border: 0;
    border-radius: 4px;
    background: var(--navy);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}
/* skeleton */
.apf-skeleton-card {
    background: #f3f5f6 !important;
}
.apf-sk-image {
    height: 240px;
    background: #e3e6e8;
}
.apf-sk-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 27px 32px;
}
.apf-sk-title {
    width: 45%;
    height: 17px;
    border-radius: 3px;
}
.apf-sk-rule {
    height: 1px;
    margin: 13px 0 20px;
    background: #dfe2e4;
}
.apf-sk-line {
    width: 92%;
    height: 10px;
    margin-bottom: 9px;
    border-radius: 3px;
}
.apf-sk-line.medium {
    width: 76%;
}
.apf-sk-line.short {
    width: 54%;
}
.apf-sk-actions {
    display: flex;
    gap: 9px;
    margin-top: 17px;
}
.apf-sk-btn {
    width: 170px;
    height: 39px;
    border-radius: 4px;
}
.apf-sk-btn.wide {
    width: 190px;
}
.apf-shimmer {
    position: relative;
    overflow: hidden;
    background: #e3e6e8;
}
.apf-shimmer:after {
    content: "";
    position: absolute;
    inset: 0 auto 0 -140%;
    width: 120%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.68), transparent);
    animation: apfShimmer 1.25s infinite;
}
@keyframes apfShimmer {
    to {
        left: 140%;
    }
}
@media (max-width: 1050px) {
    .apf-layout {
        grid-template-columns: 240px minmax(0, 1fr) !important;
        gap: 28px !important;
    }
    .apf-card {
        grid-template-columns: 240px minmax(0, 1fr) !important;
    }
    .apf-card-body,
    .apf-sk-body {
        padding: 23px !important;
    }
    #apf-sort {
        width: 220px !important;
    }
}
@media (max-width: 767px) {
    .apf-mobile-filter-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        height: 46px !important;
        margin: 0 0 18px !important;
        padding: 0 15px !important;
        border: 1px solid var(--border) !important;
        border-radius: 4px !important;
        background: #fff !important;
        color: var(--navy) !important;
        font: inherit !important;
        font-size: 12px !important;
        font-weight: 700 !important;
    }
    .apf-mobile-filter-count {
        display: none;
        align-items: center;
        justify-content: center;
        min-width: 22px;
        height: 22px;
        padding: 0 6px;
        border-radius: 20px;
        background: var(--navy);
        color: #fff;
        font-size: 10px;
    }
    .apf-mobile-filter-count.is-active {
        display: flex;
    }
    .apf-layout {
        display: block !important;
    }
    .apf-sidebar {
        position: fixed !important;
        z-index: 999999 !important;
        top: 0 !important;
        left: -340px !important;
        width: 320px !important;
        max-width: 88vw !important;
        height: 100dvh !important;
        padding: 20px !important;
        overflow: auto !important;
        background: #fff !important;
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15) !important;
        transition: left 0.25s ease !important;
    }
    .apf-sidebar.is-open {
        left: 0 !important;
    }
    .apf-mobile-head {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding-bottom: 17px !important;
        border-bottom: 1px solid var(--border) !important;
    }
    .apf-close-filter {
        width: 34px;
        height: 34px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #f0f2f3;
        font-size: 23px;
        cursor: pointer;
    }
    .apf-overlay {
        position: fixed;
        z-index: 999998;
        inset: 0;
        visibility: hidden;
        background: rgba(0, 0, 0, 0.42);
        opacity: 0;
        transition: 0.2s;
    }
    .apf-overlay.is-open {
        visibility: visible;
        opacity: 1;
    }
    body.apf-lock {
        overflow: hidden;
    }
    .apf-intro h1 {
        font-size: 23px !important;
    }
    .apf-search-row {
        grid-template-columns: 1fr !important;
    }
    .apf-toolbar {
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 13px !important;
    }
    .apf-sort {
        width: 100%;
    }
    #apf-sort {
        width: 100% !important;
    }
    .apf-card {
        display: block !important;
        min-height: 0 !important;
    }
    .apf-card-image,
    .apf-card-image img,
    .apf-sk-image {
        height: 230px !important;
        min-height: 230px !important;
    }
    .apf-card-body,
    .apf-sk-body {
        padding: 23px 20px 25px !important;
    }
    .apf-card-actions,
    .apf-sk-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }
    .apf-btn,
    .apf-sk-btn,
    .apf-sk-btn.wide {
        width: 100% !important;
    }
    .apf-bottom {
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 18px !important;
    }
    #apf-pagination {
        width: 100%;
        overflow-x: auto;
    }
    .apf-pagination {
        width: max-content;
    }
}
@media (prefers-reduced-motion: reduce) {
    .apf-shimmer:after {
        animation: none !important;
    }
}

/* ==========================================================
   3.2 ELEMENTOR / THEME LAYOUT HARDENING
   Keeps the catalogue usable when the shortcode is placed
   inside Elementor/theme containers with inherited rules.
========================================================== */
.apf-root.apf-elementor-safe {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: visible !important;
}
.apf-root.apf-elementor-safe > .apf-layout {
    display: grid !important;
    width: 100% !important;
    max-width: 1400px !important;
    min-width: 0 !important;
    grid-template-columns: minmax(220px, 285px) minmax(0, 1fr) !important;
    gap: 40px !important;
    margin: 0 auto !important;
}
.apf-root .apf-main,
.apf-root #apf-products,
.apf-root .apf-card,
.apf-root .apf-card-body {
    min-width: 0 !important;
}
.apf-root .apf-card {
    grid-template-columns: clamp(220px, 29%, 290px) minmax(0, 1fr) !important;
}
.apf-root .apf-card-image {
    width: 100% !important;
}
.apf-root .apf-card-body {
    width: auto !important;
    overflow: visible !important;
}
.apf-root .apf-card-body h2,
.apf-root .apf-card-desc,
.apf-root .apf-card-desc p {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}
.apf-root .apf-card-actions {
    visibility: visible !important;
    opacity: 1 !important;
}
.apf-root .apf-search-row {
    width: 100% !important;
	    max-width: 800px;
}
.apf-root .apf-search-field {
    width: 100% !important;
    min-width: 0 !important;
}

/* If the actual shortcode area is medium width, don't squeeze horizontal cards. */
@media (max-width: 1150px) {
    .apf-root.apf-elementor-safe > .apf-layout {
        grid-template-columns: 230px minmax(0, 1fr) !important;
        gap: 28px !important;
    }
    .apf-root .apf-card {
        grid-template-columns: 220px minmax(0, 1fr) !important;
    }
    .apf-root .apf-card-body {
        padding: 22px !important;
    }
}

/* Tablet: filters become drawer and catalogue gets the whole available width. */
@media (max-width: 900px) {
    .apf-root .apf-mobile-filter-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        min-height: 46px !important;
        margin: 0 0 18px !important;
        padding: 0 15px !important;
        border: 1px solid var(--border) !important;
        border-radius: 4px !important;
        background: #fff !important;
        color: var(--navy) !important;
        font: inherit !important;
        font-size: 12px !important;
        font-weight: 700 !important;
    }
    .apf-root.apf-elementor-safe > .apf-layout {
        display: block !important;
    }
    .apf-root .apf-sidebar {
        position: fixed !important;
        z-index: 999999 !important;
        top: 0 !important;
        left: -360px !important;
        width: 330px !important;
        max-width: 88vw !important;
        height: 100dvh !important;
        padding: 20px !important;
        overflow-y: auto !important;
        background: #fff !important;
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15) !important;
        transition: left 0.25s ease !important;
    }
    .apf-root .apf-sidebar.is-open {
        left: 0 !important;
    }
    .apf-root .apf-mobile-head {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding-bottom: 17px !important;
        border-bottom: 1px solid var(--border) !important;
    }
    .apf-root .apf-overlay {
        position: fixed !important;
        z-index: 999998 !important;
        inset: 0 !important;
        visibility: hidden !important;
        opacity: 0 !important;
        background: rgba(0, 0, 0, 0.42) !important;
    }
    .apf-root .apf-overlay.is-open {
        visibility: visible !important;
        opacity: 1 !important;
    }
    .apf-root .apf-card {
        grid-template-columns: minmax(210px, 32%) minmax(0, 1fr) !important;
    }
}

/* Narrow shortcode/container fallback. */
@media (max-width: 700px) {
    .apf-root .apf-search-row {
        grid-template-columns: 1fr !important;
    }
    .apf-root .apf-toolbar {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .apf-root .apf-sort {
        width: 100% !important;
    }
    .apf-root #apf-sort {
        width: 100% !important;
    }
    .apf-root .apf-card {
        display: block !important;
        min-height: 0 !important;
    }
    .apf-root .apf-card-image,
    .apf-root .apf-card-image img,
    .apf-root .apf-sk-image {
        width: 100% !important;
        height: 260px !important;
        min-height: 260px !important;
    }
    .apf-root .apf-card-body,
    .apf-root .apf-sk-body {
        width: 100% !important;
        padding: 24px !important;
    }
    .apf-root .apf-bottom {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
}
