.section-title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 0;
}

#btn-view-all {
    background-color: #E6E9FB;
    color: var(--primary);
}

.accordion-button svg:hover path{
    fill: var(--primary) !important;
}

.vendor-card {
    display: flex;
    flex-direction: column;
    height: 480px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #ECECEC;
    border-radius: 35px;
}

.vendor-img-wrapper {
    flex: 1;
    height: 240px;
    min-height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin: 0;
    padding: 0;
    background: transparent;
}

.vendor-img-wrapper img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.vendor-content {
    flex-shrink: 0;
    height: 180px;
    padding: 16px;
    background: #F7F7F7;
}

#badge-discount {
    background-color: #E6E9FB;
    color: var(--primary);
}

.vendor-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 6px;
}

.vendor-tag {
    border: 1px solid #ECECEC;
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 0.75rem;
    color: #191919;
    background-color: #F9F9F9;
    white-space: nowrap;
    font-weight: 400;
}

.vendor-rating {
    gap: 6px;
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    direction: ltr;
}

.rating-star {
    display: block;
    width: 18px;
    height: 18px;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.rating-star:hover {
    transform: scale(1.1);
}

.rating-number {
    color: #5F5F5F;
    font-size: 13px;
    min-width: 18px;
    text-align: center;
}

.rating-text {
    font-size: 0.8rem;
    color: #7F7F7F;
    white-space: nowrap;
}

.accordion-button::after {
    display: none !important;
}

.accordion-button {
    position: relative;
    min-height: 52px;
    padding: 12px 16px 12px 52px;
    background-color: #fff !important;
    color: #222 !important;
    font-weight: 600;
    font-size: 14px;
    border-radius: 10px !important;
    box-shadow: none !important;
    text-align: right;
}

.accordion-button:focus {
    box-shadow: none !important;
}

.faq-arrow {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #EEF0FC;
    border-radius: 4px;
    transform: translateY(-50%) rotate(180deg);
    transition: transform 0.2s ease;
}

.faq-arrow svg {
    width: 16px;
    height: 16px;
    display: block;
}

.accordion-button:not(.collapsed) .faq-arrow {
    transform: translateY(-50%) rotate(0deg);
}

.accordion-button:not(.collapsed)::before {
    content: "";
    position: absolute;
    right: 12px;
    left: 12px;
    bottom: 0;
    height: 1px;
    background-color: #ECECEC;
}

.accordion-body {
    padding: 12px 16px 16px;
    color: #7F7F7F;
    background-color: #fff;
    font-size: 13px;
    line-height: 1.9;
}

.faq-icon {
    color: #D5D5D5 !important;
    font-size: 15px;
    margin-left: 8px;
    flex-shrink: 0;
}

.accordion-item {
    border-radius: 5px !important;
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    direction: ltr;
}

.rating-star {
    display: block;
    width: 18px;
    height: 18px;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.rating-star:hover {
    transform: scale(1.1);
}

.rating-number {
    color: #5F5F5F;
    font-size: 13px;
    min-width: 18px;
    text-align: center;
}
/*------------------------------merchant-marketplace--------------------------------header banner*/

.header-banner {
    min-height: 400px;
    background-image: url("/r/img/merchant/bg-BANNER.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    overflow: visible !important;
}

.banner-decoration {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    transition: transform 0.5s ease;
}

.banner-decoration-right {
    right: 0;
    top: 50%;
    transform: translateY(-50%) scale(0.9);
    transform-origin: right center;
}

.banner-decoration-left {
    left: 0;
    top: 50%;
    transform: translateY(-50%) scale(0.9);
    transform-origin: left center;
}

.header-banner:hover .banner-decoration-right {
    transform: translateY(-50%) scale(1.05);
}

.header-banner:hover .banner-decoration-left {
    transform: translateY(-50%) scale(1.05);
}


.desc-banner {
    z-index: 2;
    max-width: 700px;
}

.banner-input-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin-top: 25px;
}

.banner-search svg {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none;
}

.banner-input:focus {
    outline: none;
}

.banner-input {
    width: 375px;
    height: 66px;
    border: 1px solid #ECECEC;
    border-radius: 45px;
    padding: 0 45px;
    text-align: right;
    font-family: inherit;
    font-size: 14px;
    color: #7F7F7F;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

#search-btn {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    height: 50px;
    min-width: 100px;
    border-radius: 30px;
}

.banner-input:focus {
    outline: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.search-results {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    background: #fff;
    border: 1px solid #ECECEC;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    display: none;
    overflow: hidden;
    margin: 3px 16px 3px 16px;
    max-height: 280px;
    overflow-y: auto
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    direction: rtl;
    border-bottom: 1px solid #ECECEC;
}

.search-result-item:hover {
    background-color: #F7F7F7;
}

.search-result-name {
    font-size: 14px;
    font-weight: 500;
    color: #7F7F7F;
}

.search-result-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.search-no-result {
    padding: 16px;
    text-align: right;
    color: #7F7F7F;
    font-size: 14px;
}

.merchant-banner {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .wrapper-scroll-row{
        max-width: 380px;
    }
    .faq-section {
        padding: 1.5rem 0;
    }

    .faq-title {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .accordion-button {
        min-height: 48px;
        padding: 10px 12px 10px 48px;
        font-size: 13px;
    }

    .accordion-button::after {
        left: 8px;
        width: 24px;
        height: 24px;
    }

    .accordion-body {
        padding: 10px 12px 14px;
        font-size: 12px;
    }

    .banner-input {
        height: 55px;
        font-size: 12px;
        width: 349px;

    }

    #search-btn {
        width: 108px !important;
        height: 41px !important;

    }

    .header-banner {
        background-image: url("/r/img/merchant/bg-mobile-banner.png");

    }

    .banner-decoration {
        position: inherit;
    }

    .search-results {
        margin: -4px 14px 3px 14px;
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
    }

    .vendor-scroll-row {
        display: flex;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 15px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .vendor-scroll-row::-webkit-scrollbar {
        display: none;
    }

    .vendor-scroll-row > .col-12 {
        flex: 0 0 92%;
        /*max-width: 280px;*/
    }

    .merchant-banner {
        width: 100%;
        padding: 0;
        margin: 0;
    }

}
