/**
 * 变体产品显示样式
 * 用于在产品列表中显示变体作为独立产品
 */

/* 变体产品项 - 作为独立产品显示 */
li.variation-product-item {
    /* 继承产品列表的正常样式 */
    position: relative;
    margin: 0;
    padding: 0;
}

/* 确保变体产品项与其他产品有相同的外观 */
li.variation-product-item .woocommerce-LoopProduct-link {
    display: block;
    text-decoration: none;
}

/* 变体产品标题 */
li.variation-product-item .woocommerce-loop-product__title {
    font-size: 1em;
    margin: 0.5em 0;
    line-height: 1.4;
}

/* 变体产品价格 */
li.variation-product-item .price {
    display: block;
    margin: 0.5em 0;
}

/* 变体产品按钮 */
li.variation-product-item .button {
    display: inline-block;
    margin-top: 0.5em;
}

/* 如果主题使用了特定的产品项样式，确保变体继承这些样式 */
li.variation-product-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* 移除旧的变体网格样式（不再使用） */
.product-variations-grid {
    display: none !important;
}

/* 变体链接列表样式（备用显示方式） */
.variation-links {
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.variation-links h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #333;
}

.variation-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.variation-links li {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.variation-links li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.variation-links a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
}

.variation-links a:hover {
    color: #3498db;
    text-decoration: underline;
}

