/* =========================================================
   VSH LIVE SEARCH v2
========================================================= */

.search .shop-page-title {
    display: none !important;
}

body.search.archive #main {
    padding: 0 !important;
}

.html.custom.html_topbar_left {
    padding-right: 30px;
}

.vsh-live-search-shortcode {
    position: relative;
    width: 100%;
    max-width: 760px;
}

.vsh-live-search-shortcode-form {
    position: relative;
    width: 100%;
    margin: 0;
}

.vsh-live-search-field {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 3px;
    border: 1px solid var(--vsh-border, #e5ebf2);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(16, 48, 90, .05);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.vsh-live-search-field:focus-within {
    border-color: var(--vsh-blue, #1955b5);
    box-shadow:
        0 0 0 3px rgba(25, 85, 181, .08),
        0 8px 24px rgba(16, 48, 90, .07);
}

.vsh-live-search-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--vsh-text, #17263b);
    font-size: 14px !important;
    line-height: 42px;
}

.vsh-live-search-input::placeholder {
    color: #8996a8;
}

.vsh-live-search-submit {
    flex: 0 0 auto;
    height: 38px;
    margin: 0 !important;
    padding: 0 18px;
    border: 0;
    border-radius: 7px;
    background: var(--vsh-blue, #1955b5);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}

.vsh-live-search-submit:hover {
    background: var(--vsh-blue-hover, #1149a6);
}

.vsh-live-search-submit:active {
    transform: translateY(1px);
}


/* =========================================================
   STANDALONE SEARCH TRIGGER SHORTCODE
   [vsh_search_trigger]
========================================================= */

.vsh-search-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 !important;
    padding: 0;
    color: var(--vsh-blue);
    border: none !important;
    background: #f6f9fd !important;
    border-radius: 9px;
    background: transparent;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease;
}

.vsh-search-trigger:hover,
.vsh-search-trigger:focus-visible {
    background: var(--vsh-blue-soft, #f1f6fd);
    color: var(--vsh-blue, #1955b5);
    outline: none;
}

.vsh-search-trigger svg {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   MOBILE SEARCH CONTROLS
========================================================= */

.vsh-live-search-mobile-trigger,
.vsh-live-search-mobile-header {
    display: none;
}

.vsh-live-search-mobile-trigger,
.vsh-live-search-mobile-close {
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    box-shadow: none;
}

.vsh-live-search-mobile-trigger svg,
.vsh-live-search-mobile-close svg {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

html.vsh-live-search-mobile-open,
body.vsh-live-search-mobile-open {
    overflow: hidden !important;
    overscroll-behavior: none;
}


/* =========================================================
   PANEL
========================================================= */

.vsh-live-search-panel[hidden] {
    display: none !important;
}

.vsh-live-search-panel {
    position: absolute;
    z-index: 99999;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--vsh-border, #e5ebf2);
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(16, 48, 90, .14);
    text-align: left;
}

.vsh-live-search-suggestions[hidden],
.vsh-live-search-results[hidden],
.vsh-live-search-recent[hidden],
.vsh-live-search-view-all[hidden] {
    display: none !important;
}

.vsh-live-search-suggestions,
.vsh-live-search-results {
    max-height: min(540px, 70vh);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;

    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: #b9c8da transparent;
}

/* Chrome / Edge / Safari */
.vsh-live-search-suggestions::-webkit-scrollbar,
.vsh-live-search-results::-webkit-scrollbar {
    width: 7px;
}

.vsh-live-search-suggestions::-webkit-scrollbar-track,
.vsh-live-search-results::-webkit-scrollbar-track {
    background: transparent;
}

.vsh-live-search-suggestions::-webkit-scrollbar-thumb,
.vsh-live-search-results::-webkit-scrollbar-thumb {
    background: #c1cede;
    border: 2px solid #fff;
    border-radius: 999px;
}

.vsh-live-search-suggestions::-webkit-scrollbar-thumb:hover,
.vsh-live-search-results::-webkit-scrollbar-thumb:hover {
    background: #9fb2c8;
}

.vsh-live-search-suggestions-block {
    padding: 14px;
}


/* Footer luôn cố định dưới vùng scroll khi đang có kết quả */
.vsh-live-search-view-all {
    position: relative;
    z-index: 3;
    flex: 0 0 auto;
    padding: 10px 12px;
    border-top: 1px solid #e8eef5;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 -8px 20px rgba(16, 48, 90, .05);
}

.vsh-live-search-view-all-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 7px;
    background: var(--vsh-blue-soft, #f1f6fd);
    color: var(--vsh-blue, #1955b5) !important;
    font-size: 13px;
    line-height: 1.35;
    text-decoration: none !important;
    transition: background-color .18s ease, color .18s ease;
}

.vsh-live-search-view-all-link:hover {
    background: var(--vsh-blue, #1955b5);
    color: #fff !important;
}


/* =========================================================
   RECENT SEARCH
========================================================= */

.vsh-live-search-recent {
    padding: 15px;
    border-bottom: 1px solid #edf1f5;
}

.vsh-live-search-recent-title {
    margin-bottom: 8px;
    color: var(--vsh-text, #607086);
    font-size: 12px;
    letter-spacing: .04em;
}


.vsh-live-search-recent-title p:last-child {
    margin-bottom: 0;
}

.vsh-live-search-recent-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

button.vsh-live-search-recent-chip {
    margin: 0 !important;
    padding: 6px 9px;
    border: 1px solid var(--vsh-border, #e5ebf2);
    border-radius: 999px !important;
    background: var(--vsh-blue-soft, #f1f6fd);
    color: var(--vsh-blue, #1955b5);
    font-size: 12px;
    line-height: 1.25;
    cursor: pointer;
}

button.vsh-live-search-recent-chip:hover {
    border-color: #c8d8ee;
    background: #e9f2ff;
}


/* =========================================================
   RESULTS
========================================================= */

.vsh-live-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 10px 12px;
    border-bottom: 1px solid #edf1f5;
    color: var(--vsh-text, #17263b);
    text-decoration: none !important;
    background: #fff;
    transition: background-color .15s ease;
}

.vsh-live-search-item:last-child {
    border-bottom: 0;
}

.vsh-live-search-item:hover,
.vsh-live-search-item.is-active {
    background: var(--vsh-blue-soft, #f1f6fd);
}

.vsh-live-search-item.is-no-image {
    min-height: 60px;
}

.vsh-live-search-media {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    overflow: hidden;
    border: 1px solid #edf1f5;
    border-radius: 8px;
    background: #f8fafc;
}

.vsh-live-search-media img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
}

.vsh-live-search-item--product .vsh-live-search-media img {
    object-fit: contain;
}

.vsh-live-search-media.is-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a8bf;
    background: #f5f8fc;
}

.vsh-live-search-media.is-placeholder svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vsh-live-search-body {
    min-width: 0;
    flex: 1 1 auto;
}

.vsh-live-search-title {
    display: block;
    overflow: hidden;
    color: var(--vsh-text, #17263b);
    font-size: 13px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vsh-live-search-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    min-width: 0;
}

.vsh-live-search-type {
    color: var(--vsh-text-light, #607086);
    font-size: 12px;
    line-height: 1.3;
}

.vsh-live-search-price {
    color: var(--vsh-blue, #1955b5);
    font-size: 12px;
    line-height: 1.3;
}

.vsh-live-search-price::before {
    content: "•";
    display: inline-block;
    margin-right: 8px;
    color: #c2ccd8;
}

.vsh-live-search-message {
    padding: 17px 14px;
    color: var(--vsh-text-light, #607086);
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.vsh-live-search-message.is-loading::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 7px;
    border: 2px solid #dce5ef;
    border-top-color: var(--vsh-blue, #1955b5);
    border-radius: 50%;
    vertical-align: -2px;
    animation: vsh-search-spin .65s linear infinite;
}

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


/* =========================================================
   MOBILE
========================================================= */

/*
 * Clone portal được append trực tiếp vào <body>.
 * Khi đóng phải ẩn hoàn toàn để không xuất hiện thêm icon/form duplicate.
 */
.vsh-live-search-portal:not(.is-mobile-open) {
    display: none !important;
}


/* =========================================================
   MOBILE / TABLET SEARCH OVERLAY < 849px
========================================================= */

@media (max-width: 848px) {
    .vsh-live-search-shortcode {
        width: auto;
        max-width: none;
    }

    /*
     * Trạng thái đóng: chỉ hiện icon tìm kiếm.
     */
    .vsh-live-search-shortcode:not(.is-mobile-open)
    .vsh-live-search-shortcode-form,
    .vsh-live-search-shortcode:not(.is-mobile-open)
    .vsh-live-search-panel,
    .vsh-live-search-shortcode:not(.is-mobile-open)
    .vsh-live-search-mobile-header {
        display: none !important;
    }

    .vsh-live-search-mobile-trigger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        margin: 0 !important;
        padding: 0;
        border-radius: 9px;
        background: transparent;
        color: var(--vsh-text, #17263b);
        cursor: pointer;
    }

    .vsh-live-search-mobile-trigger:hover,
    .vsh-live-search-mobile-trigger:focus-visible {
        background: var(--vsh-blue-soft, #f1f6fd);
        color: var(--vsh-blue, #1955b5);
        outline: none;
    }

    /*
     * Trạng thái mở: chính host trở thành overlay fixed full-screen.
     */
    .vsh-live-search-shortcode.is-mobile-open {
        position: fixed !important;
        z-index: 1000000 !important;
        inset: 0 !important;
        isolation: isolate;
        display: flex;
        flex-direction: column;
        width: 100vw !important;
        max-width: none !important;
        height: 100dvh;
        min-height: 100dvh;
        margin: 0 !important;
        padding:
            calc(12px + env(safe-area-inset-top))
            14px
            calc(12px + env(safe-area-inset-bottom));
        background: #fff;
        overflow: hidden;
    }

    .vsh-live-search-shortcode.is-mobile-open
    .vsh-live-search-mobile-trigger {
        display: none !important;
    }

    .vsh-live-search-shortcode.is-mobile-open
    .vsh-live-search-mobile-header {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 42px;
        margin-bottom: 8px;
    }

    .vsh-live-search-mobile-title {
        color: var(--vsh-text, #17263b);
        font-size: 17px;
        font-weight: 700;
        line-height: 1.25;
    }

    .vsh-live-search-mobile-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 38px;
        width: 38px;
        height: 38px;
        margin: 0 !important;
        padding: 0;
        border-radius: 9px;
        background: var(--vsh-bg-soft, #f8fafc);
        color: var(--vsh-text, #17263b);
        cursor: pointer;
    }

    .vsh-live-search-mobile-close:hover,
    .vsh-live-search-mobile-close:focus-visible {
        background: var(--vsh-blue-soft, #f1f6fd);
        color: var(--vsh-blue, #1955b5);
        outline: none;
    }

    .vsh-live-search-shortcode.is-mobile-open
    .vsh-live-search-shortcode-form {
        display: block !important;
        flex: 0 0 auto;
        width: 100%;
        margin: 0;
    }

    .vsh-live-search-shortcode.is-mobile-open
    .vsh-live-search-field {
        min-height: 50px;
        padding: 4px;
        border-radius: 10px;
        box-shadow: none;
    }

    .vsh-live-search-shortcode.is-mobile-open
    .vsh-live-search-input {
        height: 40px !important;
        padding: 0 11px !important;
        font-size: 14px;
        line-height: 40px;
    }

    .vsh-live-search-shortcode.is-mobile-open
    .vsh-live-search-submit {
        height: 40px;
        padding: 0 14px;
        font-size: 12px;
    }

    /*
     * Panel nằm trong overlay, chiếm phần còn lại màn hình.
     * Suggestions/results scroll, footer "Xem toàn bộ" vẫn fixed bottom.
     */
    .vsh-live-search-shortcode.is-mobile-open
    .vsh-live-search-panel:not([hidden]) {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        display: flex;
        flex: 1 1 auto;
        min-height: 0;
        width: 100%;
        margin-top: 10px;
        border: 1px solid var(--vsh-border, #e5ebf2);
        border-radius: 10px;
        box-shadow: none;
        overflow: hidden;
    }

    .vsh-live-search-shortcode.is-mobile-open
    .vsh-live-search-suggestions,
    .vsh-live-search-shortcode.is-mobile-open
    .vsh-live-search-results {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
    }

    .vsh-live-search-shortcode.is-mobile-open
    .vsh-live-search-suggestions-block {
        padding: 15px;
    }

    .vsh-live-search-shortcode.is-mobile-open
    .vsh-live-search-view-all {
        flex: 0 0 auto;
        padding:
            10px
            10px
            max(10px, env(safe-area-inset-bottom));
    }

    .vsh-live-search-suggestions-block .col.medium-12 {
        padding: 0 0 30px;
    }
}


/* Điện thoại nhỏ */
@media (max-width: 549px) {
    .vsh-live-search-shortcode.is-mobile-open {
        padding:
            calc(10px + env(safe-area-inset-top))
            10px
            calc(10px + env(safe-area-inset-bottom));
    }

    .vsh-live-search-shortcode.is-mobile-open
    .vsh-live-search-mobile-header {
        margin-bottom: 6px;
    }

    .vsh-live-search-mobile-title {
        font-size: 16px;
    }

    .vsh-live-search-shortcode.is-mobile-open
    .vsh-live-search-field {
        min-height: 48px;
    }

    .vsh-live-search-shortcode.is-mobile-open
    .vsh-live-search-input {
        height: 40px !important;
        font-size: 13px;
    }

    .vsh-live-search-shortcode.is-mobile-open
    .vsh-live-search-panel:not([hidden]) {
        margin-top: 8px;
    }

    .vsh-live-search-item {
        min-height: 68px;
        padding: 9px 10px;
    }

    .vsh-live-search-title {
        font-size: 12.5px;
    }
    .vsh-live-search-suggestions-block .col.small-12 {
        padding: 0 0 15px;
    }
}


/* =========================================================
   VSH SEARCH RESULTS PAGE v2.2
   Static JSON + Web Worker. Không có tab "Tất cả".
========================================================= */

.vsh-search-page-wrapper {
    background: var(--vsh-bg-soft, #f8fafc);
}

.vsh-search-page {
    width: 100%;
    max-width: 1340px;
    min-height: 420px;
    margin: 0 auto;
    padding: 30px 0 48px;
    scroll-margin-top: 92px;
}

.vsh-search-page__header {
    margin-bottom: 18px;
}

.vsh-search-page__eyebrow {
    margin: 0 0 5px;
    color: var(--vsh-blue, #1955b5);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.vsh-search-page__title {
    margin: 0;
    color: var(--vsh-heading, #172033);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -.02em;
    text-transform: none;
}

.vsh-search-page__summary {
    margin: 7px 0 0;
    color: var(--vsh-text-muted, #607086);
    font-size: 13px;
    line-height: 1.5;
}

/* Tabs -------------------------------------------------- */

.vsh-search-page .vsh-search-tabs-wrap {
    position: relative;
    z-index: 3;
    width: 100%;
    margin: 0 0 22px;
    padding: 0;
}

.vsh-search-page .vsh-search-tabs {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 0;
}

.vsh-search-page .vsh-search-tab {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    margin: 0;
    padding: 9px 13px;
    color: #334155 !important;
    background: #fff;
    border: 1px solid var(--vsh-border, #e5ebf2);
    border-radius: var(--vsh-radius, 10px);
    box-shadow: var(--vsh-shadow-sm, 0 2px 6px rgba(16, 48, 90, .04));
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none !important;
    transition:
        color .18s ease,
        background-color .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.vsh-search-page .vsh-search-tab:hover {
    color: var(--vsh-blue, #1955b5) !important;
    background: var(--vsh-blue-soft, #f9fbff);
    border-color: var(--vsh-border-hover, #bfd0e4);
}

.vsh-search-page .vsh-search-tab.is-active,
.vsh-search-page .vsh-search-tab[aria-current="page"] {
    color: #fff !important;
    background: var(--vsh-blue, #1955b5);
    border-color: var(--vsh-blue, #1955b5);
    box-shadow: 0 6px 16px rgba(25, 85, 181, .16);
}

.vsh-search-page .vsh-search-tab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    color: var(--vsh-text-muted, #607086);
    background: var(--vsh-bg-soft, #f8fafc);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.vsh-search-page .vsh-search-tab.is-active .vsh-search-tab__count,
.vsh-search-page .vsh-search-tab[aria-current="page"] .vsh-search-tab__count {
    color: #fff;
    background: rgba(255, 255, 255, .18);
}

.vsh-search-page .vsh-search-tab.is-empty:not(.is-active) {
    opacity: .62;
}

/* Loading / empty / error ------------------------------ */

.vsh-search-page__state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 180px;
    padding: 28px 20px;
    color: var(--vsh-text-muted, #607086);
    background: #fff;
    border: 1px dashed var(--vsh-border-hover, #bfd0e4);
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.vsh-search-page__loader {
    display: inline-flex;
    gap: 4px;
}

.vsh-search-page__loader span {
    width: 6px;
    height: 6px;
    background: var(--vsh-blue, #1955b5);
    border-radius: 50%;
    animation: vsh-search-page-dot 1s infinite ease-in-out;
}

.vsh-search-page__loader span:nth-child(2) {
    animation-delay: .12s;
}

.vsh-search-page__loader span:nth-child(3) {
    animation-delay: .24s;
}

.vsh-search-page:not(.is-loading) .vsh-search-page__loader {
    display: none;
}

.vsh-search-page.has-error .vsh-search-page__state {
    color: #a23a3a;
    background: #fff7f7;
    border-color: #f1caca;
}

@keyframes vsh-search-page-dot {
    0%, 60%, 100% { transform: translateY(0); opacity: .4; }
    30% { transform: translateY(-4px); opacity: 1; }
}

/* Results grid ----------------------------------------- */

.vsh-search-page__results {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}


.vsh-search-page__results[data-post-type="product"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vsh-search-page__results:empty {
    display: none;
}

.vsh-search-result-card {
    min-width: 0;
    margin: 0;
}

.vsh-search-result-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    color: var(--vsh-text, #17263b) !important;
    background: #fff;
    border: 1px solid var(--vsh-border, #e5ebf2);
    border-radius: 12px;
    box-shadow: var(--vsh-shadow-sm, 0 2px 6px rgba(16, 48, 90, .04));
    text-decoration: none !important;
    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.vsh-search-result-card__link:hover {
    color: var(--vsh-text, #17263b) !important;
    border-color: var(--vsh-border-hover, #bfd0e4);
    box-shadow: var(--vsh-shadow-card-hover, 0 14px 34px rgba(16, 48, 90, .10));
    transform: translateY(-2px);
}

.vsh-search-result-card__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    color: #94a8bf;
    background:
        radial-gradient(
            circle at 30% 20%,
            rgba(25, 85, 181, .07),
            transparent 38%
        ),
        linear-gradient(
            135deg,
            #f9fbff 0%,
            #f1f6fc 100%
        );
    border-bottom: 1px solid var(--vsh-border, #e5ebf2);
}

.vsh-search-result-card--product .vsh-search-result-card__media {
    aspect-ratio: 1 / 1;
    background: #fff;
}

.vsh-search-result-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.vsh-search-result-card--product .vsh-search-result-card__media img {
    object-fit: contain;
}

.vsh-search-result-card__link:hover .vsh-search-result-card__media img {
    transform: scale(1.025);
}

.vsh-search-result-card__media.is-placeholder svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vsh-search-result-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 15px;
}

.vsh-search-result-card__type {
    display: block;
    margin: 0 0 6px;
    color: var(--vsh-blue, #1955b5);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.vsh-search-result-card__title {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 10px;
    color: var(--vsh-heading, #172033);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.vsh-search-result-card__price {
    margin-top: auto;
    color: var(--vsh-blue, #1955b5);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.vsh-search-result-card__more {
    margin-top: auto;
    color: var(--vsh-blue, #1955b5);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

/* Pagination ------------------------------------------- */

.vsh-search-page-pagination {
    margin: 30px 0 0;
}

.vsh-search-page-pagination[hidden] {
    display: none !important;
}

.vsh-search-page-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.vsh-search-page-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    margin: 0;
    padding: 0 10px;
    color: #334155;
    background: #fff;
    border: 1px solid var(--vsh-border, #e5ebf2);
    border-radius: 7px;
    font-size: 13px;
    line-height: 1;
    text-decoration: none !important;
}

.vsh-search-page-pagination a.page-numbers:hover,
.vsh-search-page-pagination .page-numbers.current {
    color: #fff;
    background: var(--vsh-blue, #1955b5);
    border-color: var(--vsh-blue, #1955b5);
}

.vsh-search-page-pagination .page-numbers.dots {
    min-width: 22px;
    padding: 0 3px;
    color: var(--vsh-text-muted, #607086);
    background: transparent;
    border-color: transparent;
}

.vsh-search-page__noscript {
    margin-top: 18px;
    padding: 14px;
    color: #8a5a00;
    background: #fff9e8;
    border: 1px solid #f0dfad;
    border-radius: 8px;
    font-size: 13px;
}

@media (max-width: 1199px) {
    .vsh-search-page__results {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 849px) {
    .vsh-search-page {
        padding-top: 20px;
        padding-bottom: 34px;
        scroll-margin-top: 72px;
    }

    .vsh-search-page .vsh-search-tabs {
        flex-wrap: nowrap;
        gap: 7px;
        margin-right: -15px;
        margin-left: -15px;
        padding-right: 15px;
        padding-bottom: 5px;
        padding-left: 15px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .vsh-search-page .vsh-search-tabs::-webkit-scrollbar {
        display: none;
    }

    .vsh-search-page .vsh-search-tab {
        min-height: 38px;
        padding: 8px 12px;
        font-size: 12px;
    }

    .vsh-search-page__results,
    .vsh-search-page__results[data-post-type="product"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 549px) {
    .vsh-search-page {
        padding-top: 16px;
        padding-bottom: 28px;
    }

    .vsh-search-page__title {
        font-size: 22px;
    }

    .vsh-search-page__summary {
        font-size: 12px;
    }

    .vsh-search-page__results {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .vsh-search-page__results[data-post-type="product"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vsh-search-result-card__link {
        border-radius: 9px;
    }

    .vsh-search-result-card__body {
        padding: 11px;
    }

    .vsh-search-result-card__type {
        margin-bottom: 4px;
        font-size: 10px;
    }

    .vsh-search-result-card__title {
        margin-bottom: 8px;
        font-size: 12px;
        line-height: 1.45;
        -webkit-line-clamp: 2;
    }

    .vsh-search-result-card__price {
        font-size: 13px;
    }

    .vsh-search-page__state {
        min-height: 150px;
        font-size: 13px;
    }
}
