/* 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%; 
}

.widget_shopping_cart_content .wc-free-shipping-progress-container ,.widget_shopping_cart_content .wc-discount-progress-container {
	margin: 10px 20px;
}

/* 订单确认页面隐藏进度条 - 备用方案 */
.woocommerce-order-received .wc-free-shipping-progress-container,
.woocommerce-order-received .wc-discount-progress-container {
    display: none !important;
}

/* ==========================================
   钻石会员专区商品样式
   ========================================== */

/* 专区商品标签 */
.diamond-exclusive-badge {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #333;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    position: relative;
    z-index: 10;
}

.diamond-exclusive-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.3) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0.3) 75%, transparent 75%, transparent);
    background-size: 20px 20px;
    border-radius: 5px;
    opacity: 0.3;
}

/* 专区商品价格显示 */
.diamond-exclusive-price {
    margin: 15px 0;
}

.diamond-exclusive-price .original-price {
    font-size: 16px;
    color: #999;
}

.diamond-exclusive-price del {
    opacity: 0.6;
}

.diamond-exclusive-price ins {
    text-decoration: none;
    font-weight: bold;
}

.diamond-exclusive-price .member-price {
    color: #28a745;
    font-size: 24px;
    font-weight: bold;
}

.diamond-member-required {
    background: #fffacd;
    border-left: 4px solid #FFD700;
    padding: 10px 15px;
    margin-top: 10px;
    border-radius: 3px;
}

.diamond-member-required strong {
    color: #28a745;
    font-size: 20px;
}

.diamond-exclusive-label {
    color: #FFD700;
    font-size: 12px;
    font-weight: bold;
    margin-top: 5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* 会员视图的专区价格 */
.diamond-exclusive-price.member-view {
    background: linear-gradient(135deg, #f8f9ff 0%, #fffacd 100%);
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #FFD700;
}

.diamond-exclusive-price.member-view del {
    font-size: 14px;
}

.diamond-exclusive-price.member-view ins {
    font-size: 24px;
}

/* 商品列表页专区标签 - 绝对定位 */
.woocommerce ul.products li.product .diamond-exclusive-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 100;
    padding: 5px 10px;
    font-size: 11px;
}

/* 购物车中的专区商品提示 */
.cart_item .diamond-exclusive-cart-label {
    display: inline-block;
    background: #FFD700;
    color: #333;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 5px;
}

/* 响应式 */
@media (max-width: 768px) {
    .diamond-exclusive-badge {
        font-size: 11px;
        padding: 6px 12px;
    }
    
    .diamond-exclusive-price .member-price {
        font-size: 20px;
    }
    
    .diamond-exclusive-price.member-view {
        padding: 12px;
    }
}

/* 钻石会员专区商品样式 */
.diamond-exclusive-inline-price {
    display: inline-flex;
    gap: 6px;
    align-items: baseline;
    font-size: 16px;
    color: #333;
}

.diamond-exclusive-inline-price .original-price,
.diamond-exclusive-inline-price .sale-price,
.diamond-exclusive-inline-price .base-price {
    font-size: 16px;
}

.diamond-exclusive-inline-price .sale-price {
    color: #e5534b;
    font-weight: bold;
}

.diamond-exclusive-inline-price .member-price,
.diamond-exclusive-inline-price .diamond-member-text {
    color: #28a745;
    font-weight: 600;
}

/* 钻石会员商品提示 */
.diamond-exclusive-message {
    background: #fff8e1;
    border-left: 4px solid #f4b400;
    padding: 12px 15px;
    margin: 15px 0;
    border-radius: 4px;
    font-size: 14px;
    color: #8a6d3b;
}

.diamond-exclusive-message a {
    color: #d9822b;
    text-decoration: underline;
}

.diamond-exclusive-message--success {
    background: #e6ffed;
    border-left-color: #34a853;
    color: #196127;
}