/* Cart Offcanvas - Shopee Style Design */

/* Header Cart & Notification Button Styling */
.hydrosite-shopee-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hydrosite-shopee-cart:hover {
    transform: scale(1.1);
}

.hydrosite-shopee-cart svg {
    width: 20px;
    height: 20px;
}

.hydrosite-shopee-cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #E60012 0%, #ff6b35 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.4rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(230, 0, 18, 0.3);
}

/* Notification Bell Animations */
@keyframes bellShake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    75% { transform: rotate(15deg); }
}

.notification-bell-shake {
    animation: bellShake 0.8s ease-in-out infinite;
    transform-origin: 50% 10%;
}

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

.notification-badge-active {
    animation: badgePulse 2s ease-in-out infinite;
    background: linear-gradient(135deg, #E60012 0%, #ff6b35 100%) !important;
    color: white !important;
}

/* Cart Offcanvas Container */
.cart-offcanvas {
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    border: none;
    z-index: 2000;
}

.cart-offcanvas .offcanvas-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Cart Header */
.cart-header {
    background: linear-gradient(135deg, #E60012 0%, #ff6b35 100%);
    color: white;
    padding: 1.5rem;
    border: none;
    position: relative;
    overflow: hidden;
}

.cart-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.cart-header .offcanvas-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
}

.cart-count-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 0.2rem 0.6rem;
    font-size: 0.8rem;
    margin-left: 0.5rem;
    font-weight: 600;
}

