#voucher-search {
    margin: 40px 0;
}

.voucher-wallet-item {
    border: 1px solid #e5e5e5;
    box-shadow: var(--vc-template-box-shadow,.125rem .125rem .3125rem rgba(0,0,0,.07));
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    border-radius: 4px;
    min-height: 90px;
}

.voucher-img img {
    height: 100%;
    max-height: 88px;
    border-radius: 4px 0 0 4px;
    object-fit: cover;
}

.voucher-img {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px 0 0 4px;
}

#voucher-search .voucher-img.not-voucher-freeship {
    background: #139CC6;
}

#voucher-search .voucher-img.voucher-freeship {
    background: #00C090;
}

.voucher-content {
    padding: 8px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.voucher-content-last {
    font-size: 14px;
}

.voucher-expire {
    color: rgba(0,0,0,.54);
}

.voucher-detail-item {
    margin: 0 auto 24px;
    align-items: center;
    justify-content: center;
    grid-gap: 24px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
}

.voucher-detail-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.voucher-detail-right .voucher-expire {
    color: #ec4747;
    font-size: 16px;
    line-height: 1;
}

.voucher-detail-right .voucher-expire svg {
    width: 18px;
}

.voucher-wallet-item .voucher-expire {
    display: inline-flex;
}

.voucher-note {
    font-size: 15px;
    color: rgba(0,0,0,.54);
    margin-top: 6px;
}

.voucher-note .buy-more {
    color: #ec4747;
}

.voucher-process-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 8px;
}

.voucher-process {
    width: calc(100% - 24px);
    height: 5px;
    background: #ccc;
    border-radius: 4px;
    position: relative;
}

.voucher-process::after {
    content: "";
    height: 5px;
    width: var(--percentActive);
    background: #1eb41e;
    position: absolute;
    border-radius: 4px 0 0 4px;
}

.voucher-process-wrapper svg.active {
    color: #1eb41e;
}

.voucher-process-wrapper svg {
    color: #ccc;
    position: absolute;
    right: 4px;
}

.voucher-detail-popup-wrapper {
    position: fixed;
    inset: 0;
    background-color: rgba(11, 11, 11, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.voucher-detail-popup-wrapper.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.voucher-detail-popup-bg {
    position: fixed;
    inset: 0;
}

.heading-voucher-wallet {
    position: sticky;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background-color: #fff;
    border: 1px solid #f5f5f5;
    z-index: 10;
}

.heading-voucher-wallet-title {
    font-size: 18px;
    font-weight: 700;
    color: #0A0A0A;
}

.close-modal-voucher {
    height: 24px;
    cursor: pointer;
}

.close-modal-voucher svg path {
    stroke: #a3a3a3;
}

.header-condition-content {
    position: relative;
    background-color: #fff;
    padding: 60px 20px 16px 20px;
}

.header-condition-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 140px;
    background: #70bfdb;
    background-color: var(--primary-dk);
}

.header-condition .voucher-right {
    display: block;
    align-content: center;
    border-radius: 0 3px 3px 0;
    background-color: #fff;
}

.header-condition .voucher-wallet-item {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    position: relative;
    border: none;
    border-radius: 0;
    box-shadow: 0px 4px 4px -2px #e5e5e5;
}

.voucher-detail-popup {
    position: relative;
    width: 500px;
    max-height: 90%;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 3px rgba(11, 11, 11, 0.25);
    margin: auto;
    overflow: auto;
}

.voucher-detail-popup-content {
    position: relative;
    z-index: 1;
}

.voucher-expire svg {
    width: 14px;
}

.voucher-detail-popup .voucher-expire svg {
    height: 14px;
}

.save-voucher,
.voucher-expire {
    display: flex;
    align-items: center;
    grid-gap: 4px;
}

.save-voucher {
    border: 1px solid #00000017;
    border-top: none;
    padding: 12px;
    color: var(--primary);
    font-size: 14px;
}

.save-voucher svg {
    width: 19px;
}

.header-condition .voucher-img img {
    height: 100%;
    object-fit: cover;
    border-radius: 3px 0 0 3px;
}

.header-condition .voucher-img .box-shop-image img {
    width: 56px;
    border-radius: 50%;
}

.header-condition .voucher-img {
    background-color: #fff;
    border-radius: 3px 0 0 3px;
}

.header-condition .voucher-img img {
    width: 100%;
    max-width: 88px;
}

.cart-discount-code {
    color: var(--primary);
    font-weight: 600;
}

.voucher-detail-content {
    padding: 16px;
}

.voucher-detail-content-item {
    font-size: 14px;
}

.voucher-detail-content-item:not(:last-child) {
    margin-bottom: 24px;
}

.voucher-detail-content-item strong {
    display: block;
    margin-bottom: 8px;
}

.voucher-detail-content-item ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 10px;
    margin-left: 10px;
}

