.bms-lock {
    overflow: hidden;
}

.bms-trigger {
    align-items: center;
    background: transparent;
    border: 1px solid #DDD;
    border-radius: 10px;
    color: #1D1D1B;
    cursor: pointer;
    display: inline-flex;
    font-family: "Poppins", sans-serif !important;
    font-size: 14px !important;
    line-height: 20px !important;
    letter-spacing: 0.25px !important;
    font-weight: 500 !important;
    min-height: 48px;
    padding: 14px 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
}
.bms-trigger:hover {
    background-color: transparent;
    border: 1px solid #777;
    color: #1D1D1B;
}

.bms-trigger:focus {
    background-color: transparent;
    border: 1px solid #777;
    color: #1D1D1B;
}

.bms-modal[hidden] {
    display: none;
}

.bms-modal {
    background: #fff;
    inset: 0;
    position: fixed;
    z-index: 999999;
    overflow-y: visible;
    overflow-x: hidden;
}

.bms-modal-container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 100px 0px 100px 0px;
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.bms-modal__bar {
    display: flex;
    align-items: center;
    gap: 20px;
}

.bms-modal__bar-input-container {
    border: 1px solid #ddd;
    border-radius: 10px;
    display: flex;
    flex: 1;
    padding: 14px 40px;
    align-items: center;
}

.bms-input {
    border: none !important;
    flex: 1;
    outline: 0;
    border-radius: 10px;
    background-color: transparent;

    font-family: "Roboto", sans-serif !important;
    font-size: 24px !important;
    line-height: 32px !important;
    letter-spacing: 0.25px !important;
    font-weight: 500 !important;
    color: #1D1D1B;
    padding: 0 !important;
}

.bms-input::placeholder {
    color: #aaa;
}

.bms-close {
    background: transparent;
    border: 1px solid #ddd;
    cursor: pointer;
    height: 48px;
    position: relative;
    width: 48px;
    line-height: 0 !important;
    padding: 0 !important;
}

.bms-close:hover {
    background: transparent;
    border: 1px solid #777;
}

.bms-close:focus {
    background: transparent;
    border: 1px solid #777;
}

.bms-modal__body {
    /* height: calc(100vh - 98px); */
    max-width: 1170px;
    margin: 0 auto;
}

.bms-best-sellers[hidden] {
    display: none;
}

.bms-best-sellers-section {
    display: grid;
    gap: 28px;
}

.bms-best-sellers-header {
    align-items: end;
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.bms-best-sellers-heading {
    display: grid;
    gap: 20px;
}

.bms-best-sellers-title {
    color: #1D1D1B !important;
    font-family: "Poppins", sans-serif;
    font-size: 36px !important;
    font-weight: 700 !important;
    line-height: 44px !important;
    margin: 0;
}

.bms-best-sellers-divider {
    background: #1D1D1B;
    display: block;
    height: 2px;
    width: 50px;
}

.bms-best-sellers-nav {
    align-items: center;
    display: flex;
    gap: 20px;
}

.bms-swiper-button {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    height: 48px;
    position: relative;
    width: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bms-swiper-button:hover {
    background: #fff;
    border: 1px solid #aaa;
}

.bms-swiper-button:focus {
    background: #fff;
    border: 1px solid #aaa;
}

.bms-swiper-button:disabled {
    cursor: default;
    opacity: 0.35;
}

.bms-swiper {
    overflow: visible;
    transform: translate(-101%);
}

.bms-best-sellers-track {
    display: flex;
    gap: 20px;
    margin: 0;
    overflow: visible;
    padding: 0 0 18px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    transform: translateX(0);
    transition: transform 300ms ease;
    will-change: transform;
}

.bms-best-sellers-track::-webkit-scrollbar {
    display: none;
}

.bms-best-sellers-track .bms-result-item {
    flex: 0 0 calc((100% - 40px) / 3);
    scroll-snap-align: start;
}

.bms-status,
.bms-empty {
    color: #1D1D1B !important;
    font-family: "Poppins", sans-serif !important;
    font-size: 24px !important;
    line-height: 32px !important;
    margin: 0;
}

.bms-results {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bms-results .bms-empty {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 30px;
    grid-column: 1 / -1;
    justify-content: center;
    min-height: 360px;
    text-align: center;
}

.bms-result-item {
    min-width: 0;
}

.bms-product-card {
    color: inherit;
    display: grid;
    gap: 10px;
    text-decoration: none;
}

.bms-product-card__image {
    aspect-ratio: 1;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.bms-product-card__title {
    color: #151515;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

.bms-product-card__price {
    color: #555;
    font-size: 15px;
}

@media (max-width: 767px) {
    .bms-modal__bar {
        min-height: 48px;
    }

    .bms-modal__body {
        height: calc(100vh - 96px);
    }

    .bms-results {
        grid-template-columns: 1fr;
    }

    .bms-best-sellers-track .bms-result-item {
        flex-basis: 86%;
    }

    .bms-best-sellers-header {
        align-items: start;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .bms-best-sellers-track .bms-result-item {
        flex-basis: calc((100% - 20px) / 2);
    }
}
