
/* 购物车跳动动画 */

.cart-pulse {
    animation: cartPulse 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) both;
    transform-origin: center bottom; /* 从底部弹跳 */
}

@keyframes cartPulse {
    0% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 0 rgba(255, 107, 107, 0));
    }
    15% {
        transform: scale(1.2) rotate(-8deg);
    }
    30% {
        transform: scale(0.95) rotate(8deg);
        filter: drop-shadow(0 5px 10px rgba(255, 107, 107, 0.4));
    }
    45% {
        transform: scale(1.25) rotate(-10deg);
    }
    60% {
        transform: scale(0.98) rotate(10deg);
        filter: drop-shadow(0 8px 15px rgba(255, 107, 107, 0.6));
    }
    75% {
        transform: scale(1.15) rotate(-5deg);
    }
    90% {
        transform: scale(1.05) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 2px 5px rgba(255, 107, 107, 0.2));
    }
}

/* 如果需要颜色闪烁效果，可以添加这个 */
.cart-pulse i {
    animation: colorFlash 0.8s ease;
}

@keyframes colorFlash {
    0%, 100% { color: inherit; }
    25% { color: #ff6b6b; } /* 跳动时变红色 */
    50% { color: #ffde59; } /* 跳到最高点时变黄色 */
    75% { color: #6bff6b; } /* 下落时变绿色 */
}


.pulse {
    animation: pulse 0.5s ease-in-out;
}

/* 购物车按钮样式 */
.gBtn .saddcar {
    display: block;
    padding: 8px 15px;
    background-color: #ff6b6b;
    color: white;
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.gBtn .saddcar:hover {
    background-color: #ff5252;
}

/* 图标按钮样式 */
.aiz-p-hov-icon a {
    color: #666;
    transition: all 0.3s;
    display: inline-block;
    cursor: pointer;
}

.aiz-p-hov-icon a:hover {
    color: #ff6b6b;
    transform: scale(1.1);
}

/*新购物车下拉表样式开始*/
/* Shopping Cart Dropdown Styling */
.floatcar {
    position: relative;
    width: 100%;
    min-width: 360px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 15px;
    font-family: Arial, sans-serif;
}

/* 覆盖Bootstrap的dropdown-menu样式 */
#cart_lists.dropdown-menu-right {
    width: 360px !important;
    min-width: 360px !important;
    max-width: 360px !important;
    padding: 0;
    border: none;
}

/* 确保父容器不限制宽度 */
#topCart, .nav-cart-box {
    width: auto !important;
    max-width: none !important;
}

/* Title styling */
.floatcar .title {
    font-size: 16px;
    color: #333;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Cart items list */
#tEvent {
    max-height: 300px;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Custom scrollbar */
#tEvent::-webkit-scrollbar {
    width: 8px;
}
#tEvent::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}
#tEvent::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
#tEvent::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Individual cart item */
#tEvent li.list-group-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}
#tEvent li.list-group-item:hover {
    background: #f8f8f8;
}

/* Product image */
#tEvent .l img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

/* Product details */
#tEvent .c {
    flex: 1;
    padding: 0 10px;
}
#tEvent .c .product-title {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: 2.8em;
    margin-bottom: 5px;
}
#tEvent .c .product-title:hover {
    color: #007bff;
}
#tEvent .c .product-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: #666;
}
#tEvent .c .price-info {
    color: #e44d26;
}
#tEvent .c .weight-info {
    color: #666;
}

/* Delete button */
#tEvent .r {
    text-align: right;
    padding-right: 10px; /* 增加与下拉框边缘的间距 */
}
#tEvent .r .delcar {
    color: #999;
    text-decoration: none;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}
#tEvent .r .delcar:hover {
    color: #e44d26;
    background: #f0f0f0;
}
#tEvent .r .delcar i {
    line-height: 1;
}

/* Total section */
.floatcar .total {
    display: flex;
    flex-direction: column;
    gap: 10px; /* 增加共计和按钮的上下间距 */
    padding: 15px 0;
    border-top: 1px solid #eee;
}
.total .cart-count {
    font-size: 14px;
    color: #333;
    margin: 0;
}
.total .cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.total .total-price {
    margin: 0;
    font-size: 14px;
}
.total .total-price font {
    color: #e44d26;
    font-weight: 600;
}
.total .submit5 {
    background: linear-gradient(to right, #e44d26, #ff6b6b);
    color: #fff;
    padding: 8px 15px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s ease;
}
.total .submit5:hover {
    background: linear-gradient(to right, #cc3f1f, #e44d26);
}

/* Empty cart state */
.floatcar1 .nopro {
    text-align: center;
    padding: 20px;
}
.nopro p {
    color: #666;
    font-size: 14px;
    margin: 5px 0;
}
.nopro a.no_dl {
    color: #007bff;
    text-decoration: none;
}
.nopro a.no_dl:hover {
    text-decoration: underline;
}

/* Animation for cart number */
#cartNum.bounce {
    animation: bounce 0.3s ease;
}
@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}
/*新 下拉菜单样式 结束*/

.carnum {
  /* 默认样式（电脑端） */
  position: relative; 
  left: -40px; 
}

/* 手机端样式 */
@media only screen and (max-width: 768px) {
  .carnum {
    left: 0; 
    position: relative;
    top: 3em; /* 向下移动3行， */
  }
}

a.numbutton {
    border: 1px solid #e2e5ec;
    width: 35px;
    height: 35px;
    display: inline-block;
    text-align: center;
    color: #666;
    border-radius: 50px;
    background-color: #e2e5ec;
    /* top: 50px; */
    padding: 5px;
}

.carnum input {
    color: #333;
    width: 50px;
    margin: 0px;
    text-align: center;
    height: 20px;
    border: none;
   /* border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;*/
	font-size: 14px;
}
}

.carnum .disable {
    color: #ccc;
}





