
/*
 * Only the Dayacenter smart-search layer should be visible. These selectors
 * cover the previous Code Snippets popup and common OceanWP/Element Pack/
 * Elementor autocomplete result layers. Native datalist is disabled by JS.
 */
html.dc-pjc-smart-search-enabled #global-search-results,
html.dc-pjc-smart-search-enabled .bdt-search-results,
html.dc-pjc-smart-search-enabled .bdt-search-result-list,
html.dc-pjc-smart-search-enabled .bdt-search-suggestions,
html.dc-pjc-smart-search-enabled .bdt-search-autocomplete,
html.dc-pjc-smart-search-enabled .elementor-search-form__results,
html.dc-pjc-smart-search-enabled .elementor-search-form__autocomplete,
html.dc-pjc-smart-search-enabled .woocommerce-product-search-results,
html.dc-pjc-smart-search-enabled .oceanwp-search-results,
html.dc-pjc-smart-search-enabled .autocomplete-suggestions,
html.dc-pjc-smart-search-enabled .ui-autocomplete,
html.dc-pjc-smart-search-enabled .searchwp-live-search-results,
html.dc-pjc-smart-search-enabled .dgwt-wcas-suggestions-wrapp,
html.dc-pjc-smart-search-enabled .aws-search-result,
html.dc-pjc-smart-search-enabled .jet-ajax-search__results-area,
.dc-pjc-legacy-search-hidden {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.dc-pjc-smart-search {
    position: fixed;
    z-index: 99999999;
    overflow-x: hidden;
    overflow-y: auto;
    direction: rtl;
    color: #282828;
    background: #fff;
    border: 1px solid rgba(27, 27, 27, .10);
    border-radius: 10px;
    box-shadow: 0 14px 38px rgba(0, 0, 0, .20);
    box-sizing: border-box;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.dc-pjc-smart-search[hidden] {
    display: none !important;
}

.dc-pjc-search-list {
    display: block;
}

.dc-pjc-search-item {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 72px;
    padding: 9px 11px;
    color: #292929 !important;
    background: #fff;
    border-bottom: 1px solid #eee;
    text-decoration: none !important;
    box-sizing: border-box;
    transition: background-color .12s ease;
}

.dc-pjc-search-item:hover,
.dc-pjc-search-item:focus,
.dc-pjc-search-item.is-active {
    color: #292929 !important;
    background: #fff7ef;
    outline: none;
}

.dc-pjc-search-image {
    display: flex;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f7f7f7;
    border: 1px solid #eee;
    border-radius: 7px;
}

.dc-pjc-search-image:empty::after {
    content: "⌕";
    color: #aaa;
    font-size: 19px;
}

.dc-pjc-search-image img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0 !important;
    object-fit: cover;
}

.dc-pjc-search-content {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    text-align: right;
}

.dc-pjc-search-name {
    display: block;
    width: 100%;
    overflow: hidden;
    color: #252525;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.65;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dc-pjc-search-meta {
    display: block;
    width: 100%;
    overflow: hidden;
    color: #8a8a8a;
    font-size: 10.5px;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dc-pjc-search-price {
    display: inline-flex;
    max-width: 100%;
    align-items: baseline;
    gap: 5px;
    color: #d66a17;
    font-size: 11.5px;
    font-weight: 800;
    line-height: 1.55;
    white-space: nowrap;
}

.dc-pjc-search-price .amount {
    color: inherit;
    font-weight: inherit;
}

.dc-pjc-search-price del {
    color: #999;
    font-size: 10px;
    font-weight: 400;
    opacity: .9;
}

.dc-pjc-search-price ins {
    color: #d66a17;
    font-weight: 800;
    text-decoration: none;
}

.dc-pjc-search-price-tier {
    color: #b95e17;
}

.dc-pjc-search-tier-prefix {
    display: inline-block;
    margin-left: 2px;
    color: #6d6d6d;
    font-size: 10px;
    font-weight: 600;
}

.dc-pjc-search-message {
    padding: 18px 14px;
    color: #777;
    font-size: 12.5px;
    line-height: 1.8;
    text-align: center;
}

.dc-pjc-search-message.is-loading::before {
    content: "";
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-left: 7px;
    vertical-align: -2px;
    border: 2px solid #ddd;
    border-top-color: #d66a17;
    border-radius: 50%;
    animation: dc-pjc-search-spin .65s linear infinite;
}

.dc-pjc-search-message.is-error {
    color: #a23a3a;
}

.dc-pjc-search-footer {
    display: block;
    position: sticky;
    bottom: 0;
    padding: 11px 13px;
    color: #b85c15 !important;
    background: rgba(255, 250, 245, .98);
    border-top: 1px solid #f0dfd0;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.5;
    text-align: center;
    text-decoration: none !important;
    backdrop-filter: blur(6px);
}

.dc-pjc-search-footer:hover,
.dc-pjc-search-footer:focus {
    color: #8f420c !important;
    background: #fff4e9;
}

@keyframes dc-pjc-search-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 640px) {
    .dc-pjc-smart-search {
        border-radius: 9px;
    }

    .dc-pjc-search-item {
        min-height: 69px;
        padding: 8px 9px;
    }

    .dc-pjc-search-name {
        font-size: 13px;
    }

    .dc-pjc-search-price {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dc-pjc-search-item {
        transition: none;
    }

    .dc-pjc-search-message.is-loading::before {
        animation-duration: 1.4s;
    }
}


/* JSON-backed product search archive */
.dc-pjc-json-product-search .page-header,
.dc-pjc-json-product-search .woocommerce-products-header,
.dc-pjc-json-product-search .woocommerce-result-count,
.dc-pjc-json-product-search .woocommerce-ordering {
    display: none !important;
}

.dc-pjc-json-search-page {
    direction: rtl;
    min-height: 480px;
    padding: 30px 18px 55px;
    background: #f4f4f4;
}

.dc-pjc-json-search-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 28px 28px 38px;
    background: #fff;
    box-sizing: border-box;
}

.dc-pjc-json-search-header {
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid #ececec;
    text-align: right;
}

.dc-pjc-json-search-header h1 {
    margin: 0 0 8px;
    color: #272727;
    font-size: clamp(19px, 2.2vw, 28px);
    font-weight: 800;
    line-height: 1.7;
}

.dc-pjc-json-search-header h1 span {
    color: #c76316;
}

.dc-pjc-json-search-header p {
    margin: 0;
    color: #888;
    font-size: 13px;
}

.dc-pjc-json-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 34px 22px;
}

