/* پنل نتایج */
/* حذف دکمه clear (x) در کروم / اج */
.view-search-form input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

/* فایرفاکس */
.view-search-form input[type="search"]::-moz-search-clear {
    display: none;
}

/* سافاری (وب‌کیت) */
.view-search-form input[type="search"]::-webkit-search-decoration,
.view-search-form input[type="search"]::-webkit-search-results-button,
.view-search-form input[type="search"]::-webkit-search-results-decoration {
    display: none;
}


#view-live-search {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline: 0;
    z-index: 999;
}

.view-search-panel {
    background: #fff;
    border: 1px solid #ececf4;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
    padding: 10px;
    max-height: 238px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;

    /* برای فایرفاکس */
    scrollbar-width: thin;
    scrollbar-color: var(--view-secondary, #E63F66) transparent;
}

/* Chrome/Edge/Safari */
.view-search-panel::-webkit-scrollbar {
    width: 6px; /* ضخامت اسکرول */
}

.view-search-panel::-webkit-scrollbar-track {
    background: transparent; /* مسیر شفاف یا سفید */
}

.view-search-panel::-webkit-scrollbar-thumb {
    background-color: var(--view-secondary, #E63F66); /* قرمز قالب */
    border-radius: 999px; /* گرد کامل */
}

.view-search-panel::-webkit-scrollbar-thumb:hover {
    background-color: #c42d52; /* رنگ hover کمی تیره‌تر */
}

/* وضعیت خالی */
.view-search-empty {
    padding: 22px;
    text-align: center;
    color: #8b8ea3;
    font-size: 14px
}

/* کارت پایه */
.view-result-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #221f471a;
    text-decoration: none;
    color: #1f2030;
    transition: box-shadow .15s ease, transform .12s ease, border-color .15s ease;
    flex-direction: row-reverse;
    justify-content: space-between;
}

.view-result-card + .view-result-card {
    margin-top: 10px;
}

.view-card-media {
    width: 96px;
    height: 89px;
    border-radius: 8px;
    overflow: hidden;
    background: #f2f2f6;
    padding: 0;
    margin: 0;
}

.view-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.view-card-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: #eef0f4;
}

.view-card-body {
    width: 72%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.view-card-title {
    font-weight: 700;
    font-size: 16px;
    line-height: 22px;
    color: var(--view-accent);
    overflow: hidden;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.view-card-excerpt {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-direction: row-reverse;
    justify-content: space-between;
    padding: 5px 10px 5px 5px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #221f470a;
}

.view-card-excerpt p {
    margin: 0;
    color: #a2a2a2;
    font-size: 14px;
    text-align: right;
    line-height: 23px;
}


.view-card-subtitle {
    margin: 0;
    font-size: 13px;
    color: #7a7e90;
}

.view-card-price {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.view-price-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--view-accent);
    width: fit-content;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.view-price-amount span.woocommerce-Price-currencySymbol {
    font-size: 14px;
    color: #9aa0b5;
}

span.view-price-amount:before {
    content: '';
    display: flex;
    width: 8px;
    height: 8px;
    background: var(--view-secondary);
    border-radius: 2px;
}


.view-card-product {
    flex-direction: row;
}

.view-card-product .view-card-media {
    width: 96px;
    height: 89px;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--view-accent);
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
}

.view-card-product .view-card-media:before {
    content: '';
    display: block;
    position: absolute;
    z-index: -1;
    background: url('../image/pattern.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    left: 0;
    top: 0;
    mix-blend-mode: difference;
    width: 100%;
    height: 100%;
}

.view-card-product-details {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.view-bubble {
    display: flex;
    align-items: center;
    justify-content: center;
}