.slick-initialized .slick-slide {
    height: auto;
}

.combo-discount-title-wrapper {
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    align-items: baseline;
    grid-gap: 16px;
    margin-bottom: 12px;
}

.combo-discount-title {
    font-size: calc(17px + (21 - 17) * ((100vw - 300px) / (1920 - 300)));
    display: block;
    padding: 0;
    font-weight: 600;
    color: #111;
}

.combo-discount-view-all {
    font-size: var(--gap14);
    display: flex;
    align-items: center;
    grid-gap: 4px;
    line-height: 1;
}

.combo-discount-items {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    grid-gap: 16px;
}

.product-detail-price-box .combo-discount-items {
    margin-top: 10px;
}

.combo-discount-item {
    color: #ee4d2d;
    border: 1px solid #ee4d2d;
    font-size: 14px;
    padding: 2px 4px;
    border-radius: 3px;
}
.product-selected-item-group {
    display: flex;
    align-items: flex-end;
    margin-bottom: 6px;
    position: relative;
}

.product-selected-item-group .combo-discount-value {
    background: #219ac5bd;
    color: white;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 4px;
    position: absolute;
    bottom: 0;
    left: 0;
}
  

.promotion-combo-discount .combo-discount-item {
    width: fit-content;
    margin-top: 4px;
}

.combo-discount-product .link-to-product .viewed-title {
    min-height: 40px;
    font-size: calc(15px + (16 - 15) * ((100vw - 300px) / (1920 - 300)));
}

.combo-discount-title-loading {
    height: 30px;
    margin-bottom: 12px;
    width: 40%;
}

.combo-discount-loading-wrapper {
    margin: 24px 0;
}

.combo-discount-list-loading {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-gap: 14px;
}

.combo-discount-item-loading::before {
    content: "";
    display: block;
    padding-bottom: 100%;
}

.combo-discount-item-loading {
    height: auto;
}

.combo-discount-body {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    row-gap: 24px;
    margin: 20px auto 40px;
}

.combo-discount-header-title {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-gap: 16px;
    font-size: 28px;
    margin: 20px auto 15px;
    font-weight: 600;
    color: #111;
}

.combo-discount-header-title h1 {
    font-size: 28px;
    margin: 0;
}

.combo-discount-label-list {
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.combo-discount-label-item {
    position: relative;
    font-size: 20px;
    line-height: 33px;
    align-items: center;
    display: inline-flex;
    justify-content: center;
}

.combo-discount-label-item:not(:first-child)::before {
    background-color: #b5b5b5;
    content: "";
    display: inline-block;
    height: 8px;
    margin: auto 15px;
    width: 8px;
    border-radius: 50%;
}

.combo-discount-label-item span {
    color: var(--price);
    margin: 0px 4px;
}

.combo-discount-body .feature-title {
    margin: 8px auto 12px;
    width: 100%;
    font-size: calc(15px + (16 - 15) * ((100vw - 300px) / (1920 - 300)));
}

.combo-discount-body .feature-price {
    width: calc(100% - 28px);
    flex-wrap: wrap;
    row-gap: 4px;
}

.combo-discount-body .icon-addtocart {
    bottom: 4px;
    right: 8px;
    width: 26px;
    height: 26px;
}

.combo-discount-body .icon-addtocart svg {
    width: 14px;
    height: 14px;
}

.combo-discount-body .new-price {
    font-size: 17px;
}

.quantity-available {
    margin-left: 12px;
}

.combo-discount-footer-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    background: #fff;
    width: 100%;
    z-index: 999;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, .05);
    padding: 12px;
    font-size: 16px;
    min-height: 98px;
    display: flex;
    justify-content: flex-end;
}

.product-selected-item-group {
    display: flex;
    align-items: flex-end;
    margin-bottom: 0;
    position: relative;
    grid-gap: 4px;
}

.combo-discount-footer {
    max-width: 1250px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
    margin: auto;
    width: 100%;
}

.combo-discount-footer-right {
    display: flex;
    align-items: center;
    grid-gap: 20px;
    position: absolute;
    right: calc(((100vw - 1260px) / 2));
    bottom: 26px;
}

