.swiper {
    max-height: 405px;
}

.swiper .swiper-slide img {
    width: 100%;
    object-fit: fill;
    max-height: 405px;
}

.swiper-button-next:after, .swiper-button-prev:after {
    color: #fff;
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: rgba(220, 222, 233, 0.5);
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    z-index: 10;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-button-prev:after {
    border-radius: 0 100% 100% 0;
}

.swiper-button-next:after {
    border-radius: 100% 0 0 100%;
}

.banner .banner-tabs {
    border: 1px solid var(--header-background-1);
}

.banner .banner-tabs .card-header {
    border-radius: 6px 6px 0 0;
}

.banner .banner-tabs .nav-link {
    color: var(--primary-color);
    font-weight: 600;
    border-bottom: 1px solid var(--header-background-1) !important;
}

.banner .banner-tabs .nav-link.active {
    color: white;
    background: var(--header-background-1);
}

.banner .banner-tabs .nav-link:first-child {
    border-top-right-radius: 0px;
    font-size: 18px;
}

.banner .banner-tabs .nav-link:last-child {
    border-top-left-radius: 0px;
    font-size: 18px;
}

.banner .banner-tabs .tab-content {
    /* padding-top: 30px; */
}

.banner .card .card-header {
    display: flex;
    justify-content: center;
    color: #ffffff;
    font-weight: 600;
    background: var(--header-background-1);
}

.banner .card .card-body {
    min-height: 300px;
}

.banner .card .card-footer {
    height: 66px;
}

.banner .card-body span.rank {
    width: 24px;
    height: 25px;
    margin-right: 0.25em;
    text-align: center;
    border: 1px solid var(--text-color-1);
    border-radius: 50%;
    display: inline-block;
    font-size: 14px;
}

.banner .card-body .star:after {
    content: "";
    animation: pulse-star 2s cubic-bezier(.455, .03, .515, .955) -.4s infinite;
    height: 30px;
    left: -3px;
    position: absolute;
    top: -4px;
    width: 30px;
    background: yellow;
    /* z-index: -1; */
    opacity: 0.5;
    border-radius: 50%;
    mix-blend-mode: multiply;
}

.banner .card-body .star img {
    animation: rotate-star 10s linear infinite; /* Adjust speed as needed */
}

.main .services img {
    width: 80px;
    height: 80px;
}

.main .services .item {
    transition: all 0.3s ease-in-out;
}

.main .services .item:hover {
    transform: translateY(-10px);
    cursor: pointer;
}

.main .category {
    margin-bottom: 2rem;
}

.main .category .title button {
    border-radius: 8px;
    border: 1px solid rgba(0, 36, 102, 0.1);
    background: #FFF;
    color: var(--text-color-1);
    transition: all 0.4s;
}

.main .category .title button:hover {
    transform: translateX(10px);
}

.seller {
    position: fixed;
    max-width: 210px;
    max-height: 300px;
    top: 50%;
    right: 4%;
    z-index: 10;
    color: var(--text-color-1);
    animation: bounceUpDown 3s ease-in-out infinite;
    box-shadow: 0 3.4623px 6.1418px rgba(0, 0, 0, 0.05), 0 7.92923px 12.9218px rgba(0, 0, 0, 0.05), 0 9px 15px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
}

.seller .card {
    border-color: var(--text-color-2);
}

.seller .card-header {
    padding: 0 6px;
    background: none;
    border: none;
    float: right;
    text-align: end;
}

.seller .card-header img {
    width: 14px;
    height: 14px;
}

.seller .card-body {
    padding-top: 0;
}

.seller .card-body img {
    width: 100%;
}

.seller p {
    -webkit-line-clamp: 3;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    font-size: 12px;
    text-align: justify;
    color: var(--text-color-2);
}

.seller .card-body button {
    font-size: 14px;
    width: 50%;
    float: right;
}

.seller .fa-solid.fa-xmark:hover {
    cursor: pointer;
    color: #ff0000;
}

.notification-wrapper {
    width: 350px;
    height: 400px;
    background: #ffffff;
    right: -16px;
    top: 50px;
    z-index: 9;
    border-radius: 16px;
    box-shadow: 0px 1px 4px 0px #00000033;
}

.notification-wrapper .head {
    background: var(--primary-color);
    color: #ffffff;
    border-top-right-radius: 16px;
    border-top-left-radius: 16px;
}

.notification-wrapper .content img.empty {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

button .cart-badge {
    width: 20px;
    height: 20px;
    position: absolute;
    top: -3px;
    z-index: 9;
    background: red;
    right: -3px;
    padding: 5px;
    font-size: 13px;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
}

button .cart-badge:empty {
    display: none;
}

#sellerModal .close {
    width: 20px;
    height: 20px;
    background: var(--body-background);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    right: 5px;
    top: 5px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

#sellerModal .modal-content {
    max-height: 90vh; /* Giới hạn chiều cao nội dung modal */
    display: flex;
    flex-direction: column;
}

#sellerModal .modal-body {
    overflow-y: auto;
    flex: 1 1 auto; /* Chiếm hết phần còn lại */
}

.select2-container--default .select2-selection--single {
    min-height: 38px;
    border-color: #ced4da;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    min-height: 38px;
}
.select2-container--open .select2-dropdown,
.select2-container--open .select2-selection--single {
    border-color: var(--primary-color);
}

.seller-wrapper  {
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 3.4623px 6.1418px rgba(0, 0, 0, 0.05), 0 7.92923px 12.9218px rgba(0, 0, 0, 0.05), 0 9px 15px rgba(0, 0, 0, 0.08);
    border: none;
    padding: 20px 20px 10px;
}

.category-menu {
    justify-content: space-between;
}

.category-menu .category-menu-item {
    width: 10%;
}

/* Horizontal scroll category menu wrapper */
.category-menu-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Navigation buttons */
.category-nav-btn {
    position: relative;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.category-nav-btn:hover:not(:disabled) {
    background: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.category-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.category-nav-btn i {
    font-size: 14px;
}

/* Horizontal scroll category menu */
.category-menu-horizontal-scroll {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.category-menu-horizontal-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.category-menu-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    padding: 10px 0;
    min-width: max-content;
    justify-content: center;
}

.category-menu-item-horizontal {
    flex: 0 0 auto;
    min-width: 80px;
    max-width: 120px;
    transition: transform 0.2s ease;
}

.category-menu-item-horizontal:hover {
    transform: translateY(-5px);
}

.category-menu-item-horizontal .category-image {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.category-menu-item-horizontal .category-name {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    margin-top: 8px;
    word-wrap: break-word;
    text-align: center;
}

@media only screen and (max-width: 767px) {
    .category-menu {
        justify-content: center;
        gap: 15px;
    }

    .category-menu .category-menu-item {
        width: calc(25% - 11.25px);
        font-size: 12px;
    }

    .category-menu-wrapper {
        gap: 8px;
    }

    .category-nav-btn {
        width: 35px;
        height: 35px;
    }

    .category-nav-btn i {
        font-size: 12px;
    }

    .category-menu-container {
        gap: 12px;
        padding: 8px 0;
    }

    .category-menu-item-horizontal {
        min-width: 70px;
        max-width: 100px;
    }

    .category-menu-item-horizontal .category-image {
        height: 50px;
    }

    .category-menu-item-horizontal .category-name {
        font-size: 11px;
        margin-top: 6px;
    }
}

