body.quick-cart-open {
    overflow: hidden;
    height: 100%;
}

.product-item-price-and-cart {
    display: flex;
    align-items: center;
    justify-content: space-between;
    grid-gap: 4px;
}

.product-add-to-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    border-radius: 5px;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    background: #EDFBFD;
    color: var(--primary);
    border: 0;
    box-shadow: none;
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 5;
}

.product-add-to-cart-btn svg{
    transform: scale(1.25);
}

.category-list .product-add-to-cart-btn,
.product-you-may-also-like-item .product-add-to-cart-btn {
    right: 0;
}

.product-add-to-cart-btn:hover {
    background: var(--primary);
    color: #fff;
}

/* Quick add cart button in recommendation */
.recommend-product-box {
    position: relative;
}

.recommend-product-box .product-add-to-cart-btn {
    position: absolute;
    bottom: 8px;
    right: 0;
    z-index: 5;
}

/* Success popup for recommendation */
.recommend-product-box .add-cart-success-popup-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(111, 111, 111, .3);
    border-radius: 5px 5px 0 0;
    align-items: flex-end;
    z-index: 9;
    display: none;
}

.recommend-product-box.quick-add-cart-success .add-cart-success-popup-wrapper {
    display: flex !important;
}

.recommend-product-box .add-cart-success-popup {
    background: #fff;
    border-radius: 8px 8px 0 0;
    width: 100%;
    padding: 6px 4px;
}

.recommend-product-box .add-cart-success-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.recommend-product-box .add-cart-success-title {
    display: flex;
    align-items: center;
    grid-gap: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #000;
    flex: 1;
}

.recommend-product-box .add-cart-success-title svg {
    color: #28a745;
}

