/* 产品页面定制样式 */

/* 产品卡片样式 */
.product-card-wrapper {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.product-card-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 产品图片样式 */
.woocommerce-loop-product__link img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card-wrapper:hover .woocommerce-loop-product__link img {
    transform: scale(1.05);
}

/* 产品信息区域 */
.woocommerce-loop-product__title {
    font-size: 16px;
    font-weight: 600;
    margin: 15px 0 10px;
    padding: 0 15px;
    color: var(--text-color);
    line-height: 1.4;
}

/* 价格样式 */
.price {
    padding: 0 15px 15px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.price del {
    color: var(--secondary-color);
    font-size: 14px;
    margin-right: 8px;
}

/* 添加到购物车按钮 */
.add_to_cart_button {
    width: calc(100% - 30px);
    margin: 0 15px 15px;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.add_to_cart_button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* 产品标签 */
.woocommerce-loop-product__link::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    z-index: 2;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .woocommerce-loop-product__link img {
        height: 200px;
    }
    
    .woocommerce-loop-product__title {
        font-size: 14px;
    }
    
    .price {
        font-size: 16px;
    }
}

/* 产品详情页样式 */
.single-product .product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 20px;
}

.single-product .woocommerce-product-gallery {
    border-radius: 12px;
    overflow: hidden;
}

.single-product .summary {
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

@media (max-width: 768px) {
    .single-product .product {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