.dc-pjc-json-product-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    background: #fff;
    text-align: center;
}

.dc-pjc-json-product-image {
    display: block;
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #fafafa;
    text-decoration: none !important;
}

.dc-pjc-json-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0 !important;
    object-fit: contain;
    transition: transform .22s ease;
}

.dc-pjc-json-product-card:hover .dc-pjc-json-product-image img {
    transform: scale(1.025);
}

.dc-pjc-json-product-no-image {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 12px;
}

.dc-pjc-json-product-badges {
    display: flex;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.dc-pjc-json-product-badges span {
    display: inline-flex;
    min-height: 27px;
    align-items: center;
    padding: 4px 8px;
    color: #fff;
    background: #6a7951;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1.35;
}

.dc-pjc-json-product-content {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    padding: 14px 5px 0;
}

.dc-pjc-json-product-content h2 {
    width: 100%;
    min-height: 52px;
    margin: 0 0 5px;
    font-size: 13px;
    font-weight: 800;
    line-height: 2;
}

.dc-pjc-json-product-content h2 a {
    color: #202020 !important;
    text-decoration: none !important;
}

.dc-pjc-json-product-content h2 a:hover {
    color: #c76316 !important;
}

.dc-pjc-json-product-category {
    min-height: 21px;
    margin-bottom: 7px;
    color: #8d8d8d;
    font-size: 11px;
    line-height: 1.7;
}

.dc-pjc-json-product-price {
    display: flex;
    min-height: 30px;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 4px 7px;
    color: #9b621c;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.8;
}

.dc-pjc-json-product-price .amount {
    color: inherit;
}

.dc-pjc-json-product-price del {
    color: #aaa;
    font-size: 11px;
    font-weight: 400;
    opacity: .9;
}

.dc-pjc-json-product-price ins {
    color: #d16517;
    font-weight: 700;
    text-decoration: none;
}

.dc-pjc-json-product-price .dc-pjc-search-tier-prefix {
    color: #7d7d7d;
    font-size: 11px;
}

.dc-pjc-json-pagination {
    margin-top: 42px;
}

.dc-pjc-json-pagination ul {
    display: flex;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    list-style: none;
}

.dc-pjc-json-pagination a,
.dc-pjc-json-pagination span {
    display: inline-flex;
    min-width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    color: #555 !important;
    background: #f4f4f4;
    border-radius: 5px;
    font-size: 12px;
    text-decoration: none !important;
}

.dc-pjc-json-pagination .current,
.dc-pjc-json-pagination a:hover {
    color: #fff !important;
    background: #c76316;
}

.dc-pjc-json-search-empty,
.dc-pjc-json-search-notice {
    padding: 52px 20px;
    color: #777;
    background: #fafafa;
    border: 1px dashed #ddd;
    text-align: center;
}

.dc-pjc-json-search-empty h2 {
    margin: 0 0 10px;
    color: #333;
    font-size: 20px;
}

.dc-pjc-json-search-empty p,
.dc-pjc-json-search-notice {
    font-size: 13px;
    line-height: 2;
}

@media (max-width: 1024px) {
    .dc-pjc-json-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .dc-pjc-json-search-page {
        padding: 18px 10px 38px;
    }

    .dc-pjc-json-search-shell {
        padding: 20px 14px 30px;
    }

    .dc-pjc-json-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 27px 12px;
    }

    .dc-pjc-json-product-content h2 {
        min-height: 48px;
        font-size: 11.5px;
        line-height: 1.9;
    }

    .dc-pjc-json-product-price {
        font-size: 12.5px;
    }
}

@media (max-width: 390px) {
    .dc-pjc-json-products-grid {
        grid-template-columns: 1fr;
    }

    .dc-pjc-json-product-card {
        max-width: 310px;
        margin-inline: auto;
    }
}