.btn.btn-combo-discount {
    background: var(--price);
    color: #fff;
    padding: 10px 28px;
    font-size: 16px;
}

.combo-discount-footer-price {
    display: flex;
    flex-direction: column;
    grid-gap: 4px;
}

.combo-discount-footer-price span {
    text-align: right;
    line-height: 1.2;
}

.combo-discount-footer-price span.combo-save-price {
    color: var(--price);
}

.product-selected-item {
    width: 50px;
    height: 50px;
    position: relative;
    background: #f8f8f8;
    border-radius: 4px;
}

.product-selected-item img {
    mix-blend-mode: multiply;
}

.product-delete-icon {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--price);
    color: #fff;
    border-radius: 50px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    cursor: pointer;
}

.product-selected-list {
    position: relative;
    display: flex;
    align-items: center;
    grid-gap: 8px;
    width: fit-content;
}

.combo-discount-value {
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 12px;
    padding: 3px;
    color: #fff;
    background: #219ac5bd;
}

.product-selected-item:hover .product-delete-icon {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.product-selected-list-wrapper,
.product-selected-list-content {
    display: flex;
    align-items: center;
    grid-gap: 8px;
}

.product-selected-list-content {
    max-width: 602px;
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.product-selected-preview {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 4px;
    border: 1px dashed #ccc;
}

.combo-discount-footer-txt {
    margin-bottom: 4px;
}

.btn.btn-combo-discount {
    font-size: 16px;
    outline: none;
    box-shadow: none;
    height: 44px;
    line-height: 44px;
    padding: 0 18px;
}

.btn.btn-combo-discount:hover,
.btn.btn-combo-discount:focus,
.btn.btn-combo-discount.active:focus,  
.btn.btn-combo-discount:active:focus {
    color: #fff;
    outline: none;
}

.combo-discount-body .feature-product {
    min-height: unset;
}

.combo-discount-popup-wrapper {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, .14);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.combo-discount-popup {
    width: 100%;
    max-width: 860px;
    max-height: 86vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 8px;
}

.combo-discount-popup .market-price {
    text-decoration: line-through;
}

.combo-discount-popup-info {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    padding: 24px;
    grid-gap: 24px;
}

.combo-discount-popup-title {
    color: #313131;
    font-size: 18px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 16px;
}

.combo-discount-popup-image img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
}

.combo-discount-popup-actions {
    position: sticky;
    bottom: 0;
    padding: 20px 24px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    grid-gap: 16px;
}

.combo-discount-popup-actions button {
    padding: 8px 16px;
    border-radius: 4px;
}

.combo-discount-popup-actions .combo-discount-popup-back {
    background: #e8e8e8;
    border: 1px solid #e8e8e8;
}

.combo-discount-popup-actions .combo-discount-popup-add {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: #fff;
}
.fly-image {
    position: absolute;
    z-index: 9999;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    pointer-events: none;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s;
}

.product-quantity {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.combo-discount-popup-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.combo-discount-popup {
    background: white;
    border-radius: 12px;
    padding: 20px 10px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.combo-discount-popup .buy-cart-action {
    --itemWidth: 220px;
}

.combo-discount-popup .buy-cart-action-item {
    font-size: 16px;
}

.combo-discount-popup-row {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    margin-bottom: 16px;
    align-items: center;
    grid-gap: 10px;
}

.combo-discount-popup-label {
    color: #757575;
}

.combo-discount-popup-price {
    font-size: 20px;
    font-weight: 600;
    color: var(--price);
}

.combo-discount-popup-variant {
    display: flex;
    flex-wrap: wrap;
    grid-gap: 8px;
}

.combo-discount-popup-variant-item {
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #e1e1e1;
    line-height: 1;
    min-width: 60px;
    text-align: center;
    cursor: pointer;
    transition: .3s ease;
}

.combo-discount-popup-variant-item:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.combo-discount-popup-quantity {
    display: flex;
    align-items: center;
}

.combo-discount-popup-quantity input {
    padding: var(--gap6) var(--gap8);
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    background: #fff;
    text-align: center;
    width: 60px;
    margin: 0 8px;
    height: 30px;
}

.combo-discount-popup-quantity-btn {
    border: 1px solid #e1e1e1;
    background: #fff;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.quantity-availabel {
    color: #757575;
    font-size: 14px;
    margin-left: 8px;
}

.combo-discount-wrapper ~ .iframeChat {
    bottom: 13px !important;
    right: calc((100vw - 1260px) / 2) !important;
}

.shop-discount-item.promotion-combo-discount {
    width: fit-content;
    background-color: #FEF2F2;
    border-color: #FDCBCB;
}

/* Leftover products section styles */
.leftover-products-section {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.leftover-products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #dee2e6;
}

.leftover-products-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.leftover-total {
    font-size: 16px;
    font-weight: 600;
    color: var(--price);
}

.leftover-products-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.leftover-product-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 16px;
    padding: 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    align-items: center;
}

.leftover-product-image {
    position: relative;
    width: 60px;
    height: 60px;
}

.leftover-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.leftover-product-quantity {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid white;
}

.leftover-product-info {
    flex: 1;
}

.leftover-product-title {
    font-size: 16px;
    font-weight: 500;
    color: #212529;
    margin: 0 0 8px 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.leftover-product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.leftover-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--price);
}

.leftover-old-price {
    font-size: 14px;
    color: #6c757d;
    text-decoration: line-through;
}

.leftover-product-total {
    font-size: 14px;
    color: #495057;
    font-weight: 500;
}

.leftover-product-actions {
    display: flex;
    align-items: center;
}

.leftover-product-remove {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8d7da;
    color: #721c24;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.leftover-product-remove:hover {
    background: #f5c6cb;
    color: #721c24;
}

/* Leftover products styling in combo footer */
.leftover-group {
    opacity: 0.7;
}

.leftover-group .combo-discount-value {
    background: #6c757d;
    color: white;
}

.leftover-group .combo-discount-value.leftover-label {
    background: #6c757d;
    color: white;
    font-size: 9px;
}

/* Simple combo suggestion text */
.combo-suggestion-simple {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.combo-suggestion-simple strong {
    color: var(--price);
    font-weight: 600;
}

.product-selected-btn {
    height: 50px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #f1f1f1;
    color: #bababa;
    display: none;
}

.show-icon .product-selected-btn {
    display: flex;
}

.product-selected-btn:hover {
    color: gray;
}

#combo-popup-slider-wrapper .slider-nav {
    display: none;
}

#combo-popup-slider-wrapper .lg-item {
    background: #f8f8f8;
    border-radius: 5px;
}