.voucher-detail-content-item-full ul {
    grid-template-columns: repeat(1, 1fr);
}

.voucher-popup-footer {
    position: sticky;
    left: 0;
    bottom: 0;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,.24);
    padding: 16px 20px 20px;
    border-top: 1px solid #f5f5f5;
    z-index: 2;
}

.voucher-popup-footer button {
    width: 100%;
    background-color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 3px;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    transition: all .3s;
}

.voucher-popup-footer button:hover {
    background-color: #fff;
    color: #333333;
    transition: all .3s;
}

.voucher-loading-bouncing{
    display: flex;
    align-items: center;
    justify-content: center;
}

.voucher-title {
    font-size: 18px;
    font-weight: 600;
    color: #0A0A0A;
    margin: 0 0 4px 0;
}

.voucher-subtitle {
    font-size: 14px;
}

.voucher-des {
    margin-top: 3px;
    font-size: 14px;
    color: #333333;
}

.voucher-detail-popup .voucher-des,
.voucher-detail-popup .voucher-des .voucher-expire {
    color: #ec4747;
}

.voucher-condition-title {
    color: var(--primary);
    cursor: pointer;
}

.voucher-condition-title:hover {
    color: var(--primary-dk);
    text-decoration: underline; 
}

.voucher-search-title{
    display: flex;
    align-items: center;
    gap: 18px;                
    width: 100%;              
    max-width: 780px;        
    margin: 30px auto 24px;                  
    font-weight: 600;
    font-size: 20px;
}

.voucher-search-title::before,
.voucher-search-title::after{
    content: "";
    flex: 1;                  
    height: 1px;
    background: #e6e6e6;     
    display: block;
    min-width: 30px;         
}

.filter-product {
    display: flex;
    align-items: center;
    grid-gap: 8px;
    background: rgba(0, 0, 0, .03);
    padding: 12px 20px;
    border-radius: 4px;
}

.filter-product .filter-price {
    max-width: 166px;
}

