#cart-page-upsell {
    display: none;
}

#cart-page-upsell .upsell-cart-section {
    background-color: #f5f5f5;
    padding: 12px 15px;
}

#cart-page-upsell .title-group {
    margin-bottom: 12px;
}

#cart-page-upsell .title-2 {
    display: block;
}

#cart-page-upsell .promotion-title {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    padding: 0 !important;
}

#cart-page-upsell .product-container {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 10px;
    padding: 0;
    margin: 0;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: #c0c0c0 #f5f5f5;
    -ms-overflow-style: -ms-autohiding-scrollbar;
}

#cart-page-upsell .product-container::-webkit-scrollbar {
    height: 6px;
}

#cart-page-upsell .product-container::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 3px;
}

#cart-page-upsell .product-container::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 3px;
}

#cart-page-upsell .product-container::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

#cart-page-upsell .product-container .upsell-item {
    display: flex;
    flex-direction: column;
    flex: 0 0 calc(50% - 7px);
    min-width: calc(50% - 7px);
    max-width: none;
    scroll-snap-align: start;
    align-self: stretch;
    border: 1px solid rgba(224, 230, 232, 1);
}

/* Cart page inherits common styles from .upsell-product-container */
/* Add specific overrides for cart page */
#cart-page-upsell .product-container .thumbnail-1.style-1 {
    border-radius: 8px;
}

#cart-page-upsell .product-container .thumbnail-group__bottom {
    position: relative;
    z-index: 1;
}

#cart-page-upsell .product-container .btn-add {
    width: 100%;
}

#cart-page-upsell .product-container .btn-add .btn-add-to-cart,
#cart-page-upsell .product-container .btn-add .btn-3 {
    width: 100% !important;
    box-sizing: border-box;
}

#cart-page-upsell .product-container .btn-quantity-product {
    width: 100% !important;
    position: relative;
    z-index: 1;
}

#cart-page-upsell .product-container .btn-quantity-product .btn-change-quantity {
    width: calc((100% - 50px) / 2);
    min-width: calc((100% - 50px) / 2);
    max-width: calc((100% - 50px) / 2);
    pointer-events: auto !important;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

#cart-page-upsell .product-container .btn-quantity-product .quantity-product-value {
    width: 50px;
    min-width: 50px;
    max-width: 50px;
}

@media (max-width: 767px) {
    #cart-page-upsell {
        display: block;
    }
}

@media (min-width: 768px) {
    #cart-page-upsell {
        display: none !important;
    }
}

.upsell-product-container .thumbnail-1.style-1 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 100%;
}

.upsell-product-container .thumbnail-group__top {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.upsell-product-container .thumbnail-group__bottom {
    margin-top: auto;
    width: 100%;
}

.upsell-product-container .product-footer-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

#home-page-upsell .product-container .load-more-item {
    display: flex;
    height: 100%;
}

#home-page-upsell .product-container.vertical-products,
#home-page-upsell .product-container.horizontal-products {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px;
}

@media (max-width: 767px) {
    #home-page-upsell .product-container.vertical-products,
    #home-page-upsell .product-container.horizontal-products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
    }

    #home-page-upsell .upsell-home-page {
        padding: 0 12px;
    }
}

.upsell-home-page .title-2 .promotion-title {
    padding: 2px 5px 0px !important;
    display: flex;
    align-items: center;
    gap: 6px;
}

.upsell-home-page .title-2 .promotion-title .best-selling-icon {
    margin-top: -2px !important;
}

.upsell-home-page .title-2 .promotion-title span {
    padding-top: 3px !important;
    vertical-align: middle;
}

.evoucher-sale-section {
    margin: 20px 0;
    padding: 0 1em;
}

.evoucher-sale-header {
    margin-bottom: 15px;
}

.evoucher-sale-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color, #000);
    margin-bottom: 5px;
}

.evoucher-sale-description {
    font-size: 14px;
    color: var(--text-secondary-color, #666);
}

.evoucher-sale-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: #c0c0c0 #f5f5f5;
    -ms-overflow-style: -ms-autohiding-scrollbar;
}

.evoucher-sale-container::-webkit-scrollbar {
    height: 6px;
}

