/* Animation lắc luân phiên cho contact buttons */
@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(-10deg); }
    20% { transform: rotate(10deg); }
    30% { transform: rotate(-10deg); }
    40% { transform: rotate(10deg); }
    50% { transform: rotate(0deg); }
    /* 50-100%: giữ yên để icon kia được lắc */
}

/* Zalo button - lắc trước */
.zalo-btn {
    animation: shake 2s ease-in-out infinite;
    animation-delay: 0s;
}

/* Call button - lắc sau (delay 3s) */
.call-btn {
    animation: shake 2s ease-in-out infinite;
    animation-delay: 1s;
}

/* Optimize performance */
.contact-btn {
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}
/* Contact label text */
.contact-label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

/* Responsive: Ẩn text trên mobile nhỏ */
@media (max-width: 380px) {
    .contact-label {
        display: none;
    }
}

/* Layout adjustment cho sticky-cart-right */
.sticky-cart-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
/* ===== STICKY CART BAR STYLES ===== */
.esim-sticky-cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 12px 20px;
    transition: transform 0.3s ease;
}

.sticky-cart-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Left: Cart Section */
.sticky-cart-left {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    flex: 1;
    min-width: 0;
}

.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-icon {
    width: 36px;
    height: 36px;
    color: #000000;
}
body.admin-bar.cart-scroll-locked .thegem-te-cart.mobile-view .minicart {
    top: 0px!important;
}
.cart-badge {
    position: absolute;
    top: -6px;
    right: -2px;
    background: #EA580C;
    color: white;
    font-size: 12px;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    animation: badgeBounce 0.5s ease;
}

@keyframes badgeBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.cart-total-wrapper {
    display: flex;
    align-items: center;
}

.cart-total {
    font-size: 20px;
    font-weight: 700;
    color: #EA580C;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.cart-total.updating {
    animation: priceUpdate 0.5s ease;
}

@keyframes priceUpdate {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); color: #10B981; }
}

/* Divider */
.sticky-cart-divider {
    width: 1px;
    height: 40px;
    background: #E5E5E5;
}

/* Right: Contact Buttons */
.sticky-cart-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    flex-shrink: 0;
    box-shadow: inset 0px -20px 20px 0px #5fc9fb8c;
}

.contact-btn:hover {
    transform: scale(1.05);
}

.contact-btn:active {
    transform: scale(0.95);
}

.contact-btn svg {
    width: 100%;
    height: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .esim-sticky-cart-bar {
        padding: 16px 20px;
        border-radius: 24px 24px 0px 0px;
    }
    
    .sticky-cart-inner {
        gap: 12px;
    }
    
    .cart-total {
        font-size: 18px;
    }
    
    .contact-btn {
        width: 44px;
        height: 44px;
    }
    
    .sticky-cart-divider {
        height: 36px;
    }
}

@media (max-width: 480px) {
    .cart-total {
        font-size: 18px;
    }
    
    .cart-icon {
        width: 36px;
        height: 36px;
    }
    
    .contact-btn {
        width: 40px;
        height: 40px;
    }
}

/* Animation khi thêm sản phẩm */
.cart-badge-animate {
    animation: badgePopIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes badgePopIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); opacity: 1; }
}