/* ===== 列表模式样式 ===== */
.commodity-layout.list-mode {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.commodity-layout.list-mode .goods-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
    background: #fff !important;
    opacity: 1 !important;
    border-radius: 0;
    width: 100%;
    box-shadow: none;
    cursor: default;
    transition: none;
    min-height: 52px;
}
/* 删除整行 hover 效果 */
.commodity-layout.list-mode .goods-custom .list-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}
.commodity-layout.list-mode .goods-custom .list-left .commodity-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}
.commodity-layout.list-mode .goods-custom .list-left .list-name {
    font-size: 14px;
    color: #333;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.5;
    flex: 1;
    min-width: 0;
}
.commodity-layout.list-mode .goods-custom .list-price {
    font-size: 15px;
    font-weight: 600;
    color: #18c16b;
    margin: 0 0 0 15px;
    flex-shrink: 0;
    white-space: nowrap;
}
.commodity-layout.list-mode .goods-custom .list-btn {
    padding: 4px 16px;
    border-radius: 20px;
    border: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
    background: #f1a3b0;
    color: #fff;
}
/* 购买按钮悬浮效果 */
.commodity-layout.list-mode .goods-custom .list-btn:hover:not(:disabled) {
    background: #d47f8e;
    transform: scale(1.06);
    box-shadow: 0 2px 12px rgba(241, 163, 176, 0.4);
}
.commodity-layout.list-mode .goods-custom .list-btn:disabled {
    background: #d0d0d0;
    color: #999;
    cursor: not-allowed;
    transform: none;
}
.commodity-layout.list-mode .goods-custom > a:not(.list-left) {
    display: none;
}
.commodity-layout.list-mode .goods-custom .list-left a {
    text-decoration: none;
    color: inherit;
}

/* 列表模式响应式 */
@media (max-width: 600px) {
    .commodity-layout.list-mode .goods-custom {
        flex-wrap: wrap;
        padding: 8px 12px;
        gap: 6px;
    }
    .commodity-layout.list-mode .goods-custom .list-left {
        flex: 1 1 100%;
        gap: 10px;
    }
    .commodity-layout.list-mode .goods-custom .list-price {
        margin: 0 12px 0 0;
        font-size: 14px;
    }
    .commodity-layout.list-mode .goods-custom .list-btn {
        padding: 3px 12px;
        font-size: 12px;
    }
}