.filter-product .filter-price:focus,
.filter-product .filter-price.active {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-product .filter-price:hover {
    background-image: linear-gradient(45deg, #43c0e4 50%, transparent 50%), linear-gradient(135deg, transparent 50%, #43c0e4 50%);
    background-position: calc(100% - 8px) 13px, calc(100% - 13px) 13px;
    background-size: 5px 5px, 5px 5px, 1px 1.5em;
    background-repeat: no-repeat;
}

.filter-product .filter-item {
    border: thin solid #d1d1d1;
    border-radius: 3px;
    padding: 5px 12px;
    background: #fff;
    transition: .3s ease;
}

.filter-product .filter-item.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.filter-product .filter-item:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.filter-price:hover {
    cursor: pointer;
    border-color: var(--primary);
    color: var(--primary);
}

.product-list-by-voucher {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-gap: 16px;
    grid-row-gap: 24px;
}

.product-list-by-voucher .feature-product {
    padding: 0;
    min-height: auto;
}

.product-list-by-voucher .feature-image img {
    object-fit: contain;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 5px;
    mix-blend-mode: multiply;
    transform: unset;
}

.product-list-by-voucher .icon-addtocart {
    position: static;
    width: 26px;
    height: 26px;
    cursor: pointer;
}

.product-list-by-voucher .feature-price {
    flex-wrap: wrap;
    grid-row-gap: 4px;
}

.product-list-by-voucher .feature-price-wrapper {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 26px;
    align-items: center;
    grid-gap: 4px;
}

.product-view-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
    grid-gap: 4px;
}

.voucher-product-list .view-more-btn {
    font-size: 15px;
    border: 1px solid var(--primary);
    padding: 4px 20px;
    transition: .3s ease;
}

.voucher-product-list .view-more-btn:hover {
    background: var(--primary);
    color: #fff;
}

.dot-loader {
  width: 40px;
  aspect-ratio: 2;
  --_g: no-repeat radial-gradient(circle closest-side,#2199c4 90%,#0000);
  background: 
    var(--_g) 0%   50%,
    var(--_g) 50%  50%,
    var(--_g) 100% 50%;
  background-size: calc(100%/3) 50%;
  animation: dotLoading 1s infinite linear;
}

@keyframes dotLoading {
    20%{background-position:0%   0%, 50%  50%,100%  50%}
    40%{background-position:0% 100%, 50%   0%,100%  50%}
    60%{background-position:0%  50%, 50% 100%,100%   0%}
    80%{background-position:0%  50%, 50%  50%,100% 100%}
}

.apply-voucher-search span {
    font-weight: bold;
}

.voucher-detail-popup .voucher-des .voucher-expire {
    line-height: 1;
    font-size: 13px;
}

.product-voucher-loading {
    width: 100%;
    background: linear-gradient(45deg, rgba(209, 209, 209, 0.35), rgba(11, 11, 11, 0.1), rgba(209, 209, 209, 0.1), rgba(209, 209, 209, 0.15));
    background-size: 400% 400%;
    animation: gradientLoading 3000ms ease infinite;
    border-radius: 5px;
}

.product-list-by-voucher .feature-price.product-voucher-loading {
    width: 100%;
}

@keyframes gradientLoading {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.product-detail-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;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.product-detail-popup-wrapper.active {
    opacity: 1;
    pointer-events: auto;
}

.product-detail-popup-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.product-detail-popup-layout {
    background: white;
    border-radius: 12px;
    padding: 24px 20px;
    width: 90%;
    max-height: 80vh;
    max-width: 860px;
    min-height: 450px;
    overflow-y: auto;
    z-index: 2;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    align-items: stretch;
    grid-column-gap: 20px;
}

.product-detail-layout-item.product-detail-info {
    display: flex;
    flex-direction: column;
}

.product-detail-layout-item.product-detail-gallery {
    background: #f8f8f8;
    grid-row-start: unset;
    height: 100%;
    min-height: 70px;
}

.product-detail-layout-item.product-detail-gallery img {
    height: auto;
    max-height: 100%;
    mix-blend-mode: multiply;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.buy-cart-action-item.btn-back {
    background: rgb(240, 240, 240);
    color: var(--dark);
    border-color: rgb(240, 240, 240);
}

.product-detail-layout-item .product-filter-box {
    min-width: 30px;
    padding: 4px 10px;
}

.product-detail-layout-item .product-filter-box .type-radio {
    align-items: center;
}

.product-view-add-to-cart-wrapper {
    opacity: 0;
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999129;
    transition: all 222ms ease-in-out;
}

.product-view-add-to-cart-wrapper.active {
    opacity: 1;
    pointer-events: all;
}

.product-view-add-to-cart-wrapper.active .product-variant-block {
    transform: translateY(0);
}

.product-view-add-to-cart-wrapper .product-filter-box.selected {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff
}

.product-view-add-to-cart-wrapper .product-variant-content {
    padding-top: var(--gap16);
    padding-bottom: var(--gap20);
}

.product-view-add-to-cart-wrapper .product-filter-slider {
    margin: 0;
}

.product-view-add-to-cart-wrapper .control-label {
    font-weight: 600;
}

.product-variant-content {
    padding: 0 var(--gap14);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    grid-gap: var(--gap10);
}

.product-variant-content > *{
    width: 100%;
}

.product-variant-content .variant-box {
    display: flex;
    flex-direction: column;
    grid-gap: var(--gap6);
    justify-content: flex-start;
    align-content: center;
}

.product-variant-content .variant-box-demo {
    display: flex;
    flex-direction: row;
    grid-gap: var(--gap8);
    justify-content: flex-start;
    align-items: center;
}

.product-view-variant-wrapper .product-variant-content {
    padding-top: var(--gap16);
    padding-bottom: var(--gap20);
}

.text-add-to-cart-done {
    color: var(--success);
    background-color: #dcf1e8;
    font-size: 13px;
    text-align: center;
    padding: var(--gap6) var(--gap8);
    border-radius: 5px;
}

.product-variant-header {
    display: grid;
    grid-template-columns: 70px calc(100% - 70px - var(--gap12));
    grid-gap: var(--gap12);
}

.product-variant-info {
    grid-gap: var(--gap8)
}

.product-view-title {
    font-size: var(--gap14);
    color: var(--black);
    line-height: 23px;
    font-weight: 400;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.product-detail-price {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    grid-gap: var(--gap8);
    margin-right: auto;
    min-height: 22px;
}

.product-variant-block {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 22;
    background-color: #fff;
    border-radius: 21px 21px 0 0;
    padding: 0;
    transform: translateY(100%);
    transition: all 222ms ease-in-out;
    max-height: calc(82dvh - env(safe-area-inset-top));
    overflow-y: auto;
}

.product-view-variant-wrapper.active .product-variant-block {
    transform: none;
}

.product-variant-block .product-view-title-main,.product-variant-block .product-view-title-sub {
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-bottom: var(--gap8);
}

.product-variant-block .product-view-title-block {
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.product-variant-block .product-view-title-main{
    color: var(--silver);
}

.btn-pending {
    background-color: var(--silver);
}

.btn-pending:before {
    background-color: var(--gray);
    border-top: 56px solid var(--gray);
}

.product-add-to-car-background{
    padding: 0;
    position: fixed;
    bottom: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 11;
    background: rgba(11 11 11 / 33%);
    transition: all 222ms ease-in-out;
}

.close-popup-block::before,
.close-popup-block::after {
    content: "";
    position: absolute;
    right: var(--gap18);
    top: 24px;
    width: 24px;
    height: 2px; /* Độ dày của nét */
    background-color: white;
    transform-origin: center;
}

.close-popup-block::before {
    transform: rotate(45deg);
}

.close-popup-block::after {
    transform: rotate(-45deg);
}

.product-variant-price-show {
    font-size: var(--gap16);
    color: var(--price);
    font-weight: bold;
}

.button-action-bottom {
    padding: var(--gap16);
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: #fff;
    border: none;
    box-shadow: 0 6px 24px rgba(11 11 11 / 24%);
    display: block;
}

.button-action-add-to-cart {
    background-color: var(--price);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    grid-gap: 6px;
    line-height: 48px;
    border-radius: var(--gap6);
}

.button-action-add-to-cart-done {
    background-color: var(--primary);
}

.txt-popup{
    font-size: var(--gap16);
    font-weight: 600;
    text-transform: uppercase;
}

.product-detail-popup-layout .variant-warning {
    font-size: 14px;
    color: var(--price);
}

.product-detail-popup-layout .product-filter-name {
    font-size: 14px;
}

.product-detail-popup-layout .loading-box {
    width: 100%;
}

.loading-box {
    display: block;
    height: var(--gap16);
    margin: 0;
    position: relative;
    overflow: hidden;
    background-color: #e9e9e9;
    border-radius: 3px;
}

.add-to-cart-popup-wrapper {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    animation: zoomInFromCenter 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    padding: 40px;
}

.popup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
}

.popup-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-text {
    flex: 1;
    color: white;
    text-align: center;
}

.popup-text h4 {
    font-size: 16px;
    font-weight: 600;
}

.popup-text p {
    margin: 0;
    font-size: 14px;
}

@keyframes zoomInFromCenter {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes zoomOutToCenter {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3);
    }
}

.add-to-cart-popup-wrapper.hide {
    animation: zoomOutToCenter 0.3s ease-in forwards;
}

/* Hiệu ứng bay vào giỏ hàng */
.flying-product {
    position: fixed;
    z-index: 10000;
    pointer-events: none;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 1;
    transform: scale(1);
}

.flying-product img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid #fff;
}

.flying-product.flying {
    opacity: 0;
    transform: scale(0.3);
}

/* Hiệu ứng bounce cho giỏ hàng */
.cart-bounce {
    animation: cartBounce 0.6s ease-in-out;
}

@keyframes cartBounce {
    0% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(0.95); }
    75% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Hiệu ứng pulse cho nút add to cart */
.add-to-cart-pulse {
    animation: addToCartPulse 0.3s ease-in-out;
}

@keyframes addToCartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

@media (max-width: 1200px) {
    .product-list-by-voucher {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 760px) {
    .product-list-by-voucher {
        grid-template-columns: repeat(2, 1fr);
    }

    .voucher-detail-item {
        grid-template-columns: 1fr;
        grid-gap: 0;
        margin-bottom: 20px;
    }

    .voucher-wallet-item {
        box-shadow: none;
        border-radius: 4px 4px 0 0;
    }

    .voucher-des {
        border: 1px solid #e5e5e5;
        border-top: 0;
        margin: 0;
        border-radius: 0 0 4px 4px;
        padding: 4px;
    }

    .voucher-img img {
        border-radius: 4px 0 0 0;
    }

    .voucher-content-last {
        margin-top: 2px;
        font-size: 14px;
    }

    .voucher-content-des {
        font-size: 14px;
    }

    .voucher-search-title {
        font-size: 15px;
        text-align: center;
        grid-gap: 8px;
        margin: 16px auto 20px;
        font-weight: 400;
    }

    .voucher-search-title::before, .voucher-search-title::after {
        min-width: 5px;
    }

    .feature-title a {
        color: var(--dark);
        line-height: 1.4;
        text-align: left;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        font-weight: 500;
        font-size: 15px;
        min-height: 42px;
    }

    .product-list-by-voucher .feature-product {
        position: relative;
    }

    .product-list-by-voucher .icon-addtocart svg,
    .product-list-by-voucher .icon-addtocart {
        width: 20px;
        height: 20px;
    }

    .product-list-by-voucher .new-price {
        font-size: 17px;
    }

    .product-list-by-voucher .feature-price {
        line-height: 1;
    }

    .product-list-by-voucher .bestseller-discount {
        background: var(--price);
        border: none;
        color: #fff;
        border-radius: 4px;
        padding: 4px 5px;
        font-size: 12px;
        position: absolute;
        line-height: 1.1;
        top: 8px;
        right: 8px;
        height: auto;
        pointer-events: none;
    }

    .filter-product .filter-item {
        width: calc(100% / 4);
        border: 0;
        background: #fafafa;
        border-radius: 0;
        font-size: 14px;
        padding: 12px 0;
        border-bottom: 2px solid transparent;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        grid-gap: 2px;
        line-height: 1;
    }

    .filter-product .filter-item::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        width: 1px;
        height: 10px;
        background-color: #ccc;
    }

    .filter-product .filter-item:first-child::before {
        display: none;
    }

    .filter-product {
        grid-gap: 0;
        padding: 0;
        align-items: stretch;
    }

    .filter-product .filter-item.active, 
    .filter-product .filter-item:hover {
        background: #fafafa;
        color: var(--primary);
        border-bottom: 2px solid var(--primary);

    }

    .voucher-search-footer {
        display: grid;
        grid-template-columns: minmax(0, 1fr) max-content;
        align-items: stretch;
    }

    .voucher-search-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        background: #fff;
        z-index: 99;
        width: 100vw;
        box-shadow: 0 3px 36px rgba(11 11 11 / 11%);
    }

    .voucher-search-footer .add-cart-btn {
        background: var(--primary);
        color: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        grid-gap: 4px;
        padding: 8px;
        font-size: 14px;
    }

    .voucher-search-footer-left {
        padding: 8px 15px;
        display: flex;
        justify-content: center;
        flex-direction: column;
    }

    .voucher-search-footer-left .voucher-process-wrapper {
        margin: 5px 0;
        width: 100%;
    }

    .voucher-detail-popup {
        margin-bottom: 0;
        margin-top: auto;
        max-height: 85dvh;
        border-radius: 8px 8px 0 0;
    }

    .filter-product-wrapper {
        position: sticky;
        top: 50px;
        z-index: 9;
    }

    .voucher-detail-popup .voucher-des {
        border: 0;
        padding: 0;
    }

    .voucher-detail-popup .voucher-content {
        padding: 0;
    }

    .voucher-detail-popup .header-condition .voucher-right {
        padding: 8px;
    }

    .voucher-note {
        font-size: 12px;
        margin-top: 0;
    }

    .product-detail-popup-layout {
        grid-template-columns: 1fr;
        padding: 20px 0 0;
        width: 100%;
        border-radius: 12px 12px 0 0;
        max-height: 86vh;
        grid-row-gap: 8px;
        align-items: flex-start;
        min-height: unset;
    }

    .product-detail-popup-wrapper {
        align-items: flex-end;
    }

    .product-detail-layout-item.product-detail-gallery img {
        position: static;
        transform: unset;
        max-width: 100%;
        object-fit: contain;
        height: 100%;
    }

    .product-detail-layout-item.product-detail-info {
        grid-gap: 10px;
    }

    .product-detail-popup-layout .product-detail-header-box span {
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        font-size: var(--gap16);
        line-height: 1.4;
    }

    .product-detail-popup-layout .product-detail-header-box {
        margin: 0;
        font-size: var(--gap14);
    }

    .product-detail-popup-layout .product-detail-header {
        grid-gap: 8px;
    }

    .product-detail-popup-layout .product-detail-header.loading-box {
        height: 100%;
    }

    .product-detail-layout-item.product-detail-info .variant-pro {
        grid-gap: 8px;
    }

    .product-detail-price-box .price-show {
        font-size: var(--gap16);
        color: var(--price);
        font-weight: 600;
    }

    .product-detail-layout-item-top {
        display: grid;
        grid-template-columns: 70px minmax(0, 1fr);
        grid-gap: 12px;
        align-items: flex-start;
        padding: 0 16px;
    }

    .product-detail-layout-item .add-to-cart-form-block {
        padding: 0 16px;
    }

    .product-detail-price-box .market-price {
        font-size: var(--gap14);
        color: #595959;
        text-decoration: line-through;
        margin-left: 6px;
    }

    .product-detail-layout-item .product-info-label {
        display: block;
        width: 100%;
        font-weight: 600;
        font-size: var(--gap14);
    }

    .product-detail-layout-item .variant-wrapper {
        flex-wrap: wrap;
        grid-gap: var(--gap8);
    }

    .product-detail-layout-item .product-filter-box {
        margin: 0;
    }

    .product-detail-layout-item .variant-list-block {
        grid-gap: var(--gap8);
    }

    .product-detail-layout-item .product-filter-box.selected {
        border-color: var(--primary) !important;
        background: var(--primary);
        color: #fff;
    }

    .product-detail-layout-item .mua-hang {
        display: grid;
        grid-template-columns: max-content minmax(0, 1fr);
        width: 100%;
        grid-row-gap: 8px;
        align-items: center;
        padding: 0 16px;
    }

    .product-detail-layout-item .mua-hang .product-total-quantity-value {
        grid-column-start: span 2;
        text-align: right;
    }

    .product-detail-layout-item .mua-hang .buy-product-action {
        justify-content: flex-end;
        grid-gap: 6px;
    }

    .product-detail-layout-item .mua-hang .add-to-cart-number {
        width: 60px;
        min-width: 60px;
        border: 2px solid #e5e5e5;
        color: #595959;
        padding: 6px;
        border-radius: 8px;
        text-align: center;
    }

    .product-detail-layout-item .mua-hang .add-to-cart-button {
        width: 36px;
        height: 36px;
        border: 2px solid #e5e5e5;
        border-radius: 8px;
        background: #fff;
        color: #595959;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .product-detail-layout-item .buy-cart-action {
        align-items: center;
        justify-content: center;
        width: 100%;
        grid-gap: var(--gap16);
        margin-top: 8px;
        padding: var(--gap16);
        position: sticky;
        bottom: 0;
        z-index: 2;
        background: #fff;
        border: none;
        box-shadow: 0 6px 24px rgba(11 11 11 / 24%);
        display: grid;
        grid-template-columns: max-content minmax(0, 1fr);
    }

    .product-detail-layout-item .buy-cart-action-item {
        display: flex;
        justify-content: center;
        align-items: center;
        grid-gap: 6px;
        line-height: 48px;
        border-radius: var(--gap6);
        padding: 0 16px;
    }

    .product-detail-layout-item .buy-cart-action-item.btn-add-to-cart {
        background-color: var(--primary);
        color: #fff;
    }

    .product-detail-layout-item .buy-cart-action-item.btn-back {
        min-width: 120px;
    }

    .product-filter-box.filter-disabled .type-radio::after {
        content: "";
        position: absolute;
        inset: 0;
        background: #8a8a8a99;
        border-bottom: 1px solid rgba(255, 255, 255, 0.8);
        clip-path: polygon(0 100%, 100% 0, calc(100% - 1px) 0, 0 calc(100% - 1px));
        pointer-events: none;
        z-index: 2;
    }

    .product-list-by-voucher .feature-title {
        margin-top: 8px;
    }

    .add-to-cart-popup-wrapper {
        padding: 40px 20px;
        width: 80vw;
    }

    .voucher-process-wrapper svg {
        width: 16px;
        height: 16px;
        right: 2px;
    }

    .voucher-process {
        width: calc(100% - 16px);
    }
}

@media(min-width: 768px) and (max-width: 1200px) {
    .product-detail-popup-layout .buy-cart-action-item {
        min-width: max-content;
        width: max-content;
        padding: 6px 20px;
    }
    .product-detail-popup-layout .product-total-quantity-value {
        margin-left: 0;
    }
}

