/* 购物车图标样式 */
.cart-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.cart-icon {
  position: relative;
  color: #fff;
  font-size: 20px;
  text-decoration: none;
  padding: 10px;
  transition: all 0.3s ease;
  border-radius: 50%;
  background: rgba(245, 183, 84, 0.1);
  border: 1px solid rgba(245, 183, 84, 0.3);
}

.cart-icon:hover {
  color: #f5b754;
  background: rgba(245, 183, 84, 0.2);
  transform: scale(1.05);
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #f5b754;
  color: #1b1b1b;
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  animation: pulse 2s infinite;
}

.cart-count:empty {
  display: none;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* 防止body滚动 */
body.cart-sidebar-open {
  overflow: hidden;
}

/* xoo-wsc 插件兼容性 */
.xoo-wsc-modal {
  z-index: 99999 !important;
}

.xoo-wsc-basket:hover .cart-count {
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0%, 20%, 60%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  80% { transform: translateY(-5px); }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .cart-wrapper {
    margin-left: 10px !important;
  }
  
  .cart-icon {
    padding: 8px;
    font-size: 18px;
  }
  
  .cart-count {
    min-width: 18px;
    height: 18px;
    font-size: 11px;
  }
}