.btn-close-custom {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.btn-close-custom:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Cart Body */
.cart-body {
    background: #f8f9fa;
    padding: 0;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

.cart-items-container {
    padding: 1rem 0;
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Cart Items */
.cart-item {
    background: white;
    margin: 0 1rem 1rem 1rem;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 7px;
    align-items: flex-start;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cart-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.item-image {
    flex-shrink: 0;
}

.item-image img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid #f1f1f1;
}

.item-details {
    flex: 1;
    min-width: 0;
}

.item-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.3rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-variant {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.3rem;
    line-height: 1.2;
}

.item-shop {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.item-shop i {
    color: #E60012;
    margin-right: 0.3rem;
}

.item-price {
    font-size: 0.8rem;
    font-weight: 600;
    color: #E60012;
}

.item-controls {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.2rem;
}

.btn-quantity {
    width: 28px;
    height: 28px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
}

.btn-quantity:hover {
    background: #E60012;
    color: white;
    border-color: #E60012;
}

.btn-quantity:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-input {
    width: 40px;
    height: 28px;
    text-align: center;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    background: white;
    color: #333;
}

.quantity-input:focus {
    outline: none;
    border-color: #E60012;
    box-shadow: 0 0 0 2px rgba(230, 0, 18, 0.1);
}

.btn-remove {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
    padding: 0.4rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.btn-remove:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

/* Cart Summary */
.cart-summary {
    border-radius: 16px;
    padding: 0.8rem;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.summary-row:last-child {
    margin-bottom: 0;
}

.summary-row.total {
    font-weight: 700;
    border-top: 1px solid #eee;
    padding-top: 0.8rem;
    margin-top: 0.8rem;
    color: #E60012;
    font-size: 1rem;
}

.summary-value {
    font-weight: 600;
    color: #333;
}

.summary-row.total .summary-value {
    color: #E60012;
    font-size: 1.1rem;
}

/* Cart Footer */
.cart-footer {
    background: white;
    padding: 1rem 1.2rem;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    position: relative;
}

.cart-footer .btn-view-cart {
    order: 1;
}

.cart-footer .btn-checkout {
    order: 2;
}

.btn-view-cart {
    width: 100%;
    border-radius: 12px;
    padding: 0.8rem;
    font-weight: 600;
    border: 2px solid #E60012;
    color: #E60012;
    background: white;
    transition: all 0.3s ease;
}

.btn-view-cart:hover {
    background: rgba(230, 0, 18, 0.1);
    transform: translateY(-1px);
}

.btn-checkout {
    width: 100%;
    border-radius: 12px;
    padding: 0.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, #E60012 0%, #ff6b35 100%);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-checkout:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(230, 0, 18, 0.3);
    background: linear-gradient(135deg, #C4000E 0%, #e55a2b 100%);
    -webkit-transform: translateY(-1px);
    -moz-transform: translateY(-1px);
    -ms-transform: translateY(-1px);
    -o-transform: translateY(-1px);
    color: var(--white);
}

/* Empty Cart State */
.empty-cart {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
}

.empty-cart i {
    font-size: 1.3rem;
    color: #ddd;
    margin: 0;
}

.empty-cart h6 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.empty-cart p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.btn-continue-shopping {
    background: linear-gradient(135deg, #E60012 0%, #ff6b35 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-continue-shopping:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(230, 0, 18, 0.3);
}

/* Loading States */
.cart-item.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.cart-item.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #E60012;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

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

.cart-item.removing {
    animation: slideOut 0.3s ease-out forwards;
}

@keyframes slideOut {
    to {
        transform: translateX(100%);
        opacity: 0;
        margin-right: -100%;
    }
}

.cart-item.adding {
    animation: slideInCart 0.3s ease-out forwards;
    -webkit-animation: slideInCart 0.3s ease-out forwards;
}

@keyframes slideInCart {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .cart-offcanvas {
        width: 100% !important;
    }
    
    .cart-header {
        padding: 1rem;
    }
    
    .cart-header .offcanvas-title {
        font-size: 1rem;
    }
    
    .cart-item {
        margin: 0 0.5rem 0.8rem 0.5rem;
        padding: 0.8rem;
        gap: 0.8rem;
    }
    
    .item-image img {
        width: 50px;
        height: 50px;
    }
    
    .item-name {
        font-size: 0.75rem;
    }
    
    .item-variant, .item-shop {
        font-size: 0.75rem;
    }
    
    .cart-summary {
        margin: 0 -0.5rem 0.8rem -0.5rem;
        padding: 0.8rem;
    }

    .cart-footer {
        padding: 10px;
        flex-direction: column;
        gap: 0.8rem;
    }

    .cart-footer .cart-summary {
        order: -1;
        margin: 0;
        border-radius: 12px;
        -webkit-border-radius: 12px;
        -moz-border-radius: 12px;
        -ms-border-radius: 12px;
        -o-border-radius: 12px;
}

    .btn-view-cart, .btn-checkout {
        width: 100%;
        padding: 1rem;
    }
    
    .quantity-controls {
        gap: 0.2rem;
    }
    
    .btn-quantity {
        width: 24px;
        height: 24px;
        font-size: 0.6rem;
    }
    
    .quantity-input {
        width: 32px;
        height: 24px;
        font-size: 0.7rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cart-item {
        border: 2px solid #333;
    }
    
    .cart-header {
        border: 2px solid #fff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* bổ sung */
/* Account Locked Modal Styles */
.account-locked-modal {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: none;
}

.account-locked-modal .modal-header {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 2rem 1.5rem 1rem;
}

.account-locked-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.account-locked-icon i {
    font-size: 2.5rem;
    color: white;
}

.account-locked-modal .modal-title {
    color: white;
    font-size: 1.5rem;
}

.account-locked-modal .modal-body {
    padding: 2rem 1.5rem;
    background: #fafafa;
}

.contact-card {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.account-locked-modal .modal-footer {
    background: #fafafa;
    padding: 1.5rem;
}

.account-locked-modal .btn {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.account-locked-modal .btn-primary {
    background: linear-gradient(135deg, #E60012, #c4000e);
    border: none;
    color: white;
}

.account-locked-modal .btn-primary:hover {
    background: linear-gradient(135deg, #c4000e, #a00009);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 0, 18, 0.3);
}

.account-locked-modal .btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
}

.account-locked-modal .btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
    transform: translateY(-1px);
}

/* Mobile responsive */
@media (max-width: 576px) {
    .account-locked-modal .modal-header {
        padding: 1.5rem 1rem 0.5rem;
    }

    .account-locked-icon {
        width: 60px;
        height: 60px;
    }

    .account-locked-icon i {
        font-size: 2rem;
    }

    .account-locked-modal .modal-body {
        padding: 1.5rem 1rem;
    }

    .contact-card {
        padding: 0.75rem;
    }

    .account-locked-modal .modal-title {
        font-size: 1.25rem;
    }
}

/* ===== ENHANCED EMPTY CART STATE ===== */
.cart-items-container .empty-cart {
    text-align: center;
    padding: 2rem 1.5rem;
    min-height: 400px;
    display: none !important; /* Initially hidden */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
}

.cart-items-container .empty-cart.show,
#empty-cart-state:not([style*="display: none"]) {
    display: flex !important;
}

.empty-cart-icon {
    position: relative;
    margin-bottom: 1.5rem;
}

.empty-cart-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #E60012, #ff4757);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(230, 0, 18, 0.3);
    animation: emptyCartPulse 2s ease-in-out infinite;
}

.empty-cart-circle i {
    font-size: 2rem;
    color: white;
}

.empty-cart-sparkles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.empty-cart-sparkles i {
    position: absolute;
    color: #ffd700;
    font-size: 0.8rem;
    animation: sparkleEnhanced 4s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

.empty-cart-sparkles i:nth-child(even) {
    animation-name: floatingSparkle;
    animation-duration: 3s;
}

.spark-1 {
    top: -10px;
    right: 10px;
    animation-delay: 0s;
}

.spark-2 {
    top: 10px;
    left: -10px;
    animation-delay: 1s;
}

.spark-3 {
    bottom: -10px;
    right: -5px;
    animation-delay: 2s;
}

.empty-cart-title {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.empty-cart-message {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.empty-cart-suggestions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.suggestion-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(230, 0, 18, 0.05);
    border: 1px solid rgba(230, 0, 18, 0.1);
    border-radius: 16px;
    font-size: 0.9rem;
    color: #666;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: suggestionSlideIn 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.suggestion-item:nth-child(1) { animation-delay: 0.1s; }
.suggestion-item:nth-child(2) { animation-delay: 0.2s; }
.suggestion-item:nth-child(3) { animation-delay: 0.3s; }

.interactive-suggestion:hover {
    background: rgba(230, 0, 18, 0.08);
    border-color: rgba(230, 0, 18, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 0, 18, 0.15);
    color: #333;
}

.suggestion-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.suggestion-icon {
    font-size: 1rem;
    z-index: 2;
    transition: transform 0.3s ease;
}

.interactive-suggestion:hover .suggestion-icon {
    transform: scale(1.2);
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.interactive-suggestion:hover .icon-glow {
    opacity: 0.6;
    width: 40px;
    height: 40px;
}

.glow-red { background: radial-gradient(circle, rgba(220, 53, 69, 0.3), transparent); }
.glow-yellow { background: radial-gradient(circle, rgba(255, 193, 7, 0.3), transparent); }
.glow-green { background: radial-gradient(circle, rgba(40, 167, 69, 0.3), transparent); }

.suggestion-arrow {
    font-size: 0.8rem;
    opacity: 0.6;
    transition: all 0.3s ease;
    transform: translateX(-5px);
}

.interactive-suggestion:hover .suggestion-arrow {
    opacity: 1;
    transform: translateX(0);
    color: #E60012;
}

.suggestion-item span {
    flex: 1;
    font-weight: 500;
    transition: color 0.3s ease;
}

.interactive-suggestion:hover span {
    color: #E60012;
}

.btn-continue-shopping {
    background: linear-gradient(135deg, #E60012, #c4000e);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(230, 0, 18, 0.3);
}

.btn-continue-shopping:hover {
    background: linear-gradient(135deg, #c4000e, #a00009);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 0, 18, 0.4);
    color: white;
}

/* ===== CART ITEM ENHANCEMENTS ===== */
.cart-item {
    transition: all 0.3s ease;
}

.cart-item.loading {
    opacity: 0.6;
    pointer-events: none;
}

.cart-item.removing {
    opacity: 0.3;
    transform: translateX(100%);
    transition: all 0.5s ease;
}

.item-attributes {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #666 !important;
    font-size: 0.8rem !important;
    font-style: italic;
}

.item-attributes i {
    font-size: 0.7rem;
    opacity: 0.8;
}

.item-total {
    transition: all 0.3s ease;
    font-weight: 700 !important;
    font-size: 0.9rem;
}

.item-total.updating {
    background: linear-gradient(-45deg, #E60012, #ff4757, #E60012, #ff4757);
    background-size: 400% 400%;
    animation: totalUpdate 0.8s ease-in-out;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== ANIMATIONS ===== */
@keyframes emptyCartPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(230, 0, 18, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 35px rgba(230, 0, 18, 0.4);
    }
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1) rotate(180deg);
        opacity: 1;
    }
}

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

@keyframes suggestionSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes sparkleEnhanced {
    0%, 100% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    25% {
        opacity: 0.7;
        transform: scale(0.5) rotate(90deg);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(180deg);
    }
    75% {
        opacity: 0.7;
        transform: scale(0.8) rotate(270deg);
    }
}

@keyframes floatingSparkle {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
    }
}

/* Mobile responsive for empty cart */
@media (max-width: 768px) {
    .empty-cart {
        padding: 1.5rem 1rem;
        min-height: 350px;
    }

    .empty-cart-circle {
        width: 70px;
        height: 70px;
    }

    .empty-cart-circle i {
        font-size: 1.8rem;
    }

    .empty-cart-suggestions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .suggestion-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* ===== INTERACTIVE ENHANCEMENTS ===== */
.click-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(230, 0, 18, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: rippleExpand 0.6s ease-out;
    pointer-events: none;
    z-index: 1;
}

@keyframes rippleExpand {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

.urgency-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ff4757, #E60012);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    animation: urgencyPulse 2s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
    z-index: 10;
}

@keyframes urgencyPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 15px rgba(255, 71, 87, 0.6);
    }
}

/* Enhanced hover effects */
.interactive-suggestion {
    position: relative;
}

.interactive-suggestion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(230, 0, 18, 0.1), rgba(255, 71, 87, 0.05));
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.interactive-suggestion:hover::before {
    opacity: 1;
}

/* Social proof elements */
.empty-cart-social-proof {
    margin-top: 1rem;
    text-align: center;
    opacity: 0.8;
}

.social-proof-text {
    font-size: 0.75rem;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.social-proof-text i {
    color: #28a745;
    animation: heartbeat 2s ease-in-out infinite;
}

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

/* Cart info tooltip styles */
.hydrosite-shopee-cart {
    position: relative;
}

.cart-info-tooltip {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 12px 16px;
    min-width: 140px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.cart-info-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cart-info-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 12px;
    width: 12px;
    height: 12px;
    background: white;
    border: 1px solid #e5e5e5;
    border-bottom: none;
    border-right: none;
    transform: rotate(45deg);
}

.cart-info-items {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.cart-info-total {
    font-size: 14px;
    font-weight: 600;
    color: #E60012;
}

.hydrosite-shopee-cart-link:hover .cart-info-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Cart count animation */
.hydrosite-shopee-cart-number {
    transition: all 0.3s ease;
}

.hydrosite-shopee-cart-number.updated {
    animation: cartBounce 0.6s ease;
}

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

/* Mobile responsive */
@media (max-width: 768px) {
    .cart-info-tooltip {
        right: -10px;
        min-width: 120px;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .cart-info-tooltip::before {
        right: 20px;
    }
}