.recommend-product-box .add-cart-success-close {
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.recommend-product-box .add-cart-success-close:hover {
    opacity: 1;
}

.recommend-product-box .add-cart-success-content {
    margin: 6px 0 0;
    font-size: 11px;
    color: #1e7e34;
    padding-left: 8px;
    list-style: none;
}

.recommend-product-box .add-cart-success-content li {
    position: relative;
    margin: 0;
    line-height: 1.4;
}

.recommend-product-box .add-cart-success-content li::before {
    content: "•";
    position: absolute;
    left: 0;
}

/* Quick add cart button in related-product */
.related-product-item {
    position: relative;
}

.related-product-item .product-add-to-cart-btn {
    position: absolute;
    bottom: 2px;
    right: 0;
    z-index: 5;
    background: #EDFBFD;
    color: var(--primary);
}

.related-product-item .product-add-to-cart-btn:hover {
    background: var(--primary);
    color: #fff;
}

/* Modal Styles */
.dk-quick-add-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.dk-quick-add-cart-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.dk-quick-add-cart-modal {
    background: #fff;
    width: 988px;
    max-width: 95%;
    max-height: 90vh;
    border-radius: 12px;
    position: relative;
    display: flex;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.dk-quick-add-cart-overlay.is-active .dk-quick-add-cart-modal {
    transform: translateY(0);
}

.dk-quick-add-cart-close {
    position: absolute;
    top: 12px;
    right: 15px;
    background: #f5f5f5;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}

.dk-quick-add-cart-close:hover {
    background: #eee;
}

.dk-quick-add-cart-left {
    width: 480px;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.dk-quick-add-cart-slider-main {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 16px;
    background: #f9f9f9;
}

.dk-quick-add-cart-slider-main .slider-item {
    background-color: #f8f8f8;
}

.dk-quick-add-cart-slider-main .slider-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.dk-quick-add-cart-slider-nav .thumbnail-item {
    margin: 0 4px;
    cursor: pointer;
    outline: none;
    background-color: #f8f8f8;
    border: 1px solid transparent;
}

.dk-quick-add-cart-slider-nav .thumbnail-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid transparent;
    transition: border-color 0.2s;
    mix-blend-mode: multiply;
    max-height: 80px;
}

.dk-quick-add-cart-slider-nav .slick-current {
    border-color: #000;
}

.dk-quick-add-cart-slider-main .slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: all 0.2s;
    opacity: 0;
}

.dk-quick-add-cart-slider-main:hover .slick-arrow {
    opacity: 1;
}

.dk-quick-add-cart-slider-main .slick-arrow:hover {
    background: #fff;
    color: var(--primary);
}

.dk-quick-add-cart-slider-main .slick-prev {
    left: 15px;
}

.dk-quick-add-cart-slider-main .slick-next {
    right: 15px;
}

.dk-quick-add-cart-fixed-top,
.dk-quick-add-cart-fixed-bottom {
    position: sticky;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 9;

}

.dk-quick-add-cart-fixed-top {
    top: 0;
    padding-top: 24px;
}

.dk-quick-add-cart-fixed-bottom {
    bottom: 0;
    padding-bottom: 24px;
}

.dk-quick-add-cart-right {
    flex: 1;
    padding: 0 24px 0 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.dk-quick-add-cart-title {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
    margin: 12px 0;
}

.dk-quick-add-cart-price-wrapper {
    margin-bottom: 16px;
    display: flex;
    align-items: baseline;
    gap: 12px;
    line-height: 1;
}

.dk-quick-add-cart-price-new {
    font-size: 24px;
    font-weight: 700;
    color: var(--price, #e70000);
}

.dk-quick-add-cart-price-old {
    font-size: 16px;
    color: #888;
    text-decoration: line-through;
}

.dk-quick-add-cart-label {
    font-weight: 600;
    color: #222;
    margin-bottom: 10px;
    display: block;
    font-size: 15px;
}

.dk-quick-add-cart-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dk-quick-add-cart-option {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    background: #fff;
    min-width: 60px;
    text-align: center;
    color: #000;
}

.dk-quick-add-cart-option.filter-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dk-quick-add-cart-qty-wrapper {
    display: flex;
    align-items: center;
    width: fit-content;
    overflow: hidden;
    grid-gap: 6px;
}

.dk-quick-add-cart-qty-input {
    width: 60px;
    height: 32px;
    text-align: center;
    border: none;
    border: 1px solid #ddd;
    outline: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
}

.dk-quick-add-cart-qty-input::-webkit-inner-spin-button,
.dk-quick-add-cart-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-inc, .qty-dec {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    user-select: none;
    border: 1px solid #ddd;
    transition: background 0.2s;
    border-radius: 4px;
}

.qty-inc:hover, .qty-dec:hover, .dk-quick-add-cart-qty-input:hover {
    border-color: #000;
}

.dk-quick-add-cart-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.dk-quick-add-cart-submit-btn:hover {
    background: var(--primary-dk);
}

.dk-quick-add-cart-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.dk-quick-add-cart-submit-btn .dk-btn-spinner{
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.dk-quick-add-cart-detail-link {
    display: flex;
    align-items: center;
    line-height: 20px;
    margin-top: 16px;
    font-size: 15px;
    color: #0A0A0A;
}

.dk-quick-add-cart-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Spinner */
.dk-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff6000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.dk-quick-add-cart-section.dk-qty-wrapper {
    display: flex;
    align-items: center;
    grid-gap: 12px;
    margin: 18px 0 20px;
}

.dk-quick-add-cart-section.dk-qty-wrapper label {
    margin: 0;
}

.dk-quick-add-cart-slider-nav:not(.slick-initialized) .thumbnail-item:nth-child(n + 2),
.dk-quick-add-cart-slider-main:not(.slick-initialized) .slider-item:nth-child(n + 2) {
    display: none;
}

.dk-quick-add-cart-slider-nav:not(.slick-initialized) .thumbnail-item {
    width: 79px;
    height: 79px;
}

/* Variant image styles */
.dk-quick-add-cart-variant-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.dk-quick-add-cart-option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
}

.dk-quick-add-cart-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.dk-quick-add-cart-option.filter-disabled {
    position: relative;
    background: #f8f8f8;
}

.dk-quick-add-cart-option.filter-disabled span::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;
    width: 100%;
    height: 100%;
}

/* Error message */
.dk-quick-add-cart-error {
    padding: 10px 0;
    border-radius: 4px;
    font-size: 14px;
}

/* Pending state */
.dk-quick-add-cart-submit-btn.btn-pending {
    opacity: 0.7;
    cursor: not-allowed;
}

.dk-quick-add-cart-title a {
    color: inherit;
    text-decoration: none;
}

/* Flying product animation */
.flying-product {
    position: fixed;
    z-index: 99999;
    pointer-events: none;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: none;
}

.flying-product img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.flying-product.flying {
    transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                top 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.4s ease-out 0.2s;
    transform: translate(-50%, -50%) scale(0.3);
    opacity: 0;
}

/* Add to cart button pulse effect */
.add-to-cart-pulse {
    animation: pulse 0.3s ease;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Cart bounce effect */
.cart-bounce {
    animation: cartBounce 0.5s ease;
}

@keyframes cartBounce {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(0.9);
    }
    75% {
        transform: scale(1.1);
    }
}

.quick-cart-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
	border-radius: 5px;
}

.quick-cart-loading .quick-cart-loading-spinner {
	width: 30px;
	aspect-ratio: 1;
	display: grid;
	border-radius: 50%;
	background:
		linear-gradient(0deg ,rgb(255 255 255/50%) 30%,#0000 0 70%,rgb(255 255 255/100%) 0)
		50%/9% 100%,
		linear-gradient(90deg,rgb(255 255 255/25%) 30%,#0000 0 70%,rgb(255 255 255/75%) 0)
		50%/100% 9%;
	background-repeat: no-repeat;
	animation: spinLoading 1s infinite steps(12);
}

.quick-cart-loading .quick-cart-loading-spinner::before,
.quick-cart-loading .quick-cart-loading-spinner::after {
	content: "";
	grid-area: 1/1; 
	border-radius: 50%;
	background: inherit;
	opacity: 0.9;
}

.quick-cart-loading .quick-cart-loading-spinner::before {
	transform: rotate(45deg);
}

.quick-cart-loading .quick-cart-loading-spinner::after {
	opacity: 0.8;
	transform: rotate(90deg);
}

@keyframes spinLoading {
	100% { transform: rotate(1turn); }
}

/* Success notification popup */
.dk-add-cart-success-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.dk-add-cart-success-popup-overlay.ng-hide {
    animation: fadeOut 0.3s ease-in forwards;
}

.dk-add-cart-success-popup {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    padding: 34px 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    grid-gap: 12px;
    min-width: 300px;
    animation: scaleIn 0.3s ease-out;
}

.dk-add-cart-success-popup-overlay.ng-hide .dk-add-cart-success-popup {
    animation: scaleOut 0.3s ease-in forwards;
}

.dk-add-cart-success-icon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #f0f9f4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dk-add-cart-success-icon svg {
    width: 48px;
    height: 48px;
}

.dk-add-cart-success-text {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    text-align: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes scaleOut {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(0.8);
        opacity: 0;
    }
}

.dk-quick-add-cart-option:has(.dk-quick-add-cart-variant-image) {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    border-radius: 4px;
    padding: 4px 6px;
    grid-gap: 4px;
    font-size: 15px;
}

.dk-quick-add-cart-option .dk-quick-add-cart-variant-image {
    height: 30px;
}

.dk-quick-add-cart-option.active:not(.filter-disabled) {
    color: var(--primary);
    border-color: var(--primary);
}

.dk-quick-add-cart-option::before {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    border-left: 18px solid transparent;
    border-bottom: 18px solid var(--primary);
    border-top-right-radius: 0px;
    border-bottom-right-radius: 2px;
    opacity: 0;
    pointer-events: none;
}

.dk-quick-add-cart-option.active:not(.filter-disabled)::before, 
.dk-quick-add-cart-option.active:not(.filter-disabled)::after {
    opacity: 1;
    pointer-events: all;
}

.dk-quick-add-cart-option:after {
    content: "";
    width: 8px;
    height: 4px;
    display: block;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
    position: absolute;
    bottom: 5px;
    right: 1px;
    opacity: 0;
    pointer-events: none;
}

.dk-quick-add-cart-option:not(.filter-disabled):hover {
    color: var(--primary);
    border-color: var(--primary);
}