/* WooCommerce Progress Bar Styles */

/* 免运费进度条容器样式 - 现代卡片设计 */
.wc-free-shipping-progress-container {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* 满减优惠进度条容器样式 */
.wc-discount-progress-container {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* 悬停效果 */
.wc-free-shipping-progress-container:hover,
.wc-discount-progress-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.3);
}

/* 免运费完成状态的特殊样式 */
.wc-free-shipping-progress-complete {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
    animation: celebration 0.6s ease-out;
}

/* 满减优惠完成状态的特殊样式 */
.wc-discount-progress-complete {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
    animation: celebration 0.6s ease-out;
}

/* 满减优惠进度条的橙色渐变 */
.wc-discount-progress-container {
    background: linear-gradient(135deg, #ff9a56 0%, #ff6b95 100%);
    box-shadow: 0 8px 32px rgba(255, 154, 86, 0.2);
}

/* 庆祝动画 */
@keyframes celebration {
    0% { transform: scale(0.95); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* 消息文本样式 */
.wc-free-shipping-progress-message,
.wc-discount-progress-message {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

/* 免运费进度条图标 */
.wc-free-shipping-progress-message:before {
    content: '🚚';
    font-size: 20px;
    margin-right: 8px;
    display: inline-block;
    animation: truck-move 2s ease-in-out infinite;
}

/* 满减优惠进度条图标 */
.wc-discount-progress-message:before {
    content: '💰';
    font-size: 20px;
    margin-right: 8px;
    display: inline-block;
    animation: coin-spin 2s ease-in-out infinite;
}

/* 免运费完成状态的图标 */
.wc-free-shipping-progress-complete .wc-free-shipping-progress-message:before {
    content: '🎉';
    animation: bounce 1s ease-in-out infinite;
}

/* 满减优惠完成状态的图标 */
.wc-discount-progress-complete .wc-discount-progress-message:before {
    content: '🎊';
    animation: bounce 1s ease-in-out infinite;
}

/* 卡车移动动画 */
@keyframes truck-move {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(3px); }
}

/* 弹跳动画 */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* 硬币旋转动画 */
@keyframes coin-spin {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
}

/* 进度条容器 */
.wc-free-shipping-progress-bar,
.wc-discount-progress-bar {
    background: rgba(255, 255, 255, 0.2);
    height: 8px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
}

/* 进度条填充 */
.wc-free-shipping-progress-bar-inner,
.wc-discount-progress-bar-inner {
    background: linear-gradient(90deg, #ffffff 0%, #f8f9ff 100%);
    height: 100%;
    border-radius: 20px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

/* 进度条光效 */
.wc-free-shipping-progress-bar-inner:after,
.wc-discount-progress-bar-inner:after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: shimmer 2s infinite;
}

/* 光效动画 */
@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .wc-free-shipping-progress-container,
    .wc-discount-progress-container {
        margin: 15px 0;
        padding: 16px;
    }
    .wc-free-shipping-progress-message,
    .wc-discount-progress-message {
        font-size: 14px;
    }
}

/* 主题兼容性 */
/* Flatsome主题兼容性 */
.woocommerce .wc-free-shipping-progress-container,
.woocommerce .wc-discount-progress-container { 
    margin: 20px 0; 
}
.cart-wrapper .wc-free-shipping-progress-container,
.cart-wrapper .wc-discount-progress-container { 
    margin: 15px 0 25px 0; 
}

/* Astra主题兼容性 */
.ast-container .wc-free-shipping-progress-container,
.ast-container .wc-discount-progress-container { 
    max-width: 100%; 
}