#combo-popup-slider-wrapper .lg-item img {
    mix-blend-mode: multiply;
    max-height: 400px;
}

.combo-discount-popup .popup-product-detail-layout-wrapper {
    grid-row-gap: 0;
}

.combo-discount-popup .product-detail-info {
    margin-top: 20px;
}

@media(min-width: 768px) and (max-width: 1024px) {
    .combo-discount-body {
        grid-template-columns: repeat(4, 1fr);
    }

    .product-selected-list-content {
        max-width: 42vw;
    }

    .combo-discount-popup .popup-product-detail-layout-wrapper {
        grid-column-gap: 16px;
    }

    .combo-discount-popup .product-total-quantity-value {
        margin-left: 0;
    }

    .combo-discount-popup .buy-cart-action-item {
        min-width: 100px;
        width: fit-content;
    }

    .combo-discount-footer-right {
        right: 12px;
    }
}



.combo-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 20px 0;
}
.combo-pagination .combo-page-btn {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 14px;
    cursor: pointer;
}
.combo-pagination .combo-page-btn.active {
    background: #2199c4;
    border-color: #2199c4;
    color: #fff;
}
.combo-pagination .combo-page-btn.dots {
    border-color: transparent;
    background: transparent;
    cursor: default;
}
.combo-pagination .combo-page-btn:disabled:not(.active):not(.dots) {
    opacity: .4;
    cursor: default;
}