.evoucher-sale-container::-webkit-scrollbar-track {
    background: var(--background-color, #f5f5f5);
    border-radius: 3px;
}

.evoucher-sale-container::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 3px;
}

.evoucher-sale-container::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

.evoucher-sale-scroll {
    display: flex;
    gap: 10px;
    padding-bottom: 10px;
    min-width: min-content;
    align-items: stretch;
}

.evoucher-item {
    flex: 0 0 calc(33.333% - 7px);
    min-width: calc(33.333% - 7px);
    max-width: none;
    background: var(--card-background-color, #fff);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    align-self: stretch;
}

.evoucher-item-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--background-color, #f5f5f5);
}

.evoucher-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.evoucher-item-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.evoucher-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color, #000);
    margin-bottom: 8px;
    cursor: pointer;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.evoucher-item-promo {
    font-size: 12px;
    color: var(--text-color, #000);
    font-weight: 600;
    margin-bottom: 8px;
}

.evoucher-item-promo .color-by-theme {
    color: inherit;
}

.evoucher-item-price {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.evoucher-item-price .color-by-theme {
    color: var(--main-color, #d32f2f);
}

.evoucher-item-add-btn {
    width: 100%;
    padding: 10px;
    background-color: var(--main-color, #d32f2f);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.3s;
    margin-top: auto;
}

.evoucher-item-add-btn:hover {
    opacity: 0.9;
}

.evoucher-item-add-btn:active {
    opacity: 0.8;
}

/* E-Voucher for Sale - slick slider variant (3 per view desktop, 1 on mobile) */
.evoucher-sale-slider .slick-track {
    display: flex;
    align-items: stretch;
}

.evoucher-sale-slider .slick-slide {
    height: auto;
}

.evoucher-sale-slider .evoucher-slide {
    height: 100%;
    padding: 0 5px;
    box-sizing: border-box;
    display: flex;
}

.evoucher-sale-slider .evoucher-item,
.order-history-evouchers-section .evoucher-sale-slider .evoucher-item {
    flex: none !important;
    min-width: 0 !important;
    max-width: none !important;
    width: 100% !important;
    height: 100%;
}

.evoucher-sale-slider .slick-dots {
    position: static;
    margin-top: 10px;
}

.order-history-evouchers-section .evoucher-sale-section {
    margin: 20px 0;
    padding: 0 1em;
}

.order-history-evouchers-section .evoucher-sale-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: #c0c0c0 #f5f5f5;
    -ms-overflow-style: -ms-autohiding-scrollbar;
}

.order-history-evouchers-section .evoucher-sale-scroll {
    display: flex;
    gap: 10px;
    padding-bottom: 10px;
    align-items: stretch;
    width: 100%;
}

.order-history-evouchers-section .evoucher-item {
    flex: 0 0 calc(33.333% - 7px) !important;
    min-width: calc(33.333% - 7px);
    max-width: calc(33.333% - 7px);
    width: calc(33.333% - 7px) !important;
    background: var(--card-background-color, #fff);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    align-self: stretch;
    flex-shrink: 0;
}

.order-history-evouchers-section .evoucher-item-add-btn {
    width: 100%;
    min-width: 100%;
    padding: 10px;
    background-color: var(--main-color, #d32f2f);
    color: #fff !important;
    border: 2px solid var(--main-color, #d32f2f);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.3s;
    margin-top: auto;
}

.order-history-evouchers-section .evoucher-item-add-btn:hover {
    opacity: 0.9;
}

.order-history-evouchers-section .evoucher-item-add-btn:active {
    opacity: 0.8;
}

.order-history-evouchers-section .evoucher-history-item-add-btn {
    width: 100% !important;
    min-width: auto !important;
    padding: 10px !important;
    background-color: var(--main-color, #d32f2f) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: opacity 0.3s !important;
    margin-top: auto !important;
    margin-bottom: 0 !important;
}

.order-history-evouchers-section .evoucher-history-item-add-btn:hover {
    opacity: 0.9 !important;
}

.order-history-evouchers-section .evoucher-history-item-add-btn:active {
    opacity: 0.8 !important;
}

@media (max-width: 767px) {
    .order-history-evouchers-section .evoucher-history-item-add-btn {
        padding: 8px !important;
        font-size: 11px !important;
    }
}