/*
 * 首页商品卡片优化样式
 */

/* 商品卡片悬停效果 */
.best-sellers .product-inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12) !important;
}

/* 商品图片容器 */
.best-sellers .product-image-wrapper {
    background: #f8f8f8;
}

.best-sellers .product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.best-sellers .product-inner:hover .product-image-wrapper img {
    transform: scale(1.05);
}

/* 折扣标签 */
.product_card-tag {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    z-index: 10 !important;
    background: #ff4444 !important;
    color: white !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.4) !important;
}

.product_card-tag .discount_tag_name {
    display: flex !important;
    gap: 4px !important;
    align-items: center !important;
}

/* 售罄标签 */
.product_card_soldout {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 10 !important;
    background: rgba(0, 0, 0, 0.8) !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* 价格样式 */
.best-sellers .product_price {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.best-sellers .product_price del {
    opacity: 0.5;
    font-size: 14px;
    margin-right: 8px;
}

.best-sellers .product_price ins {
    text-decoration: none;
    color: #e94e1b;
}

/* 添加到购物车按钮悬停 */
.best-sellers .add_to_cart_button:hover {
    background: #ff6600 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

/* 响应式设计 - 平板和移动端强制2列 */
@media (max-width: 1024px) {
    .best-sellers .list.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

@media (max-width: 768px) {
    .best-sellers .list.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    .best-sellers .item-caption {
        padding: 12px !important;
    }
    
    .best-sellers .item-caption-title {
        font-size: 14px !important;
        height: 38px !important;
    }
    
    .best-sellers .product_price {
        font-size: 16px !important;
    }
    
    .best-sellers .add_to_cart_button {
        padding: 8px !important;
        font-size: 13px !important;
    }
}

/* 手机端也显示两列 */
@media (max-width: 480px) {
    .best-sellers .list.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .best-sellers .item-caption {
        padding: 10px !important;
    }
    
    .best-sellers .item-caption-title {
        font-size: 13px !important;
        height: 36px !important;
    }
    
    .best-sellers .product_price {
        font-size: 15px !important;
    }
    
    .best-sellers .add_to_cart_button {
        padding: 8px 6px !important;
        font-size: 12px !important;
    }
}

